/* Copyright 2015 The Kubernetes Authors All rights reserved. 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" pkg7_fields "k8s.io/kubernetes/pkg/fields" pkg6_labels "k8s.io/kubernetes/pkg/labels" pkg8_runtime "k8s.io/kubernetes/pkg/runtime" pkg1_types "k8s.io/kubernetes/pkg/types" pkg5_intstr "k8s.io/kubernetes/pkg/util/intstr" "reflect" "runtime" pkg4_inf "speter.net/go/exp/math/dec/inf" 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 pkg7_fields.Selector var v3 pkg6_labels.Selector var v4 pkg8_runtime.Object var v5 pkg1_types.UID var v6 pkg5_intstr.IntOrString var v7 pkg4_inf.Dec var v8 time.Time _, _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7, v8 } } 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 [12]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 var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(12) } 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_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym43 := z.DecBinary() _ = yym43 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct44 := r.ContainerType() if yyct44 == codecSelferValueTypeMap1234 { yyl44 := r.ReadMapStart() if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl44, d) } } else if yyct44 == codecSelferValueTypeArray1234 { yyl44 := r.ReadArrayStart() if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl44, 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 yys45Slc = z.DecScratchBuffer() // default slice to decode into _ = yys45Slc var yyhl45 bool = l >= 0 for yyj45 := 0; ; yyj45++ { if yyhl45 { if yyj45 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys45Slc = r.DecodeBytes(yys45Slc, true, true) yys45 := string(yys45Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys45 { 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 { yyv53 := &x.CreationTimestamp yym54 := z.DecBinary() _ = yym54 if false { } else if z.HasExtensions() && z.DecExt(yyv53) { } else if yym54 { z.DecBinaryUnmarshal(yyv53) } else if !yym54 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv53) } else { z.DecFallback(yyv53, false) } } case "deletionTimestamp": if r.TryDecodeAsNil() { if x.DeletionTimestamp != nil { x.DeletionTimestamp = nil } } else { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } yym56 := z.DecBinary() _ = yym56 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym56 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym56 && 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) } yym58 := z.DecBinary() _ = yym58 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "labels": if r.TryDecodeAsNil() { x.Labels = nil } else { yyv59 := &x.Labels yym60 := z.DecBinary() _ = yym60 if false { } else { z.F.DecMapStringStringX(yyv59, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv61 := &x.Annotations yym62 := z.DecBinary() _ = yym62 if false { } else { z.F.DecMapStringStringX(yyv61, false, d) } } default: z.DecStructFieldNotFound(-1, yys45) } // end switch yys45 } // end for yyj45 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 yyj63 int var yyb63 bool var yyhl63 bool = l >= 0 yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.GenerateName = "" } else { x.GenerateName = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SelfLink = "" } else { x.SelfLink = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Generation = 0 } else { x.Generation = int64(r.DecodeInt(64)) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { yyv71 := &x.CreationTimestamp yym72 := z.DecBinary() _ = yym72 if false { } else if z.HasExtensions() && z.DecExt(yyv71) { } else if yym72 { z.DecBinaryUnmarshal(yyv71) } else if !yym72 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv71) } else { z.DecFallback(yyv71, false) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { 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) } yym74 := z.DecBinary() _ = yym74 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym74 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym74 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { 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) } yym76 := z.DecBinary() _ = yym76 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Labels = nil } else { yyv77 := &x.Labels yym78 := z.DecBinary() _ = yym78 if false { } else { z.F.DecMapStringStringX(yyv77, false, d) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv79 := &x.Annotations yym80 := z.DecBinary() _ = yym80 if false { } else { z.F.DecMapStringStringX(yyv79, false, d) } } for { yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj63-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 { yym81 := z.EncBinary() _ = yym81 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep82 := !z.EncBinary() yy2arr82 := z.EncBasicHandle().StructToArray var yyq82 [19]bool _, _, _ = yysep82, yyq82, yy2arr82 const yyr82 bool = false yyq82[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil yyq82[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil yyq82[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq82[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq82[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil yyq82[6] = x.VolumeSource.Secret != nil && x.Secret != nil yyq82[7] = x.VolumeSource.NFS != nil && x.NFS != nil yyq82[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil yyq82[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq82[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil yyq82[11] = x.VolumeSource.RBD != nil && x.RBD != nil yyq82[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq82[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil yyq82[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil yyq82[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil yyq82[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil yyq82[17] = x.VolumeSource.FC != nil && x.FC != nil yyq82[18] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil var yynn82 int if yyr82 || yy2arr82 { r.EncodeArrayStart(19) } else { yynn82 = 1 for _, b := range yyq82 { if b { yynn82++ } } r.EncodeMapStart(yynn82) yynn82 = 0 } if yyr82 || yy2arr82 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym84 := z.EncBinary() _ = yym84 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) yym85 := z.EncBinary() _ = yym85 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } var yyn86 bool if x.VolumeSource.HostPath == nil { yyn86 = true goto LABEL86 } LABEL86: if yyr82 || yy2arr82 { if yyn86 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[1] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn86 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn87 bool if x.VolumeSource.EmptyDir == nil { yyn87 = true goto LABEL87 } LABEL87: if yyr82 || yy2arr82 { if yyn87 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[2] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn87 { r.EncodeNil() } else { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } } } var yyn88 bool if x.VolumeSource.GCEPersistentDisk == nil { yyn88 = true goto LABEL88 } LABEL88: if yyr82 || yy2arr82 { if yyn88 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[3] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn88 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn89 bool if x.VolumeSource.AWSElasticBlockStore == nil { yyn89 = true goto LABEL89 } LABEL89: if yyr82 || yy2arr82 { if yyn89 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[4] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn89 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn90 bool if x.VolumeSource.GitRepo == nil { yyn90 = true goto LABEL90 } LABEL90: if yyr82 || yy2arr82 { if yyn90 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[5] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn90 { r.EncodeNil() } else { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } } } var yyn91 bool if x.VolumeSource.Secret == nil { yyn91 = true goto LABEL91 } LABEL91: if yyr82 || yy2arr82 { if yyn91 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[6] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn91 { r.EncodeNil() } else { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } } } var yyn92 bool if x.VolumeSource.NFS == nil { yyn92 = true goto LABEL92 } LABEL92: if yyr82 || yy2arr82 { if yyn92 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[7] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn92 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn93 bool if x.VolumeSource.ISCSI == nil { yyn93 = true goto LABEL93 } LABEL93: if yyr82 || yy2arr82 { if yyn93 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[8] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn93 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn94 bool if x.VolumeSource.Glusterfs == nil { yyn94 = true goto LABEL94 } LABEL94: if yyr82 || yy2arr82 { if yyn94 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[9] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn94 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn95 bool if x.VolumeSource.PersistentVolumeClaim == nil { yyn95 = true goto LABEL95 } LABEL95: if yyr82 || yy2arr82 { if yyn95 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[10] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn95 { r.EncodeNil() } else { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } } var yyn96 bool if x.VolumeSource.RBD == nil { yyn96 = true goto LABEL96 } LABEL96: if yyr82 || yy2arr82 { if yyn96 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[11] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn96 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn97 bool if x.VolumeSource.FlexVolume == nil { yyn97 = true goto LABEL97 } LABEL97: if yyr82 || yy2arr82 { if yyn97 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[12] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn97 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn98 bool if x.VolumeSource.Cinder == nil { yyn98 = true goto LABEL98 } LABEL98: if yyr82 || yy2arr82 { if yyn98 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[13] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn98 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn99 bool if x.VolumeSource.CephFS == nil { yyn99 = true goto LABEL99 } LABEL99: if yyr82 || yy2arr82 { if yyn99 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[14] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn99 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn100 bool if x.VolumeSource.Flocker == nil { yyn100 = true goto LABEL100 } LABEL100: if yyr82 || yy2arr82 { if yyn100 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[15] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn100 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn101 bool if x.VolumeSource.DownwardAPI == nil { yyn101 = true goto LABEL101 } LABEL101: if yyr82 || yy2arr82 { if yyn101 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[16] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn101 { r.EncodeNil() } else { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } } var yyn102 bool if x.VolumeSource.FC == nil { yyn102 = true goto LABEL102 } LABEL102: if yyr82 || yy2arr82 { if yyn102 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[17] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn102 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn103 bool if x.VolumeSource.AzureFile == nil { yyn103 = true goto LABEL103 } LABEL103: if yyr82 || yy2arr82 { if yyn103 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[18] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn103 { r.EncodeNil() } else { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } } if yyr82 || yy2arr82 { 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 yym104 := z.DecBinary() _ = yym104 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct105 := r.ContainerType() if yyct105 == codecSelferValueTypeMap1234 { yyl105 := r.ReadMapStart() if yyl105 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl105, d) } } else if yyct105 == codecSelferValueTypeArray1234 { yyl105 := r.ReadArrayStart() if yyl105 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl105, 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 yys106Slc = z.DecScratchBuffer() // default slice to decode into _ = yys106Slc var yyhl106 bool = l >= 0 for yyj106 := 0; ; yyj106++ { if yyhl106 { if yyj106 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys106Slc = r.DecodeBytes(yys106Slc, true, true) yys106 := string(yys106Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys106 { 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) } default: z.DecStructFieldNotFound(-1, yys106) } // end switch yys106 } // end for yyj106 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 yyj126 int var yyb126 bool var yyhl126 bool = l >= 0 yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { 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) } for { yyj126++ if yyhl126 { yyb126 = yyj126 > l } else { yyb126 = r.CheckBreak() } if yyb126 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj126-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 { yym146 := z.EncBinary() _ = yym146 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep147 := !z.EncBinary() yy2arr147 := z.EncBasicHandle().StructToArray var yyq147 [18]bool _, _, _ = yysep147, yyq147, yy2arr147 const yyr147 bool = false yyq147[0] = x.HostPath != nil yyq147[1] = x.EmptyDir != nil yyq147[2] = x.GCEPersistentDisk != nil yyq147[3] = x.AWSElasticBlockStore != nil yyq147[4] = x.GitRepo != nil yyq147[5] = x.Secret != nil yyq147[6] = x.NFS != nil yyq147[7] = x.ISCSI != nil yyq147[8] = x.Glusterfs != nil yyq147[9] = x.PersistentVolumeClaim != nil yyq147[10] = x.RBD != nil yyq147[11] = x.FlexVolume != nil yyq147[12] = x.Cinder != nil yyq147[13] = x.CephFS != nil yyq147[14] = x.Flocker != nil yyq147[15] = x.DownwardAPI != nil yyq147[16] = x.FC != nil yyq147[17] = x.AzureFile != nil var yynn147 int if yyr147 || yy2arr147 { r.EncodeArrayStart(18) } else { yynn147 = 0 for _, b := range yyq147 { if b { yynn147++ } } r.EncodeMapStart(yynn147) yynn147 = 0 } if yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[0] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[1] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[4] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[5] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[6] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[8] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[10] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[11] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[12] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[13] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[14] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[15] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[16] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq147[17] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq147[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 yyr147 || yy2arr147 { 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 yym166 := z.DecBinary() _ = yym166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct167 := r.ContainerType() if yyct167 == codecSelferValueTypeMap1234 { yyl167 := r.ReadMapStart() if yyl167 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl167, d) } } else if yyct167 == codecSelferValueTypeArray1234 { yyl167 := r.ReadArrayStart() if yyl167 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl167, 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 yys168Slc = z.DecScratchBuffer() // default slice to decode into _ = yys168Slc var yyhl168 bool = l >= 0 for yyj168 := 0; ; yyj168++ { if yyhl168 { if yyj168 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys168Slc = r.DecodeBytes(yys168Slc, true, true) yys168 := string(yys168Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys168 { 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) } default: z.DecStructFieldNotFound(-1, yys168) } // end switch yys168 } // end for yyj168 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 yyj187 int var yyb187 bool var yyhl187 bool = l >= 0 yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { 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) } for { yyj187++ if yyhl187 { yyb187 = yyj187 > l } else { yyb187 = r.CheckBreak() } if yyb187 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj187-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 { yym206 := z.EncBinary() _ = yym206 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep207 := !z.EncBinary() yy2arr207 := z.EncBasicHandle().StructToArray var yyq207 [13]bool _, _, _ = yysep207, yyq207, yy2arr207 const yyr207 bool = false yyq207[0] = x.GCEPersistentDisk != nil yyq207[1] = x.AWSElasticBlockStore != nil yyq207[2] = x.HostPath != nil yyq207[3] = x.Glusterfs != nil yyq207[4] = x.NFS != nil yyq207[5] = x.RBD != nil yyq207[6] = x.ISCSI != nil yyq207[7] = x.FlexVolume != nil yyq207[8] = x.Cinder != nil yyq207[9] = x.CephFS != nil yyq207[10] = x.FC != nil yyq207[11] = x.Flocker != nil yyq207[12] = x.AzureFile != nil var yynn207 int if yyr207 || yy2arr207 { r.EncodeArrayStart(13) } else { yynn207 = 0 for _, b := range yyq207 { if b { yynn207++ } } r.EncodeMapStart(yynn207) yynn207 = 0 } if yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[2] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[3] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[4] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[5] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[6] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[7] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[8] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[9] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[10] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[11] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq207[12] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq207[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 yyr207 || yy2arr207 { 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 yym221 := z.DecBinary() _ = yym221 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct222 := r.ContainerType() if yyct222 == codecSelferValueTypeMap1234 { yyl222 := r.ReadMapStart() if yyl222 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl222, d) } } else if yyct222 == codecSelferValueTypeArray1234 { yyl222 := r.ReadArrayStart() if yyl222 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl222, 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 yys223Slc = z.DecScratchBuffer() // default slice to decode into _ = yys223Slc var yyhl223 bool = l >= 0 for yyj223 := 0; ; yyj223++ { if yyhl223 { if yyj223 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys223Slc = r.DecodeBytes(yys223Slc, true, true) yys223 := string(yys223Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys223 { 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) } default: z.DecStructFieldNotFound(-1, yys223) } // end switch yys223 } // end for yyj223 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 yyj237 int var yyb237 bool var yyhl237 bool = l >= 0 yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { 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) } for { yyj237++ if yyhl237 { yyb237 = yyj237 > l } else { yyb237 = r.CheckBreak() } if yyb237 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj237-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 { yym251 := z.EncBinary() _ = yym251 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep252 := !z.EncBinary() yy2arr252 := z.EncBasicHandle().StructToArray var yyq252 [2]bool _, _, _ = yysep252, yyq252, yy2arr252 const yyr252 bool = false yyq252[1] = x.ReadOnly != false var yynn252 int if yyr252 || yy2arr252 { r.EncodeArrayStart(2) } else { yynn252 = 1 for _, b := range yyq252 { if b { yynn252++ } } r.EncodeMapStart(yynn252) yynn252 = 0 } if yyr252 || yy2arr252 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym254 := z.EncBinary() _ = yym254 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) yym255 := z.EncBinary() _ = yym255 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } if yyr252 || yy2arr252 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq252[1] { yym257 := z.EncBinary() _ = yym257 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq252[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym258 := z.EncBinary() _ = yym258 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr252 || yy2arr252 { 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 yym259 := z.DecBinary() _ = yym259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct260 := r.ContainerType() if yyct260 == codecSelferValueTypeMap1234 { yyl260 := r.ReadMapStart() if yyl260 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl260, d) } } else if yyct260 == codecSelferValueTypeArray1234 { yyl260 := r.ReadArrayStart() if yyl260 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl260, 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 yys261Slc = z.DecScratchBuffer() // default slice to decode into _ = yys261Slc var yyhl261 bool = l >= 0 for yyj261 := 0; ; yyj261++ { if yyhl261 { if yyj261 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys261Slc = r.DecodeBytes(yys261Slc, true, true) yys261 := string(yys261Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys261 { 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, yys261) } // end switch yys261 } // end for yyj261 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 yyj264 int var yyb264 bool var yyhl264 bool = l >= 0 yyj264++ if yyhl264 { yyb264 = yyj264 > l } else { yyb264 = r.CheckBreak() } if yyb264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } yyj264++ if yyhl264 { yyb264 = yyj264 > l } else { yyb264 = r.CheckBreak() } if yyb264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj264++ if yyhl264 { yyb264 = yyj264 > l } else { yyb264 = r.CheckBreak() } if yyb264 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj264-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 { yym267 := z.EncBinary() _ = yym267 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep268 := !z.EncBinary() yy2arr268 := z.EncBasicHandle().StructToArray var yyq268 [5]bool _, _, _ = yysep268, yyq268, yy2arr268 const yyr268 bool = false yyq268[0] = true yyq268[1] = true yyq268[2] = true yyq268[3] = x.Kind != "" yyq268[4] = x.APIVersion != "" var yynn268 int if yyr268 || yy2arr268 { r.EncodeArrayStart(5) } else { yynn268 = 0 for _, b := range yyq268 { if b { yynn268++ } } r.EncodeMapStart(yynn268) yynn268 = 0 } if yyr268 || yy2arr268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq268[0] { yy270 := &x.ObjectMeta yy270.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq268[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy271 := &x.ObjectMeta yy271.CodecEncodeSelf(e) } } if yyr268 || yy2arr268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq268[1] { yy273 := &x.Spec yy273.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq268[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy274 := &x.Spec yy274.CodecEncodeSelf(e) } } if yyr268 || yy2arr268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq268[2] { yy276 := &x.Status yy276.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq268[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy277 := &x.Status yy277.CodecEncodeSelf(e) } } if yyr268 || yy2arr268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq268[3] { yym279 := z.EncBinary() _ = yym279 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq268[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym280 := z.EncBinary() _ = yym280 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr268 || yy2arr268 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq268[4] { yym282 := z.EncBinary() _ = yym282 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq268[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym283 := z.EncBinary() _ = yym283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr268 || yy2arr268 { 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 yym284 := z.DecBinary() _ = yym284 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct285 := r.ContainerType() if yyct285 == codecSelferValueTypeMap1234 { yyl285 := r.ReadMapStart() if yyl285 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl285, d) } } else if yyct285 == codecSelferValueTypeArray1234 { yyl285 := r.ReadArrayStart() if yyl285 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl285, 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 yys286Slc = z.DecScratchBuffer() // default slice to decode into _ = yys286Slc var yyhl286 bool = l >= 0 for yyj286 := 0; ; yyj286++ { if yyhl286 { if yyj286 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys286Slc = r.DecodeBytes(yys286Slc, true, true) yys286 := string(yys286Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys286 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv287 := &x.ObjectMeta yyv287.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv288 := &x.Spec yyv288.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv289 := &x.Status yyv289.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys286) } // end switch yys286 } // end for yyj286 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 yyj292 int var yyb292 bool var yyhl292 bool = l >= 0 yyj292++ if yyhl292 { yyb292 = yyj292 > l } else { yyb292 = r.CheckBreak() } if yyb292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv293 := &x.ObjectMeta yyv293.CodecDecodeSelf(d) } yyj292++ if yyhl292 { yyb292 = yyj292 > l } else { yyb292 = r.CheckBreak() } if yyb292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv294 := &x.Spec yyv294.CodecDecodeSelf(d) } yyj292++ if yyhl292 { yyb292 = yyj292 > l } else { yyb292 = r.CheckBreak() } if yyb292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv295 := &x.Status yyv295.CodecDecodeSelf(d) } yyj292++ if yyhl292 { yyb292 = yyj292 > l } else { yyb292 = r.CheckBreak() } if yyb292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj292++ if yyhl292 { yyb292 = yyj292 > l } else { yyb292 = r.CheckBreak() } if yyb292 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj292++ if yyhl292 { yyb292 = yyj292 > l } else { yyb292 = r.CheckBreak() } if yyb292 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj292-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 { yym298 := z.EncBinary() _ = yym298 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep299 := !z.EncBinary() yy2arr299 := z.EncBasicHandle().StructToArray var yyq299 [17]bool _, _, _ = yysep299, yyq299, yy2arr299 const yyr299 bool = false yyq299[1] = len(x.AccessModes) != 0 yyq299[2] = x.ClaimRef != nil yyq299[3] = x.PersistentVolumeReclaimPolicy != "" yyq299[4] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq299[5] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq299[6] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil yyq299[7] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq299[8] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil yyq299[9] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil yyq299[10] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil yyq299[11] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq299[12] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil yyq299[13] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil yyq299[14] = x.PersistentVolumeSource.FC != nil && x.FC != nil yyq299[15] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil yyq299[16] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil var yynn299 int if yyr299 || yy2arr299 { r.EncodeArrayStart(17) } else { yynn299 = 1 for _, b := range yyq299 { if b { yynn299++ } } r.EncodeMapStart(yynn299) yynn299 = 0 } if yyr299 || yy2arr299 { 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) } } if yyr299 || yy2arr299 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[1] { if x.AccessModes == nil { r.EncodeNil() } else { yym302 := z.EncBinary() _ = yym302 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq299[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym303 := z.EncBinary() _ = yym303 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr299 || yy2arr299 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[2] { if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq299[2] { 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 yyr299 || yy2arr299 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[3] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq299[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } var yyn306 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn306 = true goto LABEL306 } LABEL306: if yyr299 || yy2arr299 { if yyn306 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[4] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn306 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn307 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn307 = true goto LABEL307 } LABEL307: if yyr299 || yy2arr299 { if yyn307 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[5] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn307 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn308 bool if x.PersistentVolumeSource.HostPath == nil { yyn308 = true goto LABEL308 } LABEL308: if yyr299 || yy2arr299 { if yyn308 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[6] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn308 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn309 bool if x.PersistentVolumeSource.Glusterfs == nil { yyn309 = true goto LABEL309 } LABEL309: if yyr299 || yy2arr299 { if yyn309 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[7] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn309 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn310 bool if x.PersistentVolumeSource.NFS == nil { yyn310 = true goto LABEL310 } LABEL310: if yyr299 || yy2arr299 { if yyn310 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[8] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn310 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn311 bool if x.PersistentVolumeSource.RBD == nil { yyn311 = true goto LABEL311 } LABEL311: if yyr299 || yy2arr299 { if yyn311 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[9] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn311 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn312 bool if x.PersistentVolumeSource.ISCSI == nil { yyn312 = true goto LABEL312 } LABEL312: if yyr299 || yy2arr299 { if yyn312 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[10] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn312 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn313 bool if x.PersistentVolumeSource.FlexVolume == nil { yyn313 = true goto LABEL313 } LABEL313: if yyr299 || yy2arr299 { if yyn313 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[11] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn313 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn314 bool if x.PersistentVolumeSource.Cinder == nil { yyn314 = true goto LABEL314 } LABEL314: if yyr299 || yy2arr299 { if yyn314 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[12] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn314 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn315 bool if x.PersistentVolumeSource.CephFS == nil { yyn315 = true goto LABEL315 } LABEL315: if yyr299 || yy2arr299 { if yyn315 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[13] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn315 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn316 bool if x.PersistentVolumeSource.FC == nil { yyn316 = true goto LABEL316 } LABEL316: if yyr299 || yy2arr299 { if yyn316 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[14] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn316 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn317 bool if x.PersistentVolumeSource.Flocker == nil { yyn317 = true goto LABEL317 } LABEL317: if yyr299 || yy2arr299 { if yyn317 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[15] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn317 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn318 bool if x.PersistentVolumeSource.AzureFile == nil { yyn318 = true goto LABEL318 } LABEL318: if yyr299 || yy2arr299 { if yyn318 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq299[16] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq299[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn318 { r.EncodeNil() } else { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } } if yyr299 || yy2arr299 { 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 yym319 := z.DecBinary() _ = yym319 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct320 := r.ContainerType() if yyct320 == codecSelferValueTypeMap1234 { yyl320 := r.ReadMapStart() if yyl320 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl320, d) } } else if yyct320 == codecSelferValueTypeArray1234 { yyl320 := r.ReadArrayStart() if yyl320 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl320, 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 yys321Slc = z.DecScratchBuffer() // default slice to decode into _ = yys321Slc var yyhl321 bool = l >= 0 for yyj321 := 0; ; yyj321++ { if yyhl321 { if yyj321 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys321Slc = r.DecodeBytes(yys321Slc, true, true) yys321 := string(yys321Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys321 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv322 := &x.Capacity yyv322.CodecDecodeSelf(d) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv323 := &x.AccessModes yym324 := z.DecBinary() _ = yym324 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv323), 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()) } 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) } default: z.DecStructFieldNotFound(-1, yys321) } // end switch yys321 } // end for yyj321 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 yyj340 int var yyb340 bool var yyhl340 bool = l >= 0 yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv341 := &x.Capacity yyv341.CodecDecodeSelf(d) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv342 := &x.AccessModes yym343 := z.DecBinary() _ = yym343 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv342), d) } } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { 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) } for { yyj340++ if yyhl340 { yyb340 = yyj340 > l } else { yyb340 = r.CheckBreak() } if yyb340 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj340-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym359 := z.EncBinary() _ = yym359 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 yym360 := z.DecBinary() _ = yym360 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 { yym361 := z.EncBinary() _ = yym361 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep362 := !z.EncBinary() yy2arr362 := z.EncBasicHandle().StructToArray var yyq362 [3]bool _, _, _ = yysep362, yyq362, yy2arr362 const yyr362 bool = false yyq362[0] = x.Phase != "" yyq362[1] = x.Message != "" yyq362[2] = x.Reason != "" var yynn362 int if yyr362 || yy2arr362 { r.EncodeArrayStart(3) } else { yynn362 = 0 for _, b := range yyq362 { if b { yynn362++ } } r.EncodeMapStart(yynn362) yynn362 = 0 } if yyr362 || yy2arr362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq362[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq362[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr362 || yy2arr362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq362[1] { yym365 := z.EncBinary() _ = yym365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq362[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym366 := z.EncBinary() _ = yym366 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr362 || yy2arr362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq362[2] { yym368 := z.EncBinary() _ = yym368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq362[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym369 := z.EncBinary() _ = yym369 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr362 || yy2arr362 { 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 yym370 := z.DecBinary() _ = yym370 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct371 := r.ContainerType() if yyct371 == codecSelferValueTypeMap1234 { yyl371 := r.ReadMapStart() if yyl371 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl371, d) } } else if yyct371 == codecSelferValueTypeArray1234 { yyl371 := r.ReadArrayStart() if yyl371 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl371, 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 yys372Slc = z.DecScratchBuffer() // default slice to decode into _ = yys372Slc var yyhl372 bool = l >= 0 for yyj372 := 0; ; yyj372++ { if yyhl372 { if yyj372 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys372Slc = r.DecodeBytes(yys372Slc, true, true) yys372 := string(yys372Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys372 { 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, yys372) } // end switch yys372 } // end for yyj372 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 yyj376 int var yyb376 bool var yyhl376 bool = l >= 0 yyj376++ if yyhl376 { yyb376 = yyj376 > l } else { yyb376 = r.CheckBreak() } if yyb376 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj376++ if yyhl376 { yyb376 = yyj376 > l } else { yyb376 = r.CheckBreak() } if yyb376 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj376++ if yyhl376 { yyb376 = yyj376 > l } else { yyb376 = r.CheckBreak() } if yyb376 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } for { yyj376++ if yyhl376 { yyb376 = yyj376 > l } else { yyb376 = r.CheckBreak() } if yyb376 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj376-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 { yym380 := z.EncBinary() _ = yym380 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep381 := !z.EncBinary() yy2arr381 := z.EncBasicHandle().StructToArray var yyq381 [4]bool _, _, _ = yysep381, yyq381, yy2arr381 const yyr381 bool = false yyq381[0] = true yyq381[2] = x.Kind != "" yyq381[3] = x.APIVersion != "" var yynn381 int if yyr381 || yy2arr381 { r.EncodeArrayStart(4) } else { yynn381 = 1 for _, b := range yyq381 { if b { yynn381++ } } r.EncodeMapStart(yynn381) yynn381 = 0 } if yyr381 || yy2arr381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq381[0] { yy383 := &x.ListMeta yym384 := z.EncBinary() _ = yym384 if false { } else if z.HasExtensions() && z.EncExt(yy383) { } else { z.EncFallback(yy383) } } else { r.EncodeNil() } } else { if yyq381[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy385 := &x.ListMeta yym386 := z.EncBinary() _ = yym386 if false { } else if z.HasExtensions() && z.EncExt(yy385) { } else { z.EncFallback(yy385) } } } if yyr381 || yy2arr381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym388 := z.EncBinary() _ = yym388 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 { yym389 := z.EncBinary() _ = yym389 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } if yyr381 || yy2arr381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq381[2] { yym391 := z.EncBinary() _ = yym391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq381[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym392 := z.EncBinary() _ = yym392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr381 || yy2arr381 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq381[3] { yym394 := z.EncBinary() _ = yym394 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq381[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym395 := z.EncBinary() _ = yym395 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr381 || yy2arr381 { 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 yym396 := z.DecBinary() _ = yym396 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct397 := r.ContainerType() if yyct397 == codecSelferValueTypeMap1234 { yyl397 := r.ReadMapStart() if yyl397 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl397, d) } } else if yyct397 == codecSelferValueTypeArray1234 { yyl397 := r.ReadArrayStart() if yyl397 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl397, 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 yys398Slc = z.DecScratchBuffer() // default slice to decode into _ = yys398Slc var yyhl398 bool = l >= 0 for yyj398 := 0; ; yyj398++ { if yyhl398 { if yyj398 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys398Slc = r.DecodeBytes(yys398Slc, true, true) yys398 := string(yys398Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys398 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv399 := &x.ListMeta yym400 := z.DecBinary() _ = yym400 if false { } else if z.HasExtensions() && z.DecExt(yyv399) { } else { z.DecFallback(yyv399, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv401 := &x.Items yym402 := z.DecBinary() _ = yym402 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv401), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys398) } // end switch yys398 } // end for yyj398 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 yyj405 int var yyb405 bool var yyhl405 bool = l >= 0 yyj405++ if yyhl405 { yyb405 = yyj405 > l } else { yyb405 = r.CheckBreak() } if yyb405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv406 := &x.ListMeta yym407 := z.DecBinary() _ = yym407 if false { } else if z.HasExtensions() && z.DecExt(yyv406) { } else { z.DecFallback(yyv406, false) } } yyj405++ if yyhl405 { yyb405 = yyj405 > l } else { yyb405 = r.CheckBreak() } if yyb405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv408 := &x.Items yym409 := z.DecBinary() _ = yym409 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv408), d) } } yyj405++ if yyhl405 { yyb405 = yyj405 > l } else { yyb405 = r.CheckBreak() } if yyb405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj405++ if yyhl405 { yyb405 = yyj405 > l } else { yyb405 = r.CheckBreak() } if yyb405 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj405++ if yyhl405 { yyb405 = yyj405 > l } else { yyb405 = r.CheckBreak() } if yyb405 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj405-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 { yym412 := z.EncBinary() _ = yym412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep413 := !z.EncBinary() yy2arr413 := z.EncBasicHandle().StructToArray var yyq413 [5]bool _, _, _ = yysep413, yyq413, yy2arr413 const yyr413 bool = false yyq413[0] = true yyq413[1] = true yyq413[2] = true yyq413[3] = x.Kind != "" yyq413[4] = x.APIVersion != "" var yynn413 int if yyr413 || yy2arr413 { r.EncodeArrayStart(5) } else { yynn413 = 0 for _, b := range yyq413 { if b { yynn413++ } } r.EncodeMapStart(yynn413) yynn413 = 0 } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[0] { yy415 := &x.ObjectMeta yy415.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq413[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy416 := &x.ObjectMeta yy416.CodecEncodeSelf(e) } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[1] { yy418 := &x.Spec yy418.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq413[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy419 := &x.Spec yy419.CodecEncodeSelf(e) } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[2] { yy421 := &x.Status yy421.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq413[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy422 := &x.Status yy422.CodecEncodeSelf(e) } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[3] { yym424 := z.EncBinary() _ = yym424 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq413[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym425 := z.EncBinary() _ = yym425 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr413 || yy2arr413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq413[4] { yym427 := z.EncBinary() _ = yym427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq413[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym428 := z.EncBinary() _ = yym428 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr413 || yy2arr413 { 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 yym429 := z.DecBinary() _ = yym429 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct430 := r.ContainerType() if yyct430 == codecSelferValueTypeMap1234 { yyl430 := r.ReadMapStart() if yyl430 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl430, d) } } else if yyct430 == codecSelferValueTypeArray1234 { yyl430 := r.ReadArrayStart() if yyl430 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl430, 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 yys431Slc = z.DecScratchBuffer() // default slice to decode into _ = yys431Slc var yyhl431 bool = l >= 0 for yyj431 := 0; ; yyj431++ { if yyhl431 { if yyj431 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys431Slc = r.DecodeBytes(yys431Slc, true, true) yys431 := string(yys431Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys431 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv432 := &x.ObjectMeta yyv432.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv433 := &x.Spec yyv433.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv434 := &x.Status yyv434.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys431) } // end switch yys431 } // end for yyj431 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 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.ObjectMeta = ObjectMeta{} } else { yyv438 := &x.ObjectMeta yyv438.CodecDecodeSelf(d) } 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.Spec = PersistentVolumeClaimSpec{} } else { yyv439 := &x.Spec yyv439.CodecDecodeSelf(d) } 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.Status = PersistentVolumeClaimStatus{} } else { yyv440 := &x.Status yyv440.CodecDecodeSelf(d) } 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()) } 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 *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym443 := z.EncBinary() _ = yym443 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep444 := !z.EncBinary() yy2arr444 := z.EncBasicHandle().StructToArray var yyq444 [4]bool _, _, _ = yysep444, yyq444, yy2arr444 const yyr444 bool = false yyq444[0] = true yyq444[2] = x.Kind != "" yyq444[3] = x.APIVersion != "" var yynn444 int if yyr444 || yy2arr444 { r.EncodeArrayStart(4) } else { yynn444 = 1 for _, b := range yyq444 { if b { yynn444++ } } r.EncodeMapStart(yynn444) yynn444 = 0 } if yyr444 || yy2arr444 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq444[0] { yy446 := &x.ListMeta yym447 := z.EncBinary() _ = yym447 if false { } else if z.HasExtensions() && z.EncExt(yy446) { } else { z.EncFallback(yy446) } } else { r.EncodeNil() } } else { if yyq444[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy448 := &x.ListMeta yym449 := z.EncBinary() _ = yym449 if false { } else if z.HasExtensions() && z.EncExt(yy448) { } else { z.EncFallback(yy448) } } } if yyr444 || yy2arr444 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym451 := z.EncBinary() _ = yym451 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 { yym452 := z.EncBinary() _ = yym452 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } if yyr444 || yy2arr444 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq444[2] { yym454 := z.EncBinary() _ = yym454 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq444[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym455 := z.EncBinary() _ = yym455 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr444 || yy2arr444 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq444[3] { yym457 := z.EncBinary() _ = yym457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq444[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym458 := z.EncBinary() _ = yym458 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr444 || yy2arr444 { 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 yym459 := z.DecBinary() _ = yym459 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct460 := r.ContainerType() if yyct460 == codecSelferValueTypeMap1234 { yyl460 := r.ReadMapStart() if yyl460 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl460, d) } } else if yyct460 == codecSelferValueTypeArray1234 { yyl460 := r.ReadArrayStart() if yyl460 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl460, 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 yys461Slc = z.DecScratchBuffer() // default slice to decode into _ = yys461Slc var yyhl461 bool = l >= 0 for yyj461 := 0; ; yyj461++ { if yyhl461 { if yyj461 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys461Slc = r.DecodeBytes(yys461Slc, true, true) yys461 := string(yys461Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys461 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv462 := &x.ListMeta yym463 := z.DecBinary() _ = yym463 if false { } else if z.HasExtensions() && z.DecExt(yyv462) { } else { z.DecFallback(yyv462, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv464 := &x.Items yym465 := z.DecBinary() _ = yym465 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv464), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys461) } // end switch yys461 } // end for yyj461 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 yyj468 int var yyb468 bool var yyhl468 bool = l >= 0 yyj468++ if yyhl468 { yyb468 = yyj468 > l } else { yyb468 = r.CheckBreak() } if yyb468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv469 := &x.ListMeta yym470 := z.DecBinary() _ = yym470 if false { } else if z.HasExtensions() && z.DecExt(yyv469) { } else { z.DecFallback(yyv469, false) } } yyj468++ if yyhl468 { yyb468 = yyj468 > l } else { yyb468 = r.CheckBreak() } if yyb468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv471 := &x.Items yym472 := z.DecBinary() _ = yym472 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv471), d) } } yyj468++ if yyhl468 { yyb468 = yyj468 > l } else { yyb468 = r.CheckBreak() } if yyb468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj468++ if yyhl468 { yyb468 = yyj468 > l } else { yyb468 = r.CheckBreak() } if yyb468 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj468++ if yyhl468 { yyb468 = yyj468 > l } else { yyb468 = r.CheckBreak() } if yyb468 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj468-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 { yym475 := z.EncBinary() _ = yym475 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep476 := !z.EncBinary() yy2arr476 := z.EncBasicHandle().StructToArray var yyq476 [3]bool _, _, _ = yysep476, yyq476, yy2arr476 const yyr476 bool = false yyq476[0] = len(x.AccessModes) != 0 yyq476[1] = true yyq476[2] = x.VolumeName != "" var yynn476 int if yyr476 || yy2arr476 { r.EncodeArrayStart(3) } else { yynn476 = 0 for _, b := range yyq476 { if b { yynn476++ } } r.EncodeMapStart(yynn476) yynn476 = 0 } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq476[0] { if x.AccessModes == nil { r.EncodeNil() } else { yym478 := z.EncBinary() _ = yym478 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq476[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym479 := z.EncBinary() _ = yym479 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq476[1] { yy481 := &x.Resources yy481.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq476[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy482 := &x.Resources yy482.CodecEncodeSelf(e) } } if yyr476 || yy2arr476 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq476[2] { yym484 := z.EncBinary() _ = yym484 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq476[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym485 := z.EncBinary() _ = yym485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } if yyr476 || yy2arr476 { 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 yym486 := z.DecBinary() _ = yym486 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct487 := r.ContainerType() if yyct487 == codecSelferValueTypeMap1234 { yyl487 := r.ReadMapStart() if yyl487 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl487, d) } } else if yyct487 == codecSelferValueTypeArray1234 { yyl487 := r.ReadArrayStart() if yyl487 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl487, 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 yys488Slc = z.DecScratchBuffer() // default slice to decode into _ = yys488Slc var yyhl488 bool = l >= 0 for yyj488 := 0; ; yyj488++ { if yyhl488 { if yyj488 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys488Slc = r.DecodeBytes(yys488Slc, true, true) yys488 := string(yys488Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys488 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv489 := &x.AccessModes yym490 := z.DecBinary() _ = yym490 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv489), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv491 := &x.Resources yyv491.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys488) } // end switch yys488 } // end for yyj488 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 yyj493 int var yyb493 bool var yyhl493 bool = l >= 0 yyj493++ if yyhl493 { yyb493 = yyj493 > l } else { yyb493 = r.CheckBreak() } if yyb493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv494 := &x.AccessModes yym495 := z.DecBinary() _ = yym495 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv494), d) } } yyj493++ if yyhl493 { yyb493 = yyj493 > l } else { yyb493 = r.CheckBreak() } if yyb493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv496 := &x.Resources yyv496.CodecDecodeSelf(d) } yyj493++ if yyhl493 { yyb493 = yyj493 > l } else { yyb493 = r.CheckBreak() } if yyb493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } for { yyj493++ if yyhl493 { yyb493 = yyj493 > l } else { yyb493 = r.CheckBreak() } if yyb493 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj493-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 { yym498 := z.EncBinary() _ = yym498 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep499 := !z.EncBinary() yy2arr499 := z.EncBasicHandle().StructToArray var yyq499 [3]bool _, _, _ = yysep499, yyq499, yy2arr499 const yyr499 bool = false yyq499[0] = x.Phase != "" yyq499[1] = len(x.AccessModes) != 0 yyq499[2] = len(x.Capacity) != 0 var yynn499 int if yyr499 || yy2arr499 { r.EncodeArrayStart(3) } else { yynn499 = 0 for _, b := range yyq499 { if b { yynn499++ } } r.EncodeMapStart(yynn499) yynn499 = 0 } if yyr499 || yy2arr499 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq499[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq499[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr499 || yy2arr499 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq499[1] { if x.AccessModes == nil { r.EncodeNil() } else { yym502 := z.EncBinary() _ = yym502 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq499[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym503 := z.EncBinary() _ = yym503 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr499 || yy2arr499 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq499[2] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq499[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 yyr499 || yy2arr499 { 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 yym505 := z.DecBinary() _ = yym505 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct506 := r.ContainerType() if yyct506 == codecSelferValueTypeMap1234 { yyl506 := r.ReadMapStart() if yyl506 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl506, d) } } else if yyct506 == codecSelferValueTypeArray1234 { yyl506 := r.ReadArrayStart() if yyl506 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl506, 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 yys507Slc = z.DecScratchBuffer() // default slice to decode into _ = yys507Slc var yyhl507 bool = l >= 0 for yyj507 := 0; ; yyj507++ { if yyhl507 { if yyj507 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys507Slc = r.DecodeBytes(yys507Slc, true, true) yys507 := string(yys507Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys507 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv509 := &x.AccessModes yym510 := z.DecBinary() _ = yym510 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv509), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv511 := &x.Capacity yyv511.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys507) } // end switch yys507 } // end for yyj507 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 yyj512 int var yyb512 bool var yyhl512 bool = l >= 0 yyj512++ if yyhl512 { yyb512 = yyj512 > l } else { yyb512 = r.CheckBreak() } if yyb512 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } yyj512++ if yyhl512 { yyb512 = yyj512 > l } else { yyb512 = r.CheckBreak() } if yyb512 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv514 := &x.AccessModes yym515 := z.DecBinary() _ = yym515 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv514), d) } } yyj512++ if yyhl512 { yyb512 = yyj512 > l } else { yyb512 = r.CheckBreak() } if yyb512 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv516 := &x.Capacity yyv516.CodecDecodeSelf(d) } for { yyj512++ if yyhl512 { yyb512 = yyj512 > l } else { yyb512 = r.CheckBreak() } if yyb512 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj512-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym517 := z.EncBinary() _ = yym517 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 yym518 := z.DecBinary() _ = yym518 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 yym519 := z.EncBinary() _ = yym519 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 yym520 := z.DecBinary() _ = yym520 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 yym521 := z.EncBinary() _ = yym521 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 yym522 := z.DecBinary() _ = yym522 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 { yym523 := z.EncBinary() _ = yym523 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep524 := !z.EncBinary() yy2arr524 := z.EncBasicHandle().StructToArray var yyq524 [1]bool _, _, _ = yysep524, yyq524, yy2arr524 const yyr524 bool = false var yynn524 int if yyr524 || yy2arr524 { r.EncodeArrayStart(1) } else { yynn524 = 1 for _, b := range yyq524 { if b { yynn524++ } } r.EncodeMapStart(yynn524) yynn524 = 0 } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym526 := z.EncBinary() _ = yym526 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) yym527 := z.EncBinary() _ = yym527 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr524 || yy2arr524 { 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 yym528 := z.DecBinary() _ = yym528 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct529 := r.ContainerType() if yyct529 == codecSelferValueTypeMap1234 { yyl529 := r.ReadMapStart() if yyl529 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl529, d) } } else if yyct529 == codecSelferValueTypeArray1234 { yyl529 := r.ReadArrayStart() if yyl529 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl529, 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 yys530Slc = z.DecScratchBuffer() // default slice to decode into _ = yys530Slc var yyhl530 bool = l >= 0 for yyj530 := 0; ; yyj530++ { if yyhl530 { if yyj530 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys530Slc = r.DecodeBytes(yys530Slc, true, true) yys530 := string(yys530Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys530 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys530) } // end switch yys530 } // end for yyj530 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 yyj532 int var yyb532 bool var yyhl532 bool = l >= 0 yyj532++ if yyhl532 { yyb532 = yyj532 > l } else { yyb532 = r.CheckBreak() } if yyb532 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj532++ if yyhl532 { yyb532 = yyj532 > l } else { yyb532 = r.CheckBreak() } if yyb532 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj532-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 { yym534 := z.EncBinary() _ = yym534 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep535 := !z.EncBinary() yy2arr535 := z.EncBasicHandle().StructToArray var yyq535 [1]bool _, _, _ = yysep535, yyq535, yy2arr535 const yyr535 bool = false yyq535[0] = x.Medium != "" var yynn535 int if yyr535 || yy2arr535 { r.EncodeArrayStart(1) } else { yynn535 = 0 for _, b := range yyq535 { if b { yynn535++ } } r.EncodeMapStart(yynn535) yynn535 = 0 } if yyr535 || yy2arr535 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq535[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq535[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } if yyr535 || yy2arr535 { 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 yym537 := z.DecBinary() _ = yym537 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct538 := r.ContainerType() if yyct538 == codecSelferValueTypeMap1234 { yyl538 := r.ReadMapStart() if yyl538 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl538, d) } } else if yyct538 == codecSelferValueTypeArray1234 { yyl538 := r.ReadArrayStart() if yyl538 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl538, 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 yys539Slc = z.DecScratchBuffer() // default slice to decode into _ = yys539Slc var yyhl539 bool = l >= 0 for yyj539 := 0; ; yyj539++ { if yyhl539 { if yyj539 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys539Slc = r.DecodeBytes(yys539Slc, true, true) yys539 := string(yys539Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys539 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys539) } // end switch yys539 } // end for yyj539 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 yyj541 int var yyb541 bool var yyhl541 bool = l >= 0 yyj541++ if yyhl541 { yyb541 = yyj541 > l } else { yyb541 = r.CheckBreak() } if yyb541 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } for { yyj541++ if yyhl541 { yyb541 = yyj541 > l } else { yyb541 = r.CheckBreak() } if yyb541 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj541-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym543 := z.EncBinary() _ = yym543 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 yym544 := z.DecBinary() _ = yym544 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 yym545 := z.EncBinary() _ = yym545 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 yym546 := z.DecBinary() _ = yym546 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 { yym547 := z.EncBinary() _ = yym547 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep548 := !z.EncBinary() yy2arr548 := z.EncBasicHandle().StructToArray var yyq548 [4]bool _, _, _ = yysep548, yyq548, yy2arr548 const yyr548 bool = false yyq548[1] = x.FSType != "" yyq548[2] = x.Partition != 0 yyq548[3] = x.ReadOnly != false var yynn548 int if yyr548 || yy2arr548 { r.EncodeArrayStart(4) } else { yynn548 = 1 for _, b := range yyq548 { if b { yynn548++ } } r.EncodeMapStart(yynn548) yynn548 = 0 } if yyr548 || yy2arr548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym550 := z.EncBinary() _ = yym550 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) yym551 := z.EncBinary() _ = yym551 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } if yyr548 || yy2arr548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq548[1] { yym553 := z.EncBinary() _ = yym553 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq548[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym554 := z.EncBinary() _ = yym554 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr548 || yy2arr548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq548[2] { yym556 := z.EncBinary() _ = yym556 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq548[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym557 := z.EncBinary() _ = yym557 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr548 || yy2arr548 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq548[3] { yym559 := z.EncBinary() _ = yym559 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq548[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym560 := z.EncBinary() _ = yym560 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr548 || yy2arr548 { 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 yym561 := z.DecBinary() _ = yym561 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct562 := r.ContainerType() if yyct562 == codecSelferValueTypeMap1234 { yyl562 := r.ReadMapStart() if yyl562 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl562, d) } } else if yyct562 == codecSelferValueTypeArray1234 { yyl562 := r.ReadArrayStart() if yyl562 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl562, 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 yys563Slc = z.DecScratchBuffer() // default slice to decode into _ = yys563Slc var yyhl563 bool = l >= 0 for yyj563 := 0; ; yyj563++ { if yyhl563 { if yyj563 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys563Slc = r.DecodeBytes(yys563Slc, true, true) yys563 := string(yys563Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys563 { 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 = int(r.DecodeInt(codecSelferBitsize1234)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys563) } // end switch yys563 } // end for yyj563 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 yyj568 int var yyb568 bool var yyhl568 bool = l >= 0 yyj568++ if yyhl568 { yyb568 = yyj568 > l } else { yyb568 = r.CheckBreak() } if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } yyj568++ if yyhl568 { yyb568 = yyj568 > l } else { yyb568 = r.CheckBreak() } if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj568++ if yyhl568 { yyb568 = yyj568 > l } else { yyb568 = r.CheckBreak() } if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj568++ if yyhl568 { yyb568 = yyj568 > l } else { yyb568 = r.CheckBreak() } if yyb568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj568++ if yyhl568 { yyb568 = yyj568 > l } else { yyb568 = r.CheckBreak() } if yyb568 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj568-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 { yym573 := z.EncBinary() _ = yym573 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep574 := !z.EncBinary() yy2arr574 := z.EncBasicHandle().StructToArray var yyq574 [6]bool _, _, _ = yysep574, yyq574, yy2arr574 const yyr574 bool = false yyq574[0] = x.TargetPortal != "" yyq574[1] = x.IQN != "" yyq574[2] = x.Lun != 0 yyq574[3] = x.ISCSIInterface != "" yyq574[4] = x.FSType != "" yyq574[5] = x.ReadOnly != false var yynn574 int if yyr574 || yy2arr574 { r.EncodeArrayStart(6) } 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] { yym576 := z.EncBinary() _ = yym576 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq574[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym577 := z.EncBinary() _ = yym577 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq574[1] { yym579 := z.EncBinary() _ = yym579 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq574[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym580 := z.EncBinary() _ = yym580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq574[2] { yym582 := z.EncBinary() _ = yym582 if false { } else { r.EncodeInt(int64(x.Lun)) } } else { r.EncodeInt(0) } } else { if yyq574[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym583 := z.EncBinary() _ = yym583 if false { } else { r.EncodeInt(int64(x.Lun)) } } } if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq574[3] { yym585 := z.EncBinary() _ = yym585 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq574[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym586 := z.EncBinary() _ = yym586 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq574[4] { yym588 := z.EncBinary() _ = yym588 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq574[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym589 := z.EncBinary() _ = yym589 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr574 || yy2arr574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq574[5] { yym591 := z.EncBinary() _ = yym591 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq574[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym592 := z.EncBinary() _ = yym592 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr574 || yy2arr574 { 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 yym593 := z.DecBinary() _ = yym593 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct594 := r.ContainerType() if yyct594 == codecSelferValueTypeMap1234 { yyl594 := r.ReadMapStart() if yyl594 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl594, d) } } else if yyct594 == codecSelferValueTypeArray1234 { yyl594 := r.ReadArrayStart() if yyl594 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl594, 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 yys595Slc = z.DecScratchBuffer() // default slice to decode into _ = yys595Slc var yyhl595 bool = l >= 0 for yyj595 := 0; ; yyj595++ { if yyhl595 { if yyj595 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys595Slc = r.DecodeBytes(yys595Slc, true, true) yys595 := string(yys595Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys595 { 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 = int(r.DecodeInt(codecSelferBitsize1234)) } 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, yys595) } // end switch yys595 } // end for yyj595 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 yyj602 int var yyb602 bool var yyhl602 bool = l >= 0 yyj602++ if yyhl602 { yyb602 = yyj602 > l } else { yyb602 = r.CheckBreak() } if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } yyj602++ if yyhl602 { yyb602 = yyj602 > l } else { yyb602 = r.CheckBreak() } if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } yyj602++ if yyhl602 { yyb602 = yyj602 > l } else { yyb602 = r.CheckBreak() } if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int(r.DecodeInt(codecSelferBitsize1234)) } yyj602++ if yyhl602 { yyb602 = yyj602 > l } else { yyb602 = r.CheckBreak() } if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ISCSIInterface = "" } else { x.ISCSIInterface = string(r.DecodeString()) } yyj602++ if yyhl602 { yyb602 = yyj602 > l } else { yyb602 = r.CheckBreak() } if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj602++ if yyhl602 { yyb602 = yyj602 > l } else { yyb602 = r.CheckBreak() } if yyb602 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj602++ if yyhl602 { yyb602 = yyj602 > l } else { yyb602 = r.CheckBreak() } if yyb602 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj602-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 { yym609 := z.EncBinary() _ = yym609 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep610 := !z.EncBinary() yy2arr610 := z.EncBasicHandle().StructToArray var yyq610 [4]bool _, _, _ = yysep610, yyq610, yy2arr610 const yyr610 bool = false yyq610[3] = x.ReadOnly != false var yynn610 int if yyr610 || yy2arr610 { r.EncodeArrayStart(4) } else { yynn610 = 3 for _, b := range yyq610 { if b { yynn610++ } } r.EncodeMapStart(yynn610) yynn610 = 0 } if yyr610 || yy2arr610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym612 := z.EncBinary() _ = yym612 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 { yym613 := z.EncBinary() _ = yym613 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } if yyr610 || yy2arr610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { yy615 := *x.Lun yym616 := z.EncBinary() _ = yym616 if false { } else { r.EncodeInt(int64(yy615)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lun == nil { r.EncodeNil() } else { yy617 := *x.Lun yym618 := z.EncBinary() _ = yym618 if false { } else { r.EncodeInt(int64(yy617)) } } } if yyr610 || yy2arr610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym620 := z.EncBinary() _ = yym620 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym621 := z.EncBinary() _ = yym621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } if yyr610 || yy2arr610 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq610[3] { yym623 := z.EncBinary() _ = yym623 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq610[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym624 := z.EncBinary() _ = yym624 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr610 || yy2arr610 { 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 yym625 := z.DecBinary() _ = yym625 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct626 := r.ContainerType() if yyct626 == codecSelferValueTypeMap1234 { yyl626 := r.ReadMapStart() if yyl626 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl626, d) } } else if yyct626 == codecSelferValueTypeArray1234 { yyl626 := r.ReadArrayStart() if yyl626 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl626, 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 yys627Slc = z.DecScratchBuffer() // default slice to decode into _ = yys627Slc var yyhl627 bool = l >= 0 for yyj627 := 0; ; yyj627++ { if yyhl627 { if yyj627 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys627Slc = r.DecodeBytes(yys627Slc, true, true) yys627 := string(yys627Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys627 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv628 := &x.TargetWWNs yym629 := z.DecBinary() _ = yym629 if false { } else { z.F.DecSliceStringX(yyv628, false, d) } } case "lun": if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int) } yym631 := z.DecBinary() _ = yym631 if false { } else { *((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234)) } } 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, yys627) } // end switch yys627 } // end for yyj627 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 yyj634 int var yyb634 bool var yyhl634 bool = l >= 0 yyj634++ if yyhl634 { yyb634 = yyj634 > l } else { yyb634 = r.CheckBreak() } if yyb634 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv635 := &x.TargetWWNs yym636 := z.DecBinary() _ = yym636 if false { } else { z.F.DecSliceStringX(yyv635, false, d) } } yyj634++ if yyhl634 { yyb634 = yyj634 > l } else { yyb634 = r.CheckBreak() } if yyb634 { 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(int) } yym638 := z.DecBinary() _ = yym638 if false { } else { *((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234)) } } yyj634++ if yyhl634 { yyb634 = yyj634 > l } else { yyb634 = r.CheckBreak() } if yyb634 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj634++ if yyhl634 { yyb634 = yyj634 > l } else { yyb634 = r.CheckBreak() } if yyb634 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj634++ if yyhl634 { yyb634 = yyj634 > l } else { yyb634 = r.CheckBreak() } if yyb634 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj634-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 { yym641 := z.EncBinary() _ = yym641 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep642 := !z.EncBinary() yy2arr642 := z.EncBasicHandle().StructToArray var yyq642 [5]bool _, _, _ = yysep642, yyq642, yy2arr642 const yyr642 bool = false yyq642[1] = x.FSType != "" yyq642[2] = x.SecretRef != nil yyq642[3] = x.ReadOnly != false yyq642[4] = len(x.Options) != 0 var yynn642 int if yyr642 || yy2arr642 { r.EncodeArrayStart(5) } else { yynn642 = 1 for _, b := range yyq642 { if b { yynn642++ } } r.EncodeMapStart(yynn642) yynn642 = 0 } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym644 := z.EncBinary() _ = yym644 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) yym645 := z.EncBinary() _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[1] { yym647 := z.EncBinary() _ = yym647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq642[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym648 := z.EncBinary() _ = yym648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[2] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq642[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 yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[3] { yym651 := z.EncBinary() _ = yym651 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq642[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym652 := z.EncBinary() _ = yym652 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[4] { if x.Options == nil { r.EncodeNil() } else { yym654 := z.EncBinary() _ = yym654 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } else { r.EncodeNil() } } else { if yyq642[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { yym655 := z.EncBinary() _ = yym655 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } } if yyr642 || yy2arr642 { 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 yym656 := z.DecBinary() _ = yym656 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct657 := r.ContainerType() if yyct657 == codecSelferValueTypeMap1234 { yyl657 := r.ReadMapStart() if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl657, d) } } else if yyct657 == codecSelferValueTypeArray1234 { yyl657 := r.ReadArrayStart() if yyl657 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl657, 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 yys658Slc = z.DecScratchBuffer() // default slice to decode into _ = yys658Slc var yyhl658 bool = l >= 0 for yyj658 := 0; ; yyj658++ { if yyhl658 { if yyj658 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys658Slc = r.DecodeBytes(yys658Slc, true, true) yys658 := string(yys658Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys658 { 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 { yyv663 := &x.Options yym664 := z.DecBinary() _ = yym664 if false { } else { z.F.DecMapStringStringX(yyv663, false, d) } } default: z.DecStructFieldNotFound(-1, yys658) } // end switch yys658 } // end for yyj658 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 yyj665 int var yyb665 bool var yyhl665 bool = l >= 0 yyj665++ if yyhl665 { yyb665 = yyj665 > l } else { yyb665 = r.CheckBreak() } if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Driver = "" } else { x.Driver = string(r.DecodeString()) } yyj665++ if yyhl665 { yyb665 = yyj665 > l } else { yyb665 = r.CheckBreak() } if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj665++ if yyhl665 { yyb665 = yyj665 > l } else { yyb665 = r.CheckBreak() } if yyb665 { 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) } yyj665++ if yyhl665 { yyb665 = yyj665 > l } else { yyb665 = r.CheckBreak() } if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj665++ if yyhl665 { yyb665 = yyj665 > l } else { yyb665 = r.CheckBreak() } if yyb665 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Options = nil } else { yyv670 := &x.Options yym671 := z.DecBinary() _ = yym671 if false { } else { z.F.DecMapStringStringX(yyv670, false, d) } } for { yyj665++ if yyhl665 { yyb665 = yyj665 > l } else { yyb665 = r.CheckBreak() } if yyb665 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj665-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 { yym672 := z.EncBinary() _ = yym672 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep673 := !z.EncBinary() yy2arr673 := z.EncBasicHandle().StructToArray var yyq673 [4]bool _, _, _ = yysep673, yyq673, yy2arr673 const yyr673 bool = false yyq673[1] = x.FSType != "" yyq673[2] = x.Partition != 0 yyq673[3] = x.ReadOnly != false var yynn673 int if yyr673 || yy2arr673 { r.EncodeArrayStart(4) } else { yynn673 = 1 for _, b := range yyq673 { if b { yynn673++ } } r.EncodeMapStart(yynn673) yynn673 = 0 } if yyr673 || yy2arr673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym675 := z.EncBinary() _ = yym675 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) yym676 := z.EncBinary() _ = yym676 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr673 || yy2arr673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq673[1] { yym678 := z.EncBinary() _ = yym678 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq673[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym679 := z.EncBinary() _ = yym679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr673 || yy2arr673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq673[2] { yym681 := z.EncBinary() _ = yym681 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq673[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym682 := z.EncBinary() _ = yym682 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr673 || yy2arr673 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq673[3] { yym684 := z.EncBinary() _ = yym684 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq673[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym685 := z.EncBinary() _ = yym685 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr673 || yy2arr673 { 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 yym686 := z.DecBinary() _ = yym686 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct687 := r.ContainerType() if yyct687 == codecSelferValueTypeMap1234 { yyl687 := r.ReadMapStart() if yyl687 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl687, d) } } else if yyct687 == codecSelferValueTypeArray1234 { yyl687 := r.ReadArrayStart() if yyl687 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl687, 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 yys688Slc = z.DecScratchBuffer() // default slice to decode into _ = yys688Slc var yyhl688 bool = l >= 0 for yyj688 := 0; ; yyj688++ { if yyhl688 { if yyj688 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys688Slc = r.DecodeBytes(yys688Slc, true, true) yys688 := string(yys688Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys688 { 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 = int(r.DecodeInt(codecSelferBitsize1234)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys688) } // end switch yys688 } // end for yyj688 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 yyj693 int var yyb693 bool var yyhl693 bool = l >= 0 yyj693++ if yyhl693 { yyb693 = yyj693 > l } else { yyb693 = r.CheckBreak() } if yyb693 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj693++ if yyhl693 { yyb693 = yyj693 > l } else { yyb693 = r.CheckBreak() } if yyb693 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj693++ if yyhl693 { yyb693 = yyj693 > l } else { yyb693 = r.CheckBreak() } if yyb693 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj693++ if yyhl693 { yyb693 = yyj693 > l } else { yyb693 = r.CheckBreak() } if yyb693 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj693++ if yyhl693 { yyb693 = yyj693 > l } else { yyb693 = r.CheckBreak() } if yyb693 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj693-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 { yym698 := z.EncBinary() _ = yym698 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep699 := !z.EncBinary() yy2arr699 := z.EncBasicHandle().StructToArray var yyq699 [3]bool _, _, _ = yysep699, yyq699, yy2arr699 const yyr699 bool = false yyq699[1] = x.Revision != "" yyq699[2] = x.Directory != "" var yynn699 int if yyr699 || yy2arr699 { r.EncodeArrayStart(3) } else { yynn699 = 1 for _, b := range yyq699 { if b { yynn699++ } } r.EncodeMapStart(yynn699) yynn699 = 0 } if yyr699 || yy2arr699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym701 := z.EncBinary() _ = yym701 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) yym702 := z.EncBinary() _ = yym702 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } if yyr699 || yy2arr699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq699[1] { yym704 := z.EncBinary() _ = yym704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq699[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym705 := z.EncBinary() _ = yym705 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } if yyr699 || yy2arr699 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq699[2] { yym707 := z.EncBinary() _ = yym707 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq699[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym708 := z.EncBinary() _ = yym708 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } if yyr699 || yy2arr699 { 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 yym709 := z.DecBinary() _ = yym709 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct710 := r.ContainerType() if yyct710 == codecSelferValueTypeMap1234 { yyl710 := r.ReadMapStart() if yyl710 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl710, d) } } else if yyct710 == codecSelferValueTypeArray1234 { yyl710 := r.ReadArrayStart() if yyl710 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl710, 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 yys711Slc = z.DecScratchBuffer() // default slice to decode into _ = yys711Slc var yyhl711 bool = l >= 0 for yyj711 := 0; ; yyj711++ { if yyhl711 { if yyj711 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys711Slc = r.DecodeBytes(yys711Slc, true, true) yys711 := string(yys711Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys711 { 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, yys711) } // end switch yys711 } // end for yyj711 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 yyj715 int var yyb715 bool var yyhl715 bool = l >= 0 yyj715++ if yyhl715 { yyb715 = yyj715 > l } else { yyb715 = r.CheckBreak() } if yyb715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } yyj715++ if yyhl715 { yyb715 = yyj715 > l } else { yyb715 = r.CheckBreak() } if yyb715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } yyj715++ if yyhl715 { yyb715 = yyj715 > l } else { yyb715 = r.CheckBreak() } if yyb715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Directory = "" } else { x.Directory = string(r.DecodeString()) } for { yyj715++ if yyhl715 { yyb715 = yyj715 > l } else { yyb715 = r.CheckBreak() } if yyb715 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj715-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 { yym719 := z.EncBinary() _ = yym719 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep720 := !z.EncBinary() yy2arr720 := z.EncBasicHandle().StructToArray var yyq720 [1]bool _, _, _ = yysep720, yyq720, yy2arr720 const yyr720 bool = false yyq720[0] = x.SecretName != "" var yynn720 int if yyr720 || yy2arr720 { r.EncodeArrayStart(1) } else { yynn720 = 0 for _, b := range yyq720 { if b { yynn720++ } } r.EncodeMapStart(yynn720) yynn720 = 0 } if yyr720 || yy2arr720 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq720[0] { yym722 := z.EncBinary() _ = yym722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq720[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym723 := z.EncBinary() _ = yym723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } if yyr720 || yy2arr720 { 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 yym724 := z.DecBinary() _ = yym724 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct725 := r.ContainerType() if yyct725 == codecSelferValueTypeMap1234 { yyl725 := r.ReadMapStart() if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl725, d) } } else if yyct725 == codecSelferValueTypeArray1234 { yyl725 := r.ReadArrayStart() if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl725, 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 yys726Slc = z.DecScratchBuffer() // default slice to decode into _ = yys726Slc var yyhl726 bool = l >= 0 for yyj726 := 0; ; yyj726++ { if yyhl726 { if yyj726 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys726Slc = r.DecodeBytes(yys726Slc, true, true) yys726 := string(yys726Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys726 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys726) } // end switch yys726 } // end for yyj726 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 yyj728 int var yyb728 bool var yyhl728 bool = l >= 0 yyj728++ if yyhl728 { yyb728 = yyj728 > l } else { yyb728 = r.CheckBreak() } if yyb728 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } for { yyj728++ if yyhl728 { yyb728 = yyj728 > l } else { yyb728 = r.CheckBreak() } if yyb728 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj728-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 { yym730 := z.EncBinary() _ = yym730 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep731 := !z.EncBinary() yy2arr731 := z.EncBasicHandle().StructToArray var yyq731 [3]bool _, _, _ = yysep731, yyq731, yy2arr731 const yyr731 bool = false yyq731[2] = x.ReadOnly != false var yynn731 int if yyr731 || yy2arr731 { r.EncodeArrayStart(3) } else { yynn731 = 2 for _, b := range yyq731 { if b { yynn731++ } } r.EncodeMapStart(yynn731) yynn731 = 0 } if yyr731 || yy2arr731 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym733 := z.EncBinary() _ = yym733 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) yym734 := z.EncBinary() _ = yym734 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } if yyr731 || yy2arr731 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym736 := z.EncBinary() _ = yym736 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) yym737 := z.EncBinary() _ = yym737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr731 || yy2arr731 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq731[2] { yym739 := z.EncBinary() _ = yym739 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq731[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym740 := z.EncBinary() _ = yym740 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr731 || yy2arr731 { 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 yym741 := z.DecBinary() _ = yym741 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct742 := r.ContainerType() if yyct742 == codecSelferValueTypeMap1234 { yyl742 := r.ReadMapStart() if yyl742 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl742, d) } } else if yyct742 == codecSelferValueTypeArray1234 { yyl742 := r.ReadArrayStart() if yyl742 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl742, 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 yys743Slc = z.DecScratchBuffer() // default slice to decode into _ = yys743Slc var yyhl743 bool = l >= 0 for yyj743 := 0; ; yyj743++ { if yyhl743 { if yyj743 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys743Slc = r.DecodeBytes(yys743Slc, true, true) yys743 := string(yys743Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys743 { 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, yys743) } // end switch yys743 } // end for yyj743 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 yyj747 int var yyb747 bool var yyhl747 bool = l >= 0 yyj747++ if yyhl747 { yyb747 = yyj747 > l } else { yyb747 = r.CheckBreak() } if yyb747 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } yyj747++ if yyhl747 { yyb747 = yyj747 > l } else { yyb747 = r.CheckBreak() } if yyb747 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj747++ if yyhl747 { yyb747 = yyj747 > l } else { yyb747 = r.CheckBreak() } if yyb747 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj747++ if yyhl747 { yyb747 = yyj747 > l } else { yyb747 = r.CheckBreak() } if yyb747 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj747-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 { yym751 := z.EncBinary() _ = yym751 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep752 := !z.EncBinary() yy2arr752 := z.EncBasicHandle().StructToArray var yyq752 [3]bool _, _, _ = yysep752, yyq752, yy2arr752 const yyr752 bool = false yyq752[2] = x.ReadOnly != false var yynn752 int if yyr752 || yy2arr752 { r.EncodeArrayStart(3) } else { yynn752 = 2 for _, b := range yyq752 { if b { yynn752++ } } r.EncodeMapStart(yynn752) yynn752 = 0 } if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym754 := z.EncBinary() _ = yym754 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) yym755 := z.EncBinary() _ = yym755 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym757 := z.EncBinary() _ = yym757 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) yym758 := z.EncBinary() _ = yym758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr752 || yy2arr752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq752[2] { yym760 := z.EncBinary() _ = yym760 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq752[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym761 := z.EncBinary() _ = yym761 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr752 || yy2arr752 { 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 yym762 := z.DecBinary() _ = yym762 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct763 := r.ContainerType() if yyct763 == codecSelferValueTypeMap1234 { yyl763 := r.ReadMapStart() if yyl763 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl763, d) } } else if yyct763 == codecSelferValueTypeArray1234 { yyl763 := r.ReadArrayStart() if yyl763 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl763, 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 yys764Slc = z.DecScratchBuffer() // default slice to decode into _ = yys764Slc var yyhl764 bool = l >= 0 for yyj764 := 0; ; yyj764++ { if yyhl764 { if yyj764 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys764Slc = r.DecodeBytes(yys764Slc, true, true) yys764 := string(yys764Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys764 { 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, yys764) } // end switch yys764 } // end for yyj764 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 yyj768 int var yyb768 bool var yyhl768 bool = l >= 0 yyj768++ if yyhl768 { yyb768 = yyj768 > l } else { yyb768 = r.CheckBreak() } if yyb768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } yyj768++ if yyhl768 { yyb768 = yyj768 > l } else { yyb768 = r.CheckBreak() } if yyb768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj768++ if yyhl768 { yyb768 = yyj768 > l } else { yyb768 = r.CheckBreak() } if yyb768 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj768++ if yyhl768 { yyb768 = yyj768 > l } else { yyb768 = r.CheckBreak() } if yyb768 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj768-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 { yym772 := z.EncBinary() _ = yym772 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep773 := !z.EncBinary() yy2arr773 := z.EncBasicHandle().StructToArray var yyq773 [8]bool _, _, _ = yysep773, yyq773, yy2arr773 const yyr773 bool = false yyq773[2] = x.FSType != "" yyq773[7] = x.ReadOnly != false var yynn773 int if yyr773 || yy2arr773 { r.EncodeArrayStart(8) } else { yynn773 = 6 for _, b := range yyq773 { if b { yynn773++ } } r.EncodeMapStart(yynn773) yynn773 = 0 } if yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym775 := z.EncBinary() _ = yym775 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 { yym776 := z.EncBinary() _ = yym776 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } if yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym778 := z.EncBinary() _ = yym778 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) yym779 := z.EncBinary() _ = yym779 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } if yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq773[2] { yym781 := z.EncBinary() _ = yym781 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq773[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym782 := z.EncBinary() _ = yym782 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym784 := z.EncBinary() _ = yym784 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym785 := z.EncBinary() _ = yym785 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } if yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym787 := z.EncBinary() _ = yym787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym788 := z.EncBinary() _ = yym788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } if yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym790 := z.EncBinary() _ = yym790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym791 := z.EncBinary() _ = yym791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } if yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { 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 yyr773 || yy2arr773 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq773[7] { yym794 := z.EncBinary() _ = yym794 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq773[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym795 := z.EncBinary() _ = yym795 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr773 || yy2arr773 { 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 yym796 := z.DecBinary() _ = yym796 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct797 := r.ContainerType() if yyct797 == codecSelferValueTypeMap1234 { yyl797 := r.ReadMapStart() if yyl797 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl797, d) } } else if yyct797 == codecSelferValueTypeArray1234 { yyl797 := r.ReadArrayStart() if yyl797 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl797, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys798Slc = z.DecScratchBuffer() // default slice to decode into _ = yys798Slc var yyhl798 bool = l >= 0 for yyj798 := 0; ; yyj798++ { if yyhl798 { if yyj798 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys798Slc = r.DecodeBytes(yys798Slc, true, true) yys798 := string(yys798Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys798 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv799 := &x.CephMonitors yym800 := z.DecBinary() _ = yym800 if false { } else { z.F.DecSliceStringX(yyv799, 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, yys798) } // end switch yys798 } // end for yyj798 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 yyj808 int var yyb808 bool var yyhl808 bool = l >= 0 yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv809 := &x.CephMonitors yym810 := z.DecBinary() _ = yym810 if false { } else { z.F.DecSliceStringX(yyv809, false, d) } } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { 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) } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj808-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 { yym818 := z.EncBinary() _ = yym818 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep819 := !z.EncBinary() yy2arr819 := z.EncBasicHandle().StructToArray var yyq819 [3]bool _, _, _ = yysep819, yyq819, yy2arr819 const yyr819 bool = false yyq819[1] = x.FSType != "" yyq819[2] = x.ReadOnly != false var yynn819 int if yyr819 || yy2arr819 { r.EncodeArrayStart(3) } else { yynn819 = 1 for _, b := range yyq819 { if b { yynn819++ } } r.EncodeMapStart(yynn819) yynn819 = 0 } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym821 := z.EncBinary() _ = yym821 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) yym822 := z.EncBinary() _ = yym822 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[1] { yym824 := z.EncBinary() _ = yym824 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq819[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym825 := z.EncBinary() _ = yym825 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr819 || yy2arr819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq819[2] { yym827 := z.EncBinary() _ = yym827 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq819[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym828 := z.EncBinary() _ = yym828 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr819 || yy2arr819 { 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 yym829 := z.DecBinary() _ = yym829 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct830 := r.ContainerType() if yyct830 == codecSelferValueTypeMap1234 { yyl830 := r.ReadMapStart() if yyl830 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl830, d) } } else if yyct830 == codecSelferValueTypeArray1234 { yyl830 := r.ReadArrayStart() if yyl830 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl830, 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 yys831Slc = z.DecScratchBuffer() // default slice to decode into _ = yys831Slc var yyhl831 bool = l >= 0 for yyj831 := 0; ; yyj831++ { if yyhl831 { if yyj831 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys831Slc = r.DecodeBytes(yys831Slc, true, true) yys831 := string(yys831Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys831 { 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, yys831) } // end switch yys831 } // end for yyj831 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 yyj835 int var yyb835 bool var yyhl835 bool = l >= 0 yyj835++ if yyhl835 { yyb835 = yyj835 > l } else { yyb835 = r.CheckBreak() } if yyb835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj835++ if yyhl835 { yyb835 = yyj835 > l } else { yyb835 = r.CheckBreak() } if yyb835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj835++ if yyhl835 { yyb835 = yyj835 > l } else { yyb835 = r.CheckBreak() } if yyb835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj835++ if yyhl835 { yyb835 = yyj835 > l } else { yyb835 = r.CheckBreak() } if yyb835 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj835-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 { yym839 := z.EncBinary() _ = yym839 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep840 := !z.EncBinary() yy2arr840 := z.EncBasicHandle().StructToArray var yyq840 [6]bool _, _, _ = yysep840, yyq840, yy2arr840 const yyr840 bool = false yyq840[1] = x.Path != "" yyq840[2] = x.User != "" yyq840[3] = x.SecretFile != "" yyq840[4] = x.SecretRef != nil yyq840[5] = x.ReadOnly != false var yynn840 int if yyr840 || yy2arr840 { r.EncodeArrayStart(6) } else { yynn840 = 1 for _, b := range yyq840 { if b { yynn840++ } } r.EncodeMapStart(yynn840) yynn840 = 0 } if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { yym842 := z.EncBinary() _ = yym842 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 { yym843 := z.EncBinary() _ = yym843 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq840[1] { yym845 := z.EncBinary() _ = yym845 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq840[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym846 := z.EncBinary() _ = yym846 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq840[2] { yym848 := z.EncBinary() _ = yym848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq840[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym849 := z.EncBinary() _ = yym849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq840[3] { yym851 := z.EncBinary() _ = yym851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq840[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym852 := z.EncBinary() _ = yym852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } if yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq840[4] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq840[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 yyr840 || yy2arr840 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq840[5] { yym855 := z.EncBinary() _ = yym855 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq840[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym856 := z.EncBinary() _ = yym856 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr840 || yy2arr840 { 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 yym857 := z.DecBinary() _ = yym857 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct858 := r.ContainerType() if yyct858 == codecSelferValueTypeMap1234 { yyl858 := r.ReadMapStart() if yyl858 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl858, d) } } else if yyct858 == codecSelferValueTypeArray1234 { yyl858 := r.ReadArrayStart() if yyl858 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl858, 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 yys859Slc = z.DecScratchBuffer() // default slice to decode into _ = yys859Slc var yyhl859 bool = l >= 0 for yyj859 := 0; ; yyj859++ { if yyhl859 { if yyj859 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys859Slc = r.DecodeBytes(yys859Slc, true, true) yys859 := string(yys859Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys859 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv860 := &x.Monitors yym861 := z.DecBinary() _ = yym861 if false { } else { z.F.DecSliceStringX(yyv860, 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, yys859) } // end switch yys859 } // end for yyj859 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 yyj867 int var yyb867 bool var yyhl867 bool = l >= 0 yyj867++ if yyhl867 { yyb867 = yyj867 > l } else { yyb867 = r.CheckBreak() } if yyb867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv868 := &x.Monitors yym869 := z.DecBinary() _ = yym869 if false { } else { z.F.DecSliceStringX(yyv868, false, d) } } yyj867++ if yyhl867 { yyb867 = yyj867 > l } else { yyb867 = r.CheckBreak() } if yyb867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj867++ if yyhl867 { yyb867 = yyj867 > l } else { yyb867 = r.CheckBreak() } if yyb867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj867++ if yyhl867 { yyb867 = yyj867 > l } else { yyb867 = r.CheckBreak() } if yyb867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } yyj867++ if yyhl867 { yyb867 = yyj867 > l } else { yyb867 = r.CheckBreak() } if yyb867 { 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) } yyj867++ if yyhl867 { yyb867 = yyj867 > l } else { yyb867 = r.CheckBreak() } if yyb867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj867++ if yyhl867 { yyb867 = yyj867 > l } else { yyb867 = r.CheckBreak() } if yyb867 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj867-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 { yym875 := z.EncBinary() _ = yym875 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep876 := !z.EncBinary() yy2arr876 := z.EncBasicHandle().StructToArray var yyq876 [1]bool _, _, _ = yysep876, yyq876, yy2arr876 const yyr876 bool = false var yynn876 int if yyr876 || yy2arr876 { r.EncodeArrayStart(1) } else { yynn876 = 1 for _, b := range yyq876 { if b { yynn876++ } } r.EncodeMapStart(yynn876) yynn876 = 0 } if yyr876 || yy2arr876 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym878 := z.EncBinary() _ = yym878 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) yym879 := z.EncBinary() _ = yym879 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } if yyr876 || yy2arr876 { 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 yym880 := z.DecBinary() _ = yym880 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct881 := r.ContainerType() if yyct881 == codecSelferValueTypeMap1234 { yyl881 := r.ReadMapStart() if yyl881 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl881, d) } } else if yyct881 == codecSelferValueTypeArray1234 { yyl881 := r.ReadArrayStart() if yyl881 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl881, 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 yys882Slc = z.DecScratchBuffer() // default slice to decode into _ = yys882Slc var yyhl882 bool = l >= 0 for yyj882 := 0; ; yyj882++ { if yyhl882 { if yyj882 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys882Slc = r.DecodeBytes(yys882Slc, true, true) yys882 := string(yys882Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys882 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys882) } // end switch yys882 } // end for yyj882 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 yyj884 int var yyb884 bool var yyhl884 bool = l >= 0 yyj884++ if yyhl884 { yyb884 = yyj884 > l } else { yyb884 = r.CheckBreak() } if yyb884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } for { yyj884++ if yyhl884 { yyb884 = yyj884 > l } else { yyb884 = r.CheckBreak() } if yyb884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj884-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 { yym886 := z.EncBinary() _ = yym886 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep887 := !z.EncBinary() yy2arr887 := z.EncBasicHandle().StructToArray var yyq887 [1]bool _, _, _ = yysep887, yyq887, yy2arr887 const yyr887 bool = false yyq887[0] = len(x.Items) != 0 var yynn887 int if yyr887 || yy2arr887 { r.EncodeArrayStart(1) } else { yynn887 = 0 for _, b := range yyq887 { if b { yynn887++ } } r.EncodeMapStart(yynn887) yynn887 = 0 } if yyr887 || yy2arr887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq887[0] { if x.Items == nil { r.EncodeNil() } else { yym889 := z.EncBinary() _ = yym889 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq887[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym890 := z.EncBinary() _ = yym890 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } } if yyr887 || yy2arr887 { 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 yym891 := z.DecBinary() _ = yym891 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct892 := r.ContainerType() if yyct892 == codecSelferValueTypeMap1234 { yyl892 := r.ReadMapStart() if yyl892 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl892, d) } } else if yyct892 == codecSelferValueTypeArray1234 { yyl892 := r.ReadArrayStart() if yyl892 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl892, 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 yys893Slc = z.DecScratchBuffer() // default slice to decode into _ = yys893Slc var yyhl893 bool = l >= 0 for yyj893 := 0; ; yyj893++ { if yyhl893 { if yyj893 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys893Slc = r.DecodeBytes(yys893Slc, true, true) yys893 := string(yys893Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys893 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv894 := &x.Items yym895 := z.DecBinary() _ = yym895 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv894), d) } } default: z.DecStructFieldNotFound(-1, yys893) } // end switch yys893 } // end for yyj893 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 yyj896 int var yyb896 bool var yyhl896 bool = l >= 0 yyj896++ if yyhl896 { yyb896 = yyj896 > l } else { yyb896 = r.CheckBreak() } if yyb896 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv897 := &x.Items yym898 := z.DecBinary() _ = yym898 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv897), d) } } for { yyj896++ if yyhl896 { yyb896 = yyj896 > l } else { yyb896 = r.CheckBreak() } if yyb896 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj896-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 { yym899 := z.EncBinary() _ = yym899 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep900 := !z.EncBinary() yy2arr900 := z.EncBasicHandle().StructToArray var yyq900 [2]bool _, _, _ = yysep900, yyq900, yy2arr900 const yyr900 bool = false var yynn900 int if yyr900 || yy2arr900 { r.EncodeArrayStart(2) } else { yynn900 = 2 for _, b := range yyq900 { if b { yynn900++ } } r.EncodeMapStart(yynn900) yynn900 = 0 } if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym902 := z.EncBinary() _ = yym902 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) yym903 := z.EncBinary() _ = yym903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr900 || yy2arr900 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy905 := &x.FieldRef yy905.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy906 := &x.FieldRef yy906.CodecEncodeSelf(e) } if yyr900 || yy2arr900 { 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 yym907 := z.DecBinary() _ = yym907 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct908 := r.ContainerType() if yyct908 == codecSelferValueTypeMap1234 { yyl908 := r.ReadMapStart() if yyl908 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl908, d) } } else if yyct908 == codecSelferValueTypeArray1234 { yyl908 := r.ReadArrayStart() if yyl908 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl908, 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 yys909Slc = z.DecScratchBuffer() // default slice to decode into _ = yys909Slc var yyhl909 bool = l >= 0 for yyj909 := 0; ; yyj909++ { if yyhl909 { if yyj909 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys909Slc = r.DecodeBytes(yys909Slc, true, true) yys909 := string(yys909Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys909 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "fieldRef": if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv911 := &x.FieldRef yyv911.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys909) } // end switch yys909 } // end for yyj909 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 yyj912 int var yyb912 bool var yyhl912 bool = l >= 0 yyj912++ if yyhl912 { yyb912 = yyj912 > l } else { yyb912 = r.CheckBreak() } if yyb912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj912++ if yyhl912 { yyb912 = yyj912 > l } else { yyb912 = r.CheckBreak() } if yyb912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv914 := &x.FieldRef yyv914.CodecDecodeSelf(d) } for { yyj912++ if yyhl912 { yyb912 = yyj912 > l } else { yyb912 = r.CheckBreak() } if yyb912 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj912-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 { yym915 := z.EncBinary() _ = yym915 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep916 := !z.EncBinary() yy2arr916 := z.EncBasicHandle().StructToArray var yyq916 [3]bool _, _, _ = yysep916, yyq916, yy2arr916 const yyr916 bool = false yyq916[2] = x.ReadOnly != false var yynn916 int if yyr916 || yy2arr916 { r.EncodeArrayStart(3) } else { yynn916 = 2 for _, b := range yyq916 { if b { yynn916++ } } r.EncodeMapStart(yynn916) yynn916 = 0 } if yyr916 || yy2arr916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym918 := z.EncBinary() _ = yym918 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) yym919 := z.EncBinary() _ = yym919 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } if yyr916 || yy2arr916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym921 := z.EncBinary() _ = yym921 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) yym922 := z.EncBinary() _ = yym922 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } if yyr916 || yy2arr916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq916[2] { yym924 := z.EncBinary() _ = yym924 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq916[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym925 := z.EncBinary() _ = yym925 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr916 || yy2arr916 { 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 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 *AzureFileVolumeSource) 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 "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, yys928) } // end switch yys928 } // end for yyj928 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 yyj932 int var yyb932 bool var yyhl932 bool = l >= 0 yyj932++ if yyhl932 { yyb932 = yyj932 > l } else { yyb932 = r.CheckBreak() } if yyb932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } yyj932++ if yyhl932 { yyb932 = yyj932 > l } else { yyb932 = r.CheckBreak() } if yyb932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ShareName = "" } else { x.ShareName = string(r.DecodeString()) } yyj932++ if yyhl932 { yyb932 = yyj932 > l } else { yyb932 = r.CheckBreak() } if yyb932 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj932++ if yyhl932 { yyb932 = yyj932 > l } else { yyb932 = r.CheckBreak() } if yyb932 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj932-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 { yym936 := z.EncBinary() _ = yym936 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep937 := !z.EncBinary() yy2arr937 := z.EncBasicHandle().StructToArray var yyq937 [5]bool _, _, _ = yysep937, yyq937, yy2arr937 const yyr937 bool = false yyq937[0] = x.Name != "" yyq937[1] = x.HostPort != 0 yyq937[3] = x.Protocol != "" yyq937[4] = x.HostIP != "" var yynn937 int if yyr937 || yy2arr937 { r.EncodeArrayStart(5) } else { yynn937 = 1 for _, b := range yyq937 { if b { yynn937++ } } r.EncodeMapStart(yynn937) yynn937 = 0 } if yyr937 || yy2arr937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq937[0] { yym939 := z.EncBinary() _ = yym939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq937[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym940 := z.EncBinary() _ = yym940 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr937 || yy2arr937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq937[1] { yym942 := z.EncBinary() _ = yym942 if false { } else { r.EncodeInt(int64(x.HostPort)) } } else { r.EncodeInt(0) } } else { if yyq937[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym943 := z.EncBinary() _ = yym943 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } if yyr937 || yy2arr937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym945 := z.EncBinary() _ = yym945 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym946 := z.EncBinary() _ = yym946 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } if yyr937 || yy2arr937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq937[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq937[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } if yyr937 || yy2arr937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq937[4] { yym949 := z.EncBinary() _ = yym949 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq937[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym950 := z.EncBinary() _ = yym950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr937 || yy2arr937 { 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 yym951 := z.DecBinary() _ = yym951 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct952 := r.ContainerType() if yyct952 == codecSelferValueTypeMap1234 { yyl952 := r.ReadMapStart() if yyl952 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl952, d) } } else if yyct952 == codecSelferValueTypeArray1234 { yyl952 := r.ReadArrayStart() if yyl952 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl952, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys953Slc = z.DecScratchBuffer() // default slice to decode into _ = yys953Slc var yyhl953 bool = l >= 0 for yyj953 := 0; ; yyj953++ { if yyhl953 { if yyj953 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys953Slc = r.DecodeBytes(yys953Slc, true, true) yys953 := string(yys953Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys953 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "hostPort": if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int(r.DecodeInt(codecSelferBitsize1234)) } case "containerPort": if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234)) } 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, yys953) } // end switch yys953 } // end for yyj953 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 yyj959 int var yyb959 bool var yyhl959 bool = l >= 0 yyj959++ if yyhl959 { yyb959 = yyj959 > l } else { yyb959 = r.CheckBreak() } if yyb959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj959++ if yyhl959 { yyb959 = yyj959 > l } else { yyb959 = r.CheckBreak() } if yyb959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj959++ if yyhl959 { yyb959 = yyj959 > l } else { yyb959 = r.CheckBreak() } if yyb959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj959++ if yyhl959 { yyb959 = yyj959 > l } else { yyb959 = r.CheckBreak() } if yyb959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj959++ if yyhl959 { yyb959 = yyj959 > l } else { yyb959 = r.CheckBreak() } if yyb959 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } for { yyj959++ if yyhl959 { yyb959 = yyj959 > l } else { yyb959 = r.CheckBreak() } if yyb959 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj959-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 { yym965 := z.EncBinary() _ = yym965 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep966 := !z.EncBinary() yy2arr966 := z.EncBasicHandle().StructToArray var yyq966 [3]bool _, _, _ = yysep966, yyq966, yy2arr966 const yyr966 bool = false yyq966[1] = x.ReadOnly != false var yynn966 int if yyr966 || yy2arr966 { r.EncodeArrayStart(3) } else { yynn966 = 2 for _, b := range yyq966 { if b { yynn966++ } } r.EncodeMapStart(yynn966) yynn966 = 0 } if yyr966 || yy2arr966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym968 := z.EncBinary() _ = yym968 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) yym969 := z.EncBinary() _ = yym969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr966 || yy2arr966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq966[1] { yym971 := z.EncBinary() _ = yym971 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq966[1] { 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 yyr966 || yy2arr966 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym974 := z.EncBinary() _ = yym974 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) yym975 := z.EncBinary() _ = yym975 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } if yyr966 || yy2arr966 { 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 yym976 := z.DecBinary() _ = yym976 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct977 := r.ContainerType() if yyct977 == codecSelferValueTypeMap1234 { yyl977 := r.ReadMapStart() if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl977, d) } } else if yyct977 == codecSelferValueTypeArray1234 { yyl977 := r.ReadArrayStart() if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl977, 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 yys978Slc = z.DecScratchBuffer() // default slice to decode into _ = yys978Slc var yyhl978 bool = l >= 0 for yyj978 := 0; ; yyj978++ { if yyhl978 { if yyj978 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys978Slc = r.DecodeBytes(yys978Slc, true, true) yys978 := string(yys978Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys978 { 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()) } default: z.DecStructFieldNotFound(-1, yys978) } // end switch yys978 } // end for yyj978 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 yyj982 int var yyb982 bool var yyhl982 bool = l >= 0 yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } for { yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj982-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 { yym986 := z.EncBinary() _ = yym986 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep987 := !z.EncBinary() yy2arr987 := z.EncBasicHandle().StructToArray var yyq987 [3]bool _, _, _ = yysep987, yyq987, yy2arr987 const yyr987 bool = false yyq987[1] = x.Value != "" yyq987[2] = x.ValueFrom != nil var yynn987 int if yyr987 || yy2arr987 { r.EncodeArrayStart(3) } else { yynn987 = 1 for _, b := range yyq987 { if b { yynn987++ } } r.EncodeMapStart(yynn987) yynn987 = 0 } if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym989 := z.EncBinary() _ = yym989 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) yym990 := z.EncBinary() _ = yym990 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq987[1] { yym992 := z.EncBinary() _ = yym992 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq987[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym993 := z.EncBinary() _ = yym993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr987 || yy2arr987 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq987[2] { if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq987[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 yyr987 || yy2arr987 { 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 yym995 := z.DecBinary() _ = yym995 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct996 := r.ContainerType() if yyct996 == codecSelferValueTypeMap1234 { yyl996 := r.ReadMapStart() if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl996, d) } } else if yyct996 == codecSelferValueTypeArray1234 { yyl996 := r.ReadArrayStart() if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl996, 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 yys997Slc = z.DecScratchBuffer() // default slice to decode into _ = yys997Slc var yyhl997 bool = l >= 0 for yyj997 := 0; ; yyj997++ { if yyhl997 { if yyj997 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys997Slc = r.DecodeBytes(yys997Slc, true, true) yys997 := string(yys997Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys997 { 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, yys997) } // end switch yys997 } // end for yyj997 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 yyj1001 int var yyb1001 bool var yyhl1001 bool = l >= 0 yyj1001++ if yyhl1001 { yyb1001 = yyj1001 > l } else { yyb1001 = r.CheckBreak() } if yyb1001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1001++ if yyhl1001 { yyb1001 = yyj1001 > l } else { yyb1001 = r.CheckBreak() } if yyb1001 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1001++ if yyhl1001 { yyb1001 = yyj1001 > l } else { yyb1001 = r.CheckBreak() } if yyb1001 { 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 { yyj1001++ if yyhl1001 { yyb1001 = yyj1001 > l } else { yyb1001 = r.CheckBreak() } if yyb1001 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1001-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 { yym1005 := z.EncBinary() _ = yym1005 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1006 := !z.EncBinary() yy2arr1006 := z.EncBasicHandle().StructToArray var yyq1006 [3]bool _, _, _ = yysep1006, yyq1006, yy2arr1006 const yyr1006 bool = false yyq1006[0] = x.FieldRef != nil yyq1006[1] = x.ConfigMapKeyRef != nil yyq1006[2] = x.SecretKeyRef != nil var yynn1006 int if yyr1006 || yy2arr1006 { r.EncodeArrayStart(3) } else { yynn1006 = 0 for _, b := range yyq1006 { if b { yynn1006++ } } r.EncodeMapStart(yynn1006) yynn1006 = 0 } if yyr1006 || yy2arr1006 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1006[0] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1006[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 yyr1006 || yy2arr1006 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1006[1] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1006[1] { 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 yyr1006 || yy2arr1006 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1006[2] { if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1006[2] { 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 yyr1006 || yy2arr1006 { 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 yym1010 := z.DecBinary() _ = yym1010 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1011 := r.ContainerType() if yyct1011 == codecSelferValueTypeMap1234 { yyl1011 := r.ReadMapStart() if yyl1011 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1011, d) } } else if yyct1011 == codecSelferValueTypeArray1234 { yyl1011 := r.ReadArrayStart() if yyl1011 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1011, 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 yys1012Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1012Slc var yyhl1012 bool = l >= 0 for yyj1012 := 0; ; yyj1012++ { if yyhl1012 { if yyj1012 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1012Slc = r.DecodeBytes(yys1012Slc, true, true) yys1012 := string(yys1012Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1012 { 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 "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, yys1012) } // end switch yys1012 } // end for yyj1012 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 yyj1016 int var yyb1016 bool var yyhl1016 bool = l >= 0 yyj1016++ if yyhl1016 { yyb1016 = yyj1016 > l } else { yyb1016 = r.CheckBreak() } if yyb1016 { 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) } yyj1016++ if yyhl1016 { yyb1016 = yyj1016 > l } else { yyb1016 = r.CheckBreak() } if yyb1016 { 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) } yyj1016++ if yyhl1016 { yyb1016 = yyj1016 > l } else { yyb1016 = r.CheckBreak() } if yyb1016 { 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 { yyj1016++ if yyhl1016 { yyb1016 = yyj1016 > l } else { yyb1016 = r.CheckBreak() } if yyb1016 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1016-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 { yym1020 := z.EncBinary() _ = yym1020 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1021 := !z.EncBinary() yy2arr1021 := z.EncBasicHandle().StructToArray var yyq1021 [2]bool _, _, _ = yysep1021, yyq1021, yy2arr1021 const yyr1021 bool = false var yynn1021 int if yyr1021 || yy2arr1021 { r.EncodeArrayStart(2) } else { yynn1021 = 2 for _, b := range yyq1021 { if b { yynn1021++ } } r.EncodeMapStart(yynn1021) yynn1021 = 0 } if yyr1021 || yy2arr1021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1023 := z.EncBinary() _ = yym1023 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) yym1024 := z.EncBinary() _ = yym1024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr1021 || yy2arr1021 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1026 := z.EncBinary() _ = yym1026 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) yym1027 := z.EncBinary() _ = yym1027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } if yyr1021 || yy2arr1021 { 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 yym1028 := z.DecBinary() _ = yym1028 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1029 := r.ContainerType() if yyct1029 == codecSelferValueTypeMap1234 { yyl1029 := r.ReadMapStart() if yyl1029 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1029, d) } } else if yyct1029 == codecSelferValueTypeArray1234 { yyl1029 := r.ReadArrayStart() if yyl1029 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1029, 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 yys1030Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1030Slc var yyhl1030 bool = l >= 0 for yyj1030 := 0; ; yyj1030++ { if yyhl1030 { if yyj1030 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1030Slc = r.DecodeBytes(yys1030Slc, true, true) yys1030 := string(yys1030Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1030 { 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, yys1030) } // end switch yys1030 } // end for yyj1030 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 yyj1033 int var yyb1033 bool var yyhl1033 bool = l >= 0 yyj1033++ if yyhl1033 { yyb1033 = yyj1033 > l } else { yyb1033 = r.CheckBreak() } if yyb1033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1033++ if yyhl1033 { yyb1033 = yyj1033 > l } else { yyb1033 = r.CheckBreak() } if yyb1033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj1033++ if yyhl1033 { yyb1033 = yyj1033 > l } else { yyb1033 = r.CheckBreak() } if yyb1033 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1033-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 { yym1036 := z.EncBinary() _ = yym1036 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1037 := !z.EncBinary() yy2arr1037 := z.EncBasicHandle().StructToArray var yyq1037 [2]bool _, _, _ = yysep1037, yyq1037, yy2arr1037 const yyr1037 bool = false var yynn1037 int if yyr1037 || yy2arr1037 { r.EncodeArrayStart(2) } else { yynn1037 = 2 for _, b := range yyq1037 { if b { yynn1037++ } } r.EncodeMapStart(yynn1037) yynn1037 = 0 } if yyr1037 || yy2arr1037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1039 := z.EncBinary() _ = yym1039 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) yym1040 := z.EncBinary() _ = yym1040 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1037 || yy2arr1037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1042 := z.EncBinary() _ = yym1042 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) yym1043 := z.EncBinary() _ = yym1043 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1037 || yy2arr1037 { 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 yym1044 := z.DecBinary() _ = yym1044 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1045 := r.ContainerType() if yyct1045 == codecSelferValueTypeMap1234 { yyl1045 := r.ReadMapStart() if yyl1045 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1045, d) } } else if yyct1045 == codecSelferValueTypeArray1234 { yyl1045 := r.ReadArrayStart() if yyl1045 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1045, 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 yys1046Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1046Slc var yyhl1046 bool = l >= 0 for yyj1046 := 0; ; yyj1046++ { if yyhl1046 { if yyj1046 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1046Slc = r.DecodeBytes(yys1046Slc, true, true) yys1046 := string(yys1046Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1046 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1046) } // end switch yys1046 } // end for yyj1046 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 yyj1049 int var yyb1049 bool var yyhl1049 bool = l >= 0 yyj1049++ if yyhl1049 { yyb1049 = yyj1049 > l } else { yyb1049 = r.CheckBreak() } if yyb1049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1049++ if yyhl1049 { yyb1049 = yyj1049 > l } else { yyb1049 = r.CheckBreak() } if yyb1049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj1049++ if yyhl1049 { yyb1049 = yyj1049 > l } else { yyb1049 = r.CheckBreak() } if yyb1049 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1049-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 { yym1052 := z.EncBinary() _ = yym1052 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1053 := !z.EncBinary() yy2arr1053 := z.EncBasicHandle().StructToArray var yyq1053 [2]bool _, _, _ = yysep1053, yyq1053, yy2arr1053 const yyr1053 bool = false var yynn1053 int if yyr1053 || yy2arr1053 { r.EncodeArrayStart(2) } else { yynn1053 = 2 for _, b := range yyq1053 { if b { yynn1053++ } } r.EncodeMapStart(yynn1053) yynn1053 = 0 } if yyr1053 || yy2arr1053 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1055 := z.EncBinary() _ = yym1055 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) yym1056 := z.EncBinary() _ = yym1056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1053 || yy2arr1053 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1058 := z.EncBinary() _ = yym1058 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) yym1059 := z.EncBinary() _ = yym1059 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1053 || yy2arr1053 { 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 yym1060 := z.DecBinary() _ = yym1060 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1061 := r.ContainerType() if yyct1061 == codecSelferValueTypeMap1234 { yyl1061 := r.ReadMapStart() if yyl1061 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1061, d) } } else if yyct1061 == codecSelferValueTypeArray1234 { yyl1061 := r.ReadArrayStart() if yyl1061 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1061, 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 yys1062Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1062Slc var yyhl1062 bool = l >= 0 for yyj1062 := 0; ; yyj1062++ { if yyhl1062 { if yyj1062 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1062Slc = r.DecodeBytes(yys1062Slc, true, true) yys1062 := string(yys1062Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1062 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1062) } // end switch yys1062 } // end for yyj1062 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 yyj1065 int var yyb1065 bool var yyhl1065 bool = l >= 0 yyj1065++ if yyhl1065 { yyb1065 = yyj1065 > l } else { yyb1065 = r.CheckBreak() } if yyb1065 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1065++ if yyhl1065 { yyb1065 = yyj1065 > l } else { yyb1065 = r.CheckBreak() } if yyb1065 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj1065++ if yyhl1065 { yyb1065 = yyj1065 > l } else { yyb1065 = r.CheckBreak() } if yyb1065 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1065-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 { yym1068 := z.EncBinary() _ = yym1068 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1069 := !z.EncBinary() yy2arr1069 := z.EncBasicHandle().StructToArray var yyq1069 [2]bool _, _, _ = yysep1069, yyq1069, yy2arr1069 const yyr1069 bool = false var yynn1069 int if yyr1069 || yy2arr1069 { r.EncodeArrayStart(2) } else { yynn1069 = 2 for _, b := range yyq1069 { if b { yynn1069++ } } r.EncodeMapStart(yynn1069) yynn1069 = 0 } if yyr1069 || yy2arr1069 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1071 := z.EncBinary() _ = yym1071 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) yym1072 := z.EncBinary() _ = yym1072 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1069 || yy2arr1069 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1074 := z.EncBinary() _ = yym1074 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) yym1075 := z.EncBinary() _ = yym1075 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } if yyr1069 || yy2arr1069 { 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 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 *HTTPHeader) 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 "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1078) } // end switch yys1078 } // end for yyj1078 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 yyj1081 int var yyb1081 bool var yyhl1081 bool = l >= 0 yyj1081++ if yyhl1081 { yyb1081 = yyj1081 > l } else { yyb1081 = r.CheckBreak() } if yyb1081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1081++ if yyhl1081 { yyb1081 = yyj1081 > l } else { yyb1081 = r.CheckBreak() } if yyb1081 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } for { yyj1081++ if yyhl1081 { yyb1081 = yyj1081 > l } else { yyb1081 = r.CheckBreak() } if yyb1081 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1081-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 { yym1084 := z.EncBinary() _ = yym1084 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1085 := !z.EncBinary() yy2arr1085 := z.EncBasicHandle().StructToArray var yyq1085 [5]bool _, _, _ = yysep1085, yyq1085, yy2arr1085 const yyr1085 bool = false yyq1085[0] = x.Path != "" yyq1085[1] = true yyq1085[2] = x.Host != "" yyq1085[3] = x.Scheme != "" yyq1085[4] = len(x.HTTPHeaders) != 0 var yynn1085 int if yyr1085 || yy2arr1085 { r.EncodeArrayStart(5) } else { yynn1085 = 0 for _, b := range yyq1085 { if b { yynn1085++ } } r.EncodeMapStart(yynn1085) yynn1085 = 0 } if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1085[0] { yym1087 := z.EncBinary() _ = yym1087 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1085[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1088 := z.EncBinary() _ = yym1088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1085[1] { yy1090 := &x.Port yym1091 := z.EncBinary() _ = yym1091 if false { } else if z.HasExtensions() && z.EncExt(yy1090) { } else if !yym1091 && z.IsJSONHandle() { z.EncJSONMarshal(yy1090) } else { z.EncFallback(yy1090) } } else { r.EncodeNil() } } else { if yyq1085[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1092 := &x.Port yym1093 := z.EncBinary() _ = yym1093 if false { } else if z.HasExtensions() && z.EncExt(yy1092) { } else if !yym1093 && z.IsJSONHandle() { z.EncJSONMarshal(yy1092) } else { z.EncFallback(yy1092) } } } if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1085[2] { yym1095 := z.EncBinary() _ = yym1095 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1085[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1096 := z.EncBinary() _ = yym1096 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1085[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1085[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr1085 || yy2arr1085 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1085[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1099 := z.EncBinary() _ = yym1099 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } else { r.EncodeNil() } } else { if yyq1085[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1100 := z.EncBinary() _ = yym1100 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } } if yyr1085 || yy2arr1085 { 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 yym1101 := z.DecBinary() _ = yym1101 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1102 := r.ContainerType() if yyct1102 == codecSelferValueTypeMap1234 { yyl1102 := r.ReadMapStart() if yyl1102 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1102, d) } } else if yyct1102 == codecSelferValueTypeArray1234 { yyl1102 := r.ReadArrayStart() if yyl1102 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1102, 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 yys1103Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1103Slc var yyhl1103 bool = l >= 0 for yyj1103 := 0; ; yyj1103++ { if yyhl1103 { if yyj1103 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1103Slc = r.DecodeBytes(yys1103Slc, true, true) yys1103 := string(yys1103Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1103 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1105 := &x.Port yym1106 := z.DecBinary() _ = yym1106 if false { } else if z.HasExtensions() && z.DecExt(yyv1105) { } else if !yym1106 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1105) } else { z.DecFallback(yyv1105, 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 { yyv1109 := &x.HTTPHeaders yym1110 := z.DecBinary() _ = yym1110 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1109), d) } } default: z.DecStructFieldNotFound(-1, yys1103) } // end switch yys1103 } // end for yyj1103 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 yyj1111 int var yyb1111 bool var yyhl1111 bool = l >= 0 yyj1111++ if yyhl1111 { yyb1111 = yyj1111 > l } else { yyb1111 = r.CheckBreak() } if yyb1111 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1111++ if yyhl1111 { yyb1111 = yyj1111 > l } else { yyb1111 = r.CheckBreak() } if yyb1111 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1113 := &x.Port yym1114 := z.DecBinary() _ = yym1114 if false { } else if z.HasExtensions() && z.DecExt(yyv1113) { } else if !yym1114 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1113) } else { z.DecFallback(yyv1113, false) } } yyj1111++ if yyhl1111 { yyb1111 = yyj1111 > l } else { yyb1111 = r.CheckBreak() } if yyb1111 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj1111++ if yyhl1111 { yyb1111 = yyj1111 > l } else { yyb1111 = r.CheckBreak() } if yyb1111 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } yyj1111++ if yyhl1111 { yyb1111 = yyj1111 > l } else { yyb1111 = r.CheckBreak() } if yyb1111 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1117 := &x.HTTPHeaders yym1118 := z.DecBinary() _ = yym1118 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1117), d) } } for { yyj1111++ if yyhl1111 { yyb1111 = yyj1111 > l } else { yyb1111 = r.CheckBreak() } if yyb1111 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1111-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1119 := z.EncBinary() _ = yym1119 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 yym1120 := z.DecBinary() _ = yym1120 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 { yym1121 := z.EncBinary() _ = yym1121 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1122 := !z.EncBinary() yy2arr1122 := z.EncBasicHandle().StructToArray var yyq1122 [1]bool _, _, _ = yysep1122, yyq1122, yy2arr1122 const yyr1122 bool = false yyq1122[0] = true var yynn1122 int if yyr1122 || yy2arr1122 { r.EncodeArrayStart(1) } else { yynn1122 = 0 for _, b := range yyq1122 { if b { yynn1122++ } } r.EncodeMapStart(yynn1122) yynn1122 = 0 } if yyr1122 || yy2arr1122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1122[0] { yy1124 := &x.Port yym1125 := z.EncBinary() _ = yym1125 if false { } else if z.HasExtensions() && z.EncExt(yy1124) { } else if !yym1125 && z.IsJSONHandle() { z.EncJSONMarshal(yy1124) } else { z.EncFallback(yy1124) } } else { r.EncodeNil() } } else { if yyq1122[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1126 := &x.Port yym1127 := z.EncBinary() _ = yym1127 if false { } else if z.HasExtensions() && z.EncExt(yy1126) { } else if !yym1127 && z.IsJSONHandle() { z.EncJSONMarshal(yy1126) } else { z.EncFallback(yy1126) } } } if yyr1122 || yy2arr1122 { 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 yym1128 := z.DecBinary() _ = yym1128 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1129 := r.ContainerType() if yyct1129 == codecSelferValueTypeMap1234 { yyl1129 := r.ReadMapStart() if yyl1129 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1129, d) } } else if yyct1129 == codecSelferValueTypeArray1234 { yyl1129 := r.ReadArrayStart() if yyl1129 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1129, 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 yys1130Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1130Slc var yyhl1130 bool = l >= 0 for yyj1130 := 0; ; yyj1130++ { if yyhl1130 { if yyj1130 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1130Slc = r.DecodeBytes(yys1130Slc, true, true) yys1130 := string(yys1130Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1130 { case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1131 := &x.Port yym1132 := z.DecBinary() _ = yym1132 if false { } else if z.HasExtensions() && z.DecExt(yyv1131) { } else if !yym1132 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1131) } else { z.DecFallback(yyv1131, false) } } default: z.DecStructFieldNotFound(-1, yys1130) } // end switch yys1130 } // end for yyj1130 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 yyj1133 int var yyb1133 bool var yyhl1133 bool = l >= 0 yyj1133++ if yyhl1133 { yyb1133 = yyj1133 > l } else { yyb1133 = r.CheckBreak() } if yyb1133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1134 := &x.Port yym1135 := z.DecBinary() _ = yym1135 if false { } else if z.HasExtensions() && z.DecExt(yyv1134) { } else if !yym1135 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1134) } else { z.DecFallback(yyv1134, false) } } for { yyj1133++ if yyhl1133 { yyb1133 = yyj1133 > l } else { yyb1133 = r.CheckBreak() } if yyb1133 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1133-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 { yym1136 := z.EncBinary() _ = yym1136 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1137 := !z.EncBinary() yy2arr1137 := z.EncBasicHandle().StructToArray var yyq1137 [1]bool _, _, _ = yysep1137, yyq1137, yy2arr1137 const yyr1137 bool = false yyq1137[0] = len(x.Command) != 0 var yynn1137 int if yyr1137 || yy2arr1137 { r.EncodeArrayStart(1) } else { yynn1137 = 0 for _, b := range yyq1137 { if b { yynn1137++ } } r.EncodeMapStart(yynn1137) yynn1137 = 0 } if yyr1137 || yy2arr1137 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1137[0] { if x.Command == nil { r.EncodeNil() } else { yym1139 := z.EncBinary() _ = yym1139 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1137[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1140 := z.EncBinary() _ = yym1140 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1137 || yy2arr1137 { 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 yym1141 := z.DecBinary() _ = yym1141 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1142 := r.ContainerType() if yyct1142 == codecSelferValueTypeMap1234 { yyl1142 := r.ReadMapStart() if yyl1142 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1142, d) } } else if yyct1142 == codecSelferValueTypeArray1234 { yyl1142 := r.ReadArrayStart() if yyl1142 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1142, 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 yys1143Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1143Slc var yyhl1143 bool = l >= 0 for yyj1143 := 0; ; yyj1143++ { if yyhl1143 { if yyj1143 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1143Slc = r.DecodeBytes(yys1143Slc, true, true) yys1143 := string(yys1143Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1143 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1144 := &x.Command yym1145 := z.DecBinary() _ = yym1145 if false { } else { z.F.DecSliceStringX(yyv1144, false, d) } } default: z.DecStructFieldNotFound(-1, yys1143) } // end switch yys1143 } // end for yyj1143 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 yyj1146 int var yyb1146 bool var yyhl1146 bool = l >= 0 yyj1146++ if yyhl1146 { yyb1146 = yyj1146 > l } else { yyb1146 = r.CheckBreak() } if yyb1146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1147 := &x.Command yym1148 := z.DecBinary() _ = yym1148 if false { } else { z.F.DecSliceStringX(yyv1147, false, d) } } for { yyj1146++ if yyhl1146 { yyb1146 = yyj1146 > l } else { yyb1146 = r.CheckBreak() } if yyb1146 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1146-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 { yym1149 := z.EncBinary() _ = yym1149 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1150 := !z.EncBinary() yy2arr1150 := z.EncBasicHandle().StructToArray var yyq1150 [8]bool _, _, _ = yysep1150, yyq1150, yy2arr1150 const yyr1150 bool = false yyq1150[0] = x.InitialDelaySeconds != 0 yyq1150[1] = x.TimeoutSeconds != 0 yyq1150[2] = x.PeriodSeconds != 0 yyq1150[3] = x.SuccessThreshold != 0 yyq1150[4] = x.FailureThreshold != 0 yyq1150[5] = x.Handler.Exec != nil && x.Exec != nil yyq1150[6] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq1150[7] = x.Handler.TCPSocket != nil && x.TCPSocket != nil var yynn1150 int if yyr1150 || yy2arr1150 { r.EncodeArrayStart(8) } else { yynn1150 = 0 for _, b := range yyq1150 { if b { yynn1150++ } } r.EncodeMapStart(yynn1150) yynn1150 = 0 } if yyr1150 || yy2arr1150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[0] { yym1152 := z.EncBinary() _ = yym1152 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq1150[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1153 := z.EncBinary() _ = yym1153 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr1150 || yy2arr1150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[1] { yym1155 := z.EncBinary() _ = yym1155 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1150[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1156 := z.EncBinary() _ = yym1156 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr1150 || yy2arr1150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[2] { yym1158 := z.EncBinary() _ = yym1158 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1150[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1159 := z.EncBinary() _ = yym1159 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr1150 || yy2arr1150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[3] { yym1161 := z.EncBinary() _ = yym1161 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1150[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1162 := z.EncBinary() _ = yym1162 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr1150 || yy2arr1150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[4] { yym1164 := z.EncBinary() _ = yym1164 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1150[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1165 := z.EncBinary() _ = yym1165 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } var yyn1166 bool if x.Handler.Exec == nil { yyn1166 = true goto LABEL1166 } LABEL1166: if yyr1150 || yy2arr1150 { if yyn1166 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[5] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1150[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1166 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1167 bool if x.Handler.HTTPGet == nil { yyn1167 = true goto LABEL1167 } LABEL1167: if yyr1150 || yy2arr1150 { if yyn1167 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[6] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1150[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1167 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1168 bool if x.Handler.TCPSocket == nil { yyn1168 = true goto LABEL1168 } LABEL1168: if yyr1150 || yy2arr1150 { if yyn1168 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1150[7] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1150[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1168 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr1150 || yy2arr1150 { 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 yym1169 := z.DecBinary() _ = yym1169 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1170 := r.ContainerType() if yyct1170 == codecSelferValueTypeMap1234 { yyl1170 := r.ReadMapStart() if yyl1170 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1170, d) } } else if yyct1170 == codecSelferValueTypeArray1234 { yyl1170 := r.ReadArrayStart() if yyl1170 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1170, 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 yys1171Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1171Slc var yyhl1171 bool = l >= 0 for yyj1171 := 0; ; yyj1171++ { if yyhl1171 { if yyj1171 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1171Slc = r.DecodeBytes(yys1171Slc, true, true) yys1171 := string(yys1171Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1171 { case "initialDelaySeconds": if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234)) } case "timeoutSeconds": if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } case "periodSeconds": if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } case "successThreshold": if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } case "failureThreshold": if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } 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) } default: z.DecStructFieldNotFound(-1, yys1171) } // end switch yys1171 } // end for yyj1171 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 yyj1180 int var yyb1180 bool var yyhl1180 bool = l >= 0 yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { 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) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { 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) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { 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 { yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1180-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1189 := z.EncBinary() _ = yym1189 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 yym1190 := z.DecBinary() _ = yym1190 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 yym1191 := z.EncBinary() _ = yym1191 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 yym1192 := z.DecBinary() _ = yym1192 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 { yym1193 := z.EncBinary() _ = yym1193 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1194 := !z.EncBinary() yy2arr1194 := z.EncBasicHandle().StructToArray var yyq1194 [2]bool _, _, _ = yysep1194, yyq1194, yy2arr1194 const yyr1194 bool = false yyq1194[0] = len(x.Add) != 0 yyq1194[1] = len(x.Drop) != 0 var yynn1194 int if yyr1194 || yy2arr1194 { r.EncodeArrayStart(2) } else { yynn1194 = 0 for _, b := range yyq1194 { if b { yynn1194++ } } r.EncodeMapStart(yynn1194) yynn1194 = 0 } if yyr1194 || yy2arr1194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1194[0] { if x.Add == nil { r.EncodeNil() } else { yym1196 := z.EncBinary() _ = yym1196 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1194[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1197 := z.EncBinary() _ = yym1197 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1194 || yy2arr1194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1194[1] { if x.Drop == nil { r.EncodeNil() } else { yym1199 := z.EncBinary() _ = yym1199 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1194[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1200 := z.EncBinary() _ = yym1200 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1194 || yy2arr1194 { 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 yym1201 := z.DecBinary() _ = yym1201 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1202 := r.ContainerType() if yyct1202 == codecSelferValueTypeMap1234 { yyl1202 := r.ReadMapStart() if yyl1202 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1202, d) } } else if yyct1202 == codecSelferValueTypeArray1234 { yyl1202 := r.ReadArrayStart() if yyl1202 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1202, 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 yys1203Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1203Slc var yyhl1203 bool = l >= 0 for yyj1203 := 0; ; yyj1203++ { if yyhl1203 { if yyj1203 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1203Slc = r.DecodeBytes(yys1203Slc, true, true) yys1203 := string(yys1203Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1203 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1204 := &x.Add yym1205 := z.DecBinary() _ = yym1205 if false { } else { h.decSliceCapability((*[]Capability)(yyv1204), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1206 := &x.Drop yym1207 := z.DecBinary() _ = yym1207 if false { } else { h.decSliceCapability((*[]Capability)(yyv1206), d) } } default: z.DecStructFieldNotFound(-1, yys1203) } // end switch yys1203 } // end for yyj1203 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 yyj1208 int var yyb1208 bool var yyhl1208 bool = l >= 0 yyj1208++ if yyhl1208 { yyb1208 = yyj1208 > l } else { yyb1208 = r.CheckBreak() } if yyb1208 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1209 := &x.Add yym1210 := z.DecBinary() _ = yym1210 if false { } else { h.decSliceCapability((*[]Capability)(yyv1209), d) } } yyj1208++ if yyhl1208 { yyb1208 = yyj1208 > l } else { yyb1208 = r.CheckBreak() } if yyb1208 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1211 := &x.Drop yym1212 := z.DecBinary() _ = yym1212 if false { } else { h.decSliceCapability((*[]Capability)(yyv1211), d) } } for { yyj1208++ if yyhl1208 { yyb1208 = yyj1208 > l } else { yyb1208 = r.CheckBreak() } if yyb1208 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1208-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 { yym1213 := z.EncBinary() _ = yym1213 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1214 := !z.EncBinary() yy2arr1214 := z.EncBasicHandle().StructToArray var yyq1214 [2]bool _, _, _ = yysep1214, yyq1214, yy2arr1214 const yyr1214 bool = false yyq1214[0] = len(x.Limits) != 0 yyq1214[1] = len(x.Requests) != 0 var yynn1214 int if yyr1214 || yy2arr1214 { r.EncodeArrayStart(2) } else { yynn1214 = 0 for _, b := range yyq1214 { if b { yynn1214++ } } r.EncodeMapStart(yynn1214) yynn1214 = 0 } if yyr1214 || yy2arr1214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1214[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1214[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 yyr1214 || yy2arr1214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1214[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1214[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 yyr1214 || yy2arr1214 { 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 yym1217 := z.DecBinary() _ = yym1217 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1218 := r.ContainerType() if yyct1218 == codecSelferValueTypeMap1234 { yyl1218 := r.ReadMapStart() if yyl1218 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1218, d) } } else if yyct1218 == codecSelferValueTypeArray1234 { yyl1218 := r.ReadArrayStart() if yyl1218 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1218, 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 yys1219Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1219Slc var yyhl1219 bool = l >= 0 for yyj1219 := 0; ; yyj1219++ { if yyhl1219 { if yyj1219 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1219Slc = r.DecodeBytes(yys1219Slc, true, true) yys1219 := string(yys1219Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1219 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1220 := &x.Limits yyv1220.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1221 := &x.Requests yyv1221.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1219) } // end switch yys1219 } // end for yyj1219 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 yyj1222 int var yyb1222 bool var yyhl1222 bool = l >= 0 yyj1222++ if yyhl1222 { yyb1222 = yyj1222 > l } else { yyb1222 = r.CheckBreak() } if yyb1222 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1223 := &x.Limits yyv1223.CodecDecodeSelf(d) } yyj1222++ if yyhl1222 { yyb1222 = yyj1222 > l } else { yyb1222 = r.CheckBreak() } if yyb1222 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1224 := &x.Requests yyv1224.CodecDecodeSelf(d) } for { yyj1222++ if yyhl1222 { yyb1222 = yyj1222 > l } else { yyb1222 = r.CheckBreak() } if yyb1222 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1222-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 { yym1225 := z.EncBinary() _ = yym1225 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1226 := !z.EncBinary() yy2arr1226 := z.EncBasicHandle().StructToArray var yyq1226 [18]bool _, _, _ = yysep1226, yyq1226, yy2arr1226 const yyr1226 bool = false yyq1226[2] = len(x.Command) != 0 yyq1226[3] = len(x.Args) != 0 yyq1226[4] = x.WorkingDir != "" yyq1226[5] = len(x.Ports) != 0 yyq1226[6] = len(x.Env) != 0 yyq1226[7] = true yyq1226[8] = len(x.VolumeMounts) != 0 yyq1226[9] = x.LivenessProbe != nil yyq1226[10] = x.ReadinessProbe != nil yyq1226[11] = x.Lifecycle != nil yyq1226[12] = x.TerminationMessagePath != "" yyq1226[14] = x.SecurityContext != nil yyq1226[15] = x.Stdin != false yyq1226[16] = x.StdinOnce != false yyq1226[17] = x.TTY != false var yynn1226 int if yyr1226 || yy2arr1226 { r.EncodeArrayStart(18) } else { yynn1226 = 3 for _, b := range yyq1226 { if b { yynn1226++ } } r.EncodeMapStart(yynn1226) yynn1226 = 0 } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1228 := z.EncBinary() _ = yym1228 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) yym1229 := z.EncBinary() _ = yym1229 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1231 := z.EncBinary() _ = yym1231 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) yym1232 := z.EncBinary() _ = yym1232 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[2] { if x.Command == nil { r.EncodeNil() } else { yym1234 := z.EncBinary() _ = yym1234 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1226[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1235 := z.EncBinary() _ = yym1235 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[3] { if x.Args == nil { r.EncodeNil() } else { yym1237 := z.EncBinary() _ = yym1237 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1226[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1238 := z.EncBinary() _ = yym1238 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[4] { yym1240 := z.EncBinary() _ = yym1240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1226[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1241 := z.EncBinary() _ = yym1241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[5] { if x.Ports == nil { r.EncodeNil() } else { yym1243 := z.EncBinary() _ = yym1243 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1226[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1244 := z.EncBinary() _ = yym1244 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[6] { if x.Env == nil { r.EncodeNil() } else { yym1246 := z.EncBinary() _ = yym1246 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1226[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1247 := z.EncBinary() _ = yym1247 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[7] { yy1249 := &x.Resources yy1249.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1226[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1250 := &x.Resources yy1250.CodecEncodeSelf(e) } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1252 := z.EncBinary() _ = yym1252 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1226[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1253 := z.EncBinary() _ = yym1253 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1226[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 yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1226[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 yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1226[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 yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[12] { yym1258 := z.EncBinary() _ = yym1258 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1226[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1259 := z.EncBinary() _ = yym1259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1226 || yy2arr1226 { 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 yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1226[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 yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[15] { yym1263 := z.EncBinary() _ = yym1263 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1226[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1264 := z.EncBinary() _ = yym1264 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[16] { yym1266 := z.EncBinary() _ = yym1266 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1226[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1267 := z.EncBinary() _ = yym1267 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1226 || yy2arr1226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1226[17] { yym1269 := z.EncBinary() _ = yym1269 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1226[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1270 := z.EncBinary() _ = yym1270 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1226 || yy2arr1226 { 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 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 *Container) 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 "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 { yyv1276 := &x.Command yym1277 := z.DecBinary() _ = yym1277 if false { } else { z.F.DecSliceStringX(yyv1276, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1278 := &x.Args yym1279 := z.DecBinary() _ = yym1279 if false { } else { z.F.DecSliceStringX(yyv1278, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1281 := &x.Ports yym1282 := z.DecBinary() _ = yym1282 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1281), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1283 := &x.Env yym1284 := z.DecBinary() _ = yym1284 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1283), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1285 := &x.Resources yyv1285.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1286 := &x.VolumeMounts yym1287 := z.DecBinary() _ = yym1287 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1286), 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, yys1273) } // end switch yys1273 } // end for yyj1273 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 yyj1297 int var yyb1297 bool var yyhl1297 bool = l >= 0 yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1300 := &x.Command yym1301 := z.DecBinary() _ = yym1301 if false { } else { z.F.DecSliceStringX(yyv1300, false, d) } } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1302 := &x.Args yym1303 := z.DecBinary() _ = yym1303 if false { } else { z.F.DecSliceStringX(yyv1302, false, d) } } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1305 := &x.Ports yym1306 := z.DecBinary() _ = yym1306 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1305), d) } } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1307 := &x.Env yym1308 := z.DecBinary() _ = yym1308 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1307), d) } } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1309 := &x.Resources yyv1309.CodecDecodeSelf(d) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1310 := &x.VolumeMounts yym1311 := z.DecBinary() _ = yym1311 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1310), d) } } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { 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) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { 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) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { 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) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { 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) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1297++ if yyhl1297 { yyb1297 = yyj1297 > l } else { yyb1297 = r.CheckBreak() } if yyb1297 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1297-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 { yym1321 := z.EncBinary() _ = yym1321 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1322 := !z.EncBinary() yy2arr1322 := z.EncBasicHandle().StructToArray var yyq1322 [3]bool _, _, _ = yysep1322, yyq1322, yy2arr1322 const yyr1322 bool = false yyq1322[0] = x.Exec != nil yyq1322[1] = x.HTTPGet != nil yyq1322[2] = x.TCPSocket != nil var yynn1322 int if yyr1322 || yy2arr1322 { r.EncodeArrayStart(3) } else { yynn1322 = 0 for _, b := range yyq1322 { if b { yynn1322++ } } r.EncodeMapStart(yynn1322) yynn1322 = 0 } if yyr1322 || yy2arr1322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1322[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1322[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 yyr1322 || yy2arr1322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1322[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1322[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 yyr1322 || yy2arr1322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1322[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1322[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 yyr1322 || yy2arr1322 { 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 yym1326 := z.DecBinary() _ = yym1326 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1327 := r.ContainerType() if yyct1327 == codecSelferValueTypeMap1234 { yyl1327 := r.ReadMapStart() if yyl1327 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1327, d) } } else if yyct1327 == codecSelferValueTypeArray1234 { yyl1327 := r.ReadArrayStart() if yyl1327 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1327, 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 yys1328Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1328Slc var yyhl1328 bool = l >= 0 for yyj1328 := 0; ; yyj1328++ { if yyhl1328 { if yyj1328 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1328Slc = r.DecodeBytes(yys1328Slc, true, true) yys1328 := string(yys1328Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1328 { 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, yys1328) } // end switch yys1328 } // end for yyj1328 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 yyj1332 int var yyb1332 bool var yyhl1332 bool = l >= 0 yyj1332++ if yyhl1332 { yyb1332 = yyj1332 > l } else { yyb1332 = r.CheckBreak() } if yyb1332 { 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) } yyj1332++ if yyhl1332 { yyb1332 = yyj1332 > l } else { yyb1332 = r.CheckBreak() } if yyb1332 { 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) } yyj1332++ if yyhl1332 { yyb1332 = yyj1332 > l } else { yyb1332 = r.CheckBreak() } if yyb1332 { 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 { yyj1332++ if yyhl1332 { yyb1332 = yyj1332 > l } else { yyb1332 = r.CheckBreak() } if yyb1332 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1332-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 { yym1336 := z.EncBinary() _ = yym1336 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1337 := !z.EncBinary() yy2arr1337 := z.EncBasicHandle().StructToArray var yyq1337 [2]bool _, _, _ = yysep1337, yyq1337, yy2arr1337 const yyr1337 bool = false yyq1337[0] = x.PostStart != nil yyq1337[1] = x.PreStop != nil var yynn1337 int if yyr1337 || yy2arr1337 { r.EncodeArrayStart(2) } else { yynn1337 = 0 for _, b := range yyq1337 { if b { yynn1337++ } } r.EncodeMapStart(yynn1337) yynn1337 = 0 } if yyr1337 || yy2arr1337 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1337[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1337[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 yyr1337 || yy2arr1337 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1337[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1337[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 yyr1337 || yy2arr1337 { 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 yym1340 := z.DecBinary() _ = yym1340 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1341 := r.ContainerType() if yyct1341 == codecSelferValueTypeMap1234 { yyl1341 := r.ReadMapStart() if yyl1341 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1341, d) } } else if yyct1341 == codecSelferValueTypeArray1234 { yyl1341 := r.ReadArrayStart() if yyl1341 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1341, 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 yys1342Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1342Slc var yyhl1342 bool = l >= 0 for yyj1342 := 0; ; yyj1342++ { if yyhl1342 { if yyj1342 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1342Slc = r.DecodeBytes(yys1342Slc, true, true) yys1342 := string(yys1342Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1342 { 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, yys1342) } // end switch yys1342 } // end for yyj1342 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 yyj1345 int var yyb1345 bool var yyhl1345 bool = l >= 0 yyj1345++ if yyhl1345 { yyb1345 = yyj1345 > l } else { yyb1345 = r.CheckBreak() } if yyb1345 { 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) } yyj1345++ if yyhl1345 { yyb1345 = yyj1345 > l } else { yyb1345 = r.CheckBreak() } if yyb1345 { 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 { yyj1345++ if yyhl1345 { yyb1345 = yyj1345 > l } else { yyb1345 = r.CheckBreak() } if yyb1345 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1345-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1348 := z.EncBinary() _ = yym1348 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 yym1349 := z.DecBinary() _ = yym1349 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 { yym1350 := z.EncBinary() _ = yym1350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1351 := !z.EncBinary() yy2arr1351 := z.EncBasicHandle().StructToArray var yyq1351 [2]bool _, _, _ = yysep1351, yyq1351, yy2arr1351 const yyr1351 bool = false yyq1351[0] = x.Reason != "" yyq1351[1] = x.Message != "" var yynn1351 int if yyr1351 || yy2arr1351 { r.EncodeArrayStart(2) } else { yynn1351 = 0 for _, b := range yyq1351 { if b { yynn1351++ } } r.EncodeMapStart(yynn1351) yynn1351 = 0 } if yyr1351 || yy2arr1351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1351[0] { yym1353 := z.EncBinary() _ = yym1353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1351[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1354 := z.EncBinary() _ = yym1354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1351 || yy2arr1351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1351[1] { yym1356 := z.EncBinary() _ = yym1356 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1351[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1357 := z.EncBinary() _ = yym1357 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1351 || yy2arr1351 { 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 yym1358 := z.DecBinary() _ = yym1358 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1359 := r.ContainerType() if yyct1359 == codecSelferValueTypeMap1234 { yyl1359 := r.ReadMapStart() if yyl1359 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1359, d) } } else if yyct1359 == codecSelferValueTypeArray1234 { yyl1359 := r.ReadArrayStart() if yyl1359 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1359, 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 yys1360Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1360Slc var yyhl1360 bool = l >= 0 for yyj1360 := 0; ; yyj1360++ { if yyhl1360 { if yyj1360 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1360Slc = r.DecodeBytes(yys1360Slc, true, true) yys1360 := string(yys1360Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1360 { 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, yys1360) } // end switch yys1360 } // end for yyj1360 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 yyj1363 int var yyb1363 bool var yyhl1363 bool = l >= 0 yyj1363++ if yyhl1363 { yyb1363 = yyj1363 > l } else { yyb1363 = r.CheckBreak() } if yyb1363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1363++ if yyhl1363 { yyb1363 = yyj1363 > l } else { yyb1363 = r.CheckBreak() } if yyb1363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1363++ if yyhl1363 { yyb1363 = yyj1363 > l } else { yyb1363 = r.CheckBreak() } if yyb1363 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1363-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 { yym1366 := z.EncBinary() _ = yym1366 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1367 := !z.EncBinary() yy2arr1367 := z.EncBasicHandle().StructToArray var yyq1367 [1]bool _, _, _ = yysep1367, yyq1367, yy2arr1367 const yyr1367 bool = false yyq1367[0] = true var yynn1367 int if yyr1367 || yy2arr1367 { r.EncodeArrayStart(1) } else { yynn1367 = 0 for _, b := range yyq1367 { if b { yynn1367++ } } r.EncodeMapStart(yynn1367) yynn1367 = 0 } if yyr1367 || yy2arr1367 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1367[0] { yy1369 := &x.StartedAt yym1370 := z.EncBinary() _ = yym1370 if false { } else if z.HasExtensions() && z.EncExt(yy1369) { } else if yym1370 { z.EncBinaryMarshal(yy1369) } else if !yym1370 && z.IsJSONHandle() { z.EncJSONMarshal(yy1369) } else { z.EncFallback(yy1369) } } else { r.EncodeNil() } } else { if yyq1367[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1371 := &x.StartedAt yym1372 := z.EncBinary() _ = yym1372 if false { } else if z.HasExtensions() && z.EncExt(yy1371) { } else if yym1372 { z.EncBinaryMarshal(yy1371) } else if !yym1372 && z.IsJSONHandle() { z.EncJSONMarshal(yy1371) } else { z.EncFallback(yy1371) } } } if yyr1367 || yy2arr1367 { 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 yym1373 := z.DecBinary() _ = yym1373 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1374 := r.ContainerType() if yyct1374 == codecSelferValueTypeMap1234 { yyl1374 := r.ReadMapStart() if yyl1374 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1374, d) } } else if yyct1374 == codecSelferValueTypeArray1234 { yyl1374 := r.ReadArrayStart() if yyl1374 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1374, 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 yys1375Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1375Slc var yyhl1375 bool = l >= 0 for yyj1375 := 0; ; yyj1375++ { if yyhl1375 { if yyj1375 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1375Slc = r.DecodeBytes(yys1375Slc, true, true) yys1375 := string(yys1375Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1375 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1376 := &x.StartedAt yym1377 := z.DecBinary() _ = yym1377 if false { } else if z.HasExtensions() && z.DecExt(yyv1376) { } else if yym1377 { z.DecBinaryUnmarshal(yyv1376) } else if !yym1377 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1376) } else { z.DecFallback(yyv1376, false) } } default: z.DecStructFieldNotFound(-1, yys1375) } // end switch yys1375 } // end for yyj1375 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 yyj1378 int var yyb1378 bool var yyhl1378 bool = l >= 0 yyj1378++ if yyhl1378 { yyb1378 = yyj1378 > l } else { yyb1378 = r.CheckBreak() } if yyb1378 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1379 := &x.StartedAt yym1380 := z.DecBinary() _ = yym1380 if false { } else if z.HasExtensions() && z.DecExt(yyv1379) { } else if yym1380 { z.DecBinaryUnmarshal(yyv1379) } else if !yym1380 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1379) } else { z.DecFallback(yyv1379, false) } } for { yyj1378++ if yyhl1378 { yyb1378 = yyj1378 > l } else { yyb1378 = r.CheckBreak() } if yyb1378 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1378-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 { yym1381 := z.EncBinary() _ = yym1381 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1382 := !z.EncBinary() yy2arr1382 := z.EncBasicHandle().StructToArray var yyq1382 [7]bool _, _, _ = yysep1382, yyq1382, yy2arr1382 const yyr1382 bool = false yyq1382[1] = x.Signal != 0 yyq1382[2] = x.Reason != "" yyq1382[3] = x.Message != "" yyq1382[4] = true yyq1382[5] = true yyq1382[6] = x.ContainerID != "" var yynn1382 int if yyr1382 || yy2arr1382 { r.EncodeArrayStart(7) } else { yynn1382 = 1 for _, b := range yyq1382 { if b { yynn1382++ } } r.EncodeMapStart(yynn1382) yynn1382 = 0 } if yyr1382 || yy2arr1382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1384 := z.EncBinary() _ = yym1384 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1385 := z.EncBinary() _ = yym1385 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1382 || yy2arr1382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1382[1] { yym1387 := z.EncBinary() _ = yym1387 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1382[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1388 := z.EncBinary() _ = yym1388 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1382 || yy2arr1382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1382[2] { yym1390 := z.EncBinary() _ = yym1390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1382[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1391 := z.EncBinary() _ = yym1391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1382 || yy2arr1382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1382[3] { yym1393 := z.EncBinary() _ = yym1393 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1382[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1394 := z.EncBinary() _ = yym1394 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1382 || yy2arr1382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1382[4] { yy1396 := &x.StartedAt yym1397 := z.EncBinary() _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(yy1396) { } else if yym1397 { z.EncBinaryMarshal(yy1396) } else if !yym1397 && z.IsJSONHandle() { z.EncJSONMarshal(yy1396) } else { z.EncFallback(yy1396) } } else { r.EncodeNil() } } else { if yyq1382[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1398 := &x.StartedAt yym1399 := z.EncBinary() _ = yym1399 if false { } else if z.HasExtensions() && z.EncExt(yy1398) { } else if yym1399 { z.EncBinaryMarshal(yy1398) } else if !yym1399 && z.IsJSONHandle() { z.EncJSONMarshal(yy1398) } else { z.EncFallback(yy1398) } } } if yyr1382 || yy2arr1382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1382[5] { yy1401 := &x.FinishedAt yym1402 := z.EncBinary() _ = yym1402 if false { } else if z.HasExtensions() && z.EncExt(yy1401) { } else if yym1402 { z.EncBinaryMarshal(yy1401) } else if !yym1402 && z.IsJSONHandle() { z.EncJSONMarshal(yy1401) } else { z.EncFallback(yy1401) } } else { r.EncodeNil() } } else { if yyq1382[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1403 := &x.FinishedAt yym1404 := z.EncBinary() _ = yym1404 if false { } else if z.HasExtensions() && z.EncExt(yy1403) { } else if yym1404 { z.EncBinaryMarshal(yy1403) } else if !yym1404 && z.IsJSONHandle() { z.EncJSONMarshal(yy1403) } else { z.EncFallback(yy1403) } } } if yyr1382 || yy2arr1382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1382[6] { yym1406 := z.EncBinary() _ = yym1406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1382[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1407 := z.EncBinary() _ = yym1407 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1382 || yy2arr1382 { 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 yym1408 := z.DecBinary() _ = yym1408 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1409 := r.ContainerType() if yyct1409 == codecSelferValueTypeMap1234 { yyl1409 := r.ReadMapStart() if yyl1409 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1409, d) } } else if yyct1409 == codecSelferValueTypeArray1234 { yyl1409 := r.ReadArrayStart() if yyl1409 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1409, 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 yys1410Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1410Slc var yyhl1410 bool = l >= 0 for yyj1410 := 0; ; yyj1410++ { if yyhl1410 { if yyj1410 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1410Slc = r.DecodeBytes(yys1410Slc, true, true) yys1410 := string(yys1410Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1410 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234)) } case "signal": if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int(r.DecodeInt(codecSelferBitsize1234)) } 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 { yyv1415 := &x.StartedAt yym1416 := z.DecBinary() _ = yym1416 if false { } else if z.HasExtensions() && z.DecExt(yyv1415) { } else if yym1416 { z.DecBinaryUnmarshal(yyv1415) } else if !yym1416 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1415) } else { z.DecFallback(yyv1415, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1417 := &x.FinishedAt yym1418 := z.DecBinary() _ = yym1418 if false { } else if z.HasExtensions() && z.DecExt(yyv1417) { } else if yym1418 { z.DecBinaryUnmarshal(yyv1417) } else if !yym1418 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1417) } else { z.DecFallback(yyv1417, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1410) } // end switch yys1410 } // end for yyj1410 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 yyj1420 int var yyb1420 bool var yyhl1420 bool = l >= 0 yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1425 := &x.StartedAt yym1426 := z.DecBinary() _ = yym1426 if false { } else if z.HasExtensions() && z.DecExt(yyv1425) { } else if yym1426 { z.DecBinaryUnmarshal(yyv1425) } else if !yym1426 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1425) } else { z.DecFallback(yyv1425, false) } } yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1427 := &x.FinishedAt yym1428 := z.DecBinary() _ = yym1428 if false { } else if z.HasExtensions() && z.DecExt(yyv1427) { } else if yym1428 { z.DecBinaryUnmarshal(yyv1427) } else if !yym1428 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1427) } else { z.DecFallback(yyv1427, false) } } yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1420++ if yyhl1420 { yyb1420 = yyj1420 > l } else { yyb1420 = r.CheckBreak() } if yyb1420 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1420-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 { yym1430 := z.EncBinary() _ = yym1430 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1431 := !z.EncBinary() yy2arr1431 := z.EncBasicHandle().StructToArray var yyq1431 [3]bool _, _, _ = yysep1431, yyq1431, yy2arr1431 const yyr1431 bool = false yyq1431[0] = x.Waiting != nil yyq1431[1] = x.Running != nil yyq1431[2] = x.Terminated != nil var yynn1431 int if yyr1431 || yy2arr1431 { r.EncodeArrayStart(3) } else { yynn1431 = 0 for _, b := range yyq1431 { if b { yynn1431++ } } r.EncodeMapStart(yynn1431) yynn1431 = 0 } if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1431[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 yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1431[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 yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1431[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 yyr1431 || yy2arr1431 { 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 yym1435 := z.DecBinary() _ = yym1435 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1436 := r.ContainerType() if yyct1436 == codecSelferValueTypeMap1234 { yyl1436 := r.ReadMapStart() if yyl1436 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1436, d) } } else if yyct1436 == codecSelferValueTypeArray1234 { yyl1436 := r.ReadArrayStart() if yyl1436 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1436, 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 yys1437Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1437Slc var yyhl1437 bool = l >= 0 for yyj1437 := 0; ; yyj1437++ { if yyhl1437 { if yyj1437 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1437Slc = r.DecodeBytes(yys1437Slc, true, true) yys1437 := string(yys1437Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1437 { 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, yys1437) } // end switch yys1437 } // end for yyj1437 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 yyj1441 int var yyb1441 bool var yyhl1441 bool = l >= 0 yyj1441++ if yyhl1441 { yyb1441 = yyj1441 > l } else { yyb1441 = r.CheckBreak() } if yyb1441 { 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) } yyj1441++ if yyhl1441 { yyb1441 = yyj1441 > l } else { yyb1441 = r.CheckBreak() } if yyb1441 { 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) } yyj1441++ if yyhl1441 { yyb1441 = yyj1441 > l } else { yyb1441 = r.CheckBreak() } if yyb1441 { 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 { yyj1441++ if yyhl1441 { yyb1441 = yyj1441 > l } else { yyb1441 = r.CheckBreak() } if yyb1441 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1441-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 { yym1445 := z.EncBinary() _ = yym1445 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1446 := !z.EncBinary() yy2arr1446 := z.EncBasicHandle().StructToArray var yyq1446 [8]bool _, _, _ = yysep1446, yyq1446, yy2arr1446 const yyr1446 bool = false yyq1446[1] = true yyq1446[2] = true yyq1446[7] = x.ContainerID != "" var yynn1446 int if yyr1446 || yy2arr1446 { r.EncodeArrayStart(8) } else { yynn1446 = 5 for _, b := range yyq1446 { if b { yynn1446++ } } r.EncodeMapStart(yynn1446) yynn1446 = 0 } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1448 := z.EncBinary() _ = yym1448 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) yym1449 := z.EncBinary() _ = yym1449 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1446[1] { yy1451 := &x.State yy1451.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1446[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1452 := &x.State yy1452.CodecEncodeSelf(e) } } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1446[2] { yy1454 := &x.LastTerminationState yy1454.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1446[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1455 := &x.LastTerminationState yy1455.CodecEncodeSelf(e) } } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1457 := z.EncBinary() _ = yym1457 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1458 := z.EncBinary() _ = yym1458 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1460 := z.EncBinary() _ = yym1460 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1461 := z.EncBinary() _ = yym1461 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1463 := z.EncBinary() _ = yym1463 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) yym1464 := z.EncBinary() _ = yym1464 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1466 := z.EncBinary() _ = yym1466 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) yym1467 := z.EncBinary() _ = yym1467 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1446 || yy2arr1446 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1446[7] { yym1469 := z.EncBinary() _ = yym1469 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1446[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1470 := z.EncBinary() _ = yym1470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1446 || yy2arr1446 { 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 yym1471 := z.DecBinary() _ = yym1471 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1472 := r.ContainerType() if yyct1472 == codecSelferValueTypeMap1234 { yyl1472 := r.ReadMapStart() if yyl1472 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1472, d) } } else if yyct1472 == codecSelferValueTypeArray1234 { yyl1472 := r.ReadArrayStart() if yyl1472 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1472, 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 yys1473Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1473Slc var yyhl1473 bool = l >= 0 for yyj1473 := 0; ; yyj1473++ { if yyhl1473 { if yyj1473 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1473Slc = r.DecodeBytes(yys1473Slc, true, true) yys1473 := string(yys1473Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1473 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1475 := &x.State yyv1475.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1476 := &x.LastTerminationState yyv1476.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 = int(r.DecodeInt(codecSelferBitsize1234)) } 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, yys1473) } // end switch yys1473 } // end for yyj1473 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 yyj1482 int var yyb1482 bool var yyhl1482 bool = l >= 0 yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1484 := &x.State yyv1484.CodecDecodeSelf(d) } yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1485 := &x.LastTerminationState yyv1485.CodecDecodeSelf(d) } yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1482++ if yyhl1482 { yyb1482 = yyj1482 > l } else { yyb1482 = r.CheckBreak() } if yyb1482 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1482-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1491 := z.EncBinary() _ = yym1491 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 yym1492 := z.DecBinary() _ = yym1492 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 yym1493 := z.EncBinary() _ = yym1493 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 yym1494 := z.DecBinary() _ = yym1494 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 { yym1495 := z.EncBinary() _ = yym1495 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1496 := !z.EncBinary() yy2arr1496 := z.EncBasicHandle().StructToArray var yyq1496 [6]bool _, _, _ = yysep1496, yyq1496, yy2arr1496 const yyr1496 bool = false yyq1496[2] = true yyq1496[3] = true yyq1496[4] = x.Reason != "" yyq1496[5] = x.Message != "" var yynn1496 int if yyr1496 || yy2arr1496 { r.EncodeArrayStart(6) } else { yynn1496 = 2 for _, b := range yyq1496 { if b { yynn1496++ } } r.EncodeMapStart(yynn1496) yynn1496 = 0 } if yyr1496 || yy2arr1496 { 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 yyr1496 || yy2arr1496 { 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 yyr1496 || yy2arr1496 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1496[2] { yy1500 := &x.LastProbeTime yym1501 := z.EncBinary() _ = yym1501 if false { } else if z.HasExtensions() && z.EncExt(yy1500) { } else if yym1501 { z.EncBinaryMarshal(yy1500) } else if !yym1501 && z.IsJSONHandle() { z.EncJSONMarshal(yy1500) } else { z.EncFallback(yy1500) } } else { r.EncodeNil() } } else { if yyq1496[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1502 := &x.LastProbeTime yym1503 := z.EncBinary() _ = yym1503 if false { } else if z.HasExtensions() && z.EncExt(yy1502) { } else if yym1503 { z.EncBinaryMarshal(yy1502) } else if !yym1503 && z.IsJSONHandle() { z.EncJSONMarshal(yy1502) } else { z.EncFallback(yy1502) } } } if yyr1496 || yy2arr1496 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1496[3] { yy1505 := &x.LastTransitionTime yym1506 := z.EncBinary() _ = yym1506 if false { } else if z.HasExtensions() && z.EncExt(yy1505) { } else if yym1506 { z.EncBinaryMarshal(yy1505) } else if !yym1506 && z.IsJSONHandle() { z.EncJSONMarshal(yy1505) } else { z.EncFallback(yy1505) } } else { r.EncodeNil() } } else { if yyq1496[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1507 := &x.LastTransitionTime yym1508 := z.EncBinary() _ = yym1508 if false { } else if z.HasExtensions() && z.EncExt(yy1507) { } else if yym1508 { z.EncBinaryMarshal(yy1507) } else if !yym1508 && z.IsJSONHandle() { z.EncJSONMarshal(yy1507) } else { z.EncFallback(yy1507) } } } if yyr1496 || yy2arr1496 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1496[4] { yym1510 := z.EncBinary() _ = yym1510 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1496[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1511 := z.EncBinary() _ = yym1511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1496 || yy2arr1496 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1496[5] { yym1513 := z.EncBinary() _ = yym1513 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1496[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1514 := z.EncBinary() _ = yym1514 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1496 || yy2arr1496 { 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 yym1515 := z.DecBinary() _ = yym1515 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1516 := r.ContainerType() if yyct1516 == codecSelferValueTypeMap1234 { yyl1516 := r.ReadMapStart() if yyl1516 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1516, d) } } else if yyct1516 == codecSelferValueTypeArray1234 { yyl1516 := r.ReadArrayStart() if yyl1516 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1516, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1517Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1517Slc var yyhl1517 bool = l >= 0 for yyj1517 := 0; ; yyj1517++ { if yyhl1517 { if yyj1517 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1517Slc = r.DecodeBytes(yys1517Slc, true, true) yys1517 := string(yys1517Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1517 { case "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 { yyv1520 := &x.LastProbeTime yym1521 := z.DecBinary() _ = yym1521 if false { } else if z.HasExtensions() && z.DecExt(yyv1520) { } else if yym1521 { z.DecBinaryUnmarshal(yyv1520) } else if !yym1521 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1520) } else { z.DecFallback(yyv1520, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1522 := &x.LastTransitionTime yym1523 := z.DecBinary() _ = yym1523 if false { } else if z.HasExtensions() && z.DecExt(yyv1522) { } else if yym1523 { z.DecBinaryUnmarshal(yyv1522) } else if !yym1523 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1522) } else { z.DecFallback(yyv1522, 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, yys1517) } // end switch yys1517 } // end for yyj1517 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 yyj1526 int var yyb1526 bool var yyhl1526 bool = l >= 0 yyj1526++ if yyhl1526 { yyb1526 = yyj1526 > l } else { yyb1526 = r.CheckBreak() } if yyb1526 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1526++ if yyhl1526 { yyb1526 = yyj1526 > l } else { yyb1526 = r.CheckBreak() } if yyb1526 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1526++ if yyhl1526 { yyb1526 = yyj1526 > l } else { yyb1526 = r.CheckBreak() } if yyb1526 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1529 := &x.LastProbeTime yym1530 := z.DecBinary() _ = yym1530 if false { } else if z.HasExtensions() && z.DecExt(yyv1529) { } else if yym1530 { z.DecBinaryUnmarshal(yyv1529) } else if !yym1530 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1529) } else { z.DecFallback(yyv1529, false) } } yyj1526++ if yyhl1526 { yyb1526 = yyj1526 > l } else { yyb1526 = r.CheckBreak() } if yyb1526 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1531 := &x.LastTransitionTime yym1532 := z.DecBinary() _ = yym1532 if false { } else if z.HasExtensions() && z.DecExt(yyv1531) { } else if yym1532 { z.DecBinaryUnmarshal(yyv1531) } else if !yym1532 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1531) } else { z.DecFallback(yyv1531, false) } } yyj1526++ if yyhl1526 { yyb1526 = yyj1526 > l } else { yyb1526 = r.CheckBreak() } if yyb1526 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1526++ if yyhl1526 { yyb1526 = yyj1526 > l } else { yyb1526 = r.CheckBreak() } if yyb1526 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1526++ if yyhl1526 { yyb1526 = yyj1526 > l } else { yyb1526 = r.CheckBreak() } if yyb1526 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1526-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1535 := z.EncBinary() _ = yym1535 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 yym1536 := z.DecBinary() _ = yym1536 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 { yym1537 := z.EncBinary() _ = yym1537 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1538 := !z.EncBinary() yy2arr1538 := z.EncBasicHandle().StructToArray var yyq1538 [4]bool _, _, _ = yysep1538, yyq1538, yy2arr1538 const yyr1538 bool = false yyq1538[0] = true yyq1538[2] = x.Kind != "" yyq1538[3] = x.APIVersion != "" var yynn1538 int if yyr1538 || yy2arr1538 { r.EncodeArrayStart(4) } else { yynn1538 = 1 for _, b := range yyq1538 { if b { yynn1538++ } } r.EncodeMapStart(yynn1538) yynn1538 = 0 } if yyr1538 || yy2arr1538 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1538[0] { yy1540 := &x.ListMeta yym1541 := z.EncBinary() _ = yym1541 if false { } else if z.HasExtensions() && z.EncExt(yy1540) { } else { z.EncFallback(yy1540) } } else { r.EncodeNil() } } else { if yyq1538[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1542 := &x.ListMeta yym1543 := z.EncBinary() _ = yym1543 if false { } else if z.HasExtensions() && z.EncExt(yy1542) { } else { z.EncFallback(yy1542) } } } if yyr1538 || yy2arr1538 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1545 := z.EncBinary() _ = yym1545 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 { yym1546 := z.EncBinary() _ = yym1546 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1538 || yy2arr1538 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1538[2] { yym1548 := z.EncBinary() _ = yym1548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1538[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1549 := z.EncBinary() _ = yym1549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1538 || yy2arr1538 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1538[3] { yym1551 := z.EncBinary() _ = yym1551 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1538[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1552 := z.EncBinary() _ = yym1552 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1538 || yy2arr1538 { 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 yym1553 := z.DecBinary() _ = yym1553 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1554 := r.ContainerType() if yyct1554 == codecSelferValueTypeMap1234 { yyl1554 := r.ReadMapStart() if yyl1554 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1554, d) } } else if yyct1554 == codecSelferValueTypeArray1234 { yyl1554 := r.ReadArrayStart() if yyl1554 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1554, 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 yys1555Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1555Slc var yyhl1555 bool = l >= 0 for yyj1555 := 0; ; yyj1555++ { if yyhl1555 { if yyj1555 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1555Slc = r.DecodeBytes(yys1555Slc, true, true) yys1555 := string(yys1555Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1555 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1556 := &x.ListMeta yym1557 := z.DecBinary() _ = yym1557 if false { } else if z.HasExtensions() && z.DecExt(yyv1556) { } else { z.DecFallback(yyv1556, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1558 := &x.Items yym1559 := z.DecBinary() _ = yym1559 if false { } else { h.decSlicePod((*[]Pod)(yyv1558), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys1555) } // end switch yys1555 } // end for yyj1555 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 yyj1562 int var yyb1562 bool var yyhl1562 bool = l >= 0 yyj1562++ if yyhl1562 { yyb1562 = yyj1562 > l } else { yyb1562 = r.CheckBreak() } if yyb1562 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1563 := &x.ListMeta yym1564 := z.DecBinary() _ = yym1564 if false { } else if z.HasExtensions() && z.DecExt(yyv1563) { } else { z.DecFallback(yyv1563, false) } } yyj1562++ if yyhl1562 { yyb1562 = yyj1562 > l } else { yyb1562 = r.CheckBreak() } if yyb1562 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1565 := &x.Items yym1566 := z.DecBinary() _ = yym1566 if false { } else { h.decSlicePod((*[]Pod)(yyv1565), d) } } yyj1562++ if yyhl1562 { yyb1562 = yyj1562 > l } else { yyb1562 = r.CheckBreak() } if yyb1562 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1562++ if yyhl1562 { yyb1562 = yyj1562 > l } else { yyb1562 = r.CheckBreak() } if yyb1562 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj1562++ if yyhl1562 { yyb1562 = yyj1562 > l } else { yyb1562 = r.CheckBreak() } if yyb1562 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1562-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1569 := z.EncBinary() _ = yym1569 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 yym1570 := z.DecBinary() _ = yym1570 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 { yym1571 := z.EncBinary() _ = yym1571 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1572 := !z.EncBinary() yy2arr1572 := z.EncBasicHandle().StructToArray var yyq1572 [1]bool _, _, _ = yysep1572, yyq1572, yy2arr1572 const yyr1572 bool = false var yynn1572 int if yyr1572 || yy2arr1572 { r.EncodeArrayStart(1) } else { yynn1572 = 1 for _, b := range yyq1572 { if b { yynn1572++ } } r.EncodeMapStart(yynn1572) yynn1572 = 0 } if yyr1572 || yy2arr1572 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1574 := z.EncBinary() _ = yym1574 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 { yym1575 := z.EncBinary() _ = yym1575 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } if yyr1572 || yy2arr1572 { 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 yym1576 := z.DecBinary() _ = yym1576 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1577 := r.ContainerType() if yyct1577 == codecSelferValueTypeMap1234 { yyl1577 := r.ReadMapStart() if yyl1577 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1577, d) } } else if yyct1577 == codecSelferValueTypeArray1234 { yyl1577 := r.ReadArrayStart() if yyl1577 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1577, 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 yys1578Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1578Slc var yyhl1578 bool = l >= 0 for yyj1578 := 0; ; yyj1578++ { if yyhl1578 { if yyj1578 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1578Slc = r.DecodeBytes(yys1578Slc, true, true) yys1578 := string(yys1578Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1578 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1579 := &x.NodeSelectorTerms yym1580 := z.DecBinary() _ = yym1580 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1579), d) } } default: z.DecStructFieldNotFound(-1, yys1578) } // end switch yys1578 } // end for yyj1578 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 yyj1581 int var yyb1581 bool var yyhl1581 bool = l >= 0 yyj1581++ if yyhl1581 { yyb1581 = yyj1581 > l } else { yyb1581 = r.CheckBreak() } if yyb1581 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1582 := &x.NodeSelectorTerms yym1583 := z.DecBinary() _ = yym1583 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1582), d) } } for { yyj1581++ if yyhl1581 { yyb1581 = yyj1581 > l } else { yyb1581 = r.CheckBreak() } if yyb1581 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1581-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 { yym1584 := z.EncBinary() _ = yym1584 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1585 := !z.EncBinary() yy2arr1585 := z.EncBasicHandle().StructToArray var yyq1585 [1]bool _, _, _ = yysep1585, yyq1585, yy2arr1585 const yyr1585 bool = false var yynn1585 int if yyr1585 || yy2arr1585 { r.EncodeArrayStart(1) } else { yynn1585 = 1 for _, b := range yyq1585 { if b { yynn1585++ } } r.EncodeMapStart(yynn1585) yynn1585 = 0 } if yyr1585 || yy2arr1585 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1587 := z.EncBinary() _ = yym1587 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 { yym1588 := z.EncBinary() _ = yym1588 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } if yyr1585 || yy2arr1585 { 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 yym1589 := z.DecBinary() _ = yym1589 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1590 := r.ContainerType() if yyct1590 == codecSelferValueTypeMap1234 { yyl1590 := r.ReadMapStart() if yyl1590 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1590, d) } } else if yyct1590 == codecSelferValueTypeArray1234 { yyl1590 := r.ReadArrayStart() if yyl1590 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1590, 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 yys1591Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1591Slc var yyhl1591 bool = l >= 0 for yyj1591 := 0; ; yyj1591++ { if yyhl1591 { if yyj1591 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1591Slc = r.DecodeBytes(yys1591Slc, true, true) yys1591 := string(yys1591Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1591 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1592 := &x.MatchExpressions yym1593 := z.DecBinary() _ = yym1593 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1592), d) } } default: z.DecStructFieldNotFound(-1, yys1591) } // end switch yys1591 } // end for yyj1591 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 yyj1594 int var yyb1594 bool var yyhl1594 bool = l >= 0 yyj1594++ if yyhl1594 { yyb1594 = yyj1594 > l } else { yyb1594 = r.CheckBreak() } if yyb1594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1595 := &x.MatchExpressions yym1596 := z.DecBinary() _ = yym1596 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1595), d) } } for { yyj1594++ if yyhl1594 { yyb1594 = yyj1594 > l } else { yyb1594 = r.CheckBreak() } if yyb1594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1594-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 { yym1597 := z.EncBinary() _ = yym1597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1598 := !z.EncBinary() yy2arr1598 := z.EncBasicHandle().StructToArray var yyq1598 [3]bool _, _, _ = yysep1598, yyq1598, yy2arr1598 const yyr1598 bool = false yyq1598[2] = len(x.Values) != 0 var yynn1598 int if yyr1598 || yy2arr1598 { r.EncodeArrayStart(3) } else { yynn1598 = 2 for _, b := range yyq1598 { if b { yynn1598++ } } r.EncodeMapStart(yynn1598) yynn1598 = 0 } if yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1600 := z.EncBinary() _ = yym1600 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) yym1601 := z.EncBinary() _ = yym1601 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1598 || yy2arr1598 { 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 yyr1598 || yy2arr1598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1598[2] { if x.Values == nil { r.EncodeNil() } else { yym1604 := z.EncBinary() _ = yym1604 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } else { r.EncodeNil() } } else { if yyq1598[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { yym1605 := z.EncBinary() _ = yym1605 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } } if yyr1598 || yy2arr1598 { 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 yym1606 := z.DecBinary() _ = yym1606 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1607 := r.ContainerType() if yyct1607 == codecSelferValueTypeMap1234 { yyl1607 := r.ReadMapStart() if yyl1607 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1607, d) } } else if yyct1607 == codecSelferValueTypeArray1234 { yyl1607 := r.ReadArrayStart() if yyl1607 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1607, 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 yys1608Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1608Slc var yyhl1608 bool = l >= 0 for yyj1608 := 0; ; yyj1608++ { if yyhl1608 { if yyj1608 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1608Slc = r.DecodeBytes(yys1608Slc, true, true) yys1608 := string(yys1608Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1608 { 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 { yyv1611 := &x.Values yym1612 := z.DecBinary() _ = yym1612 if false { } else { z.F.DecSliceStringX(yyv1611, false, d) } } default: z.DecStructFieldNotFound(-1, yys1608) } // end switch yys1608 } // end for yyj1608 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 yyj1613 int var yyb1613 bool var yyhl1613 bool = l >= 0 yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Values = nil } else { yyv1616 := &x.Values yym1617 := z.DecBinary() _ = yym1617 if false { } else { z.F.DecSliceStringX(yyv1616, false, d) } } for { yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1613-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1618 := z.EncBinary() _ = yym1618 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 yym1619 := z.DecBinary() _ = yym1619 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 { yym1620 := z.EncBinary() _ = yym1620 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1621 := !z.EncBinary() yy2arr1621 := z.EncBasicHandle().StructToArray var yyq1621 [1]bool _, _, _ = yysep1621, yyq1621, yy2arr1621 const yyr1621 bool = false yyq1621[0] = x.NodeAffinity != nil var yynn1621 int if yyr1621 || yy2arr1621 { r.EncodeArrayStart(1) } else { yynn1621 = 0 for _, b := range yyq1621 { if b { yynn1621++ } } r.EncodeMapStart(yynn1621) yynn1621 = 0 } if yyr1621 || yy2arr1621 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1621[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1621[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 yyr1621 || yy2arr1621 { 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 yym1623 := z.DecBinary() _ = yym1623 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1624 := r.ContainerType() if yyct1624 == codecSelferValueTypeMap1234 { yyl1624 := r.ReadMapStart() if yyl1624 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1624, d) } } else if yyct1624 == codecSelferValueTypeArray1234 { yyl1624 := r.ReadArrayStart() if yyl1624 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1624, 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 yys1625Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1625Slc var yyhl1625 bool = l >= 0 for yyj1625 := 0; ; yyj1625++ { if yyhl1625 { if yyj1625 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1625Slc = r.DecodeBytes(yys1625Slc, true, true) yys1625 := string(yys1625Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1625 { 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) } default: z.DecStructFieldNotFound(-1, yys1625) } // end switch yys1625 } // end for yyj1625 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 yyj1627 int var yyb1627 bool var yyhl1627 bool = l >= 0 yyj1627++ if yyhl1627 { yyb1627 = yyj1627 > l } else { yyb1627 = r.CheckBreak() } if yyb1627 { 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) } for { yyj1627++ if yyhl1627 { yyb1627 = yyj1627 > l } else { yyb1627 = r.CheckBreak() } if yyb1627 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1627-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 { yym1629 := z.EncBinary() _ = yym1629 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1630 := !z.EncBinary() yy2arr1630 := z.EncBasicHandle().StructToArray var yyq1630 [3]bool _, _, _ = yysep1630, yyq1630, yy2arr1630 const yyr1630 bool = false yyq1630[0] = x.RequiredDuringSchedulingRequiredDuringExecution != nil yyq1630[1] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil yyq1630[2] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1630 int if yyr1630 || yy2arr1630 { r.EncodeArrayStart(3) } else { yynn1630 = 0 for _, b := range yyq1630 { if b { yynn1630++ } } r.EncodeMapStart(yynn1630) yynn1630 = 0 } if yyr1630 || yy2arr1630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1630[0] { if x.RequiredDuringSchedulingRequiredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingRequiredDuringExecution.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1630[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingRequiredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingRequiredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingRequiredDuringExecution.CodecEncodeSelf(e) } } } if yyr1630 || yy2arr1630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1630[1] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1630[1] { 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 yyr1630 || yy2arr1630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1630[2] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1634 := z.EncBinary() _ = yym1634 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1630[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1635 := z.EncBinary() _ = yym1635 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1630 || yy2arr1630 { 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 yym1636 := z.DecBinary() _ = yym1636 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1637 := r.ContainerType() if yyct1637 == codecSelferValueTypeMap1234 { yyl1637 := r.ReadMapStart() if yyl1637 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1637, d) } } else if yyct1637 == codecSelferValueTypeArray1234 { yyl1637 := r.ReadArrayStart() if yyl1637 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1637, 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 yys1638Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1638Slc var yyhl1638 bool = l >= 0 for yyj1638 := 0; ; yyj1638++ { if yyhl1638 { if yyj1638 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1638Slc = r.DecodeBytes(yys1638Slc, true, true) yys1638 := string(yys1638Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1638 { case "requiredDuringSchedulingRequiredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingRequiredDuringExecution != nil { x.RequiredDuringSchedulingRequiredDuringExecution = nil } } else { if x.RequiredDuringSchedulingRequiredDuringExecution == nil { x.RequiredDuringSchedulingRequiredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingRequiredDuringExecution.CodecDecodeSelf(d) } 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 { yyv1641 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1642 := z.DecBinary() _ = yym1642 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1641), d) } } default: z.DecStructFieldNotFound(-1, yys1638) } // end switch yys1638 } // end for yyj1638 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 yyj1643 int var yyb1643 bool var yyhl1643 bool = l >= 0 yyj1643++ if yyhl1643 { yyb1643 = yyj1643 > l } else { yyb1643 = r.CheckBreak() } if yyb1643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingRequiredDuringExecution != nil { x.RequiredDuringSchedulingRequiredDuringExecution = nil } } else { if x.RequiredDuringSchedulingRequiredDuringExecution == nil { x.RequiredDuringSchedulingRequiredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingRequiredDuringExecution.CodecDecodeSelf(d) } yyj1643++ if yyhl1643 { yyb1643 = yyj1643 > l } else { yyb1643 = r.CheckBreak() } if yyb1643 { 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) } yyj1643++ if yyhl1643 { yyb1643 = yyj1643 > l } else { yyb1643 = r.CheckBreak() } if yyb1643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1646 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1647 := z.DecBinary() _ = yym1647 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1646), d) } } for { yyj1643++ if yyhl1643 { yyb1643 = yyj1643 > l } else { yyb1643 = r.CheckBreak() } if yyb1643 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1643-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 { yym1648 := z.EncBinary() _ = yym1648 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1649 := !z.EncBinary() yy2arr1649 := z.EncBasicHandle().StructToArray var yyq1649 [2]bool _, _, _ = yysep1649, yyq1649, yy2arr1649 const yyr1649 bool = false var yynn1649 int if yyr1649 || yy2arr1649 { r.EncodeArrayStart(2) } else { yynn1649 = 2 for _, b := range yyq1649 { if b { yynn1649++ } } r.EncodeMapStart(yynn1649) yynn1649 = 0 } if yyr1649 || yy2arr1649 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1651 := z.EncBinary() _ = yym1651 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1652 := z.EncBinary() _ = yym1652 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr1649 || yy2arr1649 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1654 := &x.Preference yy1654.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1655 := &x.Preference yy1655.CodecEncodeSelf(e) } if yyr1649 || yy2arr1649 { 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 yym1656 := z.DecBinary() _ = yym1656 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1657 := r.ContainerType() if yyct1657 == codecSelferValueTypeMap1234 { yyl1657 := r.ReadMapStart() if yyl1657 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1657, d) } } else if yyct1657 == codecSelferValueTypeArray1234 { yyl1657 := r.ReadArrayStart() if yyl1657 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1657, 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 yys1658Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1658Slc var yyhl1658 bool = l >= 0 for yyj1658 := 0; ; yyj1658++ { if yyhl1658 { if yyj1658 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1658Slc = r.DecodeBytes(yys1658Slc, true, true) yys1658 := string(yys1658Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1658 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } case "preference": if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1660 := &x.Preference yyv1660.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1658) } // end switch yys1658 } // end for yyj1658 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 yyj1661 int var yyb1661 bool var yyhl1661 bool = l >= 0 yyj1661++ if yyhl1661 { yyb1661 = yyj1661 > l } else { yyb1661 = r.CheckBreak() } if yyb1661 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1661++ if yyhl1661 { yyb1661 = yyj1661 > l } else { yyb1661 = r.CheckBreak() } if yyb1661 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1663 := &x.Preference yyv1663.CodecDecodeSelf(d) } for { yyj1661++ if yyhl1661 { yyb1661 = yyj1661 > l } else { yyb1661 = r.CheckBreak() } if yyb1661 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1661-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1664 := z.EncBinary() _ = yym1664 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1665 := !z.EncBinary() yy2arr1665 := z.EncBasicHandle().StructToArray var yyq1665 [11]bool _, _, _ = yysep1665, yyq1665, yy2arr1665 const yyr1665 bool = false yyq1665[2] = x.RestartPolicy != "" yyq1665[3] = x.TerminationGracePeriodSeconds != nil yyq1665[4] = x.ActiveDeadlineSeconds != nil yyq1665[5] = x.DNSPolicy != "" yyq1665[6] = len(x.NodeSelector) != 0 yyq1665[8] = x.NodeName != "" yyq1665[9] = x.SecurityContext != nil yyq1665[10] = len(x.ImagePullSecrets) != 0 var yynn1665 int if yyr1665 || yy2arr1665 { r.EncodeArrayStart(11) } else { yynn1665 = 3 for _, b := range yyq1665 { if b { yynn1665++ } } r.EncodeMapStart(yynn1665) yynn1665 = 0 } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym1667 := z.EncBinary() _ = yym1667 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 { yym1668 := z.EncBinary() _ = yym1668 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym1670 := z.EncBinary() _ = yym1670 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 { yym1671 := z.EncBinary() _ = yym1671 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1665[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1674 := *x.TerminationGracePeriodSeconds yym1675 := z.EncBinary() _ = yym1675 if false { } else { r.EncodeInt(int64(yy1674)) } } } else { r.EncodeNil() } } else { if yyq1665[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1676 := *x.TerminationGracePeriodSeconds yym1677 := z.EncBinary() _ = yym1677 if false { } else { r.EncodeInt(int64(yy1676)) } } } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1679 := *x.ActiveDeadlineSeconds yym1680 := z.EncBinary() _ = yym1680 if false { } else { r.EncodeInt(int64(yy1679)) } } } else { r.EncodeNil() } } else { if yyq1665[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1681 := *x.ActiveDeadlineSeconds yym1682 := z.EncBinary() _ = yym1682 if false { } else { r.EncodeInt(int64(yy1681)) } } } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1665[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym1685 := z.EncBinary() _ = yym1685 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq1665[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym1686 := z.EncBinary() _ = yym1686 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1688 := z.EncBinary() _ = yym1688 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) yym1689 := z.EncBinary() _ = yym1689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[8] { yym1691 := z.EncBinary() _ = yym1691 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1665[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1692 := z.EncBinary() _ = yym1692 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1665[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 yyr1665 || yy2arr1665 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1665[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1695 := z.EncBinary() _ = yym1695 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq1665[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1696 := z.EncBinary() _ = yym1696 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr1665 || yy2arr1665 { 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 yym1697 := z.DecBinary() _ = yym1697 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1698 := r.ContainerType() if yyct1698 == codecSelferValueTypeMap1234 { yyl1698 := r.ReadMapStart() if yyl1698 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1698, d) } } else if yyct1698 == codecSelferValueTypeArray1234 { yyl1698 := r.ReadArrayStart() if yyl1698 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1698, 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 yys1699Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1699Slc var yyhl1699 bool = l >= 0 for yyj1699 := 0; ; yyj1699++ { if yyhl1699 { if yyj1699 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1699Slc = r.DecodeBytes(yys1699Slc, true, true) yys1699 := string(yys1699Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1699 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1700 := &x.Volumes yym1701 := z.DecBinary() _ = yym1701 if false { } else { h.decSliceVolume((*[]Volume)(yyv1700), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1702 := &x.Containers yym1703 := z.DecBinary() _ = yym1703 if false { } else { h.decSliceContainer((*[]Container)(yyv1702), 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) } yym1706 := z.DecBinary() _ = yym1706 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) } yym1708 := z.DecBinary() _ = yym1708 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 { yyv1710 := &x.NodeSelector yym1711 := z.DecBinary() _ = yym1711 if false { } else { z.F.DecMapStringStringX(yyv1710, 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 { yyv1715 := &x.ImagePullSecrets yym1716 := z.DecBinary() _ = yym1716 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1715), d) } } default: z.DecStructFieldNotFound(-1, yys1699) } // end switch yys1699 } // end for yyj1699 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 yyj1717 int var yyb1717 bool var yyhl1717 bool = l >= 0 yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1718 := &x.Volumes yym1719 := z.DecBinary() _ = yym1719 if false { } else { h.decSliceVolume((*[]Volume)(yyv1718), d) } } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1720 := &x.Containers yym1721 := z.DecBinary() _ = yym1721 if false { } else { h.decSliceContainer((*[]Container)(yyv1720), d) } } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { 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) } yym1724 := z.DecBinary() _ = yym1724 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { 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) } yym1726 := z.DecBinary() _ = yym1726 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv1728 := &x.NodeSelector yym1729 := z.DecBinary() _ = yym1729 if false { } else { z.F.DecMapStringStringX(yyv1728, false, d) } } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { 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) } yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv1733 := &x.ImagePullSecrets yym1734 := z.DecBinary() _ = yym1734 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1733), d) } } for { yyj1717++ if yyhl1717 { yyb1717 = yyj1717 > l } else { yyb1717 = r.CheckBreak() } if yyb1717 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1717-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 { yym1735 := z.EncBinary() _ = yym1735 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1736 := !z.EncBinary() yy2arr1736 := z.EncBasicHandle().StructToArray var yyq1736 [8]bool _, _, _ = yysep1736, yyq1736, yy2arr1736 const yyr1736 bool = false yyq1736[0] = x.HostNetwork != false yyq1736[1] = x.HostPID != false yyq1736[2] = x.HostIPC != false yyq1736[3] = x.SELinuxOptions != nil yyq1736[4] = x.RunAsUser != nil yyq1736[5] = x.RunAsNonRoot != nil yyq1736[6] = len(x.SupplementalGroups) != 0 yyq1736[7] = x.FSGroup != nil var yynn1736 int if yyr1736 || yy2arr1736 { r.EncodeArrayStart(8) } else { yynn1736 = 0 for _, b := range yyq1736 { if b { yynn1736++ } } r.EncodeMapStart(yynn1736) yynn1736 = 0 } if yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[0] { yym1738 := z.EncBinary() _ = yym1738 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq1736[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1739 := z.EncBinary() _ = yym1739 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[1] { yym1741 := z.EncBinary() _ = yym1741 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq1736[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1742 := z.EncBinary() _ = yym1742 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[2] { yym1744 := z.EncBinary() _ = yym1744 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq1736[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1745 := z.EncBinary() _ = yym1745 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1736[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 yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy1748 := *x.RunAsUser yym1749 := z.EncBinary() _ = yym1749 if false { } else { r.EncodeInt(int64(yy1748)) } } } else { r.EncodeNil() } } else { if yyq1736[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy1750 := *x.RunAsUser yym1751 := z.EncBinary() _ = yym1751 if false { } else { r.EncodeInt(int64(yy1750)) } } } } if yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1753 := *x.RunAsNonRoot yym1754 := z.EncBinary() _ = yym1754 if false { } else { r.EncodeBool(bool(yy1753)) } } } else { r.EncodeNil() } } else { if yyq1736[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1755 := *x.RunAsNonRoot yym1756 := z.EncBinary() _ = yym1756 if false { } else { r.EncodeBool(bool(yy1755)) } } } } if yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1758 := z.EncBinary() _ = yym1758 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq1736[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1759 := z.EncBinary() _ = yym1759 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr1736 || yy2arr1736 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1736[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy1761 := *x.FSGroup yym1762 := z.EncBinary() _ = yym1762 if false { } else { r.EncodeInt(int64(yy1761)) } } } else { r.EncodeNil() } } else { if yyq1736[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy1763 := *x.FSGroup yym1764 := z.EncBinary() _ = yym1764 if false { } else { r.EncodeInt(int64(yy1763)) } } } } if yyr1736 || yy2arr1736 { 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 yym1765 := z.DecBinary() _ = yym1765 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1766 := r.ContainerType() if yyct1766 == codecSelferValueTypeMap1234 { yyl1766 := r.ReadMapStart() if yyl1766 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1766, d) } } else if yyct1766 == codecSelferValueTypeArray1234 { yyl1766 := r.ReadArrayStart() if yyl1766 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1766, 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 yys1767Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1767Slc var yyhl1767 bool = l >= 0 for yyj1767 := 0; ; yyj1767++ { if yyhl1767 { if yyj1767 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1767Slc = r.DecodeBytes(yys1767Slc, true, true) yys1767 := string(yys1767Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1767 { 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) } yym1773 := z.DecBinary() _ = yym1773 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) } yym1775 := z.DecBinary() _ = yym1775 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1776 := &x.SupplementalGroups yym1777 := z.DecBinary() _ = yym1777 if false { } else { z.F.DecSliceInt64X(yyv1776, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym1779 := z.DecBinary() _ = yym1779 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys1767) } // end switch yys1767 } // end for yyj1767 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 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.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } 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.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } 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.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj1780++ if yyhl1780 { yyb1780 = yyj1780 > l } else { yyb1780 = r.CheckBreak() } if yyb1780 { 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) } yyj1780++ if yyhl1780 { yyb1780 = yyj1780 > l } else { yyb1780 = r.CheckBreak() } if yyb1780 { 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) } yym1786 := z.DecBinary() _ = yym1786 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj1780++ if yyhl1780 { yyb1780 = yyj1780 > l } else { yyb1780 = r.CheckBreak() } if yyb1780 { 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) } yym1788 := z.DecBinary() _ = yym1788 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } 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.SupplementalGroups = nil } else { yyv1789 := &x.SupplementalGroups yym1790 := z.DecBinary() _ = yym1790 if false { } else { z.F.DecSliceInt64X(yyv1789, false, 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() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym1792 := z.DecBinary() _ = yym1792 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } 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 *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1793 := z.EncBinary() _ = yym1793 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1794 := !z.EncBinary() yy2arr1794 := z.EncBasicHandle().StructToArray var yyq1794 [8]bool _, _, _ = yysep1794, yyq1794, yy2arr1794 const yyr1794 bool = false yyq1794[0] = x.Phase != "" yyq1794[1] = len(x.Conditions) != 0 yyq1794[2] = x.Message != "" yyq1794[3] = x.Reason != "" yyq1794[4] = x.HostIP != "" yyq1794[5] = x.PodIP != "" yyq1794[6] = x.StartTime != nil yyq1794[7] = len(x.ContainerStatuses) != 0 var yynn1794 int if yyr1794 || yy2arr1794 { r.EncodeArrayStart(8) } else { yynn1794 = 0 for _, b := range yyq1794 { if b { yynn1794++ } } r.EncodeMapStart(yynn1794) yynn1794 = 0 } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1794[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[1] { if x.Conditions == nil { r.EncodeNil() } else { yym1797 := z.EncBinary() _ = yym1797 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq1794[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym1798 := z.EncBinary() _ = yym1798 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[2] { yym1800 := z.EncBinary() _ = yym1800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1794[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1801 := z.EncBinary() _ = yym1801 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[3] { yym1803 := z.EncBinary() _ = yym1803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1794[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1804 := z.EncBinary() _ = yym1804 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[4] { yym1806 := z.EncBinary() _ = yym1806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1794[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1807 := z.EncBinary() _ = yym1807 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[5] { yym1809 := z.EncBinary() _ = yym1809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1794[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1810 := z.EncBinary() _ = yym1810 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[6] { if x.StartTime == nil { r.EncodeNil() } else { yym1812 := z.EncBinary() _ = yym1812 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1812 { z.EncBinaryMarshal(x.StartTime) } else if !yym1812 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq1794[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym1813 := z.EncBinary() _ = yym1813 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1813 { z.EncBinaryMarshal(x.StartTime) } else if !yym1813 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1815 := z.EncBinary() _ = yym1815 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq1794[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1816 := z.EncBinary() _ = yym1816 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr1794 || yy2arr1794 { 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 yym1817 := z.DecBinary() _ = yym1817 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1818 := r.ContainerType() if yyct1818 == codecSelferValueTypeMap1234 { yyl1818 := r.ReadMapStart() if yyl1818 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1818, d) } } else if yyct1818 == codecSelferValueTypeArray1234 { yyl1818 := r.ReadArrayStart() if yyl1818 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1818, 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 yys1819Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1819Slc var yyhl1819 bool = l >= 0 for yyj1819 := 0; ; yyj1819++ { if yyhl1819 { if yyj1819 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1819Slc = r.DecodeBytes(yys1819Slc, true, true) yys1819 := string(yys1819Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1819 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1821 := &x.Conditions yym1822 := z.DecBinary() _ = yym1822 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1821), 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) } yym1828 := z.DecBinary() _ = yym1828 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1828 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1828 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1829 := &x.ContainerStatuses yym1830 := z.DecBinary() _ = yym1830 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1829), d) } } default: z.DecStructFieldNotFound(-1, yys1819) } // end switch yys1819 } // end for yyj1819 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 yyj1831 int var yyb1831 bool var yyhl1831 bool = l >= 0 yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1833 := &x.Conditions yym1834 := z.DecBinary() _ = yym1834 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1833), d) } } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { 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) } yym1840 := z.DecBinary() _ = yym1840 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1840 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1840 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1841 := &x.ContainerStatuses yym1842 := z.DecBinary() _ = yym1842 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1841), d) } } for { yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1831-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 { yym1843 := z.EncBinary() _ = yym1843 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1844 := !z.EncBinary() yy2arr1844 := z.EncBasicHandle().StructToArray var yyq1844 [4]bool _, _, _ = yysep1844, yyq1844, yy2arr1844 const yyr1844 bool = false yyq1844[0] = true yyq1844[1] = true yyq1844[2] = x.Kind != "" yyq1844[3] = x.APIVersion != "" var yynn1844 int if yyr1844 || yy2arr1844 { r.EncodeArrayStart(4) } else { yynn1844 = 0 for _, b := range yyq1844 { if b { yynn1844++ } } r.EncodeMapStart(yynn1844) yynn1844 = 0 } if yyr1844 || yy2arr1844 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1844[0] { yy1846 := &x.ObjectMeta yy1846.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1844[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1847 := &x.ObjectMeta yy1847.CodecEncodeSelf(e) } } if yyr1844 || yy2arr1844 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1844[1] { yy1849 := &x.Status yy1849.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1844[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1850 := &x.Status yy1850.CodecEncodeSelf(e) } } if yyr1844 || yy2arr1844 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1844[2] { yym1852 := z.EncBinary() _ = yym1852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1844[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1853 := z.EncBinary() _ = yym1853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1844 || yy2arr1844 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1844[3] { yym1855 := z.EncBinary() _ = yym1855 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1844[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1856 := z.EncBinary() _ = yym1856 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1844 || yy2arr1844 { 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 yym1857 := z.DecBinary() _ = yym1857 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1858 := r.ContainerType() if yyct1858 == codecSelferValueTypeMap1234 { yyl1858 := r.ReadMapStart() if yyl1858 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1858, d) } } else if yyct1858 == codecSelferValueTypeArray1234 { yyl1858 := r.ReadArrayStart() if yyl1858 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1858, 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 yys1859Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1859Slc var yyhl1859 bool = l >= 0 for yyj1859 := 0; ; yyj1859++ { if yyhl1859 { if yyj1859 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1859Slc = r.DecodeBytes(yys1859Slc, true, true) yys1859 := string(yys1859Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1859 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1860 := &x.ObjectMeta yyv1860.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1861 := &x.Status yyv1861.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys1859) } // end switch yys1859 } // end for yyj1859 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 yyj1864 int var yyb1864 bool var yyhl1864 bool = l >= 0 yyj1864++ if yyhl1864 { yyb1864 = yyj1864 > l } else { yyb1864 = r.CheckBreak() } if yyb1864 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1865 := &x.ObjectMeta yyv1865.CodecDecodeSelf(d) } yyj1864++ if yyhl1864 { yyb1864 = yyj1864 > l } else { yyb1864 = r.CheckBreak() } if yyb1864 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1866 := &x.Status yyv1866.CodecDecodeSelf(d) } yyj1864++ if yyhl1864 { yyb1864 = yyj1864 > l } else { yyb1864 = r.CheckBreak() } if yyb1864 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1864++ if yyhl1864 { yyb1864 = yyj1864 > l } else { yyb1864 = r.CheckBreak() } if yyb1864 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj1864++ if yyhl1864 { yyb1864 = yyj1864 > l } else { yyb1864 = r.CheckBreak() } if yyb1864 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1864-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 { yym1869 := z.EncBinary() _ = yym1869 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1870 := !z.EncBinary() yy2arr1870 := z.EncBasicHandle().StructToArray var yyq1870 [5]bool _, _, _ = yysep1870, yyq1870, yy2arr1870 const yyr1870 bool = false yyq1870[0] = true yyq1870[1] = true yyq1870[2] = true yyq1870[3] = x.Kind != "" yyq1870[4] = x.APIVersion != "" var yynn1870 int if yyr1870 || yy2arr1870 { r.EncodeArrayStart(5) } else { yynn1870 = 0 for _, b := range yyq1870 { if b { yynn1870++ } } r.EncodeMapStart(yynn1870) yynn1870 = 0 } if yyr1870 || yy2arr1870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1870[0] { yy1872 := &x.ObjectMeta yy1872.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1870[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1873 := &x.ObjectMeta yy1873.CodecEncodeSelf(e) } } if yyr1870 || yy2arr1870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1870[1] { yy1875 := &x.Spec yy1875.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1870[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1876 := &x.Spec yy1876.CodecEncodeSelf(e) } } if yyr1870 || yy2arr1870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1870[2] { yy1878 := &x.Status yy1878.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1870[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1879 := &x.Status yy1879.CodecEncodeSelf(e) } } if yyr1870 || yy2arr1870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1870[3] { yym1881 := z.EncBinary() _ = yym1881 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1870[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1882 := z.EncBinary() _ = yym1882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1870 || yy2arr1870 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1870[4] { yym1884 := z.EncBinary() _ = yym1884 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1870[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1885 := z.EncBinary() _ = yym1885 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1870 || yy2arr1870 { 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 yym1886 := z.DecBinary() _ = yym1886 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1887 := r.ContainerType() if yyct1887 == codecSelferValueTypeMap1234 { yyl1887 := r.ReadMapStart() if yyl1887 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1887, d) } } else if yyct1887 == codecSelferValueTypeArray1234 { yyl1887 := r.ReadArrayStart() if yyl1887 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1887, 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 yys1888Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1888Slc var yyhl1888 bool = l >= 0 for yyj1888 := 0; ; yyj1888++ { if yyhl1888 { if yyj1888 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1888Slc = r.DecodeBytes(yys1888Slc, true, true) yys1888 := string(yys1888Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1888 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1889 := &x.ObjectMeta yyv1889.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1890 := &x.Spec yyv1890.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1891 := &x.Status yyv1891.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys1888) } // end switch yys1888 } // end for yyj1888 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 yyj1894 int var yyb1894 bool var yyhl1894 bool = l >= 0 yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1895 := &x.ObjectMeta yyv1895.CodecDecodeSelf(d) } yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1896 := &x.Spec yyv1896.CodecDecodeSelf(d) } yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1897 := &x.Status yyv1897.CodecDecodeSelf(d) } yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1894-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 { yym1900 := z.EncBinary() _ = yym1900 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1901 := !z.EncBinary() yy2arr1901 := z.EncBasicHandle().StructToArray var yyq1901 [2]bool _, _, _ = yysep1901, yyq1901, yy2arr1901 const yyr1901 bool = false yyq1901[0] = true yyq1901[1] = true var yynn1901 int if yyr1901 || yy2arr1901 { r.EncodeArrayStart(2) } else { yynn1901 = 0 for _, b := range yyq1901 { if b { yynn1901++ } } r.EncodeMapStart(yynn1901) yynn1901 = 0 } if yyr1901 || yy2arr1901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1901[0] { yy1903 := &x.ObjectMeta yy1903.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1901[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1904 := &x.ObjectMeta yy1904.CodecEncodeSelf(e) } } if yyr1901 || yy2arr1901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1901[1] { yy1906 := &x.Spec yy1906.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1901[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1907 := &x.Spec yy1907.CodecEncodeSelf(e) } } if yyr1901 || yy2arr1901 { 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 yym1908 := z.DecBinary() _ = yym1908 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1909 := r.ContainerType() if yyct1909 == codecSelferValueTypeMap1234 { yyl1909 := r.ReadMapStart() if yyl1909 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1909, d) } } else if yyct1909 == codecSelferValueTypeArray1234 { yyl1909 := r.ReadArrayStart() if yyl1909 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1909, 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 yys1910Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1910Slc var yyhl1910 bool = l >= 0 for yyj1910 := 0; ; yyj1910++ { if yyhl1910 { if yyj1910 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1910Slc = r.DecodeBytes(yys1910Slc, true, true) yys1910 := string(yys1910Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1910 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1911 := &x.ObjectMeta yyv1911.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1912 := &x.Spec yyv1912.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1910) } // end switch yys1910 } // end for yyj1910 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 yyj1913 int var yyb1913 bool var yyhl1913 bool = l >= 0 yyj1913++ if yyhl1913 { yyb1913 = yyj1913 > l } else { yyb1913 = r.CheckBreak() } if yyb1913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1914 := &x.ObjectMeta yyv1914.CodecDecodeSelf(d) } yyj1913++ if yyhl1913 { yyb1913 = yyj1913 > l } else { yyb1913 = r.CheckBreak() } if yyb1913 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1915 := &x.Spec yyv1915.CodecDecodeSelf(d) } for { yyj1913++ if yyhl1913 { yyb1913 = yyj1913 > l } else { yyb1913 = r.CheckBreak() } if yyb1913 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1913-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 { yym1916 := z.EncBinary() _ = yym1916 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1917 := !z.EncBinary() yy2arr1917 := z.EncBasicHandle().StructToArray var yyq1917 [4]bool _, _, _ = yysep1917, yyq1917, yy2arr1917 const yyr1917 bool = false yyq1917[0] = true yyq1917[1] = true yyq1917[2] = x.Kind != "" yyq1917[3] = x.APIVersion != "" var yynn1917 int if yyr1917 || yy2arr1917 { r.EncodeArrayStart(4) } else { yynn1917 = 0 for _, b := range yyq1917 { if b { yynn1917++ } } r.EncodeMapStart(yynn1917) yynn1917 = 0 } if yyr1917 || yy2arr1917 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1917[0] { yy1919 := &x.ObjectMeta yy1919.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1917[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1920 := &x.ObjectMeta yy1920.CodecEncodeSelf(e) } } if yyr1917 || yy2arr1917 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1917[1] { yy1922 := &x.Template yy1922.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1917[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1923 := &x.Template yy1923.CodecEncodeSelf(e) } } if yyr1917 || yy2arr1917 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1917[2] { yym1925 := z.EncBinary() _ = yym1925 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1917[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1926 := z.EncBinary() _ = yym1926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1917 || yy2arr1917 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1917[3] { yym1928 := z.EncBinary() _ = yym1928 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1917[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1929 := z.EncBinary() _ = yym1929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1917 || yy2arr1917 { 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 yym1930 := z.DecBinary() _ = yym1930 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1931 := r.ContainerType() if yyct1931 == codecSelferValueTypeMap1234 { yyl1931 := r.ReadMapStart() if yyl1931 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1931, d) } } else if yyct1931 == codecSelferValueTypeArray1234 { yyl1931 := r.ReadArrayStart() if yyl1931 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1931, 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 yys1932Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1932Slc var yyhl1932 bool = l >= 0 for yyj1932 := 0; ; yyj1932++ { if yyhl1932 { if yyj1932 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1932Slc = r.DecodeBytes(yys1932Slc, true, true) yys1932 := string(yys1932Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1932 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1933 := &x.ObjectMeta yyv1933.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1934 := &x.Template yyv1934.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys1932) } // end switch yys1932 } // end for yyj1932 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 yyj1937 int var yyb1937 bool var yyhl1937 bool = l >= 0 yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1938 := &x.ObjectMeta yyv1938.CodecDecodeSelf(d) } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1939 := &x.Template yyv1939.CodecDecodeSelf(d) } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1937-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 { yym1942 := z.EncBinary() _ = yym1942 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1943 := !z.EncBinary() yy2arr1943 := z.EncBasicHandle().StructToArray var yyq1943 [4]bool _, _, _ = yysep1943, yyq1943, yy2arr1943 const yyr1943 bool = false yyq1943[0] = true yyq1943[2] = x.Kind != "" yyq1943[3] = x.APIVersion != "" var yynn1943 int if yyr1943 || yy2arr1943 { r.EncodeArrayStart(4) } else { yynn1943 = 1 for _, b := range yyq1943 { if b { yynn1943++ } } r.EncodeMapStart(yynn1943) yynn1943 = 0 } if yyr1943 || yy2arr1943 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1943[0] { yy1945 := &x.ListMeta yym1946 := z.EncBinary() _ = yym1946 if false { } else if z.HasExtensions() && z.EncExt(yy1945) { } else { z.EncFallback(yy1945) } } else { r.EncodeNil() } } else { if yyq1943[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1947 := &x.ListMeta yym1948 := z.EncBinary() _ = yym1948 if false { } else if z.HasExtensions() && z.EncExt(yy1947) { } else { z.EncFallback(yy1947) } } } if yyr1943 || yy2arr1943 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1950 := z.EncBinary() _ = yym1950 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 { yym1951 := z.EncBinary() _ = yym1951 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr1943 || yy2arr1943 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1943[2] { yym1953 := z.EncBinary() _ = yym1953 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1943[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1954 := z.EncBinary() _ = yym1954 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1943 || yy2arr1943 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1943[3] { yym1956 := z.EncBinary() _ = yym1956 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1943[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1957 := z.EncBinary() _ = yym1957 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1943 || yy2arr1943 { 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 yym1958 := z.DecBinary() _ = yym1958 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1959 := r.ContainerType() if yyct1959 == codecSelferValueTypeMap1234 { yyl1959 := r.ReadMapStart() if yyl1959 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1959, d) } } else if yyct1959 == codecSelferValueTypeArray1234 { yyl1959 := r.ReadArrayStart() if yyl1959 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1959, 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 yys1960Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1960Slc var yyhl1960 bool = l >= 0 for yyj1960 := 0; ; yyj1960++ { if yyhl1960 { if yyj1960 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1960Slc = r.DecodeBytes(yys1960Slc, true, true) yys1960 := string(yys1960Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1960 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1961 := &x.ListMeta yym1962 := z.DecBinary() _ = yym1962 if false { } else if z.HasExtensions() && z.DecExt(yyv1961) { } else { z.DecFallback(yyv1961, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1963 := &x.Items yym1964 := z.DecBinary() _ = yym1964 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1963), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys1960) } // end switch yys1960 } // end for yyj1960 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 yyj1967 int var yyb1967 bool var yyhl1967 bool = l >= 0 yyj1967++ if yyhl1967 { yyb1967 = yyj1967 > l } else { yyb1967 = r.CheckBreak() } if yyb1967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1968 := &x.ListMeta yym1969 := z.DecBinary() _ = yym1969 if false { } else if z.HasExtensions() && z.DecExt(yyv1968) { } else { z.DecFallback(yyv1968, false) } } yyj1967++ if yyhl1967 { yyb1967 = yyj1967 > l } else { yyb1967 = r.CheckBreak() } if yyb1967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1970 := &x.Items yym1971 := z.DecBinary() _ = yym1971 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1970), d) } } yyj1967++ if yyhl1967 { yyb1967 = yyj1967 > l } else { yyb1967 = r.CheckBreak() } if yyb1967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1967++ if yyhl1967 { yyb1967 = yyj1967 > l } else { yyb1967 = r.CheckBreak() } if yyb1967 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj1967++ if yyhl1967 { yyb1967 = yyj1967 > l } else { yyb1967 = r.CheckBreak() } if yyb1967 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1967-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 { yym1974 := z.EncBinary() _ = yym1974 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1975 := !z.EncBinary() yy2arr1975 := z.EncBasicHandle().StructToArray var yyq1975 [3]bool _, _, _ = yysep1975, yyq1975, yy2arr1975 const yyr1975 bool = false yyq1975[2] = x.Template != nil var yynn1975 int if yyr1975 || yy2arr1975 { r.EncodeArrayStart(3) } else { yynn1975 = 2 for _, b := range yyq1975 { if b { yynn1975++ } } r.EncodeMapStart(yynn1975) yynn1975 = 0 } if yyr1975 || yy2arr1975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1977 := z.EncBinary() _ = yym1977 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1978 := z.EncBinary() _ = yym1978 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1975 || yy2arr1975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym1980 := z.EncBinary() _ = yym1980 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 { yym1981 := z.EncBinary() _ = yym1981 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr1975 || yy2arr1975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1975[2] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1975[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 yyr1975 || yy2arr1975 { 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 yym1983 := z.DecBinary() _ = yym1983 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1984 := r.ContainerType() if yyct1984 == codecSelferValueTypeMap1234 { yyl1984 := r.ReadMapStart() if yyl1984 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1984, d) } } else if yyct1984 == codecSelferValueTypeArray1234 { yyl1984 := r.ReadArrayStart() if yyl1984 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1984, 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 yys1985Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1985Slc var yyhl1985 bool = l >= 0 for yyj1985 := 0; ; yyj1985++ { if yyhl1985 { if yyj1985 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1985Slc = r.DecodeBytes(yys1985Slc, true, true) yys1985 := string(yys1985Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1985 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1987 := &x.Selector yym1988 := z.DecBinary() _ = yym1988 if false { } else { z.F.DecMapStringStringX(yyv1987, 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, yys1985) } // end switch yys1985 } // end for yyj1985 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 yyj1990 int var yyb1990 bool var yyhl1990 bool = l >= 0 yyj1990++ if yyhl1990 { yyb1990 = yyj1990 > l } else { yyb1990 = r.CheckBreak() } if yyb1990 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1990++ if yyhl1990 { yyb1990 = yyj1990 > l } else { yyb1990 = r.CheckBreak() } if yyb1990 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1992 := &x.Selector yym1993 := z.DecBinary() _ = yym1993 if false { } else { z.F.DecMapStringStringX(yyv1992, false, d) } } yyj1990++ if yyhl1990 { yyb1990 = yyj1990 > l } else { yyb1990 = r.CheckBreak() } if yyb1990 { 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 { yyj1990++ if yyhl1990 { yyb1990 = yyj1990 > l } else { yyb1990 = r.CheckBreak() } if yyb1990 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1990-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 { yym1995 := z.EncBinary() _ = yym1995 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1996 := !z.EncBinary() yy2arr1996 := z.EncBasicHandle().StructToArray var yyq1996 [2]bool _, _, _ = yysep1996, yyq1996, yy2arr1996 const yyr1996 bool = false yyq1996[1] = x.ObservedGeneration != 0 var yynn1996 int if yyr1996 || yy2arr1996 { r.EncodeArrayStart(2) } else { yynn1996 = 1 for _, b := range yyq1996 { if b { yynn1996++ } } r.EncodeMapStart(yynn1996) yynn1996 = 0 } if yyr1996 || yy2arr1996 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1998 := z.EncBinary() _ = yym1998 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1999 := z.EncBinary() _ = yym1999 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1996 || yy2arr1996 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1996[1] { yym2001 := z.EncBinary() _ = yym2001 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq1996[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2002 := z.EncBinary() _ = yym2002 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr1996 || yy2arr1996 { 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 yym2003 := z.DecBinary() _ = yym2003 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2004 := r.ContainerType() if yyct2004 == codecSelferValueTypeMap1234 { yyl2004 := r.ReadMapStart() if yyl2004 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2004, d) } } else if yyct2004 == codecSelferValueTypeArray1234 { yyl2004 := r.ReadArrayStart() if yyl2004 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2004, 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 yys2005Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2005Slc var yyhl2005 bool = l >= 0 for yyj2005 := 0; ; yyj2005++ { if yyhl2005 { if yyj2005 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2005Slc = r.DecodeBytes(yys2005Slc, true, true) yys2005 := string(yys2005Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2005 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys2005) } // end switch yys2005 } // end for yyj2005 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 yyj2008 int var yyb2008 bool var yyhl2008 bool = l >= 0 yyj2008++ if yyhl2008 { yyb2008 = yyj2008 > l } else { yyb2008 = r.CheckBreak() } if yyb2008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2008++ if yyhl2008 { yyb2008 = yyj2008 > l } else { yyb2008 = r.CheckBreak() } if yyb2008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } for { yyj2008++ if yyhl2008 { yyb2008 = yyj2008 > l } else { yyb2008 = r.CheckBreak() } if yyb2008 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2008-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 { yym2011 := z.EncBinary() _ = yym2011 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2012 := !z.EncBinary() yy2arr2012 := z.EncBasicHandle().StructToArray var yyq2012 [5]bool _, _, _ = yysep2012, yyq2012, yy2arr2012 const yyr2012 bool = false yyq2012[0] = true yyq2012[1] = true yyq2012[2] = true yyq2012[3] = x.Kind != "" yyq2012[4] = x.APIVersion != "" var yynn2012 int if yyr2012 || yy2arr2012 { r.EncodeArrayStart(5) } else { yynn2012 = 0 for _, b := range yyq2012 { if b { yynn2012++ } } r.EncodeMapStart(yynn2012) yynn2012 = 0 } if yyr2012 || yy2arr2012 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2012[0] { yy2014 := &x.ObjectMeta yy2014.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2012[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2015 := &x.ObjectMeta yy2015.CodecEncodeSelf(e) } } if yyr2012 || yy2arr2012 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2012[1] { yy2017 := &x.Spec yy2017.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2012[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2018 := &x.Spec yy2018.CodecEncodeSelf(e) } } if yyr2012 || yy2arr2012 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2012[2] { yy2020 := &x.Status yy2020.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2012[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2021 := &x.Status yy2021.CodecEncodeSelf(e) } } if yyr2012 || yy2arr2012 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2012[3] { yym2023 := z.EncBinary() _ = yym2023 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2012[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2024 := z.EncBinary() _ = yym2024 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2012 || yy2arr2012 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2012[4] { yym2026 := z.EncBinary() _ = yym2026 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2012[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2027 := z.EncBinary() _ = yym2027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2012 || yy2arr2012 { 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 yym2028 := z.DecBinary() _ = yym2028 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2029 := r.ContainerType() if yyct2029 == codecSelferValueTypeMap1234 { yyl2029 := r.ReadMapStart() if yyl2029 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2029, d) } } else if yyct2029 == codecSelferValueTypeArray1234 { yyl2029 := r.ReadArrayStart() if yyl2029 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2029, 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 yys2030Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2030Slc var yyhl2030 bool = l >= 0 for yyj2030 := 0; ; yyj2030++ { if yyhl2030 { if yyj2030 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2030Slc = r.DecodeBytes(yys2030Slc, true, true) yys2030 := string(yys2030Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2030 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2031 := &x.ObjectMeta yyv2031.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2032 := &x.Spec yyv2032.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2033 := &x.Status yyv2033.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys2030) } // end switch yys2030 } // end for yyj2030 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 yyj2036 int var yyb2036 bool var yyhl2036 bool = l >= 0 yyj2036++ if yyhl2036 { yyb2036 = yyj2036 > l } else { yyb2036 = r.CheckBreak() } if yyb2036 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2037 := &x.ObjectMeta yyv2037.CodecDecodeSelf(d) } yyj2036++ if yyhl2036 { yyb2036 = yyj2036 > l } else { yyb2036 = r.CheckBreak() } if yyb2036 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2038 := &x.Spec yyv2038.CodecDecodeSelf(d) } yyj2036++ if yyhl2036 { yyb2036 = yyj2036 > l } else { yyb2036 = r.CheckBreak() } if yyb2036 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2039 := &x.Status yyv2039.CodecDecodeSelf(d) } yyj2036++ if yyhl2036 { yyb2036 = yyj2036 > l } else { yyb2036 = r.CheckBreak() } if yyb2036 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2036++ if yyhl2036 { yyb2036 = yyj2036 > l } else { yyb2036 = r.CheckBreak() } if yyb2036 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2036++ if yyhl2036 { yyb2036 = yyj2036 > l } else { yyb2036 = r.CheckBreak() } if yyb2036 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2036-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 { yym2042 := z.EncBinary() _ = yym2042 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2043 := !z.EncBinary() yy2arr2043 := z.EncBasicHandle().StructToArray var yyq2043 [4]bool _, _, _ = yysep2043, yyq2043, yy2arr2043 const yyr2043 bool = false yyq2043[0] = true yyq2043[2] = x.Kind != "" yyq2043[3] = x.APIVersion != "" var yynn2043 int if yyr2043 || yy2arr2043 { r.EncodeArrayStart(4) } else { yynn2043 = 1 for _, b := range yyq2043 { if b { yynn2043++ } } r.EncodeMapStart(yynn2043) yynn2043 = 0 } if yyr2043 || yy2arr2043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2043[0] { yy2045 := &x.ListMeta yym2046 := z.EncBinary() _ = yym2046 if false { } else if z.HasExtensions() && z.EncExt(yy2045) { } else { z.EncFallback(yy2045) } } else { r.EncodeNil() } } else { if yyq2043[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2047 := &x.ListMeta yym2048 := z.EncBinary() _ = yym2048 if false { } else if z.HasExtensions() && z.EncExt(yy2047) { } else { z.EncFallback(yy2047) } } } if yyr2043 || yy2arr2043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2050 := z.EncBinary() _ = yym2050 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 { yym2051 := z.EncBinary() _ = yym2051 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr2043 || yy2arr2043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2043[2] { yym2053 := z.EncBinary() _ = yym2053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2043[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2054 := z.EncBinary() _ = yym2054 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2043 || yy2arr2043 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2043[3] { yym2056 := z.EncBinary() _ = yym2056 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2043[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2057 := z.EncBinary() _ = yym2057 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2043 || yy2arr2043 { 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 yym2058 := z.DecBinary() _ = yym2058 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2059 := r.ContainerType() if yyct2059 == codecSelferValueTypeMap1234 { yyl2059 := r.ReadMapStart() if yyl2059 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2059, d) } } else if yyct2059 == codecSelferValueTypeArray1234 { yyl2059 := r.ReadArrayStart() if yyl2059 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2059, 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 yys2060Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2060Slc var yyhl2060 bool = l >= 0 for yyj2060 := 0; ; yyj2060++ { if yyhl2060 { if yyj2060 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2060Slc = r.DecodeBytes(yys2060Slc, true, true) yys2060 := string(yys2060Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2060 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2061 := &x.ListMeta yym2062 := z.DecBinary() _ = yym2062 if false { } else if z.HasExtensions() && z.DecExt(yyv2061) { } else { z.DecFallback(yyv2061, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2063 := &x.Items yym2064 := z.DecBinary() _ = yym2064 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2063), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2060) } // end switch yys2060 } // end for yyj2060 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 yyj2067 int var yyb2067 bool var yyhl2067 bool = l >= 0 yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2068 := &x.ListMeta yym2069 := z.DecBinary() _ = yym2069 if false { } else if z.HasExtensions() && z.DecExt(yyv2068) { } else { z.DecFallback(yyv2068, false) } } yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2070 := &x.Items yym2071 := z.DecBinary() _ = yym2071 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2070), d) } } yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2067-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 { yym2074 := z.EncBinary() _ = yym2074 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2075 := !z.EncBinary() yy2arr2075 := z.EncBasicHandle().StructToArray var yyq2075 [4]bool _, _, _ = yysep2075, yyq2075, yy2arr2075 const yyr2075 bool = false yyq2075[0] = true yyq2075[2] = x.Kind != "" yyq2075[3] = x.APIVersion != "" var yynn2075 int if yyr2075 || yy2arr2075 { r.EncodeArrayStart(4) } else { yynn2075 = 1 for _, b := range yyq2075 { if b { yynn2075++ } } r.EncodeMapStart(yynn2075) yynn2075 = 0 } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[0] { yy2077 := &x.ListMeta yym2078 := z.EncBinary() _ = yym2078 if false { } else if z.HasExtensions() && z.EncExt(yy2077) { } else { z.EncFallback(yy2077) } } else { r.EncodeNil() } } else { if yyq2075[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2079 := &x.ListMeta yym2080 := z.EncBinary() _ = yym2080 if false { } else if z.HasExtensions() && z.EncExt(yy2079) { } else { z.EncFallback(yy2079) } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2082 := z.EncBinary() _ = yym2082 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 { yym2083 := z.EncBinary() _ = yym2083 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[2] { yym2085 := z.EncBinary() _ = yym2085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2075[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2086 := z.EncBinary() _ = yym2086 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[3] { yym2088 := z.EncBinary() _ = yym2088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2075[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2089 := z.EncBinary() _ = yym2089 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2075 || yy2arr2075 { 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 yym2090 := z.DecBinary() _ = yym2090 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2091 := r.ContainerType() if yyct2091 == codecSelferValueTypeMap1234 { yyl2091 := r.ReadMapStart() if yyl2091 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2091, d) } } else if yyct2091 == codecSelferValueTypeArray1234 { yyl2091 := r.ReadArrayStart() if yyl2091 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2091, 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 yys2092Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2092Slc var yyhl2092 bool = l >= 0 for yyj2092 := 0; ; yyj2092++ { if yyhl2092 { if yyj2092 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2092Slc = r.DecodeBytes(yys2092Slc, true, true) yys2092 := string(yys2092Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2092 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2093 := &x.ListMeta yym2094 := z.DecBinary() _ = yym2094 if false { } else if z.HasExtensions() && z.DecExt(yyv2093) { } else { z.DecFallback(yyv2093, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2095 := &x.Items yym2096 := z.DecBinary() _ = yym2096 if false { } else { h.decSliceService((*[]Service)(yyv2095), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2092) } // end switch yys2092 } // end for yyj2092 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 yyj2099 int var yyb2099 bool var yyhl2099 bool = l >= 0 yyj2099++ if yyhl2099 { yyb2099 = yyj2099 > l } else { yyb2099 = r.CheckBreak() } if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2100 := &x.ListMeta yym2101 := z.DecBinary() _ = yym2101 if false { } else if z.HasExtensions() && z.DecExt(yyv2100) { } else { z.DecFallback(yyv2100, false) } } yyj2099++ if yyhl2099 { yyb2099 = yyj2099 > l } else { yyb2099 = r.CheckBreak() } if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2102 := &x.Items yym2103 := z.DecBinary() _ = yym2103 if false { } else { h.decSliceService((*[]Service)(yyv2102), d) } } yyj2099++ if yyhl2099 { yyb2099 = yyj2099 > l } else { yyb2099 = r.CheckBreak() } if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2099++ if yyhl2099 { yyb2099 = yyj2099 > l } else { yyb2099 = r.CheckBreak() } if yyb2099 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2099++ if yyhl2099 { yyb2099 = yyj2099 > l } else { yyb2099 = r.CheckBreak() } if yyb2099 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2099-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2106 := z.EncBinary() _ = yym2106 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 yym2107 := z.DecBinary() _ = yym2107 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 yym2108 := z.EncBinary() _ = yym2108 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 yym2109 := z.DecBinary() _ = yym2109 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 { yym2110 := z.EncBinary() _ = yym2110 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2111 := !z.EncBinary() yy2arr2111 := z.EncBasicHandle().StructToArray var yyq2111 [1]bool _, _, _ = yysep2111, yyq2111, yy2arr2111 const yyr2111 bool = false yyq2111[0] = true var yynn2111 int if yyr2111 || yy2arr2111 { r.EncodeArrayStart(1) } else { yynn2111 = 0 for _, b := range yyq2111 { if b { yynn2111++ } } r.EncodeMapStart(yynn2111) yynn2111 = 0 } if yyr2111 || yy2arr2111 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2111[0] { yy2113 := &x.LoadBalancer yy2113.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2111[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2114 := &x.LoadBalancer yy2114.CodecEncodeSelf(e) } } if yyr2111 || yy2arr2111 { 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 yym2115 := z.DecBinary() _ = yym2115 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2116 := r.ContainerType() if yyct2116 == codecSelferValueTypeMap1234 { yyl2116 := r.ReadMapStart() if yyl2116 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2116, d) } } else if yyct2116 == codecSelferValueTypeArray1234 { yyl2116 := r.ReadArrayStart() if yyl2116 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2116, 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 yys2117Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2117Slc var yyhl2117 bool = l >= 0 for yyj2117 := 0; ; yyj2117++ { if yyhl2117 { if yyj2117 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2117Slc = r.DecodeBytes(yys2117Slc, true, true) yys2117 := string(yys2117Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2117 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2118 := &x.LoadBalancer yyv2118.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2117) } // end switch yys2117 } // end for yyj2117 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 yyj2119 int var yyb2119 bool var yyhl2119 bool = l >= 0 yyj2119++ if yyhl2119 { yyb2119 = yyj2119 > l } else { yyb2119 = r.CheckBreak() } if yyb2119 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2120 := &x.LoadBalancer yyv2120.CodecDecodeSelf(d) } for { yyj2119++ if yyhl2119 { yyb2119 = yyj2119 > l } else { yyb2119 = r.CheckBreak() } if yyb2119 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2119-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 { yym2121 := z.EncBinary() _ = yym2121 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2122 := !z.EncBinary() yy2arr2122 := z.EncBasicHandle().StructToArray var yyq2122 [1]bool _, _, _ = yysep2122, yyq2122, yy2arr2122 const yyr2122 bool = false yyq2122[0] = len(x.Ingress) != 0 var yynn2122 int if yyr2122 || yy2arr2122 { r.EncodeArrayStart(1) } else { yynn2122 = 0 for _, b := range yyq2122 { if b { yynn2122++ } } r.EncodeMapStart(yynn2122) yynn2122 = 0 } if yyr2122 || yy2arr2122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2122[0] { if x.Ingress == nil { r.EncodeNil() } else { yym2124 := z.EncBinary() _ = yym2124 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq2122[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym2125 := z.EncBinary() _ = yym2125 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr2122 || yy2arr2122 { 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 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 *LoadBalancerStatus) 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 "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2129 := &x.Ingress yym2130 := z.DecBinary() _ = yym2130 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2129), d) } } default: z.DecStructFieldNotFound(-1, yys2128) } // end switch yys2128 } // end for yyj2128 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 yyj2131 int var yyb2131 bool var yyhl2131 bool = l >= 0 yyj2131++ if yyhl2131 { yyb2131 = yyj2131 > l } else { yyb2131 = r.CheckBreak() } if yyb2131 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2132 := &x.Ingress yym2133 := z.DecBinary() _ = yym2133 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2132), d) } } for { yyj2131++ if yyhl2131 { yyb2131 = yyj2131 > l } else { yyb2131 = r.CheckBreak() } if yyb2131 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2131-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 { yym2134 := z.EncBinary() _ = yym2134 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2135 := !z.EncBinary() yy2arr2135 := z.EncBasicHandle().StructToArray var yyq2135 [2]bool _, _, _ = yysep2135, yyq2135, yy2arr2135 const yyr2135 bool = false yyq2135[0] = x.IP != "" yyq2135[1] = x.Hostname != "" var yynn2135 int if yyr2135 || yy2arr2135 { r.EncodeArrayStart(2) } else { yynn2135 = 0 for _, b := range yyq2135 { if b { yynn2135++ } } r.EncodeMapStart(yynn2135) yynn2135 = 0 } if yyr2135 || yy2arr2135 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2135[0] { yym2137 := z.EncBinary() _ = yym2137 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2135[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2138 := z.EncBinary() _ = yym2138 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr2135 || yy2arr2135 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2135[1] { yym2140 := z.EncBinary() _ = yym2140 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2135[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2141 := z.EncBinary() _ = yym2141 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2135 || yy2arr2135 { 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 yym2142 := z.DecBinary() _ = yym2142 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2143 := r.ContainerType() if yyct2143 == codecSelferValueTypeMap1234 { yyl2143 := r.ReadMapStart() if yyl2143 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2143, d) } } else if yyct2143 == codecSelferValueTypeArray1234 { yyl2143 := r.ReadArrayStart() if yyl2143 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2143, 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 yys2144Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2144Slc var yyhl2144 bool = l >= 0 for yyj2144 := 0; ; yyj2144++ { if yyhl2144 { if yyj2144 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2144Slc = r.DecodeBytes(yys2144Slc, true, true) yys2144 := string(yys2144Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2144 { 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, yys2144) } // end switch yys2144 } // end for yyj2144 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 yyj2147 int var yyb2147 bool var yyhl2147 bool = l >= 0 yyj2147++ if yyhl2147 { yyb2147 = yyj2147 > l } else { yyb2147 = r.CheckBreak() } if yyb2147 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2147++ if yyhl2147 { yyb2147 = yyj2147 > l } else { yyb2147 = r.CheckBreak() } if yyb2147 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj2147++ if yyhl2147 { yyb2147 = yyj2147 > l } else { yyb2147 = r.CheckBreak() } if yyb2147 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2147-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 { yym2150 := z.EncBinary() _ = yym2150 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2151 := !z.EncBinary() yy2arr2151 := z.EncBasicHandle().StructToArray var yyq2151 [7]bool _, _, _ = yysep2151, yyq2151, yy2arr2151 const yyr2151 bool = false yyq2151[0] = x.Type != "" yyq2151[3] = x.ClusterIP != "" yyq2151[4] = len(x.ExternalIPs) != 0 yyq2151[5] = x.LoadBalancerIP != "" yyq2151[6] = x.SessionAffinity != "" var yynn2151 int if yyr2151 || yy2arr2151 { r.EncodeArrayStart(7) } else { yynn2151 = 2 for _, b := range yyq2151 { if b { yynn2151++ } } r.EncodeMapStart(yynn2151) yynn2151 = 0 } if yyr2151 || yy2arr2151 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2151[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2151[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr2151 || yy2arr2151 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2154 := z.EncBinary() _ = yym2154 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 { yym2155 := z.EncBinary() _ = yym2155 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr2151 || yy2arr2151 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2157 := z.EncBinary() _ = yym2157 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 { yym2158 := z.EncBinary() _ = yym2158 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2151 || yy2arr2151 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2151[3] { yym2160 := z.EncBinary() _ = yym2160 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2151[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2161 := z.EncBinary() _ = yym2161 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr2151 || yy2arr2151 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2151[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym2163 := z.EncBinary() _ = yym2163 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq2151[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym2164 := z.EncBinary() _ = yym2164 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr2151 || yy2arr2151 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2151[5] { yym2166 := z.EncBinary() _ = yym2166 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2151[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2167 := z.EncBinary() _ = yym2167 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr2151 || yy2arr2151 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2151[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2151[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr2151 || yy2arr2151 { 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 yym2169 := z.DecBinary() _ = yym2169 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2170 := r.ContainerType() if yyct2170 == codecSelferValueTypeMap1234 { yyl2170 := r.ReadMapStart() if yyl2170 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2170, d) } } else if yyct2170 == codecSelferValueTypeArray1234 { yyl2170 := r.ReadArrayStart() if yyl2170 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2170, 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 yys2171Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2171Slc var yyhl2171 bool = l >= 0 for yyj2171 := 0; ; yyj2171++ { if yyhl2171 { if yyj2171 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2171Slc = r.DecodeBytes(yys2171Slc, true, true) yys2171 := string(yys2171Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2171 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2173 := &x.Ports yym2174 := z.DecBinary() _ = yym2174 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2173), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2175 := &x.Selector yym2176 := z.DecBinary() _ = yym2176 if false { } else { z.F.DecMapStringStringX(yyv2175, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2178 := &x.ExternalIPs yym2179 := z.DecBinary() _ = yym2179 if false { } else { z.F.DecSliceStringX(yyv2178, 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()) } default: z.DecStructFieldNotFound(-1, yys2171) } // end switch yys2171 } // end for yyj2171 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 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.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } 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.Ports = nil } else { yyv2184 := &x.Ports yym2185 := z.DecBinary() _ = yym2185 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2184), 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.Selector = nil } else { yyv2186 := &x.Selector yym2187 := z.DecBinary() _ = yym2187 if false { } else { z.F.DecMapStringStringX(yyv2186, false, 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.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } 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.ExternalIPs = nil } else { yyv2189 := &x.ExternalIPs yym2190 := z.DecBinary() _ = yym2190 if false { } else { z.F.DecSliceStringX(yyv2189, false, 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.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } 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.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } 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 *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2193 := z.EncBinary() _ = yym2193 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2194 := !z.EncBinary() yy2arr2194 := z.EncBasicHandle().StructToArray var yyq2194 [5]bool _, _, _ = yysep2194, yyq2194, yy2arr2194 const yyr2194 bool = false var yynn2194 int if yyr2194 || yy2arr2194 { r.EncodeArrayStart(5) } else { yynn2194 = 5 for _, b := range yyq2194 { if b { yynn2194++ } } r.EncodeMapStart(yynn2194) yynn2194 = 0 } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2196 := z.EncBinary() _ = yym2196 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) yym2197 := z.EncBinary() _ = yym2197 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2194 || yy2arr2194 { 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 yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2200 := z.EncBinary() _ = yym2200 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2201 := z.EncBinary() _ = yym2201 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2203 := &x.TargetPort yym2204 := z.EncBinary() _ = yym2204 if false { } else if z.HasExtensions() && z.EncExt(yy2203) { } else if !yym2204 && z.IsJSONHandle() { z.EncJSONMarshal(yy2203) } else { z.EncFallback(yy2203) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2205 := &x.TargetPort yym2206 := z.EncBinary() _ = yym2206 if false { } else if z.HasExtensions() && z.EncExt(yy2205) { } else if !yym2206 && z.IsJSONHandle() { z.EncJSONMarshal(yy2205) } else { z.EncFallback(yy2205) } } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2208 := z.EncBinary() _ = yym2208 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2209 := z.EncBinary() _ = yym2209 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr2194 || yy2arr2194 { 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 yym2210 := z.DecBinary() _ = yym2210 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2211 := r.ContainerType() if yyct2211 == codecSelferValueTypeMap1234 { yyl2211 := r.ReadMapStart() if yyl2211 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2211, d) } } else if yyct2211 == codecSelferValueTypeArray1234 { yyl2211 := r.ReadArrayStart() if yyl2211 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2211, 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 yys2212Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2212Slc var yyhl2212 bool = l >= 0 for yyj2212 := 0; ; yyj2212++ { if yyhl2212 { if yyj2212 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2212Slc = r.DecodeBytes(yys2212Slc, true, true) yys2212 := string(yys2212Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2212 { 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 = int(r.DecodeInt(codecSelferBitsize1234)) } case "targetPort": if r.TryDecodeAsNil() { x.TargetPort = pkg5_intstr.IntOrString{} } else { yyv2216 := &x.TargetPort yym2217 := z.DecBinary() _ = yym2217 if false { } else if z.HasExtensions() && z.DecExt(yyv2216) { } else if !yym2217 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2216) } else { z.DecFallback(yyv2216, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2212) } // end switch yys2212 } // end for yyj2212 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 yyj2219 int var yyb2219 bool var yyhl2219 bool = l >= 0 yyj2219++ if yyhl2219 { yyb2219 = yyj2219 > l } else { yyb2219 = r.CheckBreak() } if yyb2219 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2219++ if yyhl2219 { yyb2219 = yyj2219 > l } else { yyb2219 = r.CheckBreak() } if yyb2219 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj2219++ if yyhl2219 { yyb2219 = yyj2219 > l } else { yyb2219 = r.CheckBreak() } if yyb2219 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2219++ if yyhl2219 { yyb2219 = yyj2219 > l } else { yyb2219 = r.CheckBreak() } if yyb2219 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg5_intstr.IntOrString{} } else { yyv2223 := &x.TargetPort yym2224 := z.DecBinary() _ = yym2224 if false { } else if z.HasExtensions() && z.DecExt(yyv2223) { } else if !yym2224 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2223) } else { z.DecFallback(yyv2223, false) } } yyj2219++ if yyhl2219 { yyb2219 = yyj2219 > l } else { yyb2219 = r.CheckBreak() } if yyb2219 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2219++ if yyhl2219 { yyb2219 = yyj2219 > l } else { yyb2219 = r.CheckBreak() } if yyb2219 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2219-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 { yym2226 := z.EncBinary() _ = yym2226 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2227 := !z.EncBinary() yy2arr2227 := z.EncBasicHandle().StructToArray var yyq2227 [5]bool _, _, _ = yysep2227, yyq2227, yy2arr2227 const yyr2227 bool = false yyq2227[0] = true yyq2227[1] = true yyq2227[2] = true yyq2227[3] = x.Kind != "" yyq2227[4] = x.APIVersion != "" var yynn2227 int if yyr2227 || yy2arr2227 { r.EncodeArrayStart(5) } else { yynn2227 = 0 for _, b := range yyq2227 { if b { yynn2227++ } } r.EncodeMapStart(yynn2227) yynn2227 = 0 } if yyr2227 || yy2arr2227 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2227[0] { yy2229 := &x.ObjectMeta yy2229.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2227[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2230 := &x.ObjectMeta yy2230.CodecEncodeSelf(e) } } if yyr2227 || yy2arr2227 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2227[1] { yy2232 := &x.Spec yy2232.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2227[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2233 := &x.Spec yy2233.CodecEncodeSelf(e) } } if yyr2227 || yy2arr2227 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2227[2] { yy2235 := &x.Status yy2235.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2227[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2236 := &x.Status yy2236.CodecEncodeSelf(e) } } if yyr2227 || yy2arr2227 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2227[3] { yym2238 := z.EncBinary() _ = yym2238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2227[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2239 := z.EncBinary() _ = yym2239 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2227 || yy2arr2227 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2227[4] { yym2241 := z.EncBinary() _ = yym2241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2227[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2242 := z.EncBinary() _ = yym2242 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2227 || yy2arr2227 { 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 yym2243 := z.DecBinary() _ = yym2243 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2244 := r.ContainerType() if yyct2244 == codecSelferValueTypeMap1234 { yyl2244 := r.ReadMapStart() if yyl2244 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2244, d) } } else if yyct2244 == codecSelferValueTypeArray1234 { yyl2244 := r.ReadArrayStart() if yyl2244 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2244, 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 yys2245Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2245Slc var yyhl2245 bool = l >= 0 for yyj2245 := 0; ; yyj2245++ { if yyhl2245 { if yyj2245 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2245Slc = r.DecodeBytes(yys2245Slc, true, true) yys2245 := string(yys2245Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2245 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2246 := &x.ObjectMeta yyv2246.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2247 := &x.Spec yyv2247.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2248 := &x.Status yyv2248.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys2245) } // end switch yys2245 } // end for yyj2245 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 yyj2251 int var yyb2251 bool var yyhl2251 bool = l >= 0 yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2252 := &x.ObjectMeta yyv2252.CodecDecodeSelf(d) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2253 := &x.Spec yyv2253.CodecDecodeSelf(d) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2254 := &x.Status yyv2254.CodecDecodeSelf(d) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2251-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2257 := z.EncBinary() _ = yym2257 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2258 := !z.EncBinary() yy2arr2258 := z.EncBasicHandle().StructToArray var yyq2258 [5]bool _, _, _ = yysep2258, yyq2258, yy2arr2258 const yyr2258 bool = false yyq2258[0] = true yyq2258[2] = len(x.ImagePullSecrets) != 0 yyq2258[3] = x.Kind != "" yyq2258[4] = x.APIVersion != "" var yynn2258 int if yyr2258 || yy2arr2258 { r.EncodeArrayStart(5) } else { yynn2258 = 1 for _, b := range yyq2258 { if b { yynn2258++ } } r.EncodeMapStart(yynn2258) yynn2258 = 0 } if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2258[0] { yy2260 := &x.ObjectMeta yy2260.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2258[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2261 := &x.ObjectMeta yy2261.CodecEncodeSelf(e) } } if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2263 := z.EncBinary() _ = yym2263 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 { yym2264 := z.EncBinary() _ = yym2264 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2258[2] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2266 := z.EncBinary() _ = yym2266 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2258[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2267 := z.EncBinary() _ = yym2267 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2258[3] { yym2269 := z.EncBinary() _ = yym2269 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2258[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2270 := z.EncBinary() _ = yym2270 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2258 || yy2arr2258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2258[4] { yym2272 := z.EncBinary() _ = yym2272 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2258[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2273 := z.EncBinary() _ = yym2273 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2258 || yy2arr2258 { 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 yym2274 := z.DecBinary() _ = yym2274 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2275 := r.ContainerType() if yyct2275 == codecSelferValueTypeMap1234 { yyl2275 := r.ReadMapStart() if yyl2275 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2275, d) } } else if yyct2275 == codecSelferValueTypeArray1234 { yyl2275 := r.ReadArrayStart() if yyl2275 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2275, 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 yys2276Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2276Slc var yyhl2276 bool = l >= 0 for yyj2276 := 0; ; yyj2276++ { if yyhl2276 { if yyj2276 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2276Slc = r.DecodeBytes(yys2276Slc, true, true) yys2276 := string(yys2276Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2276 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2277 := &x.ObjectMeta yyv2277.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2278 := &x.Secrets yym2279 := z.DecBinary() _ = yym2279 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2278), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2280 := &x.ImagePullSecrets yym2281 := z.DecBinary() _ = yym2281 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2280), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2276) } // end switch yys2276 } // end for yyj2276 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 yyj2284 int var yyb2284 bool var yyhl2284 bool = l >= 0 yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2285 := &x.ObjectMeta yyv2285.CodecDecodeSelf(d) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2286 := &x.Secrets yym2287 := z.DecBinary() _ = yym2287 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2286), d) } } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2288 := &x.ImagePullSecrets yym2289 := z.DecBinary() _ = yym2289 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2288), d) } } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2284-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 { yym2292 := z.EncBinary() _ = yym2292 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2293 := !z.EncBinary() yy2arr2293 := z.EncBasicHandle().StructToArray var yyq2293 [4]bool _, _, _ = yysep2293, yyq2293, yy2arr2293 const yyr2293 bool = false yyq2293[0] = true yyq2293[2] = x.Kind != "" yyq2293[3] = x.APIVersion != "" var yynn2293 int if yyr2293 || yy2arr2293 { r.EncodeArrayStart(4) } else { yynn2293 = 1 for _, b := range yyq2293 { if b { yynn2293++ } } r.EncodeMapStart(yynn2293) yynn2293 = 0 } if yyr2293 || yy2arr2293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2293[0] { yy2295 := &x.ListMeta yym2296 := z.EncBinary() _ = yym2296 if false { } else if z.HasExtensions() && z.EncExt(yy2295) { } else { z.EncFallback(yy2295) } } else { r.EncodeNil() } } else { if yyq2293[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2297 := &x.ListMeta yym2298 := z.EncBinary() _ = yym2298 if false { } else if z.HasExtensions() && z.EncExt(yy2297) { } else { z.EncFallback(yy2297) } } } if yyr2293 || yy2arr2293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2300 := z.EncBinary() _ = yym2300 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 { yym2301 := z.EncBinary() _ = yym2301 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2293 || yy2arr2293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2293[2] { yym2303 := z.EncBinary() _ = yym2303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2293[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2304 := z.EncBinary() _ = yym2304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2293 || yy2arr2293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2293[3] { yym2306 := z.EncBinary() _ = yym2306 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2293[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2307 := z.EncBinary() _ = yym2307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2293 || yy2arr2293 { 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 yym2308 := z.DecBinary() _ = yym2308 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2309 := r.ContainerType() if yyct2309 == codecSelferValueTypeMap1234 { yyl2309 := r.ReadMapStart() if yyl2309 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2309, d) } } else if yyct2309 == codecSelferValueTypeArray1234 { yyl2309 := r.ReadArrayStart() if yyl2309 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2309, 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 yys2310Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2310Slc var yyhl2310 bool = l >= 0 for yyj2310 := 0; ; yyj2310++ { if yyhl2310 { if yyj2310 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2310Slc = r.DecodeBytes(yys2310Slc, true, true) yys2310 := string(yys2310Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2310 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2311 := &x.ListMeta yym2312 := z.DecBinary() _ = yym2312 if false { } else if z.HasExtensions() && z.DecExt(yyv2311) { } else { z.DecFallback(yyv2311, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2313 := &x.Items yym2314 := z.DecBinary() _ = yym2314 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2313), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2310) } // end switch yys2310 } // end for yyj2310 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 yyj2317 int var yyb2317 bool var yyhl2317 bool = l >= 0 yyj2317++ if yyhl2317 { yyb2317 = yyj2317 > l } else { yyb2317 = r.CheckBreak() } if yyb2317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2318 := &x.ListMeta yym2319 := z.DecBinary() _ = yym2319 if false { } else if z.HasExtensions() && z.DecExt(yyv2318) { } else { z.DecFallback(yyv2318, false) } } yyj2317++ if yyhl2317 { yyb2317 = yyj2317 > l } else { yyb2317 = r.CheckBreak() } if yyb2317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2320 := &x.Items yym2321 := z.DecBinary() _ = yym2321 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2320), d) } } yyj2317++ if yyhl2317 { yyb2317 = yyj2317 > l } else { yyb2317 = r.CheckBreak() } if yyb2317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2317++ if yyhl2317 { yyb2317 = yyj2317 > l } else { yyb2317 = r.CheckBreak() } if yyb2317 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2317++ if yyhl2317 { yyb2317 = yyj2317 > l } else { yyb2317 = r.CheckBreak() } if yyb2317 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2317-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 { yym2324 := z.EncBinary() _ = yym2324 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2325 := !z.EncBinary() yy2arr2325 := z.EncBasicHandle().StructToArray var yyq2325 [4]bool _, _, _ = yysep2325, yyq2325, yy2arr2325 const yyr2325 bool = false yyq2325[0] = true yyq2325[2] = x.Kind != "" yyq2325[3] = x.APIVersion != "" var yynn2325 int if yyr2325 || yy2arr2325 { r.EncodeArrayStart(4) } else { yynn2325 = 1 for _, b := range yyq2325 { if b { yynn2325++ } } r.EncodeMapStart(yynn2325) yynn2325 = 0 } if yyr2325 || yy2arr2325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2325[0] { yy2327 := &x.ObjectMeta yy2327.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2325[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2328 := &x.ObjectMeta yy2328.CodecEncodeSelf(e) } } if yyr2325 || yy2arr2325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2330 := z.EncBinary() _ = yym2330 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 { yym2331 := z.EncBinary() _ = yym2331 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2325 || yy2arr2325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2325[2] { yym2333 := z.EncBinary() _ = yym2333 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2325[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2334 := z.EncBinary() _ = yym2334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2325 || yy2arr2325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2325[3] { yym2336 := z.EncBinary() _ = yym2336 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2325[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2337 := z.EncBinary() _ = yym2337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2325 || yy2arr2325 { 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 yym2338 := z.DecBinary() _ = yym2338 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2339 := r.ContainerType() if yyct2339 == codecSelferValueTypeMap1234 { yyl2339 := r.ReadMapStart() if yyl2339 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2339, d) } } else if yyct2339 == codecSelferValueTypeArray1234 { yyl2339 := r.ReadArrayStart() if yyl2339 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2339, 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 yys2340Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2340Slc var yyhl2340 bool = l >= 0 for yyj2340 := 0; ; yyj2340++ { if yyhl2340 { if yyj2340 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2340Slc = r.DecodeBytes(yys2340Slc, true, true) yys2340 := string(yys2340Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2340 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2341 := &x.ObjectMeta yyv2341.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2342 := &x.Subsets yym2343 := z.DecBinary() _ = yym2343 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2342), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2340) } // end switch yys2340 } // end for yyj2340 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 yyj2346 int var yyb2346 bool var yyhl2346 bool = l >= 0 yyj2346++ if yyhl2346 { yyb2346 = yyj2346 > l } else { yyb2346 = r.CheckBreak() } if yyb2346 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2347 := &x.ObjectMeta yyv2347.CodecDecodeSelf(d) } yyj2346++ if yyhl2346 { yyb2346 = yyj2346 > l } else { yyb2346 = r.CheckBreak() } if yyb2346 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2348 := &x.Subsets yym2349 := z.DecBinary() _ = yym2349 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2348), d) } } yyj2346++ if yyhl2346 { yyb2346 = yyj2346 > l } else { yyb2346 = r.CheckBreak() } if yyb2346 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2346++ if yyhl2346 { yyb2346 = yyj2346 > l } else { yyb2346 = r.CheckBreak() } if yyb2346 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2346++ if yyhl2346 { yyb2346 = yyj2346 > l } else { yyb2346 = r.CheckBreak() } if yyb2346 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2346-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 { yym2352 := z.EncBinary() _ = yym2352 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2353 := !z.EncBinary() yy2arr2353 := z.EncBasicHandle().StructToArray var yyq2353 [3]bool _, _, _ = yysep2353, yyq2353, yy2arr2353 const yyr2353 bool = false var yynn2353 int if yyr2353 || yy2arr2353 { r.EncodeArrayStart(3) } else { yynn2353 = 3 for _, b := range yyq2353 { if b { yynn2353++ } } r.EncodeMapStart(yynn2353) yynn2353 = 0 } if yyr2353 || yy2arr2353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2355 := z.EncBinary() _ = yym2355 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 { yym2356 := z.EncBinary() _ = yym2356 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2353 || yy2arr2353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2358 := z.EncBinary() _ = yym2358 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 { yym2359 := z.EncBinary() _ = yym2359 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2353 || yy2arr2353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2361 := z.EncBinary() _ = yym2361 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 { yym2362 := z.EncBinary() _ = yym2362 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2353 || yy2arr2353 { 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 yym2363 := z.DecBinary() _ = yym2363 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2364 := r.ContainerType() if yyct2364 == codecSelferValueTypeMap1234 { yyl2364 := r.ReadMapStart() if yyl2364 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2364, d) } } else if yyct2364 == codecSelferValueTypeArray1234 { yyl2364 := r.ReadArrayStart() if yyl2364 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2364, 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 yys2365Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2365Slc var yyhl2365 bool = l >= 0 for yyj2365 := 0; ; yyj2365++ { if yyhl2365 { if yyj2365 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2365Slc = r.DecodeBytes(yys2365Slc, true, true) yys2365 := string(yys2365Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2365 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2366 := &x.Addresses yym2367 := z.DecBinary() _ = yym2367 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2366), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2368 := &x.NotReadyAddresses yym2369 := z.DecBinary() _ = yym2369 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2368), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2370 := &x.Ports yym2371 := z.DecBinary() _ = yym2371 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2370), d) } } default: z.DecStructFieldNotFound(-1, yys2365) } // end switch yys2365 } // end for yyj2365 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 yyj2372 int var yyb2372 bool var yyhl2372 bool = l >= 0 yyj2372++ if yyhl2372 { yyb2372 = yyj2372 > l } else { yyb2372 = r.CheckBreak() } if yyb2372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2373 := &x.Addresses yym2374 := z.DecBinary() _ = yym2374 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2373), d) } } yyj2372++ if yyhl2372 { yyb2372 = yyj2372 > l } else { yyb2372 = r.CheckBreak() } if yyb2372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2375 := &x.NotReadyAddresses yym2376 := z.DecBinary() _ = yym2376 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2375), d) } } yyj2372++ if yyhl2372 { yyb2372 = yyj2372 > l } else { yyb2372 = r.CheckBreak() } if yyb2372 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2377 := &x.Ports yym2378 := z.DecBinary() _ = yym2378 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2377), d) } } for { yyj2372++ if yyhl2372 { yyb2372 = yyj2372 > l } else { yyb2372 = r.CheckBreak() } if yyb2372 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2372-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 { yym2379 := z.EncBinary() _ = yym2379 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2380 := !z.EncBinary() yy2arr2380 := z.EncBasicHandle().StructToArray var yyq2380 [2]bool _, _, _ = yysep2380, yyq2380, yy2arr2380 const yyr2380 bool = false var yynn2380 int if yyr2380 || yy2arr2380 { r.EncodeArrayStart(2) } else { yynn2380 = 2 for _, b := range yyq2380 { if b { yynn2380++ } } r.EncodeMapStart(yynn2380) yynn2380 = 0 } if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2382 := z.EncBinary() _ = yym2382 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) yym2383 := z.EncBinary() _ = yym2383 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2380 || yy2arr2380 { 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 yyr2380 || yy2arr2380 { 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 yym2385 := z.DecBinary() _ = yym2385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2386 := r.ContainerType() if yyct2386 == codecSelferValueTypeMap1234 { yyl2386 := r.ReadMapStart() if yyl2386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2386, d) } } else if yyct2386 == codecSelferValueTypeArray1234 { yyl2386 := r.ReadArrayStart() if yyl2386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2386, 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 yys2387Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2387Slc var yyhl2387 bool = l >= 0 for yyj2387 := 0; ; yyj2387++ { if yyhl2387 { if yyj2387 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2387Slc = r.DecodeBytes(yys2387Slc, true, true) yys2387 := string(yys2387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2387 { case "IP": if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = 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, yys2387) } // end switch yys2387 } // end for yyj2387 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 yyj2390 int var yyb2390 bool var yyhl2390 bool = l >= 0 yyj2390++ if yyhl2390 { yyb2390 = yyj2390 > l } else { yyb2390 = r.CheckBreak() } if yyb2390 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2390++ if yyhl2390 { yyb2390 = yyj2390 > l } else { yyb2390 = r.CheckBreak() } if yyb2390 { 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 { yyj2390++ if yyhl2390 { yyb2390 = yyj2390 > l } else { yyb2390 = r.CheckBreak() } if yyb2390 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2390-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 { yym2393 := z.EncBinary() _ = yym2393 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2394 := !z.EncBinary() yy2arr2394 := z.EncBasicHandle().StructToArray var yyq2394 [3]bool _, _, _ = yysep2394, yyq2394, yy2arr2394 const yyr2394 bool = false var yynn2394 int if yyr2394 || yy2arr2394 { r.EncodeArrayStart(3) } else { yynn2394 = 3 for _, b := range yyq2394 { if b { yynn2394++ } } r.EncodeMapStart(yynn2394) yynn2394 = 0 } if yyr2394 || yy2arr2394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2396 := z.EncBinary() _ = yym2396 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) yym2397 := z.EncBinary() _ = yym2397 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2394 || yy2arr2394 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2399 := z.EncBinary() _ = yym2399 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2400 := z.EncBinary() _ = yym2400 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2394 || yy2arr2394 { 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 yyr2394 || yy2arr2394 { 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 yym2402 := z.DecBinary() _ = yym2402 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2403 := r.ContainerType() if yyct2403 == codecSelferValueTypeMap1234 { yyl2403 := r.ReadMapStart() if yyl2403 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2403, d) } } else if yyct2403 == codecSelferValueTypeArray1234 { yyl2403 := r.ReadArrayStart() if yyl2403 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2403, 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 yys2404Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2404Slc var yyhl2404 bool = l >= 0 for yyj2404 := 0; ; yyj2404++ { if yyhl2404 { if yyj2404 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2404Slc = r.DecodeBytes(yys2404Slc, true, true) yys2404 := string(yys2404Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2404 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } case "Protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2404) } // end switch yys2404 } // end for yyj2404 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 yyj2408 int var yyb2408 bool var yyhl2408 bool = l >= 0 yyj2408++ if yyhl2408 { yyb2408 = yyj2408 > l } else { yyb2408 = r.CheckBreak() } if yyb2408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2408++ if yyhl2408 { yyb2408 = yyj2408 > l } else { yyb2408 = r.CheckBreak() } if yyb2408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2408++ if yyhl2408 { yyb2408 = yyj2408 > l } else { yyb2408 = r.CheckBreak() } if yyb2408 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2408++ if yyhl2408 { yyb2408 = yyj2408 > l } else { yyb2408 = r.CheckBreak() } if yyb2408 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2408-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 { yym2412 := z.EncBinary() _ = yym2412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2413 := !z.EncBinary() yy2arr2413 := z.EncBasicHandle().StructToArray var yyq2413 [4]bool _, _, _ = yysep2413, yyq2413, yy2arr2413 const yyr2413 bool = false yyq2413[0] = true yyq2413[2] = x.Kind != "" yyq2413[3] = x.APIVersion != "" var yynn2413 int if yyr2413 || yy2arr2413 { r.EncodeArrayStart(4) } else { yynn2413 = 1 for _, b := range yyq2413 { if b { yynn2413++ } } r.EncodeMapStart(yynn2413) yynn2413 = 0 } if yyr2413 || yy2arr2413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2413[0] { yy2415 := &x.ListMeta yym2416 := z.EncBinary() _ = yym2416 if false { } else if z.HasExtensions() && z.EncExt(yy2415) { } else { z.EncFallback(yy2415) } } else { r.EncodeNil() } } else { if yyq2413[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2417 := &x.ListMeta yym2418 := z.EncBinary() _ = yym2418 if false { } else if z.HasExtensions() && z.EncExt(yy2417) { } else { z.EncFallback(yy2417) } } } if yyr2413 || yy2arr2413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2420 := z.EncBinary() _ = yym2420 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 { yym2421 := z.EncBinary() _ = yym2421 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2413 || yy2arr2413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2413[2] { yym2423 := z.EncBinary() _ = yym2423 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2413[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2424 := z.EncBinary() _ = yym2424 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2413 || yy2arr2413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2413[3] { yym2426 := z.EncBinary() _ = yym2426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2413[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2427 := z.EncBinary() _ = yym2427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2413 || yy2arr2413 { 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 yym2428 := z.DecBinary() _ = yym2428 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2429 := r.ContainerType() if yyct2429 == codecSelferValueTypeMap1234 { yyl2429 := r.ReadMapStart() if yyl2429 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2429, d) } } else if yyct2429 == codecSelferValueTypeArray1234 { yyl2429 := r.ReadArrayStart() if yyl2429 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2429, 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 yys2430Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2430Slc var yyhl2430 bool = l >= 0 for yyj2430 := 0; ; yyj2430++ { if yyhl2430 { if yyj2430 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2430Slc = r.DecodeBytes(yys2430Slc, true, true) yys2430 := string(yys2430Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2430 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2431 := &x.ListMeta yym2432 := z.DecBinary() _ = yym2432 if false { } else if z.HasExtensions() && z.DecExt(yyv2431) { } else { z.DecFallback(yyv2431, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2433 := &x.Items yym2434 := z.DecBinary() _ = yym2434 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2433), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2430) } // end switch yys2430 } // end for yyj2430 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 yyj2437 int var yyb2437 bool var yyhl2437 bool = l >= 0 yyj2437++ if yyhl2437 { yyb2437 = yyj2437 > l } else { yyb2437 = r.CheckBreak() } if yyb2437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2438 := &x.ListMeta yym2439 := z.DecBinary() _ = yym2439 if false { } else if z.HasExtensions() && z.DecExt(yyv2438) { } else { z.DecFallback(yyv2438, false) } } yyj2437++ if yyhl2437 { yyb2437 = yyj2437 > l } else { yyb2437 = r.CheckBreak() } if yyb2437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2440 := &x.Items yym2441 := z.DecBinary() _ = yym2441 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2440), d) } } yyj2437++ if yyhl2437 { yyb2437 = yyj2437 > l } else { yyb2437 = r.CheckBreak() } if yyb2437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2437++ if yyhl2437 { yyb2437 = yyj2437 > l } else { yyb2437 = r.CheckBreak() } if yyb2437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2437++ if yyhl2437 { yyb2437 = yyj2437 > l } else { yyb2437 = r.CheckBreak() } if yyb2437 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2437-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 { yym2444 := z.EncBinary() _ = yym2444 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2445 := !z.EncBinary() yy2arr2445 := z.EncBasicHandle().StructToArray var yyq2445 [4]bool _, _, _ = yysep2445, yyq2445, yy2arr2445 const yyr2445 bool = false yyq2445[0] = x.PodCIDR != "" yyq2445[1] = x.ExternalID != "" yyq2445[2] = x.ProviderID != "" yyq2445[3] = x.Unschedulable != false var yynn2445 int if yyr2445 || yy2arr2445 { r.EncodeArrayStart(4) } else { yynn2445 = 0 for _, b := range yyq2445 { if b { yynn2445++ } } r.EncodeMapStart(yynn2445) yynn2445 = 0 } if yyr2445 || yy2arr2445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2445[0] { yym2447 := z.EncBinary() _ = yym2447 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2445[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2448 := z.EncBinary() _ = yym2448 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2445 || yy2arr2445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2445[1] { yym2450 := z.EncBinary() _ = yym2450 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2445[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2451 := z.EncBinary() _ = yym2451 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2445 || yy2arr2445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2445[2] { yym2453 := z.EncBinary() _ = yym2453 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2445[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2454 := z.EncBinary() _ = yym2454 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2445 || yy2arr2445 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2445[3] { yym2456 := z.EncBinary() _ = yym2456 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2445[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2457 := z.EncBinary() _ = yym2457 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2445 || yy2arr2445 { 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 yym2458 := z.DecBinary() _ = yym2458 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2459 := r.ContainerType() if yyct2459 == codecSelferValueTypeMap1234 { yyl2459 := r.ReadMapStart() if yyl2459 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2459, d) } } else if yyct2459 == codecSelferValueTypeArray1234 { yyl2459 := r.ReadArrayStart() if yyl2459 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2459, 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 yys2460Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2460Slc var yyhl2460 bool = l >= 0 for yyj2460 := 0; ; yyj2460++ { if yyhl2460 { if yyj2460 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2460Slc = r.DecodeBytes(yys2460Slc, true, true) yys2460 := string(yys2460Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2460 { 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, yys2460) } // end switch yys2460 } // end for yyj2460 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 yyj2465 int var yyb2465 bool var yyhl2465 bool = l >= 0 yyj2465++ if yyhl2465 { yyb2465 = yyj2465 > l } else { yyb2465 = r.CheckBreak() } if yyb2465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2465++ if yyhl2465 { yyb2465 = yyj2465 > l } else { yyb2465 = r.CheckBreak() } if yyb2465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2465++ if yyhl2465 { yyb2465 = yyj2465 > l } else { yyb2465 = r.CheckBreak() } if yyb2465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2465++ if yyhl2465 { yyb2465 = yyj2465 > l } else { yyb2465 = r.CheckBreak() } if yyb2465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2465++ if yyhl2465 { yyb2465 = yyj2465 > l } else { yyb2465 = r.CheckBreak() } if yyb2465 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2465-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 { yym2470 := z.EncBinary() _ = yym2470 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2471 := !z.EncBinary() yy2arr2471 := z.EncBasicHandle().StructToArray var yyq2471 [1]bool _, _, _ = yysep2471, yyq2471, yy2arr2471 const yyr2471 bool = false var yynn2471 int if yyr2471 || yy2arr2471 { r.EncodeArrayStart(1) } else { yynn2471 = 1 for _, b := range yyq2471 { if b { yynn2471++ } } r.EncodeMapStart(yynn2471) yynn2471 = 0 } if yyr2471 || yy2arr2471 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2473 := z.EncBinary() _ = yym2473 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2474 := z.EncBinary() _ = yym2474 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2471 || yy2arr2471 { 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 yym2475 := z.DecBinary() _ = yym2475 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2476 := r.ContainerType() if yyct2476 == codecSelferValueTypeMap1234 { yyl2476 := r.ReadMapStart() if yyl2476 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2476, d) } } else if yyct2476 == codecSelferValueTypeArray1234 { yyl2476 := r.ReadArrayStart() if yyl2476 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2476, 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 yys2477Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2477Slc var yyhl2477 bool = l >= 0 for yyj2477 := 0; ; yyj2477++ { if yyhl2477 { if yyj2477 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2477Slc = r.DecodeBytes(yys2477Slc, true, true) yys2477 := string(yys2477Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2477 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2477) } // end switch yys2477 } // end for yyj2477 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 yyj2479 int var yyb2479 bool var yyhl2479 bool = l >= 0 yyj2479++ if yyhl2479 { yyb2479 = yyj2479 > l } else { yyb2479 = r.CheckBreak() } if yyb2479 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2479++ if yyhl2479 { yyb2479 = yyj2479 > l } else { yyb2479 = r.CheckBreak() } if yyb2479 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2479-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 { yym2481 := z.EncBinary() _ = yym2481 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2482 := !z.EncBinary() yy2arr2482 := z.EncBasicHandle().StructToArray var yyq2482 [1]bool _, _, _ = yysep2482, yyq2482, yy2arr2482 const yyr2482 bool = false yyq2482[0] = true var yynn2482 int if yyr2482 || yy2arr2482 { r.EncodeArrayStart(1) } else { yynn2482 = 0 for _, b := range yyq2482 { if b { yynn2482++ } } r.EncodeMapStart(yynn2482) yynn2482 = 0 } if yyr2482 || yy2arr2482 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2482[0] { yy2484 := &x.KubeletEndpoint yy2484.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2482[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2485 := &x.KubeletEndpoint yy2485.CodecEncodeSelf(e) } } if yyr2482 || yy2arr2482 { 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 yym2486 := z.DecBinary() _ = yym2486 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2487 := r.ContainerType() if yyct2487 == codecSelferValueTypeMap1234 { yyl2487 := r.ReadMapStart() if yyl2487 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2487, d) } } else if yyct2487 == codecSelferValueTypeArray1234 { yyl2487 := r.ReadArrayStart() if yyl2487 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2487, 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 yys2488Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2488Slc var yyhl2488 bool = l >= 0 for yyj2488 := 0; ; yyj2488++ { if yyhl2488 { if yyj2488 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2488Slc = r.DecodeBytes(yys2488Slc, true, true) yys2488 := string(yys2488Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2488 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2489 := &x.KubeletEndpoint yyv2489.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2488) } // end switch yys2488 } // end for yyj2488 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 yyj2490 int var yyb2490 bool var yyhl2490 bool = l >= 0 yyj2490++ if yyhl2490 { yyb2490 = yyj2490 > l } else { yyb2490 = r.CheckBreak() } if yyb2490 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2491 := &x.KubeletEndpoint yyv2491.CodecDecodeSelf(d) } for { yyj2490++ if yyhl2490 { yyb2490 = yyj2490 > l } else { yyb2490 = r.CheckBreak() } if yyb2490 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2490-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 { yym2492 := z.EncBinary() _ = yym2492 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2493 := !z.EncBinary() yy2arr2493 := z.EncBasicHandle().StructToArray var yyq2493 [8]bool _, _, _ = yysep2493, yyq2493, yy2arr2493 const yyr2493 bool = false var yynn2493 int if yyr2493 || yy2arr2493 { r.EncodeArrayStart(8) } else { yynn2493 = 8 for _, b := range yyq2493 { if b { yynn2493++ } } r.EncodeMapStart(yynn2493) yynn2493 = 0 } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2495 := z.EncBinary() _ = yym2495 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) yym2496 := z.EncBinary() _ = yym2496 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2498 := z.EncBinary() _ = yym2498 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) yym2499 := z.EncBinary() _ = yym2499 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2501 := z.EncBinary() _ = yym2501 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) yym2502 := z.EncBinary() _ = yym2502 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2504 := z.EncBinary() _ = yym2504 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) yym2505 := z.EncBinary() _ = yym2505 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2507 := z.EncBinary() _ = yym2507 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) yym2508 := z.EncBinary() _ = yym2508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2510 := z.EncBinary() _ = yym2510 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) yym2511 := z.EncBinary() _ = yym2511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2513 := z.EncBinary() _ = yym2513 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) yym2514 := z.EncBinary() _ = yym2514 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2493 || yy2arr2493 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2516 := z.EncBinary() _ = yym2516 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) yym2517 := z.EncBinary() _ = yym2517 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2493 || yy2arr2493 { 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 yym2518 := z.DecBinary() _ = yym2518 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2519 := r.ContainerType() if yyct2519 == codecSelferValueTypeMap1234 { yyl2519 := r.ReadMapStart() if yyl2519 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2519, d) } } else if yyct2519 == codecSelferValueTypeArray1234 { yyl2519 := r.ReadArrayStart() if yyl2519 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2519, 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 yys2520Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2520Slc var yyhl2520 bool = l >= 0 for yyj2520 := 0; ; yyj2520++ { if yyhl2520 { if yyj2520 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2520Slc = r.DecodeBytes(yys2520Slc, true, true) yys2520 := string(yys2520Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2520 { 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()) } default: z.DecStructFieldNotFound(-1, yys2520) } // end switch yys2520 } // end for yyj2520 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 yyj2529 int var yyb2529 bool var yyhl2529 bool = l >= 0 yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OSImage = "" } else { x.OSImage = string(r.DecodeString()) } yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } for { yyj2529++ if yyhl2529 { yyb2529 = yyj2529 > l } else { yyb2529 = r.CheckBreak() } if yyb2529 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2529-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 { yym2538 := z.EncBinary() _ = yym2538 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2539 := !z.EncBinary() yy2arr2539 := z.EncBasicHandle().StructToArray var yyq2539 [8]bool _, _, _ = yysep2539, yyq2539, yy2arr2539 const yyr2539 bool = false yyq2539[0] = len(x.Capacity) != 0 yyq2539[1] = len(x.Allocatable) != 0 yyq2539[2] = x.Phase != "" yyq2539[3] = len(x.Conditions) != 0 yyq2539[4] = len(x.Addresses) != 0 yyq2539[5] = true yyq2539[6] = true var yynn2539 int if yyr2539 || yy2arr2539 { r.EncodeArrayStart(8) } 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] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2539[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 yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[1] { if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2539[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 yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2539[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[3] { if x.Conditions == nil { r.EncodeNil() } else { yym2544 := z.EncBinary() _ = yym2544 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2539[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2545 := z.EncBinary() _ = yym2545 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[4] { if x.Addresses == nil { r.EncodeNil() } else { yym2547 := z.EncBinary() _ = yym2547 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq2539[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2548 := z.EncBinary() _ = yym2548 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[5] { yy2550 := &x.DaemonEndpoints yy2550.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2539[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2551 := &x.DaemonEndpoints yy2551.CodecEncodeSelf(e) } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2539[6] { yy2553 := &x.NodeInfo yy2553.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2539[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2554 := &x.NodeInfo yy2554.CodecEncodeSelf(e) } } if yyr2539 || yy2arr2539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Images == nil { r.EncodeNil() } else { yym2556 := z.EncBinary() _ = yym2556 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { yym2557 := z.EncBinary() _ = yym2557 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } if yyr2539 || yy2arr2539 { 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 yym2558 := z.DecBinary() _ = yym2558 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2559 := r.ContainerType() if yyct2559 == codecSelferValueTypeMap1234 { yyl2559 := r.ReadMapStart() if yyl2559 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2559, d) } } else if yyct2559 == codecSelferValueTypeArray1234 { yyl2559 := r.ReadArrayStart() if yyl2559 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2559, 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 yys2560Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2560Slc var yyhl2560 bool = l >= 0 for yyj2560 := 0; ; yyj2560++ { if yyhl2560 { if yyj2560 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2560Slc = r.DecodeBytes(yys2560Slc, true, true) yys2560 := string(yys2560Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2560 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2561 := &x.Capacity yyv2561.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2562 := &x.Allocatable yyv2562.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2564 := &x.Conditions yym2565 := z.DecBinary() _ = yym2565 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2564), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2566 := &x.Addresses yym2567 := z.DecBinary() _ = yym2567 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2566), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2568 := &x.DaemonEndpoints yyv2568.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2569 := &x.NodeInfo yyv2569.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { yyv2570 := &x.Images yym2571 := z.DecBinary() _ = yym2571 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2570), d) } } default: z.DecStructFieldNotFound(-1, yys2560) } // end switch yys2560 } // end for yyj2560 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 yyj2572 int var yyb2572 bool var yyhl2572 bool = l >= 0 yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2573 := &x.Capacity yyv2573.CodecDecodeSelf(d) } yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2574 := &x.Allocatable yyv2574.CodecDecodeSelf(d) } yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2576 := &x.Conditions yym2577 := z.DecBinary() _ = yym2577 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2576), d) } } yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2578 := &x.Addresses yym2579 := z.DecBinary() _ = yym2579 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2578), d) } } yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2580 := &x.DaemonEndpoints yyv2580.CodecDecodeSelf(d) } yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2581 := &x.NodeInfo yyv2581.CodecDecodeSelf(d) } yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Images = nil } else { yyv2582 := &x.Images yym2583 := z.DecBinary() _ = yym2583 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2582), d) } } for { yyj2572++ if yyhl2572 { yyb2572 = yyj2572 > l } else { yyb2572 = r.CheckBreak() } if yyb2572 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2572-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 { yym2584 := z.EncBinary() _ = yym2584 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2585 := !z.EncBinary() yy2arr2585 := z.EncBasicHandle().StructToArray var yyq2585 [2]bool _, _, _ = yysep2585, yyq2585, yy2arr2585 const yyr2585 bool = false yyq2585[1] = x.Size != 0 var yynn2585 int if yyr2585 || yy2arr2585 { r.EncodeArrayStart(2) } else { yynn2585 = 1 for _, b := range yyq2585 { if b { yynn2585++ } } r.EncodeMapStart(yynn2585) yynn2585 = 0 } if yyr2585 || yy2arr2585 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.RepoTags == nil { r.EncodeNil() } else { yym2587 := z.EncBinary() _ = yym2587 if false { } else { z.F.EncSliceStringV(x.RepoTags, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repoTags")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RepoTags == nil { r.EncodeNil() } else { yym2588 := z.EncBinary() _ = yym2588 if false { } else { z.F.EncSliceStringV(x.RepoTags, false, e) } } } if yyr2585 || yy2arr2585 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2585[1] { yym2590 := z.EncBinary() _ = yym2590 if false { } else { r.EncodeInt(int64(x.Size)) } } else { r.EncodeInt(0) } } else { if yyq2585[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("size")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2591 := z.EncBinary() _ = yym2591 if false { } else { r.EncodeInt(int64(x.Size)) } } } if yyr2585 || yy2arr2585 { 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 yym2592 := z.DecBinary() _ = yym2592 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2593 := r.ContainerType() if yyct2593 == codecSelferValueTypeMap1234 { yyl2593 := r.ReadMapStart() if yyl2593 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2593, d) } } else if yyct2593 == codecSelferValueTypeArray1234 { yyl2593 := r.ReadArrayStart() if yyl2593 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2593, 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 yys2594Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2594Slc var yyhl2594 bool = l >= 0 for yyj2594 := 0; ; yyj2594++ { if yyhl2594 { if yyj2594 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2594Slc = r.DecodeBytes(yys2594Slc, true, true) yys2594 := string(yys2594Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2594 { case "repoTags": if r.TryDecodeAsNil() { x.RepoTags = nil } else { yyv2595 := &x.RepoTags yym2596 := z.DecBinary() _ = yym2596 if false { } else { z.F.DecSliceStringX(yyv2595, false, d) } } case "size": if r.TryDecodeAsNil() { x.Size = 0 } else { x.Size = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys2594) } // end switch yys2594 } // end for yyj2594 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 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.RepoTags = nil } else { yyv2599 := &x.RepoTags yym2600 := z.DecBinary() _ = yym2600 if false { } else { z.F.DecSliceStringX(yyv2599, false, d) } } 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.Size = 0 } else { x.Size = int64(r.DecodeInt(64)) } 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 NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2602 := z.EncBinary() _ = yym2602 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 yym2603 := z.DecBinary() _ = yym2603 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 yym2604 := z.EncBinary() _ = yym2604 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 yym2605 := z.DecBinary() _ = yym2605 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 { yym2606 := z.EncBinary() _ = yym2606 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2607 := !z.EncBinary() yy2arr2607 := z.EncBasicHandle().StructToArray var yyq2607 [6]bool _, _, _ = yysep2607, yyq2607, yy2arr2607 const yyr2607 bool = false yyq2607[2] = true yyq2607[3] = true yyq2607[4] = x.Reason != "" yyq2607[5] = x.Message != "" var yynn2607 int if yyr2607 || yy2arr2607 { r.EncodeArrayStart(6) } else { yynn2607 = 2 for _, b := range yyq2607 { if b { yynn2607++ } } r.EncodeMapStart(yynn2607) yynn2607 = 0 } if yyr2607 || yy2arr2607 { 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 yyr2607 || yy2arr2607 { 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 yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[2] { yy2611 := &x.LastHeartbeatTime yym2612 := z.EncBinary() _ = yym2612 if false { } else if z.HasExtensions() && z.EncExt(yy2611) { } else if yym2612 { z.EncBinaryMarshal(yy2611) } else if !yym2612 && z.IsJSONHandle() { z.EncJSONMarshal(yy2611) } else { z.EncFallback(yy2611) } } else { r.EncodeNil() } } else { if yyq2607[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2613 := &x.LastHeartbeatTime yym2614 := z.EncBinary() _ = yym2614 if false { } else if z.HasExtensions() && z.EncExt(yy2613) { } else if yym2614 { z.EncBinaryMarshal(yy2613) } else if !yym2614 && z.IsJSONHandle() { z.EncJSONMarshal(yy2613) } else { z.EncFallback(yy2613) } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[3] { yy2616 := &x.LastTransitionTime yym2617 := z.EncBinary() _ = yym2617 if false { } else if z.HasExtensions() && z.EncExt(yy2616) { } else if yym2617 { z.EncBinaryMarshal(yy2616) } else if !yym2617 && z.IsJSONHandle() { z.EncJSONMarshal(yy2616) } else { z.EncFallback(yy2616) } } else { r.EncodeNil() } } else { if yyq2607[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2618 := &x.LastTransitionTime yym2619 := z.EncBinary() _ = yym2619 if false { } else if z.HasExtensions() && z.EncExt(yy2618) { } else if yym2619 { z.EncBinaryMarshal(yy2618) } else if !yym2619 && z.IsJSONHandle() { z.EncJSONMarshal(yy2618) } else { z.EncFallback(yy2618) } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[4] { yym2621 := z.EncBinary() _ = yym2621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2607[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2622 := z.EncBinary() _ = yym2622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[5] { yym2624 := z.EncBinary() _ = yym2624 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2607[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2625 := z.EncBinary() _ = yym2625 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2607 || yy2arr2607 { 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 yym2626 := z.DecBinary() _ = yym2626 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2627 := r.ContainerType() if yyct2627 == codecSelferValueTypeMap1234 { yyl2627 := r.ReadMapStart() if yyl2627 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2627, d) } } else if yyct2627 == codecSelferValueTypeArray1234 { yyl2627 := r.ReadArrayStart() if yyl2627 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2627, 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 yys2628Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2628Slc var yyhl2628 bool = l >= 0 for yyj2628 := 0; ; yyj2628++ { if yyhl2628 { if yyj2628 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2628Slc = r.DecodeBytes(yys2628Slc, true, true) yys2628 := string(yys2628Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2628 { 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 { yyv2631 := &x.LastHeartbeatTime yym2632 := z.DecBinary() _ = yym2632 if false { } else if z.HasExtensions() && z.DecExt(yyv2631) { } else if yym2632 { z.DecBinaryUnmarshal(yyv2631) } else if !yym2632 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2631) } else { z.DecFallback(yyv2631, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2633 := &x.LastTransitionTime yym2634 := z.DecBinary() _ = yym2634 if false { } else if z.HasExtensions() && z.DecExt(yyv2633) { } else if yym2634 { z.DecBinaryUnmarshal(yyv2633) } else if !yym2634 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2633) } else { z.DecFallback(yyv2633, 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, yys2628) } // end switch yys2628 } // end for yyj2628 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 yyj2637 int var yyb2637 bool var yyhl2637 bool = l >= 0 yyj2637++ if yyhl2637 { yyb2637 = yyj2637 > l } else { yyb2637 = r.CheckBreak() } if yyb2637 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj2637++ if yyhl2637 { yyb2637 = yyj2637 > l } else { yyb2637 = r.CheckBreak() } if yyb2637 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj2637++ if yyhl2637 { yyb2637 = yyj2637 > l } else { yyb2637 = r.CheckBreak() } if yyb2637 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv2640 := &x.LastHeartbeatTime yym2641 := z.DecBinary() _ = yym2641 if false { } else if z.HasExtensions() && z.DecExt(yyv2640) { } else if yym2641 { z.DecBinaryUnmarshal(yyv2640) } else if !yym2641 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2640) } else { z.DecFallback(yyv2640, false) } } yyj2637++ if yyhl2637 { yyb2637 = yyj2637 > l } else { yyb2637 = r.CheckBreak() } if yyb2637 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2642 := &x.LastTransitionTime yym2643 := z.DecBinary() _ = yym2643 if false { } else if z.HasExtensions() && z.DecExt(yyv2642) { } else if yym2643 { z.DecBinaryUnmarshal(yyv2642) } else if !yym2643 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2642) } else { z.DecFallback(yyv2642, false) } } yyj2637++ if yyhl2637 { yyb2637 = yyj2637 > l } else { yyb2637 = r.CheckBreak() } if yyb2637 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2637++ if yyhl2637 { yyb2637 = yyj2637 > l } else { yyb2637 = r.CheckBreak() } if yyb2637 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj2637++ if yyhl2637 { yyb2637 = yyj2637 > l } else { yyb2637 = r.CheckBreak() } if yyb2637 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2637-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2646 := z.EncBinary() _ = yym2646 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 yym2647 := z.DecBinary() _ = yym2647 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 { yym2648 := z.EncBinary() _ = yym2648 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2649 := !z.EncBinary() yy2arr2649 := z.EncBasicHandle().StructToArray var yyq2649 [2]bool _, _, _ = yysep2649, yyq2649, yy2arr2649 const yyr2649 bool = false var yynn2649 int if yyr2649 || yy2arr2649 { r.EncodeArrayStart(2) } else { yynn2649 = 2 for _, b := range yyq2649 { if b { yynn2649++ } } r.EncodeMapStart(yynn2649) yynn2649 = 0 } if yyr2649 || yy2arr2649 { 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 yyr2649 || yy2arr2649 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2652 := z.EncBinary() _ = yym2652 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) yym2653 := z.EncBinary() _ = yym2653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr2649 || yy2arr2649 { 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 yym2654 := z.DecBinary() _ = yym2654 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2655 := r.ContainerType() if yyct2655 == codecSelferValueTypeMap1234 { yyl2655 := r.ReadMapStart() if yyl2655 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2655, d) } } else if yyct2655 == codecSelferValueTypeArray1234 { yyl2655 := r.ReadArrayStart() if yyl2655 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2655, 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 yys2656Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2656Slc var yyhl2656 bool = l >= 0 for yyj2656 := 0; ; yyj2656++ { if yyhl2656 { if yyj2656 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2656Slc = r.DecodeBytes(yys2656Slc, true, true) yys2656 := string(yys2656Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2656 { 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, yys2656) } // end switch yys2656 } // end for yyj2656 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 yyj2659 int var yyb2659 bool var yyhl2659 bool = l >= 0 yyj2659++ if yyhl2659 { yyb2659 = yyj2659 > l } else { yyb2659 = r.CheckBreak() } if yyb2659 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj2659++ if yyhl2659 { yyb2659 = yyj2659 > l } else { yyb2659 = r.CheckBreak() } if yyb2659 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj2659++ if yyhl2659 { yyb2659 = yyj2659 > l } else { yyb2659 = r.CheckBreak() } if yyb2659 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2659-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 { yym2662 := z.EncBinary() _ = yym2662 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2663 := !z.EncBinary() yy2arr2663 := z.EncBasicHandle().StructToArray var yyq2663 [1]bool _, _, _ = yysep2663, yyq2663, yy2arr2663 const yyr2663 bool = false yyq2663[0] = len(x.Capacity) != 0 var yynn2663 int if yyr2663 || yy2arr2663 { r.EncodeArrayStart(1) } else { yynn2663 = 0 for _, b := range yyq2663 { if b { yynn2663++ } } r.EncodeMapStart(yynn2663) yynn2663 = 0 } if yyr2663 || yy2arr2663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2663[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2663[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 yyr2663 || yy2arr2663 { 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 yym2665 := z.DecBinary() _ = yym2665 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2666 := r.ContainerType() if yyct2666 == codecSelferValueTypeMap1234 { yyl2666 := r.ReadMapStart() if yyl2666 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2666, d) } } else if yyct2666 == codecSelferValueTypeArray1234 { yyl2666 := r.ReadArrayStart() if yyl2666 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2666, 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 yys2667Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2667Slc var yyhl2667 bool = l >= 0 for yyj2667 := 0; ; yyj2667++ { if yyhl2667 { if yyj2667 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2667Slc = r.DecodeBytes(yys2667Slc, true, true) yys2667 := string(yys2667Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2667 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2668 := &x.Capacity yyv2668.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2667) } // end switch yys2667 } // end for yyj2667 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 yyj2669 int var yyb2669 bool var yyhl2669 bool = l >= 0 yyj2669++ if yyhl2669 { yyb2669 = yyj2669 > l } else { yyb2669 = r.CheckBreak() } if yyb2669 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2670 := &x.Capacity yyv2670.CodecDecodeSelf(d) } for { yyj2669++ if yyhl2669 { yyb2669 = yyj2669 > l } else { yyb2669 = r.CheckBreak() } if yyb2669 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2669-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2671 := z.EncBinary() _ = yym2671 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 yym2672 := z.DecBinary() _ = yym2672 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 { yym2673 := z.EncBinary() _ = yym2673 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 yym2674 := z.DecBinary() _ = yym2674 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 { yym2675 := z.EncBinary() _ = yym2675 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2676 := !z.EncBinary() yy2arr2676 := z.EncBasicHandle().StructToArray var yyq2676 [5]bool _, _, _ = yysep2676, yyq2676, yy2arr2676 const yyr2676 bool = false yyq2676[0] = true yyq2676[1] = true yyq2676[2] = true yyq2676[3] = x.Kind != "" yyq2676[4] = x.APIVersion != "" var yynn2676 int if yyr2676 || yy2arr2676 { r.EncodeArrayStart(5) } else { yynn2676 = 0 for _, b := range yyq2676 { if b { yynn2676++ } } r.EncodeMapStart(yynn2676) yynn2676 = 0 } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[0] { yy2678 := &x.ObjectMeta yy2678.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2676[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2679 := &x.ObjectMeta yy2679.CodecEncodeSelf(e) } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[1] { yy2681 := &x.Spec yy2681.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2676[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2682 := &x.Spec yy2682.CodecEncodeSelf(e) } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[2] { yy2684 := &x.Status yy2684.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2676[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2685 := &x.Status yy2685.CodecEncodeSelf(e) } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[3] { yym2687 := z.EncBinary() _ = yym2687 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2676[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2688 := z.EncBinary() _ = yym2688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[4] { yym2690 := z.EncBinary() _ = yym2690 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2676[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2691 := z.EncBinary() _ = yym2691 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2676 || yy2arr2676 { 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 yym2692 := z.DecBinary() _ = yym2692 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2693 := r.ContainerType() if yyct2693 == codecSelferValueTypeMap1234 { yyl2693 := r.ReadMapStart() if yyl2693 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2693, d) } } else if yyct2693 == codecSelferValueTypeArray1234 { yyl2693 := r.ReadArrayStart() if yyl2693 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2693, 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 yys2694Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2694Slc var yyhl2694 bool = l >= 0 for yyj2694 := 0; ; yyj2694++ { if yyhl2694 { if yyj2694 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2694Slc = r.DecodeBytes(yys2694Slc, true, true) yys2694 := string(yys2694Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2694 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2695 := &x.ObjectMeta yyv2695.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2696 := &x.Spec yyv2696.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2697 := &x.Status yyv2697.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys2694) } // end switch yys2694 } // end for yyj2694 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 yyj2700 int var yyb2700 bool var yyhl2700 bool = l >= 0 yyj2700++ if yyhl2700 { yyb2700 = yyj2700 > l } else { yyb2700 = r.CheckBreak() } if yyb2700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2701 := &x.ObjectMeta yyv2701.CodecDecodeSelf(d) } yyj2700++ if yyhl2700 { yyb2700 = yyj2700 > l } else { yyb2700 = r.CheckBreak() } if yyb2700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2702 := &x.Spec yyv2702.CodecDecodeSelf(d) } yyj2700++ if yyhl2700 { yyb2700 = yyj2700 > l } else { yyb2700 = r.CheckBreak() } if yyb2700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2703 := &x.Status yyv2703.CodecDecodeSelf(d) } yyj2700++ if yyhl2700 { yyb2700 = yyj2700 > l } else { yyb2700 = r.CheckBreak() } if yyb2700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2700++ if yyhl2700 { yyb2700 = yyj2700 > l } else { yyb2700 = r.CheckBreak() } if yyb2700 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2700++ if yyhl2700 { yyb2700 = yyj2700 > l } else { yyb2700 = r.CheckBreak() } if yyb2700 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2700-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 { yym2706 := z.EncBinary() _ = yym2706 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2707 := !z.EncBinary() yy2arr2707 := z.EncBasicHandle().StructToArray var yyq2707 [4]bool _, _, _ = yysep2707, yyq2707, yy2arr2707 const yyr2707 bool = false yyq2707[0] = true yyq2707[2] = x.Kind != "" yyq2707[3] = x.APIVersion != "" var yynn2707 int if yyr2707 || yy2arr2707 { r.EncodeArrayStart(4) } else { yynn2707 = 1 for _, b := range yyq2707 { if b { yynn2707++ } } r.EncodeMapStart(yynn2707) yynn2707 = 0 } if yyr2707 || yy2arr2707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2707[0] { yy2709 := &x.ListMeta yym2710 := z.EncBinary() _ = yym2710 if false { } else if z.HasExtensions() && z.EncExt(yy2709) { } else { z.EncFallback(yy2709) } } else { r.EncodeNil() } } else { if yyq2707[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2711 := &x.ListMeta yym2712 := z.EncBinary() _ = yym2712 if false { } else if z.HasExtensions() && z.EncExt(yy2711) { } else { z.EncFallback(yy2711) } } } if yyr2707 || yy2arr2707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2714 := z.EncBinary() _ = yym2714 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 { yym2715 := z.EncBinary() _ = yym2715 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr2707 || yy2arr2707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2707[2] { yym2717 := z.EncBinary() _ = yym2717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2707[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2718 := z.EncBinary() _ = yym2718 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2707 || yy2arr2707 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2707[3] { yym2720 := z.EncBinary() _ = yym2720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2707[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2721 := z.EncBinary() _ = yym2721 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2707 || yy2arr2707 { 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 yym2722 := z.DecBinary() _ = yym2722 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2723 := r.ContainerType() if yyct2723 == codecSelferValueTypeMap1234 { yyl2723 := r.ReadMapStart() if yyl2723 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2723, d) } } else if yyct2723 == codecSelferValueTypeArray1234 { yyl2723 := r.ReadArrayStart() if yyl2723 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2723, 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 yys2724Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2724Slc var yyhl2724 bool = l >= 0 for yyj2724 := 0; ; yyj2724++ { if yyhl2724 { if yyj2724 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2724Slc = r.DecodeBytes(yys2724Slc, true, true) yys2724 := string(yys2724Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2724 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2725 := &x.ListMeta yym2726 := z.DecBinary() _ = yym2726 if false { } else if z.HasExtensions() && z.DecExt(yyv2725) { } else { z.DecFallback(yyv2725, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2727 := &x.Items yym2728 := z.DecBinary() _ = yym2728 if false { } else { h.decSliceNode((*[]Node)(yyv2727), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2724) } // end switch yys2724 } // end for yyj2724 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 yyj2731 int var yyb2731 bool var yyhl2731 bool = l >= 0 yyj2731++ if yyhl2731 { yyb2731 = yyj2731 > l } else { yyb2731 = r.CheckBreak() } if yyb2731 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2732 := &x.ListMeta yym2733 := z.DecBinary() _ = yym2733 if false { } else if z.HasExtensions() && z.DecExt(yyv2732) { } else { z.DecFallback(yyv2732, false) } } yyj2731++ if yyhl2731 { yyb2731 = yyj2731 > l } else { yyb2731 = r.CheckBreak() } if yyb2731 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2734 := &x.Items yym2735 := z.DecBinary() _ = yym2735 if false { } else { h.decSliceNode((*[]Node)(yyv2734), d) } } yyj2731++ if yyhl2731 { yyb2731 = yyj2731 > l } else { yyb2731 = r.CheckBreak() } if yyb2731 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2731++ if yyhl2731 { yyb2731 = yyj2731 > l } else { yyb2731 = r.CheckBreak() } if yyb2731 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2731++ if yyhl2731 { yyb2731 = yyj2731 > l } else { yyb2731 = r.CheckBreak() } if yyb2731 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2731-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 { yym2738 := z.EncBinary() _ = yym2738 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2739 := !z.EncBinary() yy2arr2739 := z.EncBasicHandle().StructToArray var yyq2739 [1]bool _, _, _ = yysep2739, yyq2739, yy2arr2739 const yyr2739 bool = false var yynn2739 int if yyr2739 || yy2arr2739 { r.EncodeArrayStart(1) } else { yynn2739 = 1 for _, b := range yyq2739 { if b { yynn2739++ } } r.EncodeMapStart(yynn2739) yynn2739 = 0 } if yyr2739 || yy2arr2739 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym2741 := z.EncBinary() _ = yym2741 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 { yym2742 := z.EncBinary() _ = yym2742 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr2739 || yy2arr2739 { 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 yym2743 := z.DecBinary() _ = yym2743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2744 := r.ContainerType() if yyct2744 == codecSelferValueTypeMap1234 { yyl2744 := r.ReadMapStart() if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2744, d) } } else if yyct2744 == codecSelferValueTypeArray1234 { yyl2744 := r.ReadArrayStart() if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2744, 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 yys2745Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2745Slc var yyhl2745 bool = l >= 0 for yyj2745 := 0; ; yyj2745++ { if yyhl2745 { if yyj2745 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2745Slc = r.DecodeBytes(yys2745Slc, true, true) yys2745 := string(yys2745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2745 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2746 := &x.Finalizers yym2747 := z.DecBinary() _ = yym2747 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2746), d) } } default: z.DecStructFieldNotFound(-1, yys2745) } // end switch yys2745 } // end for yyj2745 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 yyj2748 int var yyb2748 bool var yyhl2748 bool = l >= 0 yyj2748++ if yyhl2748 { yyb2748 = yyj2748 > l } else { yyb2748 = r.CheckBreak() } if yyb2748 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2749 := &x.Finalizers yym2750 := z.DecBinary() _ = yym2750 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2749), d) } } for { yyj2748++ if yyhl2748 { yyb2748 = yyj2748 > l } else { yyb2748 = r.CheckBreak() } if yyb2748 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2748-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2751 := z.EncBinary() _ = yym2751 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 yym2752 := z.DecBinary() _ = yym2752 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 { yym2753 := z.EncBinary() _ = yym2753 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2754 := !z.EncBinary() yy2arr2754 := z.EncBasicHandle().StructToArray var yyq2754 [1]bool _, _, _ = yysep2754, yyq2754, yy2arr2754 const yyr2754 bool = false yyq2754[0] = x.Phase != "" var yynn2754 int if yyr2754 || yy2arr2754 { r.EncodeArrayStart(1) } else { yynn2754 = 0 for _, b := range yyq2754 { if b { yynn2754++ } } r.EncodeMapStart(yynn2754) yynn2754 = 0 } if yyr2754 || yy2arr2754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2754[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2754[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2754 || yy2arr2754 { 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 yym2756 := z.DecBinary() _ = yym2756 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2757 := r.ContainerType() if yyct2757 == codecSelferValueTypeMap1234 { yyl2757 := r.ReadMapStart() if yyl2757 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2757, d) } } else if yyct2757 == codecSelferValueTypeArray1234 { yyl2757 := r.ReadArrayStart() if yyl2757 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2757, 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 yys2758Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2758Slc var yyhl2758 bool = l >= 0 for yyj2758 := 0; ; yyj2758++ { if yyhl2758 { if yyj2758 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2758Slc = r.DecodeBytes(yys2758Slc, true, true) yys2758 := string(yys2758Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2758 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2758) } // end switch yys2758 } // end for yyj2758 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 yyj2760 int var yyb2760 bool var yyhl2760 bool = l >= 0 yyj2760++ if yyhl2760 { yyb2760 = yyj2760 > l } else { yyb2760 = r.CheckBreak() } if yyb2760 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj2760++ if yyhl2760 { yyb2760 = yyj2760 > l } else { yyb2760 = r.CheckBreak() } if yyb2760 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2760-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2762 := z.EncBinary() _ = yym2762 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 yym2763 := z.DecBinary() _ = yym2763 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 { yym2764 := z.EncBinary() _ = yym2764 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2765 := !z.EncBinary() yy2arr2765 := z.EncBasicHandle().StructToArray var yyq2765 [5]bool _, _, _ = yysep2765, yyq2765, yy2arr2765 const yyr2765 bool = false yyq2765[0] = true yyq2765[1] = true yyq2765[2] = true yyq2765[3] = x.Kind != "" yyq2765[4] = x.APIVersion != "" var yynn2765 int if yyr2765 || yy2arr2765 { r.EncodeArrayStart(5) } else { yynn2765 = 0 for _, b := range yyq2765 { if b { yynn2765++ } } r.EncodeMapStart(yynn2765) yynn2765 = 0 } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2765[0] { yy2767 := &x.ObjectMeta yy2767.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2765[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2768 := &x.ObjectMeta yy2768.CodecEncodeSelf(e) } } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2765[1] { yy2770 := &x.Spec yy2770.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2765[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2771 := &x.Spec yy2771.CodecEncodeSelf(e) } } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2765[2] { yy2773 := &x.Status yy2773.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2765[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2774 := &x.Status yy2774.CodecEncodeSelf(e) } } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2765[3] { yym2776 := z.EncBinary() _ = yym2776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2765[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2777 := z.EncBinary() _ = yym2777 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2765[4] { yym2779 := z.EncBinary() _ = yym2779 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2765[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2780 := z.EncBinary() _ = yym2780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2765 || yy2arr2765 { 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 yym2781 := z.DecBinary() _ = yym2781 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2782 := r.ContainerType() if yyct2782 == codecSelferValueTypeMap1234 { yyl2782 := r.ReadMapStart() if yyl2782 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2782, d) } } else if yyct2782 == codecSelferValueTypeArray1234 { yyl2782 := r.ReadArrayStart() if yyl2782 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2782, 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 yys2783Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2783Slc var yyhl2783 bool = l >= 0 for yyj2783 := 0; ; yyj2783++ { if yyhl2783 { if yyj2783 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2783Slc = r.DecodeBytes(yys2783Slc, true, true) yys2783 := string(yys2783Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2783 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2784 := &x.ObjectMeta yyv2784.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2785 := &x.Spec yyv2785.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2786 := &x.Status yyv2786.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys2783) } // end switch yys2783 } // end for yyj2783 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 yyj2789 int var yyb2789 bool var yyhl2789 bool = l >= 0 yyj2789++ if yyhl2789 { yyb2789 = yyj2789 > l } else { yyb2789 = r.CheckBreak() } if yyb2789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2790 := &x.ObjectMeta yyv2790.CodecDecodeSelf(d) } yyj2789++ if yyhl2789 { yyb2789 = yyj2789 > l } else { yyb2789 = r.CheckBreak() } if yyb2789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2791 := &x.Spec yyv2791.CodecDecodeSelf(d) } yyj2789++ if yyhl2789 { yyb2789 = yyj2789 > l } else { yyb2789 = r.CheckBreak() } if yyb2789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2792 := &x.Status yyv2792.CodecDecodeSelf(d) } yyj2789++ if yyhl2789 { yyb2789 = yyj2789 > l } else { yyb2789 = r.CheckBreak() } if yyb2789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2789++ if yyhl2789 { yyb2789 = yyj2789 > l } else { yyb2789 = r.CheckBreak() } if yyb2789 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2789++ if yyhl2789 { yyb2789 = yyj2789 > l } else { yyb2789 = r.CheckBreak() } if yyb2789 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2789-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 { yym2795 := z.EncBinary() _ = yym2795 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2796 := !z.EncBinary() yy2arr2796 := z.EncBasicHandle().StructToArray var yyq2796 [4]bool _, _, _ = yysep2796, yyq2796, yy2arr2796 const yyr2796 bool = false yyq2796[0] = true yyq2796[2] = x.Kind != "" yyq2796[3] = x.APIVersion != "" var yynn2796 int if yyr2796 || yy2arr2796 { r.EncodeArrayStart(4) } else { yynn2796 = 1 for _, b := range yyq2796 { if b { yynn2796++ } } r.EncodeMapStart(yynn2796) yynn2796 = 0 } if yyr2796 || yy2arr2796 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2796[0] { yy2798 := &x.ListMeta yym2799 := z.EncBinary() _ = yym2799 if false { } else if z.HasExtensions() && z.EncExt(yy2798) { } else { z.EncFallback(yy2798) } } else { r.EncodeNil() } } else { if yyq2796[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2800 := &x.ListMeta yym2801 := z.EncBinary() _ = yym2801 if false { } else if z.HasExtensions() && z.EncExt(yy2800) { } else { z.EncFallback(yy2800) } } } if yyr2796 || yy2arr2796 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2803 := z.EncBinary() _ = yym2803 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 { yym2804 := z.EncBinary() _ = yym2804 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr2796 || yy2arr2796 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2796[2] { yym2806 := z.EncBinary() _ = yym2806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2796[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2807 := z.EncBinary() _ = yym2807 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2796 || yy2arr2796 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2796[3] { yym2809 := z.EncBinary() _ = yym2809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2796[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2810 := z.EncBinary() _ = yym2810 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2796 || yy2arr2796 { 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 yym2811 := z.DecBinary() _ = yym2811 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2812 := r.ContainerType() if yyct2812 == codecSelferValueTypeMap1234 { yyl2812 := r.ReadMapStart() if yyl2812 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2812, d) } } else if yyct2812 == codecSelferValueTypeArray1234 { yyl2812 := r.ReadArrayStart() if yyl2812 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2812, 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 yys2813Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2813Slc var yyhl2813 bool = l >= 0 for yyj2813 := 0; ; yyj2813++ { if yyhl2813 { if yyj2813 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2813Slc = r.DecodeBytes(yys2813Slc, true, true) yys2813 := string(yys2813Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2813 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2814 := &x.ListMeta yym2815 := z.DecBinary() _ = yym2815 if false { } else if z.HasExtensions() && z.DecExt(yyv2814) { } else { z.DecFallback(yyv2814, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2816 := &x.Items yym2817 := z.DecBinary() _ = yym2817 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2816), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2813) } // end switch yys2813 } // end for yyj2813 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 yyj2820 int var yyb2820 bool var yyhl2820 bool = l >= 0 yyj2820++ if yyhl2820 { yyb2820 = yyj2820 > l } else { yyb2820 = r.CheckBreak() } if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2821 := &x.ListMeta yym2822 := z.DecBinary() _ = yym2822 if false { } else if z.HasExtensions() && z.DecExt(yyv2821) { } else { z.DecFallback(yyv2821, false) } } yyj2820++ if yyhl2820 { yyb2820 = yyj2820 > l } else { yyb2820 = r.CheckBreak() } if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2823 := &x.Items yym2824 := z.DecBinary() _ = yym2824 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2823), d) } } yyj2820++ if yyhl2820 { yyb2820 = yyj2820 > l } else { yyb2820 = r.CheckBreak() } if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2820++ if yyhl2820 { yyb2820 = yyj2820 > l } else { yyb2820 = r.CheckBreak() } if yyb2820 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2820++ if yyhl2820 { yyb2820 = yyj2820 > l } else { yyb2820 = r.CheckBreak() } if yyb2820 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2820-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 { yym2827 := z.EncBinary() _ = yym2827 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2828 := !z.EncBinary() yy2arr2828 := z.EncBasicHandle().StructToArray var yyq2828 [4]bool _, _, _ = yysep2828, yyq2828, yy2arr2828 const yyr2828 bool = false yyq2828[0] = true yyq2828[2] = x.Kind != "" yyq2828[3] = x.APIVersion != "" var yynn2828 int if yyr2828 || yy2arr2828 { r.EncodeArrayStart(4) } else { yynn2828 = 1 for _, b := range yyq2828 { if b { yynn2828++ } } r.EncodeMapStart(yynn2828) yynn2828 = 0 } if yyr2828 || yy2arr2828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2828[0] { yy2830 := &x.ObjectMeta yy2830.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2828[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2831 := &x.ObjectMeta yy2831.CodecEncodeSelf(e) } } if yyr2828 || yy2arr2828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2833 := &x.Target yy2833.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2834 := &x.Target yy2834.CodecEncodeSelf(e) } if yyr2828 || yy2arr2828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2828[2] { yym2836 := z.EncBinary() _ = yym2836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2828[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2837 := z.EncBinary() _ = yym2837 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2828 || yy2arr2828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2828[3] { yym2839 := z.EncBinary() _ = yym2839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2828[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2840 := z.EncBinary() _ = yym2840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2828 || yy2arr2828 { 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 yym2841 := z.DecBinary() _ = yym2841 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2842 := r.ContainerType() if yyct2842 == codecSelferValueTypeMap1234 { yyl2842 := r.ReadMapStart() if yyl2842 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2842, d) } } else if yyct2842 == codecSelferValueTypeArray1234 { yyl2842 := r.ReadArrayStart() if yyl2842 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2842, 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 yys2843Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2843Slc var yyhl2843 bool = l >= 0 for yyj2843 := 0; ; yyj2843++ { if yyhl2843 { if yyj2843 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2843Slc = r.DecodeBytes(yys2843Slc, true, true) yys2843 := string(yys2843Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2843 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2844 := &x.ObjectMeta yyv2844.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2845 := &x.Target yyv2845.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys2843) } // end switch yys2843 } // end for yyj2843 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 yyj2848 int var yyb2848 bool var yyhl2848 bool = l >= 0 yyj2848++ if yyhl2848 { yyb2848 = yyj2848 > l } else { yyb2848 = r.CheckBreak() } if yyb2848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2849 := &x.ObjectMeta yyv2849.CodecDecodeSelf(d) } yyj2848++ if yyhl2848 { yyb2848 = yyj2848 > l } else { yyb2848 = r.CheckBreak() } if yyb2848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2850 := &x.Target yyv2850.CodecDecodeSelf(d) } yyj2848++ if yyhl2848 { yyb2848 = yyj2848 > l } else { yyb2848 = r.CheckBreak() } if yyb2848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2848++ if yyhl2848 { yyb2848 = yyj2848 > l } else { yyb2848 = r.CheckBreak() } if yyb2848 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2848++ if yyhl2848 { yyb2848 = yyj2848 > l } else { yyb2848 = r.CheckBreak() } if yyb2848 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2848-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 { yym2853 := z.EncBinary() _ = yym2853 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2854 := !z.EncBinary() yy2arr2854 := z.EncBasicHandle().StructToArray var yyq2854 [3]bool _, _, _ = yysep2854, yyq2854, yy2arr2854 const yyr2854 bool = false yyq2854[1] = x.Kind != "" yyq2854[2] = x.APIVersion != "" var yynn2854 int if yyr2854 || yy2arr2854 { r.EncodeArrayStart(3) } else { yynn2854 = 1 for _, b := range yyq2854 { if b { yynn2854++ } } r.EncodeMapStart(yynn2854) yynn2854 = 0 } if yyr2854 || yy2arr2854 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2856 := *x.GracePeriodSeconds yym2857 := z.EncBinary() _ = yym2857 if false { } else { r.EncodeInt(int64(yy2856)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2858 := *x.GracePeriodSeconds yym2859 := z.EncBinary() _ = yym2859 if false { } else { r.EncodeInt(int64(yy2858)) } } } if yyr2854 || yy2arr2854 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2854[1] { yym2861 := z.EncBinary() _ = yym2861 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2854[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2862 := z.EncBinary() _ = yym2862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2854 || yy2arr2854 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2854[2] { yym2864 := z.EncBinary() _ = yym2864 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2854[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2865 := z.EncBinary() _ = yym2865 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2854 || yy2arr2854 { 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 yym2866 := z.DecBinary() _ = yym2866 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2867 := r.ContainerType() if yyct2867 == codecSelferValueTypeMap1234 { yyl2867 := r.ReadMapStart() if yyl2867 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2867, d) } } else if yyct2867 == codecSelferValueTypeArray1234 { yyl2867 := r.ReadArrayStart() if yyl2867 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2867, 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 yys2868Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2868Slc var yyhl2868 bool = l >= 0 for yyj2868 := 0; ; yyj2868++ { if yyhl2868 { if yyj2868 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2868Slc = r.DecodeBytes(yys2868Slc, true, true) yys2868 := string(yys2868Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2868 { case "gracePeriodSeconds": if r.TryDecodeAsNil() { if x.GracePeriodSeconds != nil { x.GracePeriodSeconds = nil } } else { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } yym2870 := z.DecBinary() _ = yym2870 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2868) } // end switch yys2868 } // end for yyj2868 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 yyj2873 int var yyb2873 bool var yyhl2873 bool = l >= 0 yyj2873++ if yyhl2873 { yyb2873 = yyj2873 > l } else { yyb2873 = r.CheckBreak() } if yyb2873 { 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) } yym2875 := z.DecBinary() _ = yym2875 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj2873++ if yyhl2873 { yyb2873 = yyj2873 > l } else { yyb2873 = r.CheckBreak() } if yyb2873 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2873++ if yyhl2873 { yyb2873 = yyj2873 > l } else { yyb2873 = r.CheckBreak() } if yyb2873 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2873++ if yyhl2873 { yyb2873 = yyj2873 > l } else { yyb2873 = r.CheckBreak() } if yyb2873 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2873-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 { yym2878 := z.EncBinary() _ = yym2878 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2879 := !z.EncBinary() yy2arr2879 := z.EncBasicHandle().StructToArray var yyq2879 [4]bool _, _, _ = yysep2879, yyq2879, yy2arr2879 const yyr2879 bool = false yyq2879[2] = x.Kind != "" yyq2879[3] = x.APIVersion != "" var yynn2879 int if yyr2879 || yy2arr2879 { r.EncodeArrayStart(4) } else { yynn2879 = 2 for _, b := range yyq2879 { if b { yynn2879++ } } r.EncodeMapStart(yynn2879) yynn2879 = 0 } if yyr2879 || yy2arr2879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2881 := z.EncBinary() _ = yym2881 if false { } else { r.EncodeBool(bool(x.Export)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2882 := z.EncBinary() _ = yym2882 if false { } else { r.EncodeBool(bool(x.Export)) } } if yyr2879 || yy2arr2879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2884 := z.EncBinary() _ = yym2884 if false { } else { r.EncodeBool(bool(x.Exact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2885 := z.EncBinary() _ = yym2885 if false { } else { r.EncodeBool(bool(x.Exact)) } } if yyr2879 || yy2arr2879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2879[2] { yym2887 := z.EncBinary() _ = yym2887 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2879[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2888 := z.EncBinary() _ = yym2888 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2879 || yy2arr2879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2879[3] { yym2890 := z.EncBinary() _ = yym2890 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2879[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2891 := z.EncBinary() _ = yym2891 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2879 || yy2arr2879 { 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 yym2892 := z.DecBinary() _ = yym2892 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2893 := r.ContainerType() if yyct2893 == codecSelferValueTypeMap1234 { yyl2893 := r.ReadMapStart() if yyl2893 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2893, d) } } else if yyct2893 == codecSelferValueTypeArray1234 { yyl2893 := r.ReadArrayStart() if yyl2893 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2893, 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 yys2894Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2894Slc var yyhl2894 bool = l >= 0 for yyj2894 := 0; ; yyj2894++ { if yyhl2894 { if yyj2894 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2894Slc = r.DecodeBytes(yys2894Slc, true, true) yys2894 := string(yys2894Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2894 { 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()) } 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()) } default: z.DecStructFieldNotFound(-1, yys2894) } // end switch yys2894 } // end for yyj2894 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 yyj2899 int var yyb2899 bool var yyhl2899 bool = l >= 0 yyj2899++ if yyhl2899 { yyb2899 = yyj2899 > l } else { yyb2899 = r.CheckBreak() } if yyb2899 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } yyj2899++ if yyhl2899 { yyb2899 = yyj2899 > l } else { yyb2899 = r.CheckBreak() } if yyb2899 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } yyj2899++ if yyhl2899 { yyb2899 = yyj2899 > l } else { yyb2899 = r.CheckBreak() } if yyb2899 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2899++ if yyhl2899 { yyb2899 = yyj2899 > l } else { yyb2899 = r.CheckBreak() } if yyb2899 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2899++ if yyhl2899 { yyb2899 = yyj2899 > l } else { yyb2899 = r.CheckBreak() } if yyb2899 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2899-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 { yym2904 := z.EncBinary() _ = yym2904 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2905 := !z.EncBinary() yy2arr2905 := z.EncBasicHandle().StructToArray var yyq2905 [7]bool _, _, _ = yysep2905, yyq2905, yy2arr2905 const yyr2905 bool = false yyq2905[5] = x.Kind != "" yyq2905[6] = x.APIVersion != "" var yynn2905 int if yyr2905 || yy2arr2905 { r.EncodeArrayStart(7) } else { yynn2905 = 5 for _, b := range yyq2905 { if b { yynn2905++ } } r.EncodeMapStart(yynn2905) yynn2905 = 0 } if yyr2905 || yy2arr2905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym2907 := z.EncBinary() _ = yym2907 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 { yym2908 := z.EncBinary() _ = yym2908 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } if yyr2905 || yy2arr2905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym2910 := z.EncBinary() _ = yym2910 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 { yym2911 := z.EncBinary() _ = yym2911 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } if yyr2905 || yy2arr2905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2913 := z.EncBinary() _ = yym2913 if false { } else { r.EncodeBool(bool(x.Watch)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2914 := z.EncBinary() _ = yym2914 if false { } else { r.EncodeBool(bool(x.Watch)) } } if yyr2905 || yy2arr2905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2916 := z.EncBinary() _ = yym2916 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) yym2917 := z.EncBinary() _ = yym2917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } if yyr2905 || yy2arr2905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2919 := *x.TimeoutSeconds yym2920 := z.EncBinary() _ = yym2920 if false { } else { r.EncodeInt(int64(yy2919)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2921 := *x.TimeoutSeconds yym2922 := z.EncBinary() _ = yym2922 if false { } else { r.EncodeInt(int64(yy2921)) } } } if yyr2905 || yy2arr2905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2905[5] { yym2924 := z.EncBinary() _ = yym2924 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2905[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2925 := z.EncBinary() _ = yym2925 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2905 || yy2arr2905 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2905[6] { yym2927 := z.EncBinary() _ = yym2927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2905[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2928 := z.EncBinary() _ = yym2928 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2905 || yy2arr2905 { 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 yym2929 := z.DecBinary() _ = yym2929 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2930 := r.ContainerType() if yyct2930 == codecSelferValueTypeMap1234 { yyl2930 := r.ReadMapStart() if yyl2930 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2930, d) } } else if yyct2930 == codecSelferValueTypeArray1234 { yyl2930 := r.ReadArrayStart() if yyl2930 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2930, 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 yys2931Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2931Slc var yyhl2931 bool = l >= 0 for yyj2931 := 0; ; yyj2931++ { if yyhl2931 { if yyj2931 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2931Slc = r.DecodeBytes(yys2931Slc, true, true) yys2931 := string(yys2931Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2931 { case "LabelSelector": if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv2932 := &x.LabelSelector yym2933 := z.DecBinary() _ = yym2933 if false { } else if z.HasExtensions() && z.DecExt(yyv2932) { } else { z.DecFallback(yyv2932, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2934 := &x.FieldSelector yym2935 := z.DecBinary() _ = yym2935 if false { } else if z.HasExtensions() && z.DecExt(yyv2934) { } else { z.DecFallback(yyv2934, 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) } yym2939 := z.DecBinary() _ = yym2939 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2931) } // end switch yys2931 } // end for yyj2931 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 yyj2942 int var yyb2942 bool var yyhl2942 bool = l >= 0 yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv2943 := &x.LabelSelector yym2944 := z.DecBinary() _ = yym2944 if false { } else if z.HasExtensions() && z.DecExt(yyv2943) { } else { z.DecFallback(yyv2943, true) } } yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2945 := &x.FieldSelector yym2946 := z.DecBinary() _ = yym2946 if false { } else if z.HasExtensions() && z.DecExt(yyv2945) { } else { z.DecFallback(yyv2945, true) } } yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { 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) } yym2950 := z.DecBinary() _ = yym2950 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj2942++ if yyhl2942 { yyb2942 = yyj2942 > l } else { yyb2942 = r.CheckBreak() } if yyb2942 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2942-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 { yym2953 := z.EncBinary() _ = yym2953 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2954 := !z.EncBinary() yy2arr2954 := z.EncBasicHandle().StructToArray var yyq2954 [10]bool _, _, _ = yysep2954, yyq2954, yy2arr2954 const yyr2954 bool = false yyq2954[8] = x.Kind != "" yyq2954[9] = x.APIVersion != "" var yynn2954 int if yyr2954 || yy2arr2954 { r.EncodeArrayStart(10) } else { yynn2954 = 8 for _, b := range yyq2954 { if b { yynn2954++ } } r.EncodeMapStart(yynn2954) yynn2954 = 0 } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2956 := z.EncBinary() _ = yym2956 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) yym2957 := z.EncBinary() _ = yym2957 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2959 := z.EncBinary() _ = yym2959 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2960 := z.EncBinary() _ = yym2960 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2962 := z.EncBinary() _ = yym2962 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2963 := z.EncBinary() _ = yym2963 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2965 := *x.SinceSeconds yym2966 := z.EncBinary() _ = yym2966 if false { } else { r.EncodeInt(int64(yy2965)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2967 := *x.SinceSeconds yym2968 := z.EncBinary() _ = yym2968 if false { } else { r.EncodeInt(int64(yy2967)) } } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym2970 := z.EncBinary() _ = yym2970 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2970 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2970 && 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 { yym2971 := z.EncBinary() _ = yym2971 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2971 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2971 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2973 := z.EncBinary() _ = yym2973 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2974 := z.EncBinary() _ = yym2974 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy2976 := *x.TailLines yym2977 := z.EncBinary() _ = yym2977 if false { } else { r.EncodeInt(int64(yy2976)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy2978 := *x.TailLines yym2979 := z.EncBinary() _ = yym2979 if false { } else { r.EncodeInt(int64(yy2978)) } } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2981 := *x.LimitBytes yym2982 := z.EncBinary() _ = yym2982 if false { } else { r.EncodeInt(int64(yy2981)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2983 := *x.LimitBytes yym2984 := z.EncBinary() _ = yym2984 if false { } else { r.EncodeInt(int64(yy2983)) } } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2954[8] { yym2986 := z.EncBinary() _ = yym2986 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2954[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2987 := z.EncBinary() _ = yym2987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2954 || yy2arr2954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2954[9] { yym2989 := z.EncBinary() _ = yym2989 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2954[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2990 := z.EncBinary() _ = yym2990 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2954 || yy2arr2954 { 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 yym2991 := z.DecBinary() _ = yym2991 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2992 := r.ContainerType() if yyct2992 == codecSelferValueTypeMap1234 { yyl2992 := r.ReadMapStart() if yyl2992 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2992, d) } } else if yyct2992 == codecSelferValueTypeArray1234 { yyl2992 := r.ReadArrayStart() if yyl2992 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2992, 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 yys2993Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2993Slc var yyhl2993 bool = l >= 0 for yyj2993 := 0; ; yyj2993++ { if yyhl2993 { if yyj2993 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2993Slc = r.DecodeBytes(yys2993Slc, true, true) yys2993 := string(yys2993Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2993 { 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) } yym2998 := z.DecBinary() _ = yym2998 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) } yym3000 := z.DecBinary() _ = yym3000 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3000 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3000 && 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) } yym3003 := z.DecBinary() _ = yym3003 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) } yym3005 := z.DecBinary() _ = yym3005 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } 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()) } default: z.DecStructFieldNotFound(-1, yys2993) } // end switch yys2993 } // end for yyj2993 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 yyj3008 int var yyb3008 bool var yyhl3008 bool = l >= 0 yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { 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) } yym3013 := z.DecBinary() _ = yym3013 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { 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) } yym3015 := z.DecBinary() _ = yym3015 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3015 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3015 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { 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) } yym3018 := z.DecBinary() _ = yym3018 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { 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) } yym3020 := z.DecBinary() _ = yym3020 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3008++ if yyhl3008 { yyb3008 = yyj3008 > l } else { yyb3008 = r.CheckBreak() } if yyb3008 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3008-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 { yym3023 := z.EncBinary() _ = yym3023 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3024 := !z.EncBinary() yy2arr3024 := z.EncBasicHandle().StructToArray var yyq3024 [7]bool _, _, _ = yysep3024, yyq3024, yy2arr3024 const yyr3024 bool = false yyq3024[0] = x.Stdin != false yyq3024[1] = x.Stdout != false yyq3024[2] = x.Stderr != false yyq3024[3] = x.TTY != false yyq3024[4] = x.Container != "" yyq3024[5] = x.Kind != "" yyq3024[6] = x.APIVersion != "" var yynn3024 int if yyr3024 || yy2arr3024 { r.EncodeArrayStart(7) } else { yynn3024 = 0 for _, b := range yyq3024 { if b { yynn3024++ } } r.EncodeMapStart(yynn3024) yynn3024 = 0 } if yyr3024 || yy2arr3024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3024[0] { yym3026 := z.EncBinary() _ = yym3026 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq3024[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3027 := z.EncBinary() _ = yym3027 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr3024 || yy2arr3024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3024[1] { yym3029 := z.EncBinary() _ = yym3029 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq3024[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3030 := z.EncBinary() _ = yym3030 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr3024 || yy2arr3024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3024[2] { yym3032 := z.EncBinary() _ = yym3032 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq3024[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3033 := z.EncBinary() _ = yym3033 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr3024 || yy2arr3024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3024[3] { yym3035 := z.EncBinary() _ = yym3035 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq3024[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3036 := z.EncBinary() _ = yym3036 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr3024 || yy2arr3024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3024[4] { yym3038 := z.EncBinary() _ = yym3038 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3024[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3039 := z.EncBinary() _ = yym3039 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr3024 || yy2arr3024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3024[5] { yym3041 := z.EncBinary() _ = yym3041 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3024[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3042 := z.EncBinary() _ = yym3042 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3024 || yy2arr3024 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3024[6] { yym3044 := z.EncBinary() _ = yym3044 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3024[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3045 := z.EncBinary() _ = yym3045 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3024 || yy2arr3024 { 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 yym3046 := z.DecBinary() _ = yym3046 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3047 := r.ContainerType() if yyct3047 == codecSelferValueTypeMap1234 { yyl3047 := r.ReadMapStart() if yyl3047 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3047, d) } } else if yyct3047 == codecSelferValueTypeArray1234 { yyl3047 := r.ReadArrayStart() if yyl3047 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3047, 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 yys3048Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3048Slc var yyhl3048 bool = l >= 0 for yyj3048 := 0; ; yyj3048++ { if yyhl3048 { if yyj3048 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3048Slc = r.DecodeBytes(yys3048Slc, true, true) yys3048 := string(yys3048Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3048 { 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 "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()) } default: z.DecStructFieldNotFound(-1, yys3048) } // end switch yys3048 } // end for yyj3048 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 yyj3056 int var yyb3056 bool var yyhl3056 bool = l >= 0 yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3056++ if yyhl3056 { yyb3056 = yyj3056 > l } else { yyb3056 = r.CheckBreak() } if yyb3056 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3056-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 { yym3064 := z.EncBinary() _ = yym3064 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3065 := !z.EncBinary() yy2arr3065 := z.EncBasicHandle().StructToArray var yyq3065 [8]bool _, _, _ = yysep3065, yyq3065, yy2arr3065 const yyr3065 bool = false yyq3065[6] = x.Kind != "" yyq3065[7] = x.APIVersion != "" var yynn3065 int if yyr3065 || yy2arr3065 { r.EncodeArrayStart(8) } else { yynn3065 = 6 for _, b := range yyq3065 { if b { yynn3065++ } } r.EncodeMapStart(yynn3065) yynn3065 = 0 } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3067 := z.EncBinary() _ = yym3067 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3068 := z.EncBinary() _ = yym3068 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3070 := z.EncBinary() _ = yym3070 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3071 := z.EncBinary() _ = yym3071 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3073 := z.EncBinary() _ = yym3073 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3074 := z.EncBinary() _ = yym3074 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3076 := z.EncBinary() _ = yym3076 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3077 := z.EncBinary() _ = yym3077 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3079 := z.EncBinary() _ = yym3079 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) yym3080 := z.EncBinary() _ = yym3080 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym3082 := z.EncBinary() _ = yym3082 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 { yym3083 := z.EncBinary() _ = yym3083 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3065[6] { yym3085 := z.EncBinary() _ = yym3085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3065[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3086 := z.EncBinary() _ = yym3086 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3065 || yy2arr3065 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3065[7] { yym3088 := z.EncBinary() _ = yym3088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3065[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3089 := z.EncBinary() _ = yym3089 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3065 || yy2arr3065 { 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 yym3090 := z.DecBinary() _ = yym3090 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3091 := r.ContainerType() if yyct3091 == codecSelferValueTypeMap1234 { yyl3091 := r.ReadMapStart() if yyl3091 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3091, d) } } else if yyct3091 == codecSelferValueTypeArray1234 { yyl3091 := r.ReadArrayStart() if yyl3091 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3091, 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 yys3092Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3092Slc var yyhl3092 bool = l >= 0 for yyj3092 := 0; ; yyj3092++ { if yyhl3092 { if yyj3092 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3092Slc = r.DecodeBytes(yys3092Slc, true, true) yys3092 := string(yys3092Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3092 { 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 { yyv3098 := &x.Command yym3099 := z.DecBinary() _ = yym3099 if false { } else { z.F.DecSliceStringX(yyv3098, false, d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3092) } // end switch yys3092 } // end for yyj3092 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 yyj3102 int var yyb3102 bool var yyhl3102 bool = l >= 0 yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv3108 := &x.Command yym3109 := z.DecBinary() _ = yym3109 if false { } else { z.F.DecSliceStringX(yyv3108, false, d) } } yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3102++ if yyhl3102 { yyb3102 = yyj3102 > l } else { yyb3102 = r.CheckBreak() } if yyb3102 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3102-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 { yym3112 := z.EncBinary() _ = yym3112 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3113 := !z.EncBinary() yy2arr3113 := z.EncBasicHandle().StructToArray var yyq3113 [3]bool _, _, _ = yysep3113, yyq3113, yy2arr3113 const yyr3113 bool = false yyq3113[1] = x.Kind != "" yyq3113[2] = x.APIVersion != "" var yynn3113 int if yyr3113 || yy2arr3113 { r.EncodeArrayStart(3) } else { yynn3113 = 1 for _, b := range yyq3113 { if b { yynn3113++ } } r.EncodeMapStart(yynn3113) yynn3113 = 0 } if yyr3113 || yy2arr3113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3115 := z.EncBinary() _ = yym3115 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) yym3116 := z.EncBinary() _ = yym3116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3113 || yy2arr3113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3113[1] { yym3118 := z.EncBinary() _ = yym3118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3113[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3119 := z.EncBinary() _ = yym3119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3113 || yy2arr3113 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3113[2] { yym3121 := z.EncBinary() _ = yym3121 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3113[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3122 := z.EncBinary() _ = yym3122 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3113 || yy2arr3113 { 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 yym3123 := z.DecBinary() _ = yym3123 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3124 := r.ContainerType() if yyct3124 == codecSelferValueTypeMap1234 { yyl3124 := r.ReadMapStart() if yyl3124 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3124, d) } } else if yyct3124 == codecSelferValueTypeArray1234 { yyl3124 := r.ReadArrayStart() if yyl3124 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3124, 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 yys3125Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3125Slc var yyhl3125 bool = l >= 0 for yyj3125 := 0; ; yyj3125++ { if yyhl3125 { if yyj3125 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3125Slc = r.DecodeBytes(yys3125Slc, true, true) yys3125 := string(yys3125Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3125 { case "Path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } 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()) } default: z.DecStructFieldNotFound(-1, yys3125) } // end switch yys3125 } // end for yyj3125 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 yyj3129 int var yyb3129 bool var yyhl3129 bool = l >= 0 yyj3129++ if yyhl3129 { yyb3129 = yyj3129 > l } else { yyb3129 = r.CheckBreak() } if yyb3129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj3129++ if yyhl3129 { yyb3129 = yyj3129 > l } else { yyb3129 = r.CheckBreak() } if yyb3129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3129++ if yyhl3129 { yyb3129 = yyj3129 > l } else { yyb3129 = r.CheckBreak() } if yyb3129 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3129++ if yyhl3129 { yyb3129 = yyj3129 > l } else { yyb3129 = r.CheckBreak() } if yyb3129 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3129-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 { yym3133 := z.EncBinary() _ = yym3133 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3134 := !z.EncBinary() yy2arr3134 := z.EncBasicHandle().StructToArray var yyq3134 [7]bool _, _, _ = yysep3134, yyq3134, yy2arr3134 const yyr3134 bool = false yyq3134[0] = x.Kind != "" yyq3134[1] = x.Namespace != "" yyq3134[2] = x.Name != "" yyq3134[3] = x.UID != "" yyq3134[4] = x.APIVersion != "" yyq3134[5] = x.ResourceVersion != "" yyq3134[6] = x.FieldPath != "" var yynn3134 int if yyr3134 || yy2arr3134 { r.EncodeArrayStart(7) } else { yynn3134 = 0 for _, b := range yyq3134 { if b { yynn3134++ } } r.EncodeMapStart(yynn3134) yynn3134 = 0 } if yyr3134 || yy2arr3134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3134[0] { yym3136 := z.EncBinary() _ = yym3136 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3134[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3137 := z.EncBinary() _ = yym3137 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3134 || yy2arr3134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3134[1] { yym3139 := z.EncBinary() _ = yym3139 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3134[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3140 := z.EncBinary() _ = yym3140 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr3134 || yy2arr3134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3134[2] { yym3142 := z.EncBinary() _ = yym3142 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3134[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3143 := z.EncBinary() _ = yym3143 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr3134 || yy2arr3134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3134[3] { yym3145 := z.EncBinary() _ = yym3145 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 yyq3134[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3146 := z.EncBinary() _ = yym3146 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr3134 || yy2arr3134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3134[4] { yym3148 := z.EncBinary() _ = yym3148 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3134[4] { 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 yyr3134 || yy2arr3134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3134[5] { yym3151 := z.EncBinary() _ = yym3151 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3134[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3152 := z.EncBinary() _ = yym3152 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr3134 || yy2arr3134 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3134[6] { yym3154 := z.EncBinary() _ = yym3154 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3134[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3155 := z.EncBinary() _ = yym3155 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr3134 || yy2arr3134 { 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 yym3156 := z.DecBinary() _ = yym3156 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3157 := r.ContainerType() if yyct3157 == codecSelferValueTypeMap1234 { yyl3157 := r.ReadMapStart() if yyl3157 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3157, d) } } else if yyct3157 == codecSelferValueTypeArray1234 { yyl3157 := r.ReadArrayStart() if yyl3157 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3157, 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 yys3158Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3158Slc var yyhl3158 bool = l >= 0 for yyj3158 := 0; ; yyj3158++ { if yyhl3158 { if yyj3158 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3158Slc = r.DecodeBytes(yys3158Slc, true, true) yys3158 := string(yys3158Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3158 { 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, yys3158) } // end switch yys3158 } // end for yyj3158 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 yyj3166 int var yyb3166 bool var yyhl3166 bool = l >= 0 yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj3166++ if yyhl3166 { yyb3166 = yyj3166 > l } else { yyb3166 = r.CheckBreak() } if yyb3166 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3166-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 { yym3174 := z.EncBinary() _ = yym3174 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3175 := !z.EncBinary() yy2arr3175 := z.EncBasicHandle().StructToArray var yyq3175 [1]bool _, _, _ = yysep3175, yyq3175, yy2arr3175 const yyr3175 bool = false var yynn3175 int if yyr3175 || yy2arr3175 { r.EncodeArrayStart(1) } else { yynn3175 = 1 for _, b := range yyq3175 { if b { yynn3175++ } } r.EncodeMapStart(yynn3175) yynn3175 = 0 } if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3177 := z.EncBinary() _ = yym3177 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) yym3178 := z.EncBinary() _ = yym3178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3175 || yy2arr3175 { 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 yym3179 := z.DecBinary() _ = yym3179 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3180 := r.ContainerType() if yyct3180 == codecSelferValueTypeMap1234 { yyl3180 := r.ReadMapStart() if yyl3180 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3180, d) } } else if yyct3180 == codecSelferValueTypeArray1234 { yyl3180 := r.ReadArrayStart() if yyl3180 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3180, 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 yys3181Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3181Slc var yyhl3181 bool = l >= 0 for yyj3181 := 0; ; yyj3181++ { if yyhl3181 { if yyj3181 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3181Slc = r.DecodeBytes(yys3181Slc, true, true) yys3181 := string(yys3181Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3181 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3181) } // end switch yys3181 } // end for yyj3181 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 yyj3183 int var yyb3183 bool var yyhl3183 bool = l >= 0 yyj3183++ if yyhl3183 { yyb3183 = yyj3183 > l } else { yyb3183 = r.CheckBreak() } if yyb3183 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj3183++ if yyhl3183 { yyb3183 = yyj3183 > l } else { yyb3183 = r.CheckBreak() } if yyb3183 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3183-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 { yym3185 := z.EncBinary() _ = yym3185 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3186 := !z.EncBinary() yy2arr3186 := z.EncBasicHandle().StructToArray var yyq3186 [3]bool _, _, _ = yysep3186, yyq3186, yy2arr3186 const yyr3186 bool = false yyq3186[0] = true yyq3186[1] = x.Kind != "" yyq3186[2] = x.APIVersion != "" var yynn3186 int if yyr3186 || yy2arr3186 { r.EncodeArrayStart(3) } else { yynn3186 = 0 for _, b := range yyq3186 { if b { yynn3186++ } } r.EncodeMapStart(yynn3186) yynn3186 = 0 } if yyr3186 || yy2arr3186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3186[0] { yy3188 := &x.Reference yy3188.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3186[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3189 := &x.Reference yy3189.CodecEncodeSelf(e) } } if yyr3186 || yy2arr3186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3186[1] { yym3191 := z.EncBinary() _ = yym3191 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3186[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3192 := z.EncBinary() _ = yym3192 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3186 || yy2arr3186 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3186[2] { yym3194 := z.EncBinary() _ = yym3194 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3186[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3195 := z.EncBinary() _ = yym3195 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3186 || yy2arr3186 { 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 yym3196 := z.DecBinary() _ = yym3196 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3197 := r.ContainerType() if yyct3197 == codecSelferValueTypeMap1234 { yyl3197 := r.ReadMapStart() if yyl3197 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3197, d) } } else if yyct3197 == codecSelferValueTypeArray1234 { yyl3197 := r.ReadArrayStart() if yyl3197 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3197, 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 yys3198Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3198Slc var yyhl3198 bool = l >= 0 for yyj3198 := 0; ; yyj3198++ { if yyhl3198 { if yyj3198 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3198Slc = r.DecodeBytes(yys3198Slc, true, true) yys3198 := string(yys3198Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3198 { case "reference": if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3199 := &x.Reference yyv3199.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys3198) } // end switch yys3198 } // end for yyj3198 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 yyj3202 int var yyb3202 bool var yyhl3202 bool = l >= 0 yyj3202++ if yyhl3202 { yyb3202 = yyj3202 > l } else { yyb3202 = r.CheckBreak() } if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3203 := &x.Reference yyv3203.CodecDecodeSelf(d) } yyj3202++ if yyhl3202 { yyb3202 = yyj3202 > l } else { yyb3202 = r.CheckBreak() } if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3202++ if yyhl3202 { yyb3202 = yyj3202 > l } else { yyb3202 = r.CheckBreak() } if yyb3202 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3202++ if yyhl3202 { yyb3202 = yyj3202 > l } else { yyb3202 = r.CheckBreak() } if yyb3202 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3202-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 { yym3206 := z.EncBinary() _ = yym3206 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3207 := !z.EncBinary() yy2arr3207 := z.EncBasicHandle().StructToArray var yyq3207 [2]bool _, _, _ = yysep3207, yyq3207, yy2arr3207 const yyr3207 bool = false yyq3207[0] = x.Component != "" yyq3207[1] = x.Host != "" var yynn3207 int if yyr3207 || yy2arr3207 { r.EncodeArrayStart(2) } else { yynn3207 = 0 for _, b := range yyq3207 { if b { yynn3207++ } } r.EncodeMapStart(yynn3207) yynn3207 = 0 } if yyr3207 || yy2arr3207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3207[0] { yym3209 := z.EncBinary() _ = yym3209 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3207[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3210 := z.EncBinary() _ = yym3210 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr3207 || yy2arr3207 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3207[1] { yym3212 := z.EncBinary() _ = yym3212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3207[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3213 := z.EncBinary() _ = yym3213 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr3207 || yy2arr3207 { 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 yym3214 := z.DecBinary() _ = yym3214 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3215 := r.ContainerType() if yyct3215 == codecSelferValueTypeMap1234 { yyl3215 := r.ReadMapStart() if yyl3215 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3215, d) } } else if yyct3215 == codecSelferValueTypeArray1234 { yyl3215 := r.ReadArrayStart() if yyl3215 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3215, 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 yys3216Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3216Slc var yyhl3216 bool = l >= 0 for yyj3216 := 0; ; yyj3216++ { if yyhl3216 { if yyj3216 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3216Slc = r.DecodeBytes(yys3216Slc, true, true) yys3216 := string(yys3216Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3216 { 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, yys3216) } // end switch yys3216 } // end for yyj3216 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 yyj3219 int var yyb3219 bool var yyhl3219 bool = l >= 0 yyj3219++ if yyhl3219 { yyb3219 = yyj3219 > l } else { yyb3219 = r.CheckBreak() } if yyb3219 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj3219++ if yyhl3219 { yyb3219 = yyj3219 > l } else { yyb3219 = r.CheckBreak() } if yyb3219 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj3219++ if yyhl3219 { yyb3219 = yyj3219 > l } else { yyb3219 = r.CheckBreak() } if yyb3219 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3219-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 { yym3222 := z.EncBinary() _ = yym3222 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3223 := !z.EncBinary() yy2arr3223 := z.EncBasicHandle().StructToArray var yyq3223 [11]bool _, _, _ = yysep3223, yyq3223, yy2arr3223 const yyr3223 bool = false yyq3223[0] = true yyq3223[1] = true yyq3223[2] = x.Reason != "" yyq3223[3] = x.Message != "" yyq3223[4] = true yyq3223[5] = true yyq3223[6] = true yyq3223[7] = x.Count != 0 yyq3223[8] = x.Type != "" yyq3223[9] = x.Kind != "" yyq3223[10] = x.APIVersion != "" var yynn3223 int if yyr3223 || yy2arr3223 { r.EncodeArrayStart(11) } else { yynn3223 = 0 for _, b := range yyq3223 { if b { yynn3223++ } } r.EncodeMapStart(yynn3223) yynn3223 = 0 } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[0] { yy3225 := &x.ObjectMeta yy3225.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3223[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3226 := &x.ObjectMeta yy3226.CodecEncodeSelf(e) } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[1] { yy3228 := &x.InvolvedObject yy3228.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3223[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3229 := &x.InvolvedObject yy3229.CodecEncodeSelf(e) } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[2] { yym3231 := z.EncBinary() _ = yym3231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3223[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3232 := z.EncBinary() _ = yym3232 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[3] { yym3234 := z.EncBinary() _ = yym3234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3223[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3235 := z.EncBinary() _ = yym3235 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[4] { yy3237 := &x.Source yy3237.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3223[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3238 := &x.Source yy3238.CodecEncodeSelf(e) } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[5] { yy3240 := &x.FirstTimestamp yym3241 := z.EncBinary() _ = yym3241 if false { } else if z.HasExtensions() && z.EncExt(yy3240) { } else if yym3241 { z.EncBinaryMarshal(yy3240) } else if !yym3241 && z.IsJSONHandle() { z.EncJSONMarshal(yy3240) } else { z.EncFallback(yy3240) } } else { r.EncodeNil() } } else { if yyq3223[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3242 := &x.FirstTimestamp yym3243 := z.EncBinary() _ = yym3243 if false { } else if z.HasExtensions() && z.EncExt(yy3242) { } else if yym3243 { z.EncBinaryMarshal(yy3242) } else if !yym3243 && z.IsJSONHandle() { z.EncJSONMarshal(yy3242) } else { z.EncFallback(yy3242) } } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[6] { yy3245 := &x.LastTimestamp yym3246 := z.EncBinary() _ = yym3246 if false { } else if z.HasExtensions() && z.EncExt(yy3245) { } else if yym3246 { z.EncBinaryMarshal(yy3245) } else if !yym3246 && z.IsJSONHandle() { z.EncJSONMarshal(yy3245) } else { z.EncFallback(yy3245) } } else { r.EncodeNil() } } else { if yyq3223[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3247 := &x.LastTimestamp yym3248 := z.EncBinary() _ = yym3248 if false { } else if z.HasExtensions() && z.EncExt(yy3247) { } else if yym3248 { z.EncBinaryMarshal(yy3247) } else if !yym3248 && z.IsJSONHandle() { z.EncJSONMarshal(yy3247) } else { z.EncFallback(yy3247) } } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[7] { yym3250 := z.EncBinary() _ = yym3250 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq3223[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3251 := z.EncBinary() _ = yym3251 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[8] { yym3253 := z.EncBinary() _ = yym3253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3223[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3254 := z.EncBinary() _ = yym3254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[9] { yym3256 := z.EncBinary() _ = yym3256 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3223[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3257 := z.EncBinary() _ = yym3257 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3223[10] { yym3259 := z.EncBinary() _ = yym3259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3223[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3260 := z.EncBinary() _ = yym3260 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3223 || yy2arr3223 { 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 yym3261 := z.DecBinary() _ = yym3261 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3262 := r.ContainerType() if yyct3262 == codecSelferValueTypeMap1234 { yyl3262 := r.ReadMapStart() if yyl3262 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3262, d) } } else if yyct3262 == codecSelferValueTypeArray1234 { yyl3262 := r.ReadArrayStart() if yyl3262 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3262, 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 yys3263Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3263Slc var yyhl3263 bool = l >= 0 for yyj3263 := 0; ; yyj3263++ { if yyhl3263 { if yyj3263 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3263Slc = r.DecodeBytes(yys3263Slc, true, true) yys3263 := string(yys3263Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3263 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3264 := &x.ObjectMeta yyv3264.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3265 := &x.InvolvedObject yyv3265.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 { yyv3268 := &x.Source yyv3268.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3269 := &x.FirstTimestamp yym3270 := z.DecBinary() _ = yym3270 if false { } else if z.HasExtensions() && z.DecExt(yyv3269) { } else if yym3270 { z.DecBinaryUnmarshal(yyv3269) } else if !yym3270 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3269) } else { z.DecFallback(yyv3269, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3271 := &x.LastTimestamp yym3272 := z.DecBinary() _ = yym3272 if false { } else if z.HasExtensions() && z.DecExt(yyv3271) { } else if yym3272 { z.DecBinaryUnmarshal(yyv3271) } else if !yym3272 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3271) } else { z.DecFallback(yyv3271, false) } } case "count": if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int(r.DecodeInt(codecSelferBitsize1234)) } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } 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()) } default: z.DecStructFieldNotFound(-1, yys3263) } // end switch yys3263 } // end for yyj3263 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 yyj3277 int var yyb3277 bool var yyhl3277 bool = l >= 0 yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3278 := &x.ObjectMeta yyv3278.CodecDecodeSelf(d) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3279 := &x.InvolvedObject yyv3279.CodecDecodeSelf(d) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv3282 := &x.Source yyv3282.CodecDecodeSelf(d) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3283 := &x.FirstTimestamp yym3284 := z.DecBinary() _ = yym3284 if false { } else if z.HasExtensions() && z.DecExt(yyv3283) { } else if yym3284 { z.DecBinaryUnmarshal(yyv3283) } else if !yym3284 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3283) } else { z.DecFallback(yyv3283, false) } } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3285 := &x.LastTimestamp yym3286 := z.DecBinary() _ = yym3286 if false { } else if z.HasExtensions() && z.DecExt(yyv3285) { } else if yym3286 { z.DecBinaryUnmarshal(yyv3285) } else if !yym3286 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3285) } else { z.DecFallback(yyv3285, false) } } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int(r.DecodeInt(codecSelferBitsize1234)) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3277++ if yyhl3277 { yyb3277 = yyj3277 > l } else { yyb3277 = r.CheckBreak() } if yyb3277 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3277-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 { yym3291 := z.EncBinary() _ = yym3291 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3292 := !z.EncBinary() yy2arr3292 := z.EncBasicHandle().StructToArray var yyq3292 [4]bool _, _, _ = yysep3292, yyq3292, yy2arr3292 const yyr3292 bool = false yyq3292[0] = true yyq3292[2] = x.Kind != "" yyq3292[3] = x.APIVersion != "" var yynn3292 int if yyr3292 || yy2arr3292 { r.EncodeArrayStart(4) } else { yynn3292 = 1 for _, b := range yyq3292 { if b { yynn3292++ } } r.EncodeMapStart(yynn3292) yynn3292 = 0 } if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3292[0] { yy3294 := &x.ListMeta yym3295 := z.EncBinary() _ = yym3295 if false { } else if z.HasExtensions() && z.EncExt(yy3294) { } else { z.EncFallback(yy3294) } } else { r.EncodeNil() } } else { if yyq3292[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3296 := &x.ListMeta yym3297 := z.EncBinary() _ = yym3297 if false { } else if z.HasExtensions() && z.EncExt(yy3296) { } else { z.EncFallback(yy3296) } } } if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3299 := z.EncBinary() _ = yym3299 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 { yym3300 := z.EncBinary() _ = yym3300 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3292[2] { yym3302 := z.EncBinary() _ = yym3302 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3292[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3303 := z.EncBinary() _ = yym3303 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3292 || yy2arr3292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3292[3] { yym3305 := z.EncBinary() _ = yym3305 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3292[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3306 := z.EncBinary() _ = yym3306 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3292 || yy2arr3292 { 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 yym3307 := z.DecBinary() _ = yym3307 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3308 := r.ContainerType() if yyct3308 == codecSelferValueTypeMap1234 { yyl3308 := r.ReadMapStart() if yyl3308 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3308, d) } } else if yyct3308 == codecSelferValueTypeArray1234 { yyl3308 := r.ReadArrayStart() if yyl3308 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3308, 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 yys3309Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3309Slc var yyhl3309 bool = l >= 0 for yyj3309 := 0; ; yyj3309++ { if yyhl3309 { if yyj3309 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3309Slc = r.DecodeBytes(yys3309Slc, true, true) yys3309 := string(yys3309Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3309 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3310 := &x.ListMeta yym3311 := z.DecBinary() _ = yym3311 if false { } else if z.HasExtensions() && z.DecExt(yyv3310) { } else { z.DecFallback(yyv3310, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3312 := &x.Items yym3313 := z.DecBinary() _ = yym3313 if false { } else { h.decSliceEvent((*[]Event)(yyv3312), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3309) } // end switch yys3309 } // end for yyj3309 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 yyj3316 int var yyb3316 bool var yyhl3316 bool = l >= 0 yyj3316++ if yyhl3316 { yyb3316 = yyj3316 > l } else { yyb3316 = r.CheckBreak() } if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3317 := &x.ListMeta yym3318 := z.DecBinary() _ = yym3318 if false { } else if z.HasExtensions() && z.DecExt(yyv3317) { } else { z.DecFallback(yyv3317, false) } } yyj3316++ if yyhl3316 { yyb3316 = yyj3316 > l } else { yyb3316 = r.CheckBreak() } if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3319 := &x.Items yym3320 := z.DecBinary() _ = yym3320 if false { } else { h.decSliceEvent((*[]Event)(yyv3319), d) } } yyj3316++ if yyhl3316 { yyb3316 = yyj3316 > l } else { yyb3316 = r.CheckBreak() } if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3316++ if yyhl3316 { yyb3316 = yyj3316 > l } else { yyb3316 = r.CheckBreak() } if yyb3316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3316++ if yyhl3316 { yyb3316 = yyj3316 > l } else { yyb3316 = r.CheckBreak() } if yyb3316 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3316-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 { yym3323 := z.EncBinary() _ = yym3323 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3324 := !z.EncBinary() yy2arr3324 := z.EncBasicHandle().StructToArray var yyq3324 [4]bool _, _, _ = yysep3324, yyq3324, yy2arr3324 const yyr3324 bool = false yyq3324[0] = true yyq3324[2] = x.Kind != "" yyq3324[3] = x.APIVersion != "" var yynn3324 int if yyr3324 || yy2arr3324 { r.EncodeArrayStart(4) } else { yynn3324 = 1 for _, b := range yyq3324 { if b { yynn3324++ } } r.EncodeMapStart(yynn3324) yynn3324 = 0 } if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3324[0] { yy3326 := &x.ListMeta yym3327 := z.EncBinary() _ = yym3327 if false { } else if z.HasExtensions() && z.EncExt(yy3326) { } else { z.EncFallback(yy3326) } } else { r.EncodeNil() } } else { if yyq3324[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3328 := &x.ListMeta yym3329 := z.EncBinary() _ = yym3329 if false { } else if z.HasExtensions() && z.EncExt(yy3328) { } else { z.EncFallback(yy3328) } } } if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3331 := z.EncBinary() _ = yym3331 if false { } else { h.encSliceruntime_Object(([]pkg8_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 { yym3332 := z.EncBinary() _ = yym3332 if false { } else { h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e) } } } if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3324[2] { yym3334 := z.EncBinary() _ = yym3334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3324[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3335 := z.EncBinary() _ = yym3335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3324 || yy2arr3324 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3324[3] { yym3337 := z.EncBinary() _ = yym3337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3324[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3338 := z.EncBinary() _ = yym3338 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3324 || yy2arr3324 { 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 yym3339 := z.DecBinary() _ = yym3339 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3340 := r.ContainerType() if yyct3340 == codecSelferValueTypeMap1234 { yyl3340 := r.ReadMapStart() if yyl3340 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3340, d) } } else if yyct3340 == codecSelferValueTypeArray1234 { yyl3340 := r.ReadArrayStart() if yyl3340 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3340, 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 yys3341Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3341Slc var yyhl3341 bool = l >= 0 for yyj3341 := 0; ; yyj3341++ { if yyhl3341 { if yyj3341 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3341Slc = r.DecodeBytes(yys3341Slc, true, true) yys3341 := string(yys3341Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3341 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3342 := &x.ListMeta yym3343 := z.DecBinary() _ = yym3343 if false { } else if z.HasExtensions() && z.DecExt(yyv3342) { } else { z.DecFallback(yyv3342, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3344 := &x.Items yym3345 := z.DecBinary() _ = yym3345 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3344), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3341) } // end switch yys3341 } // end for yyj3341 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 yyj3348 int var yyb3348 bool var yyhl3348 bool = l >= 0 yyj3348++ if yyhl3348 { yyb3348 = yyj3348 > l } else { yyb3348 = r.CheckBreak() } if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3349 := &x.ListMeta yym3350 := z.DecBinary() _ = yym3350 if false { } else if z.HasExtensions() && z.DecExt(yyv3349) { } else { z.DecFallback(yyv3349, false) } } yyj3348++ if yyhl3348 { yyb3348 = yyj3348 > l } else { yyb3348 = r.CheckBreak() } if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3351 := &x.Items yym3352 := z.DecBinary() _ = yym3352 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3351), d) } } yyj3348++ if yyhl3348 { yyb3348 = yyj3348 > l } else { yyb3348 = r.CheckBreak() } if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3348++ if yyhl3348 { yyb3348 = yyj3348 > l } else { yyb3348 = r.CheckBreak() } if yyb3348 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3348++ if yyhl3348 { yyb3348 = yyj3348 > l } else { yyb3348 = r.CheckBreak() } if yyb3348 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3348-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3355 := z.EncBinary() _ = yym3355 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 yym3356 := z.DecBinary() _ = yym3356 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 { yym3357 := z.EncBinary() _ = yym3357 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3358 := !z.EncBinary() yy2arr3358 := z.EncBasicHandle().StructToArray var yyq3358 [6]bool _, _, _ = yysep3358, yyq3358, yy2arr3358 const yyr3358 bool = false yyq3358[0] = x.Type != "" yyq3358[1] = len(x.Max) != 0 yyq3358[2] = len(x.Min) != 0 yyq3358[3] = len(x.Default) != 0 yyq3358[4] = len(x.DefaultRequest) != 0 yyq3358[5] = len(x.MaxLimitRequestRatio) != 0 var yynn3358 int if yyr3358 || yy2arr3358 { r.EncodeArrayStart(6) } else { yynn3358 = 0 for _, b := range yyq3358 { if b { yynn3358++ } } r.EncodeMapStart(yynn3358) yynn3358 = 0 } if yyr3358 || yy2arr3358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3358[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3358[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3358 || yy2arr3358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3358[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3358[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 yyr3358 || yy2arr3358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3358[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3358[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 yyr3358 || yy2arr3358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3358[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3358[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 yyr3358 || yy2arr3358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3358[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3358[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 yyr3358 || yy2arr3358 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3358[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3358[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 yyr3358 || yy2arr3358 { 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 yym3365 := z.DecBinary() _ = yym3365 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3366 := r.ContainerType() if yyct3366 == codecSelferValueTypeMap1234 { yyl3366 := r.ReadMapStart() if yyl3366 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3366, d) } } else if yyct3366 == codecSelferValueTypeArray1234 { yyl3366 := r.ReadArrayStart() if yyl3366 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3366, 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 yys3367Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3367Slc var yyhl3367 bool = l >= 0 for yyj3367 := 0; ; yyj3367++ { if yyhl3367 { if yyj3367 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3367Slc = r.DecodeBytes(yys3367Slc, true, true) yys3367 := string(yys3367Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3367 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv3369 := &x.Max yyv3369.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv3370 := &x.Min yyv3370.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv3371 := &x.Default yyv3371.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3372 := &x.DefaultRequest yyv3372.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3373 := &x.MaxLimitRequestRatio yyv3373.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3367) } // end switch yys3367 } // end for yyj3367 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 yyj3374 int var yyb3374 bool var yyhl3374 bool = l >= 0 yyj3374++ if yyhl3374 { yyb3374 = yyj3374 > l } else { yyb3374 = r.CheckBreak() } if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj3374++ if yyhl3374 { yyb3374 = yyj3374 > l } else { yyb3374 = r.CheckBreak() } if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv3376 := &x.Max yyv3376.CodecDecodeSelf(d) } yyj3374++ if yyhl3374 { yyb3374 = yyj3374 > l } else { yyb3374 = r.CheckBreak() } if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv3377 := &x.Min yyv3377.CodecDecodeSelf(d) } yyj3374++ if yyhl3374 { yyb3374 = yyj3374 > l } else { yyb3374 = r.CheckBreak() } if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv3378 := &x.Default yyv3378.CodecDecodeSelf(d) } yyj3374++ if yyhl3374 { yyb3374 = yyj3374 > l } else { yyb3374 = r.CheckBreak() } if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3379 := &x.DefaultRequest yyv3379.CodecDecodeSelf(d) } yyj3374++ if yyhl3374 { yyb3374 = yyj3374 > l } else { yyb3374 = r.CheckBreak() } if yyb3374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3380 := &x.MaxLimitRequestRatio yyv3380.CodecDecodeSelf(d) } for { yyj3374++ if yyhl3374 { yyb3374 = yyj3374 > l } else { yyb3374 = r.CheckBreak() } if yyb3374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3374-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 { yym3381 := z.EncBinary() _ = yym3381 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3382 := !z.EncBinary() yy2arr3382 := z.EncBasicHandle().StructToArray var yyq3382 [1]bool _, _, _ = yysep3382, yyq3382, yy2arr3382 const yyr3382 bool = false var yynn3382 int if yyr3382 || yy2arr3382 { r.EncodeArrayStart(1) } else { yynn3382 = 1 for _, b := range yyq3382 { if b { yynn3382++ } } r.EncodeMapStart(yynn3382) yynn3382 = 0 } if yyr3382 || yy2arr3382 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym3384 := z.EncBinary() _ = yym3384 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 { yym3385 := z.EncBinary() _ = yym3385 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr3382 || yy2arr3382 { 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 yym3386 := z.DecBinary() _ = yym3386 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3387 := r.ContainerType() if yyct3387 == codecSelferValueTypeMap1234 { yyl3387 := r.ReadMapStart() if yyl3387 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3387, d) } } else if yyct3387 == codecSelferValueTypeArray1234 { yyl3387 := r.ReadArrayStart() if yyl3387 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3387, 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 yys3388Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3388Slc var yyhl3388 bool = l >= 0 for yyj3388 := 0; ; yyj3388++ { if yyhl3388 { if yyj3388 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3388Slc = r.DecodeBytes(yys3388Slc, true, true) yys3388 := string(yys3388Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3388 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3389 := &x.Limits yym3390 := z.DecBinary() _ = yym3390 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3389), d) } } default: z.DecStructFieldNotFound(-1, yys3388) } // end switch yys3388 } // end for yyj3388 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 yyj3391 int var yyb3391 bool var yyhl3391 bool = l >= 0 yyj3391++ if yyhl3391 { yyb3391 = yyj3391 > l } else { yyb3391 = r.CheckBreak() } if yyb3391 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3392 := &x.Limits yym3393 := z.DecBinary() _ = yym3393 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3392), d) } } for { yyj3391++ if yyhl3391 { yyb3391 = yyj3391 > l } else { yyb3391 = r.CheckBreak() } if yyb3391 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3391-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 { yym3394 := z.EncBinary() _ = yym3394 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3395 := !z.EncBinary() yy2arr3395 := z.EncBasicHandle().StructToArray var yyq3395 [4]bool _, _, _ = yysep3395, yyq3395, yy2arr3395 const yyr3395 bool = false yyq3395[0] = true yyq3395[1] = true yyq3395[2] = x.Kind != "" yyq3395[3] = x.APIVersion != "" var yynn3395 int if yyr3395 || yy2arr3395 { r.EncodeArrayStart(4) } else { yynn3395 = 0 for _, b := range yyq3395 { if b { yynn3395++ } } r.EncodeMapStart(yynn3395) yynn3395 = 0 } if yyr3395 || yy2arr3395 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3395[0] { yy3397 := &x.ObjectMeta yy3397.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3395[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3398 := &x.ObjectMeta yy3398.CodecEncodeSelf(e) } } if yyr3395 || yy2arr3395 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3395[1] { yy3400 := &x.Spec yy3400.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3395[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3401 := &x.Spec yy3401.CodecEncodeSelf(e) } } if yyr3395 || yy2arr3395 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3395[2] { yym3403 := z.EncBinary() _ = yym3403 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3395[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3404 := z.EncBinary() _ = yym3404 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3395 || yy2arr3395 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3395[3] { yym3406 := z.EncBinary() _ = yym3406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3395[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3407 := z.EncBinary() _ = yym3407 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3395 || yy2arr3395 { 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 yym3408 := z.DecBinary() _ = yym3408 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3409 := r.ContainerType() if yyct3409 == codecSelferValueTypeMap1234 { yyl3409 := r.ReadMapStart() if yyl3409 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3409, d) } } else if yyct3409 == codecSelferValueTypeArray1234 { yyl3409 := r.ReadArrayStart() if yyl3409 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3409, 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 yys3410Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3410Slc var yyhl3410 bool = l >= 0 for yyj3410 := 0; ; yyj3410++ { if yyhl3410 { if yyj3410 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3410Slc = r.DecodeBytes(yys3410Slc, true, true) yys3410 := string(yys3410Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3410 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3411 := &x.ObjectMeta yyv3411.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3412 := &x.Spec yyv3412.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys3410) } // end switch yys3410 } // end for yyj3410 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 yyj3415 int var yyb3415 bool var yyhl3415 bool = l >= 0 yyj3415++ if yyhl3415 { yyb3415 = yyj3415 > l } else { yyb3415 = r.CheckBreak() } if yyb3415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3416 := &x.ObjectMeta yyv3416.CodecDecodeSelf(d) } yyj3415++ if yyhl3415 { yyb3415 = yyj3415 > l } else { yyb3415 = r.CheckBreak() } if yyb3415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3417 := &x.Spec yyv3417.CodecDecodeSelf(d) } yyj3415++ if yyhl3415 { yyb3415 = yyj3415 > l } else { yyb3415 = r.CheckBreak() } if yyb3415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3415++ if yyhl3415 { yyb3415 = yyj3415 > l } else { yyb3415 = r.CheckBreak() } if yyb3415 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3415++ if yyhl3415 { yyb3415 = yyj3415 > l } else { yyb3415 = r.CheckBreak() } if yyb3415 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3415-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 { yym3420 := z.EncBinary() _ = yym3420 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3421 := !z.EncBinary() yy2arr3421 := z.EncBasicHandle().StructToArray var yyq3421 [4]bool _, _, _ = yysep3421, yyq3421, yy2arr3421 const yyr3421 bool = false yyq3421[0] = true yyq3421[2] = x.Kind != "" yyq3421[3] = x.APIVersion != "" var yynn3421 int if yyr3421 || yy2arr3421 { r.EncodeArrayStart(4) } else { yynn3421 = 1 for _, b := range yyq3421 { if b { yynn3421++ } } r.EncodeMapStart(yynn3421) yynn3421 = 0 } if yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3421[0] { yy3423 := &x.ListMeta yym3424 := z.EncBinary() _ = yym3424 if false { } else if z.HasExtensions() && z.EncExt(yy3423) { } else { z.EncFallback(yy3423) } } else { r.EncodeNil() } } else { if yyq3421[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3425 := &x.ListMeta yym3426 := z.EncBinary() _ = yym3426 if false { } else if z.HasExtensions() && z.EncExt(yy3425) { } else { z.EncFallback(yy3425) } } } if yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3428 := z.EncBinary() _ = yym3428 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 { yym3429 := z.EncBinary() _ = yym3429 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3421[2] { yym3431 := z.EncBinary() _ = yym3431 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3421[2] { 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 yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3421[3] { yym3434 := z.EncBinary() _ = yym3434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3421[3] { 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 yyr3421 || yy2arr3421 { 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 yym3436 := z.DecBinary() _ = yym3436 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3437 := r.ContainerType() if yyct3437 == codecSelferValueTypeMap1234 { yyl3437 := r.ReadMapStart() if yyl3437 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3437, d) } } else if yyct3437 == codecSelferValueTypeArray1234 { yyl3437 := r.ReadArrayStart() if yyl3437 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3437, 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 yys3438Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3438Slc var yyhl3438 bool = l >= 0 for yyj3438 := 0; ; yyj3438++ { if yyhl3438 { if yyj3438 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3438Slc = r.DecodeBytes(yys3438Slc, true, true) yys3438 := string(yys3438Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3438 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3439 := &x.ListMeta yym3440 := z.DecBinary() _ = yym3440 if false { } else if z.HasExtensions() && z.DecExt(yyv3439) { } else { z.DecFallback(yyv3439, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3441 := &x.Items yym3442 := z.DecBinary() _ = yym3442 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3441), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3438) } // end switch yys3438 } // end for yyj3438 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 yyj3445 int var yyb3445 bool var yyhl3445 bool = l >= 0 yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3446 := &x.ListMeta yym3447 := z.DecBinary() _ = yym3447 if false { } else if z.HasExtensions() && z.DecExt(yyv3446) { } else { z.DecFallback(yyv3446, false) } } yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3448 := &x.Items yym3449 := z.DecBinary() _ = yym3449 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3448), d) } } yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3445-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3452 := z.EncBinary() _ = yym3452 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3453 := !z.EncBinary() yy2arr3453 := z.EncBasicHandle().StructToArray var yyq3453 [1]bool _, _, _ = yysep3453, yyq3453, yy2arr3453 const yyr3453 bool = false yyq3453[0] = len(x.Hard) != 0 var yynn3453 int if yyr3453 || yy2arr3453 { r.EncodeArrayStart(1) } else { yynn3453 = 0 for _, b := range yyq3453 { if b { yynn3453++ } } r.EncodeMapStart(yynn3453) yynn3453 = 0 } if yyr3453 || yy2arr3453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3453[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3453[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 yyr3453 || yy2arr3453 { 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 yym3455 := z.DecBinary() _ = yym3455 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3456 := r.ContainerType() if yyct3456 == codecSelferValueTypeMap1234 { yyl3456 := r.ReadMapStart() if yyl3456 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3456, d) } } else if yyct3456 == codecSelferValueTypeArray1234 { yyl3456 := r.ReadArrayStart() if yyl3456 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3456, 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 yys3457Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3457Slc var yyhl3457 bool = l >= 0 for yyj3457 := 0; ; yyj3457++ { if yyhl3457 { if yyj3457 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3457Slc = r.DecodeBytes(yys3457Slc, true, true) yys3457 := string(yys3457Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3457 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3458 := &x.Hard yyv3458.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3457) } // end switch yys3457 } // end for yyj3457 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 yyj3459 int var yyb3459 bool var yyhl3459 bool = l >= 0 yyj3459++ if yyhl3459 { yyb3459 = yyj3459 > l } else { yyb3459 = r.CheckBreak() } if yyb3459 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3460 := &x.Hard yyv3460.CodecDecodeSelf(d) } for { yyj3459++ if yyhl3459 { yyb3459 = yyj3459 > l } else { yyb3459 = r.CheckBreak() } if yyb3459 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3459-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 { yym3461 := z.EncBinary() _ = yym3461 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3462 := !z.EncBinary() yy2arr3462 := z.EncBasicHandle().StructToArray var yyq3462 [2]bool _, _, _ = yysep3462, yyq3462, yy2arr3462 const yyr3462 bool = false yyq3462[0] = len(x.Hard) != 0 yyq3462[1] = len(x.Used) != 0 var yynn3462 int if yyr3462 || yy2arr3462 { r.EncodeArrayStart(2) } else { yynn3462 = 0 for _, b := range yyq3462 { if b { yynn3462++ } } r.EncodeMapStart(yynn3462) yynn3462 = 0 } if yyr3462 || yy2arr3462 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3462[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3462[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 yyr3462 || yy2arr3462 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3462[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3462[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 yyr3462 || yy2arr3462 { 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 yym3465 := z.DecBinary() _ = yym3465 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3466 := r.ContainerType() if yyct3466 == codecSelferValueTypeMap1234 { yyl3466 := r.ReadMapStart() if yyl3466 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3466, d) } } else if yyct3466 == codecSelferValueTypeArray1234 { yyl3466 := r.ReadArrayStart() if yyl3466 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3466, 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 yys3467Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3467Slc var yyhl3467 bool = l >= 0 for yyj3467 := 0; ; yyj3467++ { if yyhl3467 { if yyj3467 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3467Slc = r.DecodeBytes(yys3467Slc, true, true) yys3467 := string(yys3467Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3467 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3468 := &x.Hard yyv3468.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv3469 := &x.Used yyv3469.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3467) } // end switch yys3467 } // end for yyj3467 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 yyj3470 int var yyb3470 bool var yyhl3470 bool = l >= 0 yyj3470++ if yyhl3470 { yyb3470 = yyj3470 > l } else { yyb3470 = r.CheckBreak() } if yyb3470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3471 := &x.Hard yyv3471.CodecDecodeSelf(d) } yyj3470++ if yyhl3470 { yyb3470 = yyj3470 > l } else { yyb3470 = r.CheckBreak() } if yyb3470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv3472 := &x.Used yyv3472.CodecDecodeSelf(d) } for { yyj3470++ if yyhl3470 { yyb3470 = yyj3470 > l } else { yyb3470 = r.CheckBreak() } if yyb3470 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3470-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 { yym3473 := z.EncBinary() _ = yym3473 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3474 := !z.EncBinary() yy2arr3474 := z.EncBasicHandle().StructToArray var yyq3474 [5]bool _, _, _ = yysep3474, yyq3474, yy2arr3474 const yyr3474 bool = false yyq3474[0] = true yyq3474[1] = true yyq3474[2] = true yyq3474[3] = x.Kind != "" yyq3474[4] = x.APIVersion != "" var yynn3474 int if yyr3474 || yy2arr3474 { r.EncodeArrayStart(5) } else { yynn3474 = 0 for _, b := range yyq3474 { if b { yynn3474++ } } r.EncodeMapStart(yynn3474) yynn3474 = 0 } if yyr3474 || yy2arr3474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3474[0] { yy3476 := &x.ObjectMeta yy3476.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3474[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3477 := &x.ObjectMeta yy3477.CodecEncodeSelf(e) } } if yyr3474 || yy2arr3474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3474[1] { yy3479 := &x.Spec yy3479.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3474[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3480 := &x.Spec yy3480.CodecEncodeSelf(e) } } if yyr3474 || yy2arr3474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3474[2] { yy3482 := &x.Status yy3482.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3474[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3483 := &x.Status yy3483.CodecEncodeSelf(e) } } if yyr3474 || yy2arr3474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3474[3] { yym3485 := z.EncBinary() _ = yym3485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3474[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3486 := z.EncBinary() _ = yym3486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3474 || yy2arr3474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3474[4] { yym3488 := z.EncBinary() _ = yym3488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3474[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3489 := z.EncBinary() _ = yym3489 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3474 || yy2arr3474 { 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 yym3490 := z.DecBinary() _ = yym3490 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3491 := r.ContainerType() if yyct3491 == codecSelferValueTypeMap1234 { yyl3491 := r.ReadMapStart() if yyl3491 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3491, d) } } else if yyct3491 == codecSelferValueTypeArray1234 { yyl3491 := r.ReadArrayStart() if yyl3491 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3491, 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 yys3492Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3492Slc var yyhl3492 bool = l >= 0 for yyj3492 := 0; ; yyj3492++ { if yyhl3492 { if yyj3492 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3492Slc = r.DecodeBytes(yys3492Slc, true, true) yys3492 := string(yys3492Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3492 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3493 := &x.ObjectMeta yyv3493.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3494 := &x.Spec yyv3494.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3495 := &x.Status yyv3495.CodecDecodeSelf(d) } 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()) } default: z.DecStructFieldNotFound(-1, yys3492) } // end switch yys3492 } // end for yyj3492 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 yyj3498 int var yyb3498 bool var yyhl3498 bool = l >= 0 yyj3498++ if yyhl3498 { yyb3498 = yyj3498 > l } else { yyb3498 = r.CheckBreak() } if yyb3498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3499 := &x.ObjectMeta yyv3499.CodecDecodeSelf(d) } yyj3498++ if yyhl3498 { yyb3498 = yyj3498 > l } else { yyb3498 = r.CheckBreak() } if yyb3498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3500 := &x.Spec yyv3500.CodecDecodeSelf(d) } yyj3498++ if yyhl3498 { yyb3498 = yyj3498 > l } else { yyb3498 = r.CheckBreak() } if yyb3498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3501 := &x.Status yyv3501.CodecDecodeSelf(d) } yyj3498++ if yyhl3498 { yyb3498 = yyj3498 > l } else { yyb3498 = r.CheckBreak() } if yyb3498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3498++ if yyhl3498 { yyb3498 = yyj3498 > l } else { yyb3498 = r.CheckBreak() } if yyb3498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3498++ if yyhl3498 { yyb3498 = yyj3498 > l } else { yyb3498 = r.CheckBreak() } if yyb3498 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3498-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 { yym3504 := z.EncBinary() _ = yym3504 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3505 := !z.EncBinary() yy2arr3505 := z.EncBasicHandle().StructToArray var yyq3505 [4]bool _, _, _ = yysep3505, yyq3505, yy2arr3505 const yyr3505 bool = false yyq3505[0] = true yyq3505[2] = x.Kind != "" yyq3505[3] = x.APIVersion != "" var yynn3505 int if yyr3505 || yy2arr3505 { r.EncodeArrayStart(4) } else { yynn3505 = 1 for _, b := range yyq3505 { if b { yynn3505++ } } r.EncodeMapStart(yynn3505) yynn3505 = 0 } if yyr3505 || yy2arr3505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3505[0] { yy3507 := &x.ListMeta yym3508 := z.EncBinary() _ = yym3508 if false { } else if z.HasExtensions() && z.EncExt(yy3507) { } else { z.EncFallback(yy3507) } } else { r.EncodeNil() } } else { if yyq3505[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3509 := &x.ListMeta yym3510 := z.EncBinary() _ = yym3510 if false { } else if z.HasExtensions() && z.EncExt(yy3509) { } else { z.EncFallback(yy3509) } } } if yyr3505 || yy2arr3505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3512 := z.EncBinary() _ = yym3512 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 { yym3513 := z.EncBinary() _ = yym3513 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr3505 || yy2arr3505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3505[2] { yym3515 := z.EncBinary() _ = yym3515 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3505[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3516 := z.EncBinary() _ = yym3516 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3505 || yy2arr3505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3505[3] { yym3518 := z.EncBinary() _ = yym3518 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3505[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3519 := z.EncBinary() _ = yym3519 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3505 || yy2arr3505 { 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 yym3520 := z.DecBinary() _ = yym3520 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3521 := r.ContainerType() if yyct3521 == codecSelferValueTypeMap1234 { yyl3521 := r.ReadMapStart() if yyl3521 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3521, d) } } else if yyct3521 == codecSelferValueTypeArray1234 { yyl3521 := r.ReadArrayStart() if yyl3521 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3521, 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 yys3522Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3522Slc var yyhl3522 bool = l >= 0 for yyj3522 := 0; ; yyj3522++ { if yyhl3522 { if yyj3522 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3522Slc = r.DecodeBytes(yys3522Slc, true, true) yys3522 := string(yys3522Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3522 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3523 := &x.ListMeta yym3524 := z.DecBinary() _ = yym3524 if false { } else if z.HasExtensions() && z.DecExt(yyv3523) { } else { z.DecFallback(yyv3523, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3525 := &x.Items yym3526 := z.DecBinary() _ = yym3526 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3525), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3522) } // end switch yys3522 } // end for yyj3522 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 yyj3529 int var yyb3529 bool var yyhl3529 bool = l >= 0 yyj3529++ if yyhl3529 { yyb3529 = yyj3529 > l } else { yyb3529 = r.CheckBreak() } if yyb3529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3530 := &x.ListMeta yym3531 := z.DecBinary() _ = yym3531 if false { } else if z.HasExtensions() && z.DecExt(yyv3530) { } else { z.DecFallback(yyv3530, false) } } yyj3529++ if yyhl3529 { yyb3529 = yyj3529 > l } else { yyb3529 = r.CheckBreak() } if yyb3529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3532 := &x.Items yym3533 := z.DecBinary() _ = yym3533 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3532), d) } } yyj3529++ if yyhl3529 { yyb3529 = yyj3529 > l } else { yyb3529 = r.CheckBreak() } if yyb3529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3529++ if yyhl3529 { yyb3529 = yyj3529 > l } else { yyb3529 = r.CheckBreak() } if yyb3529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3529++ if yyhl3529 { yyb3529 = yyj3529 > l } else { yyb3529 = r.CheckBreak() } if yyb3529 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3529-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 { yym3536 := z.EncBinary() _ = yym3536 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3537 := !z.EncBinary() yy2arr3537 := z.EncBasicHandle().StructToArray var yyq3537 [5]bool _, _, _ = yysep3537, yyq3537, yy2arr3537 const yyr3537 bool = false yyq3537[0] = true yyq3537[1] = len(x.Data) != 0 yyq3537[2] = x.Type != "" yyq3537[3] = x.Kind != "" yyq3537[4] = x.APIVersion != "" var yynn3537 int if yyr3537 || yy2arr3537 { r.EncodeArrayStart(5) } else { yynn3537 = 0 for _, b := range yyq3537 { if b { yynn3537++ } } r.EncodeMapStart(yynn3537) yynn3537 = 0 } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[0] { yy3539 := &x.ObjectMeta yy3539.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3537[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3540 := &x.ObjectMeta yy3540.CodecEncodeSelf(e) } } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[1] { if x.Data == nil { r.EncodeNil() } else { yym3542 := z.EncBinary() _ = yym3542 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq3537[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3543 := z.EncBinary() _ = yym3543 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[2] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3537[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[3] { yym3546 := z.EncBinary() _ = yym3546 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3537[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3547 := z.EncBinary() _ = yym3547 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[4] { yym3549 := z.EncBinary() _ = yym3549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3537[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3550 := z.EncBinary() _ = yym3550 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3537 || yy2arr3537 { 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 yym3551 := z.DecBinary() _ = yym3551 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3552 := r.ContainerType() if yyct3552 == codecSelferValueTypeMap1234 { yyl3552 := r.ReadMapStart() if yyl3552 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3552, d) } } else if yyct3552 == codecSelferValueTypeArray1234 { yyl3552 := r.ReadArrayStart() if yyl3552 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3552, 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 yys3553Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3553Slc var yyhl3553 bool = l >= 0 for yyj3553 := 0; ; yyj3553++ { if yyhl3553 { if yyj3553 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3553Slc = r.DecodeBytes(yys3553Slc, true, true) yys3553 := string(yys3553Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3553 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3554 := &x.ObjectMeta yyv3554.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3555 := &x.Data yym3556 := z.DecBinary() _ = yym3556 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3555), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } 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()) } default: z.DecStructFieldNotFound(-1, yys3553) } // end switch yys3553 } // end for yyj3553 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 yyj3560 int var yyb3560 bool var yyhl3560 bool = l >= 0 yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3561 := &x.ObjectMeta yyv3561.CodecDecodeSelf(d) } yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3562 := &x.Data yym3563 := z.DecBinary() _ = yym3563 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3562), d) } } yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3560-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3567 := z.EncBinary() _ = yym3567 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 yym3568 := z.DecBinary() _ = yym3568 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 { yym3569 := z.EncBinary() _ = yym3569 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3570 := !z.EncBinary() yy2arr3570 := z.EncBasicHandle().StructToArray var yyq3570 [4]bool _, _, _ = yysep3570, yyq3570, yy2arr3570 const yyr3570 bool = false yyq3570[0] = true yyq3570[2] = x.Kind != "" yyq3570[3] = x.APIVersion != "" var yynn3570 int if yyr3570 || yy2arr3570 { r.EncodeArrayStart(4) } else { yynn3570 = 1 for _, b := range yyq3570 { if b { yynn3570++ } } r.EncodeMapStart(yynn3570) yynn3570 = 0 } if yyr3570 || yy2arr3570 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3570[0] { yy3572 := &x.ListMeta yym3573 := z.EncBinary() _ = yym3573 if false { } else if z.HasExtensions() && z.EncExt(yy3572) { } else { z.EncFallback(yy3572) } } else { r.EncodeNil() } } else { if yyq3570[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3574 := &x.ListMeta yym3575 := z.EncBinary() _ = yym3575 if false { } else if z.HasExtensions() && z.EncExt(yy3574) { } else { z.EncFallback(yy3574) } } } if yyr3570 || yy2arr3570 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3577 := z.EncBinary() _ = yym3577 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 { yym3578 := z.EncBinary() _ = yym3578 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr3570 || yy2arr3570 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3570[2] { yym3580 := z.EncBinary() _ = yym3580 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3570[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3581 := z.EncBinary() _ = yym3581 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3570 || yy2arr3570 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3570[3] { yym3583 := z.EncBinary() _ = yym3583 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3570[3] { 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 yyr3570 || yy2arr3570 { 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 yym3585 := z.DecBinary() _ = yym3585 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3586 := r.ContainerType() if yyct3586 == codecSelferValueTypeMap1234 { yyl3586 := r.ReadMapStart() if yyl3586 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3586, d) } } else if yyct3586 == codecSelferValueTypeArray1234 { yyl3586 := r.ReadArrayStart() if yyl3586 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3586, 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 yys3587Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3587Slc var yyhl3587 bool = l >= 0 for yyj3587 := 0; ; yyj3587++ { if yyhl3587 { if yyj3587 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3587Slc = r.DecodeBytes(yys3587Slc, true, true) yys3587 := string(yys3587Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3587 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3588 := &x.ListMeta yym3589 := z.DecBinary() _ = yym3589 if false { } else if z.HasExtensions() && z.DecExt(yyv3588) { } else { z.DecFallback(yyv3588, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3590 := &x.Items yym3591 := z.DecBinary() _ = yym3591 if false { } else { h.decSliceSecret((*[]Secret)(yyv3590), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3587) } // end switch yys3587 } // end for yyj3587 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 yyj3594 int var yyb3594 bool var yyhl3594 bool = l >= 0 yyj3594++ if yyhl3594 { yyb3594 = yyj3594 > l } else { yyb3594 = r.CheckBreak() } if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3595 := &x.ListMeta yym3596 := z.DecBinary() _ = yym3596 if false { } else if z.HasExtensions() && z.DecExt(yyv3595) { } else { z.DecFallback(yyv3595, false) } } yyj3594++ if yyhl3594 { yyb3594 = yyj3594 > l } else { yyb3594 = r.CheckBreak() } if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3597 := &x.Items yym3598 := z.DecBinary() _ = yym3598 if false { } else { h.decSliceSecret((*[]Secret)(yyv3597), d) } } yyj3594++ if yyhl3594 { yyb3594 = yyj3594 > l } else { yyb3594 = r.CheckBreak() } if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3594++ if yyhl3594 { yyb3594 = yyj3594 > l } else { yyb3594 = r.CheckBreak() } if yyb3594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3594++ if yyhl3594 { yyb3594 = yyj3594 > l } else { yyb3594 = r.CheckBreak() } if yyb3594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3594-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 { yym3601 := z.EncBinary() _ = yym3601 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3602 := !z.EncBinary() yy2arr3602 := z.EncBasicHandle().StructToArray var yyq3602 [4]bool _, _, _ = yysep3602, yyq3602, yy2arr3602 const yyr3602 bool = false yyq3602[0] = true yyq3602[1] = len(x.Data) != 0 yyq3602[2] = x.Kind != "" yyq3602[3] = x.APIVersion != "" var yynn3602 int if yyr3602 || yy2arr3602 { r.EncodeArrayStart(4) } else { yynn3602 = 0 for _, b := range yyq3602 { if b { yynn3602++ } } r.EncodeMapStart(yynn3602) yynn3602 = 0 } if yyr3602 || yy2arr3602 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3602[0] { yy3604 := &x.ObjectMeta yy3604.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3602[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3605 := &x.ObjectMeta yy3605.CodecEncodeSelf(e) } } if yyr3602 || yy2arr3602 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3602[1] { if x.Data == nil { r.EncodeNil() } else { yym3607 := z.EncBinary() _ = yym3607 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } else { r.EncodeNil() } } else { if yyq3602[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3608 := z.EncBinary() _ = yym3608 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } } if yyr3602 || yy2arr3602 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3602[2] { yym3610 := z.EncBinary() _ = yym3610 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3602[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3611 := z.EncBinary() _ = yym3611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3602 || yy2arr3602 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3602[3] { yym3613 := z.EncBinary() _ = yym3613 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3602[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3614 := z.EncBinary() _ = yym3614 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3602 || yy2arr3602 { 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 yym3615 := z.DecBinary() _ = yym3615 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3616 := r.ContainerType() if yyct3616 == codecSelferValueTypeMap1234 { yyl3616 := r.ReadMapStart() if yyl3616 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3616, d) } } else if yyct3616 == codecSelferValueTypeArray1234 { yyl3616 := r.ReadArrayStart() if yyl3616 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3616, 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 yys3617Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3617Slc var yyhl3617 bool = l >= 0 for yyj3617 := 0; ; yyj3617++ { if yyhl3617 { if yyj3617 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3617Slc = r.DecodeBytes(yys3617Slc, true, true) yys3617 := string(yys3617Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3617 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3618 := &x.ObjectMeta yyv3618.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3619 := &x.Data yym3620 := z.DecBinary() _ = yym3620 if false { } else { z.F.DecMapStringStringX(yyv3619, false, d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3617) } // end switch yys3617 } // end for yyj3617 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 yyj3623 int var yyb3623 bool var yyhl3623 bool = l >= 0 yyj3623++ if yyhl3623 { yyb3623 = yyj3623 > l } else { yyb3623 = r.CheckBreak() } if yyb3623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3624 := &x.ObjectMeta yyv3624.CodecDecodeSelf(d) } yyj3623++ if yyhl3623 { yyb3623 = yyj3623 > l } else { yyb3623 = r.CheckBreak() } if yyb3623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3625 := &x.Data yym3626 := z.DecBinary() _ = yym3626 if false { } else { z.F.DecMapStringStringX(yyv3625, false, d) } } yyj3623++ if yyhl3623 { yyb3623 = yyj3623 > l } else { yyb3623 = r.CheckBreak() } if yyb3623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3623++ if yyhl3623 { yyb3623 = yyj3623 > l } else { yyb3623 = r.CheckBreak() } if yyb3623 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3623++ if yyhl3623 { yyb3623 = yyj3623 > l } else { yyb3623 = r.CheckBreak() } if yyb3623 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3623-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 { yym3629 := z.EncBinary() _ = yym3629 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3630 := !z.EncBinary() yy2arr3630 := z.EncBasicHandle().StructToArray var yyq3630 [4]bool _, _, _ = yysep3630, yyq3630, yy2arr3630 const yyr3630 bool = false yyq3630[0] = true yyq3630[1] = len(x.Items) != 0 yyq3630[2] = x.Kind != "" yyq3630[3] = x.APIVersion != "" var yynn3630 int if yyr3630 || yy2arr3630 { r.EncodeArrayStart(4) } else { yynn3630 = 0 for _, b := range yyq3630 { if b { yynn3630++ } } r.EncodeMapStart(yynn3630) yynn3630 = 0 } if yyr3630 || yy2arr3630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3630[0] { yy3632 := &x.ListMeta yym3633 := z.EncBinary() _ = yym3633 if false { } else if z.HasExtensions() && z.EncExt(yy3632) { } else { z.EncFallback(yy3632) } } else { r.EncodeNil() } } else { if yyq3630[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3634 := &x.ListMeta yym3635 := z.EncBinary() _ = yym3635 if false { } else if z.HasExtensions() && z.EncExt(yy3634) { } else { z.EncFallback(yy3634) } } } if yyr3630 || yy2arr3630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3630[1] { if x.Items == nil { r.EncodeNil() } else { yym3637 := z.EncBinary() _ = yym3637 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq3630[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3638 := z.EncBinary() _ = yym3638 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } } if yyr3630 || yy2arr3630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3630[2] { yym3640 := z.EncBinary() _ = yym3640 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3630[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3641 := z.EncBinary() _ = yym3641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3630 || yy2arr3630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3630[3] { yym3643 := z.EncBinary() _ = yym3643 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3630[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3644 := z.EncBinary() _ = yym3644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3630 || yy2arr3630 { 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 yym3645 := z.DecBinary() _ = yym3645 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3646 := r.ContainerType() if yyct3646 == codecSelferValueTypeMap1234 { yyl3646 := r.ReadMapStart() if yyl3646 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3646, d) } } else if yyct3646 == codecSelferValueTypeArray1234 { yyl3646 := r.ReadArrayStart() if yyl3646 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3646, 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 yys3647Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3647Slc var yyhl3647 bool = l >= 0 for yyj3647 := 0; ; yyj3647++ { if yyhl3647 { if yyj3647 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3647Slc = r.DecodeBytes(yys3647Slc, true, true) yys3647 := string(yys3647Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3647 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3648 := &x.ListMeta yym3649 := z.DecBinary() _ = yym3649 if false { } else if z.HasExtensions() && z.DecExt(yyv3648) { } else { z.DecFallback(yyv3648, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3650 := &x.Items yym3651 := z.DecBinary() _ = yym3651 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv3650), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3647) } // end switch yys3647 } // end for yyj3647 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 yyj3654 int var yyb3654 bool var yyhl3654 bool = l >= 0 yyj3654++ if yyhl3654 { yyb3654 = yyj3654 > l } else { yyb3654 = r.CheckBreak() } if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3655 := &x.ListMeta yym3656 := z.DecBinary() _ = yym3656 if false { } else if z.HasExtensions() && z.DecExt(yyv3655) { } else { z.DecFallback(yyv3655, false) } } yyj3654++ if yyhl3654 { yyb3654 = yyj3654 > l } else { yyb3654 = r.CheckBreak() } if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3657 := &x.Items yym3658 := z.DecBinary() _ = yym3658 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv3657), d) } } yyj3654++ if yyhl3654 { yyb3654 = yyj3654 > l } else { yyb3654 = r.CheckBreak() } if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3654++ if yyhl3654 { yyb3654 = yyj3654 > l } else { yyb3654 = r.CheckBreak() } if yyb3654 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3654++ if yyhl3654 { yyb3654 = yyj3654 > l } else { yyb3654 = r.CheckBreak() } if yyb3654 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3654-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3661 := z.EncBinary() _ = yym3661 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 yym3662 := z.DecBinary() _ = yym3662 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 yym3663 := z.EncBinary() _ = yym3663 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 yym3664 := z.DecBinary() _ = yym3664 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 { yym3665 := z.EncBinary() _ = yym3665 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3666 := !z.EncBinary() yy2arr3666 := z.EncBasicHandle().StructToArray var yyq3666 [4]bool _, _, _ = yysep3666, yyq3666, yy2arr3666 const yyr3666 bool = false yyq3666[2] = x.Message != "" yyq3666[3] = x.Error != "" var yynn3666 int if yyr3666 || yy2arr3666 { r.EncodeArrayStart(4) } else { yynn3666 = 2 for _, b := range yyq3666 { if b { yynn3666++ } } r.EncodeMapStart(yynn3666) yynn3666 = 0 } if yyr3666 || yy2arr3666 { 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 yyr3666 || yy2arr3666 { 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 yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3666[2] { yym3670 := z.EncBinary() _ = yym3670 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3666[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3671 := z.EncBinary() _ = yym3671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3666[3] { yym3673 := z.EncBinary() _ = yym3673 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3666[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3674 := z.EncBinary() _ = yym3674 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr3666 || yy2arr3666 { 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 yym3675 := z.DecBinary() _ = yym3675 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3676 := r.ContainerType() if yyct3676 == codecSelferValueTypeMap1234 { yyl3676 := r.ReadMapStart() if yyl3676 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3676, d) } } else if yyct3676 == codecSelferValueTypeArray1234 { yyl3676 := r.ReadArrayStart() if yyl3676 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3676, 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 yys3677Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3677Slc var yyhl3677 bool = l >= 0 for yyj3677 := 0; ; yyj3677++ { if yyhl3677 { if yyj3677 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3677Slc = r.DecodeBytes(yys3677Slc, true, true) yys3677 := string(yys3677Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3677 { 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, yys3677) } // end switch yys3677 } // end for yyj3677 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 yyj3682 int var yyb3682 bool var yyhl3682 bool = l >= 0 yyj3682++ if yyhl3682 { yyb3682 = yyj3682 > l } else { yyb3682 = r.CheckBreak() } if yyb3682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj3682++ if yyhl3682 { yyb3682 = yyj3682 > l } else { yyb3682 = r.CheckBreak() } if yyb3682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3682++ if yyhl3682 { yyb3682 = yyj3682 > l } else { yyb3682 = r.CheckBreak() } if yyb3682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3682++ if yyhl3682 { yyb3682 = yyj3682 > l } else { yyb3682 = r.CheckBreak() } if yyb3682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj3682++ if yyhl3682 { yyb3682 = yyj3682 > l } else { yyb3682 = r.CheckBreak() } if yyb3682 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3682-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 { yym3687 := z.EncBinary() _ = yym3687 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3688 := !z.EncBinary() yy2arr3688 := z.EncBasicHandle().StructToArray var yyq3688 [4]bool _, _, _ = yysep3688, yyq3688, yy2arr3688 const yyr3688 bool = false yyq3688[0] = true yyq3688[1] = len(x.Conditions) != 0 yyq3688[2] = x.Kind != "" yyq3688[3] = x.APIVersion != "" var yynn3688 int if yyr3688 || yy2arr3688 { r.EncodeArrayStart(4) } else { yynn3688 = 0 for _, b := range yyq3688 { if b { yynn3688++ } } r.EncodeMapStart(yynn3688) yynn3688 = 0 } if yyr3688 || yy2arr3688 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3688[0] { yy3690 := &x.ObjectMeta yy3690.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3688[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3691 := &x.ObjectMeta yy3691.CodecEncodeSelf(e) } } if yyr3688 || yy2arr3688 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3688[1] { if x.Conditions == nil { r.EncodeNil() } else { yym3693 := z.EncBinary() _ = yym3693 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq3688[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym3694 := z.EncBinary() _ = yym3694 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr3688 || yy2arr3688 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3688[2] { yym3696 := z.EncBinary() _ = yym3696 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3688[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3697 := z.EncBinary() _ = yym3697 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3688 || yy2arr3688 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3688[3] { yym3699 := z.EncBinary() _ = yym3699 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3688[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3700 := z.EncBinary() _ = yym3700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3688 || yy2arr3688 { 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 yym3701 := z.DecBinary() _ = yym3701 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3702 := r.ContainerType() if yyct3702 == codecSelferValueTypeMap1234 { yyl3702 := r.ReadMapStart() if yyl3702 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3702, d) } } else if yyct3702 == codecSelferValueTypeArray1234 { yyl3702 := r.ReadArrayStart() if yyl3702 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3702, 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 yys3703Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3703Slc var yyhl3703 bool = l >= 0 for yyj3703 := 0; ; yyj3703++ { if yyhl3703 { if yyj3703 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3703Slc = r.DecodeBytes(yys3703Slc, true, true) yys3703 := string(yys3703Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3703 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3704 := &x.ObjectMeta yyv3704.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3705 := &x.Conditions yym3706 := z.DecBinary() _ = yym3706 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3705), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3703) } // end switch yys3703 } // end for yyj3703 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 yyj3709 int var yyb3709 bool var yyhl3709 bool = l >= 0 yyj3709++ if yyhl3709 { yyb3709 = yyj3709 > l } else { yyb3709 = r.CheckBreak() } if yyb3709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3710 := &x.ObjectMeta yyv3710.CodecDecodeSelf(d) } yyj3709++ if yyhl3709 { yyb3709 = yyj3709 > l } else { yyb3709 = r.CheckBreak() } if yyb3709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3711 := &x.Conditions yym3712 := z.DecBinary() _ = yym3712 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3711), d) } } yyj3709++ if yyhl3709 { yyb3709 = yyj3709 > l } else { yyb3709 = r.CheckBreak() } if yyb3709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3709++ if yyhl3709 { yyb3709 = yyj3709 > l } else { yyb3709 = r.CheckBreak() } if yyb3709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3709++ if yyhl3709 { yyb3709 = yyj3709 > l } else { yyb3709 = r.CheckBreak() } if yyb3709 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3709-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 { yym3715 := z.EncBinary() _ = yym3715 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3716 := !z.EncBinary() yy2arr3716 := z.EncBasicHandle().StructToArray var yyq3716 [4]bool _, _, _ = yysep3716, yyq3716, yy2arr3716 const yyr3716 bool = false yyq3716[0] = true yyq3716[2] = x.Kind != "" yyq3716[3] = x.APIVersion != "" var yynn3716 int if yyr3716 || yy2arr3716 { r.EncodeArrayStart(4) } else { yynn3716 = 1 for _, b := range yyq3716 { if b { yynn3716++ } } r.EncodeMapStart(yynn3716) yynn3716 = 0 } if yyr3716 || yy2arr3716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3716[0] { yy3718 := &x.ListMeta yym3719 := z.EncBinary() _ = yym3719 if false { } else if z.HasExtensions() && z.EncExt(yy3718) { } else { z.EncFallback(yy3718) } } else { r.EncodeNil() } } else { if yyq3716[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3720 := &x.ListMeta yym3721 := z.EncBinary() _ = yym3721 if false { } else if z.HasExtensions() && z.EncExt(yy3720) { } else { z.EncFallback(yy3720) } } } if yyr3716 || yy2arr3716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3723 := z.EncBinary() _ = yym3723 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 { yym3724 := z.EncBinary() _ = yym3724 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr3716 || yy2arr3716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3716[2] { yym3726 := z.EncBinary() _ = yym3726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3716[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3727 := z.EncBinary() _ = yym3727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3716 || yy2arr3716 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3716[3] { yym3729 := z.EncBinary() _ = yym3729 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3716[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3730 := z.EncBinary() _ = yym3730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3716 || yy2arr3716 { 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 yym3731 := z.DecBinary() _ = yym3731 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3732 := r.ContainerType() if yyct3732 == codecSelferValueTypeMap1234 { yyl3732 := r.ReadMapStart() if yyl3732 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3732, d) } } else if yyct3732 == codecSelferValueTypeArray1234 { yyl3732 := r.ReadArrayStart() if yyl3732 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3732, 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 yys3733Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3733Slc var yyhl3733 bool = l >= 0 for yyj3733 := 0; ; yyj3733++ { if yyhl3733 { if yyj3733 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3733Slc = r.DecodeBytes(yys3733Slc, true, true) yys3733 := string(yys3733Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3733 { case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3734 := &x.ListMeta yym3735 := z.DecBinary() _ = yym3735 if false { } else if z.HasExtensions() && z.DecExt(yyv3734) { } else { z.DecFallback(yyv3734, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3736 := &x.Items yym3737 := z.DecBinary() _ = yym3737 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3736), d) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3733) } // end switch yys3733 } // end for yyj3733 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 yyj3740 int var yyb3740 bool var yyhl3740 bool = l >= 0 yyj3740++ if yyhl3740 { yyb3740 = yyj3740 > l } else { yyb3740 = r.CheckBreak() } if yyb3740 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3741 := &x.ListMeta yym3742 := z.DecBinary() _ = yym3742 if false { } else if z.HasExtensions() && z.DecExt(yyv3741) { } else { z.DecFallback(yyv3741, false) } } yyj3740++ if yyhl3740 { yyb3740 = yyj3740 > l } else { yyb3740 = r.CheckBreak() } if yyb3740 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3743 := &x.Items yym3744 := z.DecBinary() _ = yym3744 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3743), d) } } yyj3740++ if yyhl3740 { yyb3740 = yyj3740 > l } else { yyb3740 = r.CheckBreak() } if yyb3740 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3740++ if yyhl3740 { yyb3740 = yyj3740 > l } else { yyb3740 = r.CheckBreak() } if yyb3740 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3740++ if yyhl3740 { yyb3740 = yyj3740 > l } else { yyb3740 = r.CheckBreak() } if yyb3740 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3740-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 { yym3747 := z.EncBinary() _ = yym3747 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3748 := !z.EncBinary() yy2arr3748 := z.EncBasicHandle().StructToArray var yyq3748 [5]bool _, _, _ = yysep3748, yyq3748, yy2arr3748 const yyr3748 bool = false yyq3748[0] = x.Capabilities != nil yyq3748[1] = x.Privileged != nil yyq3748[2] = x.SELinuxOptions != nil yyq3748[3] = x.RunAsUser != nil yyq3748[4] = x.RunAsNonRoot != nil var yynn3748 int if yyr3748 || yy2arr3748 { r.EncodeArrayStart(5) } else { yynn3748 = 0 for _, b := range yyq3748 { if b { yynn3748++ } } r.EncodeMapStart(yynn3748) yynn3748 = 0 } if yyr3748 || yy2arr3748 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3748[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3748[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 yyr3748 || yy2arr3748 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3748[1] { if x.Privileged == nil { r.EncodeNil() } else { yy3751 := *x.Privileged yym3752 := z.EncBinary() _ = yym3752 if false { } else { r.EncodeBool(bool(yy3751)) } } } else { r.EncodeNil() } } else { if yyq3748[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy3753 := *x.Privileged yym3754 := z.EncBinary() _ = yym3754 if false { } else { r.EncodeBool(bool(yy3753)) } } } } if yyr3748 || yy2arr3748 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3748[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3748[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 yyr3748 || yy2arr3748 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3748[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy3757 := *x.RunAsUser yym3758 := z.EncBinary() _ = yym3758 if false { } else { r.EncodeInt(int64(yy3757)) } } } else { r.EncodeNil() } } else { if yyq3748[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy3759 := *x.RunAsUser yym3760 := z.EncBinary() _ = yym3760 if false { } else { r.EncodeInt(int64(yy3759)) } } } } if yyr3748 || yy2arr3748 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3748[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3762 := *x.RunAsNonRoot yym3763 := z.EncBinary() _ = yym3763 if false { } else { r.EncodeBool(bool(yy3762)) } } } else { r.EncodeNil() } } else { if yyq3748[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3764 := *x.RunAsNonRoot yym3765 := z.EncBinary() _ = yym3765 if false { } else { r.EncodeBool(bool(yy3764)) } } } } if yyr3748 || yy2arr3748 { 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 yym3766 := z.DecBinary() _ = yym3766 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3767 := r.ContainerType() if yyct3767 == codecSelferValueTypeMap1234 { yyl3767 := r.ReadMapStart() if yyl3767 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3767, d) } } else if yyct3767 == codecSelferValueTypeArray1234 { yyl3767 := r.ReadArrayStart() if yyl3767 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3767, 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 yys3768Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3768Slc var yyhl3768 bool = l >= 0 for yyj3768 := 0; ; yyj3768++ { if yyhl3768 { if yyj3768 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3768Slc = r.DecodeBytes(yys3768Slc, true, true) yys3768 := string(yys3768Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3768 { 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) } yym3771 := z.DecBinary() _ = yym3771 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) } yym3774 := z.DecBinary() _ = yym3774 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) } yym3776 := z.DecBinary() _ = yym3776 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3768) } // end switch yys3768 } // end for yyj3768 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 yyj3777 int var yyb3777 bool var yyhl3777 bool = l >= 0 yyj3777++ if yyhl3777 { yyb3777 = yyj3777 > l } else { yyb3777 = r.CheckBreak() } if yyb3777 { 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) } yyj3777++ if yyhl3777 { yyb3777 = yyj3777 > l } else { yyb3777 = r.CheckBreak() } if yyb3777 { 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) } yym3780 := z.DecBinary() _ = yym3780 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj3777++ if yyhl3777 { yyb3777 = yyj3777 > l } else { yyb3777 = r.CheckBreak() } if yyb3777 { 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) } yyj3777++ if yyhl3777 { yyb3777 = yyj3777 > l } else { yyb3777 = r.CheckBreak() } if yyb3777 { 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) } yym3783 := z.DecBinary() _ = yym3783 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj3777++ if yyhl3777 { yyb3777 = yyj3777 > l } else { yyb3777 = r.CheckBreak() } if yyb3777 { 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) } yym3785 := z.DecBinary() _ = yym3785 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } for { yyj3777++ if yyhl3777 { yyb3777 = yyj3777 > l } else { yyb3777 = r.CheckBreak() } if yyb3777 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3777-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 { yym3786 := z.EncBinary() _ = yym3786 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3787 := !z.EncBinary() yy2arr3787 := z.EncBasicHandle().StructToArray var yyq3787 [4]bool _, _, _ = yysep3787, yyq3787, yy2arr3787 const yyr3787 bool = false yyq3787[0] = x.User != "" yyq3787[1] = x.Role != "" yyq3787[2] = x.Type != "" yyq3787[3] = x.Level != "" var yynn3787 int if yyr3787 || yy2arr3787 { r.EncodeArrayStart(4) } else { yynn3787 = 0 for _, b := range yyq3787 { if b { yynn3787++ } } r.EncodeMapStart(yynn3787) yynn3787 = 0 } if yyr3787 || yy2arr3787 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3787[0] { yym3789 := z.EncBinary() _ = yym3789 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3787[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3790 := z.EncBinary() _ = yym3790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr3787 || yy2arr3787 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3787[1] { yym3792 := z.EncBinary() _ = yym3792 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3787[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3793 := z.EncBinary() _ = yym3793 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr3787 || yy2arr3787 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3787[2] { yym3795 := z.EncBinary() _ = yym3795 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3787[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3796 := z.EncBinary() _ = yym3796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3787 || yy2arr3787 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3787[3] { yym3798 := z.EncBinary() _ = yym3798 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3787[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3799 := z.EncBinary() _ = yym3799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr3787 || yy2arr3787 { 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 yym3800 := z.DecBinary() _ = yym3800 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3801 := r.ContainerType() if yyct3801 == codecSelferValueTypeMap1234 { yyl3801 := r.ReadMapStart() if yyl3801 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3801, d) } } else if yyct3801 == codecSelferValueTypeArray1234 { yyl3801 := r.ReadArrayStart() if yyl3801 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3801, 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 yys3802Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3802Slc var yyhl3802 bool = l >= 0 for yyj3802 := 0; ; yyj3802++ { if yyhl3802 { if yyj3802 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3802Slc = r.DecodeBytes(yys3802Slc, true, true) yys3802 := string(yys3802Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3802 { 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, yys3802) } // end switch yys3802 } // end for yyj3802 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 yyj3807 int var yyb3807 bool var yyhl3807 bool = l >= 0 yyj3807++ if yyhl3807 { yyb3807 = yyj3807 > l } else { yyb3807 = r.CheckBreak() } if yyb3807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj3807++ if yyhl3807 { yyb3807 = yyj3807 > l } else { yyb3807 = r.CheckBreak() } if yyb3807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj3807++ if yyhl3807 { yyb3807 = yyj3807 > l } else { yyb3807 = r.CheckBreak() } if yyb3807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj3807++ if yyhl3807 { yyb3807 = yyj3807 > l } else { yyb3807 = r.CheckBreak() } if yyb3807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj3807++ if yyhl3807 { yyb3807 = yyj3807 > l } else { yyb3807 = r.CheckBreak() } if yyb3807 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3807-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 { yym3812 := z.EncBinary() _ = yym3812 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3813 := !z.EncBinary() yy2arr3813 := z.EncBasicHandle().StructToArray var yyq3813 [5]bool _, _, _ = yysep3813, yyq3813, yy2arr3813 const yyr3813 bool = false yyq3813[0] = true yyq3813[3] = x.Kind != "" yyq3813[4] = x.APIVersion != "" var yynn3813 int if yyr3813 || yy2arr3813 { r.EncodeArrayStart(5) } else { yynn3813 = 2 for _, b := range yyq3813 { if b { yynn3813++ } } r.EncodeMapStart(yynn3813) yynn3813 = 0 } if yyr3813 || yy2arr3813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3813[0] { yy3815 := &x.ObjectMeta yy3815.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3813[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3816 := &x.ObjectMeta yy3816.CodecEncodeSelf(e) } } if yyr3813 || yy2arr3813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3818 := z.EncBinary() _ = yym3818 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) yym3819 := z.EncBinary() _ = yym3819 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr3813 || yy2arr3813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym3821 := z.EncBinary() _ = yym3821 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 { yym3822 := z.EncBinary() _ = yym3822 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr3813 || yy2arr3813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3813[3] { yym3824 := z.EncBinary() _ = yym3824 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3813[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3825 := z.EncBinary() _ = yym3825 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3813 || yy2arr3813 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3813[4] { yym3827 := z.EncBinary() _ = yym3827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3813[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3828 := z.EncBinary() _ = yym3828 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3813 || yy2arr3813 { 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 yym3829 := z.DecBinary() _ = yym3829 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3830 := r.ContainerType() if yyct3830 == codecSelferValueTypeMap1234 { yyl3830 := r.ReadMapStart() if yyl3830 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3830, d) } } else if yyct3830 == codecSelferValueTypeArray1234 { yyl3830 := r.ReadArrayStart() if yyl3830 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3830, 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 yys3831Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3831Slc var yyhl3831 bool = l >= 0 for yyj3831 := 0; ; yyj3831++ { if yyhl3831 { if yyj3831 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3831Slc = r.DecodeBytes(yys3831Slc, true, true) yys3831 := string(yys3831Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3831 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3832 := &x.ObjectMeta yyv3832.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3834 := &x.Data yym3835 := z.DecBinary() _ = yym3835 if false { } else { *yyv3834 = r.DecodeBytes(*(*[]byte)(yyv3834), false, false) } } 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()) } default: z.DecStructFieldNotFound(-1, yys3831) } // end switch yys3831 } // end for yyj3831 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 yyj3838 int var yyb3838 bool var yyhl3838 bool = l >= 0 yyj3838++ if yyhl3838 { yyb3838 = yyj3838 > l } else { yyb3838 = r.CheckBreak() } if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3839 := &x.ObjectMeta yyv3839.CodecDecodeSelf(d) } yyj3838++ if yyhl3838 { yyb3838 = yyj3838 > l } else { yyb3838 = r.CheckBreak() } if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj3838++ if yyhl3838 { yyb3838 = yyj3838 > l } else { yyb3838 = r.CheckBreak() } if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3841 := &x.Data yym3842 := z.DecBinary() _ = yym3842 if false { } else { *yyv3841 = r.DecodeBytes(*(*[]byte)(yyv3841), false, false) } } yyj3838++ if yyhl3838 { yyb3838 = yyj3838 > l } else { yyb3838 = r.CheckBreak() } if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3838++ if yyhl3838 { yyb3838 = yyj3838 > l } else { yyb3838 = r.CheckBreak() } if yyb3838 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } for { yyj3838++ if yyhl3838 { yyb3838 = yyj3838 > l } else { yyb3838 = r.CheckBreak() } if yyb3838 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3838-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } 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 _, yyv3845 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3845.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 yyv3846 := *v yyh3846, yyl3846 := z.DecSliceHelperStart() var yyc3846 bool if yyl3846 == 0 { if yyv3846 == nil { yyv3846 = []PersistentVolumeAccessMode{} yyc3846 = true } else if len(yyv3846) != 0 { yyv3846 = yyv3846[:0] yyc3846 = true } } else if yyl3846 > 0 { var yyrr3846, yyrl3846 int var yyrt3846 bool if yyl3846 > cap(yyv3846) { yyrl3846, yyrt3846 = z.DecInferLen(yyl3846, z.DecBasicHandle().MaxInitLen, 16) if yyrt3846 { if yyrl3846 <= cap(yyv3846) { yyv3846 = yyv3846[:yyrl3846] } else { yyv3846 = make([]PersistentVolumeAccessMode, yyrl3846) } } else { yyv3846 = make([]PersistentVolumeAccessMode, yyrl3846) } yyc3846 = true yyrr3846 = len(yyv3846) } else if yyl3846 != len(yyv3846) { yyv3846 = yyv3846[:yyl3846] yyc3846 = true } yyj3846 := 0 for ; yyj3846 < yyrr3846; yyj3846++ { yyh3846.ElemContainerState(yyj3846) if r.TryDecodeAsNil() { yyv3846[yyj3846] = "" } else { yyv3846[yyj3846] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt3846 { for ; yyj3846 < yyl3846; yyj3846++ { yyv3846 = append(yyv3846, "") yyh3846.ElemContainerState(yyj3846) if r.TryDecodeAsNil() { yyv3846[yyj3846] = "" } else { yyv3846[yyj3846] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj3846 := 0 for ; !r.CheckBreak(); yyj3846++ { if yyj3846 >= len(yyv3846) { yyv3846 = append(yyv3846, "") // var yyz3846 PersistentVolumeAccessMode yyc3846 = true } yyh3846.ElemContainerState(yyj3846) if yyj3846 < len(yyv3846) { if r.TryDecodeAsNil() { yyv3846[yyj3846] = "" } else { yyv3846[yyj3846] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3846 < len(yyv3846) { yyv3846 = yyv3846[:yyj3846] yyc3846 = true } else if yyj3846 == 0 && yyv3846 == nil { yyv3846 = []PersistentVolumeAccessMode{} yyc3846 = true } } yyh3846.End() if yyc3846 { *v = yyv3846 } } 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 _, yyv3850 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3851 := &yyv3850 yy3851.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 yyv3852 := *v yyh3852, yyl3852 := z.DecSliceHelperStart() var yyc3852 bool if yyl3852 == 0 { if yyv3852 == nil { yyv3852 = []PersistentVolume{} yyc3852 = true } else if len(yyv3852) != 0 { yyv3852 = yyv3852[:0] yyc3852 = true } } else if yyl3852 > 0 { var yyrr3852, yyrl3852 int var yyrt3852 bool if yyl3852 > cap(yyv3852) { yyrg3852 := len(yyv3852) > 0 yyv23852 := yyv3852 yyrl3852, yyrt3852 = z.DecInferLen(yyl3852, z.DecBasicHandle().MaxInitLen, 400) if yyrt3852 { if yyrl3852 <= cap(yyv3852) { yyv3852 = yyv3852[:yyrl3852] } else { yyv3852 = make([]PersistentVolume, yyrl3852) } } else { yyv3852 = make([]PersistentVolume, yyrl3852) } yyc3852 = true yyrr3852 = len(yyv3852) if yyrg3852 { copy(yyv3852, yyv23852) } } else if yyl3852 != len(yyv3852) { yyv3852 = yyv3852[:yyl3852] yyc3852 = true } yyj3852 := 0 for ; yyj3852 < yyrr3852; yyj3852++ { yyh3852.ElemContainerState(yyj3852) if r.TryDecodeAsNil() { yyv3852[yyj3852] = PersistentVolume{} } else { yyv3853 := &yyv3852[yyj3852] yyv3853.CodecDecodeSelf(d) } } if yyrt3852 { for ; yyj3852 < yyl3852; yyj3852++ { yyv3852 = append(yyv3852, PersistentVolume{}) yyh3852.ElemContainerState(yyj3852) if r.TryDecodeAsNil() { yyv3852[yyj3852] = PersistentVolume{} } else { yyv3854 := &yyv3852[yyj3852] yyv3854.CodecDecodeSelf(d) } } } } else { yyj3852 := 0 for ; !r.CheckBreak(); yyj3852++ { if yyj3852 >= len(yyv3852) { yyv3852 = append(yyv3852, PersistentVolume{}) // var yyz3852 PersistentVolume yyc3852 = true } yyh3852.ElemContainerState(yyj3852) if yyj3852 < len(yyv3852) { if r.TryDecodeAsNil() { yyv3852[yyj3852] = PersistentVolume{} } else { yyv3855 := &yyv3852[yyj3852] yyv3855.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3852 < len(yyv3852) { yyv3852 = yyv3852[:yyj3852] yyc3852 = true } else if yyj3852 == 0 && yyv3852 == nil { yyv3852 = []PersistentVolume{} yyc3852 = true } } yyh3852.End() if yyc3852 { *v = yyv3852 } } 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 _, yyv3856 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3857 := &yyv3856 yy3857.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 yyv3858 := *v yyh3858, yyl3858 := z.DecSliceHelperStart() var yyc3858 bool if yyl3858 == 0 { if yyv3858 == nil { yyv3858 = []PersistentVolumeClaim{} yyc3858 = true } else if len(yyv3858) != 0 { yyv3858 = yyv3858[:0] yyc3858 = true } } else if yyl3858 > 0 { var yyrr3858, yyrl3858 int var yyrt3858 bool if yyl3858 > cap(yyv3858) { yyrg3858 := len(yyv3858) > 0 yyv23858 := yyv3858 yyrl3858, yyrt3858 = z.DecInferLen(yyl3858, z.DecBasicHandle().MaxInitLen, 296) if yyrt3858 { if yyrl3858 <= cap(yyv3858) { yyv3858 = yyv3858[:yyrl3858] } else { yyv3858 = make([]PersistentVolumeClaim, yyrl3858) } } else { yyv3858 = make([]PersistentVolumeClaim, yyrl3858) } yyc3858 = true yyrr3858 = len(yyv3858) if yyrg3858 { copy(yyv3858, yyv23858) } } else if yyl3858 != len(yyv3858) { yyv3858 = yyv3858[:yyl3858] yyc3858 = true } yyj3858 := 0 for ; yyj3858 < yyrr3858; yyj3858++ { yyh3858.ElemContainerState(yyj3858) if r.TryDecodeAsNil() { yyv3858[yyj3858] = PersistentVolumeClaim{} } else { yyv3859 := &yyv3858[yyj3858] yyv3859.CodecDecodeSelf(d) } } if yyrt3858 { for ; yyj3858 < yyl3858; yyj3858++ { yyv3858 = append(yyv3858, PersistentVolumeClaim{}) yyh3858.ElemContainerState(yyj3858) if r.TryDecodeAsNil() { yyv3858[yyj3858] = PersistentVolumeClaim{} } else { yyv3860 := &yyv3858[yyj3858] yyv3860.CodecDecodeSelf(d) } } } } else { yyj3858 := 0 for ; !r.CheckBreak(); yyj3858++ { if yyj3858 >= len(yyv3858) { yyv3858 = append(yyv3858, PersistentVolumeClaim{}) // var yyz3858 PersistentVolumeClaim yyc3858 = true } yyh3858.ElemContainerState(yyj3858) if yyj3858 < len(yyv3858) { if r.TryDecodeAsNil() { yyv3858[yyj3858] = PersistentVolumeClaim{} } else { yyv3861 := &yyv3858[yyj3858] yyv3861.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3858 < len(yyv3858) { yyv3858 = yyv3858[:yyj3858] yyc3858 = true } else if yyj3858 == 0 && yyv3858 == nil { yyv3858 = []PersistentVolumeClaim{} yyc3858 = true } } yyh3858.End() if yyc3858 { *v = yyv3858 } } 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 _, yyv3862 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3863 := &yyv3862 yy3863.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 yyv3864 := *v yyh3864, yyl3864 := z.DecSliceHelperStart() var yyc3864 bool if yyl3864 == 0 { if yyv3864 == nil { yyv3864 = []DownwardAPIVolumeFile{} yyc3864 = true } else if len(yyv3864) != 0 { yyv3864 = yyv3864[:0] yyc3864 = true } } else if yyl3864 > 0 { var yyrr3864, yyrl3864 int var yyrt3864 bool if yyl3864 > cap(yyv3864) { yyrg3864 := len(yyv3864) > 0 yyv23864 := yyv3864 yyrl3864, yyrt3864 = z.DecInferLen(yyl3864, z.DecBasicHandle().MaxInitLen, 48) if yyrt3864 { if yyrl3864 <= cap(yyv3864) { yyv3864 = yyv3864[:yyrl3864] } else { yyv3864 = make([]DownwardAPIVolumeFile, yyrl3864) } } else { yyv3864 = make([]DownwardAPIVolumeFile, yyrl3864) } yyc3864 = true yyrr3864 = len(yyv3864) if yyrg3864 { copy(yyv3864, yyv23864) } } else if yyl3864 != len(yyv3864) { yyv3864 = yyv3864[:yyl3864] yyc3864 = true } yyj3864 := 0 for ; yyj3864 < yyrr3864; yyj3864++ { yyh3864.ElemContainerState(yyj3864) if r.TryDecodeAsNil() { yyv3864[yyj3864] = DownwardAPIVolumeFile{} } else { yyv3865 := &yyv3864[yyj3864] yyv3865.CodecDecodeSelf(d) } } if yyrt3864 { for ; yyj3864 < yyl3864; yyj3864++ { yyv3864 = append(yyv3864, DownwardAPIVolumeFile{}) yyh3864.ElemContainerState(yyj3864) if r.TryDecodeAsNil() { yyv3864[yyj3864] = DownwardAPIVolumeFile{} } else { yyv3866 := &yyv3864[yyj3864] yyv3866.CodecDecodeSelf(d) } } } } else { yyj3864 := 0 for ; !r.CheckBreak(); yyj3864++ { if yyj3864 >= len(yyv3864) { yyv3864 = append(yyv3864, DownwardAPIVolumeFile{}) // var yyz3864 DownwardAPIVolumeFile yyc3864 = true } yyh3864.ElemContainerState(yyj3864) if yyj3864 < len(yyv3864) { if r.TryDecodeAsNil() { yyv3864[yyj3864] = DownwardAPIVolumeFile{} } else { yyv3867 := &yyv3864[yyj3864] yyv3867.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3864 < len(yyv3864) { yyv3864 = yyv3864[:yyj3864] yyc3864 = true } else if yyj3864 == 0 && yyv3864 == nil { yyv3864 = []DownwardAPIVolumeFile{} yyc3864 = true } } yyh3864.End() if yyc3864 { *v = yyv3864 } } 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 _, yyv3868 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3869 := &yyv3868 yy3869.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 yyv3870 := *v yyh3870, yyl3870 := z.DecSliceHelperStart() var yyc3870 bool if yyl3870 == 0 { if yyv3870 == nil { yyv3870 = []HTTPHeader{} yyc3870 = true } else if len(yyv3870) != 0 { yyv3870 = yyv3870[:0] yyc3870 = true } } else if yyl3870 > 0 { var yyrr3870, yyrl3870 int var yyrt3870 bool if yyl3870 > cap(yyv3870) { yyrg3870 := len(yyv3870) > 0 yyv23870 := yyv3870 yyrl3870, yyrt3870 = z.DecInferLen(yyl3870, z.DecBasicHandle().MaxInitLen, 32) if yyrt3870 { if yyrl3870 <= cap(yyv3870) { yyv3870 = yyv3870[:yyrl3870] } else { yyv3870 = make([]HTTPHeader, yyrl3870) } } else { yyv3870 = make([]HTTPHeader, yyrl3870) } yyc3870 = true yyrr3870 = len(yyv3870) if yyrg3870 { copy(yyv3870, yyv23870) } } else if yyl3870 != len(yyv3870) { yyv3870 = yyv3870[:yyl3870] yyc3870 = true } yyj3870 := 0 for ; yyj3870 < yyrr3870; yyj3870++ { yyh3870.ElemContainerState(yyj3870) if r.TryDecodeAsNil() { yyv3870[yyj3870] = HTTPHeader{} } else { yyv3871 := &yyv3870[yyj3870] yyv3871.CodecDecodeSelf(d) } } if yyrt3870 { for ; yyj3870 < yyl3870; yyj3870++ { yyv3870 = append(yyv3870, HTTPHeader{}) yyh3870.ElemContainerState(yyj3870) if r.TryDecodeAsNil() { yyv3870[yyj3870] = HTTPHeader{} } else { yyv3872 := &yyv3870[yyj3870] yyv3872.CodecDecodeSelf(d) } } } } else { yyj3870 := 0 for ; !r.CheckBreak(); yyj3870++ { if yyj3870 >= len(yyv3870) { yyv3870 = append(yyv3870, HTTPHeader{}) // var yyz3870 HTTPHeader yyc3870 = true } yyh3870.ElemContainerState(yyj3870) if yyj3870 < len(yyv3870) { if r.TryDecodeAsNil() { yyv3870[yyj3870] = HTTPHeader{} } else { yyv3873 := &yyv3870[yyj3870] yyv3873.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3870 < len(yyv3870) { yyv3870 = yyv3870[:yyj3870] yyc3870 = true } else if yyj3870 == 0 && yyv3870 == nil { yyv3870 = []HTTPHeader{} yyc3870 = true } } yyh3870.End() if yyc3870 { *v = yyv3870 } } 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 _, yyv3874 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3874.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 yyv3875 := *v yyh3875, yyl3875 := z.DecSliceHelperStart() var yyc3875 bool if yyl3875 == 0 { if yyv3875 == nil { yyv3875 = []Capability{} yyc3875 = true } else if len(yyv3875) != 0 { yyv3875 = yyv3875[:0] yyc3875 = true } } else if yyl3875 > 0 { var yyrr3875, yyrl3875 int var yyrt3875 bool if yyl3875 > cap(yyv3875) { yyrl3875, yyrt3875 = z.DecInferLen(yyl3875, z.DecBasicHandle().MaxInitLen, 16) if yyrt3875 { if yyrl3875 <= cap(yyv3875) { yyv3875 = yyv3875[:yyrl3875] } else { yyv3875 = make([]Capability, yyrl3875) } } else { yyv3875 = make([]Capability, yyrl3875) } yyc3875 = true yyrr3875 = len(yyv3875) } else if yyl3875 != len(yyv3875) { yyv3875 = yyv3875[:yyl3875] yyc3875 = true } yyj3875 := 0 for ; yyj3875 < yyrr3875; yyj3875++ { yyh3875.ElemContainerState(yyj3875) if r.TryDecodeAsNil() { yyv3875[yyj3875] = "" } else { yyv3875[yyj3875] = Capability(r.DecodeString()) } } if yyrt3875 { for ; yyj3875 < yyl3875; yyj3875++ { yyv3875 = append(yyv3875, "") yyh3875.ElemContainerState(yyj3875) if r.TryDecodeAsNil() { yyv3875[yyj3875] = "" } else { yyv3875[yyj3875] = Capability(r.DecodeString()) } } } } else { yyj3875 := 0 for ; !r.CheckBreak(); yyj3875++ { if yyj3875 >= len(yyv3875) { yyv3875 = append(yyv3875, "") // var yyz3875 Capability yyc3875 = true } yyh3875.ElemContainerState(yyj3875) if yyj3875 < len(yyv3875) { if r.TryDecodeAsNil() { yyv3875[yyj3875] = "" } else { yyv3875[yyj3875] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3875 < len(yyv3875) { yyv3875 = yyv3875[:yyj3875] yyc3875 = true } else if yyj3875 == 0 && yyv3875 == nil { yyv3875 = []Capability{} yyc3875 = true } } yyh3875.End() if yyc3875 { *v = yyv3875 } } 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 _, yyv3879 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3880 := &yyv3879 yy3880.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 yyv3881 := *v yyh3881, yyl3881 := z.DecSliceHelperStart() var yyc3881 bool if yyl3881 == 0 { if yyv3881 == nil { yyv3881 = []ContainerPort{} yyc3881 = true } else if len(yyv3881) != 0 { yyv3881 = yyv3881[:0] yyc3881 = true } } else if yyl3881 > 0 { var yyrr3881, yyrl3881 int var yyrt3881 bool if yyl3881 > cap(yyv3881) { yyrg3881 := len(yyv3881) > 0 yyv23881 := yyv3881 yyrl3881, yyrt3881 = z.DecInferLen(yyl3881, z.DecBasicHandle().MaxInitLen, 64) if yyrt3881 { if yyrl3881 <= cap(yyv3881) { yyv3881 = yyv3881[:yyrl3881] } else { yyv3881 = make([]ContainerPort, yyrl3881) } } else { yyv3881 = make([]ContainerPort, yyrl3881) } yyc3881 = true yyrr3881 = len(yyv3881) if yyrg3881 { copy(yyv3881, yyv23881) } } else if yyl3881 != len(yyv3881) { yyv3881 = yyv3881[:yyl3881] yyc3881 = true } yyj3881 := 0 for ; yyj3881 < yyrr3881; yyj3881++ { yyh3881.ElemContainerState(yyj3881) if r.TryDecodeAsNil() { yyv3881[yyj3881] = ContainerPort{} } else { yyv3882 := &yyv3881[yyj3881] yyv3882.CodecDecodeSelf(d) } } if yyrt3881 { for ; yyj3881 < yyl3881; yyj3881++ { yyv3881 = append(yyv3881, ContainerPort{}) yyh3881.ElemContainerState(yyj3881) if r.TryDecodeAsNil() { yyv3881[yyj3881] = ContainerPort{} } else { yyv3883 := &yyv3881[yyj3881] yyv3883.CodecDecodeSelf(d) } } } } else { yyj3881 := 0 for ; !r.CheckBreak(); yyj3881++ { if yyj3881 >= len(yyv3881) { yyv3881 = append(yyv3881, ContainerPort{}) // var yyz3881 ContainerPort yyc3881 = true } yyh3881.ElemContainerState(yyj3881) if yyj3881 < len(yyv3881) { if r.TryDecodeAsNil() { yyv3881[yyj3881] = ContainerPort{} } else { yyv3884 := &yyv3881[yyj3881] yyv3884.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3881 < len(yyv3881) { yyv3881 = yyv3881[:yyj3881] yyc3881 = true } else if yyj3881 == 0 && yyv3881 == nil { yyv3881 = []ContainerPort{} yyc3881 = true } } yyh3881.End() if yyc3881 { *v = yyv3881 } } 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 _, yyv3885 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3886 := &yyv3885 yy3886.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 yyv3887 := *v yyh3887, yyl3887 := z.DecSliceHelperStart() var yyc3887 bool if yyl3887 == 0 { if yyv3887 == nil { yyv3887 = []EnvVar{} yyc3887 = true } else if len(yyv3887) != 0 { yyv3887 = yyv3887[:0] yyc3887 = true } } else if yyl3887 > 0 { var yyrr3887, yyrl3887 int var yyrt3887 bool if yyl3887 > cap(yyv3887) { yyrg3887 := len(yyv3887) > 0 yyv23887 := yyv3887 yyrl3887, yyrt3887 = z.DecInferLen(yyl3887, z.DecBasicHandle().MaxInitLen, 40) if yyrt3887 { if yyrl3887 <= cap(yyv3887) { yyv3887 = yyv3887[:yyrl3887] } else { yyv3887 = make([]EnvVar, yyrl3887) } } else { yyv3887 = make([]EnvVar, yyrl3887) } yyc3887 = true yyrr3887 = len(yyv3887) if yyrg3887 { copy(yyv3887, yyv23887) } } else if yyl3887 != len(yyv3887) { yyv3887 = yyv3887[:yyl3887] yyc3887 = true } yyj3887 := 0 for ; yyj3887 < yyrr3887; yyj3887++ { yyh3887.ElemContainerState(yyj3887) if r.TryDecodeAsNil() { yyv3887[yyj3887] = EnvVar{} } else { yyv3888 := &yyv3887[yyj3887] yyv3888.CodecDecodeSelf(d) } } if yyrt3887 { for ; yyj3887 < yyl3887; yyj3887++ { yyv3887 = append(yyv3887, EnvVar{}) yyh3887.ElemContainerState(yyj3887) if r.TryDecodeAsNil() { yyv3887[yyj3887] = EnvVar{} } else { yyv3889 := &yyv3887[yyj3887] yyv3889.CodecDecodeSelf(d) } } } } else { yyj3887 := 0 for ; !r.CheckBreak(); yyj3887++ { if yyj3887 >= len(yyv3887) { yyv3887 = append(yyv3887, EnvVar{}) // var yyz3887 EnvVar yyc3887 = true } yyh3887.ElemContainerState(yyj3887) if yyj3887 < len(yyv3887) { if r.TryDecodeAsNil() { yyv3887[yyj3887] = EnvVar{} } else { yyv3890 := &yyv3887[yyj3887] yyv3890.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3887 < len(yyv3887) { yyv3887 = yyv3887[:yyj3887] yyc3887 = true } else if yyj3887 == 0 && yyv3887 == nil { yyv3887 = []EnvVar{} yyc3887 = true } } yyh3887.End() if yyc3887 { *v = yyv3887 } } 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 _, yyv3891 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3892 := &yyv3891 yy3892.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 yyv3893 := *v yyh3893, yyl3893 := z.DecSliceHelperStart() var yyc3893 bool if yyl3893 == 0 { if yyv3893 == nil { yyv3893 = []VolumeMount{} yyc3893 = true } else if len(yyv3893) != 0 { yyv3893 = yyv3893[:0] yyc3893 = true } } else if yyl3893 > 0 { var yyrr3893, yyrl3893 int var yyrt3893 bool if yyl3893 > cap(yyv3893) { yyrg3893 := len(yyv3893) > 0 yyv23893 := yyv3893 yyrl3893, yyrt3893 = z.DecInferLen(yyl3893, z.DecBasicHandle().MaxInitLen, 40) if yyrt3893 { if yyrl3893 <= cap(yyv3893) { yyv3893 = yyv3893[:yyrl3893] } else { yyv3893 = make([]VolumeMount, yyrl3893) } } else { yyv3893 = make([]VolumeMount, yyrl3893) } yyc3893 = true yyrr3893 = len(yyv3893) if yyrg3893 { copy(yyv3893, yyv23893) } } else if yyl3893 != len(yyv3893) { yyv3893 = yyv3893[:yyl3893] yyc3893 = true } yyj3893 := 0 for ; yyj3893 < yyrr3893; yyj3893++ { yyh3893.ElemContainerState(yyj3893) if r.TryDecodeAsNil() { yyv3893[yyj3893] = VolumeMount{} } else { yyv3894 := &yyv3893[yyj3893] yyv3894.CodecDecodeSelf(d) } } if yyrt3893 { for ; yyj3893 < yyl3893; yyj3893++ { yyv3893 = append(yyv3893, VolumeMount{}) yyh3893.ElemContainerState(yyj3893) if r.TryDecodeAsNil() { yyv3893[yyj3893] = VolumeMount{} } else { yyv3895 := &yyv3893[yyj3893] yyv3895.CodecDecodeSelf(d) } } } } else { yyj3893 := 0 for ; !r.CheckBreak(); yyj3893++ { if yyj3893 >= len(yyv3893) { yyv3893 = append(yyv3893, VolumeMount{}) // var yyz3893 VolumeMount yyc3893 = true } yyh3893.ElemContainerState(yyj3893) if yyj3893 < len(yyv3893) { if r.TryDecodeAsNil() { yyv3893[yyj3893] = VolumeMount{} } else { yyv3896 := &yyv3893[yyj3893] yyv3896.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3893 < len(yyv3893) { yyv3893 = yyv3893[:yyj3893] yyc3893 = true } else if yyj3893 == 0 && yyv3893 == nil { yyv3893 = []VolumeMount{} yyc3893 = true } } yyh3893.End() if yyc3893 { *v = yyv3893 } } 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 _, yyv3897 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3898 := &yyv3897 yy3898.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 yyv3899 := *v yyh3899, yyl3899 := z.DecSliceHelperStart() var yyc3899 bool if yyl3899 == 0 { if yyv3899 == nil { yyv3899 = []Pod{} yyc3899 = true } else if len(yyv3899) != 0 { yyv3899 = yyv3899[:0] yyc3899 = true } } else if yyl3899 > 0 { var yyrr3899, yyrl3899 int var yyrt3899 bool if yyl3899 > cap(yyv3899) { yyrg3899 := len(yyv3899) > 0 yyv23899 := yyv3899 yyrl3899, yyrt3899 = z.DecInferLen(yyl3899, z.DecBasicHandle().MaxInitLen, 496) if yyrt3899 { if yyrl3899 <= cap(yyv3899) { yyv3899 = yyv3899[:yyrl3899] } else { yyv3899 = make([]Pod, yyrl3899) } } else { yyv3899 = make([]Pod, yyrl3899) } yyc3899 = true yyrr3899 = len(yyv3899) if yyrg3899 { copy(yyv3899, yyv23899) } } else if yyl3899 != len(yyv3899) { yyv3899 = yyv3899[:yyl3899] yyc3899 = true } yyj3899 := 0 for ; yyj3899 < yyrr3899; yyj3899++ { yyh3899.ElemContainerState(yyj3899) if r.TryDecodeAsNil() { yyv3899[yyj3899] = Pod{} } else { yyv3900 := &yyv3899[yyj3899] yyv3900.CodecDecodeSelf(d) } } if yyrt3899 { for ; yyj3899 < yyl3899; yyj3899++ { yyv3899 = append(yyv3899, Pod{}) yyh3899.ElemContainerState(yyj3899) if r.TryDecodeAsNil() { yyv3899[yyj3899] = Pod{} } else { yyv3901 := &yyv3899[yyj3899] yyv3901.CodecDecodeSelf(d) } } } } else { yyj3899 := 0 for ; !r.CheckBreak(); yyj3899++ { if yyj3899 >= len(yyv3899) { yyv3899 = append(yyv3899, Pod{}) // var yyz3899 Pod yyc3899 = true } yyh3899.ElemContainerState(yyj3899) if yyj3899 < len(yyv3899) { if r.TryDecodeAsNil() { yyv3899[yyj3899] = Pod{} } else { yyv3902 := &yyv3899[yyj3899] yyv3902.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3899 < len(yyv3899) { yyv3899 = yyv3899[:yyj3899] yyc3899 = true } else if yyj3899 == 0 && yyv3899 == nil { yyv3899 = []Pod{} yyc3899 = true } } yyh3899.End() if yyc3899 { *v = yyv3899 } } 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 _, yyv3903 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3904 := &yyv3903 yy3904.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 yyv3905 := *v yyh3905, yyl3905 := z.DecSliceHelperStart() var yyc3905 bool if yyl3905 == 0 { if yyv3905 == nil { yyv3905 = []NodeSelectorTerm{} yyc3905 = true } else if len(yyv3905) != 0 { yyv3905 = yyv3905[:0] yyc3905 = true } } else if yyl3905 > 0 { var yyrr3905, yyrl3905 int var yyrt3905 bool if yyl3905 > cap(yyv3905) { yyrg3905 := len(yyv3905) > 0 yyv23905 := yyv3905 yyrl3905, yyrt3905 = z.DecInferLen(yyl3905, z.DecBasicHandle().MaxInitLen, 24) if yyrt3905 { if yyrl3905 <= cap(yyv3905) { yyv3905 = yyv3905[:yyrl3905] } else { yyv3905 = make([]NodeSelectorTerm, yyrl3905) } } else { yyv3905 = make([]NodeSelectorTerm, yyrl3905) } yyc3905 = true yyrr3905 = len(yyv3905) if yyrg3905 { copy(yyv3905, yyv23905) } } else if yyl3905 != len(yyv3905) { yyv3905 = yyv3905[:yyl3905] yyc3905 = true } yyj3905 := 0 for ; yyj3905 < yyrr3905; yyj3905++ { yyh3905.ElemContainerState(yyj3905) if r.TryDecodeAsNil() { yyv3905[yyj3905] = NodeSelectorTerm{} } else { yyv3906 := &yyv3905[yyj3905] yyv3906.CodecDecodeSelf(d) } } if yyrt3905 { for ; yyj3905 < yyl3905; yyj3905++ { yyv3905 = append(yyv3905, NodeSelectorTerm{}) yyh3905.ElemContainerState(yyj3905) if r.TryDecodeAsNil() { yyv3905[yyj3905] = NodeSelectorTerm{} } else { yyv3907 := &yyv3905[yyj3905] yyv3907.CodecDecodeSelf(d) } } } } else { yyj3905 := 0 for ; !r.CheckBreak(); yyj3905++ { if yyj3905 >= len(yyv3905) { yyv3905 = append(yyv3905, NodeSelectorTerm{}) // var yyz3905 NodeSelectorTerm yyc3905 = true } yyh3905.ElemContainerState(yyj3905) if yyj3905 < len(yyv3905) { if r.TryDecodeAsNil() { yyv3905[yyj3905] = NodeSelectorTerm{} } else { yyv3908 := &yyv3905[yyj3905] yyv3908.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3905 < len(yyv3905) { yyv3905 = yyv3905[:yyj3905] yyc3905 = true } else if yyj3905 == 0 && yyv3905 == nil { yyv3905 = []NodeSelectorTerm{} yyc3905 = true } } yyh3905.End() if yyc3905 { *v = yyv3905 } } 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 _, yyv3909 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3910 := &yyv3909 yy3910.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 yyv3911 := *v yyh3911, yyl3911 := z.DecSliceHelperStart() var yyc3911 bool if yyl3911 == 0 { if yyv3911 == nil { yyv3911 = []NodeSelectorRequirement{} yyc3911 = true } else if len(yyv3911) != 0 { yyv3911 = yyv3911[:0] yyc3911 = true } } else if yyl3911 > 0 { var yyrr3911, yyrl3911 int var yyrt3911 bool if yyl3911 > cap(yyv3911) { yyrg3911 := len(yyv3911) > 0 yyv23911 := yyv3911 yyrl3911, yyrt3911 = z.DecInferLen(yyl3911, z.DecBasicHandle().MaxInitLen, 56) if yyrt3911 { if yyrl3911 <= cap(yyv3911) { yyv3911 = yyv3911[:yyrl3911] } else { yyv3911 = make([]NodeSelectorRequirement, yyrl3911) } } else { yyv3911 = make([]NodeSelectorRequirement, yyrl3911) } yyc3911 = true yyrr3911 = len(yyv3911) if yyrg3911 { copy(yyv3911, yyv23911) } } else if yyl3911 != len(yyv3911) { yyv3911 = yyv3911[:yyl3911] yyc3911 = true } yyj3911 := 0 for ; yyj3911 < yyrr3911; yyj3911++ { yyh3911.ElemContainerState(yyj3911) if r.TryDecodeAsNil() { yyv3911[yyj3911] = NodeSelectorRequirement{} } else { yyv3912 := &yyv3911[yyj3911] yyv3912.CodecDecodeSelf(d) } } if yyrt3911 { for ; yyj3911 < yyl3911; yyj3911++ { yyv3911 = append(yyv3911, NodeSelectorRequirement{}) yyh3911.ElemContainerState(yyj3911) if r.TryDecodeAsNil() { yyv3911[yyj3911] = NodeSelectorRequirement{} } else { yyv3913 := &yyv3911[yyj3911] yyv3913.CodecDecodeSelf(d) } } } } else { yyj3911 := 0 for ; !r.CheckBreak(); yyj3911++ { if yyj3911 >= len(yyv3911) { yyv3911 = append(yyv3911, NodeSelectorRequirement{}) // var yyz3911 NodeSelectorRequirement yyc3911 = true } yyh3911.ElemContainerState(yyj3911) if yyj3911 < len(yyv3911) { if r.TryDecodeAsNil() { yyv3911[yyj3911] = NodeSelectorRequirement{} } else { yyv3914 := &yyv3911[yyj3911] yyv3914.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3911 < len(yyv3911) { yyv3911 = yyv3911[:yyj3911] yyc3911 = true } else if yyj3911 == 0 && yyv3911 == nil { yyv3911 = []NodeSelectorRequirement{} yyc3911 = true } } yyh3911.End() if yyc3911 { *v = yyv3911 } } 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 _, yyv3915 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3916 := &yyv3915 yy3916.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 yyv3917 := *v yyh3917, yyl3917 := z.DecSliceHelperStart() var yyc3917 bool if yyl3917 == 0 { if yyv3917 == nil { yyv3917 = []PreferredSchedulingTerm{} yyc3917 = true } else if len(yyv3917) != 0 { yyv3917 = yyv3917[:0] yyc3917 = true } } else if yyl3917 > 0 { var yyrr3917, yyrl3917 int var yyrt3917 bool if yyl3917 > cap(yyv3917) { yyrg3917 := len(yyv3917) > 0 yyv23917 := yyv3917 yyrl3917, yyrt3917 = z.DecInferLen(yyl3917, z.DecBasicHandle().MaxInitLen, 32) if yyrt3917 { if yyrl3917 <= cap(yyv3917) { yyv3917 = yyv3917[:yyrl3917] } else { yyv3917 = make([]PreferredSchedulingTerm, yyrl3917) } } else { yyv3917 = make([]PreferredSchedulingTerm, yyrl3917) } yyc3917 = true yyrr3917 = len(yyv3917) if yyrg3917 { copy(yyv3917, yyv23917) } } else if yyl3917 != len(yyv3917) { yyv3917 = yyv3917[:yyl3917] yyc3917 = true } yyj3917 := 0 for ; yyj3917 < yyrr3917; yyj3917++ { yyh3917.ElemContainerState(yyj3917) if r.TryDecodeAsNil() { yyv3917[yyj3917] = PreferredSchedulingTerm{} } else { yyv3918 := &yyv3917[yyj3917] yyv3918.CodecDecodeSelf(d) } } if yyrt3917 { for ; yyj3917 < yyl3917; yyj3917++ { yyv3917 = append(yyv3917, PreferredSchedulingTerm{}) yyh3917.ElemContainerState(yyj3917) if r.TryDecodeAsNil() { yyv3917[yyj3917] = PreferredSchedulingTerm{} } else { yyv3919 := &yyv3917[yyj3917] yyv3919.CodecDecodeSelf(d) } } } } else { yyj3917 := 0 for ; !r.CheckBreak(); yyj3917++ { if yyj3917 >= len(yyv3917) { yyv3917 = append(yyv3917, PreferredSchedulingTerm{}) // var yyz3917 PreferredSchedulingTerm yyc3917 = true } yyh3917.ElemContainerState(yyj3917) if yyj3917 < len(yyv3917) { if r.TryDecodeAsNil() { yyv3917[yyj3917] = PreferredSchedulingTerm{} } else { yyv3920 := &yyv3917[yyj3917] yyv3920.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3917 < len(yyv3917) { yyv3917 = yyv3917[:yyj3917] yyc3917 = true } else if yyj3917 == 0 && yyv3917 == nil { yyv3917 = []PreferredSchedulingTerm{} yyc3917 = true } } yyh3917.End() if yyc3917 { *v = yyv3917 } } 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 _, yyv3921 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3922 := &yyv3921 yy3922.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 yyv3923 := *v yyh3923, yyl3923 := z.DecSliceHelperStart() var yyc3923 bool if yyl3923 == 0 { if yyv3923 == nil { yyv3923 = []Volume{} yyc3923 = true } else if len(yyv3923) != 0 { yyv3923 = yyv3923[:0] yyc3923 = true } } else if yyl3923 > 0 { var yyrr3923, yyrl3923 int var yyrt3923 bool if yyl3923 > cap(yyv3923) { yyrg3923 := len(yyv3923) > 0 yyv23923 := yyv3923 yyrl3923, yyrt3923 = z.DecInferLen(yyl3923, z.DecBasicHandle().MaxInitLen, 160) if yyrt3923 { if yyrl3923 <= cap(yyv3923) { yyv3923 = yyv3923[:yyrl3923] } else { yyv3923 = make([]Volume, yyrl3923) } } else { yyv3923 = make([]Volume, yyrl3923) } yyc3923 = true yyrr3923 = len(yyv3923) if yyrg3923 { copy(yyv3923, yyv23923) } } else if yyl3923 != len(yyv3923) { yyv3923 = yyv3923[:yyl3923] yyc3923 = true } yyj3923 := 0 for ; yyj3923 < yyrr3923; yyj3923++ { yyh3923.ElemContainerState(yyj3923) if r.TryDecodeAsNil() { yyv3923[yyj3923] = Volume{} } else { yyv3924 := &yyv3923[yyj3923] yyv3924.CodecDecodeSelf(d) } } if yyrt3923 { for ; yyj3923 < yyl3923; yyj3923++ { yyv3923 = append(yyv3923, Volume{}) yyh3923.ElemContainerState(yyj3923) if r.TryDecodeAsNil() { yyv3923[yyj3923] = Volume{} } else { yyv3925 := &yyv3923[yyj3923] yyv3925.CodecDecodeSelf(d) } } } } else { yyj3923 := 0 for ; !r.CheckBreak(); yyj3923++ { if yyj3923 >= len(yyv3923) { yyv3923 = append(yyv3923, Volume{}) // var yyz3923 Volume yyc3923 = true } yyh3923.ElemContainerState(yyj3923) if yyj3923 < len(yyv3923) { if r.TryDecodeAsNil() { yyv3923[yyj3923] = Volume{} } else { yyv3926 := &yyv3923[yyj3923] yyv3926.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3923 < len(yyv3923) { yyv3923 = yyv3923[:yyj3923] yyc3923 = true } else if yyj3923 == 0 && yyv3923 == nil { yyv3923 = []Volume{} yyc3923 = true } } yyh3923.End() if yyc3923 { *v = yyv3923 } } 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 _, yyv3927 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3928 := &yyv3927 yy3928.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 yyv3929 := *v yyh3929, yyl3929 := z.DecSliceHelperStart() var yyc3929 bool if yyl3929 == 0 { if yyv3929 == nil { yyv3929 = []Container{} yyc3929 = true } else if len(yyv3929) != 0 { yyv3929 = yyv3929[:0] yyc3929 = true } } else if yyl3929 > 0 { var yyrr3929, yyrl3929 int var yyrt3929 bool if yyl3929 > cap(yyv3929) { yyrg3929 := len(yyv3929) > 0 yyv23929 := yyv3929 yyrl3929, yyrt3929 = z.DecInferLen(yyl3929, z.DecBasicHandle().MaxInitLen, 256) if yyrt3929 { if yyrl3929 <= cap(yyv3929) { yyv3929 = yyv3929[:yyrl3929] } else { yyv3929 = make([]Container, yyrl3929) } } else { yyv3929 = make([]Container, yyrl3929) } yyc3929 = true yyrr3929 = len(yyv3929) if yyrg3929 { copy(yyv3929, yyv23929) } } else if yyl3929 != len(yyv3929) { yyv3929 = yyv3929[:yyl3929] yyc3929 = true } yyj3929 := 0 for ; yyj3929 < yyrr3929; yyj3929++ { yyh3929.ElemContainerState(yyj3929) if r.TryDecodeAsNil() { yyv3929[yyj3929] = Container{} } else { yyv3930 := &yyv3929[yyj3929] yyv3930.CodecDecodeSelf(d) } } if yyrt3929 { for ; yyj3929 < yyl3929; yyj3929++ { yyv3929 = append(yyv3929, Container{}) yyh3929.ElemContainerState(yyj3929) if r.TryDecodeAsNil() { yyv3929[yyj3929] = Container{} } else { yyv3931 := &yyv3929[yyj3929] yyv3931.CodecDecodeSelf(d) } } } } else { yyj3929 := 0 for ; !r.CheckBreak(); yyj3929++ { if yyj3929 >= len(yyv3929) { yyv3929 = append(yyv3929, Container{}) // var yyz3929 Container yyc3929 = true } yyh3929.ElemContainerState(yyj3929) if yyj3929 < len(yyv3929) { if r.TryDecodeAsNil() { yyv3929[yyj3929] = Container{} } else { yyv3932 := &yyv3929[yyj3929] yyv3932.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3929 < len(yyv3929) { yyv3929 = yyv3929[:yyj3929] yyc3929 = true } else if yyj3929 == 0 && yyv3929 == nil { yyv3929 = []Container{} yyc3929 = true } } yyh3929.End() if yyc3929 { *v = yyv3929 } } 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 _, yyv3933 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3934 := &yyv3933 yy3934.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 yyv3935 := *v yyh3935, yyl3935 := z.DecSliceHelperStart() var yyc3935 bool if yyl3935 == 0 { if yyv3935 == nil { yyv3935 = []LocalObjectReference{} yyc3935 = true } else if len(yyv3935) != 0 { yyv3935 = yyv3935[:0] yyc3935 = true } } else if yyl3935 > 0 { var yyrr3935, yyrl3935 int var yyrt3935 bool if yyl3935 > cap(yyv3935) { yyrg3935 := len(yyv3935) > 0 yyv23935 := yyv3935 yyrl3935, yyrt3935 = z.DecInferLen(yyl3935, z.DecBasicHandle().MaxInitLen, 16) if yyrt3935 { if yyrl3935 <= cap(yyv3935) { yyv3935 = yyv3935[:yyrl3935] } else { yyv3935 = make([]LocalObjectReference, yyrl3935) } } else { yyv3935 = make([]LocalObjectReference, yyrl3935) } yyc3935 = true yyrr3935 = len(yyv3935) if yyrg3935 { copy(yyv3935, yyv23935) } } else if yyl3935 != len(yyv3935) { yyv3935 = yyv3935[:yyl3935] yyc3935 = true } yyj3935 := 0 for ; yyj3935 < yyrr3935; yyj3935++ { yyh3935.ElemContainerState(yyj3935) if r.TryDecodeAsNil() { yyv3935[yyj3935] = LocalObjectReference{} } else { yyv3936 := &yyv3935[yyj3935] yyv3936.CodecDecodeSelf(d) } } if yyrt3935 { for ; yyj3935 < yyl3935; yyj3935++ { yyv3935 = append(yyv3935, LocalObjectReference{}) yyh3935.ElemContainerState(yyj3935) if r.TryDecodeAsNil() { yyv3935[yyj3935] = LocalObjectReference{} } else { yyv3937 := &yyv3935[yyj3935] yyv3937.CodecDecodeSelf(d) } } } } else { yyj3935 := 0 for ; !r.CheckBreak(); yyj3935++ { if yyj3935 >= len(yyv3935) { yyv3935 = append(yyv3935, LocalObjectReference{}) // var yyz3935 LocalObjectReference yyc3935 = true } yyh3935.ElemContainerState(yyj3935) if yyj3935 < len(yyv3935) { if r.TryDecodeAsNil() { yyv3935[yyj3935] = LocalObjectReference{} } else { yyv3938 := &yyv3935[yyj3935] yyv3938.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3935 < len(yyv3935) { yyv3935 = yyv3935[:yyj3935] yyc3935 = true } else if yyj3935 == 0 && yyv3935 == nil { yyv3935 = []LocalObjectReference{} yyc3935 = true } } yyh3935.End() if yyc3935 { *v = yyv3935 } } 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 _, yyv3939 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3940 := &yyv3939 yy3940.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 yyv3941 := *v yyh3941, yyl3941 := z.DecSliceHelperStart() var yyc3941 bool if yyl3941 == 0 { if yyv3941 == nil { yyv3941 = []PodCondition{} yyc3941 = true } else if len(yyv3941) != 0 { yyv3941 = yyv3941[:0] yyc3941 = true } } else if yyl3941 > 0 { var yyrr3941, yyrl3941 int var yyrt3941 bool if yyl3941 > cap(yyv3941) { yyrg3941 := len(yyv3941) > 0 yyv23941 := yyv3941 yyrl3941, yyrt3941 = z.DecInferLen(yyl3941, z.DecBasicHandle().MaxInitLen, 112) if yyrt3941 { if yyrl3941 <= cap(yyv3941) { yyv3941 = yyv3941[:yyrl3941] } else { yyv3941 = make([]PodCondition, yyrl3941) } } else { yyv3941 = make([]PodCondition, yyrl3941) } yyc3941 = true yyrr3941 = len(yyv3941) if yyrg3941 { copy(yyv3941, yyv23941) } } else if yyl3941 != len(yyv3941) { yyv3941 = yyv3941[:yyl3941] yyc3941 = true } yyj3941 := 0 for ; yyj3941 < yyrr3941; yyj3941++ { yyh3941.ElemContainerState(yyj3941) if r.TryDecodeAsNil() { yyv3941[yyj3941] = PodCondition{} } else { yyv3942 := &yyv3941[yyj3941] yyv3942.CodecDecodeSelf(d) } } if yyrt3941 { for ; yyj3941 < yyl3941; yyj3941++ { yyv3941 = append(yyv3941, PodCondition{}) yyh3941.ElemContainerState(yyj3941) if r.TryDecodeAsNil() { yyv3941[yyj3941] = PodCondition{} } else { yyv3943 := &yyv3941[yyj3941] yyv3943.CodecDecodeSelf(d) } } } } else { yyj3941 := 0 for ; !r.CheckBreak(); yyj3941++ { if yyj3941 >= len(yyv3941) { yyv3941 = append(yyv3941, PodCondition{}) // var yyz3941 PodCondition yyc3941 = true } yyh3941.ElemContainerState(yyj3941) if yyj3941 < len(yyv3941) { if r.TryDecodeAsNil() { yyv3941[yyj3941] = PodCondition{} } else { yyv3944 := &yyv3941[yyj3941] yyv3944.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3941 < len(yyv3941) { yyv3941 = yyv3941[:yyj3941] yyc3941 = true } else if yyj3941 == 0 && yyv3941 == nil { yyv3941 = []PodCondition{} yyc3941 = true } } yyh3941.End() if yyc3941 { *v = yyv3941 } } 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 _, yyv3945 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3946 := &yyv3945 yy3946.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 yyv3947 := *v yyh3947, yyl3947 := z.DecSliceHelperStart() var yyc3947 bool if yyl3947 == 0 { if yyv3947 == nil { yyv3947 = []ContainerStatus{} yyc3947 = true } else if len(yyv3947) != 0 { yyv3947 = yyv3947[:0] yyc3947 = true } } else if yyl3947 > 0 { var yyrr3947, yyrl3947 int var yyrt3947 bool if yyl3947 > cap(yyv3947) { yyrg3947 := len(yyv3947) > 0 yyv23947 := yyv3947 yyrl3947, yyrt3947 = z.DecInferLen(yyl3947, z.DecBasicHandle().MaxInitLen, 128) if yyrt3947 { if yyrl3947 <= cap(yyv3947) { yyv3947 = yyv3947[:yyrl3947] } else { yyv3947 = make([]ContainerStatus, yyrl3947) } } else { yyv3947 = make([]ContainerStatus, yyrl3947) } yyc3947 = true yyrr3947 = len(yyv3947) if yyrg3947 { copy(yyv3947, yyv23947) } } else if yyl3947 != len(yyv3947) { yyv3947 = yyv3947[:yyl3947] yyc3947 = true } yyj3947 := 0 for ; yyj3947 < yyrr3947; yyj3947++ { yyh3947.ElemContainerState(yyj3947) if r.TryDecodeAsNil() { yyv3947[yyj3947] = ContainerStatus{} } else { yyv3948 := &yyv3947[yyj3947] yyv3948.CodecDecodeSelf(d) } } if yyrt3947 { for ; yyj3947 < yyl3947; yyj3947++ { yyv3947 = append(yyv3947, ContainerStatus{}) yyh3947.ElemContainerState(yyj3947) if r.TryDecodeAsNil() { yyv3947[yyj3947] = ContainerStatus{} } else { yyv3949 := &yyv3947[yyj3947] yyv3949.CodecDecodeSelf(d) } } } } else { yyj3947 := 0 for ; !r.CheckBreak(); yyj3947++ { if yyj3947 >= len(yyv3947) { yyv3947 = append(yyv3947, ContainerStatus{}) // var yyz3947 ContainerStatus yyc3947 = true } yyh3947.ElemContainerState(yyj3947) if yyj3947 < len(yyv3947) { if r.TryDecodeAsNil() { yyv3947[yyj3947] = ContainerStatus{} } else { yyv3950 := &yyv3947[yyj3947] yyv3950.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3947 < len(yyv3947) { yyv3947 = yyv3947[:yyj3947] yyc3947 = true } else if yyj3947 == 0 && yyv3947 == nil { yyv3947 = []ContainerStatus{} yyc3947 = true } } yyh3947.End() if yyc3947 { *v = yyv3947 } } 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 _, yyv3951 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3952 := &yyv3951 yy3952.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 yyv3953 := *v yyh3953, yyl3953 := z.DecSliceHelperStart() var yyc3953 bool if yyl3953 == 0 { if yyv3953 == nil { yyv3953 = []PodTemplate{} yyc3953 = true } else if len(yyv3953) != 0 { yyv3953 = yyv3953[:0] yyc3953 = true } } else if yyl3953 > 0 { var yyrr3953, yyrl3953 int var yyrt3953 bool if yyl3953 > cap(yyv3953) { yyrg3953 := len(yyv3953) > 0 yyv23953 := yyv3953 yyrl3953, yyrt3953 = z.DecInferLen(yyl3953, z.DecBasicHandle().MaxInitLen, 520) if yyrt3953 { if yyrl3953 <= cap(yyv3953) { yyv3953 = yyv3953[:yyrl3953] } else { yyv3953 = make([]PodTemplate, yyrl3953) } } else { yyv3953 = make([]PodTemplate, yyrl3953) } yyc3953 = true yyrr3953 = len(yyv3953) if yyrg3953 { copy(yyv3953, yyv23953) } } else if yyl3953 != len(yyv3953) { yyv3953 = yyv3953[:yyl3953] yyc3953 = true } yyj3953 := 0 for ; yyj3953 < yyrr3953; yyj3953++ { yyh3953.ElemContainerState(yyj3953) if r.TryDecodeAsNil() { yyv3953[yyj3953] = PodTemplate{} } else { yyv3954 := &yyv3953[yyj3953] yyv3954.CodecDecodeSelf(d) } } if yyrt3953 { for ; yyj3953 < yyl3953; yyj3953++ { yyv3953 = append(yyv3953, PodTemplate{}) yyh3953.ElemContainerState(yyj3953) if r.TryDecodeAsNil() { yyv3953[yyj3953] = PodTemplate{} } else { yyv3955 := &yyv3953[yyj3953] yyv3955.CodecDecodeSelf(d) } } } } else { yyj3953 := 0 for ; !r.CheckBreak(); yyj3953++ { if yyj3953 >= len(yyv3953) { yyv3953 = append(yyv3953, PodTemplate{}) // var yyz3953 PodTemplate yyc3953 = true } yyh3953.ElemContainerState(yyj3953) if yyj3953 < len(yyv3953) { if r.TryDecodeAsNil() { yyv3953[yyj3953] = PodTemplate{} } else { yyv3956 := &yyv3953[yyj3953] yyv3956.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3953 < len(yyv3953) { yyv3953 = yyv3953[:yyj3953] yyc3953 = true } else if yyj3953 == 0 && yyv3953 == nil { yyv3953 = []PodTemplate{} yyc3953 = true } } yyh3953.End() if yyc3953 { *v = yyv3953 } } 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 _, yyv3957 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3958 := &yyv3957 yy3958.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 yyv3959 := *v yyh3959, yyl3959 := z.DecSliceHelperStart() var yyc3959 bool if yyl3959 == 0 { if yyv3959 == nil { yyv3959 = []ReplicationController{} yyc3959 = true } else if len(yyv3959) != 0 { yyv3959 = yyv3959[:0] yyc3959 = true } } else if yyl3959 > 0 { var yyrr3959, yyrl3959 int var yyrt3959 bool if yyl3959 > cap(yyv3959) { yyrg3959 := len(yyv3959) > 0 yyv23959 := yyv3959 yyrl3959, yyrt3959 = z.DecInferLen(yyl3959, z.DecBasicHandle().MaxInitLen, 232) if yyrt3959 { if yyrl3959 <= cap(yyv3959) { yyv3959 = yyv3959[:yyrl3959] } else { yyv3959 = make([]ReplicationController, yyrl3959) } } else { yyv3959 = make([]ReplicationController, yyrl3959) } yyc3959 = true yyrr3959 = len(yyv3959) if yyrg3959 { copy(yyv3959, yyv23959) } } else if yyl3959 != len(yyv3959) { yyv3959 = yyv3959[:yyl3959] yyc3959 = true } yyj3959 := 0 for ; yyj3959 < yyrr3959; yyj3959++ { yyh3959.ElemContainerState(yyj3959) if r.TryDecodeAsNil() { yyv3959[yyj3959] = ReplicationController{} } else { yyv3960 := &yyv3959[yyj3959] yyv3960.CodecDecodeSelf(d) } } if yyrt3959 { for ; yyj3959 < yyl3959; yyj3959++ { yyv3959 = append(yyv3959, ReplicationController{}) yyh3959.ElemContainerState(yyj3959) if r.TryDecodeAsNil() { yyv3959[yyj3959] = ReplicationController{} } else { yyv3961 := &yyv3959[yyj3959] yyv3961.CodecDecodeSelf(d) } } } } else { yyj3959 := 0 for ; !r.CheckBreak(); yyj3959++ { if yyj3959 >= len(yyv3959) { yyv3959 = append(yyv3959, ReplicationController{}) // var yyz3959 ReplicationController yyc3959 = true } yyh3959.ElemContainerState(yyj3959) if yyj3959 < len(yyv3959) { if r.TryDecodeAsNil() { yyv3959[yyj3959] = ReplicationController{} } else { yyv3962 := &yyv3959[yyj3959] yyv3962.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3959 < len(yyv3959) { yyv3959 = yyv3959[:yyj3959] yyc3959 = true } else if yyj3959 == 0 && yyv3959 == nil { yyv3959 = []ReplicationController{} yyc3959 = true } } yyh3959.End() if yyc3959 { *v = yyv3959 } } 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 _, yyv3963 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3964 := &yyv3963 yy3964.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 yyv3965 := *v yyh3965, yyl3965 := z.DecSliceHelperStart() var yyc3965 bool if yyl3965 == 0 { if yyv3965 == nil { yyv3965 = []Service{} yyc3965 = true } else if len(yyv3965) != 0 { yyv3965 = yyv3965[:0] yyc3965 = true } } else if yyl3965 > 0 { var yyrr3965, yyrl3965 int var yyrt3965 bool if yyl3965 > cap(yyv3965) { yyrg3965 := len(yyv3965) > 0 yyv23965 := yyv3965 yyrl3965, yyrt3965 = z.DecInferLen(yyl3965, z.DecBasicHandle().MaxInitLen, 336) if yyrt3965 { if yyrl3965 <= cap(yyv3965) { yyv3965 = yyv3965[:yyrl3965] } else { yyv3965 = make([]Service, yyrl3965) } } else { yyv3965 = make([]Service, yyrl3965) } yyc3965 = true yyrr3965 = len(yyv3965) if yyrg3965 { copy(yyv3965, yyv23965) } } else if yyl3965 != len(yyv3965) { yyv3965 = yyv3965[:yyl3965] yyc3965 = true } yyj3965 := 0 for ; yyj3965 < yyrr3965; yyj3965++ { yyh3965.ElemContainerState(yyj3965) if r.TryDecodeAsNil() { yyv3965[yyj3965] = Service{} } else { yyv3966 := &yyv3965[yyj3965] yyv3966.CodecDecodeSelf(d) } } if yyrt3965 { for ; yyj3965 < yyl3965; yyj3965++ { yyv3965 = append(yyv3965, Service{}) yyh3965.ElemContainerState(yyj3965) if r.TryDecodeAsNil() { yyv3965[yyj3965] = Service{} } else { yyv3967 := &yyv3965[yyj3965] yyv3967.CodecDecodeSelf(d) } } } } else { yyj3965 := 0 for ; !r.CheckBreak(); yyj3965++ { if yyj3965 >= len(yyv3965) { yyv3965 = append(yyv3965, Service{}) // var yyz3965 Service yyc3965 = true } yyh3965.ElemContainerState(yyj3965) if yyj3965 < len(yyv3965) { if r.TryDecodeAsNil() { yyv3965[yyj3965] = Service{} } else { yyv3968 := &yyv3965[yyj3965] yyv3968.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3965 < len(yyv3965) { yyv3965 = yyv3965[:yyj3965] yyc3965 = true } else if yyj3965 == 0 && yyv3965 == nil { yyv3965 = []Service{} yyc3965 = true } } yyh3965.End() if yyc3965 { *v = yyv3965 } } 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 _, yyv3969 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3970 := &yyv3969 yy3970.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 yyv3971 := *v yyh3971, yyl3971 := z.DecSliceHelperStart() var yyc3971 bool if yyl3971 == 0 { if yyv3971 == nil { yyv3971 = []LoadBalancerIngress{} yyc3971 = true } else if len(yyv3971) != 0 { yyv3971 = yyv3971[:0] yyc3971 = true } } else if yyl3971 > 0 { var yyrr3971, yyrl3971 int var yyrt3971 bool if yyl3971 > cap(yyv3971) { yyrg3971 := len(yyv3971) > 0 yyv23971 := yyv3971 yyrl3971, yyrt3971 = z.DecInferLen(yyl3971, z.DecBasicHandle().MaxInitLen, 32) if yyrt3971 { if yyrl3971 <= cap(yyv3971) { yyv3971 = yyv3971[:yyrl3971] } else { yyv3971 = make([]LoadBalancerIngress, yyrl3971) } } else { yyv3971 = make([]LoadBalancerIngress, yyrl3971) } yyc3971 = true yyrr3971 = len(yyv3971) if yyrg3971 { copy(yyv3971, yyv23971) } } else if yyl3971 != len(yyv3971) { yyv3971 = yyv3971[:yyl3971] yyc3971 = true } yyj3971 := 0 for ; yyj3971 < yyrr3971; yyj3971++ { yyh3971.ElemContainerState(yyj3971) if r.TryDecodeAsNil() { yyv3971[yyj3971] = LoadBalancerIngress{} } else { yyv3972 := &yyv3971[yyj3971] yyv3972.CodecDecodeSelf(d) } } if yyrt3971 { for ; yyj3971 < yyl3971; yyj3971++ { yyv3971 = append(yyv3971, LoadBalancerIngress{}) yyh3971.ElemContainerState(yyj3971) if r.TryDecodeAsNil() { yyv3971[yyj3971] = LoadBalancerIngress{} } else { yyv3973 := &yyv3971[yyj3971] yyv3973.CodecDecodeSelf(d) } } } } else { yyj3971 := 0 for ; !r.CheckBreak(); yyj3971++ { if yyj3971 >= len(yyv3971) { yyv3971 = append(yyv3971, LoadBalancerIngress{}) // var yyz3971 LoadBalancerIngress yyc3971 = true } yyh3971.ElemContainerState(yyj3971) if yyj3971 < len(yyv3971) { if r.TryDecodeAsNil() { yyv3971[yyj3971] = LoadBalancerIngress{} } else { yyv3974 := &yyv3971[yyj3971] yyv3974.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3971 < len(yyv3971) { yyv3971 = yyv3971[:yyj3971] yyc3971 = true } else if yyj3971 == 0 && yyv3971 == nil { yyv3971 = []LoadBalancerIngress{} yyc3971 = true } } yyh3971.End() if yyc3971 { *v = yyv3971 } } 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 _, yyv3975 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3976 := &yyv3975 yy3976.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 yyv3977 := *v yyh3977, yyl3977 := z.DecSliceHelperStart() var yyc3977 bool if yyl3977 == 0 { if yyv3977 == nil { yyv3977 = []ServicePort{} yyc3977 = true } else if len(yyv3977) != 0 { yyv3977 = yyv3977[:0] yyc3977 = true } } else if yyl3977 > 0 { var yyrr3977, yyrl3977 int var yyrt3977 bool if yyl3977 > cap(yyv3977) { yyrg3977 := len(yyv3977) > 0 yyv23977 := yyv3977 yyrl3977, yyrt3977 = z.DecInferLen(yyl3977, z.DecBasicHandle().MaxInitLen, 80) if yyrt3977 { if yyrl3977 <= cap(yyv3977) { yyv3977 = yyv3977[:yyrl3977] } else { yyv3977 = make([]ServicePort, yyrl3977) } } else { yyv3977 = make([]ServicePort, yyrl3977) } yyc3977 = true yyrr3977 = len(yyv3977) if yyrg3977 { copy(yyv3977, yyv23977) } } else if yyl3977 != len(yyv3977) { yyv3977 = yyv3977[:yyl3977] yyc3977 = true } yyj3977 := 0 for ; yyj3977 < yyrr3977; yyj3977++ { yyh3977.ElemContainerState(yyj3977) if r.TryDecodeAsNil() { yyv3977[yyj3977] = ServicePort{} } else { yyv3978 := &yyv3977[yyj3977] yyv3978.CodecDecodeSelf(d) } } if yyrt3977 { for ; yyj3977 < yyl3977; yyj3977++ { yyv3977 = append(yyv3977, ServicePort{}) yyh3977.ElemContainerState(yyj3977) if r.TryDecodeAsNil() { yyv3977[yyj3977] = ServicePort{} } else { yyv3979 := &yyv3977[yyj3977] yyv3979.CodecDecodeSelf(d) } } } } else { yyj3977 := 0 for ; !r.CheckBreak(); yyj3977++ { if yyj3977 >= len(yyv3977) { yyv3977 = append(yyv3977, ServicePort{}) // var yyz3977 ServicePort yyc3977 = true } yyh3977.ElemContainerState(yyj3977) if yyj3977 < len(yyv3977) { if r.TryDecodeAsNil() { yyv3977[yyj3977] = ServicePort{} } else { yyv3980 := &yyv3977[yyj3977] yyv3980.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3977 < len(yyv3977) { yyv3977 = yyv3977[:yyj3977] yyc3977 = true } else if yyj3977 == 0 && yyv3977 == nil { yyv3977 = []ServicePort{} yyc3977 = true } } yyh3977.End() if yyc3977 { *v = yyv3977 } } 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 _, yyv3981 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3982 := &yyv3981 yy3982.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 yyv3983 := *v yyh3983, yyl3983 := z.DecSliceHelperStart() var yyc3983 bool if yyl3983 == 0 { if yyv3983 == nil { yyv3983 = []ObjectReference{} yyc3983 = true } else if len(yyv3983) != 0 { yyv3983 = yyv3983[:0] yyc3983 = true } } else if yyl3983 > 0 { var yyrr3983, yyrl3983 int var yyrt3983 bool if yyl3983 > cap(yyv3983) { yyrg3983 := len(yyv3983) > 0 yyv23983 := yyv3983 yyrl3983, yyrt3983 = z.DecInferLen(yyl3983, z.DecBasicHandle().MaxInitLen, 112) if yyrt3983 { if yyrl3983 <= cap(yyv3983) { yyv3983 = yyv3983[:yyrl3983] } else { yyv3983 = make([]ObjectReference, yyrl3983) } } else { yyv3983 = make([]ObjectReference, yyrl3983) } yyc3983 = true yyrr3983 = len(yyv3983) if yyrg3983 { copy(yyv3983, yyv23983) } } else if yyl3983 != len(yyv3983) { yyv3983 = yyv3983[:yyl3983] yyc3983 = true } yyj3983 := 0 for ; yyj3983 < yyrr3983; yyj3983++ { yyh3983.ElemContainerState(yyj3983) if r.TryDecodeAsNil() { yyv3983[yyj3983] = ObjectReference{} } else { yyv3984 := &yyv3983[yyj3983] yyv3984.CodecDecodeSelf(d) } } if yyrt3983 { for ; yyj3983 < yyl3983; yyj3983++ { yyv3983 = append(yyv3983, ObjectReference{}) yyh3983.ElemContainerState(yyj3983) if r.TryDecodeAsNil() { yyv3983[yyj3983] = ObjectReference{} } else { yyv3985 := &yyv3983[yyj3983] yyv3985.CodecDecodeSelf(d) } } } } else { yyj3983 := 0 for ; !r.CheckBreak(); yyj3983++ { if yyj3983 >= len(yyv3983) { yyv3983 = append(yyv3983, ObjectReference{}) // var yyz3983 ObjectReference yyc3983 = true } yyh3983.ElemContainerState(yyj3983) if yyj3983 < len(yyv3983) { if r.TryDecodeAsNil() { yyv3983[yyj3983] = ObjectReference{} } else { yyv3986 := &yyv3983[yyj3983] yyv3986.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3983 < len(yyv3983) { yyv3983 = yyv3983[:yyj3983] yyc3983 = true } else if yyj3983 == 0 && yyv3983 == nil { yyv3983 = []ObjectReference{} yyc3983 = true } } yyh3983.End() if yyc3983 { *v = yyv3983 } } 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 _, yyv3987 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3988 := &yyv3987 yy3988.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 yyv3989 := *v yyh3989, yyl3989 := z.DecSliceHelperStart() var yyc3989 bool if yyl3989 == 0 { if yyv3989 == nil { yyv3989 = []ServiceAccount{} yyc3989 = true } else if len(yyv3989) != 0 { yyv3989 = yyv3989[:0] yyc3989 = true } } else if yyl3989 > 0 { var yyrr3989, yyrl3989 int var yyrt3989 bool if yyl3989 > cap(yyv3989) { yyrg3989 := len(yyv3989) > 0 yyv23989 := yyv3989 yyrl3989, yyrt3989 = z.DecInferLen(yyl3989, z.DecBasicHandle().MaxInitLen, 240) if yyrt3989 { if yyrl3989 <= cap(yyv3989) { yyv3989 = yyv3989[:yyrl3989] } else { yyv3989 = make([]ServiceAccount, yyrl3989) } } else { yyv3989 = make([]ServiceAccount, yyrl3989) } yyc3989 = true yyrr3989 = len(yyv3989) if yyrg3989 { copy(yyv3989, yyv23989) } } else if yyl3989 != len(yyv3989) { yyv3989 = yyv3989[:yyl3989] yyc3989 = true } yyj3989 := 0 for ; yyj3989 < yyrr3989; yyj3989++ { yyh3989.ElemContainerState(yyj3989) if r.TryDecodeAsNil() { yyv3989[yyj3989] = ServiceAccount{} } else { yyv3990 := &yyv3989[yyj3989] yyv3990.CodecDecodeSelf(d) } } if yyrt3989 { for ; yyj3989 < yyl3989; yyj3989++ { yyv3989 = append(yyv3989, ServiceAccount{}) yyh3989.ElemContainerState(yyj3989) if r.TryDecodeAsNil() { yyv3989[yyj3989] = ServiceAccount{} } else { yyv3991 := &yyv3989[yyj3989] yyv3991.CodecDecodeSelf(d) } } } } else { yyj3989 := 0 for ; !r.CheckBreak(); yyj3989++ { if yyj3989 >= len(yyv3989) { yyv3989 = append(yyv3989, ServiceAccount{}) // var yyz3989 ServiceAccount yyc3989 = true } yyh3989.ElemContainerState(yyj3989) if yyj3989 < len(yyv3989) { if r.TryDecodeAsNil() { yyv3989[yyj3989] = ServiceAccount{} } else { yyv3992 := &yyv3989[yyj3989] yyv3992.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3989 < len(yyv3989) { yyv3989 = yyv3989[:yyj3989] yyc3989 = true } else if yyj3989 == 0 && yyv3989 == nil { yyv3989 = []ServiceAccount{} yyc3989 = true } } yyh3989.End() if yyc3989 { *v = yyv3989 } } 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 _, yyv3993 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3994 := &yyv3993 yy3994.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 yyv3995 := *v yyh3995, yyl3995 := z.DecSliceHelperStart() var yyc3995 bool if yyl3995 == 0 { if yyv3995 == nil { yyv3995 = []EndpointSubset{} yyc3995 = true } else if len(yyv3995) != 0 { yyv3995 = yyv3995[:0] yyc3995 = true } } else if yyl3995 > 0 { var yyrr3995, yyrl3995 int var yyrt3995 bool if yyl3995 > cap(yyv3995) { yyrg3995 := len(yyv3995) > 0 yyv23995 := yyv3995 yyrl3995, yyrt3995 = z.DecInferLen(yyl3995, z.DecBasicHandle().MaxInitLen, 72) if yyrt3995 { if yyrl3995 <= cap(yyv3995) { yyv3995 = yyv3995[:yyrl3995] } else { yyv3995 = make([]EndpointSubset, yyrl3995) } } else { yyv3995 = make([]EndpointSubset, yyrl3995) } yyc3995 = true yyrr3995 = len(yyv3995) if yyrg3995 { copy(yyv3995, yyv23995) } } else if yyl3995 != len(yyv3995) { yyv3995 = yyv3995[:yyl3995] yyc3995 = true } yyj3995 := 0 for ; yyj3995 < yyrr3995; yyj3995++ { yyh3995.ElemContainerState(yyj3995) if r.TryDecodeAsNil() { yyv3995[yyj3995] = EndpointSubset{} } else { yyv3996 := &yyv3995[yyj3995] yyv3996.CodecDecodeSelf(d) } } if yyrt3995 { for ; yyj3995 < yyl3995; yyj3995++ { yyv3995 = append(yyv3995, EndpointSubset{}) yyh3995.ElemContainerState(yyj3995) if r.TryDecodeAsNil() { yyv3995[yyj3995] = EndpointSubset{} } else { yyv3997 := &yyv3995[yyj3995] yyv3997.CodecDecodeSelf(d) } } } } else { yyj3995 := 0 for ; !r.CheckBreak(); yyj3995++ { if yyj3995 >= len(yyv3995) { yyv3995 = append(yyv3995, EndpointSubset{}) // var yyz3995 EndpointSubset yyc3995 = true } yyh3995.ElemContainerState(yyj3995) if yyj3995 < len(yyv3995) { if r.TryDecodeAsNil() { yyv3995[yyj3995] = EndpointSubset{} } else { yyv3998 := &yyv3995[yyj3995] yyv3998.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3995 < len(yyv3995) { yyv3995 = yyv3995[:yyj3995] yyc3995 = true } else if yyj3995 == 0 && yyv3995 == nil { yyv3995 = []EndpointSubset{} yyc3995 = true } } yyh3995.End() if yyc3995 { *v = yyv3995 } } 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 _, yyv3999 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4000 := &yyv3999 yy4000.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 yyv4001 := *v yyh4001, yyl4001 := z.DecSliceHelperStart() var yyc4001 bool if yyl4001 == 0 { if yyv4001 == nil { yyv4001 = []EndpointAddress{} yyc4001 = true } else if len(yyv4001) != 0 { yyv4001 = yyv4001[:0] yyc4001 = true } } else if yyl4001 > 0 { var yyrr4001, yyrl4001 int var yyrt4001 bool if yyl4001 > cap(yyv4001) { yyrg4001 := len(yyv4001) > 0 yyv24001 := yyv4001 yyrl4001, yyrt4001 = z.DecInferLen(yyl4001, z.DecBasicHandle().MaxInitLen, 24) if yyrt4001 { if yyrl4001 <= cap(yyv4001) { yyv4001 = yyv4001[:yyrl4001] } else { yyv4001 = make([]EndpointAddress, yyrl4001) } } else { yyv4001 = make([]EndpointAddress, yyrl4001) } yyc4001 = true yyrr4001 = len(yyv4001) if yyrg4001 { copy(yyv4001, yyv24001) } } else if yyl4001 != len(yyv4001) { yyv4001 = yyv4001[:yyl4001] yyc4001 = true } yyj4001 := 0 for ; yyj4001 < yyrr4001; yyj4001++ { yyh4001.ElemContainerState(yyj4001) if r.TryDecodeAsNil() { yyv4001[yyj4001] = EndpointAddress{} } else { yyv4002 := &yyv4001[yyj4001] yyv4002.CodecDecodeSelf(d) } } if yyrt4001 { for ; yyj4001 < yyl4001; yyj4001++ { yyv4001 = append(yyv4001, EndpointAddress{}) yyh4001.ElemContainerState(yyj4001) if r.TryDecodeAsNil() { yyv4001[yyj4001] = EndpointAddress{} } else { yyv4003 := &yyv4001[yyj4001] yyv4003.CodecDecodeSelf(d) } } } } else { yyj4001 := 0 for ; !r.CheckBreak(); yyj4001++ { if yyj4001 >= len(yyv4001) { yyv4001 = append(yyv4001, EndpointAddress{}) // var yyz4001 EndpointAddress yyc4001 = true } yyh4001.ElemContainerState(yyj4001) if yyj4001 < len(yyv4001) { if r.TryDecodeAsNil() { yyv4001[yyj4001] = EndpointAddress{} } else { yyv4004 := &yyv4001[yyj4001] yyv4004.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4001 < len(yyv4001) { yyv4001 = yyv4001[:yyj4001] yyc4001 = true } else if yyj4001 == 0 && yyv4001 == nil { yyv4001 = []EndpointAddress{} yyc4001 = true } } yyh4001.End() if yyc4001 { *v = yyv4001 } } 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 _, yyv4005 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4006 := &yyv4005 yy4006.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 yyv4007 := *v yyh4007, yyl4007 := z.DecSliceHelperStart() var yyc4007 bool if yyl4007 == 0 { if yyv4007 == nil { yyv4007 = []EndpointPort{} yyc4007 = true } else if len(yyv4007) != 0 { yyv4007 = yyv4007[:0] yyc4007 = true } } else if yyl4007 > 0 { var yyrr4007, yyrl4007 int var yyrt4007 bool if yyl4007 > cap(yyv4007) { yyrg4007 := len(yyv4007) > 0 yyv24007 := yyv4007 yyrl4007, yyrt4007 = z.DecInferLen(yyl4007, z.DecBasicHandle().MaxInitLen, 40) if yyrt4007 { if yyrl4007 <= cap(yyv4007) { yyv4007 = yyv4007[:yyrl4007] } else { yyv4007 = make([]EndpointPort, yyrl4007) } } else { yyv4007 = make([]EndpointPort, yyrl4007) } yyc4007 = true yyrr4007 = len(yyv4007) if yyrg4007 { copy(yyv4007, yyv24007) } } else if yyl4007 != len(yyv4007) { yyv4007 = yyv4007[:yyl4007] yyc4007 = true } yyj4007 := 0 for ; yyj4007 < yyrr4007; yyj4007++ { yyh4007.ElemContainerState(yyj4007) if r.TryDecodeAsNil() { yyv4007[yyj4007] = EndpointPort{} } else { yyv4008 := &yyv4007[yyj4007] yyv4008.CodecDecodeSelf(d) } } if yyrt4007 { for ; yyj4007 < yyl4007; yyj4007++ { yyv4007 = append(yyv4007, EndpointPort{}) yyh4007.ElemContainerState(yyj4007) if r.TryDecodeAsNil() { yyv4007[yyj4007] = EndpointPort{} } else { yyv4009 := &yyv4007[yyj4007] yyv4009.CodecDecodeSelf(d) } } } } else { yyj4007 := 0 for ; !r.CheckBreak(); yyj4007++ { if yyj4007 >= len(yyv4007) { yyv4007 = append(yyv4007, EndpointPort{}) // var yyz4007 EndpointPort yyc4007 = true } yyh4007.ElemContainerState(yyj4007) if yyj4007 < len(yyv4007) { if r.TryDecodeAsNil() { yyv4007[yyj4007] = EndpointPort{} } else { yyv4010 := &yyv4007[yyj4007] yyv4010.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4007 < len(yyv4007) { yyv4007 = yyv4007[:yyj4007] yyc4007 = true } else if yyj4007 == 0 && yyv4007 == nil { yyv4007 = []EndpointPort{} yyc4007 = true } } yyh4007.End() if yyc4007 { *v = yyv4007 } } 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 _, yyv4011 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4012 := &yyv4011 yy4012.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 yyv4013 := *v yyh4013, yyl4013 := z.DecSliceHelperStart() var yyc4013 bool if yyl4013 == 0 { if yyv4013 == nil { yyv4013 = []Endpoints{} yyc4013 = true } else if len(yyv4013) != 0 { yyv4013 = yyv4013[:0] yyc4013 = true } } else if yyl4013 > 0 { var yyrr4013, yyrl4013 int var yyrt4013 bool if yyl4013 > cap(yyv4013) { yyrg4013 := len(yyv4013) > 0 yyv24013 := yyv4013 yyrl4013, yyrt4013 = z.DecInferLen(yyl4013, z.DecBasicHandle().MaxInitLen, 216) if yyrt4013 { if yyrl4013 <= cap(yyv4013) { yyv4013 = yyv4013[:yyrl4013] } else { yyv4013 = make([]Endpoints, yyrl4013) } } else { yyv4013 = make([]Endpoints, yyrl4013) } yyc4013 = true yyrr4013 = len(yyv4013) if yyrg4013 { copy(yyv4013, yyv24013) } } else if yyl4013 != len(yyv4013) { yyv4013 = yyv4013[:yyl4013] yyc4013 = true } yyj4013 := 0 for ; yyj4013 < yyrr4013; yyj4013++ { yyh4013.ElemContainerState(yyj4013) if r.TryDecodeAsNil() { yyv4013[yyj4013] = Endpoints{} } else { yyv4014 := &yyv4013[yyj4013] yyv4014.CodecDecodeSelf(d) } } if yyrt4013 { for ; yyj4013 < yyl4013; yyj4013++ { yyv4013 = append(yyv4013, Endpoints{}) yyh4013.ElemContainerState(yyj4013) if r.TryDecodeAsNil() { yyv4013[yyj4013] = Endpoints{} } else { yyv4015 := &yyv4013[yyj4013] yyv4015.CodecDecodeSelf(d) } } } } else { yyj4013 := 0 for ; !r.CheckBreak(); yyj4013++ { if yyj4013 >= len(yyv4013) { yyv4013 = append(yyv4013, Endpoints{}) // var yyz4013 Endpoints yyc4013 = true } yyh4013.ElemContainerState(yyj4013) if yyj4013 < len(yyv4013) { if r.TryDecodeAsNil() { yyv4013[yyj4013] = Endpoints{} } else { yyv4016 := &yyv4013[yyj4013] yyv4016.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4013 < len(yyv4013) { yyv4013 = yyv4013[:yyj4013] yyc4013 = true } else if yyj4013 == 0 && yyv4013 == nil { yyv4013 = []Endpoints{} yyc4013 = true } } yyh4013.End() if yyc4013 { *v = yyv4013 } } 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 _, yyv4017 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4018 := &yyv4017 yy4018.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 yyv4019 := *v yyh4019, yyl4019 := z.DecSliceHelperStart() var yyc4019 bool if yyl4019 == 0 { if yyv4019 == nil { yyv4019 = []NodeCondition{} yyc4019 = true } else if len(yyv4019) != 0 { yyv4019 = yyv4019[:0] yyc4019 = true } } else if yyl4019 > 0 { var yyrr4019, yyrl4019 int var yyrt4019 bool if yyl4019 > cap(yyv4019) { yyrg4019 := len(yyv4019) > 0 yyv24019 := yyv4019 yyrl4019, yyrt4019 = z.DecInferLen(yyl4019, z.DecBasicHandle().MaxInitLen, 112) if yyrt4019 { if yyrl4019 <= cap(yyv4019) { yyv4019 = yyv4019[:yyrl4019] } else { yyv4019 = make([]NodeCondition, yyrl4019) } } else { yyv4019 = make([]NodeCondition, yyrl4019) } yyc4019 = true yyrr4019 = len(yyv4019) if yyrg4019 { copy(yyv4019, yyv24019) } } else if yyl4019 != len(yyv4019) { yyv4019 = yyv4019[:yyl4019] yyc4019 = true } yyj4019 := 0 for ; yyj4019 < yyrr4019; yyj4019++ { yyh4019.ElemContainerState(yyj4019) if r.TryDecodeAsNil() { yyv4019[yyj4019] = NodeCondition{} } else { yyv4020 := &yyv4019[yyj4019] yyv4020.CodecDecodeSelf(d) } } if yyrt4019 { for ; yyj4019 < yyl4019; yyj4019++ { yyv4019 = append(yyv4019, NodeCondition{}) yyh4019.ElemContainerState(yyj4019) if r.TryDecodeAsNil() { yyv4019[yyj4019] = NodeCondition{} } else { yyv4021 := &yyv4019[yyj4019] yyv4021.CodecDecodeSelf(d) } } } } else { yyj4019 := 0 for ; !r.CheckBreak(); yyj4019++ { if yyj4019 >= len(yyv4019) { yyv4019 = append(yyv4019, NodeCondition{}) // var yyz4019 NodeCondition yyc4019 = true } yyh4019.ElemContainerState(yyj4019) if yyj4019 < len(yyv4019) { if r.TryDecodeAsNil() { yyv4019[yyj4019] = NodeCondition{} } else { yyv4022 := &yyv4019[yyj4019] yyv4022.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4019 < len(yyv4019) { yyv4019 = yyv4019[:yyj4019] yyc4019 = true } else if yyj4019 == 0 && yyv4019 == nil { yyv4019 = []NodeCondition{} yyc4019 = true } } yyh4019.End() if yyc4019 { *v = yyv4019 } } 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 _, yyv4023 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4024 := &yyv4023 yy4024.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 yyv4025 := *v yyh4025, yyl4025 := z.DecSliceHelperStart() var yyc4025 bool if yyl4025 == 0 { if yyv4025 == nil { yyv4025 = []NodeAddress{} yyc4025 = true } else if len(yyv4025) != 0 { yyv4025 = yyv4025[:0] yyc4025 = true } } else if yyl4025 > 0 { var yyrr4025, yyrl4025 int var yyrt4025 bool if yyl4025 > cap(yyv4025) { yyrg4025 := len(yyv4025) > 0 yyv24025 := yyv4025 yyrl4025, yyrt4025 = z.DecInferLen(yyl4025, z.DecBasicHandle().MaxInitLen, 32) if yyrt4025 { if yyrl4025 <= cap(yyv4025) { yyv4025 = yyv4025[:yyrl4025] } else { yyv4025 = make([]NodeAddress, yyrl4025) } } else { yyv4025 = make([]NodeAddress, yyrl4025) } yyc4025 = true yyrr4025 = len(yyv4025) if yyrg4025 { copy(yyv4025, yyv24025) } } else if yyl4025 != len(yyv4025) { yyv4025 = yyv4025[:yyl4025] yyc4025 = true } yyj4025 := 0 for ; yyj4025 < yyrr4025; yyj4025++ { yyh4025.ElemContainerState(yyj4025) if r.TryDecodeAsNil() { yyv4025[yyj4025] = NodeAddress{} } else { yyv4026 := &yyv4025[yyj4025] yyv4026.CodecDecodeSelf(d) } } if yyrt4025 { for ; yyj4025 < yyl4025; yyj4025++ { yyv4025 = append(yyv4025, NodeAddress{}) yyh4025.ElemContainerState(yyj4025) if r.TryDecodeAsNil() { yyv4025[yyj4025] = NodeAddress{} } else { yyv4027 := &yyv4025[yyj4025] yyv4027.CodecDecodeSelf(d) } } } } else { yyj4025 := 0 for ; !r.CheckBreak(); yyj4025++ { if yyj4025 >= len(yyv4025) { yyv4025 = append(yyv4025, NodeAddress{}) // var yyz4025 NodeAddress yyc4025 = true } yyh4025.ElemContainerState(yyj4025) if yyj4025 < len(yyv4025) { if r.TryDecodeAsNil() { yyv4025[yyj4025] = NodeAddress{} } else { yyv4028 := &yyv4025[yyj4025] yyv4028.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4025 < len(yyv4025) { yyv4025 = yyv4025[:yyj4025] yyc4025 = true } else if yyj4025 == 0 && yyv4025 == nil { yyv4025 = []NodeAddress{} yyc4025 = true } } yyh4025.End() if yyc4025 { *v = yyv4025 } } 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 _, yyv4029 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4030 := &yyv4029 yy4030.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 yyv4031 := *v yyh4031, yyl4031 := z.DecSliceHelperStart() var yyc4031 bool if yyl4031 == 0 { if yyv4031 == nil { yyv4031 = []ContainerImage{} yyc4031 = true } else if len(yyv4031) != 0 { yyv4031 = yyv4031[:0] yyc4031 = true } } else if yyl4031 > 0 { var yyrr4031, yyrl4031 int var yyrt4031 bool if yyl4031 > cap(yyv4031) { yyrg4031 := len(yyv4031) > 0 yyv24031 := yyv4031 yyrl4031, yyrt4031 = z.DecInferLen(yyl4031, z.DecBasicHandle().MaxInitLen, 32) if yyrt4031 { if yyrl4031 <= cap(yyv4031) { yyv4031 = yyv4031[:yyrl4031] } else { yyv4031 = make([]ContainerImage, yyrl4031) } } else { yyv4031 = make([]ContainerImage, yyrl4031) } yyc4031 = true yyrr4031 = len(yyv4031) if yyrg4031 { copy(yyv4031, yyv24031) } } else if yyl4031 != len(yyv4031) { yyv4031 = yyv4031[:yyl4031] yyc4031 = true } yyj4031 := 0 for ; yyj4031 < yyrr4031; yyj4031++ { yyh4031.ElemContainerState(yyj4031) if r.TryDecodeAsNil() { yyv4031[yyj4031] = ContainerImage{} } else { yyv4032 := &yyv4031[yyj4031] yyv4032.CodecDecodeSelf(d) } } if yyrt4031 { for ; yyj4031 < yyl4031; yyj4031++ { yyv4031 = append(yyv4031, ContainerImage{}) yyh4031.ElemContainerState(yyj4031) if r.TryDecodeAsNil() { yyv4031[yyj4031] = ContainerImage{} } else { yyv4033 := &yyv4031[yyj4031] yyv4033.CodecDecodeSelf(d) } } } } else { yyj4031 := 0 for ; !r.CheckBreak(); yyj4031++ { if yyj4031 >= len(yyv4031) { yyv4031 = append(yyv4031, ContainerImage{}) // var yyz4031 ContainerImage yyc4031 = true } yyh4031.ElemContainerState(yyj4031) if yyj4031 < len(yyv4031) { if r.TryDecodeAsNil() { yyv4031[yyj4031] = ContainerImage{} } else { yyv4034 := &yyv4031[yyj4031] yyv4034.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4031 < len(yyv4031) { yyv4031 = yyv4031[:yyj4031] yyc4031 = true } else if yyj4031 == 0 && yyv4031 == nil { yyv4031 = []ContainerImage{} yyc4031 = true } } yyh4031.End() if yyc4031 { *v = yyv4031 } } 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 yyk4035, yyv4035 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk4035.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4036 := &yyv4035 yym4037 := z.EncBinary() _ = yym4037 if false { } else if z.HasExtensions() && z.EncExt(yy4036) { } else if !yym4037 && z.IsJSONHandle() { z.EncJSONMarshal(yy4036) } else { z.EncFallback(yy4036) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4038 := *v yyl4038 := r.ReadMapStart() yybh4038 := z.DecBasicHandle() if yyv4038 == nil { yyrl4038, _ := z.DecInferLen(yyl4038, yybh4038.MaxInitLen, 40) yyv4038 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4038) *v = yyv4038 } var yymk4038 ResourceName var yymv4038 pkg3_resource.Quantity var yymg4038 bool if yybh4038.MapValueReset { yymg4038 = true } if yyl4038 > 0 { for yyj4038 := 0; yyj4038 < yyl4038; yyj4038++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4038 = "" } else { yymk4038 = ResourceName(r.DecodeString()) } if yymg4038 { yymv4038 = yyv4038[yymk4038] } else { yymv4038 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4038 = pkg3_resource.Quantity{} } else { yyv4040 := &yymv4038 yym4041 := z.DecBinary() _ = yym4041 if false { } else if z.HasExtensions() && z.DecExt(yyv4040) { } else if !yym4041 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4040) } else { z.DecFallback(yyv4040, false) } } if yyv4038 != nil { yyv4038[yymk4038] = yymv4038 } } } else if yyl4038 < 0 { for yyj4038 := 0; !r.CheckBreak(); yyj4038++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4038 = "" } else { yymk4038 = ResourceName(r.DecodeString()) } if yymg4038 { yymv4038 = yyv4038[yymk4038] } else { yymv4038 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4038 = pkg3_resource.Quantity{} } else { yyv4043 := &yymv4038 yym4044 := z.DecBinary() _ = yym4044 if false { } else if z.HasExtensions() && z.DecExt(yyv4043) { } else if !yym4044 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4043) } else { z.DecFallback(yyv4043, false) } } if yyv4038 != nil { yyv4038[yymk4038] = yymv4038 } } } // 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 _, yyv4045 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4046 := &yyv4045 yy4046.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 yyv4047 := *v yyh4047, yyl4047 := z.DecSliceHelperStart() var yyc4047 bool if yyl4047 == 0 { if yyv4047 == nil { yyv4047 = []Node{} yyc4047 = true } else if len(yyv4047) != 0 { yyv4047 = yyv4047[:0] yyc4047 = true } } else if yyl4047 > 0 { var yyrr4047, yyrl4047 int var yyrt4047 bool if yyl4047 > cap(yyv4047) { yyrg4047 := len(yyv4047) > 0 yyv24047 := yyv4047 yyrl4047, yyrt4047 = z.DecInferLen(yyl4047, z.DecBasicHandle().MaxInitLen, 488) if yyrt4047 { if yyrl4047 <= cap(yyv4047) { yyv4047 = yyv4047[:yyrl4047] } else { yyv4047 = make([]Node, yyrl4047) } } else { yyv4047 = make([]Node, yyrl4047) } yyc4047 = true yyrr4047 = len(yyv4047) if yyrg4047 { copy(yyv4047, yyv24047) } } else if yyl4047 != len(yyv4047) { yyv4047 = yyv4047[:yyl4047] yyc4047 = true } yyj4047 := 0 for ; yyj4047 < yyrr4047; yyj4047++ { yyh4047.ElemContainerState(yyj4047) if r.TryDecodeAsNil() { yyv4047[yyj4047] = Node{} } else { yyv4048 := &yyv4047[yyj4047] yyv4048.CodecDecodeSelf(d) } } if yyrt4047 { for ; yyj4047 < yyl4047; yyj4047++ { yyv4047 = append(yyv4047, Node{}) yyh4047.ElemContainerState(yyj4047) if r.TryDecodeAsNil() { yyv4047[yyj4047] = Node{} } else { yyv4049 := &yyv4047[yyj4047] yyv4049.CodecDecodeSelf(d) } } } } else { yyj4047 := 0 for ; !r.CheckBreak(); yyj4047++ { if yyj4047 >= len(yyv4047) { yyv4047 = append(yyv4047, Node{}) // var yyz4047 Node yyc4047 = true } yyh4047.ElemContainerState(yyj4047) if yyj4047 < len(yyv4047) { if r.TryDecodeAsNil() { yyv4047[yyj4047] = Node{} } else { yyv4050 := &yyv4047[yyj4047] yyv4050.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4047 < len(yyv4047) { yyv4047 = yyv4047[:yyj4047] yyc4047 = true } else if yyj4047 == 0 && yyv4047 == nil { yyv4047 = []Node{} yyc4047 = true } } yyh4047.End() if yyc4047 { *v = yyv4047 } } 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 _, yyv4051 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4051.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 yyv4052 := *v yyh4052, yyl4052 := z.DecSliceHelperStart() var yyc4052 bool if yyl4052 == 0 { if yyv4052 == nil { yyv4052 = []FinalizerName{} yyc4052 = true } else if len(yyv4052) != 0 { yyv4052 = yyv4052[:0] yyc4052 = true } } else if yyl4052 > 0 { var yyrr4052, yyrl4052 int var yyrt4052 bool if yyl4052 > cap(yyv4052) { yyrl4052, yyrt4052 = z.DecInferLen(yyl4052, z.DecBasicHandle().MaxInitLen, 16) if yyrt4052 { if yyrl4052 <= cap(yyv4052) { yyv4052 = yyv4052[:yyrl4052] } else { yyv4052 = make([]FinalizerName, yyrl4052) } } else { yyv4052 = make([]FinalizerName, yyrl4052) } yyc4052 = true yyrr4052 = len(yyv4052) } else if yyl4052 != len(yyv4052) { yyv4052 = yyv4052[:yyl4052] yyc4052 = true } yyj4052 := 0 for ; yyj4052 < yyrr4052; yyj4052++ { yyh4052.ElemContainerState(yyj4052) if r.TryDecodeAsNil() { yyv4052[yyj4052] = "" } else { yyv4052[yyj4052] = FinalizerName(r.DecodeString()) } } if yyrt4052 { for ; yyj4052 < yyl4052; yyj4052++ { yyv4052 = append(yyv4052, "") yyh4052.ElemContainerState(yyj4052) if r.TryDecodeAsNil() { yyv4052[yyj4052] = "" } else { yyv4052[yyj4052] = FinalizerName(r.DecodeString()) } } } } else { yyj4052 := 0 for ; !r.CheckBreak(); yyj4052++ { if yyj4052 >= len(yyv4052) { yyv4052 = append(yyv4052, "") // var yyz4052 FinalizerName yyc4052 = true } yyh4052.ElemContainerState(yyj4052) if yyj4052 < len(yyv4052) { if r.TryDecodeAsNil() { yyv4052[yyj4052] = "" } else { yyv4052[yyj4052] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4052 < len(yyv4052) { yyv4052 = yyv4052[:yyj4052] yyc4052 = true } else if yyj4052 == 0 && yyv4052 == nil { yyv4052 = []FinalizerName{} yyc4052 = true } } yyh4052.End() if yyc4052 { *v = yyv4052 } } 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 _, yyv4056 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4057 := &yyv4056 yy4057.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 yyv4058 := *v yyh4058, yyl4058 := z.DecSliceHelperStart() var yyc4058 bool if yyl4058 == 0 { if yyv4058 == nil { yyv4058 = []Namespace{} yyc4058 = true } else if len(yyv4058) != 0 { yyv4058 = yyv4058[:0] yyc4058 = true } } else if yyl4058 > 0 { var yyrr4058, yyrl4058 int var yyrt4058 bool if yyl4058 > cap(yyv4058) { yyrg4058 := len(yyv4058) > 0 yyv24058 := yyv4058 yyrl4058, yyrt4058 = z.DecInferLen(yyl4058, z.DecBasicHandle().MaxInitLen, 232) if yyrt4058 { if yyrl4058 <= cap(yyv4058) { yyv4058 = yyv4058[:yyrl4058] } else { yyv4058 = make([]Namespace, yyrl4058) } } else { yyv4058 = make([]Namespace, yyrl4058) } yyc4058 = true yyrr4058 = len(yyv4058) if yyrg4058 { copy(yyv4058, yyv24058) } } else if yyl4058 != len(yyv4058) { yyv4058 = yyv4058[:yyl4058] yyc4058 = true } yyj4058 := 0 for ; yyj4058 < yyrr4058; yyj4058++ { yyh4058.ElemContainerState(yyj4058) if r.TryDecodeAsNil() { yyv4058[yyj4058] = Namespace{} } else { yyv4059 := &yyv4058[yyj4058] yyv4059.CodecDecodeSelf(d) } } if yyrt4058 { for ; yyj4058 < yyl4058; yyj4058++ { yyv4058 = append(yyv4058, Namespace{}) yyh4058.ElemContainerState(yyj4058) if r.TryDecodeAsNil() { yyv4058[yyj4058] = Namespace{} } else { yyv4060 := &yyv4058[yyj4058] yyv4060.CodecDecodeSelf(d) } } } } else { yyj4058 := 0 for ; !r.CheckBreak(); yyj4058++ { if yyj4058 >= len(yyv4058) { yyv4058 = append(yyv4058, Namespace{}) // var yyz4058 Namespace yyc4058 = true } yyh4058.ElemContainerState(yyj4058) if yyj4058 < len(yyv4058) { if r.TryDecodeAsNil() { yyv4058[yyj4058] = Namespace{} } else { yyv4061 := &yyv4058[yyj4058] yyv4061.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4058 < len(yyv4058) { yyv4058 = yyv4058[:yyj4058] yyc4058 = true } else if yyj4058 == 0 && yyv4058 == nil { yyv4058 = []Namespace{} yyc4058 = true } } yyh4058.End() if yyc4058 { *v = yyv4058 } } 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 _, yyv4062 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4063 := &yyv4062 yy4063.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 yyv4064 := *v yyh4064, yyl4064 := z.DecSliceHelperStart() var yyc4064 bool if yyl4064 == 0 { if yyv4064 == nil { yyv4064 = []Event{} yyc4064 = true } else if len(yyv4064) != 0 { yyv4064 = yyv4064[:0] yyc4064 = true } } else if yyl4064 > 0 { var yyrr4064, yyrl4064 int var yyrt4064 bool if yyl4064 > cap(yyv4064) { yyrg4064 := len(yyv4064) > 0 yyv24064 := yyv4064 yyrl4064, yyrt4064 = z.DecInferLen(yyl4064, z.DecBasicHandle().MaxInitLen, 440) if yyrt4064 { if yyrl4064 <= cap(yyv4064) { yyv4064 = yyv4064[:yyrl4064] } else { yyv4064 = make([]Event, yyrl4064) } } else { yyv4064 = make([]Event, yyrl4064) } yyc4064 = true yyrr4064 = len(yyv4064) if yyrg4064 { copy(yyv4064, yyv24064) } } else if yyl4064 != len(yyv4064) { yyv4064 = yyv4064[:yyl4064] yyc4064 = true } yyj4064 := 0 for ; yyj4064 < yyrr4064; yyj4064++ { yyh4064.ElemContainerState(yyj4064) if r.TryDecodeAsNil() { yyv4064[yyj4064] = Event{} } else { yyv4065 := &yyv4064[yyj4064] yyv4065.CodecDecodeSelf(d) } } if yyrt4064 { for ; yyj4064 < yyl4064; yyj4064++ { yyv4064 = append(yyv4064, Event{}) yyh4064.ElemContainerState(yyj4064) if r.TryDecodeAsNil() { yyv4064[yyj4064] = Event{} } else { yyv4066 := &yyv4064[yyj4064] yyv4066.CodecDecodeSelf(d) } } } } else { yyj4064 := 0 for ; !r.CheckBreak(); yyj4064++ { if yyj4064 >= len(yyv4064) { yyv4064 = append(yyv4064, Event{}) // var yyz4064 Event yyc4064 = true } yyh4064.ElemContainerState(yyj4064) if yyj4064 < len(yyv4064) { if r.TryDecodeAsNil() { yyv4064[yyj4064] = Event{} } else { yyv4067 := &yyv4064[yyj4064] yyv4067.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4064 < len(yyv4064) { yyv4064 = yyv4064[:yyj4064] yyc4064 = true } else if yyj4064 == 0 && yyv4064 == nil { yyv4064 = []Event{} yyc4064 = true } } yyh4064.End() if yyc4064 { *v = yyv4064 } } func (x codecSelfer1234) encSliceruntime_Object(v []pkg8_runtime.Object, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4068 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv4068 == nil { r.EncodeNil() } else { yym4069 := z.EncBinary() _ = yym4069 if false { } else if z.HasExtensions() && z.EncExt(yyv4068) { } else { z.EncFallback(yyv4068) } } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg8_runtime.Object, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4070 := *v yyh4070, yyl4070 := z.DecSliceHelperStart() var yyc4070 bool if yyl4070 == 0 { if yyv4070 == nil { yyv4070 = []pkg8_runtime.Object{} yyc4070 = true } else if len(yyv4070) != 0 { yyv4070 = yyv4070[:0] yyc4070 = true } } else if yyl4070 > 0 { var yyrr4070, yyrl4070 int var yyrt4070 bool if yyl4070 > cap(yyv4070) { yyrg4070 := len(yyv4070) > 0 yyv24070 := yyv4070 yyrl4070, yyrt4070 = z.DecInferLen(yyl4070, z.DecBasicHandle().MaxInitLen, 16) if yyrt4070 { if yyrl4070 <= cap(yyv4070) { yyv4070 = yyv4070[:yyrl4070] } else { yyv4070 = make([]pkg8_runtime.Object, yyrl4070) } } else { yyv4070 = make([]pkg8_runtime.Object, yyrl4070) } yyc4070 = true yyrr4070 = len(yyv4070) if yyrg4070 { copy(yyv4070, yyv24070) } } else if yyl4070 != len(yyv4070) { yyv4070 = yyv4070[:yyl4070] yyc4070 = true } yyj4070 := 0 for ; yyj4070 < yyrr4070; yyj4070++ { yyh4070.ElemContainerState(yyj4070) if r.TryDecodeAsNil() { yyv4070[yyj4070] = nil } else { yyv4071 := &yyv4070[yyj4070] yym4072 := z.DecBinary() _ = yym4072 if false { } else if z.HasExtensions() && z.DecExt(yyv4071) { } else { z.DecFallback(yyv4071, true) } } } if yyrt4070 { for ; yyj4070 < yyl4070; yyj4070++ { yyv4070 = append(yyv4070, nil) yyh4070.ElemContainerState(yyj4070) if r.TryDecodeAsNil() { yyv4070[yyj4070] = nil } else { yyv4073 := &yyv4070[yyj4070] yym4074 := z.DecBinary() _ = yym4074 if false { } else if z.HasExtensions() && z.DecExt(yyv4073) { } else { z.DecFallback(yyv4073, true) } } } } } else { yyj4070 := 0 for ; !r.CheckBreak(); yyj4070++ { if yyj4070 >= len(yyv4070) { yyv4070 = append(yyv4070, nil) // var yyz4070 pkg8_runtime.Object yyc4070 = true } yyh4070.ElemContainerState(yyj4070) if yyj4070 < len(yyv4070) { if r.TryDecodeAsNil() { yyv4070[yyj4070] = nil } else { yyv4075 := &yyv4070[yyj4070] yym4076 := z.DecBinary() _ = yym4076 if false { } else if z.HasExtensions() && z.DecExt(yyv4075) { } else { z.DecFallback(yyv4075, true) } } } else { z.DecSwallow() } } if yyj4070 < len(yyv4070) { yyv4070 = yyv4070[:yyj4070] yyc4070 = true } else if yyj4070 == 0 && yyv4070 == nil { yyv4070 = []pkg8_runtime.Object{} yyc4070 = true } } yyh4070.End() if yyc4070 { *v = yyv4070 } } 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 _, yyv4077 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4078 := &yyv4077 yy4078.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 yyv4079 := *v yyh4079, yyl4079 := z.DecSliceHelperStart() var yyc4079 bool if yyl4079 == 0 { if yyv4079 == nil { yyv4079 = []LimitRangeItem{} yyc4079 = true } else if len(yyv4079) != 0 { yyv4079 = yyv4079[:0] yyc4079 = true } } else if yyl4079 > 0 { var yyrr4079, yyrl4079 int var yyrt4079 bool if yyl4079 > cap(yyv4079) { yyrg4079 := len(yyv4079) > 0 yyv24079 := yyv4079 yyrl4079, yyrt4079 = z.DecInferLen(yyl4079, z.DecBasicHandle().MaxInitLen, 56) if yyrt4079 { if yyrl4079 <= cap(yyv4079) { yyv4079 = yyv4079[:yyrl4079] } else { yyv4079 = make([]LimitRangeItem, yyrl4079) } } else { yyv4079 = make([]LimitRangeItem, yyrl4079) } yyc4079 = true yyrr4079 = len(yyv4079) if yyrg4079 { copy(yyv4079, yyv24079) } } else if yyl4079 != len(yyv4079) { yyv4079 = yyv4079[:yyl4079] yyc4079 = true } yyj4079 := 0 for ; yyj4079 < yyrr4079; yyj4079++ { yyh4079.ElemContainerState(yyj4079) if r.TryDecodeAsNil() { yyv4079[yyj4079] = LimitRangeItem{} } else { yyv4080 := &yyv4079[yyj4079] yyv4080.CodecDecodeSelf(d) } } if yyrt4079 { for ; yyj4079 < yyl4079; yyj4079++ { yyv4079 = append(yyv4079, LimitRangeItem{}) yyh4079.ElemContainerState(yyj4079) if r.TryDecodeAsNil() { yyv4079[yyj4079] = LimitRangeItem{} } else { yyv4081 := &yyv4079[yyj4079] yyv4081.CodecDecodeSelf(d) } } } } else { yyj4079 := 0 for ; !r.CheckBreak(); yyj4079++ { if yyj4079 >= len(yyv4079) { yyv4079 = append(yyv4079, LimitRangeItem{}) // var yyz4079 LimitRangeItem yyc4079 = true } yyh4079.ElemContainerState(yyj4079) if yyj4079 < len(yyv4079) { if r.TryDecodeAsNil() { yyv4079[yyj4079] = LimitRangeItem{} } else { yyv4082 := &yyv4079[yyj4079] yyv4082.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4079 < len(yyv4079) { yyv4079 = yyv4079[:yyj4079] yyc4079 = true } else if yyj4079 == 0 && yyv4079 == nil { yyv4079 = []LimitRangeItem{} yyc4079 = true } } yyh4079.End() if yyc4079 { *v = yyv4079 } } 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 _, yyv4083 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4084 := &yyv4083 yy4084.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 yyv4085 := *v yyh4085, yyl4085 := z.DecSliceHelperStart() var yyc4085 bool if yyl4085 == 0 { if yyv4085 == nil { yyv4085 = []LimitRange{} yyc4085 = true } else if len(yyv4085) != 0 { yyv4085 = yyv4085[:0] yyc4085 = true } } else if yyl4085 > 0 { var yyrr4085, yyrl4085 int var yyrt4085 bool if yyl4085 > cap(yyv4085) { yyrg4085 := len(yyv4085) > 0 yyv24085 := yyv4085 yyrl4085, yyrt4085 = z.DecInferLen(yyl4085, z.DecBasicHandle().MaxInitLen, 216) if yyrt4085 { if yyrl4085 <= cap(yyv4085) { yyv4085 = yyv4085[:yyrl4085] } else { yyv4085 = make([]LimitRange, yyrl4085) } } else { yyv4085 = make([]LimitRange, yyrl4085) } yyc4085 = true yyrr4085 = len(yyv4085) if yyrg4085 { copy(yyv4085, yyv24085) } } else if yyl4085 != len(yyv4085) { yyv4085 = yyv4085[:yyl4085] yyc4085 = true } yyj4085 := 0 for ; yyj4085 < yyrr4085; yyj4085++ { yyh4085.ElemContainerState(yyj4085) if r.TryDecodeAsNil() { yyv4085[yyj4085] = LimitRange{} } else { yyv4086 := &yyv4085[yyj4085] yyv4086.CodecDecodeSelf(d) } } if yyrt4085 { for ; yyj4085 < yyl4085; yyj4085++ { yyv4085 = append(yyv4085, LimitRange{}) yyh4085.ElemContainerState(yyj4085) if r.TryDecodeAsNil() { yyv4085[yyj4085] = LimitRange{} } else { yyv4087 := &yyv4085[yyj4085] yyv4087.CodecDecodeSelf(d) } } } } else { yyj4085 := 0 for ; !r.CheckBreak(); yyj4085++ { if yyj4085 >= len(yyv4085) { yyv4085 = append(yyv4085, LimitRange{}) // var yyz4085 LimitRange yyc4085 = true } yyh4085.ElemContainerState(yyj4085) if yyj4085 < len(yyv4085) { if r.TryDecodeAsNil() { yyv4085[yyj4085] = LimitRange{} } else { yyv4088 := &yyv4085[yyj4085] yyv4088.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4085 < len(yyv4085) { yyv4085 = yyv4085[:yyj4085] yyc4085 = true } else if yyj4085 == 0 && yyv4085 == nil { yyv4085 = []LimitRange{} yyc4085 = true } } yyh4085.End() if yyc4085 { *v = yyv4085 } } 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 _, yyv4089 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4090 := &yyv4089 yy4090.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 yyv4091 := *v yyh4091, yyl4091 := z.DecSliceHelperStart() var yyc4091 bool if yyl4091 == 0 { if yyv4091 == nil { yyv4091 = []ResourceQuota{} yyc4091 = true } else if len(yyv4091) != 0 { yyv4091 = yyv4091[:0] yyc4091 = true } } else if yyl4091 > 0 { var yyrr4091, yyrl4091 int var yyrt4091 bool if yyl4091 > cap(yyv4091) { yyrg4091 := len(yyv4091) > 0 yyv24091 := yyv4091 yyrl4091, yyrt4091 = z.DecInferLen(yyl4091, z.DecBasicHandle().MaxInitLen, 216) if yyrt4091 { if yyrl4091 <= cap(yyv4091) { yyv4091 = yyv4091[:yyrl4091] } else { yyv4091 = make([]ResourceQuota, yyrl4091) } } else { yyv4091 = make([]ResourceQuota, yyrl4091) } yyc4091 = true yyrr4091 = len(yyv4091) if yyrg4091 { copy(yyv4091, yyv24091) } } else if yyl4091 != len(yyv4091) { yyv4091 = yyv4091[:yyl4091] yyc4091 = true } yyj4091 := 0 for ; yyj4091 < yyrr4091; yyj4091++ { yyh4091.ElemContainerState(yyj4091) if r.TryDecodeAsNil() { yyv4091[yyj4091] = ResourceQuota{} } else { yyv4092 := &yyv4091[yyj4091] yyv4092.CodecDecodeSelf(d) } } if yyrt4091 { for ; yyj4091 < yyl4091; yyj4091++ { yyv4091 = append(yyv4091, ResourceQuota{}) yyh4091.ElemContainerState(yyj4091) if r.TryDecodeAsNil() { yyv4091[yyj4091] = ResourceQuota{} } else { yyv4093 := &yyv4091[yyj4091] yyv4093.CodecDecodeSelf(d) } } } } else { yyj4091 := 0 for ; !r.CheckBreak(); yyj4091++ { if yyj4091 >= len(yyv4091) { yyv4091 = append(yyv4091, ResourceQuota{}) // var yyz4091 ResourceQuota yyc4091 = true } yyh4091.ElemContainerState(yyj4091) if yyj4091 < len(yyv4091) { if r.TryDecodeAsNil() { yyv4091[yyj4091] = ResourceQuota{} } else { yyv4094 := &yyv4091[yyj4091] yyv4094.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4091 < len(yyv4091) { yyv4091 = yyv4091[:yyj4091] yyc4091 = true } else if yyj4091 == 0 && yyv4091 == nil { yyv4091 = []ResourceQuota{} yyc4091 = true } } yyh4091.End() if yyc4091 { *v = yyv4091 } } 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 yyk4095, yyv4095 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym4096 := z.EncBinary() _ = yym4096 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk4095)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv4095 == nil { r.EncodeNil() } else { yym4097 := z.EncBinary() _ = yym4097 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4095)) } } } 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 yyv4098 := *v yyl4098 := r.ReadMapStart() yybh4098 := z.DecBasicHandle() if yyv4098 == nil { yyrl4098, _ := z.DecInferLen(yyl4098, yybh4098.MaxInitLen, 40) yyv4098 = make(map[string][]uint8, yyrl4098) *v = yyv4098 } var yymk4098 string var yymv4098 []uint8 var yymg4098 bool if yybh4098.MapValueReset { yymg4098 = true } if yyl4098 > 0 { for yyj4098 := 0; yyj4098 < yyl4098; yyj4098++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4098 = "" } else { yymk4098 = string(r.DecodeString()) } if yymg4098 { yymv4098 = yyv4098[yymk4098] } else { yymv4098 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4098 = nil } else { yyv4100 := &yymv4098 yym4101 := z.DecBinary() _ = yym4101 if false { } else { *yyv4100 = r.DecodeBytes(*(*[]byte)(yyv4100), false, false) } } if yyv4098 != nil { yyv4098[yymk4098] = yymv4098 } } } else if yyl4098 < 0 { for yyj4098 := 0; !r.CheckBreak(); yyj4098++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4098 = "" } else { yymk4098 = string(r.DecodeString()) } if yymg4098 { yymv4098 = yyv4098[yymk4098] } else { yymv4098 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4098 = nil } else { yyv4103 := &yymv4098 yym4104 := z.DecBinary() _ = yym4104 if false { } else { *yyv4103 = r.DecodeBytes(*(*[]byte)(yyv4103), false, false) } } if yyv4098 != nil { yyv4098[yymk4098] = yymv4098 } } } // 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 _, yyv4105 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4106 := &yyv4105 yy4106.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 yyv4107 := *v yyh4107, yyl4107 := z.DecSliceHelperStart() var yyc4107 bool if yyl4107 == 0 { if yyv4107 == nil { yyv4107 = []Secret{} yyc4107 = true } else if len(yyv4107) != 0 { yyv4107 = yyv4107[:0] yyc4107 = true } } else if yyl4107 > 0 { var yyrr4107, yyrl4107 int var yyrt4107 bool if yyl4107 > cap(yyv4107) { yyrg4107 := len(yyv4107) > 0 yyv24107 := yyv4107 yyrl4107, yyrt4107 = z.DecInferLen(yyl4107, z.DecBasicHandle().MaxInitLen, 216) if yyrt4107 { if yyrl4107 <= cap(yyv4107) { yyv4107 = yyv4107[:yyrl4107] } else { yyv4107 = make([]Secret, yyrl4107) } } else { yyv4107 = make([]Secret, yyrl4107) } yyc4107 = true yyrr4107 = len(yyv4107) if yyrg4107 { copy(yyv4107, yyv24107) } } else if yyl4107 != len(yyv4107) { yyv4107 = yyv4107[:yyl4107] yyc4107 = true } yyj4107 := 0 for ; yyj4107 < yyrr4107; yyj4107++ { yyh4107.ElemContainerState(yyj4107) if r.TryDecodeAsNil() { yyv4107[yyj4107] = Secret{} } else { yyv4108 := &yyv4107[yyj4107] yyv4108.CodecDecodeSelf(d) } } if yyrt4107 { for ; yyj4107 < yyl4107; yyj4107++ { yyv4107 = append(yyv4107, Secret{}) yyh4107.ElemContainerState(yyj4107) if r.TryDecodeAsNil() { yyv4107[yyj4107] = Secret{} } else { yyv4109 := &yyv4107[yyj4107] yyv4109.CodecDecodeSelf(d) } } } } else { yyj4107 := 0 for ; !r.CheckBreak(); yyj4107++ { if yyj4107 >= len(yyv4107) { yyv4107 = append(yyv4107, Secret{}) // var yyz4107 Secret yyc4107 = true } yyh4107.ElemContainerState(yyj4107) if yyj4107 < len(yyv4107) { if r.TryDecodeAsNil() { yyv4107[yyj4107] = Secret{} } else { yyv4110 := &yyv4107[yyj4107] yyv4110.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4107 < len(yyv4107) { yyv4107 = yyv4107[:yyj4107] yyc4107 = true } else if yyj4107 == 0 && yyv4107 == nil { yyv4107 = []Secret{} yyc4107 = true } } yyh4107.End() if yyc4107 { *v = yyv4107 } } 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 _, yyv4111 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4112 := &yyv4111 yy4112.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 yyv4113 := *v yyh4113, yyl4113 := z.DecSliceHelperStart() var yyc4113 bool if yyl4113 == 0 { if yyv4113 == nil { yyv4113 = []ConfigMap{} yyc4113 = true } else if len(yyv4113) != 0 { yyv4113 = yyv4113[:0] yyc4113 = true } } else if yyl4113 > 0 { var yyrr4113, yyrl4113 int var yyrt4113 bool if yyl4113 > cap(yyv4113) { yyrg4113 := len(yyv4113) > 0 yyv24113 := yyv4113 yyrl4113, yyrt4113 = z.DecInferLen(yyl4113, z.DecBasicHandle().MaxInitLen, 200) if yyrt4113 { if yyrl4113 <= cap(yyv4113) { yyv4113 = yyv4113[:yyrl4113] } else { yyv4113 = make([]ConfigMap, yyrl4113) } } else { yyv4113 = make([]ConfigMap, yyrl4113) } yyc4113 = true yyrr4113 = len(yyv4113) if yyrg4113 { copy(yyv4113, yyv24113) } } else if yyl4113 != len(yyv4113) { yyv4113 = yyv4113[:yyl4113] yyc4113 = true } yyj4113 := 0 for ; yyj4113 < yyrr4113; yyj4113++ { yyh4113.ElemContainerState(yyj4113) if r.TryDecodeAsNil() { yyv4113[yyj4113] = ConfigMap{} } else { yyv4114 := &yyv4113[yyj4113] yyv4114.CodecDecodeSelf(d) } } if yyrt4113 { for ; yyj4113 < yyl4113; yyj4113++ { yyv4113 = append(yyv4113, ConfigMap{}) yyh4113.ElemContainerState(yyj4113) if r.TryDecodeAsNil() { yyv4113[yyj4113] = ConfigMap{} } else { yyv4115 := &yyv4113[yyj4113] yyv4115.CodecDecodeSelf(d) } } } } else { yyj4113 := 0 for ; !r.CheckBreak(); yyj4113++ { if yyj4113 >= len(yyv4113) { yyv4113 = append(yyv4113, ConfigMap{}) // var yyz4113 ConfigMap yyc4113 = true } yyh4113.ElemContainerState(yyj4113) if yyj4113 < len(yyv4113) { if r.TryDecodeAsNil() { yyv4113[yyj4113] = ConfigMap{} } else { yyv4116 := &yyv4113[yyj4113] yyv4116.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4113 < len(yyv4113) { yyv4113 = yyv4113[:yyj4113] yyc4113 = true } else if yyj4113 == 0 && yyv4113 == nil { yyv4113 = []ConfigMap{} yyc4113 = true } } yyh4113.End() if yyc4113 { *v = yyv4113 } } 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 _, yyv4117 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4118 := &yyv4117 yy4118.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 yyv4119 := *v yyh4119, yyl4119 := z.DecSliceHelperStart() var yyc4119 bool if yyl4119 == 0 { if yyv4119 == nil { yyv4119 = []ComponentCondition{} yyc4119 = true } else if len(yyv4119) != 0 { yyv4119 = yyv4119[:0] yyc4119 = true } } else if yyl4119 > 0 { var yyrr4119, yyrl4119 int var yyrt4119 bool if yyl4119 > cap(yyv4119) { yyrg4119 := len(yyv4119) > 0 yyv24119 := yyv4119 yyrl4119, yyrt4119 = z.DecInferLen(yyl4119, z.DecBasicHandle().MaxInitLen, 64) if yyrt4119 { if yyrl4119 <= cap(yyv4119) { yyv4119 = yyv4119[:yyrl4119] } else { yyv4119 = make([]ComponentCondition, yyrl4119) } } else { yyv4119 = make([]ComponentCondition, yyrl4119) } yyc4119 = true yyrr4119 = len(yyv4119) if yyrg4119 { copy(yyv4119, yyv24119) } } else if yyl4119 != len(yyv4119) { yyv4119 = yyv4119[:yyl4119] yyc4119 = true } yyj4119 := 0 for ; yyj4119 < yyrr4119; yyj4119++ { yyh4119.ElemContainerState(yyj4119) if r.TryDecodeAsNil() { yyv4119[yyj4119] = ComponentCondition{} } else { yyv4120 := &yyv4119[yyj4119] yyv4120.CodecDecodeSelf(d) } } if yyrt4119 { for ; yyj4119 < yyl4119; yyj4119++ { yyv4119 = append(yyv4119, ComponentCondition{}) yyh4119.ElemContainerState(yyj4119) if r.TryDecodeAsNil() { yyv4119[yyj4119] = ComponentCondition{} } else { yyv4121 := &yyv4119[yyj4119] yyv4121.CodecDecodeSelf(d) } } } } else { yyj4119 := 0 for ; !r.CheckBreak(); yyj4119++ { if yyj4119 >= len(yyv4119) { yyv4119 = append(yyv4119, ComponentCondition{}) // var yyz4119 ComponentCondition yyc4119 = true } yyh4119.ElemContainerState(yyj4119) if yyj4119 < len(yyv4119) { if r.TryDecodeAsNil() { yyv4119[yyj4119] = ComponentCondition{} } else { yyv4122 := &yyv4119[yyj4119] yyv4122.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4119 < len(yyv4119) { yyv4119 = yyv4119[:yyj4119] yyc4119 = true } else if yyj4119 == 0 && yyv4119 == nil { yyv4119 = []ComponentCondition{} yyc4119 = true } } yyh4119.End() if yyc4119 { *v = yyv4119 } } 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 _, yyv4123 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4124 := &yyv4123 yy4124.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 yyv4125 := *v yyh4125, yyl4125 := z.DecSliceHelperStart() var yyc4125 bool if yyl4125 == 0 { if yyv4125 == nil { yyv4125 = []ComponentStatus{} yyc4125 = true } else if len(yyv4125) != 0 { yyv4125 = yyv4125[:0] yyc4125 = true } } else if yyl4125 > 0 { var yyrr4125, yyrl4125 int var yyrt4125 bool if yyl4125 > cap(yyv4125) { yyrg4125 := len(yyv4125) > 0 yyv24125 := yyv4125 yyrl4125, yyrt4125 = z.DecInferLen(yyl4125, z.DecBasicHandle().MaxInitLen, 216) if yyrt4125 { if yyrl4125 <= cap(yyv4125) { yyv4125 = yyv4125[:yyrl4125] } else { yyv4125 = make([]ComponentStatus, yyrl4125) } } else { yyv4125 = make([]ComponentStatus, yyrl4125) } yyc4125 = true yyrr4125 = len(yyv4125) if yyrg4125 { copy(yyv4125, yyv24125) } } else if yyl4125 != len(yyv4125) { yyv4125 = yyv4125[:yyl4125] yyc4125 = true } yyj4125 := 0 for ; yyj4125 < yyrr4125; yyj4125++ { yyh4125.ElemContainerState(yyj4125) if r.TryDecodeAsNil() { yyv4125[yyj4125] = ComponentStatus{} } else { yyv4126 := &yyv4125[yyj4125] yyv4126.CodecDecodeSelf(d) } } if yyrt4125 { for ; yyj4125 < yyl4125; yyj4125++ { yyv4125 = append(yyv4125, ComponentStatus{}) yyh4125.ElemContainerState(yyj4125) if r.TryDecodeAsNil() { yyv4125[yyj4125] = ComponentStatus{} } else { yyv4127 := &yyv4125[yyj4125] yyv4127.CodecDecodeSelf(d) } } } } else { yyj4125 := 0 for ; !r.CheckBreak(); yyj4125++ { if yyj4125 >= len(yyv4125) { yyv4125 = append(yyv4125, ComponentStatus{}) // var yyz4125 ComponentStatus yyc4125 = true } yyh4125.ElemContainerState(yyj4125) if yyj4125 < len(yyv4125) { if r.TryDecodeAsNil() { yyv4125[yyj4125] = ComponentStatus{} } else { yyv4128 := &yyv4125[yyj4125] yyv4128.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4125 < len(yyv4125) { yyv4125 = yyv4125[:yyj4125] yyc4125 = true } else if yyj4125 == 0 && yyv4125 == nil { yyv4125 = []ComponentStatus{} yyc4125 = true } } yyh4125.End() if yyc4125 { *v = yyv4125 } }