/* 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" pkg6_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 pkg6_runtime.Object var v3 pkg1_types.UID var v4 pkg5_intstr.IntOrString var v5 pkg4_inf.Dec var v6 time.Time _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6 } } 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 [17]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.Cinder != nil && x.Cinder != nil yyq82[13] = x.VolumeSource.CephFS != nil && x.CephFS != nil yyq82[14] = x.VolumeSource.Flocker != nil && x.Flocker != nil yyq82[15] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil yyq82[16] = x.VolumeSource.FC != nil && x.FC != nil var yynn82 int if yyr82 || yy2arr82 { r.EncodeArrayStart(17) } 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.Cinder == nil { yyn97 = true goto LABEL97 } LABEL97: if yyr82 || yy2arr82 { if yyn97 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[12] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn97 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn98 bool if x.VolumeSource.CephFS == nil { yyn98 = true goto LABEL98 } LABEL98: if yyr82 || yy2arr82 { if yyn98 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[13] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn98 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn99 bool if x.VolumeSource.Flocker == nil { yyn99 = true goto LABEL99 } LABEL99: if yyr82 || yy2arr82 { if yyn99 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[14] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn99 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn100 bool if x.VolumeSource.DownwardAPI == nil { yyn100 = true goto LABEL100 } LABEL100: if yyr82 || yy2arr82 { if yyn100 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[15] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn100 { r.EncodeNil() } else { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } } var yyn101 bool if x.VolumeSource.FC == nil { yyn101 = true goto LABEL101 } LABEL101: if yyr82 || yy2arr82 { if yyn101 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[16] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn101 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.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 yym102 := z.DecBinary() _ = yym102 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct103 := r.ContainerType() if yyct103 == codecSelferValueTypeMap1234 { yyl103 := r.ReadMapStart() if yyl103 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl103, d) } } else if yyct103 == codecSelferValueTypeArray1234 { yyl103 := r.ReadArrayStart() if yyl103 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl103, 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 yys104Slc = z.DecScratchBuffer() // default slice to decode into _ = yys104Slc var yyhl104 bool = l >= 0 for yyj104 := 0; ; yyj104++ { if yyhl104 { if yyj104 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys104Slc = r.DecodeBytes(yys104Slc, true, true) yys104 := string(yys104Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys104 { 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 "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) } default: z.DecStructFieldNotFound(-1, yys104) } // end switch yys104 } // end for yyj104 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 yyj122 int var yyb122 bool var yyhl122 bool = l >= 0 yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { 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) } for { yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj122-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 { yym140 := z.EncBinary() _ = yym140 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep141 := !z.EncBinary() yy2arr141 := z.EncBasicHandle().StructToArray var yyq141 [16]bool _, _, _ = yysep141, yyq141, yy2arr141 const yyr141 bool = false yyq141[0] = x.HostPath != nil yyq141[1] = x.EmptyDir != nil yyq141[2] = x.GCEPersistentDisk != nil yyq141[3] = x.AWSElasticBlockStore != nil yyq141[4] = x.GitRepo != nil yyq141[5] = x.Secret != nil yyq141[6] = x.NFS != nil yyq141[7] = x.ISCSI != nil yyq141[8] = x.Glusterfs != nil yyq141[9] = x.PersistentVolumeClaim != nil yyq141[10] = x.RBD != nil yyq141[11] = x.Cinder != nil yyq141[12] = x.CephFS != nil yyq141[13] = x.Flocker != nil yyq141[14] = x.DownwardAPI != nil yyq141[15] = x.FC != nil var yynn141 int if yyr141 || yy2arr141 { r.EncodeArrayStart(16) } else { yynn141 = 0 for _, b := range yyq141 { if b { yynn141++ } } r.EncodeMapStart(yynn141) yynn141 = 0 } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[0] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[1] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[4] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[5] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[6] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[8] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[10] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[11] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[11] { 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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[12] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[12] { 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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[13] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[13] { 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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[14] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[14] { 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 yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[15] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[15] { 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 yyr141 || yy2arr141 { 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 yym158 := z.DecBinary() _ = yym158 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct159 := r.ContainerType() if yyct159 == codecSelferValueTypeMap1234 { yyl159 := r.ReadMapStart() if yyl159 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl159, d) } } else if yyct159 == codecSelferValueTypeArray1234 { yyl159 := r.ReadArrayStart() if yyl159 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl159, 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 yys160Slc = z.DecScratchBuffer() // default slice to decode into _ = yys160Slc var yyhl160 bool = l >= 0 for yyj160 := 0; ; yyj160++ { if yyhl160 { if yyj160 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys160Slc = r.DecodeBytes(yys160Slc, true, true) yys160 := string(yys160Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys160 { 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 "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) } default: z.DecStructFieldNotFound(-1, yys160) } // end switch yys160 } // end for yyj160 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 yyj177 int var yyb177 bool var yyhl177 bool = l >= 0 yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { 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) } for { yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj177-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 { yym194 := z.EncBinary() _ = yym194 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep195 := !z.EncBinary() yy2arr195 := z.EncBasicHandle().StructToArray var yyq195 [11]bool _, _, _ = yysep195, yyq195, yy2arr195 const yyr195 bool = false yyq195[0] = x.GCEPersistentDisk != nil yyq195[1] = x.AWSElasticBlockStore != nil yyq195[2] = x.HostPath != nil yyq195[3] = x.Glusterfs != nil yyq195[4] = x.NFS != nil yyq195[5] = x.RBD != nil yyq195[6] = x.ISCSI != nil yyq195[7] = x.Cinder != nil yyq195[8] = x.CephFS != nil yyq195[9] = x.FC != nil yyq195[10] = x.Flocker != nil var yynn195 int if yyr195 || yy2arr195 { r.EncodeArrayStart(11) } else { yynn195 = 0 for _, b := range yyq195 { if b { yynn195++ } } r.EncodeMapStart(yynn195) yynn195 = 0 } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[2] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[3] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[4] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[5] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[6] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[7] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[7] { 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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[8] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[8] { 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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[9] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[9] { 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 yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[10] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[10] { 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 yyr195 || yy2arr195 { 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 yym207 := z.DecBinary() _ = yym207 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct208 := r.ContainerType() if yyct208 == codecSelferValueTypeMap1234 { yyl208 := r.ReadMapStart() if yyl208 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl208, d) } } else if yyct208 == codecSelferValueTypeArray1234 { yyl208 := r.ReadArrayStart() if yyl208 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl208, 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 yys209Slc = z.DecScratchBuffer() // default slice to decode into _ = yys209Slc var yyhl209 bool = l >= 0 for yyj209 := 0; ; yyj209++ { if yyhl209 { if yyj209 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys209Slc = r.DecodeBytes(yys209Slc, true, true) yys209 := string(yys209Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys209 { 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 "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) } default: z.DecStructFieldNotFound(-1, yys209) } // end switch yys209 } // end for yyj209 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 yyj221 int var yyb221 bool var yyhl221 bool = l >= 0 yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { 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) } for { yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj221-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 { yym233 := z.EncBinary() _ = yym233 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep234 := !z.EncBinary() yy2arr234 := z.EncBasicHandle().StructToArray var yyq234 [2]bool _, _, _ = yysep234, yyq234, yy2arr234 const yyr234 bool = false yyq234[1] = x.ReadOnly != false var yynn234 int if yyr234 || yy2arr234 { r.EncodeArrayStart(2) } else { yynn234 = 1 for _, b := range yyq234 { if b { yynn234++ } } r.EncodeMapStart(yynn234) yynn234 = 0 } if yyr234 || yy2arr234 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym236 := z.EncBinary() _ = yym236 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) yym237 := z.EncBinary() _ = yym237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } if yyr234 || yy2arr234 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq234[1] { yym239 := z.EncBinary() _ = yym239 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq234[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym240 := z.EncBinary() _ = yym240 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr234 || yy2arr234 { 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 yym241 := z.DecBinary() _ = yym241 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct242 := r.ContainerType() if yyct242 == codecSelferValueTypeMap1234 { yyl242 := r.ReadMapStart() if yyl242 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl242, d) } } else if yyct242 == codecSelferValueTypeArray1234 { yyl242 := r.ReadArrayStart() if yyl242 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl242, 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 yys243Slc = z.DecScratchBuffer() // default slice to decode into _ = yys243Slc var yyhl243 bool = l >= 0 for yyj243 := 0; ; yyj243++ { if yyhl243 { if yyj243 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys243Slc = r.DecodeBytes(yys243Slc, true, true) yys243 := string(yys243Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys243 { 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, yys243) } // end switch yys243 } // end for yyj243 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 yyj246 int var yyb246 bool var yyhl246 bool = l >= 0 yyj246++ if yyhl246 { yyb246 = yyj246 > l } else { yyb246 = r.CheckBreak() } if yyb246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } yyj246++ if yyhl246 { yyb246 = yyj246 > l } else { yyb246 = r.CheckBreak() } if yyb246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj246++ if yyhl246 { yyb246 = yyj246 > l } else { yyb246 = r.CheckBreak() } if yyb246 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj246-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 { yym249 := z.EncBinary() _ = yym249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep250 := !z.EncBinary() yy2arr250 := z.EncBasicHandle().StructToArray var yyq250 [5]bool _, _, _ = yysep250, yyq250, yy2arr250 const yyr250 bool = false yyq250[0] = x.Kind != "" yyq250[1] = x.APIVersion != "" yyq250[2] = true yyq250[3] = true yyq250[4] = true var yynn250 int if yyr250 || yy2arr250 { r.EncodeArrayStart(5) } else { yynn250 = 0 for _, b := range yyq250 { if b { yynn250++ } } r.EncodeMapStart(yynn250) yynn250 = 0 } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[0] { yym252 := z.EncBinary() _ = yym252 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq250[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym253 := z.EncBinary() _ = yym253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[1] { yym255 := z.EncBinary() _ = yym255 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq250[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym256 := z.EncBinary() _ = yym256 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[2] { yy258 := &x.ObjectMeta yy258.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq250[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy259 := &x.ObjectMeta yy259.CodecEncodeSelf(e) } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[3] { yy261 := &x.Spec yy261.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq250[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy262 := &x.Spec yy262.CodecEncodeSelf(e) } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[4] { yy264 := &x.Status yy264.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq250[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy265 := &x.Status yy265.CodecEncodeSelf(e) } } if yyr250 || yy2arr250 { 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 yym266 := z.DecBinary() _ = yym266 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct267 := r.ContainerType() if yyct267 == codecSelferValueTypeMap1234 { yyl267 := r.ReadMapStart() if yyl267 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl267, d) } } else if yyct267 == codecSelferValueTypeArray1234 { yyl267 := r.ReadArrayStart() if yyl267 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl267, 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 yys268Slc = z.DecScratchBuffer() // default slice to decode into _ = yys268Slc var yyhl268 bool = l >= 0 for yyj268 := 0; ; yyj268++ { if yyhl268 { if yyj268 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys268Slc = r.DecodeBytes(yys268Slc, true, true) yys268 := string(yys268Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys268 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv271 := &x.ObjectMeta yyv271.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv272 := &x.Spec yyv272.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv273 := &x.Status yyv273.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys268) } // end switch yys268 } // end for yyj268 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 yyj274 int var yyb274 bool var yyhl274 bool = l >= 0 yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv277 := &x.ObjectMeta yyv277.CodecDecodeSelf(d) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv278 := &x.Spec yyv278.CodecDecodeSelf(d) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv279 := &x.Status yyv279.CodecDecodeSelf(d) } for { yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj274-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 { yym280 := z.EncBinary() _ = yym280 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep281 := !z.EncBinary() yy2arr281 := z.EncBasicHandle().StructToArray var yyq281 [15]bool _, _, _ = yysep281, yyq281, yy2arr281 const yyr281 bool = false yyq281[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq281[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq281[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil yyq281[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq281[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil yyq281[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil yyq281[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil yyq281[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil yyq281[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil yyq281[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil yyq281[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil yyq281[12] = len(x.AccessModes) != 0 yyq281[13] = x.ClaimRef != nil yyq281[14] = x.PersistentVolumeReclaimPolicy != "" var yynn281 int if yyr281 || yy2arr281 { r.EncodeArrayStart(15) } else { yynn281 = 1 for _, b := range yyq281 { if b { yynn281++ } } r.EncodeMapStart(yynn281) yynn281 = 0 } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } var yyn283 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn283 = true goto LABEL283 } LABEL283: if yyr281 || yy2arr281 { if yyn283 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn283 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn284 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn284 = true goto LABEL284 } LABEL284: if yyr281 || yy2arr281 { if yyn284 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn284 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn285 bool if x.PersistentVolumeSource.HostPath == nil { yyn285 = true goto LABEL285 } LABEL285: if yyr281 || yy2arr281 { if yyn285 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[3] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn285 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn286 bool if x.PersistentVolumeSource.Glusterfs == nil { yyn286 = true goto LABEL286 } LABEL286: if yyr281 || yy2arr281 { if yyn286 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[4] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn286 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn287 bool if x.PersistentVolumeSource.NFS == nil { yyn287 = true goto LABEL287 } LABEL287: if yyr281 || yy2arr281 { if yyn287 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[5] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn287 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn288 bool if x.PersistentVolumeSource.RBD == nil { yyn288 = true goto LABEL288 } LABEL288: if yyr281 || yy2arr281 { if yyn288 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[6] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn288 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn289 bool if x.PersistentVolumeSource.ISCSI == nil { yyn289 = true goto LABEL289 } LABEL289: if yyr281 || yy2arr281 { if yyn289 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn289 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn290 bool if x.PersistentVolumeSource.Cinder == nil { yyn290 = true goto LABEL290 } LABEL290: if yyr281 || yy2arr281 { if yyn290 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[8] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn290 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn291 bool if x.PersistentVolumeSource.CephFS == nil { yyn291 = true goto LABEL291 } LABEL291: if yyr281 || yy2arr281 { if yyn291 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[9] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn291 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn292 bool if x.PersistentVolumeSource.FC == nil { yyn292 = true goto LABEL292 } LABEL292: if yyr281 || yy2arr281 { if yyn292 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[10] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn292 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn293 bool if x.PersistentVolumeSource.Flocker == nil { yyn293 = true goto LABEL293 } LABEL293: if yyr281 || yy2arr281 { if yyn293 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[11] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn293 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[12] { if x.AccessModes == nil { r.EncodeNil() } else { yym295 := z.EncBinary() _ = yym295 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq281[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym296 := z.EncBinary() _ = yym296 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[13] { if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq281[13] { 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 yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[14] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq281[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } if yyr281 || yy2arr281 { 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 yym299 := z.DecBinary() _ = yym299 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct300 := r.ContainerType() if yyct300 == codecSelferValueTypeMap1234 { yyl300 := r.ReadMapStart() if yyl300 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl300, d) } } else if yyct300 == codecSelferValueTypeArray1234 { yyl300 := r.ReadArrayStart() if yyl300 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl300, 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 yys301Slc = z.DecScratchBuffer() // default slice to decode into _ = yys301Slc var yyhl301 bool = l >= 0 for yyj301 := 0; ; yyj301++ { if yyhl301 { if yyj301 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys301Slc = r.DecodeBytes(yys301Slc, true, true) yys301 := string(yys301Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys301 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv302 := &x.Capacity yyv302.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "hostPath": if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "glusterfs": if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "nfs": if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "rbd": if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "iscsi": if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "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 "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv314 := &x.AccessModes yym315 := z.DecBinary() _ = yym315 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv314), d) } } case "claimRef": if r.TryDecodeAsNil() { if x.ClaimRef != nil { x.ClaimRef = nil } } else { if x.ClaimRef == nil { x.ClaimRef = new(ObjectReference) } x.ClaimRef.CodecDecodeSelf(d) } case "persistentVolumeReclaimPolicy": if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys301) } // end switch yys301 } // end for yyj301 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 yyj318 int var yyb318 bool var yyhl318 bool = l >= 0 yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv319 := &x.Capacity yyv319.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv331 := &x.AccessModes yym332 := z.DecBinary() _ = yym332 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv331), d) } } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { 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) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj318-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym335 := z.EncBinary() _ = yym335 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 yym336 := z.DecBinary() _ = yym336 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 { yym337 := z.EncBinary() _ = yym337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep338 := !z.EncBinary() yy2arr338 := z.EncBasicHandle().StructToArray var yyq338 [3]bool _, _, _ = yysep338, yyq338, yy2arr338 const yyr338 bool = false yyq338[0] = x.Phase != "" yyq338[1] = x.Message != "" yyq338[2] = x.Reason != "" var yynn338 int if yyr338 || yy2arr338 { r.EncodeArrayStart(3) } else { yynn338 = 0 for _, b := range yyq338 { if b { yynn338++ } } r.EncodeMapStart(yynn338) yynn338 = 0 } if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq338[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq338[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq338[1] { yym341 := z.EncBinary() _ = yym341 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq338[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym342 := z.EncBinary() _ = yym342 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq338[2] { yym344 := z.EncBinary() _ = yym344 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq338[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym345 := z.EncBinary() _ = yym345 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr338 || yy2arr338 { 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 yym346 := z.DecBinary() _ = yym346 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct347 := r.ContainerType() if yyct347 == codecSelferValueTypeMap1234 { yyl347 := r.ReadMapStart() if yyl347 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl347, d) } } else if yyct347 == codecSelferValueTypeArray1234 { yyl347 := r.ReadArrayStart() if yyl347 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl347, 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 yys348Slc = z.DecScratchBuffer() // default slice to decode into _ = yys348Slc var yyhl348 bool = l >= 0 for yyj348 := 0; ; yyj348++ { if yyhl348 { if yyj348 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys348Slc = r.DecodeBytes(yys348Slc, true, true) yys348 := string(yys348Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys348 { 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, yys348) } // end switch yys348 } // end for yyj348 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 yyj352 int var yyb352 bool var yyhl352 bool = l >= 0 yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } for { yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj352-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 { yym356 := z.EncBinary() _ = yym356 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep357 := !z.EncBinary() yy2arr357 := z.EncBasicHandle().StructToArray var yyq357 [4]bool _, _, _ = yysep357, yyq357, yy2arr357 const yyr357 bool = false yyq357[0] = x.Kind != "" yyq357[1] = x.APIVersion != "" yyq357[2] = true var yynn357 int if yyr357 || yy2arr357 { r.EncodeArrayStart(4) } else { yynn357 = 1 for _, b := range yyq357 { if b { yynn357++ } } r.EncodeMapStart(yynn357) yynn357 = 0 } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq357[0] { yym359 := z.EncBinary() _ = yym359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq357[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym360 := z.EncBinary() _ = yym360 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq357[1] { yym362 := z.EncBinary() _ = yym362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq357[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym363 := z.EncBinary() _ = yym363 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq357[2] { yy365 := &x.ListMeta yym366 := z.EncBinary() _ = yym366 if false { } else if z.HasExtensions() && z.EncExt(yy365) { } else { z.EncFallback(yy365) } } else { r.EncodeNil() } } else { if yyq357[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy367 := &x.ListMeta yym368 := z.EncBinary() _ = yym368 if false { } else if z.HasExtensions() && z.EncExt(yy367) { } else { z.EncFallback(yy367) } } } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym370 := z.EncBinary() _ = yym370 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 { yym371 := z.EncBinary() _ = yym371 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } if yyr357 || yy2arr357 { 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 yym372 := z.DecBinary() _ = yym372 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct373 := r.ContainerType() if yyct373 == codecSelferValueTypeMap1234 { yyl373 := r.ReadMapStart() if yyl373 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl373, d) } } else if yyct373 == codecSelferValueTypeArray1234 { yyl373 := r.ReadArrayStart() if yyl373 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl373, 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 yys374Slc = z.DecScratchBuffer() // default slice to decode into _ = yys374Slc var yyhl374 bool = l >= 0 for yyj374 := 0; ; yyj374++ { if yyhl374 { if yyj374 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys374Slc = r.DecodeBytes(yys374Slc, true, true) yys374 := string(yys374Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys374 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv377 := &x.ListMeta yym378 := z.DecBinary() _ = yym378 if false { } else if z.HasExtensions() && z.DecExt(yyv377) { } else { z.DecFallback(yyv377, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv379 := &x.Items yym380 := z.DecBinary() _ = yym380 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv379), d) } } default: z.DecStructFieldNotFound(-1, yys374) } // end switch yys374 } // end for yyj374 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 yyj381 int var yyb381 bool var yyhl381 bool = l >= 0 yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv384 := &x.ListMeta yym385 := z.DecBinary() _ = yym385 if false { } else if z.HasExtensions() && z.DecExt(yyv384) { } else { z.DecFallback(yyv384, false) } } yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv386 := &x.Items yym387 := z.DecBinary() _ = yym387 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv386), d) } } for { yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj381-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 { yym388 := z.EncBinary() _ = yym388 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep389 := !z.EncBinary() yy2arr389 := z.EncBasicHandle().StructToArray var yyq389 [5]bool _, _, _ = yysep389, yyq389, yy2arr389 const yyr389 bool = false yyq389[0] = x.Kind != "" yyq389[1] = x.APIVersion != "" yyq389[2] = true yyq389[3] = true yyq389[4] = true var yynn389 int if yyr389 || yy2arr389 { r.EncodeArrayStart(5) } else { yynn389 = 0 for _, b := range yyq389 { if b { yynn389++ } } r.EncodeMapStart(yynn389) yynn389 = 0 } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[0] { yym391 := z.EncBinary() _ = yym391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq389[0] { 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 yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[1] { yym394 := z.EncBinary() _ = yym394 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq389[1] { 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 yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[2] { yy397 := &x.ObjectMeta yy397.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq389[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy398 := &x.ObjectMeta yy398.CodecEncodeSelf(e) } } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[3] { yy400 := &x.Spec yy400.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq389[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy401 := &x.Spec yy401.CodecEncodeSelf(e) } } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[4] { yy403 := &x.Status yy403.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq389[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy404 := &x.Status yy404.CodecEncodeSelf(e) } } if yyr389 || yy2arr389 { 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 yym405 := z.DecBinary() _ = yym405 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct406 := r.ContainerType() if yyct406 == codecSelferValueTypeMap1234 { yyl406 := r.ReadMapStart() if yyl406 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl406, d) } } else if yyct406 == codecSelferValueTypeArray1234 { yyl406 := r.ReadArrayStart() if yyl406 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl406, 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 yys407Slc = z.DecScratchBuffer() // default slice to decode into _ = yys407Slc var yyhl407 bool = l >= 0 for yyj407 := 0; ; yyj407++ { if yyhl407 { if yyj407 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys407Slc = r.DecodeBytes(yys407Slc, true, true) yys407 := string(yys407Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys407 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv410 := &x.ObjectMeta yyv410.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv411 := &x.Spec yyv411.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv412 := &x.Status yyv412.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys407) } // end switch yys407 } // end for yyj407 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 yyj413 int var yyb413 bool var yyhl413 bool = l >= 0 yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv416 := &x.ObjectMeta yyv416.CodecDecodeSelf(d) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv417 := &x.Spec yyv417.CodecDecodeSelf(d) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv418 := &x.Status yyv418.CodecDecodeSelf(d) } for { yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj413-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 { yym419 := z.EncBinary() _ = yym419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep420 := !z.EncBinary() yy2arr420 := z.EncBasicHandle().StructToArray var yyq420 [4]bool _, _, _ = yysep420, yyq420, yy2arr420 const yyr420 bool = false yyq420[0] = x.Kind != "" yyq420[1] = x.APIVersion != "" yyq420[2] = true var yynn420 int if yyr420 || yy2arr420 { r.EncodeArrayStart(4) } else { yynn420 = 1 for _, b := range yyq420 { if b { yynn420++ } } r.EncodeMapStart(yynn420) yynn420 = 0 } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq420[0] { yym422 := z.EncBinary() _ = yym422 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq420[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym423 := z.EncBinary() _ = yym423 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq420[1] { yym425 := z.EncBinary() _ = yym425 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq420[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym426 := z.EncBinary() _ = yym426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq420[2] { yy428 := &x.ListMeta yym429 := z.EncBinary() _ = yym429 if false { } else if z.HasExtensions() && z.EncExt(yy428) { } else { z.EncFallback(yy428) } } else { r.EncodeNil() } } else { if yyq420[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy430 := &x.ListMeta yym431 := z.EncBinary() _ = yym431 if false { } else if z.HasExtensions() && z.EncExt(yy430) { } else { z.EncFallback(yy430) } } } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym433 := z.EncBinary() _ = yym433 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 { yym434 := z.EncBinary() _ = yym434 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } if yyr420 || yy2arr420 { 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 yym435 := z.DecBinary() _ = yym435 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct436 := r.ContainerType() if yyct436 == codecSelferValueTypeMap1234 { yyl436 := r.ReadMapStart() if yyl436 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl436, d) } } else if yyct436 == codecSelferValueTypeArray1234 { yyl436 := r.ReadArrayStart() if yyl436 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl436, 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 yys437Slc = z.DecScratchBuffer() // default slice to decode into _ = yys437Slc var yyhl437 bool = l >= 0 for yyj437 := 0; ; yyj437++ { if yyhl437 { if yyj437 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys437Slc = r.DecodeBytes(yys437Slc, true, true) yys437 := string(yys437Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys437 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv440 := &x.ListMeta yym441 := z.DecBinary() _ = yym441 if false { } else if z.HasExtensions() && z.DecExt(yyv440) { } else { z.DecFallback(yyv440, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv442 := &x.Items yym443 := z.DecBinary() _ = yym443 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv442), d) } } default: z.DecStructFieldNotFound(-1, yys437) } // end switch yys437 } // end for yyj437 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 yyj444 int var yyb444 bool var yyhl444 bool = l >= 0 yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv447 := &x.ListMeta yym448 := z.DecBinary() _ = yym448 if false { } else if z.HasExtensions() && z.DecExt(yyv447) { } else { z.DecFallback(yyv447, false) } } yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv449 := &x.Items yym450 := z.DecBinary() _ = yym450 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv449), d) } } for { yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj444-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 { yym451 := z.EncBinary() _ = yym451 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep452 := !z.EncBinary() yy2arr452 := z.EncBasicHandle().StructToArray var yyq452 [3]bool _, _, _ = yysep452, yyq452, yy2arr452 const yyr452 bool = false yyq452[0] = len(x.AccessModes) != 0 yyq452[1] = true yyq452[2] = x.VolumeName != "" var yynn452 int if yyr452 || yy2arr452 { r.EncodeArrayStart(3) } else { yynn452 = 0 for _, b := range yyq452 { if b { yynn452++ } } r.EncodeMapStart(yynn452) yynn452 = 0 } if yyr452 || yy2arr452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq452[0] { if x.AccessModes == nil { r.EncodeNil() } else { yym454 := z.EncBinary() _ = yym454 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq452[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym455 := z.EncBinary() _ = yym455 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr452 || yy2arr452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq452[1] { yy457 := &x.Resources yy457.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq452[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy458 := &x.Resources yy458.CodecEncodeSelf(e) } } if yyr452 || yy2arr452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq452[2] { yym460 := z.EncBinary() _ = yym460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq452[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym461 := z.EncBinary() _ = yym461 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } if yyr452 || yy2arr452 { 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 yym462 := z.DecBinary() _ = yym462 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct463 := r.ContainerType() if yyct463 == codecSelferValueTypeMap1234 { yyl463 := r.ReadMapStart() if yyl463 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl463, d) } } else if yyct463 == codecSelferValueTypeArray1234 { yyl463 := r.ReadArrayStart() if yyl463 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl463, 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 yys464Slc = z.DecScratchBuffer() // default slice to decode into _ = yys464Slc var yyhl464 bool = l >= 0 for yyj464 := 0; ; yyj464++ { if yyhl464 { if yyj464 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys464Slc = r.DecodeBytes(yys464Slc, true, true) yys464 := string(yys464Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys464 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv465 := &x.AccessModes yym466 := z.DecBinary() _ = yym466 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv465), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv467 := &x.Resources yyv467.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys464) } // end switch yys464 } // end for yyj464 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 yyj469 int var yyb469 bool var yyhl469 bool = l >= 0 yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv470 := &x.AccessModes yym471 := z.DecBinary() _ = yym471 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv470), d) } } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv472 := &x.Resources yyv472.CodecDecodeSelf(d) } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } for { yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj469-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym474 := z.EncBinary() _ = yym474 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep475 := !z.EncBinary() yy2arr475 := z.EncBasicHandle().StructToArray var yyq475 [3]bool _, _, _ = yysep475, yyq475, yy2arr475 const yyr475 bool = false yyq475[0] = x.Phase != "" yyq475[1] = len(x.AccessModes) != 0 yyq475[2] = len(x.Capacity) != 0 var yynn475 int if yyr475 || yy2arr475 { r.EncodeArrayStart(3) } else { yynn475 = 0 for _, b := range yyq475 { if b { yynn475++ } } r.EncodeMapStart(yynn475) yynn475 = 0 } if yyr475 || yy2arr475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq475[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq475[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr475 || yy2arr475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq475[1] { 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 yyq475[1] { 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 yyr475 || yy2arr475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq475[2] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq475[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 yyr475 || yy2arr475 { 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 yym481 := z.DecBinary() _ = yym481 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct482 := r.ContainerType() if yyct482 == codecSelferValueTypeMap1234 { yyl482 := r.ReadMapStart() if yyl482 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl482, d) } } else if yyct482 == codecSelferValueTypeArray1234 { yyl482 := r.ReadArrayStart() if yyl482 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl482, 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 yys483Slc = z.DecScratchBuffer() // default slice to decode into _ = yys483Slc var yyhl483 bool = l >= 0 for yyj483 := 0; ; yyj483++ { if yyhl483 { if yyj483 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys483Slc = r.DecodeBytes(yys483Slc, true, true) yys483 := string(yys483Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys483 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv485 := &x.AccessModes yym486 := z.DecBinary() _ = yym486 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv485), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv487 := &x.Capacity yyv487.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys483) } // end switch yys483 } // end for yyj483 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 yyj488 int var yyb488 bool var yyhl488 bool = l >= 0 yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv490 := &x.AccessModes yym491 := z.DecBinary() _ = yym491 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv490), d) } } yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv492 := &x.Capacity yyv492.CodecDecodeSelf(d) } for { yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj488-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym493 := z.EncBinary() _ = yym493 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 yym494 := z.DecBinary() _ = yym494 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 yym495 := z.EncBinary() _ = yym495 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 yym496 := z.DecBinary() _ = yym496 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 yym497 := z.EncBinary() _ = yym497 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 yym498 := z.DecBinary() _ = yym498 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 { yym499 := z.EncBinary() _ = yym499 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep500 := !z.EncBinary() yy2arr500 := z.EncBasicHandle().StructToArray var yyq500 [1]bool _, _, _ = yysep500, yyq500, yy2arr500 const yyr500 bool = false var yynn500 int if yyr500 || yy2arr500 { r.EncodeArrayStart(1) } else { yynn500 = 1 for _, b := range yyq500 { if b { yynn500++ } } r.EncodeMapStart(yynn500) yynn500 = 0 } if yyr500 || yy2arr500 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym502 := z.EncBinary() _ = yym502 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) yym503 := z.EncBinary() _ = yym503 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr500 || yy2arr500 { 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 yym504 := z.DecBinary() _ = yym504 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct505 := r.ContainerType() if yyct505 == codecSelferValueTypeMap1234 { yyl505 := r.ReadMapStart() if yyl505 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl505, d) } } else if yyct505 == codecSelferValueTypeArray1234 { yyl505 := r.ReadArrayStart() if yyl505 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl505, 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 yys506Slc = z.DecScratchBuffer() // default slice to decode into _ = yys506Slc var yyhl506 bool = l >= 0 for yyj506 := 0; ; yyj506++ { if yyhl506 { if yyj506 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys506Slc = r.DecodeBytes(yys506Slc, true, true) yys506 := string(yys506Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys506 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys506) } // end switch yys506 } // end for yyj506 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 yyj508 int var yyb508 bool var yyhl508 bool = l >= 0 yyj508++ if yyhl508 { yyb508 = yyj508 > l } else { yyb508 = r.CheckBreak() } if yyb508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj508++ if yyhl508 { yyb508 = yyj508 > l } else { yyb508 = r.CheckBreak() } if yyb508 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj508-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 { yym510 := z.EncBinary() _ = yym510 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep511 := !z.EncBinary() yy2arr511 := z.EncBasicHandle().StructToArray var yyq511 [1]bool _, _, _ = yysep511, yyq511, yy2arr511 const yyr511 bool = false var yynn511 int if yyr511 || yy2arr511 { r.EncodeArrayStart(1) } else { yynn511 = 1 for _, b := range yyq511 { if b { yynn511++ } } r.EncodeMapStart(yynn511) yynn511 = 0 } if yyr511 || yy2arr511 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Medium.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } if yyr511 || yy2arr511 { 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 yym513 := z.DecBinary() _ = yym513 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct514 := r.ContainerType() if yyct514 == codecSelferValueTypeMap1234 { yyl514 := r.ReadMapStart() if yyl514 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl514, d) } } else if yyct514 == codecSelferValueTypeArray1234 { yyl514 := r.ReadArrayStart() if yyl514 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl514, 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 yys515Slc = z.DecScratchBuffer() // default slice to decode into _ = yys515Slc var yyhl515 bool = l >= 0 for yyj515 := 0; ; yyj515++ { if yyhl515 { if yyj515 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys515Slc = r.DecodeBytes(yys515Slc, true, true) yys515 := string(yys515Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys515 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys515) } // end switch yys515 } // end for yyj515 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 yyj517 int var yyb517 bool var yyhl517 bool = l >= 0 yyj517++ if yyhl517 { yyb517 = yyj517 > l } else { yyb517 = r.CheckBreak() } if yyb517 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } for { yyj517++ if yyhl517 { yyb517 = yyj517 > l } else { yyb517 = r.CheckBreak() } if yyb517 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj517-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x StorageMedium) 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 *StorageMedium) 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 Protocol) 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 *Protocol) 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 *GCEPersistentDiskVolumeSource) 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 [4]bool _, _, _ = yysep524, yyq524, yy2arr524 const yyr524 bool = false yyq524[1] = x.FSType != "" yyq524[2] = x.Partition != 0 yyq524[3] = x.ReadOnly != false var yynn524 int if yyr524 || yy2arr524 { r.EncodeArrayStart(4) } 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.PDName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pdName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym527 := z.EncBinary() _ = yym527 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq524[1] { yym529 := z.EncBinary() _ = yym529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq524[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym530 := z.EncBinary() _ = yym530 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq524[2] { yym532 := z.EncBinary() _ = yym532 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq524[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym533 := z.EncBinary() _ = yym533 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq524[3] { yym535 := z.EncBinary() _ = yym535 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq524[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym536 := z.EncBinary() _ = yym536 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr524 || yy2arr524 { 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 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 *GCEPersistentDiskVolumeSource) 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 "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, yys539) } // end switch yys539 } // end for yyj539 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 yyj544 int var yyb544 bool var yyhl544 bool = l >= 0 yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj544-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 { yym549 := z.EncBinary() _ = yym549 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep550 := !z.EncBinary() yy2arr550 := z.EncBasicHandle().StructToArray var yyq550 [5]bool _, _, _ = yysep550, yyq550, yy2arr550 const yyr550 bool = false yyq550[0] = x.TargetPortal != "" yyq550[1] = x.IQN != "" yyq550[2] = x.Lun != 0 yyq550[3] = x.FSType != "" yyq550[4] = x.ReadOnly != false var yynn550 int if yyr550 || yy2arr550 { r.EncodeArrayStart(5) } else { yynn550 = 0 for _, b := range yyq550 { if b { yynn550++ } } r.EncodeMapStart(yynn550) yynn550 = 0 } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[0] { yym552 := z.EncBinary() _ = yym552 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq550[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym553 := z.EncBinary() _ = yym553 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[1] { yym555 := z.EncBinary() _ = yym555 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq550[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym556 := z.EncBinary() _ = yym556 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[2] { yym558 := z.EncBinary() _ = yym558 if false { } else { r.EncodeInt(int64(x.Lun)) } } else { r.EncodeInt(0) } } else { if yyq550[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym559 := z.EncBinary() _ = yym559 if false { } else { r.EncodeInt(int64(x.Lun)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[3] { yym561 := z.EncBinary() _ = yym561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq550[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym562 := z.EncBinary() _ = yym562 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[4] { yym564 := z.EncBinary() _ = yym564 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq550[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym565 := z.EncBinary() _ = yym565 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr550 || yy2arr550 { 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 yym566 := z.DecBinary() _ = yym566 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct567 := r.ContainerType() if yyct567 == codecSelferValueTypeMap1234 { yyl567 := r.ReadMapStart() if yyl567 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl567, d) } } else if yyct567 == codecSelferValueTypeArray1234 { yyl567 := r.ReadArrayStart() if yyl567 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl567, 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 yys568Slc = z.DecScratchBuffer() // default slice to decode into _ = yys568Slc var yyhl568 bool = l >= 0 for yyj568 := 0; ; yyj568++ { if yyhl568 { if yyj568 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys568Slc = r.DecodeBytes(yys568Slc, true, true) yys568 := string(yys568Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys568 { 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 "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, yys568) } // end switch yys568 } // end for yyj568 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 yyj574 int var yyb574 bool var yyhl574 bool = l >= 0 yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int(r.DecodeInt(codecSelferBitsize1234)) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj574-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 { yym580 := z.EncBinary() _ = yym580 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep581 := !z.EncBinary() yy2arr581 := z.EncBasicHandle().StructToArray var yyq581 [4]bool _, _, _ = yysep581, yyq581, yy2arr581 const yyr581 bool = false yyq581[3] = x.ReadOnly != false var yynn581 int if yyr581 || yy2arr581 { r.EncodeArrayStart(4) } else { yynn581 = 3 for _, b := range yyq581 { if b { yynn581++ } } r.EncodeMapStart(yynn581) yynn581 = 0 } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym583 := z.EncBinary() _ = yym583 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 { yym584 := z.EncBinary() _ = yym584 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { yy586 := *x.Lun yym587 := z.EncBinary() _ = yym587 if false { } else { r.EncodeInt(int64(yy586)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lun == nil { r.EncodeNil() } else { yy588 := *x.Lun yym589 := z.EncBinary() _ = yym589 if false { } else { r.EncodeInt(int64(yy588)) } } } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym591 := z.EncBinary() _ = yym591 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) yym592 := z.EncBinary() _ = yym592 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq581[3] { yym594 := z.EncBinary() _ = yym594 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq581[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym595 := z.EncBinary() _ = yym595 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr581 || yy2arr581 { 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 yym596 := z.DecBinary() _ = yym596 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct597 := r.ContainerType() if yyct597 == codecSelferValueTypeMap1234 { yyl597 := r.ReadMapStart() if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl597, d) } } else if yyct597 == codecSelferValueTypeArray1234 { yyl597 := r.ReadArrayStart() if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl597, 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 yys598Slc = z.DecScratchBuffer() // default slice to decode into _ = yys598Slc var yyhl598 bool = l >= 0 for yyj598 := 0; ; yyj598++ { if yyhl598 { if yyj598 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys598Slc = r.DecodeBytes(yys598Slc, true, true) yys598 := string(yys598Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys598 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv599 := &x.TargetWWNs yym600 := z.DecBinary() _ = yym600 if false { } else { z.F.DecSliceStringX(yyv599, false, d) } } case "lun": if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int) } yym602 := z.DecBinary() _ = yym602 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, yys598) } // end switch yys598 } // end for yyj598 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 yyj605 int var yyb605 bool var yyhl605 bool = l >= 0 yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv606 := &x.TargetWWNs yym607 := z.DecBinary() _ = yym607 if false { } else { z.F.DecSliceStringX(yyv606, false, d) } } yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { 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) } yym609 := z.DecBinary() _ = yym609 if false { } else { *((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234)) } } yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj605-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 { yym612 := z.EncBinary() _ = yym612 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep613 := !z.EncBinary() yy2arr613 := z.EncBasicHandle().StructToArray var yyq613 [4]bool _, _, _ = yysep613, yyq613, yy2arr613 const yyr613 bool = false yyq613[1] = x.FSType != "" yyq613[2] = x.Partition != 0 yyq613[3] = x.ReadOnly != false var yynn613 int if yyr613 || yy2arr613 { r.EncodeArrayStart(4) } else { yynn613 = 1 for _, b := range yyq613 { if b { yynn613++ } } r.EncodeMapStart(yynn613) yynn613 = 0 } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym615 := z.EncBinary() _ = yym615 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) yym616 := z.EncBinary() _ = yym616 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[1] { yym618 := z.EncBinary() _ = yym618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq613[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym619 := z.EncBinary() _ = yym619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[2] { yym621 := z.EncBinary() _ = yym621 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq613[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym622 := z.EncBinary() _ = yym622 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[3] { yym624 := z.EncBinary() _ = yym624 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq613[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym625 := z.EncBinary() _ = yym625 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr613 || yy2arr613 { 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 yym626 := z.DecBinary() _ = yym626 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct627 := r.ContainerType() if yyct627 == codecSelferValueTypeMap1234 { yyl627 := r.ReadMapStart() if yyl627 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl627, d) } } else if yyct627 == codecSelferValueTypeArray1234 { yyl627 := r.ReadArrayStart() if yyl627 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl627, 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 yys628Slc = z.DecScratchBuffer() // default slice to decode into _ = yys628Slc var yyhl628 bool = l >= 0 for yyj628 := 0; ; yyj628++ { if yyhl628 { if yyj628 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys628Slc = r.DecodeBytes(yys628Slc, true, true) yys628 := string(yys628Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys628 { 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, yys628) } // end switch yys628 } // end for yyj628 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 yyj633 int var yyb633 bool var yyhl633 bool = l >= 0 yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj633-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 { yym638 := z.EncBinary() _ = yym638 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep639 := !z.EncBinary() yy2arr639 := z.EncBasicHandle().StructToArray var yyq639 [2]bool _, _, _ = yysep639, yyq639, yy2arr639 const yyr639 bool = false var yynn639 int if yyr639 || yy2arr639 { r.EncodeArrayStart(2) } else { yynn639 = 2 for _, b := range yyq639 { if b { yynn639++ } } r.EncodeMapStart(yynn639) yynn639 = 0 } if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym641 := z.EncBinary() _ = yym641 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) yym642 := z.EncBinary() _ = yym642 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym644 := z.EncBinary() _ = yym644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym645 := z.EncBinary() _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } if yyr639 || yy2arr639 { 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 yym646 := z.DecBinary() _ = yym646 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct647 := r.ContainerType() if yyct647 == codecSelferValueTypeMap1234 { yyl647 := r.ReadMapStart() if yyl647 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl647, d) } } else if yyct647 == codecSelferValueTypeArray1234 { yyl647 := r.ReadArrayStart() if yyl647 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl647, 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 yys648Slc = z.DecScratchBuffer() // default slice to decode into _ = yys648Slc var yyhl648 bool = l >= 0 for yyj648 := 0; ; yyj648++ { if yyhl648 { if yyj648 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys648Slc = r.DecodeBytes(yys648Slc, true, true) yys648 := string(yys648Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys648 { 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()) } default: z.DecStructFieldNotFound(-1, yys648) } // end switch yys648 } // end for yyj648 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 yyj651 int var yyb651 bool var yyhl651 bool = l >= 0 yyj651++ if yyhl651 { yyb651 = yyj651 > l } else { yyb651 = r.CheckBreak() } if yyb651 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } yyj651++ if yyhl651 { yyb651 = yyj651 > l } else { yyb651 = r.CheckBreak() } if yyb651 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } for { yyj651++ if yyhl651 { yyb651 = yyj651 > l } else { yyb651 = r.CheckBreak() } if yyb651 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj651-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 { yym654 := z.EncBinary() _ = yym654 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep655 := !z.EncBinary() yy2arr655 := z.EncBasicHandle().StructToArray var yyq655 [1]bool _, _, _ = yysep655, yyq655, yy2arr655 const yyr655 bool = false var yynn655 int if yyr655 || yy2arr655 { r.EncodeArrayStart(1) } else { yynn655 = 1 for _, b := range yyq655 { if b { yynn655++ } } r.EncodeMapStart(yynn655) yynn655 = 0 } if yyr655 || yy2arr655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym657 := z.EncBinary() _ = yym657 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) yym658 := z.EncBinary() _ = yym658 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } if yyr655 || yy2arr655 { 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 yym659 := z.DecBinary() _ = yym659 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct660 := r.ContainerType() if yyct660 == codecSelferValueTypeMap1234 { yyl660 := r.ReadMapStart() if yyl660 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl660, d) } } else if yyct660 == codecSelferValueTypeArray1234 { yyl660 := r.ReadArrayStart() if yyl660 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl660, 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 yys661Slc = z.DecScratchBuffer() // default slice to decode into _ = yys661Slc var yyhl661 bool = l >= 0 for yyj661 := 0; ; yyj661++ { if yyhl661 { if yyj661 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys661Slc = r.DecodeBytes(yys661Slc, true, true) yys661 := string(yys661Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys661 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys661) } // end switch yys661 } // end for yyj661 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 yyj663 int var yyb663 bool var yyhl663 bool = l >= 0 yyj663++ if yyhl663 { yyb663 = yyj663 > l } else { yyb663 = r.CheckBreak() } if yyb663 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } for { yyj663++ if yyhl663 { yyb663 = yyj663 > l } else { yyb663 = r.CheckBreak() } if yyb663 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj663-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 { yym665 := z.EncBinary() _ = yym665 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep666 := !z.EncBinary() yy2arr666 := z.EncBasicHandle().StructToArray var yyq666 [3]bool _, _, _ = yysep666, yyq666, yy2arr666 const yyr666 bool = false yyq666[2] = x.ReadOnly != false var yynn666 int if yyr666 || yy2arr666 { r.EncodeArrayStart(3) } else { yynn666 = 2 for _, b := range yyq666 { if b { yynn666++ } } r.EncodeMapStart(yynn666) yynn666 = 0 } if yyr666 || yy2arr666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym668 := z.EncBinary() _ = yym668 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) yym669 := z.EncBinary() _ = yym669 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } if yyr666 || yy2arr666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym671 := z.EncBinary() _ = yym671 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) yym672 := z.EncBinary() _ = yym672 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr666 || yy2arr666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq666[2] { yym674 := z.EncBinary() _ = yym674 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq666[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym675 := z.EncBinary() _ = yym675 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr666 || yy2arr666 { 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 yym676 := z.DecBinary() _ = yym676 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct677 := r.ContainerType() if yyct677 == codecSelferValueTypeMap1234 { yyl677 := r.ReadMapStart() if yyl677 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl677, d) } } else if yyct677 == codecSelferValueTypeArray1234 { yyl677 := r.ReadArrayStart() if yyl677 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl677, 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 yys678Slc = z.DecScratchBuffer() // default slice to decode into _ = yys678Slc var yyhl678 bool = l >= 0 for yyj678 := 0; ; yyj678++ { if yyhl678 { if yyj678 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys678Slc = r.DecodeBytes(yys678Slc, true, true) yys678 := string(yys678Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys678 { 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, yys678) } // end switch yys678 } // end for yyj678 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 yyj682 int var yyb682 bool var yyhl682 bool = l >= 0 yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj682-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 { yym686 := z.EncBinary() _ = yym686 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep687 := !z.EncBinary() yy2arr687 := z.EncBasicHandle().StructToArray var yyq687 [3]bool _, _, _ = yysep687, yyq687, yy2arr687 const yyr687 bool = false yyq687[2] = x.ReadOnly != false var yynn687 int if yyr687 || yy2arr687 { r.EncodeArrayStart(3) } else { yynn687 = 2 for _, b := range yyq687 { if b { yynn687++ } } r.EncodeMapStart(yynn687) yynn687 = 0 } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym689 := z.EncBinary() _ = yym689 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) yym690 := z.EncBinary() _ = yym690 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym692 := z.EncBinary() _ = yym692 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) yym693 := z.EncBinary() _ = yym693 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq687[2] { yym695 := z.EncBinary() _ = yym695 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq687[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym696 := z.EncBinary() _ = yym696 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr687 || yy2arr687 { 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 yym697 := z.DecBinary() _ = yym697 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct698 := r.ContainerType() if yyct698 == codecSelferValueTypeMap1234 { yyl698 := r.ReadMapStart() if yyl698 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl698, d) } } else if yyct698 == codecSelferValueTypeArray1234 { yyl698 := r.ReadArrayStart() if yyl698 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl698, 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 yys699Slc = z.DecScratchBuffer() // default slice to decode into _ = yys699Slc var yyhl699 bool = l >= 0 for yyj699 := 0; ; yyj699++ { if yyhl699 { if yyj699 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys699Slc = r.DecodeBytes(yys699Slc, true, true) yys699 := string(yys699Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys699 { 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, yys699) } // end switch yys699 } // end for yyj699 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 yyj703 int var yyb703 bool var yyhl703 bool = l >= 0 yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj703-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 { yym707 := z.EncBinary() _ = yym707 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep708 := !z.EncBinary() yy2arr708 := z.EncBasicHandle().StructToArray var yyq708 [8]bool _, _, _ = yysep708, yyq708, yy2arr708 const yyr708 bool = false yyq708[2] = x.FSType != "" yyq708[7] = x.ReadOnly != false var yynn708 int if yyr708 || yy2arr708 { r.EncodeArrayStart(8) } else { yynn708 = 6 for _, b := range yyq708 { if b { yynn708++ } } r.EncodeMapStart(yynn708) yynn708 = 0 } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym710 := z.EncBinary() _ = yym710 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 { yym711 := z.EncBinary() _ = yym711 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym713 := z.EncBinary() _ = yym713 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) yym714 := z.EncBinary() _ = yym714 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq708[2] { yym716 := z.EncBinary() _ = yym716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq708[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym717 := z.EncBinary() _ = yym717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym719 := z.EncBinary() _ = yym719 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) yym720 := z.EncBinary() _ = yym720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym722 := z.EncBinary() _ = yym722 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) yym723 := z.EncBinary() _ = yym723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym725 := z.EncBinary() _ = yym725 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) yym726 := z.EncBinary() _ = yym726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } if yyr708 || yy2arr708 { 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 yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq708[7] { yym729 := z.EncBinary() _ = yym729 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq708[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym730 := z.EncBinary() _ = yym730 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr708 || yy2arr708 { 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 yym731 := z.DecBinary() _ = yym731 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct732 := r.ContainerType() if yyct732 == codecSelferValueTypeMap1234 { yyl732 := r.ReadMapStart() if yyl732 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl732, d) } } else if yyct732 == codecSelferValueTypeArray1234 { yyl732 := r.ReadArrayStart() if yyl732 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl732, 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 yys733Slc = z.DecScratchBuffer() // default slice to decode into _ = yys733Slc var yyhl733 bool = l >= 0 for yyj733 := 0; ; yyj733++ { if yyhl733 { if yyj733 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys733Slc = r.DecodeBytes(yys733Slc, true, true) yys733 := string(yys733Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys733 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv734 := &x.CephMonitors yym735 := z.DecBinary() _ = yym735 if false { } else { z.F.DecSliceStringX(yyv734, 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, yys733) } // end switch yys733 } // end for yyj733 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 yyj743 int var yyb743 bool var yyhl743 bool = l >= 0 yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv744 := &x.CephMonitors yym745 := z.DecBinary() _ = yym745 if false { } else { z.F.DecSliceStringX(yyv744, false, d) } } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { 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) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj743-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 { yym753 := z.EncBinary() _ = yym753 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep754 := !z.EncBinary() yy2arr754 := z.EncBasicHandle().StructToArray var yyq754 [3]bool _, _, _ = yysep754, yyq754, yy2arr754 const yyr754 bool = false yyq754[1] = x.FSType != "" yyq754[2] = x.ReadOnly != false var yynn754 int if yyr754 || yy2arr754 { r.EncodeArrayStart(3) } else { yynn754 = 1 for _, b := range yyq754 { if b { yynn754++ } } r.EncodeMapStart(yynn754) yynn754 = 0 } if yyr754 || yy2arr754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym756 := z.EncBinary() _ = yym756 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) yym757 := z.EncBinary() _ = yym757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr754 || yy2arr754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq754[1] { yym759 := z.EncBinary() _ = yym759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq754[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym760 := z.EncBinary() _ = yym760 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr754 || yy2arr754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq754[2] { yym762 := z.EncBinary() _ = yym762 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq754[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym763 := z.EncBinary() _ = yym763 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr754 || yy2arr754 { 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 yym764 := z.DecBinary() _ = yym764 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct765 := r.ContainerType() if yyct765 == codecSelferValueTypeMap1234 { yyl765 := r.ReadMapStart() if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl765, d) } } else if yyct765 == codecSelferValueTypeArray1234 { yyl765 := r.ReadArrayStart() if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl765, 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 yys766Slc = z.DecScratchBuffer() // default slice to decode into _ = yys766Slc var yyhl766 bool = l >= 0 for yyj766 := 0; ; yyj766++ { if yyhl766 { if yyj766 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys766Slc = r.DecodeBytes(yys766Slc, true, true) yys766 := string(yys766Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys766 { 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, yys766) } // end switch yys766 } // end for yyj766 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 yyj770 int var yyb770 bool var yyhl770 bool = l >= 0 yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj770-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 { yym774 := z.EncBinary() _ = yym774 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep775 := !z.EncBinary() yy2arr775 := z.EncBasicHandle().StructToArray var yyq775 [5]bool _, _, _ = yysep775, yyq775, yy2arr775 const yyr775 bool = false yyq775[1] = x.User != "" yyq775[2] = x.SecretFile != "" yyq775[3] = x.SecretRef != nil yyq775[4] = x.ReadOnly != false var yynn775 int if yyr775 || yy2arr775 { r.EncodeArrayStart(5) } else { yynn775 = 1 for _, b := range yyq775 { if b { yynn775++ } } r.EncodeMapStart(yynn775) yynn775 = 0 } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { yym777 := z.EncBinary() _ = yym777 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 { yym778 := z.EncBinary() _ = yym778 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[1] { yym780 := z.EncBinary() _ = yym780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq775[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym781 := z.EncBinary() _ = yym781 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[2] { yym783 := z.EncBinary() _ = yym783 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq775[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym784 := z.EncBinary() _ = yym784 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[3] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq775[3] { 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 yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[4] { yym787 := z.EncBinary() _ = yym787 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq775[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym788 := z.EncBinary() _ = yym788 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr775 || yy2arr775 { 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 yym789 := z.DecBinary() _ = yym789 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct790 := r.ContainerType() if yyct790 == codecSelferValueTypeMap1234 { yyl790 := r.ReadMapStart() if yyl790 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl790, d) } } else if yyct790 == codecSelferValueTypeArray1234 { yyl790 := r.ReadArrayStart() if yyl790 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl790, 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 yys791Slc = z.DecScratchBuffer() // default slice to decode into _ = yys791Slc var yyhl791 bool = l >= 0 for yyj791 := 0; ; yyj791++ { if yyhl791 { if yyj791 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys791Slc = r.DecodeBytes(yys791Slc, true, true) yys791 := string(yys791Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys791 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv792 := &x.Monitors yym793 := z.DecBinary() _ = yym793 if false { } else { z.F.DecSliceStringX(yyv792, false, d) } } 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, yys791) } // end switch yys791 } // end for yyj791 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 yyj798 int var yyb798 bool var yyhl798 bool = l >= 0 yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv799 := &x.Monitors yym800 := z.DecBinary() _ = yym800 if false { } else { z.F.DecSliceStringX(yyv799, false, d) } } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { 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) } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj798-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 { yym805 := z.EncBinary() _ = yym805 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep806 := !z.EncBinary() yy2arr806 := z.EncBasicHandle().StructToArray var yyq806 [1]bool _, _, _ = yysep806, yyq806, yy2arr806 const yyr806 bool = false var yynn806 int if yyr806 || yy2arr806 { r.EncodeArrayStart(1) } else { yynn806 = 1 for _, b := range yyq806 { if b { yynn806++ } } r.EncodeMapStart(yynn806) yynn806 = 0 } if yyr806 || yy2arr806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym808 := z.EncBinary() _ = yym808 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) yym809 := z.EncBinary() _ = yym809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } if yyr806 || yy2arr806 { 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 yym810 := z.DecBinary() _ = yym810 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct811 := r.ContainerType() if yyct811 == codecSelferValueTypeMap1234 { yyl811 := r.ReadMapStart() if yyl811 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl811, d) } } else if yyct811 == codecSelferValueTypeArray1234 { yyl811 := r.ReadArrayStart() if yyl811 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl811, 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 yys812Slc = z.DecScratchBuffer() // default slice to decode into _ = yys812Slc var yyhl812 bool = l >= 0 for yyj812 := 0; ; yyj812++ { if yyhl812 { if yyj812 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys812Slc = r.DecodeBytes(yys812Slc, true, true) yys812 := string(yys812Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys812 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys812) } // end switch yys812 } // end for yyj812 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 yyj814 int var yyb814 bool var yyhl814 bool = l >= 0 yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } for { yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj814-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym816 := z.EncBinary() _ = yym816 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep817 := !z.EncBinary() yy2arr817 := z.EncBasicHandle().StructToArray var yyq817 [1]bool _, _, _ = yysep817, yyq817, yy2arr817 const yyr817 bool = false yyq817[0] = len(x.Items) != 0 var yynn817 int if yyr817 || yy2arr817 { r.EncodeArrayStart(1) } else { yynn817 = 0 for _, b := range yyq817 { if b { yynn817++ } } r.EncodeMapStart(yynn817) yynn817 = 0 } if yyr817 || yy2arr817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq817[0] { if x.Items == nil { r.EncodeNil() } else { yym819 := z.EncBinary() _ = yym819 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq817[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym820 := z.EncBinary() _ = yym820 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } } if yyr817 || yy2arr817 { 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 yym821 := z.DecBinary() _ = yym821 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct822 := r.ContainerType() if yyct822 == codecSelferValueTypeMap1234 { yyl822 := r.ReadMapStart() if yyl822 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl822, d) } } else if yyct822 == codecSelferValueTypeArray1234 { yyl822 := r.ReadArrayStart() if yyl822 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl822, 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 yys823Slc = z.DecScratchBuffer() // default slice to decode into _ = yys823Slc var yyhl823 bool = l >= 0 for yyj823 := 0; ; yyj823++ { if yyhl823 { if yyj823 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys823Slc = r.DecodeBytes(yys823Slc, true, true) yys823 := string(yys823Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys823 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv824 := &x.Items yym825 := z.DecBinary() _ = yym825 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv824), d) } } default: z.DecStructFieldNotFound(-1, yys823) } // end switch yys823 } // end for yyj823 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 yyj826 int var yyb826 bool var yyhl826 bool = l >= 0 yyj826++ if yyhl826 { yyb826 = yyj826 > l } else { yyb826 = r.CheckBreak() } if yyb826 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv827 := &x.Items yym828 := z.DecBinary() _ = yym828 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv827), d) } } for { yyj826++ if yyhl826 { yyb826 = yyj826 > l } else { yyb826 = r.CheckBreak() } if yyb826 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj826-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 { yym829 := z.EncBinary() _ = yym829 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep830 := !z.EncBinary() yy2arr830 := z.EncBasicHandle().StructToArray var yyq830 [2]bool _, _, _ = yysep830, yyq830, yy2arr830 const yyr830 bool = false var yynn830 int if yyr830 || yy2arr830 { r.EncodeArrayStart(2) } else { yynn830 = 2 for _, b := range yyq830 { if b { yynn830++ } } r.EncodeMapStart(yynn830) yynn830 = 0 } if yyr830 || yy2arr830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym832 := z.EncBinary() _ = yym832 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) yym833 := z.EncBinary() _ = yym833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr830 || yy2arr830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy835 := &x.FieldRef yy835.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy836 := &x.FieldRef yy836.CodecEncodeSelf(e) } if yyr830 || yy2arr830 { 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 yym837 := z.DecBinary() _ = yym837 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct838 := r.ContainerType() if yyct838 == codecSelferValueTypeMap1234 { yyl838 := r.ReadMapStart() if yyl838 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl838, d) } } else if yyct838 == codecSelferValueTypeArray1234 { yyl838 := r.ReadArrayStart() if yyl838 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl838, 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 yys839Slc = z.DecScratchBuffer() // default slice to decode into _ = yys839Slc var yyhl839 bool = l >= 0 for yyj839 := 0; ; yyj839++ { if yyhl839 { if yyj839 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys839Slc = r.DecodeBytes(yys839Slc, true, true) yys839 := string(yys839Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys839 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "fieldRef": if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv841 := &x.FieldRef yyv841.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys839) } // end switch yys839 } // end for yyj839 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 yyj842 int var yyb842 bool var yyhl842 bool = l >= 0 yyj842++ if yyhl842 { yyb842 = yyj842 > l } else { yyb842 = r.CheckBreak() } if yyb842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj842++ if yyhl842 { yyb842 = yyj842 > l } else { yyb842 = r.CheckBreak() } if yyb842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv844 := &x.FieldRef yyv844.CodecDecodeSelf(d) } for { yyj842++ if yyhl842 { yyb842 = yyj842 > l } else { yyb842 = r.CheckBreak() } if yyb842 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj842-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 { yym845 := z.EncBinary() _ = yym845 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep846 := !z.EncBinary() yy2arr846 := z.EncBasicHandle().StructToArray var yyq846 [5]bool _, _, _ = yysep846, yyq846, yy2arr846 const yyr846 bool = false yyq846[0] = x.Name != "" yyq846[1] = x.HostPort != 0 yyq846[3] = x.Protocol != "" yyq846[4] = x.HostIP != "" var yynn846 int if yyr846 || yy2arr846 { r.EncodeArrayStart(5) } else { yynn846 = 1 for _, b := range yyq846 { if b { yynn846++ } } r.EncodeMapStart(yynn846) yynn846 = 0 } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[0] { yym848 := z.EncBinary() _ = yym848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq846[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym849 := z.EncBinary() _ = yym849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[1] { yym851 := z.EncBinary() _ = yym851 if false { } else { r.EncodeInt(int64(x.HostPort)) } } else { r.EncodeInt(0) } } else { if yyq846[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym852 := z.EncBinary() _ = yym852 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym854 := z.EncBinary() _ = yym854 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym855 := z.EncBinary() _ = yym855 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq846[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[4] { yym858 := z.EncBinary() _ = yym858 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq846[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym859 := z.EncBinary() _ = yym859 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr846 || yy2arr846 { 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 yym860 := z.DecBinary() _ = yym860 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct861 := r.ContainerType() if yyct861 == codecSelferValueTypeMap1234 { yyl861 := r.ReadMapStart() if yyl861 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl861, d) } } else if yyct861 == codecSelferValueTypeArray1234 { yyl861 := r.ReadArrayStart() if yyl861 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl861, 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 yys862Slc = z.DecScratchBuffer() // default slice to decode into _ = yys862Slc var yyhl862 bool = l >= 0 for yyj862 := 0; ; yyj862++ { if yyhl862 { if yyj862 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys862Slc = r.DecodeBytes(yys862Slc, true, true) yys862 := string(yys862Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys862 { 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, yys862) } // end switch yys862 } // end for yyj862 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 yyj868 int var yyb868 bool var yyhl868 bool = l >= 0 yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } for { yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj868-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 { yym874 := z.EncBinary() _ = yym874 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep875 := !z.EncBinary() yy2arr875 := z.EncBasicHandle().StructToArray var yyq875 [3]bool _, _, _ = yysep875, yyq875, yy2arr875 const yyr875 bool = false yyq875[1] = x.ReadOnly != false var yynn875 int if yyr875 || yy2arr875 { r.EncodeArrayStart(3) } else { yynn875 = 2 for _, b := range yyq875 { if b { yynn875++ } } r.EncodeMapStart(yynn875) yynn875 = 0 } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym877 := z.EncBinary() _ = yym877 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) yym878 := z.EncBinary() _ = yym878 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq875[1] { yym880 := z.EncBinary() _ = yym880 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq875[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym881 := z.EncBinary() _ = yym881 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym883 := z.EncBinary() _ = yym883 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) yym884 := z.EncBinary() _ = yym884 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } if yyr875 || yy2arr875 { 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 yym885 := z.DecBinary() _ = yym885 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct886 := r.ContainerType() if yyct886 == codecSelferValueTypeMap1234 { yyl886 := r.ReadMapStart() if yyl886 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl886, d) } } else if yyct886 == codecSelferValueTypeArray1234 { yyl886 := r.ReadArrayStart() if yyl886 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl886, 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 yys887Slc = z.DecScratchBuffer() // default slice to decode into _ = yys887Slc var yyhl887 bool = l >= 0 for yyj887 := 0; ; yyj887++ { if yyhl887 { if yyj887 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys887Slc = r.DecodeBytes(yys887Slc, true, true) yys887 := string(yys887Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys887 { 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, yys887) } // end switch yys887 } // end for yyj887 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 yyj891 int var yyb891 bool var yyhl891 bool = l >= 0 yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } for { yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj891-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 { yym895 := z.EncBinary() _ = yym895 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep896 := !z.EncBinary() yy2arr896 := z.EncBasicHandle().StructToArray var yyq896 [3]bool _, _, _ = yysep896, yyq896, yy2arr896 const yyr896 bool = false yyq896[1] = x.Value != "" yyq896[2] = x.ValueFrom != nil var yynn896 int if yyr896 || yy2arr896 { r.EncodeArrayStart(3) } else { yynn896 = 1 for _, b := range yyq896 { if b { yynn896++ } } r.EncodeMapStart(yynn896) yynn896 = 0 } if yyr896 || yy2arr896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym898 := z.EncBinary() _ = yym898 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) yym899 := z.EncBinary() _ = yym899 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr896 || yy2arr896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq896[1] { yym901 := z.EncBinary() _ = yym901 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq896[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym902 := z.EncBinary() _ = yym902 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr896 || yy2arr896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq896[2] { if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq896[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 yyr896 || yy2arr896 { 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 yym904 := z.DecBinary() _ = yym904 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct905 := r.ContainerType() if yyct905 == codecSelferValueTypeMap1234 { yyl905 := r.ReadMapStart() if yyl905 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl905, d) } } else if yyct905 == codecSelferValueTypeArray1234 { yyl905 := r.ReadArrayStart() if yyl905 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl905, 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 yys906Slc = z.DecScratchBuffer() // default slice to decode into _ = yys906Slc var yyhl906 bool = l >= 0 for yyj906 := 0; ; yyj906++ { if yyhl906 { if yyj906 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys906Slc = r.DecodeBytes(yys906Slc, true, true) yys906 := string(yys906Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys906 { 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, yys906) } // end switch yys906 } // end for yyj906 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 yyj910 int var yyb910 bool var yyhl910 bool = l >= 0 yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { 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 { yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj910-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 { yym914 := z.EncBinary() _ = yym914 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep915 := !z.EncBinary() yy2arr915 := z.EncBasicHandle().StructToArray var yyq915 [1]bool _, _, _ = yysep915, yyq915, yy2arr915 const yyr915 bool = false var yynn915 int if yyr915 || yy2arr915 { r.EncodeArrayStart(1) } else { yynn915 = 1 for _, b := range yyq915 { if b { yynn915++ } } r.EncodeMapStart(yynn915) yynn915 = 0 } if yyr915 || yy2arr915 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { 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 yyr915 || yy2arr915 { 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 yym917 := z.DecBinary() _ = yym917 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct918 := r.ContainerType() if yyct918 == codecSelferValueTypeMap1234 { yyl918 := r.ReadMapStart() if yyl918 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl918, d) } } else if yyct918 == codecSelferValueTypeArray1234 { yyl918 := r.ReadArrayStart() if yyl918 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl918, 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 yys919Slc = z.DecScratchBuffer() // default slice to decode into _ = yys919Slc var yyhl919 bool = l >= 0 for yyj919 := 0; ; yyj919++ { if yyhl919 { if yyj919 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys919Slc = r.DecodeBytes(yys919Slc, true, true) yys919 := string(yys919Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys919 { 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) } default: z.DecStructFieldNotFound(-1, yys919) } // end switch yys919 } // end for yyj919 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 yyj921 int var yyb921 bool var yyhl921 bool = l >= 0 yyj921++ if yyhl921 { yyb921 = yyj921 > l } else { yyb921 = r.CheckBreak() } if yyb921 { 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) } for { yyj921++ if yyhl921 { yyb921 = yyj921 > l } else { yyb921 = r.CheckBreak() } if yyb921 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj921-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 { yym923 := z.EncBinary() _ = yym923 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep924 := !z.EncBinary() yy2arr924 := z.EncBasicHandle().StructToArray var yyq924 [2]bool _, _, _ = yysep924, yyq924, yy2arr924 const yyr924 bool = false var yynn924 int if yyr924 || yy2arr924 { r.EncodeArrayStart(2) } else { yynn924 = 2 for _, b := range yyq924 { if b { yynn924++ } } r.EncodeMapStart(yynn924) yynn924 = 0 } if yyr924 || yy2arr924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym926 := z.EncBinary() _ = yym926 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) yym927 := z.EncBinary() _ = yym927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr924 || yy2arr924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym929 := z.EncBinary() _ = yym929 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) yym930 := z.EncBinary() _ = yym930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } if yyr924 || yy2arr924 { 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 yym931 := z.DecBinary() _ = yym931 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct932 := r.ContainerType() if yyct932 == codecSelferValueTypeMap1234 { yyl932 := r.ReadMapStart() if yyl932 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl932, d) } } else if yyct932 == codecSelferValueTypeArray1234 { yyl932 := r.ReadArrayStart() if yyl932 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl932, 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 yys933Slc = z.DecScratchBuffer() // default slice to decode into _ = yys933Slc var yyhl933 bool = l >= 0 for yyj933 := 0; ; yyj933++ { if yyhl933 { if yyj933 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys933Slc = r.DecodeBytes(yys933Slc, true, true) yys933 := string(yys933Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys933 { 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, yys933) } // end switch yys933 } // end for yyj933 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 yyj936 int var yyb936 bool var yyhl936 bool = l >= 0 yyj936++ if yyhl936 { yyb936 = yyj936 > l } else { yyb936 = r.CheckBreak() } if yyb936 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj936++ if yyhl936 { yyb936 = yyj936 > l } else { yyb936 = r.CheckBreak() } if yyb936 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj936++ if yyhl936 { yyb936 = yyj936 > l } else { yyb936 = r.CheckBreak() } if yyb936 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj936-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 { yym939 := z.EncBinary() _ = yym939 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep940 := !z.EncBinary() yy2arr940 := z.EncBasicHandle().StructToArray var yyq940 [4]bool _, _, _ = yysep940, yyq940, yy2arr940 const yyr940 bool = false yyq940[0] = x.Path != "" yyq940[1] = true yyq940[2] = x.Host != "" yyq940[3] = x.Scheme != "" var yynn940 int if yyr940 || yy2arr940 { r.EncodeArrayStart(4) } else { yynn940 = 0 for _, b := range yyq940 { if b { yynn940++ } } r.EncodeMapStart(yynn940) yynn940 = 0 } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[0] { yym942 := z.EncBinary() _ = yym942 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq940[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym943 := z.EncBinary() _ = yym943 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[1] { yy945 := &x.Port yym946 := z.EncBinary() _ = yym946 if false { } else if z.HasExtensions() && z.EncExt(yy945) { } else if !yym946 && z.IsJSONHandle() { z.EncJSONMarshal(yy945) } else { z.EncFallback(yy945) } } else { r.EncodeNil() } } else { if yyq940[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy947 := &x.Port yym948 := z.EncBinary() _ = yym948 if false { } else if z.HasExtensions() && z.EncExt(yy947) { } else if !yym948 && z.IsJSONHandle() { z.EncJSONMarshal(yy947) } else { z.EncFallback(yy947) } } } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[2] { yym950 := z.EncBinary() _ = yym950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq940[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym951 := z.EncBinary() _ = yym951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq940[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr940 || yy2arr940 { 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 yym953 := z.DecBinary() _ = yym953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct954 := r.ContainerType() if yyct954 == codecSelferValueTypeMap1234 { yyl954 := r.ReadMapStart() if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl954, d) } } else if yyct954 == codecSelferValueTypeArray1234 { yyl954 := r.ReadArrayStart() if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl954, 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 yys955Slc = z.DecScratchBuffer() // default slice to decode into _ = yys955Slc var yyhl955 bool = l >= 0 for yyj955 := 0; ; yyj955++ { if yyhl955 { if yyj955 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys955Slc = r.DecodeBytes(yys955Slc, true, true) yys955 := string(yys955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys955 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv957 := &x.Port yym958 := z.DecBinary() _ = yym958 if false { } else if z.HasExtensions() && z.DecExt(yyv957) { } else if !yym958 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv957) } else { z.DecFallback(yyv957, 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()) } default: z.DecStructFieldNotFound(-1, yys955) } // end switch yys955 } // end for yyj955 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 yyj961 int var yyb961 bool var yyhl961 bool = l >= 0 yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv963 := &x.Port yym964 := z.DecBinary() _ = yym964 if false { } else if z.HasExtensions() && z.DecExt(yyv963) { } else if !yym964 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv963) } else { z.DecFallback(yyv963, false) } } yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } for { yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj961-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym967 := z.EncBinary() _ = yym967 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 yym968 := z.DecBinary() _ = yym968 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 { yym969 := z.EncBinary() _ = yym969 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep970 := !z.EncBinary() yy2arr970 := z.EncBasicHandle().StructToArray var yyq970 [1]bool _, _, _ = yysep970, yyq970, yy2arr970 const yyr970 bool = false yyq970[0] = true var yynn970 int if yyr970 || yy2arr970 { r.EncodeArrayStart(1) } else { yynn970 = 0 for _, b := range yyq970 { if b { yynn970++ } } r.EncodeMapStart(yynn970) yynn970 = 0 } if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq970[0] { yy972 := &x.Port yym973 := z.EncBinary() _ = yym973 if false { } else if z.HasExtensions() && z.EncExt(yy972) { } else if !yym973 && z.IsJSONHandle() { z.EncJSONMarshal(yy972) } else { z.EncFallback(yy972) } } else { r.EncodeNil() } } else { if yyq970[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy974 := &x.Port yym975 := z.EncBinary() _ = yym975 if false { } else if z.HasExtensions() && z.EncExt(yy974) { } else if !yym975 && z.IsJSONHandle() { z.EncJSONMarshal(yy974) } else { z.EncFallback(yy974) } } } if yyr970 || yy2arr970 { 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 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 *TCPSocketAction) 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 "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv979 := &x.Port yym980 := z.DecBinary() _ = yym980 if false { } else if z.HasExtensions() && z.DecExt(yyv979) { } else if !yym980 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv979) } else { z.DecFallback(yyv979, false) } } default: z.DecStructFieldNotFound(-1, yys978) } // end switch yys978 } // end for yyj978 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 yyj981 int var yyb981 bool var yyhl981 bool = l >= 0 yyj981++ if yyhl981 { yyb981 = yyj981 > l } else { yyb981 = r.CheckBreak() } if yyb981 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv982 := &x.Port yym983 := z.DecBinary() _ = yym983 if false { } else if z.HasExtensions() && z.DecExt(yyv982) { } else if !yym983 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv982) } else { z.DecFallback(yyv982, false) } } for { yyj981++ if yyhl981 { yyb981 = yyj981 > l } else { yyb981 = r.CheckBreak() } if yyb981 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj981-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 { yym984 := z.EncBinary() _ = yym984 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep985 := !z.EncBinary() yy2arr985 := z.EncBasicHandle().StructToArray var yyq985 [1]bool _, _, _ = yysep985, yyq985, yy2arr985 const yyr985 bool = false yyq985[0] = len(x.Command) != 0 var yynn985 int if yyr985 || yy2arr985 { r.EncodeArrayStart(1) } else { yynn985 = 0 for _, b := range yyq985 { if b { yynn985++ } } r.EncodeMapStart(yynn985) yynn985 = 0 } if yyr985 || yy2arr985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq985[0] { if x.Command == nil { r.EncodeNil() } else { yym987 := z.EncBinary() _ = yym987 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq985[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym988 := z.EncBinary() _ = yym988 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr985 || yy2arr985 { 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 yym989 := z.DecBinary() _ = yym989 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct990 := r.ContainerType() if yyct990 == codecSelferValueTypeMap1234 { yyl990 := r.ReadMapStart() if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl990, d) } } else if yyct990 == codecSelferValueTypeArray1234 { yyl990 := r.ReadArrayStart() if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl990, 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 yys991Slc = z.DecScratchBuffer() // default slice to decode into _ = yys991Slc var yyhl991 bool = l >= 0 for yyj991 := 0; ; yyj991++ { if yyhl991 { if yyj991 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys991Slc = r.DecodeBytes(yys991Slc, true, true) yys991 := string(yys991Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys991 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv992 := &x.Command yym993 := z.DecBinary() _ = yym993 if false { } else { z.F.DecSliceStringX(yyv992, false, d) } } default: z.DecStructFieldNotFound(-1, yys991) } // end switch yys991 } // end for yyj991 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 yyj994 int var yyb994 bool var yyhl994 bool = l >= 0 yyj994++ if yyhl994 { yyb994 = yyj994 > l } else { yyb994 = r.CheckBreak() } if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv995 := &x.Command yym996 := z.DecBinary() _ = yym996 if false { } else { z.F.DecSliceStringX(yyv995, false, d) } } for { yyj994++ if yyhl994 { yyb994 = yyj994 > l } else { yyb994 = r.CheckBreak() } if yyb994 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj994-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 { yym997 := z.EncBinary() _ = yym997 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep998 := !z.EncBinary() yy2arr998 := z.EncBasicHandle().StructToArray var yyq998 [8]bool _, _, _ = yysep998, yyq998, yy2arr998 const yyr998 bool = false yyq998[0] = x.Handler.Exec != nil && x.Exec != nil yyq998[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq998[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil yyq998[3] = x.InitialDelaySeconds != 0 yyq998[4] = x.TimeoutSeconds != 0 yyq998[5] = x.PeriodSeconds != 0 yyq998[6] = x.SuccessThreshold != 0 yyq998[7] = x.FailureThreshold != 0 var yynn998 int if yyr998 || yy2arr998 { r.EncodeArrayStart(8) } else { yynn998 = 0 for _, b := range yyq998 { if b { yynn998++ } } r.EncodeMapStart(yynn998) yynn998 = 0 } var yyn999 bool if x.Handler.Exec == nil { yyn999 = true goto LABEL999 } LABEL999: if yyr998 || yy2arr998 { if yyn999 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq998[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn999 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1000 bool if x.Handler.HTTPGet == nil { yyn1000 = true goto LABEL1000 } LABEL1000: if yyr998 || yy2arr998 { if yyn1000 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq998[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1000 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1001 bool if x.Handler.TCPSocket == nil { yyn1001 = true goto LABEL1001 } LABEL1001: if yyr998 || yy2arr998 { if yyn1001 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq998[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1001 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[3] { yym1003 := z.EncBinary() _ = yym1003 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq998[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1004 := z.EncBinary() _ = yym1004 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[4] { yym1006 := z.EncBinary() _ = yym1006 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq998[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1007 := z.EncBinary() _ = yym1007 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[5] { yym1009 := z.EncBinary() _ = yym1009 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq998[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1010 := z.EncBinary() _ = yym1010 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[6] { yym1012 := z.EncBinary() _ = yym1012 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq998[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1013 := z.EncBinary() _ = yym1013 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[7] { yym1015 := z.EncBinary() _ = yym1015 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq998[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1016 := z.EncBinary() _ = yym1016 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } if yyr998 || yy2arr998 { 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 yym1017 := z.DecBinary() _ = yym1017 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1018 := r.ContainerType() if yyct1018 == codecSelferValueTypeMap1234 { yyl1018 := r.ReadMapStart() if yyl1018 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1018, d) } } else if yyct1018 == codecSelferValueTypeArray1234 { yyl1018 := r.ReadArrayStart() if yyl1018 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1018, 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 yys1019Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1019Slc var yyhl1019 bool = l >= 0 for yyj1019 := 0; ; yyj1019++ { if yyhl1019 { if yyj1019 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1019Slc = r.DecodeBytes(yys1019Slc, true, true) yys1019 := string(yys1019Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1019 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } case "httpGet": if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } case "tcpSocket": if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } case "initialDelaySeconds": if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = 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)) } default: z.DecStructFieldNotFound(-1, yys1019) } // end switch yys1019 } // end for yyj1019 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 yyj1028 int var yyb1028 bool var yyhl1028 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { 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) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { 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) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { 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) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1028-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1037 := z.EncBinary() _ = yym1037 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 yym1038 := z.DecBinary() _ = yym1038 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 yym1039 := z.EncBinary() _ = yym1039 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 yym1040 := z.DecBinary() _ = yym1040 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 { yym1041 := z.EncBinary() _ = yym1041 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1042 := !z.EncBinary() yy2arr1042 := z.EncBasicHandle().StructToArray var yyq1042 [2]bool _, _, _ = yysep1042, yyq1042, yy2arr1042 const yyr1042 bool = false yyq1042[0] = len(x.Add) != 0 yyq1042[1] = len(x.Drop) != 0 var yynn1042 int if yyr1042 || yy2arr1042 { r.EncodeArrayStart(2) } else { yynn1042 = 0 for _, b := range yyq1042 { if b { yynn1042++ } } r.EncodeMapStart(yynn1042) yynn1042 = 0 } if yyr1042 || yy2arr1042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1042[0] { if x.Add == nil { r.EncodeNil() } else { yym1044 := z.EncBinary() _ = yym1044 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1042[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1045 := z.EncBinary() _ = yym1045 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1042 || yy2arr1042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1042[1] { if x.Drop == nil { r.EncodeNil() } else { yym1047 := z.EncBinary() _ = yym1047 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1042[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1048 := z.EncBinary() _ = yym1048 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1042 || yy2arr1042 { 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 yym1049 := z.DecBinary() _ = yym1049 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1050 := r.ContainerType() if yyct1050 == codecSelferValueTypeMap1234 { yyl1050 := r.ReadMapStart() if yyl1050 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1050, d) } } else if yyct1050 == codecSelferValueTypeArray1234 { yyl1050 := r.ReadArrayStart() if yyl1050 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1050, 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 yys1051Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1051Slc var yyhl1051 bool = l >= 0 for yyj1051 := 0; ; yyj1051++ { if yyhl1051 { if yyj1051 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1051Slc = r.DecodeBytes(yys1051Slc, true, true) yys1051 := string(yys1051Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1051 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1052 := &x.Add yym1053 := z.DecBinary() _ = yym1053 if false { } else { h.decSliceCapability((*[]Capability)(yyv1052), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1054 := &x.Drop yym1055 := z.DecBinary() _ = yym1055 if false { } else { h.decSliceCapability((*[]Capability)(yyv1054), d) } } default: z.DecStructFieldNotFound(-1, yys1051) } // end switch yys1051 } // end for yyj1051 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 yyj1056 int var yyb1056 bool var yyhl1056 bool = l >= 0 yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1057 := &x.Add yym1058 := z.DecBinary() _ = yym1058 if false { } else { h.decSliceCapability((*[]Capability)(yyv1057), d) } } yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1059 := &x.Drop yym1060 := z.DecBinary() _ = yym1060 if false { } else { h.decSliceCapability((*[]Capability)(yyv1059), d) } } for { yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1056-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1061 := z.EncBinary() _ = yym1061 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1062 := !z.EncBinary() yy2arr1062 := z.EncBasicHandle().StructToArray var yyq1062 [2]bool _, _, _ = yysep1062, yyq1062, yy2arr1062 const yyr1062 bool = false yyq1062[0] = len(x.Limits) != 0 yyq1062[1] = len(x.Requests) != 0 var yynn1062 int if yyr1062 || yy2arr1062 { r.EncodeArrayStart(2) } else { yynn1062 = 0 for _, b := range yyq1062 { if b { yynn1062++ } } r.EncodeMapStart(yynn1062) yynn1062 = 0 } if yyr1062 || yy2arr1062 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1062[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1062[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 yyr1062 || yy2arr1062 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1062[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1062[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 yyr1062 || yy2arr1062 { 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 yym1065 := z.DecBinary() _ = yym1065 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1066 := r.ContainerType() if yyct1066 == codecSelferValueTypeMap1234 { yyl1066 := r.ReadMapStart() if yyl1066 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1066, d) } } else if yyct1066 == codecSelferValueTypeArray1234 { yyl1066 := r.ReadArrayStart() if yyl1066 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1066, 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 yys1067Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1067Slc var yyhl1067 bool = l >= 0 for yyj1067 := 0; ; yyj1067++ { if yyhl1067 { if yyj1067 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1067Slc = r.DecodeBytes(yys1067Slc, true, true) yys1067 := string(yys1067Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1067 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1068 := &x.Limits yyv1068.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1069 := &x.Requests yyv1069.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1067) } // end switch yys1067 } // end for yyj1067 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 yyj1070 int var yyb1070 bool var yyhl1070 bool = l >= 0 yyj1070++ if yyhl1070 { yyb1070 = yyj1070 > l } else { yyb1070 = r.CheckBreak() } if yyb1070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1071 := &x.Limits yyv1071.CodecDecodeSelf(d) } yyj1070++ if yyhl1070 { yyb1070 = yyj1070 > l } else { yyb1070 = r.CheckBreak() } if yyb1070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1072 := &x.Requests yyv1072.CodecDecodeSelf(d) } for { yyj1070++ if yyhl1070 { yyb1070 = yyj1070 > l } else { yyb1070 = r.CheckBreak() } if yyb1070 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1070-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 { yym1073 := z.EncBinary() _ = yym1073 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1074 := !z.EncBinary() yy2arr1074 := z.EncBasicHandle().StructToArray var yyq1074 [18]bool _, _, _ = yysep1074, yyq1074, yy2arr1074 const yyr1074 bool = false yyq1074[2] = len(x.Command) != 0 yyq1074[3] = len(x.Args) != 0 yyq1074[4] = x.WorkingDir != "" yyq1074[5] = len(x.Ports) != 0 yyq1074[6] = len(x.Env) != 0 yyq1074[7] = true yyq1074[8] = len(x.VolumeMounts) != 0 yyq1074[9] = x.LivenessProbe != nil yyq1074[10] = x.ReadinessProbe != nil yyq1074[11] = x.Lifecycle != nil yyq1074[12] = x.TerminationMessagePath != "" yyq1074[14] = x.SecurityContext != nil yyq1074[15] = x.Stdin != false yyq1074[16] = x.StdinOnce != false yyq1074[17] = x.TTY != false var yynn1074 int if yyr1074 || yy2arr1074 { r.EncodeArrayStart(18) } else { yynn1074 = 3 for _, b := range yyq1074 { if b { yynn1074++ } } r.EncodeMapStart(yynn1074) yynn1074 = 0 } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1076 := z.EncBinary() _ = yym1076 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) yym1077 := z.EncBinary() _ = yym1077 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1079 := z.EncBinary() _ = yym1079 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) yym1080 := z.EncBinary() _ = yym1080 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[2] { if x.Command == nil { r.EncodeNil() } else { yym1082 := z.EncBinary() _ = yym1082 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1074[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1083 := z.EncBinary() _ = yym1083 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[3] { if x.Args == nil { r.EncodeNil() } else { yym1085 := z.EncBinary() _ = yym1085 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1074[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1086 := z.EncBinary() _ = yym1086 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[4] { yym1088 := z.EncBinary() _ = yym1088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1074[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1089 := z.EncBinary() _ = yym1089 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[5] { if x.Ports == nil { r.EncodeNil() } else { yym1091 := z.EncBinary() _ = yym1091 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1074[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1092 := z.EncBinary() _ = yym1092 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[6] { if x.Env == nil { r.EncodeNil() } else { yym1094 := z.EncBinary() _ = yym1094 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1074[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1095 := z.EncBinary() _ = yym1095 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[7] { yy1097 := &x.Resources yy1097.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1074[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1098 := &x.Resources yy1098.CodecEncodeSelf(e) } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1100 := z.EncBinary() _ = yym1100 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1074[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1101 := z.EncBinary() _ = yym1101 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[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 yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[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 yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[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 yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[12] { yym1106 := z.EncBinary() _ = yym1106 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1074[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1107 := z.EncBinary() _ = yym1107 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1074 || yy2arr1074 { 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 yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[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 yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[15] { yym1111 := z.EncBinary() _ = yym1111 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1074[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1112 := z.EncBinary() _ = yym1112 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[16] { yym1114 := z.EncBinary() _ = yym1114 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1074[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1115 := z.EncBinary() _ = yym1115 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[17] { yym1117 := z.EncBinary() _ = yym1117 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1074[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1118 := z.EncBinary() _ = yym1118 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1074 || yy2arr1074 { 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 yym1119 := z.DecBinary() _ = yym1119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1120 := r.ContainerType() if yyct1120 == codecSelferValueTypeMap1234 { yyl1120 := r.ReadMapStart() if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1120, d) } } else if yyct1120 == codecSelferValueTypeArray1234 { yyl1120 := r.ReadArrayStart() if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1120, 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 yys1121Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1121Slc var yyhl1121 bool = l >= 0 for yyj1121 := 0; ; yyj1121++ { if yyhl1121 { if yyj1121 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1121Slc = r.DecodeBytes(yys1121Slc, true, true) yys1121 := string(yys1121Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1121 { 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 { yyv1124 := &x.Command yym1125 := z.DecBinary() _ = yym1125 if false { } else { z.F.DecSliceStringX(yyv1124, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1126 := &x.Args yym1127 := z.DecBinary() _ = yym1127 if false { } else { z.F.DecSliceStringX(yyv1126, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1129 := &x.Ports yym1130 := z.DecBinary() _ = yym1130 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1129), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1131 := &x.Env yym1132 := z.DecBinary() _ = yym1132 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1131), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1133 := &x.Resources yyv1133.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1134 := &x.VolumeMounts yym1135 := z.DecBinary() _ = yym1135 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1134), 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, yys1121) } // end switch yys1121 } // end for yyj1121 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 yyj1145 int var yyb1145 bool var yyhl1145 bool = l >= 0 yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1148 := &x.Command yym1149 := z.DecBinary() _ = yym1149 if false { } else { z.F.DecSliceStringX(yyv1148, false, d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1150 := &x.Args yym1151 := z.DecBinary() _ = yym1151 if false { } else { z.F.DecSliceStringX(yyv1150, false, d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1153 := &x.Ports yym1154 := z.DecBinary() _ = yym1154 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1153), d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1155 := &x.Env yym1156 := z.DecBinary() _ = yym1156 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1155), d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1157 := &x.Resources yyv1157.CodecDecodeSelf(d) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1158 := &x.VolumeMounts yym1159 := z.DecBinary() _ = yym1159 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1158), d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { 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) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { 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) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { 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) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { 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) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1145-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 { yym1169 := z.EncBinary() _ = yym1169 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1170 := !z.EncBinary() yy2arr1170 := z.EncBasicHandle().StructToArray var yyq1170 [3]bool _, _, _ = yysep1170, yyq1170, yy2arr1170 const yyr1170 bool = false yyq1170[0] = x.Exec != nil yyq1170[1] = x.HTTPGet != nil yyq1170[2] = x.TCPSocket != nil var yynn1170 int if yyr1170 || yy2arr1170 { r.EncodeArrayStart(3) } else { yynn1170 = 0 for _, b := range yyq1170 { if b { yynn1170++ } } r.EncodeMapStart(yynn1170) yynn1170 = 0 } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[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 yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[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 yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[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 yyr1170 || yy2arr1170 { 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 yym1174 := z.DecBinary() _ = yym1174 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1175 := r.ContainerType() if yyct1175 == codecSelferValueTypeMap1234 { yyl1175 := r.ReadMapStart() if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1175, d) } } else if yyct1175 == codecSelferValueTypeArray1234 { yyl1175 := r.ReadArrayStart() if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1175, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1176Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1176Slc var yyhl1176 bool = l >= 0 for yyj1176 := 0; ; yyj1176++ { if yyhl1176 { if yyj1176 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) yys1176 := string(yys1176Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1176 { case "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, yys1176) } // end switch yys1176 } // end for yyj1176 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 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() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } 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) } 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 *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1184 := z.EncBinary() _ = yym1184 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1185 := !z.EncBinary() yy2arr1185 := z.EncBasicHandle().StructToArray var yyq1185 [2]bool _, _, _ = yysep1185, yyq1185, yy2arr1185 const yyr1185 bool = false yyq1185[0] = x.PostStart != nil yyq1185[1] = x.PreStop != nil var yynn1185 int if yyr1185 || yy2arr1185 { r.EncodeArrayStart(2) } else { yynn1185 = 0 for _, b := range yyq1185 { if b { yynn1185++ } } r.EncodeMapStart(yynn1185) yynn1185 = 0 } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1185[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 yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1185[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 yyr1185 || yy2arr1185 { 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 yym1188 := z.DecBinary() _ = yym1188 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1189 := r.ContainerType() if yyct1189 == codecSelferValueTypeMap1234 { yyl1189 := r.ReadMapStart() if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1189, d) } } else if yyct1189 == codecSelferValueTypeArray1234 { yyl1189 := r.ReadArrayStart() if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1189, 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 yys1190Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1190Slc var yyhl1190 bool = l >= 0 for yyj1190 := 0; ; yyj1190++ { if yyhl1190 { if yyj1190 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1190Slc = r.DecodeBytes(yys1190Slc, true, true) yys1190 := string(yys1190Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1190 { 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, yys1190) } // end switch yys1190 } // end for yyj1190 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 yyj1193 int var yyb1193 bool var yyhl1193 bool = l >= 0 yyj1193++ if yyhl1193 { yyb1193 = yyj1193 > l } else { yyb1193 = r.CheckBreak() } if yyb1193 { 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) } yyj1193++ if yyhl1193 { yyb1193 = yyj1193 > l } else { yyb1193 = r.CheckBreak() } if yyb1193 { 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 { yyj1193++ if yyhl1193 { yyb1193 = yyj1193 > l } else { yyb1193 = r.CheckBreak() } if yyb1193 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1193-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1196 := z.EncBinary() _ = yym1196 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 yym1197 := z.DecBinary() _ = yym1197 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 { yym1198 := z.EncBinary() _ = yym1198 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1199 := !z.EncBinary() yy2arr1199 := z.EncBasicHandle().StructToArray var yyq1199 [2]bool _, _, _ = yysep1199, yyq1199, yy2arr1199 const yyr1199 bool = false yyq1199[0] = x.Reason != "" yyq1199[1] = x.Message != "" var yynn1199 int if yyr1199 || yy2arr1199 { r.EncodeArrayStart(2) } else { yynn1199 = 0 for _, b := range yyq1199 { if b { yynn1199++ } } r.EncodeMapStart(yynn1199) yynn1199 = 0 } if yyr1199 || yy2arr1199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1199[0] { yym1201 := z.EncBinary() _ = yym1201 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1199[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1202 := z.EncBinary() _ = yym1202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1199 || yy2arr1199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1199[1] { yym1204 := z.EncBinary() _ = yym1204 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1199[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1205 := z.EncBinary() _ = yym1205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1199 || yy2arr1199 { 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 yym1206 := z.DecBinary() _ = yym1206 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1207 := r.ContainerType() if yyct1207 == codecSelferValueTypeMap1234 { yyl1207 := r.ReadMapStart() if yyl1207 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1207, d) } } else if yyct1207 == codecSelferValueTypeArray1234 { yyl1207 := r.ReadArrayStart() if yyl1207 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1207, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1208Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1208Slc var yyhl1208 bool = l >= 0 for yyj1208 := 0; ; yyj1208++ { if yyhl1208 { if yyj1208 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1208Slc = r.DecodeBytes(yys1208Slc, true, true) yys1208 := string(yys1208Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1208 { case "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, yys1208) } // end switch yys1208 } // end for yyj1208 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 yyj1211 int var yyb1211 bool var yyhl1211 bool = l >= 0 yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1214 := z.EncBinary() _ = yym1214 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1215 := !z.EncBinary() yy2arr1215 := z.EncBasicHandle().StructToArray var yyq1215 [1]bool _, _, _ = yysep1215, yyq1215, yy2arr1215 const yyr1215 bool = false yyq1215[0] = true var yynn1215 int if yyr1215 || yy2arr1215 { r.EncodeArrayStart(1) } else { yynn1215 = 0 for _, b := range yyq1215 { if b { yynn1215++ } } r.EncodeMapStart(yynn1215) yynn1215 = 0 } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1215[0] { yy1217 := &x.StartedAt yym1218 := z.EncBinary() _ = yym1218 if false { } else if z.HasExtensions() && z.EncExt(yy1217) { } else if yym1218 { z.EncBinaryMarshal(yy1217) } else if !yym1218 && z.IsJSONHandle() { z.EncJSONMarshal(yy1217) } else { z.EncFallback(yy1217) } } else { r.EncodeNil() } } else { if yyq1215[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1219 := &x.StartedAt yym1220 := z.EncBinary() _ = yym1220 if false { } else if z.HasExtensions() && z.EncExt(yy1219) { } else if yym1220 { z.EncBinaryMarshal(yy1219) } else if !yym1220 && z.IsJSONHandle() { z.EncJSONMarshal(yy1219) } else { z.EncFallback(yy1219) } } } if yyr1215 || yy2arr1215 { 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 yym1221 := z.DecBinary() _ = yym1221 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1222 := r.ContainerType() if yyct1222 == codecSelferValueTypeMap1234 { yyl1222 := r.ReadMapStart() if yyl1222 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1222, d) } } else if yyct1222 == codecSelferValueTypeArray1234 { yyl1222 := r.ReadArrayStart() if yyl1222 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1222, 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 yys1223Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1223Slc var yyhl1223 bool = l >= 0 for yyj1223 := 0; ; yyj1223++ { if yyhl1223 { if yyj1223 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1223Slc = r.DecodeBytes(yys1223Slc, true, true) yys1223 := string(yys1223Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1223 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1224 := &x.StartedAt yym1225 := z.DecBinary() _ = yym1225 if false { } else if z.HasExtensions() && z.DecExt(yyv1224) { } else if yym1225 { z.DecBinaryUnmarshal(yyv1224) } else if !yym1225 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1224) } else { z.DecFallback(yyv1224, false) } } default: z.DecStructFieldNotFound(-1, yys1223) } // end switch yys1223 } // end for yyj1223 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 yyj1226 int var yyb1226 bool var yyhl1226 bool = l >= 0 yyj1226++ if yyhl1226 { yyb1226 = yyj1226 > l } else { yyb1226 = r.CheckBreak() } if yyb1226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1227 := &x.StartedAt yym1228 := z.DecBinary() _ = yym1228 if false { } else if z.HasExtensions() && z.DecExt(yyv1227) { } else if yym1228 { z.DecBinaryUnmarshal(yyv1227) } else if !yym1228 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1227) } else { z.DecFallback(yyv1227, false) } } for { yyj1226++ if yyhl1226 { yyb1226 = yyj1226 > l } else { yyb1226 = r.CheckBreak() } if yyb1226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1226-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 { yym1229 := z.EncBinary() _ = yym1229 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1230 := !z.EncBinary() yy2arr1230 := z.EncBasicHandle().StructToArray var yyq1230 [7]bool _, _, _ = yysep1230, yyq1230, yy2arr1230 const yyr1230 bool = false yyq1230[1] = x.Signal != 0 yyq1230[2] = x.Reason != "" yyq1230[3] = x.Message != "" yyq1230[4] = true yyq1230[5] = true yyq1230[6] = x.ContainerID != "" var yynn1230 int if yyr1230 || yy2arr1230 { r.EncodeArrayStart(7) } else { yynn1230 = 1 for _, b := range yyq1230 { if b { yynn1230++ } } r.EncodeMapStart(yynn1230) yynn1230 = 0 } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1232 := z.EncBinary() _ = yym1232 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1233 := z.EncBinary() _ = yym1233 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[1] { yym1235 := z.EncBinary() _ = yym1235 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1230[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1236 := z.EncBinary() _ = yym1236 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[2] { yym1238 := z.EncBinary() _ = yym1238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1230[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1239 := z.EncBinary() _ = yym1239 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[3] { yym1241 := z.EncBinary() _ = yym1241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1230[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1242 := z.EncBinary() _ = yym1242 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[4] { yy1244 := &x.StartedAt yym1245 := z.EncBinary() _ = yym1245 if false { } else if z.HasExtensions() && z.EncExt(yy1244) { } else if yym1245 { z.EncBinaryMarshal(yy1244) } else if !yym1245 && z.IsJSONHandle() { z.EncJSONMarshal(yy1244) } else { z.EncFallback(yy1244) } } else { r.EncodeNil() } } else { if yyq1230[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1246 := &x.StartedAt yym1247 := z.EncBinary() _ = yym1247 if false { } else if z.HasExtensions() && z.EncExt(yy1246) { } else if yym1247 { z.EncBinaryMarshal(yy1246) } else if !yym1247 && z.IsJSONHandle() { z.EncJSONMarshal(yy1246) } else { z.EncFallback(yy1246) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[5] { yy1249 := &x.FinishedAt yym1250 := z.EncBinary() _ = yym1250 if false { } else if z.HasExtensions() && z.EncExt(yy1249) { } else if yym1250 { z.EncBinaryMarshal(yy1249) } else if !yym1250 && z.IsJSONHandle() { z.EncJSONMarshal(yy1249) } else { z.EncFallback(yy1249) } } else { r.EncodeNil() } } else { if yyq1230[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1251 := &x.FinishedAt yym1252 := z.EncBinary() _ = yym1252 if false { } else if z.HasExtensions() && z.EncExt(yy1251) { } else if yym1252 { z.EncBinaryMarshal(yy1251) } else if !yym1252 && z.IsJSONHandle() { z.EncJSONMarshal(yy1251) } else { z.EncFallback(yy1251) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[6] { yym1254 := z.EncBinary() _ = yym1254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1230[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1255 := z.EncBinary() _ = yym1255 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1230 || yy2arr1230 { 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 yym1256 := z.DecBinary() _ = yym1256 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1257 := r.ContainerType() if yyct1257 == codecSelferValueTypeMap1234 { yyl1257 := r.ReadMapStart() if yyl1257 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1257, d) } } else if yyct1257 == codecSelferValueTypeArray1234 { yyl1257 := r.ReadArrayStart() if yyl1257 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1257, 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 yys1258Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1258Slc var yyhl1258 bool = l >= 0 for yyj1258 := 0; ; yyj1258++ { if yyhl1258 { if yyj1258 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1258Slc = r.DecodeBytes(yys1258Slc, true, true) yys1258 := string(yys1258Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1258 { 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 { yyv1263 := &x.StartedAt yym1264 := z.DecBinary() _ = yym1264 if false { } else if z.HasExtensions() && z.DecExt(yyv1263) { } else if yym1264 { z.DecBinaryUnmarshal(yyv1263) } else if !yym1264 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1263) } else { z.DecFallback(yyv1263, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1265 := &x.FinishedAt yym1266 := z.DecBinary() _ = yym1266 if false { } else if z.HasExtensions() && z.DecExt(yyv1265) { } else if yym1266 { z.DecBinaryUnmarshal(yyv1265) } else if !yym1266 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1265) } else { z.DecFallback(yyv1265, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1258) } // end switch yys1258 } // end for yyj1258 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 yyj1268 int var yyb1268 bool var yyhl1268 bool = l >= 0 yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1273 := &x.StartedAt yym1274 := z.DecBinary() _ = yym1274 if false { } else if z.HasExtensions() && z.DecExt(yyv1273) { } else if yym1274 { z.DecBinaryUnmarshal(yyv1273) } else if !yym1274 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1273) } else { z.DecFallback(yyv1273, false) } } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1275 := &x.FinishedAt yym1276 := z.DecBinary() _ = yym1276 if false { } else if z.HasExtensions() && z.DecExt(yyv1275) { } else if yym1276 { z.DecBinaryUnmarshal(yyv1275) } else if !yym1276 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1275) } else { z.DecFallback(yyv1275, false) } } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1268-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 { yym1278 := z.EncBinary() _ = yym1278 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1279 := !z.EncBinary() yy2arr1279 := z.EncBasicHandle().StructToArray var yyq1279 [3]bool _, _, _ = yysep1279, yyq1279, yy2arr1279 const yyr1279 bool = false yyq1279[0] = x.Waiting != nil yyq1279[1] = x.Running != nil yyq1279[2] = x.Terminated != nil var yynn1279 int if yyr1279 || yy2arr1279 { r.EncodeArrayStart(3) } else { yynn1279 = 0 for _, b := range yyq1279 { if b { yynn1279++ } } r.EncodeMapStart(yynn1279) yynn1279 = 0 } if yyr1279 || yy2arr1279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1279[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1279[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 yyr1279 || yy2arr1279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1279[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1279[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 yyr1279 || yy2arr1279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1279[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1279[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 yyr1279 || yy2arr1279 { 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 yym1283 := z.DecBinary() _ = yym1283 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1284 := r.ContainerType() if yyct1284 == codecSelferValueTypeMap1234 { yyl1284 := r.ReadMapStart() if yyl1284 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1284, d) } } else if yyct1284 == codecSelferValueTypeArray1234 { yyl1284 := r.ReadArrayStart() if yyl1284 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1284, 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 yys1285Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1285Slc var yyhl1285 bool = l >= 0 for yyj1285 := 0; ; yyj1285++ { if yyhl1285 { if yyj1285 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1285Slc = r.DecodeBytes(yys1285Slc, true, true) yys1285 := string(yys1285Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1285 { 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, yys1285) } // end switch yys1285 } // end for yyj1285 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 yyj1289 int var yyb1289 bool var yyhl1289 bool = l >= 0 yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { 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) } yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { 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) } yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { 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 { yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1289-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 { yym1293 := z.EncBinary() _ = yym1293 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1294 := !z.EncBinary() yy2arr1294 := z.EncBasicHandle().StructToArray var yyq1294 [8]bool _, _, _ = yysep1294, yyq1294, yy2arr1294 const yyr1294 bool = false yyq1294[1] = true yyq1294[2] = true yyq1294[7] = x.ContainerID != "" var yynn1294 int if yyr1294 || yy2arr1294 { r.EncodeArrayStart(8) } else { yynn1294 = 5 for _, b := range yyq1294 { if b { yynn1294++ } } r.EncodeMapStart(yynn1294) yynn1294 = 0 } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1296 := z.EncBinary() _ = yym1296 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) yym1297 := z.EncBinary() _ = yym1297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1294[1] { yy1299 := &x.State yy1299.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1294[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1300 := &x.State yy1300.CodecEncodeSelf(e) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1294[2] { yy1302 := &x.LastTerminationState yy1302.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1294[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1303 := &x.LastTerminationState yy1303.CodecEncodeSelf(e) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1305 := z.EncBinary() _ = yym1305 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1306 := z.EncBinary() _ = yym1306 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1308 := z.EncBinary() _ = yym1308 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1309 := z.EncBinary() _ = yym1309 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1311 := z.EncBinary() _ = yym1311 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) yym1312 := z.EncBinary() _ = yym1312 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1314 := z.EncBinary() _ = yym1314 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) yym1315 := z.EncBinary() _ = yym1315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1294[7] { yym1317 := z.EncBinary() _ = yym1317 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1294[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1318 := z.EncBinary() _ = yym1318 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1294 || yy2arr1294 { 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 yym1319 := z.DecBinary() _ = yym1319 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1320 := r.ContainerType() if yyct1320 == codecSelferValueTypeMap1234 { yyl1320 := r.ReadMapStart() if yyl1320 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1320, d) } } else if yyct1320 == codecSelferValueTypeArray1234 { yyl1320 := r.ReadArrayStart() if yyl1320 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1320, 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 yys1321Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1321Slc var yyhl1321 bool = l >= 0 for yyj1321 := 0; ; yyj1321++ { if yyhl1321 { if yyj1321 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1321Slc = r.DecodeBytes(yys1321Slc, true, true) yys1321 := string(yys1321Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1321 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1323 := &x.State yyv1323.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1324 := &x.LastTerminationState yyv1324.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, yys1321) } // end switch yys1321 } // end for yyj1321 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 yyj1330 int var yyb1330 bool var yyhl1330 bool = l >= 0 yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1332 := &x.State yyv1332.CodecDecodeSelf(d) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1333 := &x.LastTerminationState yyv1333.CodecDecodeSelf(d) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1330-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1339 := z.EncBinary() _ = yym1339 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 yym1340 := z.DecBinary() _ = yym1340 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 yym1341 := z.EncBinary() _ = yym1341 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 yym1342 := z.DecBinary() _ = yym1342 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 { yym1343 := z.EncBinary() _ = yym1343 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1344 := !z.EncBinary() yy2arr1344 := z.EncBasicHandle().StructToArray var yyq1344 [6]bool _, _, _ = yysep1344, yyq1344, yy2arr1344 const yyr1344 bool = false yyq1344[2] = true yyq1344[3] = true yyq1344[4] = x.Reason != "" yyq1344[5] = x.Message != "" var yynn1344 int if yyr1344 || yy2arr1344 { r.EncodeArrayStart(6) } else { yynn1344 = 2 for _, b := range yyq1344 { if b { yynn1344++ } } r.EncodeMapStart(yynn1344) yynn1344 = 0 } if yyr1344 || yy2arr1344 { 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 yyr1344 || yy2arr1344 { 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 yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[2] { yy1348 := &x.LastProbeTime yym1349 := z.EncBinary() _ = yym1349 if false { } else if z.HasExtensions() && z.EncExt(yy1348) { } else if yym1349 { z.EncBinaryMarshal(yy1348) } else if !yym1349 && z.IsJSONHandle() { z.EncJSONMarshal(yy1348) } else { z.EncFallback(yy1348) } } else { r.EncodeNil() } } else { if yyq1344[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1350 := &x.LastProbeTime yym1351 := z.EncBinary() _ = yym1351 if false { } else if z.HasExtensions() && z.EncExt(yy1350) { } else if yym1351 { z.EncBinaryMarshal(yy1350) } else if !yym1351 && z.IsJSONHandle() { z.EncJSONMarshal(yy1350) } else { z.EncFallback(yy1350) } } } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[3] { yy1353 := &x.LastTransitionTime yym1354 := z.EncBinary() _ = yym1354 if false { } else if z.HasExtensions() && z.EncExt(yy1353) { } else if yym1354 { z.EncBinaryMarshal(yy1353) } else if !yym1354 && z.IsJSONHandle() { z.EncJSONMarshal(yy1353) } else { z.EncFallback(yy1353) } } else { r.EncodeNil() } } else { if yyq1344[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1355 := &x.LastTransitionTime yym1356 := z.EncBinary() _ = yym1356 if false { } else if z.HasExtensions() && z.EncExt(yy1355) { } else if yym1356 { z.EncBinaryMarshal(yy1355) } else if !yym1356 && z.IsJSONHandle() { z.EncJSONMarshal(yy1355) } else { z.EncFallback(yy1355) } } } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[4] { yym1358 := z.EncBinary() _ = yym1358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1344[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1359 := z.EncBinary() _ = yym1359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[5] { yym1361 := z.EncBinary() _ = yym1361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1344[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1362 := z.EncBinary() _ = yym1362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1344 || yy2arr1344 { 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 yym1363 := z.DecBinary() _ = yym1363 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1364 := r.ContainerType() if yyct1364 == codecSelferValueTypeMap1234 { yyl1364 := r.ReadMapStart() if yyl1364 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1364, d) } } else if yyct1364 == codecSelferValueTypeArray1234 { yyl1364 := r.ReadArrayStart() if yyl1364 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1364, 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 yys1365Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1365Slc var yyhl1365 bool = l >= 0 for yyj1365 := 0; ; yyj1365++ { if yyhl1365 { if yyj1365 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1365Slc = r.DecodeBytes(yys1365Slc, true, true) yys1365 := string(yys1365Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1365 { 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 { yyv1368 := &x.LastProbeTime yym1369 := z.DecBinary() _ = yym1369 if false { } else if z.HasExtensions() && z.DecExt(yyv1368) { } else if yym1369 { z.DecBinaryUnmarshal(yyv1368) } else if !yym1369 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1368) } else { z.DecFallback(yyv1368, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1370 := &x.LastTransitionTime yym1371 := z.DecBinary() _ = yym1371 if false { } else if z.HasExtensions() && z.DecExt(yyv1370) { } else if yym1371 { z.DecBinaryUnmarshal(yyv1370) } else if !yym1371 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1370) } else { z.DecFallback(yyv1370, 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, yys1365) } // end switch yys1365 } // end for yyj1365 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 yyj1374 int var yyb1374 bool var yyhl1374 bool = l >= 0 yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1377 := &x.LastProbeTime yym1378 := z.DecBinary() _ = yym1378 if false { } else if z.HasExtensions() && z.DecExt(yyv1377) { } else if yym1378 { z.DecBinaryUnmarshal(yyv1377) } else if !yym1378 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1377) } else { z.DecFallback(yyv1377, false) } } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1379 := &x.LastTransitionTime 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) } } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1374-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1383 := z.EncBinary() _ = yym1383 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 yym1384 := z.DecBinary() _ = yym1384 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 { yym1385 := z.EncBinary() _ = yym1385 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1386 := !z.EncBinary() yy2arr1386 := z.EncBasicHandle().StructToArray var yyq1386 [4]bool _, _, _ = yysep1386, yyq1386, yy2arr1386 const yyr1386 bool = false yyq1386[0] = x.Kind != "" yyq1386[1] = x.APIVersion != "" yyq1386[2] = true var yynn1386 int if yyr1386 || yy2arr1386 { r.EncodeArrayStart(4) } else { yynn1386 = 1 for _, b := range yyq1386 { if b { yynn1386++ } } r.EncodeMapStart(yynn1386) yynn1386 = 0 } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1386[0] { yym1388 := z.EncBinary() _ = yym1388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1386[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1389 := z.EncBinary() _ = yym1389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1386[1] { yym1391 := z.EncBinary() _ = yym1391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1386[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1392 := z.EncBinary() _ = yym1392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1386[2] { yy1394 := &x.ListMeta yym1395 := z.EncBinary() _ = yym1395 if false { } else if z.HasExtensions() && z.EncExt(yy1394) { } else { z.EncFallback(yy1394) } } else { r.EncodeNil() } } else { if yyq1386[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1396 := &x.ListMeta yym1397 := z.EncBinary() _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(yy1396) { } else { z.EncFallback(yy1396) } } } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1399 := z.EncBinary() _ = yym1399 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 { yym1400 := z.EncBinary() _ = yym1400 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1386 || yy2arr1386 { 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 yym1401 := z.DecBinary() _ = yym1401 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1402 := r.ContainerType() if yyct1402 == codecSelferValueTypeMap1234 { yyl1402 := r.ReadMapStart() if yyl1402 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1402, d) } } else if yyct1402 == codecSelferValueTypeArray1234 { yyl1402 := r.ReadArrayStart() if yyl1402 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1402, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1403Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1403Slc var yyhl1403 bool = l >= 0 for yyj1403 := 0; ; yyj1403++ { if yyhl1403 { if yyj1403 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1403Slc = r.DecodeBytes(yys1403Slc, true, true) yys1403 := string(yys1403Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1403 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1406 := &x.ListMeta yym1407 := z.DecBinary() _ = yym1407 if false { } else if z.HasExtensions() && z.DecExt(yyv1406) { } else { z.DecFallback(yyv1406, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1408 := &x.Items yym1409 := z.DecBinary() _ = yym1409 if false { } else { h.decSlicePod((*[]Pod)(yyv1408), d) } } default: z.DecStructFieldNotFound(-1, yys1403) } // end switch yys1403 } // end for yyj1403 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 yyj1410 int var yyb1410 bool var yyhl1410 bool = l >= 0 yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1413 := &x.ListMeta yym1414 := z.DecBinary() _ = yym1414 if false { } else if z.HasExtensions() && z.DecExt(yyv1413) { } else { z.DecFallback(yyv1413, false) } } yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1415 := &x.Items yym1416 := z.DecBinary() _ = yym1416 if false { } else { h.decSlicePod((*[]Pod)(yyv1415), d) } } for { yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1410-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1417 := z.EncBinary() _ = yym1417 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 yym1418 := z.DecBinary() _ = yym1418 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1419 := z.EncBinary() _ = yym1419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1420 := !z.EncBinary() yy2arr1420 := z.EncBasicHandle().StructToArray var yyq1420 [11]bool _, _, _ = yysep1420, yyq1420, yy2arr1420 const yyr1420 bool = false yyq1420[2] = x.RestartPolicy != "" yyq1420[3] = x.TerminationGracePeriodSeconds != nil yyq1420[4] = x.ActiveDeadlineSeconds != nil yyq1420[5] = x.DNSPolicy != "" yyq1420[6] = len(x.NodeSelector) != 0 yyq1420[8] = x.NodeName != "" yyq1420[9] = x.SecurityContext != nil yyq1420[10] = len(x.ImagePullSecrets) != 0 var yynn1420 int if yyr1420 || yy2arr1420 { r.EncodeArrayStart(11) } else { yynn1420 = 3 for _, b := range yyq1420 { if b { yynn1420++ } } r.EncodeMapStart(yynn1420) yynn1420 = 0 } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym1422 := z.EncBinary() _ = yym1422 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 { yym1423 := z.EncBinary() _ = yym1423 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym1425 := z.EncBinary() _ = yym1425 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 { yym1426 := z.EncBinary() _ = yym1426 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1420[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1429 := *x.TerminationGracePeriodSeconds yym1430 := z.EncBinary() _ = yym1430 if false { } else { r.EncodeInt(int64(yy1429)) } } } else { r.EncodeNil() } } else { if yyq1420[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1431 := *x.TerminationGracePeriodSeconds yym1432 := z.EncBinary() _ = yym1432 if false { } else { r.EncodeInt(int64(yy1431)) } } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1434 := *x.ActiveDeadlineSeconds yym1435 := z.EncBinary() _ = yym1435 if false { } else { r.EncodeInt(int64(yy1434)) } } } else { r.EncodeNil() } } else { if yyq1420[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1436 := *x.ActiveDeadlineSeconds yym1437 := z.EncBinary() _ = yym1437 if false { } else { r.EncodeInt(int64(yy1436)) } } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1420[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym1440 := z.EncBinary() _ = yym1440 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq1420[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym1441 := z.EncBinary() _ = yym1441 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1443 := z.EncBinary() _ = yym1443 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) yym1444 := z.EncBinary() _ = yym1444 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[8] { yym1446 := z.EncBinary() _ = yym1446 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1420[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1447 := z.EncBinary() _ = yym1447 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1420[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 yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1450 := z.EncBinary() _ = yym1450 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq1420[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1451 := z.EncBinary() _ = yym1451 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr1420 || yy2arr1420 { 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 yym1452 := z.DecBinary() _ = yym1452 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1453 := r.ContainerType() if yyct1453 == codecSelferValueTypeMap1234 { yyl1453 := r.ReadMapStart() if yyl1453 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1453, d) } } else if yyct1453 == codecSelferValueTypeArray1234 { yyl1453 := r.ReadArrayStart() if yyl1453 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1453, 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 yys1454Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1454Slc var yyhl1454 bool = l >= 0 for yyj1454 := 0; ; yyj1454++ { if yyhl1454 { if yyj1454 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1454Slc = r.DecodeBytes(yys1454Slc, true, true) yys1454 := string(yys1454Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1454 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1455 := &x.Volumes yym1456 := z.DecBinary() _ = yym1456 if false { } else { h.decSliceVolume((*[]Volume)(yyv1455), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1457 := &x.Containers yym1458 := z.DecBinary() _ = yym1458 if false { } else { h.decSliceContainer((*[]Container)(yyv1457), 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) } yym1461 := z.DecBinary() _ = yym1461 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) } yym1463 := z.DecBinary() _ = yym1463 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 { yyv1465 := &x.NodeSelector yym1466 := z.DecBinary() _ = yym1466 if false { } else { z.F.DecMapStringStringX(yyv1465, 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 { yyv1470 := &x.ImagePullSecrets yym1471 := z.DecBinary() _ = yym1471 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1470), d) } } default: z.DecStructFieldNotFound(-1, yys1454) } // end switch yys1454 } // end for yyj1454 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 yyj1472 int var yyb1472 bool var yyhl1472 bool = l >= 0 yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1473 := &x.Volumes yym1474 := z.DecBinary() _ = yym1474 if false { } else { h.decSliceVolume((*[]Volume)(yyv1473), d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1475 := &x.Containers yym1476 := z.DecBinary() _ = yym1476 if false { } else { h.decSliceContainer((*[]Container)(yyv1475), d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TerminationGracePeriodSeconds != nil { x.TerminationGracePeriodSeconds = nil } } else { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } yym1479 := z.DecBinary() _ = yym1479 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ActiveDeadlineSeconds != nil { x.ActiveDeadlineSeconds = nil } } else { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } yym1481 := z.DecBinary() _ = yym1481 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv1483 := &x.NodeSelector yym1484 := z.DecBinary() _ = yym1484 if false { } else { z.F.DecMapStringStringX(yyv1483, false, d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(PodSecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv1488 := &x.ImagePullSecrets yym1489 := z.DecBinary() _ = yym1489 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1488), d) } } for { yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1472-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1490 := z.EncBinary() _ = yym1490 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1491 := !z.EncBinary() yy2arr1491 := z.EncBasicHandle().StructToArray var yyq1491 [8]bool _, _, _ = yysep1491, yyq1491, yy2arr1491 const yyr1491 bool = false yyq1491[0] = x.HostNetwork != false yyq1491[1] = x.HostPID != false yyq1491[2] = x.HostIPC != false yyq1491[3] = x.SELinuxOptions != nil yyq1491[4] = x.RunAsUser != nil yyq1491[5] = x.RunAsNonRoot != nil yyq1491[6] = len(x.SupplementalGroups) != 0 yyq1491[7] = x.FSGroup != nil var yynn1491 int if yyr1491 || yy2arr1491 { r.EncodeArrayStart(8) } else { yynn1491 = 0 for _, b := range yyq1491 { if b { yynn1491++ } } r.EncodeMapStart(yynn1491) yynn1491 = 0 } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[0] { yym1493 := z.EncBinary() _ = yym1493 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq1491[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1494 := z.EncBinary() _ = yym1494 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[1] { yym1496 := z.EncBinary() _ = yym1496 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq1491[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1497 := z.EncBinary() _ = yym1497 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[2] { yym1499 := z.EncBinary() _ = yym1499 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq1491[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1500 := z.EncBinary() _ = yym1500 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1491[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 yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy1503 := *x.RunAsUser yym1504 := z.EncBinary() _ = yym1504 if false { } else { r.EncodeInt(int64(yy1503)) } } } else { r.EncodeNil() } } else { if yyq1491[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy1505 := *x.RunAsUser yym1506 := z.EncBinary() _ = yym1506 if false { } else { r.EncodeInt(int64(yy1505)) } } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1508 := *x.RunAsNonRoot yym1509 := z.EncBinary() _ = yym1509 if false { } else { r.EncodeBool(bool(yy1508)) } } } else { r.EncodeNil() } } else { if yyq1491[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1510 := *x.RunAsNonRoot yym1511 := z.EncBinary() _ = yym1511 if false { } else { r.EncodeBool(bool(yy1510)) } } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1513 := z.EncBinary() _ = yym1513 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq1491[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1514 := z.EncBinary() _ = yym1514 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy1516 := *x.FSGroup yym1517 := z.EncBinary() _ = yym1517 if false { } else { r.EncodeInt(int64(yy1516)) } } } else { r.EncodeNil() } } else { if yyq1491[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy1518 := *x.FSGroup yym1519 := z.EncBinary() _ = yym1519 if false { } else { r.EncodeInt(int64(yy1518)) } } } } if yyr1491 || yy2arr1491 { 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 yym1520 := z.DecBinary() _ = yym1520 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1521 := r.ContainerType() if yyct1521 == codecSelferValueTypeMap1234 { yyl1521 := r.ReadMapStart() if yyl1521 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1521, d) } } else if yyct1521 == codecSelferValueTypeArray1234 { yyl1521 := r.ReadArrayStart() if yyl1521 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1521, 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 yys1522Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1522Slc var yyhl1522 bool = l >= 0 for yyj1522 := 0; ; yyj1522++ { if yyhl1522 { if yyj1522 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1522Slc = r.DecodeBytes(yys1522Slc, true, true) yys1522 := string(yys1522Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1522 { 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) } yym1528 := z.DecBinary() _ = yym1528 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) } yym1530 := z.DecBinary() _ = yym1530 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1531 := &x.SupplementalGroups yym1532 := z.DecBinary() _ = yym1532 if false { } else { z.F.DecSliceInt64X(yyv1531, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym1534 := z.DecBinary() _ = yym1534 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys1522) } // end switch yys1522 } // end for yyj1522 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 yyj1535 int var yyb1535 bool var yyhl1535 bool = l >= 0 yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { 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) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { 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) } yym1541 := z.DecBinary() _ = yym1541 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { 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) } yym1543 := z.DecBinary() _ = yym1543 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1544 := &x.SupplementalGroups yym1545 := z.DecBinary() _ = yym1545 if false { } else { z.F.DecSliceInt64X(yyv1544, false, d) } } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { 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) } yym1547 := z.DecBinary() _ = yym1547 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1535-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 { yym1548 := z.EncBinary() _ = yym1548 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1549 := !z.EncBinary() yy2arr1549 := z.EncBasicHandle().StructToArray var yyq1549 [8]bool _, _, _ = yysep1549, yyq1549, yy2arr1549 const yyr1549 bool = false yyq1549[0] = x.Phase != "" yyq1549[1] = len(x.Conditions) != 0 yyq1549[2] = x.Message != "" yyq1549[3] = x.Reason != "" yyq1549[4] = x.HostIP != "" yyq1549[5] = x.PodIP != "" yyq1549[6] = x.StartTime != nil yyq1549[7] = len(x.ContainerStatuses) != 0 var yynn1549 int if yyr1549 || yy2arr1549 { r.EncodeArrayStart(8) } else { yynn1549 = 0 for _, b := range yyq1549 { if b { yynn1549++ } } r.EncodeMapStart(yynn1549) yynn1549 = 0 } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[1] { if x.Conditions == nil { r.EncodeNil() } else { yym1552 := z.EncBinary() _ = yym1552 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq1549[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym1553 := z.EncBinary() _ = yym1553 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[2] { yym1555 := z.EncBinary() _ = yym1555 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1556 := z.EncBinary() _ = yym1556 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[3] { yym1558 := z.EncBinary() _ = yym1558 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1559 := z.EncBinary() _ = yym1559 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[4] { yym1561 := z.EncBinary() _ = yym1561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1562 := z.EncBinary() _ = yym1562 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[5] { yym1564 := z.EncBinary() _ = yym1564 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1565 := z.EncBinary() _ = yym1565 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[6] { if x.StartTime == nil { r.EncodeNil() } else { yym1567 := z.EncBinary() _ = yym1567 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1567 { z.EncBinaryMarshal(x.StartTime) } else if !yym1567 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq1549[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym1568 := z.EncBinary() _ = yym1568 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1568 { z.EncBinaryMarshal(x.StartTime) } else if !yym1568 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1570 := z.EncBinary() _ = yym1570 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq1549[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1571 := z.EncBinary() _ = yym1571 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr1549 || yy2arr1549 { 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 yym1572 := z.DecBinary() _ = yym1572 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1573 := r.ContainerType() if yyct1573 == codecSelferValueTypeMap1234 { yyl1573 := r.ReadMapStart() if yyl1573 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1573, d) } } else if yyct1573 == codecSelferValueTypeArray1234 { yyl1573 := r.ReadArrayStart() if yyl1573 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1573, 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 yys1574Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1574Slc var yyhl1574 bool = l >= 0 for yyj1574 := 0; ; yyj1574++ { if yyhl1574 { if yyj1574 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1574Slc = r.DecodeBytes(yys1574Slc, true, true) yys1574 := string(yys1574Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1574 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1576 := &x.Conditions yym1577 := z.DecBinary() _ = yym1577 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1576), 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) } yym1583 := z.DecBinary() _ = yym1583 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1583 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1583 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1584 := &x.ContainerStatuses yym1585 := z.DecBinary() _ = yym1585 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1584), d) } } default: z.DecStructFieldNotFound(-1, yys1574) } // end switch yys1574 } // end for yyj1574 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 yyj1586 int var yyb1586 bool var yyhl1586 bool = l >= 0 yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1588 := &x.Conditions yym1589 := z.DecBinary() _ = yym1589 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1588), d) } } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { 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) } yym1595 := z.DecBinary() _ = yym1595 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1595 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1595 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1596 := &x.ContainerStatuses yym1597 := z.DecBinary() _ = yym1597 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1596), d) } } for { yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1586-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 { yym1598 := z.EncBinary() _ = yym1598 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1599 := !z.EncBinary() yy2arr1599 := z.EncBasicHandle().StructToArray var yyq1599 [4]bool _, _, _ = yysep1599, yyq1599, yy2arr1599 const yyr1599 bool = false yyq1599[0] = x.Kind != "" yyq1599[1] = x.APIVersion != "" yyq1599[2] = true yyq1599[3] = true var yynn1599 int if yyr1599 || yy2arr1599 { r.EncodeArrayStart(4) } else { yynn1599 = 0 for _, b := range yyq1599 { if b { yynn1599++ } } r.EncodeMapStart(yynn1599) yynn1599 = 0 } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[0] { yym1601 := z.EncBinary() _ = yym1601 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1599[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1602 := z.EncBinary() _ = yym1602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[1] { yym1604 := z.EncBinary() _ = yym1604 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1599[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1605 := z.EncBinary() _ = yym1605 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[2] { yy1607 := &x.ObjectMeta yy1607.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1599[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1608 := &x.ObjectMeta yy1608.CodecEncodeSelf(e) } } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[3] { yy1610 := &x.Status yy1610.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1599[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1611 := &x.Status yy1611.CodecEncodeSelf(e) } } if yyr1599 || yy2arr1599 { 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 yym1612 := z.DecBinary() _ = yym1612 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1613 := r.ContainerType() if yyct1613 == codecSelferValueTypeMap1234 { yyl1613 := r.ReadMapStart() if yyl1613 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1613, d) } } else if yyct1613 == codecSelferValueTypeArray1234 { yyl1613 := r.ReadArrayStart() if yyl1613 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1613, 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 yys1614Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1614Slc var yyhl1614 bool = l >= 0 for yyj1614 := 0; ; yyj1614++ { if yyhl1614 { if yyj1614 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1614Slc = r.DecodeBytes(yys1614Slc, true, true) yys1614 := string(yys1614Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1614 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1617 := &x.ObjectMeta yyv1617.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1618 := &x.Status yyv1618.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1614) } // end switch yys1614 } // end for yyj1614 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 yyj1619 int var yyb1619 bool var yyhl1619 bool = l >= 0 yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1622 := &x.ObjectMeta yyv1622.CodecDecodeSelf(d) } yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1623 := &x.Status yyv1623.CodecDecodeSelf(d) } for { yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1619-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 { yym1624 := z.EncBinary() _ = yym1624 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1625 := !z.EncBinary() yy2arr1625 := z.EncBasicHandle().StructToArray var yyq1625 [5]bool _, _, _ = yysep1625, yyq1625, yy2arr1625 const yyr1625 bool = false yyq1625[0] = x.Kind != "" yyq1625[1] = x.APIVersion != "" yyq1625[2] = true yyq1625[3] = true yyq1625[4] = true var yynn1625 int if yyr1625 || yy2arr1625 { r.EncodeArrayStart(5) } else { yynn1625 = 0 for _, b := range yyq1625 { if b { yynn1625++ } } r.EncodeMapStart(yynn1625) yynn1625 = 0 } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[0] { yym1627 := z.EncBinary() _ = yym1627 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1625[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1628 := z.EncBinary() _ = yym1628 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[1] { yym1630 := z.EncBinary() _ = yym1630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1625[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1631 := z.EncBinary() _ = yym1631 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[2] { yy1633 := &x.ObjectMeta yy1633.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1625[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1634 := &x.ObjectMeta yy1634.CodecEncodeSelf(e) } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[3] { yy1636 := &x.Spec yy1636.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1625[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1637 := &x.Spec yy1637.CodecEncodeSelf(e) } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[4] { yy1639 := &x.Status yy1639.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1625[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1640 := &x.Status yy1640.CodecEncodeSelf(e) } } if yyr1625 || yy2arr1625 { 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 yym1641 := z.DecBinary() _ = yym1641 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1642 := r.ContainerType() if yyct1642 == codecSelferValueTypeMap1234 { yyl1642 := r.ReadMapStart() if yyl1642 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1642, d) } } else if yyct1642 == codecSelferValueTypeArray1234 { yyl1642 := r.ReadArrayStart() if yyl1642 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1642, 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 yys1643Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1643Slc var yyhl1643 bool = l >= 0 for yyj1643 := 0; ; yyj1643++ { if yyhl1643 { if yyj1643 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1643Slc = r.DecodeBytes(yys1643Slc, true, true) yys1643 := string(yys1643Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1643 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1646 := &x.ObjectMeta yyv1646.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1647 := &x.Spec yyv1647.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1648 := &x.Status yyv1648.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1643) } // end switch yys1643 } // end for yyj1643 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 yyj1649 int var yyb1649 bool var yyhl1649 bool = l >= 0 yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1652 := &x.ObjectMeta yyv1652.CodecDecodeSelf(d) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1653 := &x.Spec yyv1653.CodecDecodeSelf(d) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1654 := &x.Status yyv1654.CodecDecodeSelf(d) } for { yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1649-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 { yym1655 := z.EncBinary() _ = yym1655 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1656 := !z.EncBinary() yy2arr1656 := z.EncBasicHandle().StructToArray var yyq1656 [2]bool _, _, _ = yysep1656, yyq1656, yy2arr1656 const yyr1656 bool = false yyq1656[0] = true yyq1656[1] = true var yynn1656 int if yyr1656 || yy2arr1656 { r.EncodeArrayStart(2) } else { yynn1656 = 0 for _, b := range yyq1656 { if b { yynn1656++ } } r.EncodeMapStart(yynn1656) yynn1656 = 0 } if yyr1656 || yy2arr1656 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1656[0] { yy1658 := &x.ObjectMeta yy1658.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1656[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1659 := &x.ObjectMeta yy1659.CodecEncodeSelf(e) } } if yyr1656 || yy2arr1656 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1656[1] { yy1661 := &x.Spec yy1661.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1656[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1662 := &x.Spec yy1662.CodecEncodeSelf(e) } } if yyr1656 || yy2arr1656 { 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 yym1663 := z.DecBinary() _ = yym1663 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1664 := r.ContainerType() if yyct1664 == codecSelferValueTypeMap1234 { yyl1664 := r.ReadMapStart() if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1664, d) } } else if yyct1664 == codecSelferValueTypeArray1234 { yyl1664 := r.ReadArrayStart() if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1664, 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 yys1665Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1665Slc var yyhl1665 bool = l >= 0 for yyj1665 := 0; ; yyj1665++ { if yyhl1665 { if yyj1665 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1665Slc = r.DecodeBytes(yys1665Slc, true, true) yys1665 := string(yys1665Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1665 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1666 := &x.ObjectMeta yyv1666.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1667 := &x.Spec yyv1667.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1665) } // end switch yys1665 } // end for yyj1665 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 yyj1668 int var yyb1668 bool var yyhl1668 bool = l >= 0 yyj1668++ if yyhl1668 { yyb1668 = yyj1668 > l } else { yyb1668 = r.CheckBreak() } if yyb1668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1669 := &x.ObjectMeta yyv1669.CodecDecodeSelf(d) } yyj1668++ if yyhl1668 { yyb1668 = yyj1668 > l } else { yyb1668 = r.CheckBreak() } if yyb1668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1670 := &x.Spec yyv1670.CodecDecodeSelf(d) } for { yyj1668++ if yyhl1668 { yyb1668 = yyj1668 > l } else { yyb1668 = r.CheckBreak() } if yyb1668 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1668-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 { yym1671 := z.EncBinary() _ = yym1671 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1672 := !z.EncBinary() yy2arr1672 := z.EncBasicHandle().StructToArray var yyq1672 [4]bool _, _, _ = yysep1672, yyq1672, yy2arr1672 const yyr1672 bool = false yyq1672[0] = x.Kind != "" yyq1672[1] = x.APIVersion != "" yyq1672[2] = true yyq1672[3] = true var yynn1672 int if yyr1672 || yy2arr1672 { r.EncodeArrayStart(4) } else { yynn1672 = 0 for _, b := range yyq1672 { if b { yynn1672++ } } r.EncodeMapStart(yynn1672) yynn1672 = 0 } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[0] { yym1674 := z.EncBinary() _ = yym1674 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1672[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1675 := z.EncBinary() _ = yym1675 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[1] { yym1677 := z.EncBinary() _ = yym1677 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1672[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1678 := z.EncBinary() _ = yym1678 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[2] { yy1680 := &x.ObjectMeta yy1680.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1672[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1681 := &x.ObjectMeta yy1681.CodecEncodeSelf(e) } } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[3] { yy1683 := &x.Template yy1683.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1672[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1684 := &x.Template yy1684.CodecEncodeSelf(e) } } if yyr1672 || yy2arr1672 { 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 yym1685 := z.DecBinary() _ = yym1685 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1686 := r.ContainerType() if yyct1686 == codecSelferValueTypeMap1234 { yyl1686 := r.ReadMapStart() if yyl1686 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1686, d) } } else if yyct1686 == codecSelferValueTypeArray1234 { yyl1686 := r.ReadArrayStart() if yyl1686 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1686, 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 yys1687Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1687Slc var yyhl1687 bool = l >= 0 for yyj1687 := 0; ; yyj1687++ { if yyhl1687 { if yyj1687 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1687Slc = r.DecodeBytes(yys1687Slc, true, true) yys1687 := string(yys1687Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1687 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1690 := &x.ObjectMeta yyv1690.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1691 := &x.Template yyv1691.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1687) } // end switch yys1687 } // end for yyj1687 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 yyj1692 int var yyb1692 bool var yyhl1692 bool = l >= 0 yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1695 := &x.ObjectMeta yyv1695.CodecDecodeSelf(d) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1696 := &x.Template yyv1696.CodecDecodeSelf(d) } for { yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1692-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1697 := z.EncBinary() _ = yym1697 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1698 := !z.EncBinary() yy2arr1698 := z.EncBasicHandle().StructToArray var yyq1698 [4]bool _, _, _ = yysep1698, yyq1698, yy2arr1698 const yyr1698 bool = false yyq1698[0] = x.Kind != "" yyq1698[1] = x.APIVersion != "" yyq1698[2] = true var yynn1698 int if yyr1698 || yy2arr1698 { r.EncodeArrayStart(4) } else { yynn1698 = 1 for _, b := range yyq1698 { if b { yynn1698++ } } r.EncodeMapStart(yynn1698) yynn1698 = 0 } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1698[0] { yym1700 := z.EncBinary() _ = yym1700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1698[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1701 := z.EncBinary() _ = yym1701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1698[1] { yym1703 := z.EncBinary() _ = yym1703 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1698[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1704 := z.EncBinary() _ = yym1704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1698[2] { yy1706 := &x.ListMeta yym1707 := z.EncBinary() _ = yym1707 if false { } else if z.HasExtensions() && z.EncExt(yy1706) { } else { z.EncFallback(yy1706) } } else { r.EncodeNil() } } else { if yyq1698[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1708 := &x.ListMeta yym1709 := z.EncBinary() _ = yym1709 if false { } else if z.HasExtensions() && z.EncExt(yy1708) { } else { z.EncFallback(yy1708) } } } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1711 := z.EncBinary() _ = yym1711 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 { yym1712 := z.EncBinary() _ = yym1712 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr1698 || yy2arr1698 { 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 yym1713 := z.DecBinary() _ = yym1713 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1714 := r.ContainerType() if yyct1714 == codecSelferValueTypeMap1234 { yyl1714 := r.ReadMapStart() if yyl1714 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1714, d) } } else if yyct1714 == codecSelferValueTypeArray1234 { yyl1714 := r.ReadArrayStart() if yyl1714 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1714, 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 yys1715Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1715Slc var yyhl1715 bool = l >= 0 for yyj1715 := 0; ; yyj1715++ { if yyhl1715 { if yyj1715 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1715Slc = r.DecodeBytes(yys1715Slc, true, true) yys1715 := string(yys1715Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1715 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1718 := &x.ListMeta yym1719 := z.DecBinary() _ = yym1719 if false { } else if z.HasExtensions() && z.DecExt(yyv1718) { } else { z.DecFallback(yyv1718, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1720 := &x.Items yym1721 := z.DecBinary() _ = yym1721 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1720), d) } } default: z.DecStructFieldNotFound(-1, yys1715) } // end switch yys1715 } // end for yyj1715 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 yyj1722 int var yyb1722 bool var yyhl1722 bool = l >= 0 yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1725 := &x.ListMeta yym1726 := z.DecBinary() _ = yym1726 if false { } else if z.HasExtensions() && z.DecExt(yyv1725) { } else { z.DecFallback(yyv1725, false) } } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1727 := &x.Items yym1728 := z.DecBinary() _ = yym1728 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1727), d) } } for { yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1722-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 { yym1729 := z.EncBinary() _ = yym1729 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1730 := !z.EncBinary() yy2arr1730 := z.EncBasicHandle().StructToArray var yyq1730 [3]bool _, _, _ = yysep1730, yyq1730, yy2arr1730 const yyr1730 bool = false yyq1730[2] = x.Template != nil var yynn1730 int if yyr1730 || yy2arr1730 { r.EncodeArrayStart(3) } else { yynn1730 = 2 for _, b := range yyq1730 { if b { yynn1730++ } } r.EncodeMapStart(yynn1730) yynn1730 = 0 } if yyr1730 || yy2arr1730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1732 := z.EncBinary() _ = yym1732 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1733 := z.EncBinary() _ = yym1733 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1730 || yy2arr1730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym1735 := z.EncBinary() _ = yym1735 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 { yym1736 := z.EncBinary() _ = yym1736 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr1730 || yy2arr1730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1730[2] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1730[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 yyr1730 || yy2arr1730 { 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 yym1738 := z.DecBinary() _ = yym1738 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1739 := r.ContainerType() if yyct1739 == codecSelferValueTypeMap1234 { yyl1739 := r.ReadMapStart() if yyl1739 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1739, d) } } else if yyct1739 == codecSelferValueTypeArray1234 { yyl1739 := r.ReadArrayStart() if yyl1739 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1739, 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 yys1740Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1740Slc var yyhl1740 bool = l >= 0 for yyj1740 := 0; ; yyj1740++ { if yyhl1740 { if yyj1740 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1740Slc = r.DecodeBytes(yys1740Slc, true, true) yys1740 := string(yys1740Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1740 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1742 := &x.Selector yym1743 := z.DecBinary() _ = yym1743 if false { } else { z.F.DecMapStringStringX(yyv1742, 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, yys1740) } // end switch yys1740 } // end for yyj1740 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 yyj1745 int var yyb1745 bool var yyhl1745 bool = l >= 0 yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1747 := &x.Selector yym1748 := z.DecBinary() _ = yym1748 if false { } else { z.F.DecMapStringStringX(yyv1747, false, d) } } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { 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 { yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1745-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 { yym1750 := z.EncBinary() _ = yym1750 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1751 := !z.EncBinary() yy2arr1751 := z.EncBasicHandle().StructToArray var yyq1751 [2]bool _, _, _ = yysep1751, yyq1751, yy2arr1751 const yyr1751 bool = false yyq1751[1] = x.ObservedGeneration != 0 var yynn1751 int if yyr1751 || yy2arr1751 { r.EncodeArrayStart(2) } else { yynn1751 = 1 for _, b := range yyq1751 { if b { yynn1751++ } } r.EncodeMapStart(yynn1751) yynn1751 = 0 } if yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1753 := z.EncBinary() _ = yym1753 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1754 := z.EncBinary() _ = yym1754 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1751[1] { yym1756 := z.EncBinary() _ = yym1756 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq1751[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1757 := z.EncBinary() _ = yym1757 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr1751 || yy2arr1751 { 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 yym1758 := z.DecBinary() _ = yym1758 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1759 := r.ContainerType() if yyct1759 == codecSelferValueTypeMap1234 { yyl1759 := r.ReadMapStart() if yyl1759 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1759, d) } } else if yyct1759 == codecSelferValueTypeArray1234 { yyl1759 := r.ReadArrayStart() if yyl1759 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1759, 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 yys1760Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1760Slc var yyhl1760 bool = l >= 0 for yyj1760 := 0; ; yyj1760++ { if yyhl1760 { if yyj1760 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1760Slc = r.DecodeBytes(yys1760Slc, true, true) yys1760 := string(yys1760Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1760 { 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, yys1760) } // end switch yys1760 } // end for yyj1760 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 yyj1763 int var yyb1763 bool var yyhl1763 bool = l >= 0 yyj1763++ if yyhl1763 { yyb1763 = yyj1763 > l } else { yyb1763 = r.CheckBreak() } if yyb1763 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1763++ if yyhl1763 { yyb1763 = yyj1763 > l } else { yyb1763 = r.CheckBreak() } if yyb1763 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } for { yyj1763++ if yyhl1763 { yyb1763 = yyj1763 > l } else { yyb1763 = r.CheckBreak() } if yyb1763 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1763-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 { yym1766 := z.EncBinary() _ = yym1766 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1767 := !z.EncBinary() yy2arr1767 := z.EncBasicHandle().StructToArray var yyq1767 [5]bool _, _, _ = yysep1767, yyq1767, yy2arr1767 const yyr1767 bool = false yyq1767[0] = x.Kind != "" yyq1767[1] = x.APIVersion != "" yyq1767[2] = true yyq1767[3] = true yyq1767[4] = true var yynn1767 int if yyr1767 || yy2arr1767 { r.EncodeArrayStart(5) } else { yynn1767 = 0 for _, b := range yyq1767 { if b { yynn1767++ } } r.EncodeMapStart(yynn1767) yynn1767 = 0 } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[0] { yym1769 := z.EncBinary() _ = yym1769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1767[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1770 := z.EncBinary() _ = yym1770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[1] { yym1772 := z.EncBinary() _ = yym1772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1767[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1773 := z.EncBinary() _ = yym1773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[2] { yy1775 := &x.ObjectMeta yy1775.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1767[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1776 := &x.ObjectMeta yy1776.CodecEncodeSelf(e) } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[3] { yy1778 := &x.Spec yy1778.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1767[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1779 := &x.Spec yy1779.CodecEncodeSelf(e) } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[4] { yy1781 := &x.Status yy1781.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1767[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1782 := &x.Status yy1782.CodecEncodeSelf(e) } } if yyr1767 || yy2arr1767 { 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 yym1783 := z.DecBinary() _ = yym1783 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1784 := r.ContainerType() if yyct1784 == codecSelferValueTypeMap1234 { yyl1784 := r.ReadMapStart() if yyl1784 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1784, d) } } else if yyct1784 == codecSelferValueTypeArray1234 { yyl1784 := r.ReadArrayStart() if yyl1784 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1784, 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 yys1785Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1785Slc var yyhl1785 bool = l >= 0 for yyj1785 := 0; ; yyj1785++ { if yyhl1785 { if yyj1785 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1785Slc = r.DecodeBytes(yys1785Slc, true, true) yys1785 := string(yys1785Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1785 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1788 := &x.ObjectMeta yyv1788.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv1789 := &x.Spec yyv1789.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv1790 := &x.Status yyv1790.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1785) } // end switch yys1785 } // end for yyj1785 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 yyj1791 int var yyb1791 bool var yyhl1791 bool = l >= 0 yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1794 := &x.ObjectMeta yyv1794.CodecDecodeSelf(d) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv1795 := &x.Spec yyv1795.CodecDecodeSelf(d) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv1796 := &x.Status yyv1796.CodecDecodeSelf(d) } for { yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1791-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 { yym1797 := z.EncBinary() _ = yym1797 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1798 := !z.EncBinary() yy2arr1798 := z.EncBasicHandle().StructToArray var yyq1798 [4]bool _, _, _ = yysep1798, yyq1798, yy2arr1798 const yyr1798 bool = false yyq1798[0] = x.Kind != "" yyq1798[1] = x.APIVersion != "" yyq1798[2] = true var yynn1798 int if yyr1798 || yy2arr1798 { r.EncodeArrayStart(4) } else { yynn1798 = 1 for _, b := range yyq1798 { if b { yynn1798++ } } r.EncodeMapStart(yynn1798) yynn1798 = 0 } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1798[0] { yym1800 := z.EncBinary() _ = yym1800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1798[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1801 := z.EncBinary() _ = yym1801 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1798[1] { yym1803 := z.EncBinary() _ = yym1803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1798[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1804 := z.EncBinary() _ = yym1804 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1798[2] { yy1806 := &x.ListMeta yym1807 := z.EncBinary() _ = yym1807 if false { } else if z.HasExtensions() && z.EncExt(yy1806) { } else { z.EncFallback(yy1806) } } else { r.EncodeNil() } } else { if yyq1798[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1808 := &x.ListMeta yym1809 := z.EncBinary() _ = yym1809 if false { } else if z.HasExtensions() && z.EncExt(yy1808) { } else { z.EncFallback(yy1808) } } } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1811 := z.EncBinary() _ = yym1811 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 { yym1812 := z.EncBinary() _ = yym1812 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr1798 || yy2arr1798 { 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 yym1813 := z.DecBinary() _ = yym1813 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1814 := r.ContainerType() if yyct1814 == codecSelferValueTypeMap1234 { yyl1814 := r.ReadMapStart() if yyl1814 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1814, d) } } else if yyct1814 == codecSelferValueTypeArray1234 { yyl1814 := r.ReadArrayStart() if yyl1814 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1814, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1815Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1815Slc var yyhl1815 bool = l >= 0 for yyj1815 := 0; ; yyj1815++ { if yyhl1815 { if yyj1815 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1815Slc = r.DecodeBytes(yys1815Slc, true, true) yys1815 := string(yys1815Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1815 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1818 := &x.ListMeta yym1819 := z.DecBinary() _ = yym1819 if false { } else if z.HasExtensions() && z.DecExt(yyv1818) { } else { z.DecFallback(yyv1818, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1820 := &x.Items yym1821 := z.DecBinary() _ = yym1821 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv1820), d) } } default: z.DecStructFieldNotFound(-1, yys1815) } // end switch yys1815 } // end for yyj1815 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 yyj1822 int var yyb1822 bool var yyhl1822 bool = l >= 0 yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1825 := &x.ListMeta yym1826 := z.DecBinary() _ = yym1826 if false { } else if z.HasExtensions() && z.DecExt(yyv1825) { } else { z.DecFallback(yyv1825, false) } } yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1827 := &x.Items yym1828 := z.DecBinary() _ = yym1828 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv1827), d) } } for { yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1822-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 { yym1829 := z.EncBinary() _ = yym1829 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1830 := !z.EncBinary() yy2arr1830 := z.EncBasicHandle().StructToArray var yyq1830 [4]bool _, _, _ = yysep1830, yyq1830, yy2arr1830 const yyr1830 bool = false yyq1830[0] = x.Kind != "" yyq1830[1] = x.APIVersion != "" yyq1830[2] = true var yynn1830 int if yyr1830 || yy2arr1830 { r.EncodeArrayStart(4) } else { yynn1830 = 1 for _, b := range yyq1830 { if b { yynn1830++ } } r.EncodeMapStart(yynn1830) yynn1830 = 0 } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1830[0] { yym1832 := z.EncBinary() _ = yym1832 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1830[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1833 := z.EncBinary() _ = yym1833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1830[1] { yym1835 := z.EncBinary() _ = yym1835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1830[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1836 := z.EncBinary() _ = yym1836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1830[2] { yy1838 := &x.ListMeta yym1839 := z.EncBinary() _ = yym1839 if false { } else if z.HasExtensions() && z.EncExt(yy1838) { } else { z.EncFallback(yy1838) } } else { r.EncodeNil() } } else { if yyq1830[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1840 := &x.ListMeta yym1841 := z.EncBinary() _ = yym1841 if false { } else if z.HasExtensions() && z.EncExt(yy1840) { } else { z.EncFallback(yy1840) } } } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1843 := z.EncBinary() _ = yym1843 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 { yym1844 := z.EncBinary() _ = yym1844 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr1830 || yy2arr1830 { 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 yym1845 := z.DecBinary() _ = yym1845 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1846 := r.ContainerType() if yyct1846 == codecSelferValueTypeMap1234 { yyl1846 := r.ReadMapStart() if yyl1846 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1846, d) } } else if yyct1846 == codecSelferValueTypeArray1234 { yyl1846 := r.ReadArrayStart() if yyl1846 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1846, 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 yys1847Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1847Slc var yyhl1847 bool = l >= 0 for yyj1847 := 0; ; yyj1847++ { if yyhl1847 { if yyj1847 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1847Slc = r.DecodeBytes(yys1847Slc, true, true) yys1847 := string(yys1847Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1847 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1850 := &x.ListMeta yym1851 := z.DecBinary() _ = yym1851 if false { } else if z.HasExtensions() && z.DecExt(yyv1850) { } else { z.DecFallback(yyv1850, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1852 := &x.Items yym1853 := z.DecBinary() _ = yym1853 if false { } else { h.decSliceService((*[]Service)(yyv1852), d) } } default: z.DecStructFieldNotFound(-1, yys1847) } // end switch yys1847 } // end for yyj1847 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 yyj1854 int var yyb1854 bool var yyhl1854 bool = l >= 0 yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1857 := &x.ListMeta yym1858 := z.DecBinary() _ = yym1858 if false { } else if z.HasExtensions() && z.DecExt(yyv1857) { } else { z.DecFallback(yyv1857, false) } } yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1859 := &x.Items yym1860 := z.DecBinary() _ = yym1860 if false { } else { h.decSliceService((*[]Service)(yyv1859), d) } } for { yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1854-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1861 := z.EncBinary() _ = yym1861 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 yym1862 := z.DecBinary() _ = yym1862 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 yym1863 := z.EncBinary() _ = yym1863 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 yym1864 := z.DecBinary() _ = yym1864 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 { yym1865 := z.EncBinary() _ = yym1865 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1866 := !z.EncBinary() yy2arr1866 := z.EncBasicHandle().StructToArray var yyq1866 [1]bool _, _, _ = yysep1866, yyq1866, yy2arr1866 const yyr1866 bool = false yyq1866[0] = true var yynn1866 int if yyr1866 || yy2arr1866 { r.EncodeArrayStart(1) } else { yynn1866 = 0 for _, b := range yyq1866 { if b { yynn1866++ } } r.EncodeMapStart(yynn1866) yynn1866 = 0 } if yyr1866 || yy2arr1866 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1866[0] { yy1868 := &x.LoadBalancer yy1868.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1866[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1869 := &x.LoadBalancer yy1869.CodecEncodeSelf(e) } } if yyr1866 || yy2arr1866 { 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 yym1870 := z.DecBinary() _ = yym1870 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1871 := r.ContainerType() if yyct1871 == codecSelferValueTypeMap1234 { yyl1871 := r.ReadMapStart() if yyl1871 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1871, d) } } else if yyct1871 == codecSelferValueTypeArray1234 { yyl1871 := r.ReadArrayStart() if yyl1871 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1871, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1872Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1872Slc var yyhl1872 bool = l >= 0 for yyj1872 := 0; ; yyj1872++ { if yyhl1872 { if yyj1872 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1872Slc = r.DecodeBytes(yys1872Slc, true, true) yys1872 := string(yys1872Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1872 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv1873 := &x.LoadBalancer yyv1873.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1872) } // end switch yys1872 } // end for yyj1872 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 yyj1874 int var yyb1874 bool var yyhl1874 bool = l >= 0 yyj1874++ if yyhl1874 { yyb1874 = yyj1874 > l } else { yyb1874 = r.CheckBreak() } if yyb1874 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv1875 := &x.LoadBalancer yyv1875.CodecDecodeSelf(d) } for { yyj1874++ if yyhl1874 { yyb1874 = yyj1874 > l } else { yyb1874 = r.CheckBreak() } if yyb1874 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1874-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 { yym1876 := z.EncBinary() _ = yym1876 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1877 := !z.EncBinary() yy2arr1877 := z.EncBasicHandle().StructToArray var yyq1877 [1]bool _, _, _ = yysep1877, yyq1877, yy2arr1877 const yyr1877 bool = false yyq1877[0] = len(x.Ingress) != 0 var yynn1877 int if yyr1877 || yy2arr1877 { r.EncodeArrayStart(1) } else { yynn1877 = 0 for _, b := range yyq1877 { if b { yynn1877++ } } r.EncodeMapStart(yynn1877) yynn1877 = 0 } if yyr1877 || yy2arr1877 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1877[0] { if x.Ingress == nil { r.EncodeNil() } else { yym1879 := z.EncBinary() _ = yym1879 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq1877[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym1880 := z.EncBinary() _ = yym1880 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr1877 || yy2arr1877 { 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 yym1881 := z.DecBinary() _ = yym1881 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1882 := r.ContainerType() if yyct1882 == codecSelferValueTypeMap1234 { yyl1882 := r.ReadMapStart() if yyl1882 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1882, d) } } else if yyct1882 == codecSelferValueTypeArray1234 { yyl1882 := r.ReadArrayStart() if yyl1882 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1882, 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 yys1883Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1883Slc var yyhl1883 bool = l >= 0 for yyj1883 := 0; ; yyj1883++ { if yyhl1883 { if yyj1883 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1883Slc = r.DecodeBytes(yys1883Slc, true, true) yys1883 := string(yys1883Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1883 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv1884 := &x.Ingress yym1885 := z.DecBinary() _ = yym1885 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1884), d) } } default: z.DecStructFieldNotFound(-1, yys1883) } // end switch yys1883 } // end for yyj1883 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 yyj1886 int var yyb1886 bool var yyhl1886 bool = l >= 0 yyj1886++ if yyhl1886 { yyb1886 = yyj1886 > l } else { yyb1886 = r.CheckBreak() } if yyb1886 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv1887 := &x.Ingress yym1888 := z.DecBinary() _ = yym1888 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1887), d) } } for { yyj1886++ if yyhl1886 { yyb1886 = yyj1886 > l } else { yyb1886 = r.CheckBreak() } if yyb1886 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1886-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 { yym1889 := z.EncBinary() _ = yym1889 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1890 := !z.EncBinary() yy2arr1890 := z.EncBasicHandle().StructToArray var yyq1890 [2]bool _, _, _ = yysep1890, yyq1890, yy2arr1890 const yyr1890 bool = false yyq1890[0] = x.IP != "" yyq1890[1] = x.Hostname != "" var yynn1890 int if yyr1890 || yy2arr1890 { r.EncodeArrayStart(2) } else { yynn1890 = 0 for _, b := range yyq1890 { if b { yynn1890++ } } r.EncodeMapStart(yynn1890) yynn1890 = 0 } if yyr1890 || yy2arr1890 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1890[0] { yym1892 := z.EncBinary() _ = yym1892 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1890[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1893 := z.EncBinary() _ = yym1893 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr1890 || yy2arr1890 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1890[1] { yym1895 := z.EncBinary() _ = yym1895 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1890[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1896 := z.EncBinary() _ = yym1896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr1890 || yy2arr1890 { 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 yym1897 := z.DecBinary() _ = yym1897 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1898 := r.ContainerType() if yyct1898 == codecSelferValueTypeMap1234 { yyl1898 := r.ReadMapStart() if yyl1898 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1898, d) } } else if yyct1898 == codecSelferValueTypeArray1234 { yyl1898 := r.ReadArrayStart() if yyl1898 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1898, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1899Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1899Slc var yyhl1899 bool = l >= 0 for yyj1899 := 0; ; yyj1899++ { if yyhl1899 { if yyj1899 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1899Slc = r.DecodeBytes(yys1899Slc, true, true) yys1899 := string(yys1899Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1899 { case "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, yys1899) } // end switch yys1899 } // end for yyj1899 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 yyj1902 int var yyb1902 bool var yyhl1902 bool = l >= 0 yyj1902++ if yyhl1902 { yyb1902 = yyj1902 > l } else { yyb1902 = r.CheckBreak() } if yyb1902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj1902++ if yyhl1902 { yyb1902 = yyj1902 > l } else { yyb1902 = r.CheckBreak() } if yyb1902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj1902++ if yyhl1902 { yyb1902 = yyj1902 > l } else { yyb1902 = r.CheckBreak() } if yyb1902 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1902-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 { yym1905 := z.EncBinary() _ = yym1905 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1906 := !z.EncBinary() yy2arr1906 := z.EncBasicHandle().StructToArray var yyq1906 [7]bool _, _, _ = yysep1906, yyq1906, yy2arr1906 const yyr1906 bool = false yyq1906[0] = x.Type != "" yyq1906[3] = x.ClusterIP != "" yyq1906[4] = len(x.ExternalIPs) != 0 yyq1906[5] = x.LoadBalancerIP != "" yyq1906[6] = x.SessionAffinity != "" var yynn1906 int if yyr1906 || yy2arr1906 { r.EncodeArrayStart(7) } else { yynn1906 = 2 for _, b := range yyq1906 { if b { yynn1906++ } } r.EncodeMapStart(yynn1906) yynn1906 = 0 } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym1909 := z.EncBinary() _ = yym1909 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 { yym1910 := z.EncBinary() _ = yym1910 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym1912 := z.EncBinary() _ = yym1912 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 { yym1913 := z.EncBinary() _ = yym1913 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[3] { yym1915 := z.EncBinary() _ = yym1915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1916 := z.EncBinary() _ = yym1916 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym1918 := z.EncBinary() _ = yym1918 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq1906[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym1919 := z.EncBinary() _ = yym1919 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[5] { yym1921 := z.EncBinary() _ = yym1921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1922 := z.EncBinary() _ = yym1922 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr1906 || yy2arr1906 { 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 yym1924 := z.DecBinary() _ = yym1924 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1925 := r.ContainerType() if yyct1925 == codecSelferValueTypeMap1234 { yyl1925 := r.ReadMapStart() if yyl1925 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1925, d) } } else if yyct1925 == codecSelferValueTypeArray1234 { yyl1925 := r.ReadArrayStart() if yyl1925 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1925, 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 yys1926Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1926Slc var yyhl1926 bool = l >= 0 for yyj1926 := 0; ; yyj1926++ { if yyhl1926 { if yyj1926 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1926Slc = r.DecodeBytes(yys1926Slc, true, true) yys1926 := string(yys1926Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1926 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1928 := &x.Ports yym1929 := z.DecBinary() _ = yym1929 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv1928), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1930 := &x.Selector yym1931 := z.DecBinary() _ = yym1931 if false { } else { z.F.DecMapStringStringX(yyv1930, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv1933 := &x.ExternalIPs yym1934 := z.DecBinary() _ = yym1934 if false { } else { z.F.DecSliceStringX(yyv1933, 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, yys1926) } // end switch yys1926 } // end for yyj1926 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 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.Type = "" } else { x.Type = ServiceType(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.Ports = nil } else { yyv1939 := &x.Ports yym1940 := z.DecBinary() _ = yym1940 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv1939), 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.Selector = nil } else { yyv1941 := &x.Selector yym1942 := z.DecBinary() _ = yym1942 if false { } else { z.F.DecMapStringStringX(yyv1941, false, 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.ClusterIP = "" } else { x.ClusterIP = 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.ExternalIPs = nil } else { yyv1944 := &x.ExternalIPs yym1945 := z.DecBinary() _ = yym1945 if false { } else { z.F.DecSliceStringX(yyv1944, false, 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.LoadBalancerIP = "" } else { x.LoadBalancerIP = 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.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(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 *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1948 := z.EncBinary() _ = yym1948 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1949 := !z.EncBinary() yy2arr1949 := z.EncBasicHandle().StructToArray var yyq1949 [5]bool _, _, _ = yysep1949, yyq1949, yy2arr1949 const yyr1949 bool = false var yynn1949 int if yyr1949 || yy2arr1949 { r.EncodeArrayStart(5) } else { yynn1949 = 5 for _, b := range yyq1949 { if b { yynn1949++ } } r.EncodeMapStart(yynn1949) yynn1949 = 0 } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1951 := z.EncBinary() _ = yym1951 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) yym1952 := z.EncBinary() _ = yym1952 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1949 || yy2arr1949 { 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 yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1955 := z.EncBinary() _ = yym1955 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1956 := z.EncBinary() _ = yym1956 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1958 := &x.TargetPort yym1959 := z.EncBinary() _ = yym1959 if false { } else if z.HasExtensions() && z.EncExt(yy1958) { } else if !yym1959 && z.IsJSONHandle() { z.EncJSONMarshal(yy1958) } else { z.EncFallback(yy1958) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1960 := &x.TargetPort yym1961 := z.EncBinary() _ = yym1961 if false { } else if z.HasExtensions() && z.EncExt(yy1960) { } else if !yym1961 && z.IsJSONHandle() { z.EncJSONMarshal(yy1960) } else { z.EncFallback(yy1960) } } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1963 := z.EncBinary() _ = yym1963 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1964 := z.EncBinary() _ = yym1964 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr1949 || yy2arr1949 { 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 yym1965 := z.DecBinary() _ = yym1965 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1966 := r.ContainerType() if yyct1966 == codecSelferValueTypeMap1234 { yyl1966 := r.ReadMapStart() if yyl1966 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1966, d) } } else if yyct1966 == codecSelferValueTypeArray1234 { yyl1966 := r.ReadArrayStart() if yyl1966 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1966, 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 yys1967Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1967Slc var yyhl1967 bool = l >= 0 for yyj1967 := 0; ; yyj1967++ { if yyhl1967 { if yyj1967 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1967Slc = r.DecodeBytes(yys1967Slc, true, true) yys1967 := string(yys1967Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1967 { 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 { yyv1971 := &x.TargetPort yym1972 := z.DecBinary() _ = yym1972 if false { } else if z.HasExtensions() && z.DecExt(yyv1971) { } else if !yym1972 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1971) } else { z.DecFallback(yyv1971, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys1967) } // end switch yys1967 } // end for yyj1967 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 yyj1974 int var yyb1974 bool var yyhl1974 bool = l >= 0 yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg5_intstr.IntOrString{} } else { yyv1978 := &x.TargetPort yym1979 := z.DecBinary() _ = yym1979 if false { } else if z.HasExtensions() && z.DecExt(yyv1978) { } else if !yym1979 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1978) } else { z.DecFallback(yyv1978, false) } } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1974-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 { yym1981 := z.EncBinary() _ = yym1981 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1982 := !z.EncBinary() yy2arr1982 := z.EncBasicHandle().StructToArray var yyq1982 [5]bool _, _, _ = yysep1982, yyq1982, yy2arr1982 const yyr1982 bool = false yyq1982[0] = x.Kind != "" yyq1982[1] = x.APIVersion != "" yyq1982[2] = true yyq1982[3] = true yyq1982[4] = true var yynn1982 int if yyr1982 || yy2arr1982 { r.EncodeArrayStart(5) } else { yynn1982 = 0 for _, b := range yyq1982 { if b { yynn1982++ } } r.EncodeMapStart(yynn1982) yynn1982 = 0 } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[0] { yym1984 := z.EncBinary() _ = yym1984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1982[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1985 := z.EncBinary() _ = yym1985 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[1] { yym1987 := z.EncBinary() _ = yym1987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1982[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1988 := z.EncBinary() _ = yym1988 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[2] { yy1990 := &x.ObjectMeta yy1990.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1982[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1991 := &x.ObjectMeta yy1991.CodecEncodeSelf(e) } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[3] { yy1993 := &x.Spec yy1993.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1982[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1994 := &x.Spec yy1994.CodecEncodeSelf(e) } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[4] { yy1996 := &x.Status yy1996.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1982[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1997 := &x.Status yy1997.CodecEncodeSelf(e) } } if yyr1982 || yy2arr1982 { 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 yym1998 := z.DecBinary() _ = yym1998 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1999 := r.ContainerType() if yyct1999 == codecSelferValueTypeMap1234 { yyl1999 := r.ReadMapStart() if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1999, d) } } else if yyct1999 == codecSelferValueTypeArray1234 { yyl1999 := r.ReadArrayStart() if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1999, 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 yys2000Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2000Slc var yyhl2000 bool = l >= 0 for yyj2000 := 0; ; yyj2000++ { if yyhl2000 { if yyj2000 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2000Slc = r.DecodeBytes(yys2000Slc, true, true) yys2000 := string(yys2000Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2000 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2003 := &x.ObjectMeta yyv2003.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2004 := &x.Spec yyv2004.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2005 := &x.Status yyv2005.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2000) } // end switch yys2000 } // end for yyj2000 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 yyj2006 int var yyb2006 bool var yyhl2006 bool = l >= 0 yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2009 := &x.ObjectMeta yyv2009.CodecDecodeSelf(d) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2010 := &x.Spec yyv2010.CodecDecodeSelf(d) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2011 := &x.Status yyv2011.CodecDecodeSelf(d) } for { yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2006-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 { yym2012 := z.EncBinary() _ = yym2012 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2013 := !z.EncBinary() yy2arr2013 := z.EncBasicHandle().StructToArray var yyq2013 [5]bool _, _, _ = yysep2013, yyq2013, yy2arr2013 const yyr2013 bool = false yyq2013[0] = x.Kind != "" yyq2013[1] = x.APIVersion != "" yyq2013[2] = true yyq2013[4] = len(x.ImagePullSecrets) != 0 var yynn2013 int if yyr2013 || yy2arr2013 { r.EncodeArrayStart(5) } else { yynn2013 = 1 for _, b := range yyq2013 { if b { yynn2013++ } } r.EncodeMapStart(yynn2013) yynn2013 = 0 } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[0] { yym2015 := z.EncBinary() _ = yym2015 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2013[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2016 := z.EncBinary() _ = yym2016 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[1] { yym2018 := z.EncBinary() _ = yym2018 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2013[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2019 := z.EncBinary() _ = yym2019 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[2] { yy2021 := &x.ObjectMeta yy2021.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2013[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2022 := &x.ObjectMeta yy2022.CodecEncodeSelf(e) } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2024 := z.EncBinary() _ = yym2024 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 { yym2025 := z.EncBinary() _ = yym2025 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2027 := z.EncBinary() _ = yym2027 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2013[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2028 := z.EncBinary() _ = yym2028 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2013 || yy2arr2013 { 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 yym2029 := z.DecBinary() _ = yym2029 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2030 := r.ContainerType() if yyct2030 == codecSelferValueTypeMap1234 { yyl2030 := r.ReadMapStart() if yyl2030 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2030, d) } } else if yyct2030 == codecSelferValueTypeArray1234 { yyl2030 := r.ReadArrayStart() if yyl2030 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2030, 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 yys2031Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2031Slc var yyhl2031 bool = l >= 0 for yyj2031 := 0; ; yyj2031++ { if yyhl2031 { if yyj2031 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2031Slc = r.DecodeBytes(yys2031Slc, true, true) yys2031 := string(yys2031Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2031 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2034 := &x.ObjectMeta yyv2034.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2035 := &x.Secrets yym2036 := z.DecBinary() _ = yym2036 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2035), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2037 := &x.ImagePullSecrets yym2038 := z.DecBinary() _ = yym2038 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2037), d) } } default: z.DecStructFieldNotFound(-1, yys2031) } // end switch yys2031 } // end for yyj2031 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 yyj2039 int var yyb2039 bool var yyhl2039 bool = l >= 0 yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2042 := &x.ObjectMeta yyv2042.CodecDecodeSelf(d) } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2043 := &x.Secrets yym2044 := z.DecBinary() _ = yym2044 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2043), d) } } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2045 := &x.ImagePullSecrets yym2046 := z.DecBinary() _ = yym2046 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2045), d) } } for { yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2039-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 { yym2047 := z.EncBinary() _ = yym2047 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2048 := !z.EncBinary() yy2arr2048 := z.EncBasicHandle().StructToArray var yyq2048 [4]bool _, _, _ = yysep2048, yyq2048, yy2arr2048 const yyr2048 bool = false yyq2048[0] = x.Kind != "" yyq2048[1] = x.APIVersion != "" yyq2048[2] = true var yynn2048 int if yyr2048 || yy2arr2048 { r.EncodeArrayStart(4) } else { yynn2048 = 1 for _, b := range yyq2048 { if b { yynn2048++ } } r.EncodeMapStart(yynn2048) yynn2048 = 0 } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2048[0] { yym2050 := z.EncBinary() _ = yym2050 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2048[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2051 := z.EncBinary() _ = yym2051 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2048[1] { yym2053 := z.EncBinary() _ = yym2053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2048[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2054 := z.EncBinary() _ = yym2054 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2048[2] { yy2056 := &x.ListMeta yym2057 := z.EncBinary() _ = yym2057 if false { } else if z.HasExtensions() && z.EncExt(yy2056) { } else { z.EncFallback(yy2056) } } else { r.EncodeNil() } } else { if yyq2048[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2058 := &x.ListMeta yym2059 := z.EncBinary() _ = yym2059 if false { } else if z.HasExtensions() && z.EncExt(yy2058) { } else { z.EncFallback(yy2058) } } } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2061 := z.EncBinary() _ = yym2061 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 { yym2062 := z.EncBinary() _ = yym2062 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2048 || yy2arr2048 { 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 yym2063 := z.DecBinary() _ = yym2063 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2064 := r.ContainerType() if yyct2064 == codecSelferValueTypeMap1234 { yyl2064 := r.ReadMapStart() if yyl2064 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2064, d) } } else if yyct2064 == codecSelferValueTypeArray1234 { yyl2064 := r.ReadArrayStart() if yyl2064 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2064, 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 yys2065Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2065Slc var yyhl2065 bool = l >= 0 for yyj2065 := 0; ; yyj2065++ { if yyhl2065 { if yyj2065 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2065Slc = r.DecodeBytes(yys2065Slc, true, true) yys2065 := string(yys2065Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2065 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2068 := &x.ListMeta yym2069 := z.DecBinary() _ = yym2069 if false { } else if z.HasExtensions() && z.DecExt(yyv2068) { } else { z.DecFallback(yyv2068, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2070 := &x.Items yym2071 := z.DecBinary() _ = yym2071 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2070), d) } } default: z.DecStructFieldNotFound(-1, yys2065) } // end switch yys2065 } // end for yyj2065 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 yyj2072 int var yyb2072 bool var yyhl2072 bool = l >= 0 yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2075 := &x.ListMeta yym2076 := z.DecBinary() _ = yym2076 if false { } else if z.HasExtensions() && z.DecExt(yyv2075) { } else { z.DecFallback(yyv2075, false) } } yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2077 := &x.Items yym2078 := z.DecBinary() _ = yym2078 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2077), d) } } for { yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2072-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 { yym2079 := z.EncBinary() _ = yym2079 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2080 := !z.EncBinary() yy2arr2080 := z.EncBasicHandle().StructToArray var yyq2080 [4]bool _, _, _ = yysep2080, yyq2080, yy2arr2080 const yyr2080 bool = false yyq2080[0] = x.Kind != "" yyq2080[1] = x.APIVersion != "" yyq2080[2] = true var yynn2080 int if yyr2080 || yy2arr2080 { r.EncodeArrayStart(4) } else { yynn2080 = 1 for _, b := range yyq2080 { if b { yynn2080++ } } r.EncodeMapStart(yynn2080) yynn2080 = 0 } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2080[0] { yym2082 := z.EncBinary() _ = yym2082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2080[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2083 := z.EncBinary() _ = yym2083 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2080[1] { yym2085 := z.EncBinary() _ = yym2085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2080[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2086 := z.EncBinary() _ = yym2086 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2080[2] { yy2088 := &x.ObjectMeta yy2088.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2080[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2089 := &x.ObjectMeta yy2089.CodecEncodeSelf(e) } } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2091 := z.EncBinary() _ = yym2091 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 { yym2092 := z.EncBinary() _ = yym2092 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2080 || yy2arr2080 { 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 yym2093 := z.DecBinary() _ = yym2093 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2094 := r.ContainerType() if yyct2094 == codecSelferValueTypeMap1234 { yyl2094 := r.ReadMapStart() if yyl2094 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2094, d) } } else if yyct2094 == codecSelferValueTypeArray1234 { yyl2094 := r.ReadArrayStart() if yyl2094 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2094, 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 yys2095Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2095Slc var yyhl2095 bool = l >= 0 for yyj2095 := 0; ; yyj2095++ { if yyhl2095 { if yyj2095 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2095Slc = r.DecodeBytes(yys2095Slc, true, true) yys2095 := string(yys2095Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2095 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2098 := &x.ObjectMeta yyv2098.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2099 := &x.Subsets yym2100 := z.DecBinary() _ = yym2100 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2099), d) } } default: z.DecStructFieldNotFound(-1, yys2095) } // end switch yys2095 } // end for yyj2095 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 yyj2101 int var yyb2101 bool var yyhl2101 bool = l >= 0 yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2104 := &x.ObjectMeta yyv2104.CodecDecodeSelf(d) } yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2105 := &x.Subsets yym2106 := z.DecBinary() _ = yym2106 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2105), d) } } for { yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2101-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 { yym2107 := z.EncBinary() _ = yym2107 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2108 := !z.EncBinary() yy2arr2108 := z.EncBasicHandle().StructToArray var yyq2108 [3]bool _, _, _ = yysep2108, yyq2108, yy2arr2108 const yyr2108 bool = false var yynn2108 int if yyr2108 || yy2arr2108 { r.EncodeArrayStart(3) } else { yynn2108 = 3 for _, b := range yyq2108 { if b { yynn2108++ } } r.EncodeMapStart(yynn2108) yynn2108 = 0 } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2110 := z.EncBinary() _ = yym2110 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 { yym2111 := z.EncBinary() _ = yym2111 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2113 := z.EncBinary() _ = yym2113 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 { yym2114 := z.EncBinary() _ = yym2114 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2116 := z.EncBinary() _ = yym2116 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 { yym2117 := z.EncBinary() _ = yym2117 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2108 || yy2arr2108 { 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 yym2118 := z.DecBinary() _ = yym2118 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2119 := r.ContainerType() if yyct2119 == codecSelferValueTypeMap1234 { yyl2119 := r.ReadMapStart() if yyl2119 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2119, d) } } else if yyct2119 == codecSelferValueTypeArray1234 { yyl2119 := r.ReadArrayStart() if yyl2119 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2119, 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 yys2120Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2120Slc var yyhl2120 bool = l >= 0 for yyj2120 := 0; ; yyj2120++ { if yyhl2120 { if yyj2120 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2120Slc = r.DecodeBytes(yys2120Slc, true, true) yys2120 := string(yys2120Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2120 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2121 := &x.Addresses yym2122 := z.DecBinary() _ = yym2122 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2121), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2123 := &x.NotReadyAddresses yym2124 := z.DecBinary() _ = yym2124 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2123), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2125 := &x.Ports yym2126 := z.DecBinary() _ = yym2126 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2125), d) } } default: z.DecStructFieldNotFound(-1, yys2120) } // end switch yys2120 } // end for yyj2120 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 yyj2127 int var yyb2127 bool var yyhl2127 bool = l >= 0 yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2128 := &x.Addresses yym2129 := z.DecBinary() _ = yym2129 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2128), d) } } yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2130 := &x.NotReadyAddresses yym2131 := z.DecBinary() _ = yym2131 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2130), d) } } yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2132 := &x.Ports yym2133 := z.DecBinary() _ = yym2133 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2132), d) } } for { yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2127-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 { 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 var yynn2135 int if yyr2135 || yy2arr2135 { r.EncodeArrayStart(2) } else { yynn2135 = 2 for _, b := range yyq2135 { if b { yynn2135++ } } r.EncodeMapStart(yynn2135) yynn2135 = 0 } if yyr2135 || yy2arr2135 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2137 := z.EncBinary() _ = yym2137 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) yym2138 := z.EncBinary() _ = yym2138 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2135 || yy2arr2135 { 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 yyr2135 || yy2arr2135 { 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 yym2140 := z.DecBinary() _ = yym2140 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2141 := r.ContainerType() if yyct2141 == codecSelferValueTypeMap1234 { yyl2141 := r.ReadMapStart() if yyl2141 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2141, d) } } else if yyct2141 == codecSelferValueTypeArray1234 { yyl2141 := r.ReadArrayStart() if yyl2141 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2141, 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 yys2142Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2142Slc var yyhl2142 bool = l >= 0 for yyj2142 := 0; ; yyj2142++ { if yyhl2142 { if yyj2142 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2142Slc = r.DecodeBytes(yys2142Slc, true, true) yys2142 := string(yys2142Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2142 { 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, yys2142) } // end switch yys2142 } // end for yyj2142 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 yyj2145 int var yyb2145 bool var yyhl2145 bool = l >= 0 yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TargetRef != nil { x.TargetRef = nil } } else { if x.TargetRef == nil { x.TargetRef = new(ObjectReference) } x.TargetRef.CodecDecodeSelf(d) } for { yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2148 := z.EncBinary() _ = yym2148 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2149 := !z.EncBinary() yy2arr2149 := z.EncBasicHandle().StructToArray var yyq2149 [3]bool _, _, _ = yysep2149, yyq2149, yy2arr2149 const yyr2149 bool = false var yynn2149 int if yyr2149 || yy2arr2149 { r.EncodeArrayStart(3) } else { yynn2149 = 3 for _, b := range yyq2149 { if b { yynn2149++ } } r.EncodeMapStart(yynn2149) yynn2149 = 0 } if yyr2149 || yy2arr2149 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2151 := z.EncBinary() _ = yym2151 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) yym2152 := z.EncBinary() _ = yym2152 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2149 || yy2arr2149 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2154 := z.EncBinary() _ = yym2154 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2155 := z.EncBinary() _ = yym2155 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2149 || yy2arr2149 { 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 yyr2149 || yy2arr2149 { 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 yym2157 := z.DecBinary() _ = yym2157 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2158 := r.ContainerType() if yyct2158 == codecSelferValueTypeMap1234 { yyl2158 := r.ReadMapStart() if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2158, d) } } else if yyct2158 == codecSelferValueTypeArray1234 { yyl2158 := r.ReadArrayStart() if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2158, 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 yys2159Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2159Slc var yyhl2159 bool = l >= 0 for yyj2159 := 0; ; yyj2159++ { if yyhl2159 { if yyj2159 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2159Slc = r.DecodeBytes(yys2159Slc, true, true) yys2159 := string(yys2159Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2159 { 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, yys2159) } // end switch yys2159 } // end for yyj2159 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 yyj2163 int var yyb2163 bool var yyhl2163 bool = l >= 0 yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2163-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2167 := z.EncBinary() _ = yym2167 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2168 := !z.EncBinary() yy2arr2168 := z.EncBasicHandle().StructToArray var yyq2168 [4]bool _, _, _ = yysep2168, yyq2168, yy2arr2168 const yyr2168 bool = false yyq2168[0] = x.Kind != "" yyq2168[1] = x.APIVersion != "" yyq2168[2] = true var yynn2168 int if yyr2168 || yy2arr2168 { r.EncodeArrayStart(4) } else { yynn2168 = 1 for _, b := range yyq2168 { if b { yynn2168++ } } r.EncodeMapStart(yynn2168) yynn2168 = 0 } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2168[0] { yym2170 := z.EncBinary() _ = yym2170 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2168[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2171 := z.EncBinary() _ = yym2171 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2168[1] { yym2173 := z.EncBinary() _ = yym2173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2168[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2174 := z.EncBinary() _ = yym2174 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2168[2] { yy2176 := &x.ListMeta yym2177 := z.EncBinary() _ = yym2177 if false { } else if z.HasExtensions() && z.EncExt(yy2176) { } else { z.EncFallback(yy2176) } } else { r.EncodeNil() } } else { if yyq2168[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2178 := &x.ListMeta yym2179 := z.EncBinary() _ = yym2179 if false { } else if z.HasExtensions() && z.EncExt(yy2178) { } else { z.EncFallback(yy2178) } } } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2181 := z.EncBinary() _ = yym2181 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 { yym2182 := z.EncBinary() _ = yym2182 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2168 || yy2arr2168 { 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 yym2183 := z.DecBinary() _ = yym2183 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2184 := r.ContainerType() if yyct2184 == codecSelferValueTypeMap1234 { yyl2184 := r.ReadMapStart() if yyl2184 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2184, d) } } else if yyct2184 == codecSelferValueTypeArray1234 { yyl2184 := r.ReadArrayStart() if yyl2184 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2184, 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 yys2185Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2185Slc var yyhl2185 bool = l >= 0 for yyj2185 := 0; ; yyj2185++ { if yyhl2185 { if yyj2185 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2185Slc = r.DecodeBytes(yys2185Slc, true, true) yys2185 := string(yys2185Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2185 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2188 := &x.ListMeta yym2189 := z.DecBinary() _ = yym2189 if false { } else if z.HasExtensions() && z.DecExt(yyv2188) { } else { z.DecFallback(yyv2188, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2190 := &x.Items yym2191 := z.DecBinary() _ = yym2191 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2190), d) } } default: z.DecStructFieldNotFound(-1, yys2185) } // end switch yys2185 } // end for yyj2185 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 yyj2192 int var yyb2192 bool var yyhl2192 bool = l >= 0 yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2195 := &x.ListMeta yym2196 := z.DecBinary() _ = yym2196 if false { } else if z.HasExtensions() && z.DecExt(yyv2195) { } else { z.DecFallback(yyv2195, false) } } yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2197 := &x.Items yym2198 := z.DecBinary() _ = yym2198 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2197), d) } } for { yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2192-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 { yym2199 := z.EncBinary() _ = yym2199 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2200 := !z.EncBinary() yy2arr2200 := z.EncBasicHandle().StructToArray var yyq2200 [4]bool _, _, _ = yysep2200, yyq2200, yy2arr2200 const yyr2200 bool = false yyq2200[0] = x.PodCIDR != "" yyq2200[1] = x.ExternalID != "" yyq2200[2] = x.ProviderID != "" yyq2200[3] = x.Unschedulable != false var yynn2200 int if yyr2200 || yy2arr2200 { r.EncodeArrayStart(4) } else { yynn2200 = 0 for _, b := range yyq2200 { if b { yynn2200++ } } r.EncodeMapStart(yynn2200) yynn2200 = 0 } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[0] { yym2202 := z.EncBinary() _ = yym2202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2200[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2203 := z.EncBinary() _ = yym2203 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[1] { yym2205 := z.EncBinary() _ = yym2205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2200[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2206 := z.EncBinary() _ = yym2206 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[2] { yym2208 := z.EncBinary() _ = yym2208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2200[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2209 := z.EncBinary() _ = yym2209 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[3] { yym2211 := z.EncBinary() _ = yym2211 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2200[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2212 := z.EncBinary() _ = yym2212 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2200 || yy2arr2200 { 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 yym2213 := z.DecBinary() _ = yym2213 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2214 := r.ContainerType() if yyct2214 == codecSelferValueTypeMap1234 { yyl2214 := r.ReadMapStart() if yyl2214 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2214, d) } } else if yyct2214 == codecSelferValueTypeArray1234 { yyl2214 := r.ReadArrayStart() if yyl2214 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2214, 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 yys2215Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2215Slc var yyhl2215 bool = l >= 0 for yyj2215 := 0; ; yyj2215++ { if yyhl2215 { if yyj2215 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2215Slc = r.DecodeBytes(yys2215Slc, true, true) yys2215 := string(yys2215Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2215 { 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, yys2215) } // end switch yys2215 } // end for yyj2215 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 yyj2220 int var yyb2220 bool var yyhl2220 bool = l >= 0 yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2220-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 { yym2225 := z.EncBinary() _ = yym2225 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2226 := !z.EncBinary() yy2arr2226 := z.EncBasicHandle().StructToArray var yyq2226 [1]bool _, _, _ = yysep2226, yyq2226, yy2arr2226 const yyr2226 bool = false var yynn2226 int if yyr2226 || yy2arr2226 { r.EncodeArrayStart(1) } else { yynn2226 = 1 for _, b := range yyq2226 { if b { yynn2226++ } } r.EncodeMapStart(yynn2226) yynn2226 = 0 } if yyr2226 || yy2arr2226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2228 := z.EncBinary() _ = yym2228 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2229 := z.EncBinary() _ = yym2229 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2226 || yy2arr2226 { 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 yym2230 := z.DecBinary() _ = yym2230 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2231 := r.ContainerType() if yyct2231 == codecSelferValueTypeMap1234 { yyl2231 := r.ReadMapStart() if yyl2231 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2231, d) } } else if yyct2231 == codecSelferValueTypeArray1234 { yyl2231 := r.ReadArrayStart() if yyl2231 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2231, 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 yys2232Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2232Slc var yyhl2232 bool = l >= 0 for yyj2232 := 0; ; yyj2232++ { if yyhl2232 { if yyj2232 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2232Slc = r.DecodeBytes(yys2232Slc, true, true) yys2232 := string(yys2232Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2232 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2232) } // end switch yys2232 } // end for yyj2232 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 yyj2234 int var yyb2234 bool var yyhl2234 bool = l >= 0 yyj2234++ if yyhl2234 { yyb2234 = yyj2234 > l } else { yyb2234 = r.CheckBreak() } if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2234++ if yyhl2234 { yyb2234 = yyj2234 > l } else { yyb2234 = r.CheckBreak() } if yyb2234 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2234-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 { yym2236 := z.EncBinary() _ = yym2236 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2237 := !z.EncBinary() yy2arr2237 := z.EncBasicHandle().StructToArray var yyq2237 [1]bool _, _, _ = yysep2237, yyq2237, yy2arr2237 const yyr2237 bool = false yyq2237[0] = true var yynn2237 int if yyr2237 || yy2arr2237 { r.EncodeArrayStart(1) } else { yynn2237 = 0 for _, b := range yyq2237 { if b { yynn2237++ } } r.EncodeMapStart(yynn2237) yynn2237 = 0 } if yyr2237 || yy2arr2237 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2237[0] { yy2239 := &x.KubeletEndpoint yy2239.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2237[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2240 := &x.KubeletEndpoint yy2240.CodecEncodeSelf(e) } } if yyr2237 || yy2arr2237 { 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 yym2241 := z.DecBinary() _ = yym2241 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2242 := r.ContainerType() if yyct2242 == codecSelferValueTypeMap1234 { yyl2242 := r.ReadMapStart() if yyl2242 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2242, d) } } else if yyct2242 == codecSelferValueTypeArray1234 { yyl2242 := r.ReadArrayStart() if yyl2242 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2242, 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 yys2243Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2243Slc var yyhl2243 bool = l >= 0 for yyj2243 := 0; ; yyj2243++ { if yyhl2243 { if yyj2243 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2243Slc = r.DecodeBytes(yys2243Slc, true, true) yys2243 := string(yys2243Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2243 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2244 := &x.KubeletEndpoint yyv2244.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2243) } // end switch yys2243 } // end for yyj2243 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 yyj2245 int var yyb2245 bool var yyhl2245 bool = l >= 0 yyj2245++ if yyhl2245 { yyb2245 = yyj2245 > l } else { yyb2245 = r.CheckBreak() } if yyb2245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2246 := &x.KubeletEndpoint yyv2246.CodecDecodeSelf(d) } for { yyj2245++ if yyhl2245 { yyb2245 = yyj2245 > l } else { yyb2245 = r.CheckBreak() } if yyb2245 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2245-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 { yym2247 := z.EncBinary() _ = yym2247 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2248 := !z.EncBinary() yy2arr2248 := z.EncBasicHandle().StructToArray var yyq2248 [8]bool _, _, _ = yysep2248, yyq2248, yy2arr2248 const yyr2248 bool = false var yynn2248 int if yyr2248 || yy2arr2248 { r.EncodeArrayStart(8) } else { yynn2248 = 8 for _, b := range yyq2248 { if b { yynn2248++ } } r.EncodeMapStart(yynn2248) yynn2248 = 0 } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2250 := z.EncBinary() _ = yym2250 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) yym2251 := z.EncBinary() _ = yym2251 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2253 := z.EncBinary() _ = yym2253 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) yym2254 := z.EncBinary() _ = yym2254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2256 := z.EncBinary() _ = yym2256 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) yym2257 := z.EncBinary() _ = yym2257 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2259 := z.EncBinary() _ = yym2259 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) yym2260 := z.EncBinary() _ = yym2260 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2262 := z.EncBinary() _ = yym2262 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) yym2263 := z.EncBinary() _ = yym2263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OsImage)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2265 := z.EncBinary() _ = yym2265 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) yym2266 := z.EncBinary() _ = yym2266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2268 := z.EncBinary() _ = yym2268 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) yym2269 := z.EncBinary() _ = yym2269 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2271 := z.EncBinary() _ = yym2271 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) yym2272 := z.EncBinary() _ = yym2272 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2248 || yy2arr2248 { 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 yym2273 := z.DecBinary() _ = yym2273 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2274 := r.ContainerType() if yyct2274 == codecSelferValueTypeMap1234 { yyl2274 := r.ReadMapStart() if yyl2274 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2274, d) } } else if yyct2274 == codecSelferValueTypeArray1234 { yyl2274 := r.ReadArrayStart() if yyl2274 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2274, 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 yys2275Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2275Slc var yyhl2275 bool = l >= 0 for yyj2275 := 0; ; yyj2275++ { if yyhl2275 { if yyj2275 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2275Slc = r.DecodeBytes(yys2275Slc, true, true) yys2275 := string(yys2275Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2275 { 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, yys2275) } // end switch yys2275 } // end for yyj2275 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 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.MachineID = "" } else { x.MachineID = 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.SystemUUID = "" } else { x.SystemUUID = 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.BootID = "" } else { x.BootID = 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.KernelVersion = "" } else { x.KernelVersion = 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.OsImage = "" } else { x.OsImage = 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.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = 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.KubeletVersion = "" } else { x.KubeletVersion = 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.KubeProxyVersion = "" } else { x.KubeProxyVersion = 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 *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2293 := z.EncBinary() _ = yym2293 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2294 := !z.EncBinary() yy2arr2294 := z.EncBasicHandle().StructToArray var yyq2294 [6]bool _, _, _ = yysep2294, yyq2294, yy2arr2294 const yyr2294 bool = false yyq2294[0] = len(x.Capacity) != 0 yyq2294[1] = x.Phase != "" yyq2294[2] = len(x.Conditions) != 0 yyq2294[3] = len(x.Addresses) != 0 yyq2294[4] = true yyq2294[5] = true var yynn2294 int if yyr2294 || yy2arr2294 { r.EncodeArrayStart(6) } else { yynn2294 = 0 for _, b := range yyq2294 { if b { yynn2294++ } } r.EncodeMapStart(yynn2294) yynn2294 = 0 } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2294[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 yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[1] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2294[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[2] { if x.Conditions == nil { r.EncodeNil() } else { yym2298 := z.EncBinary() _ = yym2298 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2294[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2299 := z.EncBinary() _ = yym2299 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[3] { if x.Addresses == nil { r.EncodeNil() } else { yym2301 := z.EncBinary() _ = yym2301 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq2294[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2302 := z.EncBinary() _ = yym2302 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[4] { yy2304 := &x.DaemonEndpoints yy2304.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2294[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2305 := &x.DaemonEndpoints yy2305.CodecEncodeSelf(e) } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[5] { yy2307 := &x.NodeInfo yy2307.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2294[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2308 := &x.NodeInfo yy2308.CodecEncodeSelf(e) } } if yyr2294 || yy2arr2294 { 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 yym2309 := z.DecBinary() _ = yym2309 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2310 := r.ContainerType() if yyct2310 == codecSelferValueTypeMap1234 { yyl2310 := r.ReadMapStart() if yyl2310 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2310, d) } } else if yyct2310 == codecSelferValueTypeArray1234 { yyl2310 := r.ReadArrayStart() if yyl2310 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2310, 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 yys2311Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2311Slc var yyhl2311 bool = l >= 0 for yyj2311 := 0; ; yyj2311++ { if yyhl2311 { if yyj2311 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2311Slc = r.DecodeBytes(yys2311Slc, true, true) yys2311 := string(yys2311Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2311 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2312 := &x.Capacity yyv2312.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2314 := &x.Conditions yym2315 := z.DecBinary() _ = yym2315 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2314), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2316 := &x.Addresses yym2317 := z.DecBinary() _ = yym2317 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2316), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2318 := &x.DaemonEndpoints yyv2318.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2319 := &x.NodeInfo yyv2319.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2311) } // end switch yys2311 } // end for yyj2311 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 yyj2320 int var yyb2320 bool var yyhl2320 bool = l >= 0 yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2321 := &x.Capacity yyv2321.CodecDecodeSelf(d) } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2323 := &x.Conditions yym2324 := z.DecBinary() _ = yym2324 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2323), d) } } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2325 := &x.Addresses yym2326 := z.DecBinary() _ = yym2326 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2325), d) } } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2327 := &x.DaemonEndpoints yyv2327.CodecDecodeSelf(d) } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2328 := &x.NodeInfo yyv2328.CodecDecodeSelf(d) } for { yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2320-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2329 := z.EncBinary() _ = yym2329 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 yym2330 := z.DecBinary() _ = yym2330 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 yym2331 := z.EncBinary() _ = yym2331 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 yym2332 := z.DecBinary() _ = yym2332 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 { yym2333 := z.EncBinary() _ = yym2333 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2334 := !z.EncBinary() yy2arr2334 := z.EncBasicHandle().StructToArray var yyq2334 [6]bool _, _, _ = yysep2334, yyq2334, yy2arr2334 const yyr2334 bool = false yyq2334[2] = true yyq2334[3] = true yyq2334[4] = x.Reason != "" yyq2334[5] = x.Message != "" var yynn2334 int if yyr2334 || yy2arr2334 { r.EncodeArrayStart(6) } else { yynn2334 = 2 for _, b := range yyq2334 { if b { yynn2334++ } } r.EncodeMapStart(yynn2334) yynn2334 = 0 } if yyr2334 || yy2arr2334 { 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 yyr2334 || yy2arr2334 { 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 yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[2] { yy2338 := &x.LastHeartbeatTime yym2339 := z.EncBinary() _ = yym2339 if false { } else if z.HasExtensions() && z.EncExt(yy2338) { } else if yym2339 { z.EncBinaryMarshal(yy2338) } else if !yym2339 && z.IsJSONHandle() { z.EncJSONMarshal(yy2338) } else { z.EncFallback(yy2338) } } else { r.EncodeNil() } } else { if yyq2334[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2340 := &x.LastHeartbeatTime yym2341 := z.EncBinary() _ = yym2341 if false { } else if z.HasExtensions() && z.EncExt(yy2340) { } else if yym2341 { z.EncBinaryMarshal(yy2340) } else if !yym2341 && z.IsJSONHandle() { z.EncJSONMarshal(yy2340) } else { z.EncFallback(yy2340) } } } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[3] { yy2343 := &x.LastTransitionTime yym2344 := z.EncBinary() _ = yym2344 if false { } else if z.HasExtensions() && z.EncExt(yy2343) { } else if yym2344 { z.EncBinaryMarshal(yy2343) } else if !yym2344 && z.IsJSONHandle() { z.EncJSONMarshal(yy2343) } else { z.EncFallback(yy2343) } } else { r.EncodeNil() } } else { if yyq2334[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2345 := &x.LastTransitionTime yym2346 := z.EncBinary() _ = yym2346 if false { } else if z.HasExtensions() && z.EncExt(yy2345) { } else if yym2346 { z.EncBinaryMarshal(yy2345) } else if !yym2346 && z.IsJSONHandle() { z.EncJSONMarshal(yy2345) } else { z.EncFallback(yy2345) } } } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[4] { yym2348 := z.EncBinary() _ = yym2348 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2334[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2349 := z.EncBinary() _ = yym2349 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[5] { yym2351 := z.EncBinary() _ = yym2351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2334[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2352 := z.EncBinary() _ = yym2352 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2334 || yy2arr2334 { 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 yym2353 := z.DecBinary() _ = yym2353 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2354 := r.ContainerType() if yyct2354 == codecSelferValueTypeMap1234 { yyl2354 := r.ReadMapStart() if yyl2354 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2354, d) } } else if yyct2354 == codecSelferValueTypeArray1234 { yyl2354 := r.ReadArrayStart() if yyl2354 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2354, 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 yys2355Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2355Slc var yyhl2355 bool = l >= 0 for yyj2355 := 0; ; yyj2355++ { if yyhl2355 { if yyj2355 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2355Slc = r.DecodeBytes(yys2355Slc, true, true) yys2355 := string(yys2355Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2355 { 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 { yyv2358 := &x.LastHeartbeatTime yym2359 := z.DecBinary() _ = yym2359 if false { } else if z.HasExtensions() && z.DecExt(yyv2358) { } else if yym2359 { z.DecBinaryUnmarshal(yyv2358) } else if !yym2359 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2358) } else { z.DecFallback(yyv2358, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2360 := &x.LastTransitionTime yym2361 := z.DecBinary() _ = yym2361 if false { } else if z.HasExtensions() && z.DecExt(yyv2360) { } else if yym2361 { z.DecBinaryUnmarshal(yyv2360) } else if !yym2361 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2360) } else { z.DecFallback(yyv2360, 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, yys2355) } // end switch yys2355 } // end for yyj2355 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 yyj2364 int var yyb2364 bool var yyhl2364 bool = l >= 0 yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv2367 := &x.LastHeartbeatTime yym2368 := z.DecBinary() _ = yym2368 if false { } else if z.HasExtensions() && z.DecExt(yyv2367) { } else if yym2368 { z.DecBinaryUnmarshal(yyv2367) } else if !yym2368 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2367) } else { z.DecFallback(yyv2367, false) } } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2369 := &x.LastTransitionTime yym2370 := z.DecBinary() _ = yym2370 if false { } else if z.HasExtensions() && z.DecExt(yyv2369) { } else if yym2370 { z.DecBinaryUnmarshal(yyv2369) } else if !yym2370 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2369) } else { z.DecFallback(yyv2369, false) } } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2364-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2373 := z.EncBinary() _ = yym2373 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 yym2374 := z.DecBinary() _ = yym2374 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 { yym2375 := z.EncBinary() _ = yym2375 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2376 := !z.EncBinary() yy2arr2376 := z.EncBasicHandle().StructToArray var yyq2376 [2]bool _, _, _ = yysep2376, yyq2376, yy2arr2376 const yyr2376 bool = false var yynn2376 int if yyr2376 || yy2arr2376 { r.EncodeArrayStart(2) } else { yynn2376 = 2 for _, b := range yyq2376 { if b { yynn2376++ } } r.EncodeMapStart(yynn2376) yynn2376 = 0 } if yyr2376 || yy2arr2376 { 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 yyr2376 || yy2arr2376 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2379 := z.EncBinary() _ = yym2379 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) yym2380 := z.EncBinary() _ = yym2380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr2376 || yy2arr2376 { 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 yym2381 := z.DecBinary() _ = yym2381 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2382 := r.ContainerType() if yyct2382 == codecSelferValueTypeMap1234 { yyl2382 := r.ReadMapStart() if yyl2382 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2382, d) } } else if yyct2382 == codecSelferValueTypeArray1234 { yyl2382 := r.ReadArrayStart() if yyl2382 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2382, 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 yys2383Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2383Slc var yyhl2383 bool = l >= 0 for yyj2383 := 0; ; yyj2383++ { if yyhl2383 { if yyj2383 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2383Slc = r.DecodeBytes(yys2383Slc, true, true) yys2383 := string(yys2383Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2383 { 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, yys2383) } // end switch yys2383 } // end for yyj2383 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 yyj2386 int var yyb2386 bool var yyhl2386 bool = l >= 0 yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2386-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2389 := z.EncBinary() _ = yym2389 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2390 := !z.EncBinary() yy2arr2390 := z.EncBasicHandle().StructToArray var yyq2390 [1]bool _, _, _ = yysep2390, yyq2390, yy2arr2390 const yyr2390 bool = false yyq2390[0] = len(x.Capacity) != 0 var yynn2390 int if yyr2390 || yy2arr2390 { r.EncodeArrayStart(1) } else { yynn2390 = 0 for _, b := range yyq2390 { if b { yynn2390++ } } r.EncodeMapStart(yynn2390) yynn2390 = 0 } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2390[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 yyr2390 || yy2arr2390 { 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 yym2392 := z.DecBinary() _ = yym2392 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2393 := r.ContainerType() if yyct2393 == codecSelferValueTypeMap1234 { yyl2393 := r.ReadMapStart() if yyl2393 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2393, d) } } else if yyct2393 == codecSelferValueTypeArray1234 { yyl2393 := r.ReadArrayStart() if yyl2393 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2393, 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 yys2394Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2394Slc var yyhl2394 bool = l >= 0 for yyj2394 := 0; ; yyj2394++ { if yyhl2394 { if yyj2394 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2394Slc = r.DecodeBytes(yys2394Slc, true, true) yys2394 := string(yys2394Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2394 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2395 := &x.Capacity yyv2395.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2394) } // end switch yys2394 } // end for yyj2394 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 yyj2396 int var yyb2396 bool var yyhl2396 bool = l >= 0 yyj2396++ if yyhl2396 { yyb2396 = yyj2396 > l } else { yyb2396 = r.CheckBreak() } if yyb2396 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2397 := &x.Capacity yyv2397.CodecDecodeSelf(d) } for { yyj2396++ if yyhl2396 { yyb2396 = yyj2396 > l } else { yyb2396 = r.CheckBreak() } if yyb2396 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2396-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2398 := z.EncBinary() _ = yym2398 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 yym2399 := z.DecBinary() _ = yym2399 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 { yym2400 := z.EncBinary() _ = yym2400 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 yym2401 := z.DecBinary() _ = yym2401 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 { yym2402 := z.EncBinary() _ = yym2402 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2403 := !z.EncBinary() yy2arr2403 := z.EncBasicHandle().StructToArray var yyq2403 [5]bool _, _, _ = yysep2403, yyq2403, yy2arr2403 const yyr2403 bool = false yyq2403[0] = x.Kind != "" yyq2403[1] = x.APIVersion != "" yyq2403[2] = true yyq2403[3] = true yyq2403[4] = true var yynn2403 int if yyr2403 || yy2arr2403 { r.EncodeArrayStart(5) } else { yynn2403 = 0 for _, b := range yyq2403 { if b { yynn2403++ } } r.EncodeMapStart(yynn2403) yynn2403 = 0 } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[0] { yym2405 := z.EncBinary() _ = yym2405 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2403[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2406 := z.EncBinary() _ = yym2406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[1] { yym2408 := z.EncBinary() _ = yym2408 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2403[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2409 := z.EncBinary() _ = yym2409 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[2] { yy2411 := &x.ObjectMeta yy2411.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2403[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2412 := &x.ObjectMeta yy2412.CodecEncodeSelf(e) } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[3] { yy2414 := &x.Spec yy2414.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2403[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2415 := &x.Spec yy2415.CodecEncodeSelf(e) } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[4] { yy2417 := &x.Status yy2417.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2403[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2418 := &x.Status yy2418.CodecEncodeSelf(e) } } if yyr2403 || yy2arr2403 { 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 yym2419 := z.DecBinary() _ = yym2419 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2420 := r.ContainerType() if yyct2420 == codecSelferValueTypeMap1234 { yyl2420 := r.ReadMapStart() if yyl2420 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2420, d) } } else if yyct2420 == codecSelferValueTypeArray1234 { yyl2420 := r.ReadArrayStart() if yyl2420 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2420, 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 yys2421Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2421Slc var yyhl2421 bool = l >= 0 for yyj2421 := 0; ; yyj2421++ { if yyhl2421 { if yyj2421 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2421Slc = r.DecodeBytes(yys2421Slc, true, true) yys2421 := string(yys2421Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2421 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2424 := &x.ObjectMeta yyv2424.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2425 := &x.Spec yyv2425.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2426 := &x.Status yyv2426.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2421) } // end switch yys2421 } // end for yyj2421 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 yyj2427 int var yyb2427 bool var yyhl2427 bool = l >= 0 yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2430 := &x.ObjectMeta yyv2430.CodecDecodeSelf(d) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2431 := &x.Spec yyv2431.CodecDecodeSelf(d) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2432 := &x.Status yyv2432.CodecDecodeSelf(d) } for { yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2427-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 { yym2433 := z.EncBinary() _ = yym2433 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2434 := !z.EncBinary() yy2arr2434 := z.EncBasicHandle().StructToArray var yyq2434 [4]bool _, _, _ = yysep2434, yyq2434, yy2arr2434 const yyr2434 bool = false yyq2434[0] = x.Kind != "" yyq2434[1] = x.APIVersion != "" yyq2434[2] = true var yynn2434 int if yyr2434 || yy2arr2434 { r.EncodeArrayStart(4) } else { yynn2434 = 1 for _, b := range yyq2434 { if b { yynn2434++ } } r.EncodeMapStart(yynn2434) yynn2434 = 0 } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2434[0] { yym2436 := z.EncBinary() _ = yym2436 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2434[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2437 := z.EncBinary() _ = yym2437 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2434[1] { yym2439 := z.EncBinary() _ = yym2439 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2434[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2440 := z.EncBinary() _ = yym2440 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2434[2] { yy2442 := &x.ListMeta yym2443 := z.EncBinary() _ = yym2443 if false { } else if z.HasExtensions() && z.EncExt(yy2442) { } else { z.EncFallback(yy2442) } } else { r.EncodeNil() } } else { if yyq2434[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2444 := &x.ListMeta yym2445 := z.EncBinary() _ = yym2445 if false { } else if z.HasExtensions() && z.EncExt(yy2444) { } else { z.EncFallback(yy2444) } } } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2447 := z.EncBinary() _ = yym2447 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 { yym2448 := z.EncBinary() _ = yym2448 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr2434 || yy2arr2434 { 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 yym2449 := z.DecBinary() _ = yym2449 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2450 := r.ContainerType() if yyct2450 == codecSelferValueTypeMap1234 { yyl2450 := r.ReadMapStart() if yyl2450 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2450, d) } } else if yyct2450 == codecSelferValueTypeArray1234 { yyl2450 := r.ReadArrayStart() if yyl2450 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2450, 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 yys2451Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2451Slc var yyhl2451 bool = l >= 0 for yyj2451 := 0; ; yyj2451++ { if yyhl2451 { if yyj2451 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2451Slc = r.DecodeBytes(yys2451Slc, true, true) yys2451 := string(yys2451Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2451 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2454 := &x.ListMeta yym2455 := z.DecBinary() _ = yym2455 if false { } else if z.HasExtensions() && z.DecExt(yyv2454) { } else { z.DecFallback(yyv2454, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2456 := &x.Items yym2457 := z.DecBinary() _ = yym2457 if false { } else { h.decSliceNode((*[]Node)(yyv2456), d) } } default: z.DecStructFieldNotFound(-1, yys2451) } // end switch yys2451 } // end for yyj2451 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 yyj2458 int var yyb2458 bool var yyhl2458 bool = l >= 0 yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2461 := &x.ListMeta yym2462 := z.DecBinary() _ = yym2462 if false { } else if z.HasExtensions() && z.DecExt(yyv2461) { } else { z.DecFallback(yyv2461, false) } } yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2463 := &x.Items yym2464 := z.DecBinary() _ = yym2464 if false { } else { h.decSliceNode((*[]Node)(yyv2463), d) } } for { yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2458-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 { yym2465 := z.EncBinary() _ = yym2465 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2466 := !z.EncBinary() yy2arr2466 := z.EncBasicHandle().StructToArray var yyq2466 [1]bool _, _, _ = yysep2466, yyq2466, yy2arr2466 const yyr2466 bool = false var yynn2466 int if yyr2466 || yy2arr2466 { r.EncodeArrayStart(1) } else { yynn2466 = 1 for _, b := range yyq2466 { if b { yynn2466++ } } r.EncodeMapStart(yynn2466) yynn2466 = 0 } if yyr2466 || yy2arr2466 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym2468 := z.EncBinary() _ = yym2468 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 { yym2469 := z.EncBinary() _ = yym2469 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr2466 || yy2arr2466 { 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 yym2470 := z.DecBinary() _ = yym2470 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2471 := r.ContainerType() if yyct2471 == codecSelferValueTypeMap1234 { yyl2471 := r.ReadMapStart() if yyl2471 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2471, d) } } else if yyct2471 == codecSelferValueTypeArray1234 { yyl2471 := r.ReadArrayStart() if yyl2471 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2471, 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 yys2472Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2472Slc var yyhl2472 bool = l >= 0 for yyj2472 := 0; ; yyj2472++ { if yyhl2472 { if yyj2472 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2472Slc = r.DecodeBytes(yys2472Slc, true, true) yys2472 := string(yys2472Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2472 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2473 := &x.Finalizers yym2474 := z.DecBinary() _ = yym2474 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2473), d) } } default: z.DecStructFieldNotFound(-1, yys2472) } // end switch yys2472 } // end for yyj2472 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 yyj2475 int var yyb2475 bool var yyhl2475 bool = l >= 0 yyj2475++ if yyhl2475 { yyb2475 = yyj2475 > l } else { yyb2475 = r.CheckBreak() } if yyb2475 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2476 := &x.Finalizers yym2477 := z.DecBinary() _ = yym2477 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2476), d) } } for { yyj2475++ if yyhl2475 { yyb2475 = yyj2475 > l } else { yyb2475 = r.CheckBreak() } if yyb2475 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2475-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2478 := z.EncBinary() _ = yym2478 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 yym2479 := z.DecBinary() _ = yym2479 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 { yym2480 := z.EncBinary() _ = yym2480 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2481 := !z.EncBinary() yy2arr2481 := z.EncBasicHandle().StructToArray var yyq2481 [1]bool _, _, _ = yysep2481, yyq2481, yy2arr2481 const yyr2481 bool = false yyq2481[0] = x.Phase != "" var yynn2481 int if yyr2481 || yy2arr2481 { r.EncodeArrayStart(1) } else { yynn2481 = 0 for _, b := range yyq2481 { if b { yynn2481++ } } r.EncodeMapStart(yynn2481) yynn2481 = 0 } if yyr2481 || yy2arr2481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2481[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2481[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2481 || yy2arr2481 { 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 yym2483 := z.DecBinary() _ = yym2483 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2484 := r.ContainerType() if yyct2484 == codecSelferValueTypeMap1234 { yyl2484 := r.ReadMapStart() if yyl2484 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2484, d) } } else if yyct2484 == codecSelferValueTypeArray1234 { yyl2484 := r.ReadArrayStart() if yyl2484 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2484, 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 yys2485Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2485Slc var yyhl2485 bool = l >= 0 for yyj2485 := 0; ; yyj2485++ { if yyhl2485 { if yyj2485 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2485Slc = r.DecodeBytes(yys2485Slc, true, true) yys2485 := string(yys2485Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2485 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2485) } // end switch yys2485 } // end for yyj2485 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 yyj2487 int var yyb2487 bool var yyhl2487 bool = l >= 0 yyj2487++ if yyhl2487 { yyb2487 = yyj2487 > l } else { yyb2487 = r.CheckBreak() } if yyb2487 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj2487++ if yyhl2487 { yyb2487 = yyj2487 > l } else { yyb2487 = r.CheckBreak() } if yyb2487 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2487-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2489 := z.EncBinary() _ = yym2489 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 yym2490 := z.DecBinary() _ = yym2490 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 { yym2491 := z.EncBinary() _ = yym2491 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2492 := !z.EncBinary() yy2arr2492 := z.EncBasicHandle().StructToArray var yyq2492 [5]bool _, _, _ = yysep2492, yyq2492, yy2arr2492 const yyr2492 bool = false yyq2492[0] = x.Kind != "" yyq2492[1] = x.APIVersion != "" yyq2492[2] = true yyq2492[3] = true yyq2492[4] = true var yynn2492 int if yyr2492 || yy2arr2492 { r.EncodeArrayStart(5) } else { yynn2492 = 0 for _, b := range yyq2492 { if b { yynn2492++ } } r.EncodeMapStart(yynn2492) yynn2492 = 0 } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[0] { yym2494 := z.EncBinary() _ = yym2494 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2492[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2495 := z.EncBinary() _ = yym2495 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[1] { yym2497 := z.EncBinary() _ = yym2497 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2492[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2498 := z.EncBinary() _ = yym2498 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[2] { yy2500 := &x.ObjectMeta yy2500.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2492[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2501 := &x.ObjectMeta yy2501.CodecEncodeSelf(e) } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[3] { yy2503 := &x.Spec yy2503.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2492[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2504 := &x.Spec yy2504.CodecEncodeSelf(e) } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[4] { yy2506 := &x.Status yy2506.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2492[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2507 := &x.Status yy2507.CodecEncodeSelf(e) } } if yyr2492 || yy2arr2492 { 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 yym2508 := z.DecBinary() _ = yym2508 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2509 := r.ContainerType() if yyct2509 == codecSelferValueTypeMap1234 { yyl2509 := r.ReadMapStart() if yyl2509 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2509, d) } } else if yyct2509 == codecSelferValueTypeArray1234 { yyl2509 := r.ReadArrayStart() if yyl2509 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2509, 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 yys2510Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2510Slc var yyhl2510 bool = l >= 0 for yyj2510 := 0; ; yyj2510++ { if yyhl2510 { if yyj2510 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2510Slc = r.DecodeBytes(yys2510Slc, true, true) yys2510 := string(yys2510Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2510 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2513 := &x.ObjectMeta yyv2513.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2514 := &x.Spec yyv2514.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2515 := &x.Status yyv2515.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2510) } // end switch yys2510 } // end for yyj2510 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 yyj2516 int var yyb2516 bool var yyhl2516 bool = l >= 0 yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2519 := &x.ObjectMeta yyv2519.CodecDecodeSelf(d) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2520 := &x.Spec yyv2520.CodecDecodeSelf(d) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2521 := &x.Status yyv2521.CodecDecodeSelf(d) } for { yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2516-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 { yym2522 := z.EncBinary() _ = yym2522 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2523 := !z.EncBinary() yy2arr2523 := z.EncBasicHandle().StructToArray var yyq2523 [4]bool _, _, _ = yysep2523, yyq2523, yy2arr2523 const yyr2523 bool = false yyq2523[0] = x.Kind != "" yyq2523[1] = x.APIVersion != "" yyq2523[2] = true var yynn2523 int if yyr2523 || yy2arr2523 { r.EncodeArrayStart(4) } else { yynn2523 = 1 for _, b := range yyq2523 { if b { yynn2523++ } } r.EncodeMapStart(yynn2523) yynn2523 = 0 } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2523[0] { yym2525 := z.EncBinary() _ = yym2525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2523[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2526 := z.EncBinary() _ = yym2526 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2523[1] { yym2528 := z.EncBinary() _ = yym2528 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2523[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2529 := z.EncBinary() _ = yym2529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2523[2] { yy2531 := &x.ListMeta yym2532 := z.EncBinary() _ = yym2532 if false { } else if z.HasExtensions() && z.EncExt(yy2531) { } else { z.EncFallback(yy2531) } } else { r.EncodeNil() } } else { if yyq2523[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2533 := &x.ListMeta yym2534 := z.EncBinary() _ = yym2534 if false { } else if z.HasExtensions() && z.EncExt(yy2533) { } else { z.EncFallback(yy2533) } } } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2536 := z.EncBinary() _ = yym2536 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 { yym2537 := z.EncBinary() _ = yym2537 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr2523 || yy2arr2523 { 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 yym2538 := z.DecBinary() _ = yym2538 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2539 := r.ContainerType() if yyct2539 == codecSelferValueTypeMap1234 { yyl2539 := r.ReadMapStart() if yyl2539 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2539, d) } } else if yyct2539 == codecSelferValueTypeArray1234 { yyl2539 := r.ReadArrayStart() if yyl2539 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2539, 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 yys2540Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2540Slc var yyhl2540 bool = l >= 0 for yyj2540 := 0; ; yyj2540++ { if yyhl2540 { if yyj2540 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2540Slc = r.DecodeBytes(yys2540Slc, true, true) yys2540 := string(yys2540Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2540 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2543 := &x.ListMeta yym2544 := z.DecBinary() _ = yym2544 if false { } else if z.HasExtensions() && z.DecExt(yyv2543) { } else { z.DecFallback(yyv2543, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2545 := &x.Items yym2546 := z.DecBinary() _ = yym2546 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2545), d) } } default: z.DecStructFieldNotFound(-1, yys2540) } // end switch yys2540 } // end for yyj2540 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 yyj2547 int var yyb2547 bool var yyhl2547 bool = l >= 0 yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2550 := &x.ListMeta yym2551 := z.DecBinary() _ = yym2551 if false { } else if z.HasExtensions() && z.DecExt(yyv2550) { } else { z.DecFallback(yyv2550, false) } } yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2552 := &x.Items yym2553 := z.DecBinary() _ = yym2553 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2552), d) } } for { yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2547-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 { yym2554 := z.EncBinary() _ = yym2554 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2555 := !z.EncBinary() yy2arr2555 := z.EncBasicHandle().StructToArray var yyq2555 [4]bool _, _, _ = yysep2555, yyq2555, yy2arr2555 const yyr2555 bool = false yyq2555[0] = x.Kind != "" yyq2555[1] = x.APIVersion != "" yyq2555[2] = true var yynn2555 int if yyr2555 || yy2arr2555 { r.EncodeArrayStart(4) } else { yynn2555 = 1 for _, b := range yyq2555 { if b { yynn2555++ } } r.EncodeMapStart(yynn2555) yynn2555 = 0 } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2555[0] { yym2557 := z.EncBinary() _ = yym2557 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2555[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2558 := z.EncBinary() _ = yym2558 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2555[1] { yym2560 := z.EncBinary() _ = yym2560 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2555[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2561 := z.EncBinary() _ = yym2561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2555[2] { yy2563 := &x.ObjectMeta yy2563.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2555[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2564 := &x.ObjectMeta yy2564.CodecEncodeSelf(e) } } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2566 := &x.Target yy2566.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2567 := &x.Target yy2567.CodecEncodeSelf(e) } if yyr2555 || yy2arr2555 { 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 yym2568 := z.DecBinary() _ = yym2568 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2569 := r.ContainerType() if yyct2569 == codecSelferValueTypeMap1234 { yyl2569 := r.ReadMapStart() if yyl2569 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2569, d) } } else if yyct2569 == codecSelferValueTypeArray1234 { yyl2569 := r.ReadArrayStart() if yyl2569 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2569, 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 yys2570Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2570Slc var yyhl2570 bool = l >= 0 for yyj2570 := 0; ; yyj2570++ { if yyhl2570 { if yyj2570 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2570Slc = r.DecodeBytes(yys2570Slc, true, true) yys2570 := string(yys2570Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2570 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2573 := &x.ObjectMeta yyv2573.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2574 := &x.Target yyv2574.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2570) } // end switch yys2570 } // end for yyj2570 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 yyj2575 int var yyb2575 bool var yyhl2575 bool = l >= 0 yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2578 := &x.ObjectMeta yyv2578.CodecDecodeSelf(d) } yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2579 := &x.Target yyv2579.CodecDecodeSelf(d) } for { yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2575-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 { yym2580 := z.EncBinary() _ = yym2580 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2581 := !z.EncBinary() yy2arr2581 := z.EncBasicHandle().StructToArray var yyq2581 [3]bool _, _, _ = yysep2581, yyq2581, yy2arr2581 const yyr2581 bool = false yyq2581[0] = x.Kind != "" yyq2581[1] = x.APIVersion != "" var yynn2581 int if yyr2581 || yy2arr2581 { r.EncodeArrayStart(3) } else { yynn2581 = 1 for _, b := range yyq2581 { if b { yynn2581++ } } r.EncodeMapStart(yynn2581) yynn2581 = 0 } if yyr2581 || yy2arr2581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2581[0] { yym2583 := z.EncBinary() _ = yym2583 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2581[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2584 := z.EncBinary() _ = yym2584 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2581 || yy2arr2581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2581[1] { yym2586 := z.EncBinary() _ = yym2586 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2581[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2587 := z.EncBinary() _ = yym2587 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2581 || yy2arr2581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2589 := *x.GracePeriodSeconds yym2590 := z.EncBinary() _ = yym2590 if false { } else { r.EncodeInt(int64(yy2589)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2591 := *x.GracePeriodSeconds yym2592 := z.EncBinary() _ = yym2592 if false { } else { r.EncodeInt(int64(yy2591)) } } } if yyr2581 || yy2arr2581 { 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 yym2593 := z.DecBinary() _ = yym2593 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2594 := r.ContainerType() if yyct2594 == codecSelferValueTypeMap1234 { yyl2594 := r.ReadMapStart() if yyl2594 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2594, d) } } else if yyct2594 == codecSelferValueTypeArray1234 { yyl2594 := r.ReadArrayStart() if yyl2594 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2594, 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 yys2595Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2595Slc var yyhl2595 bool = l >= 0 for yyj2595 := 0; ; yyj2595++ { if yyhl2595 { if yyj2595 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2595Slc = r.DecodeBytes(yys2595Slc, true, true) yys2595 := string(yys2595Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2595 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "gracePeriodSeconds": if r.TryDecodeAsNil() { if x.GracePeriodSeconds != nil { x.GracePeriodSeconds = nil } } else { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } yym2599 := z.DecBinary() _ = yym2599 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2595) } // end switch yys2595 } // end for yyj2595 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 yyj2600 int var yyb2600 bool var yyhl2600 bool = l >= 0 yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { 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) } yym2604 := z.DecBinary() _ = yym2604 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } for { yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2600-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 { yym2605 := z.EncBinary() _ = yym2605 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2606 := !z.EncBinary() yy2arr2606 := z.EncBasicHandle().StructToArray var yyq2606 [10]bool _, _, _ = yysep2606, yyq2606, yy2arr2606 const yyr2606 bool = false yyq2606[0] = x.Kind != "" yyq2606[1] = x.APIVersion != "" var yynn2606 int if yyr2606 || yy2arr2606 { r.EncodeArrayStart(10) } else { yynn2606 = 8 for _, b := range yyq2606 { if b { yynn2606++ } } r.EncodeMapStart(yynn2606) yynn2606 = 0 } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2606[0] { yym2608 := z.EncBinary() _ = yym2608 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2606[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2609 := z.EncBinary() _ = yym2609 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2606[1] { yym2611 := z.EncBinary() _ = yym2611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2606[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2612 := z.EncBinary() _ = yym2612 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2614 := z.EncBinary() _ = yym2614 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) yym2615 := z.EncBinary() _ = yym2615 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2617 := z.EncBinary() _ = yym2617 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2618 := z.EncBinary() _ = yym2618 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2620 := z.EncBinary() _ = yym2620 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2621 := z.EncBinary() _ = yym2621 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2623 := *x.SinceSeconds yym2624 := z.EncBinary() _ = yym2624 if false { } else { r.EncodeInt(int64(yy2623)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2625 := *x.SinceSeconds yym2626 := z.EncBinary() _ = yym2626 if false { } else { r.EncodeInt(int64(yy2625)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym2628 := z.EncBinary() _ = yym2628 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2628 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2628 && 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 { yym2629 := z.EncBinary() _ = yym2629 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2629 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2629 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2631 := z.EncBinary() _ = yym2631 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2632 := z.EncBinary() _ = yym2632 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy2634 := *x.TailLines yym2635 := z.EncBinary() _ = yym2635 if false { } else { r.EncodeInt(int64(yy2634)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy2636 := *x.TailLines yym2637 := z.EncBinary() _ = yym2637 if false { } else { r.EncodeInt(int64(yy2636)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2639 := *x.LimitBytes yym2640 := z.EncBinary() _ = yym2640 if false { } else { r.EncodeInt(int64(yy2639)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2641 := *x.LimitBytes yym2642 := z.EncBinary() _ = yym2642 if false { } else { r.EncodeInt(int64(yy2641)) } } } if yyr2606 || yy2arr2606 { 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 yym2643 := z.DecBinary() _ = yym2643 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2644 := r.ContainerType() if yyct2644 == codecSelferValueTypeMap1234 { yyl2644 := r.ReadMapStart() if yyl2644 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2644, d) } } else if yyct2644 == codecSelferValueTypeArray1234 { yyl2644 := r.ReadArrayStart() if yyl2644 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2644, 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 yys2645Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2645Slc var yyhl2645 bool = l >= 0 for yyj2645 := 0; ; yyj2645++ { if yyhl2645 { if yyj2645 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2645Slc = r.DecodeBytes(yys2645Slc, true, true) yys2645 := string(yys2645Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2645 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Container": if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } case "Follow": if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } case "Previous": if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } case "SinceSeconds": if r.TryDecodeAsNil() { if x.SinceSeconds != nil { x.SinceSeconds = nil } } else { if x.SinceSeconds == nil { x.SinceSeconds = new(int64) } yym2652 := z.DecBinary() _ = yym2652 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) } yym2654 := z.DecBinary() _ = yym2654 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2654 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2654 && 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) } yym2657 := z.DecBinary() _ = yym2657 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) } yym2659 := z.DecBinary() _ = yym2659 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2645) } // end switch yys2645 } // end for yyj2645 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 yyj2660 int var yyb2660 bool var yyhl2660 bool = l >= 0 yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { 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) } yym2667 := z.DecBinary() _ = yym2667 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { 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) } yym2669 := z.DecBinary() _ = yym2669 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2669 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2669 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { 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) } yym2672 := z.DecBinary() _ = yym2672 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { 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) } yym2674 := z.DecBinary() _ = yym2674 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { yyj2660++ if yyhl2660 { yyb2660 = yyj2660 > l } else { yyb2660 = r.CheckBreak() } if yyb2660 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2660-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 { yym2675 := z.EncBinary() _ = yym2675 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2676 := !z.EncBinary() yy2arr2676 := z.EncBasicHandle().StructToArray var yyq2676 [7]bool _, _, _ = yysep2676, yyq2676, yy2arr2676 const yyr2676 bool = false yyq2676[0] = x.Kind != "" yyq2676[1] = x.APIVersion != "" yyq2676[2] = x.Stdin != false yyq2676[3] = x.Stdout != false yyq2676[4] = x.Stderr != false yyq2676[5] = x.TTY != false yyq2676[6] = x.Container != "" var yynn2676 int if yyr2676 || yy2arr2676 { r.EncodeArrayStart(7) } 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] { yym2678 := z.EncBinary() _ = yym2678 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2676[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2679 := z.EncBinary() _ = yym2679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[1] { yym2681 := z.EncBinary() _ = yym2681 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2676[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2682 := z.EncBinary() _ = yym2682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[2] { yym2684 := z.EncBinary() _ = yym2684 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq2676[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2685 := z.EncBinary() _ = yym2685 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[3] { yym2687 := z.EncBinary() _ = yym2687 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq2676[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2688 := z.EncBinary() _ = yym2688 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[4] { yym2690 := z.EncBinary() _ = yym2690 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq2676[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2691 := z.EncBinary() _ = yym2691 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[5] { yym2693 := z.EncBinary() _ = yym2693 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq2676[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2694 := z.EncBinary() _ = yym2694 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr2676 || yy2arr2676 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2676[6] { yym2696 := z.EncBinary() _ = yym2696 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2676[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2697 := z.EncBinary() _ = yym2697 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr2676 || yy2arr2676 { 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 yym2698 := z.DecBinary() _ = yym2698 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2699 := r.ContainerType() if yyct2699 == codecSelferValueTypeMap1234 { yyl2699 := r.ReadMapStart() if yyl2699 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2699, d) } } else if yyct2699 == codecSelferValueTypeArray1234 { yyl2699 := r.ReadArrayStart() if yyl2699 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2699, 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 yys2700Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2700Slc var yyhl2700 bool = l >= 0 for yyj2700 := 0; ; yyj2700++ { if yyhl2700 { if yyj2700 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2700Slc = r.DecodeBytes(yys2700Slc, true, true) yys2700 := string(yys2700Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2700 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "stdin": if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } case "stdout": if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } case "stderr": if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } case "tty": if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } case "container": if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2700) } // end switch yys2700 } // end for yyj2700 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 yyj2708 int var yyb2708 bool var yyhl2708 bool = l >= 0 yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } for { yyj2708++ if yyhl2708 { yyb2708 = yyj2708 > l } else { yyb2708 = r.CheckBreak() } if yyb2708 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2708-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 { yym2716 := z.EncBinary() _ = yym2716 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2717 := !z.EncBinary() yy2arr2717 := z.EncBasicHandle().StructToArray var yyq2717 [8]bool _, _, _ = yysep2717, yyq2717, yy2arr2717 const yyr2717 bool = false yyq2717[0] = x.Kind != "" yyq2717[1] = x.APIVersion != "" var yynn2717 int if yyr2717 || yy2arr2717 { r.EncodeArrayStart(8) } else { yynn2717 = 6 for _, b := range yyq2717 { if b { yynn2717++ } } r.EncodeMapStart(yynn2717) yynn2717 = 0 } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2717[0] { yym2719 := z.EncBinary() _ = yym2719 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2717[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2720 := z.EncBinary() _ = yym2720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2717[1] { yym2722 := z.EncBinary() _ = yym2722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2717[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2723 := z.EncBinary() _ = yym2723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2725 := z.EncBinary() _ = yym2725 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2726 := z.EncBinary() _ = yym2726 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2728 := z.EncBinary() _ = yym2728 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2729 := z.EncBinary() _ = yym2729 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2731 := z.EncBinary() _ = yym2731 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2732 := z.EncBinary() _ = yym2732 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2734 := z.EncBinary() _ = yym2734 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2735 := z.EncBinary() _ = yym2735 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2737 := z.EncBinary() _ = yym2737 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) yym2738 := z.EncBinary() _ = yym2738 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2717 || yy2arr2717 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym2740 := z.EncBinary() _ = yym2740 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 { yym2741 := z.EncBinary() _ = yym2741 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr2717 || yy2arr2717 { 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 yym2742 := z.DecBinary() _ = yym2742 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2743 := r.ContainerType() if yyct2743 == codecSelferValueTypeMap1234 { yyl2743 := r.ReadMapStart() if yyl2743 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2743, d) } } else if yyct2743 == codecSelferValueTypeArray1234 { yyl2743 := r.ReadArrayStart() if yyl2743 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2743, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2744Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2744Slc var yyhl2744 bool = l >= 0 for yyj2744 := 0; ; yyj2744++ { if yyhl2744 { if yyj2744 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2744Slc = r.DecodeBytes(yys2744Slc, true, true) yys2744 := string(yys2744Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2744 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Stdin": if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } case "Stdout": if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } case "Stderr": if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } case "TTY": if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } case "Container": if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } case "Command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv2752 := &x.Command yym2753 := z.DecBinary() _ = yym2753 if false { } else { z.F.DecSliceStringX(yyv2752, false, d) } } default: z.DecStructFieldNotFound(-1, yys2744) } // end switch yys2744 } // end for yyj2744 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 yyj2754 int var yyb2754 bool var yyhl2754 bool = l >= 0 yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv2762 := &x.Command yym2763 := z.DecBinary() _ = yym2763 if false { } else { z.F.DecSliceStringX(yyv2762, false, d) } } for { yyj2754++ if yyhl2754 { yyb2754 = yyj2754 > l } else { yyb2754 = r.CheckBreak() } if yyb2754 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2754-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 { yym2764 := z.EncBinary() _ = yym2764 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2765 := !z.EncBinary() yy2arr2765 := z.EncBasicHandle().StructToArray var yyq2765 [3]bool _, _, _ = yysep2765, yyq2765, yy2arr2765 const yyr2765 bool = false yyq2765[0] = x.Kind != "" yyq2765[1] = x.APIVersion != "" var yynn2765 int if yyr2765 || yy2arr2765 { r.EncodeArrayStart(3) } else { yynn2765 = 1 for _, b := range yyq2765 { if b { yynn2765++ } } r.EncodeMapStart(yynn2765) yynn2765 = 0 } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2765[0] { yym2767 := z.EncBinary() _ = yym2767 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2765[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2768 := z.EncBinary() _ = yym2768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2765[1] { yym2770 := z.EncBinary() _ = yym2770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2765[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2771 := z.EncBinary() _ = yym2771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2765 || yy2arr2765 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2773 := z.EncBinary() _ = yym2773 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) yym2774 := z.EncBinary() _ = yym2774 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr2765 || yy2arr2765 { 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 yym2775 := z.DecBinary() _ = yym2775 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2776 := r.ContainerType() if yyct2776 == codecSelferValueTypeMap1234 { yyl2776 := r.ReadMapStart() if yyl2776 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2776, d) } } else if yyct2776 == codecSelferValueTypeArray1234 { yyl2776 := r.ReadArrayStart() if yyl2776 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2776, 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 yys2777Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2777Slc var yyhl2777 bool = l >= 0 for yyj2777 := 0; ; yyj2777++ { if yyhl2777 { if yyj2777 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2777Slc = r.DecodeBytes(yys2777Slc, true, true) yys2777 := string(yys2777Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2777 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "Path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2777) } // end switch yys2777 } // end for yyj2777 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 yyj2781 int var yyb2781 bool var yyhl2781 bool = l >= 0 yyj2781++ if yyhl2781 { yyb2781 = yyj2781 > l } else { yyb2781 = r.CheckBreak() } if yyb2781 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2781++ if yyhl2781 { yyb2781 = yyj2781 > l } else { yyb2781 = r.CheckBreak() } if yyb2781 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2781++ if yyhl2781 { yyb2781 = yyj2781 > l } else { yyb2781 = r.CheckBreak() } if yyb2781 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj2781++ if yyhl2781 { yyb2781 = yyj2781 > l } else { yyb2781 = r.CheckBreak() } if yyb2781 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2781-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 { yym2785 := z.EncBinary() _ = yym2785 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2786 := !z.EncBinary() yy2arr2786 := z.EncBasicHandle().StructToArray var yyq2786 [7]bool _, _, _ = yysep2786, yyq2786, yy2arr2786 const yyr2786 bool = false yyq2786[0] = x.Kind != "" yyq2786[1] = x.Namespace != "" yyq2786[2] = x.Name != "" yyq2786[3] = x.UID != "" yyq2786[4] = x.APIVersion != "" yyq2786[5] = x.ResourceVersion != "" yyq2786[6] = x.FieldPath != "" var yynn2786 int if yyr2786 || yy2arr2786 { r.EncodeArrayStart(7) } else { yynn2786 = 0 for _, b := range yyq2786 { if b { yynn2786++ } } r.EncodeMapStart(yynn2786) yynn2786 = 0 } if yyr2786 || yy2arr2786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2786[0] { yym2788 := z.EncBinary() _ = yym2788 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2786[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2789 := z.EncBinary() _ = yym2789 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2786 || yy2arr2786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2786[1] { yym2791 := z.EncBinary() _ = yym2791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2786[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2792 := z.EncBinary() _ = yym2792 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr2786 || yy2arr2786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2786[2] { yym2794 := z.EncBinary() _ = yym2794 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2786[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2795 := z.EncBinary() _ = yym2795 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr2786 || yy2arr2786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2786[3] { yym2797 := z.EncBinary() _ = yym2797 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 yyq2786[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2798 := z.EncBinary() _ = yym2798 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr2786 || yy2arr2786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2786[4] { yym2800 := z.EncBinary() _ = yym2800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2786[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2801 := z.EncBinary() _ = yym2801 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2786 || yy2arr2786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2786[5] { yym2803 := z.EncBinary() _ = yym2803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2786[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2804 := z.EncBinary() _ = yym2804 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr2786 || yy2arr2786 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2786[6] { yym2806 := z.EncBinary() _ = yym2806 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2786[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2807 := z.EncBinary() _ = yym2807 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr2786 || yy2arr2786 { 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 yym2808 := z.DecBinary() _ = yym2808 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2809 := r.ContainerType() if yyct2809 == codecSelferValueTypeMap1234 { yyl2809 := r.ReadMapStart() if yyl2809 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2809, d) } } else if yyct2809 == codecSelferValueTypeArray1234 { yyl2809 := r.ReadArrayStart() if yyl2809 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2809, 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 yys2810Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2810Slc var yyhl2810 bool = l >= 0 for yyj2810 := 0; ; yyj2810++ { if yyhl2810 { if yyj2810 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2810Slc = r.DecodeBytes(yys2810Slc, true, true) yys2810 := string(yys2810Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2810 { 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, yys2810) } // end switch yys2810 } // end for yyj2810 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 yyj2818 int var yyb2818 bool var yyhl2818 bool = l >= 0 yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj2818++ if yyhl2818 { yyb2818 = yyj2818 > l } else { yyb2818 = r.CheckBreak() } if yyb2818 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2818-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 { yym2826 := z.EncBinary() _ = yym2826 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2827 := !z.EncBinary() yy2arr2827 := z.EncBasicHandle().StructToArray var yyq2827 [1]bool _, _, _ = yysep2827, yyq2827, yy2arr2827 const yyr2827 bool = false var yynn2827 int if yyr2827 || yy2arr2827 { r.EncodeArrayStart(1) } else { yynn2827 = 1 for _, b := range yyq2827 { if b { yynn2827++ } } r.EncodeMapStart(yynn2827) yynn2827 = 0 } if yyr2827 || yy2arr2827 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2829 := z.EncBinary() _ = yym2829 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) yym2830 := z.EncBinary() _ = yym2830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2827 || yy2arr2827 { 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 yym2831 := z.DecBinary() _ = yym2831 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2832 := r.ContainerType() if yyct2832 == codecSelferValueTypeMap1234 { yyl2832 := r.ReadMapStart() if yyl2832 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2832, d) } } else if yyct2832 == codecSelferValueTypeArray1234 { yyl2832 := r.ReadArrayStart() if yyl2832 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2832, 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 yys2833Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2833Slc var yyhl2833 bool = l >= 0 for yyj2833 := 0; ; yyj2833++ { if yyhl2833 { if yyj2833 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2833Slc = r.DecodeBytes(yys2833Slc, true, true) yys2833 := string(yys2833Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2833 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2833) } // end switch yys2833 } // end for yyj2833 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 yyj2835 int var yyb2835 bool var yyhl2835 bool = l >= 0 yyj2835++ if yyhl2835 { yyb2835 = yyj2835 > l } else { yyb2835 = r.CheckBreak() } if yyb2835 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj2835++ if yyhl2835 { yyb2835 = yyj2835 > l } else { yyb2835 = r.CheckBreak() } if yyb2835 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2835-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 { yym2837 := z.EncBinary() _ = yym2837 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2838 := !z.EncBinary() yy2arr2838 := z.EncBasicHandle().StructToArray var yyq2838 [3]bool _, _, _ = yysep2838, yyq2838, yy2arr2838 const yyr2838 bool = false yyq2838[0] = x.Kind != "" yyq2838[1] = x.APIVersion != "" yyq2838[2] = true var yynn2838 int if yyr2838 || yy2arr2838 { r.EncodeArrayStart(3) } else { yynn2838 = 0 for _, b := range yyq2838 { if b { yynn2838++ } } r.EncodeMapStart(yynn2838) yynn2838 = 0 } if yyr2838 || yy2arr2838 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2838[0] { yym2840 := z.EncBinary() _ = yym2840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2838[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2841 := z.EncBinary() _ = yym2841 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2838 || yy2arr2838 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2838[1] { yym2843 := z.EncBinary() _ = yym2843 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2838[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2844 := z.EncBinary() _ = yym2844 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2838 || yy2arr2838 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2838[2] { yy2846 := &x.Reference yy2846.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2838[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2847 := &x.Reference yy2847.CodecEncodeSelf(e) } } if yyr2838 || yy2arr2838 { 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 yym2848 := z.DecBinary() _ = yym2848 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2849 := r.ContainerType() if yyct2849 == codecSelferValueTypeMap1234 { yyl2849 := r.ReadMapStart() if yyl2849 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2849, d) } } else if yyct2849 == codecSelferValueTypeArray1234 { yyl2849 := r.ReadArrayStart() if yyl2849 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2849, 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 yys2850Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2850Slc var yyhl2850 bool = l >= 0 for yyj2850 := 0; ; yyj2850++ { if yyhl2850 { if yyj2850 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2850Slc = r.DecodeBytes(yys2850Slc, true, true) yys2850 := string(yys2850Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2850 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "reference": if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv2853 := &x.Reference yyv2853.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2850) } // end switch yys2850 } // end for yyj2850 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 yyj2854 int var yyb2854 bool var yyhl2854 bool = l >= 0 yyj2854++ if yyhl2854 { yyb2854 = yyj2854 > l } else { yyb2854 = r.CheckBreak() } if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2854++ if yyhl2854 { yyb2854 = yyj2854 > l } else { yyb2854 = r.CheckBreak() } if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2854++ if yyhl2854 { yyb2854 = yyj2854 > l } else { yyb2854 = r.CheckBreak() } if yyb2854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv2857 := &x.Reference yyv2857.CodecDecodeSelf(d) } for { yyj2854++ if yyhl2854 { yyb2854 = yyj2854 > l } else { yyb2854 = r.CheckBreak() } if yyb2854 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2854-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 { yym2858 := z.EncBinary() _ = yym2858 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2859 := !z.EncBinary() yy2arr2859 := z.EncBasicHandle().StructToArray var yyq2859 [2]bool _, _, _ = yysep2859, yyq2859, yy2arr2859 const yyr2859 bool = false yyq2859[0] = x.Component != "" yyq2859[1] = x.Host != "" var yynn2859 int if yyr2859 || yy2arr2859 { r.EncodeArrayStart(2) } else { yynn2859 = 0 for _, b := range yyq2859 { if b { yynn2859++ } } r.EncodeMapStart(yynn2859) yynn2859 = 0 } if yyr2859 || yy2arr2859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2859[0] { yym2861 := z.EncBinary() _ = yym2861 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2859[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2862 := z.EncBinary() _ = yym2862 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr2859 || yy2arr2859 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2859[1] { yym2864 := z.EncBinary() _ = yym2864 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2859[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2865 := z.EncBinary() _ = yym2865 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr2859 || yy2arr2859 { 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 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 *EventSource) 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 "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, yys2868) } // end switch yys2868 } // end for yyj2868 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 yyj2871 int var yyb2871 bool var yyhl2871 bool = l >= 0 yyj2871++ if yyhl2871 { yyb2871 = yyj2871 > l } else { yyb2871 = r.CheckBreak() } if yyb2871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj2871++ if yyhl2871 { yyb2871 = yyj2871 > l } else { yyb2871 = r.CheckBreak() } if yyb2871 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj2871++ if yyhl2871 { yyb2871 = yyj2871 > l } else { yyb2871 = r.CheckBreak() } if yyb2871 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2871-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 { yym2874 := z.EncBinary() _ = yym2874 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2875 := !z.EncBinary() yy2arr2875 := z.EncBasicHandle().StructToArray var yyq2875 [11]bool _, _, _ = yysep2875, yyq2875, yy2arr2875 const yyr2875 bool = false yyq2875[0] = x.Kind != "" yyq2875[1] = x.APIVersion != "" yyq2875[2] = true yyq2875[3] = true yyq2875[4] = x.Reason != "" yyq2875[5] = x.Message != "" yyq2875[6] = true yyq2875[7] = true yyq2875[8] = true yyq2875[9] = x.Count != 0 yyq2875[10] = x.Type != "" var yynn2875 int if yyr2875 || yy2arr2875 { r.EncodeArrayStart(11) } else { yynn2875 = 0 for _, b := range yyq2875 { if b { yynn2875++ } } r.EncodeMapStart(yynn2875) yynn2875 = 0 } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[0] { yym2877 := z.EncBinary() _ = yym2877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2878 := z.EncBinary() _ = yym2878 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[1] { yym2880 := z.EncBinary() _ = yym2880 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2881 := z.EncBinary() _ = yym2881 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[2] { yy2883 := &x.ObjectMeta yy2883.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2875[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2884 := &x.ObjectMeta yy2884.CodecEncodeSelf(e) } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[3] { yy2886 := &x.InvolvedObject yy2886.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2875[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2887 := &x.InvolvedObject yy2887.CodecEncodeSelf(e) } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[4] { yym2889 := z.EncBinary() _ = yym2889 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2890 := z.EncBinary() _ = yym2890 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[5] { yym2892 := z.EncBinary() _ = yym2892 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2893 := z.EncBinary() _ = yym2893 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[6] { yy2895 := &x.Source yy2895.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2875[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2896 := &x.Source yy2896.CodecEncodeSelf(e) } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[7] { yy2898 := &x.FirstTimestamp yym2899 := z.EncBinary() _ = yym2899 if false { } else if z.HasExtensions() && z.EncExt(yy2898) { } else if yym2899 { z.EncBinaryMarshal(yy2898) } else if !yym2899 && z.IsJSONHandle() { z.EncJSONMarshal(yy2898) } else { z.EncFallback(yy2898) } } else { r.EncodeNil() } } else { if yyq2875[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2900 := &x.FirstTimestamp yym2901 := z.EncBinary() _ = yym2901 if false { } else if z.HasExtensions() && z.EncExt(yy2900) { } else if yym2901 { z.EncBinaryMarshal(yy2900) } else if !yym2901 && z.IsJSONHandle() { z.EncJSONMarshal(yy2900) } else { z.EncFallback(yy2900) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[8] { yy2903 := &x.LastTimestamp yym2904 := z.EncBinary() _ = yym2904 if false { } else if z.HasExtensions() && z.EncExt(yy2903) { } else if yym2904 { z.EncBinaryMarshal(yy2903) } else if !yym2904 && z.IsJSONHandle() { z.EncJSONMarshal(yy2903) } else { z.EncFallback(yy2903) } } else { r.EncodeNil() } } else { if yyq2875[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2905 := &x.LastTimestamp yym2906 := z.EncBinary() _ = yym2906 if false { } else if z.HasExtensions() && z.EncExt(yy2905) { } else if yym2906 { z.EncBinaryMarshal(yy2905) } else if !yym2906 && z.IsJSONHandle() { z.EncJSONMarshal(yy2905) } else { z.EncFallback(yy2905) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[9] { yym2908 := z.EncBinary() _ = yym2908 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq2875[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2909 := z.EncBinary() _ = yym2909 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[10] { yym2911 := z.EncBinary() _ = yym2911 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2912 := z.EncBinary() _ = yym2912 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr2875 || yy2arr2875 { 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 yym2913 := z.DecBinary() _ = yym2913 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2914 := r.ContainerType() if yyct2914 == codecSelferValueTypeMap1234 { yyl2914 := r.ReadMapStart() if yyl2914 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2914, d) } } else if yyct2914 == codecSelferValueTypeArray1234 { yyl2914 := r.ReadArrayStart() if yyl2914 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2914, 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 yys2915Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2915Slc var yyhl2915 bool = l >= 0 for yyj2915 := 0; ; yyj2915++ { if yyhl2915 { if yyj2915 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2915Slc = r.DecodeBytes(yys2915Slc, true, true) yys2915 := string(yys2915Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2915 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2918 := &x.ObjectMeta yyv2918.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv2919 := &x.InvolvedObject yyv2919.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 { yyv2922 := &x.Source yyv2922.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv2923 := &x.FirstTimestamp yym2924 := z.DecBinary() _ = yym2924 if false { } else if z.HasExtensions() && z.DecExt(yyv2923) { } else if yym2924 { z.DecBinaryUnmarshal(yyv2923) } else if !yym2924 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2923) } else { z.DecFallback(yyv2923, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv2925 := &x.LastTimestamp yym2926 := z.DecBinary() _ = yym2926 if false { } else if z.HasExtensions() && z.DecExt(yyv2925) { } else if yym2926 { z.DecBinaryUnmarshal(yyv2925) } else if !yym2926 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2925) } else { z.DecFallback(yyv2925, 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()) } default: z.DecStructFieldNotFound(-1, yys2915) } // end switch yys2915 } // end for yyj2915 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 yyj2929 int var yyb2929 bool var yyhl2929 bool = l >= 0 yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2932 := &x.ObjectMeta yyv2932.CodecDecodeSelf(d) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv2933 := &x.InvolvedObject yyv2933.CodecDecodeSelf(d) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv2936 := &x.Source yyv2936.CodecDecodeSelf(d) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv2937 := &x.FirstTimestamp yym2938 := z.DecBinary() _ = yym2938 if false { } else if z.HasExtensions() && z.DecExt(yyv2937) { } else if yym2938 { z.DecBinaryUnmarshal(yyv2937) } else if !yym2938 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2937) } else { z.DecFallback(yyv2937, false) } } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv2939 := &x.LastTimestamp yym2940 := z.DecBinary() _ = yym2940 if false { } else if z.HasExtensions() && z.DecExt(yyv2939) { } else if yym2940 { z.DecBinaryUnmarshal(yyv2939) } else if !yym2940 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2939) } else { z.DecFallback(yyv2939, false) } } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } for { yyj2929++ if yyhl2929 { yyb2929 = yyj2929 > l } else { yyb2929 = r.CheckBreak() } if yyb2929 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2929-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 { yym2943 := z.EncBinary() _ = yym2943 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2944 := !z.EncBinary() yy2arr2944 := z.EncBasicHandle().StructToArray var yyq2944 [4]bool _, _, _ = yysep2944, yyq2944, yy2arr2944 const yyr2944 bool = false yyq2944[0] = x.Kind != "" yyq2944[1] = x.APIVersion != "" yyq2944[2] = true var yynn2944 int if yyr2944 || yy2arr2944 { r.EncodeArrayStart(4) } else { yynn2944 = 1 for _, b := range yyq2944 { if b { yynn2944++ } } r.EncodeMapStart(yynn2944) yynn2944 = 0 } if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2944[0] { yym2946 := z.EncBinary() _ = yym2946 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2944[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2947 := z.EncBinary() _ = yym2947 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2944[1] { yym2949 := z.EncBinary() _ = yym2949 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2944[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2950 := z.EncBinary() _ = yym2950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2944[2] { yy2952 := &x.ListMeta yym2953 := z.EncBinary() _ = yym2953 if false { } else if z.HasExtensions() && z.EncExt(yy2952) { } else { z.EncFallback(yy2952) } } else { r.EncodeNil() } } else { if yyq2944[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2954 := &x.ListMeta yym2955 := z.EncBinary() _ = yym2955 if false { } else if z.HasExtensions() && z.EncExt(yy2954) { } else { z.EncFallback(yy2954) } } } if yyr2944 || yy2arr2944 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2957 := z.EncBinary() _ = yym2957 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 { yym2958 := z.EncBinary() _ = yym2958 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr2944 || yy2arr2944 { 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 yym2959 := z.DecBinary() _ = yym2959 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2960 := r.ContainerType() if yyct2960 == codecSelferValueTypeMap1234 { yyl2960 := r.ReadMapStart() if yyl2960 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2960, d) } } else if yyct2960 == codecSelferValueTypeArray1234 { yyl2960 := r.ReadArrayStart() if yyl2960 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2960, 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 yys2961Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2961Slc var yyhl2961 bool = l >= 0 for yyj2961 := 0; ; yyj2961++ { if yyhl2961 { if yyj2961 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2961Slc = r.DecodeBytes(yys2961Slc, true, true) yys2961 := string(yys2961Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2961 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2964 := &x.ListMeta yym2965 := z.DecBinary() _ = yym2965 if false { } else if z.HasExtensions() && z.DecExt(yyv2964) { } else { z.DecFallback(yyv2964, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2966 := &x.Items yym2967 := z.DecBinary() _ = yym2967 if false { } else { h.decSliceEvent((*[]Event)(yyv2966), d) } } default: z.DecStructFieldNotFound(-1, yys2961) } // end switch yys2961 } // end for yyj2961 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 yyj2968 int var yyb2968 bool var yyhl2968 bool = l >= 0 yyj2968++ if yyhl2968 { yyb2968 = yyj2968 > l } else { yyb2968 = r.CheckBreak() } if yyb2968 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2968++ if yyhl2968 { yyb2968 = yyj2968 > l } else { yyb2968 = r.CheckBreak() } if yyb2968 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2968++ if yyhl2968 { yyb2968 = yyj2968 > l } else { yyb2968 = r.CheckBreak() } if yyb2968 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2971 := &x.ListMeta yym2972 := z.DecBinary() _ = yym2972 if false { } else if z.HasExtensions() && z.DecExt(yyv2971) { } else { z.DecFallback(yyv2971, false) } } yyj2968++ if yyhl2968 { yyb2968 = yyj2968 > l } else { yyb2968 = r.CheckBreak() } if yyb2968 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2973 := &x.Items yym2974 := z.DecBinary() _ = yym2974 if false { } else { h.decSliceEvent((*[]Event)(yyv2973), d) } } for { yyj2968++ if yyhl2968 { yyb2968 = yyj2968 > l } else { yyb2968 = r.CheckBreak() } if yyb2968 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2968-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 { yym2975 := z.EncBinary() _ = yym2975 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2976 := !z.EncBinary() yy2arr2976 := z.EncBasicHandle().StructToArray var yyq2976 [4]bool _, _, _ = yysep2976, yyq2976, yy2arr2976 const yyr2976 bool = false yyq2976[0] = x.Kind != "" yyq2976[1] = x.APIVersion != "" yyq2976[2] = true var yynn2976 int if yyr2976 || yy2arr2976 { r.EncodeArrayStart(4) } else { yynn2976 = 1 for _, b := range yyq2976 { if b { yynn2976++ } } r.EncodeMapStart(yynn2976) yynn2976 = 0 } if yyr2976 || yy2arr2976 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2976[0] { yym2978 := z.EncBinary() _ = yym2978 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2976[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2979 := z.EncBinary() _ = yym2979 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2976 || yy2arr2976 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2976[1] { yym2981 := z.EncBinary() _ = yym2981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2976[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2982 := z.EncBinary() _ = yym2982 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2976 || yy2arr2976 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2976[2] { yy2984 := &x.ListMeta yym2985 := z.EncBinary() _ = yym2985 if false { } else if z.HasExtensions() && z.EncExt(yy2984) { } else { z.EncFallback(yy2984) } } else { r.EncodeNil() } } else { if yyq2976[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2986 := &x.ListMeta yym2987 := z.EncBinary() _ = yym2987 if false { } else if z.HasExtensions() && z.EncExt(yy2986) { } else { z.EncFallback(yy2986) } } } if yyr2976 || yy2arr2976 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2989 := z.EncBinary() _ = yym2989 if false { } else { h.encSliceruntime_Object(([]pkg6_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 { yym2990 := z.EncBinary() _ = yym2990 if false { } else { h.encSliceruntime_Object(([]pkg6_runtime.Object)(x.Items), e) } } } if yyr2976 || yy2arr2976 { 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 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 *List) 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 "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2996 := &x.ListMeta yym2997 := z.DecBinary() _ = yym2997 if false { } else if z.HasExtensions() && z.DecExt(yyv2996) { } else { z.DecFallback(yyv2996, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2998 := &x.Items yym2999 := z.DecBinary() _ = yym2999 if false { } else { h.decSliceruntime_Object((*[]pkg6_runtime.Object)(yyv2998), d) } } default: z.DecStructFieldNotFound(-1, yys2993) } // end switch yys2993 } // end for yyj2993 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 yyj3000 int var yyb3000 bool var yyhl3000 bool = l >= 0 yyj3000++ if yyhl3000 { yyb3000 = yyj3000 > l } else { yyb3000 = r.CheckBreak() } if yyb3000 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3000++ if yyhl3000 { yyb3000 = yyj3000 > l } else { yyb3000 = r.CheckBreak() } if yyb3000 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3000++ if yyhl3000 { yyb3000 = yyj3000 > l } else { yyb3000 = r.CheckBreak() } if yyb3000 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3003 := &x.ListMeta yym3004 := z.DecBinary() _ = yym3004 if false { } else if z.HasExtensions() && z.DecExt(yyv3003) { } else { z.DecFallback(yyv3003, false) } } yyj3000++ if yyhl3000 { yyb3000 = yyj3000 > l } else { yyb3000 = r.CheckBreak() } if yyb3000 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3005 := &x.Items yym3006 := z.DecBinary() _ = yym3006 if false { } else { h.decSliceruntime_Object((*[]pkg6_runtime.Object)(yyv3005), d) } } for { yyj3000++ if yyhl3000 { yyb3000 = yyj3000 > l } else { yyb3000 = r.CheckBreak() } if yyb3000 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3000-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3007 := z.EncBinary() _ = yym3007 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 yym3008 := z.DecBinary() _ = yym3008 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 { yym3009 := z.EncBinary() _ = yym3009 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3010 := !z.EncBinary() yy2arr3010 := z.EncBasicHandle().StructToArray var yyq3010 [6]bool _, _, _ = yysep3010, yyq3010, yy2arr3010 const yyr3010 bool = false yyq3010[0] = x.Type != "" yyq3010[1] = len(x.Max) != 0 yyq3010[2] = len(x.Min) != 0 yyq3010[3] = len(x.Default) != 0 yyq3010[4] = len(x.DefaultRequest) != 0 yyq3010[5] = len(x.MaxLimitRequestRatio) != 0 var yynn3010 int if yyr3010 || yy2arr3010 { r.EncodeArrayStart(6) } else { yynn3010 = 0 for _, b := range yyq3010 { if b { yynn3010++ } } r.EncodeMapStart(yynn3010) yynn3010 = 0 } if yyr3010 || yy2arr3010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3010[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3010[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3010 || yy2arr3010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3010[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3010[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 yyr3010 || yy2arr3010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3010[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3010[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 yyr3010 || yy2arr3010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3010[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3010[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 yyr3010 || yy2arr3010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3010[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3010[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 yyr3010 || yy2arr3010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3010[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3010[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 yyr3010 || yy2arr3010 { 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 yym3017 := z.DecBinary() _ = yym3017 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3018 := r.ContainerType() if yyct3018 == codecSelferValueTypeMap1234 { yyl3018 := r.ReadMapStart() if yyl3018 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3018, d) } } else if yyct3018 == codecSelferValueTypeArray1234 { yyl3018 := r.ReadArrayStart() if yyl3018 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3018, 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 yys3019Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3019Slc var yyhl3019 bool = l >= 0 for yyj3019 := 0; ; yyj3019++ { if yyhl3019 { if yyj3019 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3019Slc = r.DecodeBytes(yys3019Slc, true, true) yys3019 := string(yys3019Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3019 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv3021 := &x.Max yyv3021.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv3022 := &x.Min yyv3022.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv3023 := &x.Default yyv3023.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3024 := &x.DefaultRequest yyv3024.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3025 := &x.MaxLimitRequestRatio yyv3025.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3019) } // end switch yys3019 } // end for yyj3019 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 yyj3026 int var yyb3026 bool var yyhl3026 bool = l >= 0 yyj3026++ if yyhl3026 { yyb3026 = yyj3026 > l } else { yyb3026 = r.CheckBreak() } if yyb3026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj3026++ if yyhl3026 { yyb3026 = yyj3026 > l } else { yyb3026 = r.CheckBreak() } if yyb3026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv3028 := &x.Max yyv3028.CodecDecodeSelf(d) } yyj3026++ if yyhl3026 { yyb3026 = yyj3026 > l } else { yyb3026 = r.CheckBreak() } if yyb3026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv3029 := &x.Min yyv3029.CodecDecodeSelf(d) } yyj3026++ if yyhl3026 { yyb3026 = yyj3026 > l } else { yyb3026 = r.CheckBreak() } if yyb3026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv3030 := &x.Default yyv3030.CodecDecodeSelf(d) } yyj3026++ if yyhl3026 { yyb3026 = yyj3026 > l } else { yyb3026 = r.CheckBreak() } if yyb3026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3031 := &x.DefaultRequest yyv3031.CodecDecodeSelf(d) } yyj3026++ if yyhl3026 { yyb3026 = yyj3026 > l } else { yyb3026 = r.CheckBreak() } if yyb3026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3032 := &x.MaxLimitRequestRatio yyv3032.CodecDecodeSelf(d) } for { yyj3026++ if yyhl3026 { yyb3026 = yyj3026 > l } else { yyb3026 = r.CheckBreak() } if yyb3026 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3026-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 { yym3033 := z.EncBinary() _ = yym3033 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3034 := !z.EncBinary() yy2arr3034 := z.EncBasicHandle().StructToArray var yyq3034 [1]bool _, _, _ = yysep3034, yyq3034, yy2arr3034 const yyr3034 bool = false var yynn3034 int if yyr3034 || yy2arr3034 { r.EncodeArrayStart(1) } else { yynn3034 = 1 for _, b := range yyq3034 { if b { yynn3034++ } } r.EncodeMapStart(yynn3034) yynn3034 = 0 } if yyr3034 || yy2arr3034 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym3036 := z.EncBinary() _ = yym3036 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 { yym3037 := z.EncBinary() _ = yym3037 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr3034 || yy2arr3034 { 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 yym3038 := z.DecBinary() _ = yym3038 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3039 := r.ContainerType() if yyct3039 == codecSelferValueTypeMap1234 { yyl3039 := r.ReadMapStart() if yyl3039 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3039, d) } } else if yyct3039 == codecSelferValueTypeArray1234 { yyl3039 := r.ReadArrayStart() if yyl3039 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3039, 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 yys3040Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3040Slc var yyhl3040 bool = l >= 0 for yyj3040 := 0; ; yyj3040++ { if yyhl3040 { if yyj3040 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3040Slc = r.DecodeBytes(yys3040Slc, true, true) yys3040 := string(yys3040Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3040 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3041 := &x.Limits yym3042 := z.DecBinary() _ = yym3042 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3041), d) } } default: z.DecStructFieldNotFound(-1, yys3040) } // end switch yys3040 } // end for yyj3040 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 yyj3043 int var yyb3043 bool var yyhl3043 bool = l >= 0 yyj3043++ if yyhl3043 { yyb3043 = yyj3043 > l } else { yyb3043 = r.CheckBreak() } if yyb3043 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3044 := &x.Limits yym3045 := z.DecBinary() _ = yym3045 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3044), d) } } for { yyj3043++ if yyhl3043 { yyb3043 = yyj3043 > l } else { yyb3043 = r.CheckBreak() } if yyb3043 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3043-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 { yym3046 := z.EncBinary() _ = yym3046 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3047 := !z.EncBinary() yy2arr3047 := z.EncBasicHandle().StructToArray var yyq3047 [4]bool _, _, _ = yysep3047, yyq3047, yy2arr3047 const yyr3047 bool = false yyq3047[0] = x.Kind != "" yyq3047[1] = x.APIVersion != "" yyq3047[2] = true yyq3047[3] = true var yynn3047 int if yyr3047 || yy2arr3047 { r.EncodeArrayStart(4) } else { yynn3047 = 0 for _, b := range yyq3047 { if b { yynn3047++ } } r.EncodeMapStart(yynn3047) yynn3047 = 0 } if yyr3047 || yy2arr3047 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3047[0] { yym3049 := z.EncBinary() _ = yym3049 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3047[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3050 := z.EncBinary() _ = yym3050 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3047 || yy2arr3047 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3047[1] { yym3052 := z.EncBinary() _ = yym3052 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3047[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3053 := z.EncBinary() _ = yym3053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3047 || yy2arr3047 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3047[2] { yy3055 := &x.ObjectMeta yy3055.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3047[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3056 := &x.ObjectMeta yy3056.CodecEncodeSelf(e) } } if yyr3047 || yy2arr3047 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3047[3] { yy3058 := &x.Spec yy3058.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3047[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3059 := &x.Spec yy3059.CodecEncodeSelf(e) } } if yyr3047 || yy2arr3047 { 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 yym3060 := z.DecBinary() _ = yym3060 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3061 := r.ContainerType() if yyct3061 == codecSelferValueTypeMap1234 { yyl3061 := r.ReadMapStart() if yyl3061 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3061, d) } } else if yyct3061 == codecSelferValueTypeArray1234 { yyl3061 := r.ReadArrayStart() if yyl3061 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3061, 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 yys3062Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3062Slc var yyhl3062 bool = l >= 0 for yyj3062 := 0; ; yyj3062++ { if yyhl3062 { if yyj3062 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3062Slc = r.DecodeBytes(yys3062Slc, true, true) yys3062 := string(yys3062Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3062 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3065 := &x.ObjectMeta yyv3065.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3066 := &x.Spec yyv3066.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3062) } // end switch yys3062 } // end for yyj3062 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 yyj3067 int var yyb3067 bool var yyhl3067 bool = l >= 0 yyj3067++ if yyhl3067 { yyb3067 = yyj3067 > l } else { yyb3067 = r.CheckBreak() } if yyb3067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3067++ if yyhl3067 { yyb3067 = yyj3067 > l } else { yyb3067 = r.CheckBreak() } if yyb3067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3067++ if yyhl3067 { yyb3067 = yyj3067 > l } else { yyb3067 = r.CheckBreak() } if yyb3067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3070 := &x.ObjectMeta yyv3070.CodecDecodeSelf(d) } yyj3067++ if yyhl3067 { yyb3067 = yyj3067 > l } else { yyb3067 = r.CheckBreak() } if yyb3067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3071 := &x.Spec yyv3071.CodecDecodeSelf(d) } for { yyj3067++ if yyhl3067 { yyb3067 = yyj3067 > l } else { yyb3067 = r.CheckBreak() } if yyb3067 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3067-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 { yym3072 := z.EncBinary() _ = yym3072 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3073 := !z.EncBinary() yy2arr3073 := z.EncBasicHandle().StructToArray var yyq3073 [4]bool _, _, _ = yysep3073, yyq3073, yy2arr3073 const yyr3073 bool = false yyq3073[0] = x.Kind != "" yyq3073[1] = x.APIVersion != "" yyq3073[2] = true var yynn3073 int if yyr3073 || yy2arr3073 { r.EncodeArrayStart(4) } else { yynn3073 = 1 for _, b := range yyq3073 { if b { yynn3073++ } } r.EncodeMapStart(yynn3073) yynn3073 = 0 } if yyr3073 || yy2arr3073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3073[0] { yym3075 := z.EncBinary() _ = yym3075 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3073[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3076 := z.EncBinary() _ = yym3076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3073 || yy2arr3073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3073[1] { yym3078 := z.EncBinary() _ = yym3078 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3073[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3079 := z.EncBinary() _ = yym3079 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3073 || yy2arr3073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3073[2] { yy3081 := &x.ListMeta yym3082 := z.EncBinary() _ = yym3082 if false { } else if z.HasExtensions() && z.EncExt(yy3081) { } else { z.EncFallback(yy3081) } } else { r.EncodeNil() } } else { if yyq3073[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3083 := &x.ListMeta yym3084 := z.EncBinary() _ = yym3084 if false { } else if z.HasExtensions() && z.EncExt(yy3083) { } else { z.EncFallback(yy3083) } } } if yyr3073 || yy2arr3073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3086 := z.EncBinary() _ = yym3086 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 { yym3087 := z.EncBinary() _ = yym3087 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr3073 || yy2arr3073 { 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 yym3088 := z.DecBinary() _ = yym3088 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3089 := r.ContainerType() if yyct3089 == codecSelferValueTypeMap1234 { yyl3089 := r.ReadMapStart() if yyl3089 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3089, d) } } else if yyct3089 == codecSelferValueTypeArray1234 { yyl3089 := r.ReadArrayStart() if yyl3089 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3089, 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 yys3090Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3090Slc var yyhl3090 bool = l >= 0 for yyj3090 := 0; ; yyj3090++ { if yyhl3090 { if yyj3090 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3090Slc = r.DecodeBytes(yys3090Slc, true, true) yys3090 := string(yys3090Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3090 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3093 := &x.ListMeta yym3094 := z.DecBinary() _ = yym3094 if false { } else if z.HasExtensions() && z.DecExt(yyv3093) { } else { z.DecFallback(yyv3093, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3095 := &x.Items yym3096 := z.DecBinary() _ = yym3096 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3095), d) } } default: z.DecStructFieldNotFound(-1, yys3090) } // end switch yys3090 } // end for yyj3090 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 yyj3097 int var yyb3097 bool var yyhl3097 bool = l >= 0 yyj3097++ if yyhl3097 { yyb3097 = yyj3097 > l } else { yyb3097 = r.CheckBreak() } if yyb3097 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3097++ if yyhl3097 { yyb3097 = yyj3097 > l } else { yyb3097 = r.CheckBreak() } if yyb3097 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3097++ if yyhl3097 { yyb3097 = yyj3097 > l } else { yyb3097 = r.CheckBreak() } if yyb3097 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3100 := &x.ListMeta yym3101 := z.DecBinary() _ = yym3101 if false { } else if z.HasExtensions() && z.DecExt(yyv3100) { } else { z.DecFallback(yyv3100, false) } } yyj3097++ if yyhl3097 { yyb3097 = yyj3097 > l } else { yyb3097 = r.CheckBreak() } if yyb3097 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3102 := &x.Items yym3103 := z.DecBinary() _ = yym3103 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3102), d) } } for { yyj3097++ if yyhl3097 { yyb3097 = yyj3097 > l } else { yyb3097 = r.CheckBreak() } if yyb3097 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3097-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 { yym3104 := z.EncBinary() _ = yym3104 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3105 := !z.EncBinary() yy2arr3105 := z.EncBasicHandle().StructToArray var yyq3105 [1]bool _, _, _ = yysep3105, yyq3105, yy2arr3105 const yyr3105 bool = false yyq3105[0] = len(x.Hard) != 0 var yynn3105 int if yyr3105 || yy2arr3105 { r.EncodeArrayStart(1) } else { yynn3105 = 0 for _, b := range yyq3105 { if b { yynn3105++ } } r.EncodeMapStart(yynn3105) yynn3105 = 0 } if yyr3105 || yy2arr3105 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3105[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3105[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 yyr3105 || yy2arr3105 { 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 yym3107 := z.DecBinary() _ = yym3107 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3108 := r.ContainerType() if yyct3108 == codecSelferValueTypeMap1234 { yyl3108 := r.ReadMapStart() if yyl3108 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3108, d) } } else if yyct3108 == codecSelferValueTypeArray1234 { yyl3108 := r.ReadArrayStart() if yyl3108 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3108, 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 yys3109Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3109Slc var yyhl3109 bool = l >= 0 for yyj3109 := 0; ; yyj3109++ { if yyhl3109 { if yyj3109 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3109Slc = r.DecodeBytes(yys3109Slc, true, true) yys3109 := string(yys3109Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3109 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3110 := &x.Hard yyv3110.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3109) } // end switch yys3109 } // end for yyj3109 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 yyj3111 int var yyb3111 bool var yyhl3111 bool = l >= 0 yyj3111++ if yyhl3111 { yyb3111 = yyj3111 > l } else { yyb3111 = r.CheckBreak() } if yyb3111 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3112 := &x.Hard yyv3112.CodecDecodeSelf(d) } for { yyj3111++ if yyhl3111 { yyb3111 = yyj3111 > l } else { yyb3111 = r.CheckBreak() } if yyb3111 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3111-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 { yym3113 := z.EncBinary() _ = yym3113 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3114 := !z.EncBinary() yy2arr3114 := z.EncBasicHandle().StructToArray var yyq3114 [2]bool _, _, _ = yysep3114, yyq3114, yy2arr3114 const yyr3114 bool = false yyq3114[0] = len(x.Hard) != 0 yyq3114[1] = len(x.Used) != 0 var yynn3114 int if yyr3114 || yy2arr3114 { r.EncodeArrayStart(2) } else { yynn3114 = 0 for _, b := range yyq3114 { if b { yynn3114++ } } r.EncodeMapStart(yynn3114) yynn3114 = 0 } if yyr3114 || yy2arr3114 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3114[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3114[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 yyr3114 || yy2arr3114 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3114[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3114[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 yyr3114 || yy2arr3114 { 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 yym3117 := z.DecBinary() _ = yym3117 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3118 := r.ContainerType() if yyct3118 == codecSelferValueTypeMap1234 { yyl3118 := r.ReadMapStart() if yyl3118 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3118, d) } } else if yyct3118 == codecSelferValueTypeArray1234 { yyl3118 := r.ReadArrayStart() if yyl3118 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3118, 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 yys3119Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3119Slc var yyhl3119 bool = l >= 0 for yyj3119 := 0; ; yyj3119++ { if yyhl3119 { if yyj3119 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3119Slc = r.DecodeBytes(yys3119Slc, true, true) yys3119 := string(yys3119Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3119 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3120 := &x.Hard yyv3120.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv3121 := &x.Used yyv3121.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3119) } // end switch yys3119 } // end for yyj3119 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 yyj3122 int var yyb3122 bool var yyhl3122 bool = l >= 0 yyj3122++ if yyhl3122 { yyb3122 = yyj3122 > l } else { yyb3122 = r.CheckBreak() } if yyb3122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3123 := &x.Hard yyv3123.CodecDecodeSelf(d) } yyj3122++ if yyhl3122 { yyb3122 = yyj3122 > l } else { yyb3122 = r.CheckBreak() } if yyb3122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv3124 := &x.Used yyv3124.CodecDecodeSelf(d) } for { yyj3122++ if yyhl3122 { yyb3122 = yyj3122 > l } else { yyb3122 = r.CheckBreak() } if yyb3122 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3122-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 { yym3125 := z.EncBinary() _ = yym3125 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3126 := !z.EncBinary() yy2arr3126 := z.EncBasicHandle().StructToArray var yyq3126 [5]bool _, _, _ = yysep3126, yyq3126, yy2arr3126 const yyr3126 bool = false yyq3126[0] = x.Kind != "" yyq3126[1] = x.APIVersion != "" yyq3126[2] = true yyq3126[3] = true yyq3126[4] = true var yynn3126 int if yyr3126 || yy2arr3126 { r.EncodeArrayStart(5) } else { yynn3126 = 0 for _, b := range yyq3126 { if b { yynn3126++ } } r.EncodeMapStart(yynn3126) yynn3126 = 0 } if yyr3126 || yy2arr3126 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3126[0] { yym3128 := z.EncBinary() _ = yym3128 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3126[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3129 := z.EncBinary() _ = yym3129 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3126 || yy2arr3126 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3126[1] { yym3131 := z.EncBinary() _ = yym3131 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3126[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3132 := z.EncBinary() _ = yym3132 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3126 || yy2arr3126 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3126[2] { yy3134 := &x.ObjectMeta yy3134.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3126[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3135 := &x.ObjectMeta yy3135.CodecEncodeSelf(e) } } if yyr3126 || yy2arr3126 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3126[3] { yy3137 := &x.Spec yy3137.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3126[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3138 := &x.Spec yy3138.CodecEncodeSelf(e) } } if yyr3126 || yy2arr3126 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3126[4] { yy3140 := &x.Status yy3140.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3126[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3141 := &x.Status yy3141.CodecEncodeSelf(e) } } if yyr3126 || yy2arr3126 { 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 yym3142 := z.DecBinary() _ = yym3142 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3143 := r.ContainerType() if yyct3143 == codecSelferValueTypeMap1234 { yyl3143 := r.ReadMapStart() if yyl3143 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3143, d) } } else if yyct3143 == codecSelferValueTypeArray1234 { yyl3143 := r.ReadArrayStart() if yyl3143 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3143, 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 yys3144Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3144Slc var yyhl3144 bool = l >= 0 for yyj3144 := 0; ; yyj3144++ { if yyhl3144 { if yyj3144 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3144Slc = r.DecodeBytes(yys3144Slc, true, true) yys3144 := string(yys3144Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3144 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3147 := &x.ObjectMeta yyv3147.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3148 := &x.Spec yyv3148.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3149 := &x.Status yyv3149.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3144) } // end switch yys3144 } // end for yyj3144 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 yyj3150 int var yyb3150 bool var yyhl3150 bool = l >= 0 yyj3150++ if yyhl3150 { yyb3150 = yyj3150 > l } else { yyb3150 = r.CheckBreak() } if yyb3150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3150++ if yyhl3150 { yyb3150 = yyj3150 > l } else { yyb3150 = r.CheckBreak() } if yyb3150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3150++ if yyhl3150 { yyb3150 = yyj3150 > l } else { yyb3150 = r.CheckBreak() } if yyb3150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3153 := &x.ObjectMeta yyv3153.CodecDecodeSelf(d) } yyj3150++ if yyhl3150 { yyb3150 = yyj3150 > l } else { yyb3150 = r.CheckBreak() } if yyb3150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3154 := &x.Spec yyv3154.CodecDecodeSelf(d) } yyj3150++ if yyhl3150 { yyb3150 = yyj3150 > l } else { yyb3150 = r.CheckBreak() } if yyb3150 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3155 := &x.Status yyv3155.CodecDecodeSelf(d) } for { yyj3150++ if yyhl3150 { yyb3150 = yyj3150 > l } else { yyb3150 = r.CheckBreak() } if yyb3150 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3150-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 { yym3156 := z.EncBinary() _ = yym3156 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3157 := !z.EncBinary() yy2arr3157 := z.EncBasicHandle().StructToArray var yyq3157 [4]bool _, _, _ = yysep3157, yyq3157, yy2arr3157 const yyr3157 bool = false yyq3157[0] = x.Kind != "" yyq3157[1] = x.APIVersion != "" yyq3157[2] = true var yynn3157 int if yyr3157 || yy2arr3157 { r.EncodeArrayStart(4) } else { yynn3157 = 1 for _, b := range yyq3157 { if b { yynn3157++ } } r.EncodeMapStart(yynn3157) yynn3157 = 0 } if yyr3157 || yy2arr3157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3157[0] { yym3159 := z.EncBinary() _ = yym3159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3157[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3160 := z.EncBinary() _ = yym3160 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3157 || yy2arr3157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3157[1] { yym3162 := z.EncBinary() _ = yym3162 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3157[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3163 := z.EncBinary() _ = yym3163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3157 || yy2arr3157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3157[2] { yy3165 := &x.ListMeta yym3166 := z.EncBinary() _ = yym3166 if false { } else if z.HasExtensions() && z.EncExt(yy3165) { } else { z.EncFallback(yy3165) } } else { r.EncodeNil() } } else { if yyq3157[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3167 := &x.ListMeta yym3168 := z.EncBinary() _ = yym3168 if false { } else if z.HasExtensions() && z.EncExt(yy3167) { } else { z.EncFallback(yy3167) } } } if yyr3157 || yy2arr3157 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3170 := z.EncBinary() _ = yym3170 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 { yym3171 := z.EncBinary() _ = yym3171 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr3157 || yy2arr3157 { 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 yym3172 := z.DecBinary() _ = yym3172 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3173 := r.ContainerType() if yyct3173 == codecSelferValueTypeMap1234 { yyl3173 := r.ReadMapStart() if yyl3173 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3173, d) } } else if yyct3173 == codecSelferValueTypeArray1234 { yyl3173 := r.ReadArrayStart() if yyl3173 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3173, 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 yys3174Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3174Slc var yyhl3174 bool = l >= 0 for yyj3174 := 0; ; yyj3174++ { if yyhl3174 { if yyj3174 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3174Slc = r.DecodeBytes(yys3174Slc, true, true) yys3174 := string(yys3174Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3174 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3177 := &x.ListMeta yym3178 := z.DecBinary() _ = yym3178 if false { } else if z.HasExtensions() && z.DecExt(yyv3177) { } else { z.DecFallback(yyv3177, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3179 := &x.Items yym3180 := z.DecBinary() _ = yym3180 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3179), d) } } default: z.DecStructFieldNotFound(-1, yys3174) } // end switch yys3174 } // end for yyj3174 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 yyj3181 int var yyb3181 bool var yyhl3181 bool = l >= 0 yyj3181++ if yyhl3181 { yyb3181 = yyj3181 > l } else { yyb3181 = r.CheckBreak() } if yyb3181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3181++ if yyhl3181 { yyb3181 = yyj3181 > l } else { yyb3181 = r.CheckBreak() } if yyb3181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3181++ if yyhl3181 { yyb3181 = yyj3181 > l } else { yyb3181 = r.CheckBreak() } if yyb3181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3184 := &x.ListMeta yym3185 := z.DecBinary() _ = yym3185 if false { } else if z.HasExtensions() && z.DecExt(yyv3184) { } else { z.DecFallback(yyv3184, false) } } yyj3181++ if yyhl3181 { yyb3181 = yyj3181 > l } else { yyb3181 = r.CheckBreak() } if yyb3181 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3186 := &x.Items yym3187 := z.DecBinary() _ = yym3187 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3186), d) } } for { yyj3181++ if yyhl3181 { yyb3181 = yyj3181 > l } else { yyb3181 = r.CheckBreak() } if yyb3181 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3181-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 { yym3188 := z.EncBinary() _ = yym3188 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3189 := !z.EncBinary() yy2arr3189 := z.EncBasicHandle().StructToArray var yyq3189 [5]bool _, _, _ = yysep3189, yyq3189, yy2arr3189 const yyr3189 bool = false yyq3189[0] = x.Kind != "" yyq3189[1] = x.APIVersion != "" yyq3189[2] = true yyq3189[3] = len(x.Data) != 0 yyq3189[4] = x.Type != "" var yynn3189 int if yyr3189 || yy2arr3189 { r.EncodeArrayStart(5) } else { yynn3189 = 0 for _, b := range yyq3189 { if b { yynn3189++ } } r.EncodeMapStart(yynn3189) yynn3189 = 0 } if yyr3189 || yy2arr3189 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3189[0] { yym3191 := z.EncBinary() _ = yym3191 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3189[0] { 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 yyr3189 || yy2arr3189 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3189[1] { yym3194 := z.EncBinary() _ = yym3194 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3189[1] { 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 yyr3189 || yy2arr3189 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3189[2] { yy3197 := &x.ObjectMeta yy3197.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3189[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3198 := &x.ObjectMeta yy3198.CodecEncodeSelf(e) } } if yyr3189 || yy2arr3189 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3189[3] { if x.Data == nil { r.EncodeNil() } else { yym3200 := z.EncBinary() _ = yym3200 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq3189[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3201 := z.EncBinary() _ = yym3201 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr3189 || yy2arr3189 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3189[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3189[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3189 || yy2arr3189 { 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 yym3203 := z.DecBinary() _ = yym3203 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3204 := r.ContainerType() if yyct3204 == codecSelferValueTypeMap1234 { yyl3204 := r.ReadMapStart() if yyl3204 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3204, d) } } else if yyct3204 == codecSelferValueTypeArray1234 { yyl3204 := r.ReadArrayStart() if yyl3204 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3204, 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 yys3205Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3205Slc var yyhl3205 bool = l >= 0 for yyj3205 := 0; ; yyj3205++ { if yyhl3205 { if yyj3205 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3205Slc = r.DecodeBytes(yys3205Slc, true, true) yys3205 := string(yys3205Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3205 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3208 := &x.ObjectMeta yyv3208.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3209 := &x.Data yym3210 := z.DecBinary() _ = yym3210 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3209), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3205) } // end switch yys3205 } // end for yyj3205 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 yyj3212 int var yyb3212 bool var yyhl3212 bool = l >= 0 yyj3212++ if yyhl3212 { yyb3212 = yyj3212 > l } else { yyb3212 = r.CheckBreak() } if yyb3212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3212++ if yyhl3212 { yyb3212 = yyj3212 > l } else { yyb3212 = r.CheckBreak() } if yyb3212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3212++ if yyhl3212 { yyb3212 = yyj3212 > l } else { yyb3212 = r.CheckBreak() } if yyb3212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3215 := &x.ObjectMeta yyv3215.CodecDecodeSelf(d) } yyj3212++ if yyhl3212 { yyb3212 = yyj3212 > l } else { yyb3212 = r.CheckBreak() } if yyb3212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3216 := &x.Data yym3217 := z.DecBinary() _ = yym3217 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3216), d) } } yyj3212++ if yyhl3212 { yyb3212 = yyj3212 > l } else { yyb3212 = r.CheckBreak() } if yyb3212 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } for { yyj3212++ if yyhl3212 { yyb3212 = yyj3212 > l } else { yyb3212 = r.CheckBreak() } if yyb3212 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3212-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3219 := z.EncBinary() _ = yym3219 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 yym3220 := z.DecBinary() _ = yym3220 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 { yym3221 := z.EncBinary() _ = yym3221 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3222 := !z.EncBinary() yy2arr3222 := z.EncBasicHandle().StructToArray var yyq3222 [4]bool _, _, _ = yysep3222, yyq3222, yy2arr3222 const yyr3222 bool = false yyq3222[0] = x.Kind != "" yyq3222[1] = x.APIVersion != "" yyq3222[2] = true var yynn3222 int if yyr3222 || yy2arr3222 { r.EncodeArrayStart(4) } else { yynn3222 = 1 for _, b := range yyq3222 { if b { yynn3222++ } } r.EncodeMapStart(yynn3222) yynn3222 = 0 } if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3222[0] { yym3224 := z.EncBinary() _ = yym3224 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3222[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3225 := z.EncBinary() _ = yym3225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3222[1] { yym3227 := z.EncBinary() _ = yym3227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3222[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3228 := z.EncBinary() _ = yym3228 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3222[2] { yy3230 := &x.ListMeta yym3231 := z.EncBinary() _ = yym3231 if false { } else if z.HasExtensions() && z.EncExt(yy3230) { } else { z.EncFallback(yy3230) } } else { r.EncodeNil() } } else { if yyq3222[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3232 := &x.ListMeta yym3233 := z.EncBinary() _ = yym3233 if false { } else if z.HasExtensions() && z.EncExt(yy3232) { } else { z.EncFallback(yy3232) } } } if yyr3222 || yy2arr3222 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3235 := z.EncBinary() _ = yym3235 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 { yym3236 := z.EncBinary() _ = yym3236 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr3222 || yy2arr3222 { 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 yym3237 := z.DecBinary() _ = yym3237 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3238 := r.ContainerType() if yyct3238 == codecSelferValueTypeMap1234 { yyl3238 := r.ReadMapStart() if yyl3238 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3238, d) } } else if yyct3238 == codecSelferValueTypeArray1234 { yyl3238 := r.ReadArrayStart() if yyl3238 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3238, 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 yys3239Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3239Slc var yyhl3239 bool = l >= 0 for yyj3239 := 0; ; yyj3239++ { if yyhl3239 { if yyj3239 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3239Slc = r.DecodeBytes(yys3239Slc, true, true) yys3239 := string(yys3239Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3239 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3242 := &x.ListMeta yym3243 := z.DecBinary() _ = yym3243 if false { } else if z.HasExtensions() && z.DecExt(yyv3242) { } else { z.DecFallback(yyv3242, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3244 := &x.Items yym3245 := z.DecBinary() _ = yym3245 if false { } else { h.decSliceSecret((*[]Secret)(yyv3244), d) } } default: z.DecStructFieldNotFound(-1, yys3239) } // end switch yys3239 } // end for yyj3239 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 yyj3246 int var yyb3246 bool var yyhl3246 bool = l >= 0 yyj3246++ if yyhl3246 { yyb3246 = yyj3246 > l } else { yyb3246 = r.CheckBreak() } if yyb3246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3246++ if yyhl3246 { yyb3246 = yyj3246 > l } else { yyb3246 = r.CheckBreak() } if yyb3246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3246++ if yyhl3246 { yyb3246 = yyj3246 > l } else { yyb3246 = r.CheckBreak() } if yyb3246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3249 := &x.ListMeta yym3250 := z.DecBinary() _ = yym3250 if false { } else if z.HasExtensions() && z.DecExt(yyv3249) { } else { z.DecFallback(yyv3249, false) } } yyj3246++ if yyhl3246 { yyb3246 = yyj3246 > l } else { yyb3246 = r.CheckBreak() } if yyb3246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3251 := &x.Items yym3252 := z.DecBinary() _ = yym3252 if false { } else { h.decSliceSecret((*[]Secret)(yyv3251), d) } } for { yyj3246++ if yyhl3246 { yyb3246 = yyj3246 > l } else { yyb3246 = r.CheckBreak() } if yyb3246 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3246-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3253 := z.EncBinary() _ = yym3253 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 yym3254 := z.DecBinary() _ = yym3254 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 yym3255 := z.EncBinary() _ = yym3255 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 yym3256 := z.DecBinary() _ = yym3256 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 { yym3257 := z.EncBinary() _ = yym3257 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3258 := !z.EncBinary() yy2arr3258 := z.EncBasicHandle().StructToArray var yyq3258 [4]bool _, _, _ = yysep3258, yyq3258, yy2arr3258 const yyr3258 bool = false yyq3258[2] = x.Message != "" yyq3258[3] = x.Error != "" var yynn3258 int if yyr3258 || yy2arr3258 { r.EncodeArrayStart(4) } else { yynn3258 = 2 for _, b := range yyq3258 { if b { yynn3258++ } } r.EncodeMapStart(yynn3258) yynn3258 = 0 } if yyr3258 || yy2arr3258 { 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 yyr3258 || yy2arr3258 { 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 yyr3258 || yy2arr3258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3258[2] { yym3262 := z.EncBinary() _ = yym3262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3258[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3263 := z.EncBinary() _ = yym3263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3258 || yy2arr3258 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3258[3] { yym3265 := z.EncBinary() _ = yym3265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3258[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3266 := z.EncBinary() _ = yym3266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr3258 || yy2arr3258 { 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 yym3267 := z.DecBinary() _ = yym3267 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3268 := r.ContainerType() if yyct3268 == codecSelferValueTypeMap1234 { yyl3268 := r.ReadMapStart() if yyl3268 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3268, d) } } else if yyct3268 == codecSelferValueTypeArray1234 { yyl3268 := r.ReadArrayStart() if yyl3268 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3268, 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 yys3269Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3269Slc var yyhl3269 bool = l >= 0 for yyj3269 := 0; ; yyj3269++ { if yyhl3269 { if yyj3269 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3269Slc = r.DecodeBytes(yys3269Slc, true, true) yys3269 := string(yys3269Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3269 { 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, yys3269) } // end switch yys3269 } // end for yyj3269 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 yyj3274 int var yyb3274 bool var yyhl3274 bool = l >= 0 yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3274-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 { yym3279 := z.EncBinary() _ = yym3279 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3280 := !z.EncBinary() yy2arr3280 := z.EncBasicHandle().StructToArray var yyq3280 [4]bool _, _, _ = yysep3280, yyq3280, yy2arr3280 const yyr3280 bool = false yyq3280[0] = x.Kind != "" yyq3280[1] = x.APIVersion != "" yyq3280[2] = true yyq3280[3] = len(x.Conditions) != 0 var yynn3280 int if yyr3280 || yy2arr3280 { r.EncodeArrayStart(4) } else { yynn3280 = 0 for _, b := range yyq3280 { if b { yynn3280++ } } r.EncodeMapStart(yynn3280) yynn3280 = 0 } if yyr3280 || yy2arr3280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3280[0] { yym3282 := z.EncBinary() _ = yym3282 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3280[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3283 := z.EncBinary() _ = yym3283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3280 || yy2arr3280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3280[1] { yym3285 := z.EncBinary() _ = yym3285 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3280[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3286 := z.EncBinary() _ = yym3286 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3280 || yy2arr3280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3280[2] { yy3288 := &x.ObjectMeta yy3288.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3280[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3289 := &x.ObjectMeta yy3289.CodecEncodeSelf(e) } } if yyr3280 || yy2arr3280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3280[3] { if x.Conditions == nil { r.EncodeNil() } else { yym3291 := z.EncBinary() _ = yym3291 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq3280[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym3292 := z.EncBinary() _ = yym3292 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr3280 || yy2arr3280 { 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 yym3293 := z.DecBinary() _ = yym3293 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3294 := r.ContainerType() if yyct3294 == codecSelferValueTypeMap1234 { yyl3294 := r.ReadMapStart() if yyl3294 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3294, d) } } else if yyct3294 == codecSelferValueTypeArray1234 { yyl3294 := r.ReadArrayStart() if yyl3294 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3294, 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 yys3295Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3295Slc var yyhl3295 bool = l >= 0 for yyj3295 := 0; ; yyj3295++ { if yyhl3295 { if yyj3295 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3295Slc = r.DecodeBytes(yys3295Slc, true, true) yys3295 := string(yys3295Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3295 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3298 := &x.ObjectMeta yyv3298.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3299 := &x.Conditions yym3300 := z.DecBinary() _ = yym3300 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3299), d) } } default: z.DecStructFieldNotFound(-1, yys3295) } // end switch yys3295 } // end for yyj3295 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 yyj3301 int var yyb3301 bool var yyhl3301 bool = l >= 0 yyj3301++ if yyhl3301 { yyb3301 = yyj3301 > l } else { yyb3301 = r.CheckBreak() } if yyb3301 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3301++ if yyhl3301 { yyb3301 = yyj3301 > l } else { yyb3301 = r.CheckBreak() } if yyb3301 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3301++ if yyhl3301 { yyb3301 = yyj3301 > l } else { yyb3301 = r.CheckBreak() } if yyb3301 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3304 := &x.ObjectMeta yyv3304.CodecDecodeSelf(d) } yyj3301++ if yyhl3301 { yyb3301 = yyj3301 > l } else { yyb3301 = r.CheckBreak() } if yyb3301 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3305 := &x.Conditions yym3306 := z.DecBinary() _ = yym3306 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3305), d) } } for { yyj3301++ if yyhl3301 { yyb3301 = yyj3301 > l } else { yyb3301 = r.CheckBreak() } if yyb3301 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3301-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 { yym3307 := z.EncBinary() _ = yym3307 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3308 := !z.EncBinary() yy2arr3308 := z.EncBasicHandle().StructToArray var yyq3308 [4]bool _, _, _ = yysep3308, yyq3308, yy2arr3308 const yyr3308 bool = false yyq3308[0] = x.Kind != "" yyq3308[1] = x.APIVersion != "" yyq3308[2] = true var yynn3308 int if yyr3308 || yy2arr3308 { r.EncodeArrayStart(4) } else { yynn3308 = 1 for _, b := range yyq3308 { if b { yynn3308++ } } r.EncodeMapStart(yynn3308) yynn3308 = 0 } if yyr3308 || yy2arr3308 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3308[0] { yym3310 := z.EncBinary() _ = yym3310 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3308[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3311 := z.EncBinary() _ = yym3311 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3308 || yy2arr3308 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3308[1] { yym3313 := z.EncBinary() _ = yym3313 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3308[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3314 := z.EncBinary() _ = yym3314 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3308 || yy2arr3308 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3308[2] { yy3316 := &x.ListMeta yym3317 := z.EncBinary() _ = yym3317 if false { } else if z.HasExtensions() && z.EncExt(yy3316) { } else { z.EncFallback(yy3316) } } else { r.EncodeNil() } } else { if yyq3308[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3318 := &x.ListMeta yym3319 := z.EncBinary() _ = yym3319 if false { } else if z.HasExtensions() && z.EncExt(yy3318) { } else { z.EncFallback(yy3318) } } } if yyr3308 || yy2arr3308 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3321 := z.EncBinary() _ = yym3321 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 { yym3322 := z.EncBinary() _ = yym3322 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr3308 || yy2arr3308 { 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 yym3323 := z.DecBinary() _ = yym3323 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3324 := r.ContainerType() if yyct3324 == codecSelferValueTypeMap1234 { yyl3324 := r.ReadMapStart() if yyl3324 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3324, d) } } else if yyct3324 == codecSelferValueTypeArray1234 { yyl3324 := r.ReadArrayStart() if yyl3324 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3324, 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 yys3325Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3325Slc var yyhl3325 bool = l >= 0 for yyj3325 := 0; ; yyj3325++ { if yyhl3325 { if yyj3325 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3325Slc = r.DecodeBytes(yys3325Slc, true, true) yys3325 := string(yys3325Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3325 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3328 := &x.ListMeta yym3329 := z.DecBinary() _ = yym3329 if false { } else if z.HasExtensions() && z.DecExt(yyv3328) { } else { z.DecFallback(yyv3328, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3330 := &x.Items yym3331 := z.DecBinary() _ = yym3331 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3330), d) } } default: z.DecStructFieldNotFound(-1, yys3325) } // end switch yys3325 } // end for yyj3325 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 yyj3332 int var yyb3332 bool var yyhl3332 bool = l >= 0 yyj3332++ if yyhl3332 { yyb3332 = yyj3332 > l } else { yyb3332 = r.CheckBreak() } if yyb3332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3332++ if yyhl3332 { yyb3332 = yyj3332 > l } else { yyb3332 = r.CheckBreak() } if yyb3332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3332++ if yyhl3332 { yyb3332 = yyj3332 > l } else { yyb3332 = r.CheckBreak() } if yyb3332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3335 := &x.ListMeta yym3336 := z.DecBinary() _ = yym3336 if false { } else if z.HasExtensions() && z.DecExt(yyv3335) { } else { z.DecFallback(yyv3335, false) } } yyj3332++ if yyhl3332 { yyb3332 = yyj3332 > l } else { yyb3332 = r.CheckBreak() } if yyb3332 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3337 := &x.Items yym3338 := z.DecBinary() _ = yym3338 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3337), d) } } for { yyj3332++ if yyhl3332 { yyb3332 = yyj3332 > l } else { yyb3332 = r.CheckBreak() } if yyb3332 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3332-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 { yym3339 := z.EncBinary() _ = yym3339 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3340 := !z.EncBinary() yy2arr3340 := z.EncBasicHandle().StructToArray var yyq3340 [5]bool _, _, _ = yysep3340, yyq3340, yy2arr3340 const yyr3340 bool = false yyq3340[0] = x.Capabilities != nil yyq3340[1] = x.Privileged != nil yyq3340[2] = x.SELinuxOptions != nil yyq3340[3] = x.RunAsUser != nil yyq3340[4] = x.RunAsNonRoot != nil var yynn3340 int if yyr3340 || yy2arr3340 { r.EncodeArrayStart(5) } else { yynn3340 = 0 for _, b := range yyq3340 { if b { yynn3340++ } } r.EncodeMapStart(yynn3340) yynn3340 = 0 } if yyr3340 || yy2arr3340 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3340[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3340[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 yyr3340 || yy2arr3340 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3340[1] { if x.Privileged == nil { r.EncodeNil() } else { yy3343 := *x.Privileged yym3344 := z.EncBinary() _ = yym3344 if false { } else { r.EncodeBool(bool(yy3343)) } } } else { r.EncodeNil() } } else { if yyq3340[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy3345 := *x.Privileged yym3346 := z.EncBinary() _ = yym3346 if false { } else { r.EncodeBool(bool(yy3345)) } } } } if yyr3340 || yy2arr3340 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3340[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3340[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 yyr3340 || yy2arr3340 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3340[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy3349 := *x.RunAsUser yym3350 := z.EncBinary() _ = yym3350 if false { } else { r.EncodeInt(int64(yy3349)) } } } else { r.EncodeNil() } } else { if yyq3340[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy3351 := *x.RunAsUser yym3352 := z.EncBinary() _ = yym3352 if false { } else { r.EncodeInt(int64(yy3351)) } } } } if yyr3340 || yy2arr3340 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3340[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3354 := *x.RunAsNonRoot yym3355 := z.EncBinary() _ = yym3355 if false { } else { r.EncodeBool(bool(yy3354)) } } } else { r.EncodeNil() } } else { if yyq3340[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3356 := *x.RunAsNonRoot yym3357 := z.EncBinary() _ = yym3357 if false { } else { r.EncodeBool(bool(yy3356)) } } } } if yyr3340 || yy2arr3340 { 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 yym3358 := z.DecBinary() _ = yym3358 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3359 := r.ContainerType() if yyct3359 == codecSelferValueTypeMap1234 { yyl3359 := r.ReadMapStart() if yyl3359 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3359, d) } } else if yyct3359 == codecSelferValueTypeArray1234 { yyl3359 := r.ReadArrayStart() if yyl3359 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3359, 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 yys3360Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3360Slc var yyhl3360 bool = l >= 0 for yyj3360 := 0; ; yyj3360++ { if yyhl3360 { if yyj3360 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3360Slc = r.DecodeBytes(yys3360Slc, true, true) yys3360 := string(yys3360Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3360 { 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) } yym3363 := z.DecBinary() _ = yym3363 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) } yym3366 := z.DecBinary() _ = yym3366 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) } yym3368 := z.DecBinary() _ = yym3368 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3360) } // end switch yys3360 } // end for yyj3360 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 yyj3369 int var yyb3369 bool var yyhl3369 bool = l >= 0 yyj3369++ if yyhl3369 { yyb3369 = yyj3369 > l } else { yyb3369 = r.CheckBreak() } if yyb3369 { 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) } yyj3369++ if yyhl3369 { yyb3369 = yyj3369 > l } else { yyb3369 = r.CheckBreak() } if yyb3369 { 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) } yym3372 := z.DecBinary() _ = yym3372 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj3369++ if yyhl3369 { yyb3369 = yyj3369 > l } else { yyb3369 = r.CheckBreak() } if yyb3369 { 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) } yyj3369++ if yyhl3369 { yyb3369 = yyj3369 > l } else { yyb3369 = r.CheckBreak() } if yyb3369 { 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) } yym3375 := z.DecBinary() _ = yym3375 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj3369++ if yyhl3369 { yyb3369 = yyj3369 > l } else { yyb3369 = r.CheckBreak() } if yyb3369 { 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) } yym3377 := z.DecBinary() _ = yym3377 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } for { yyj3369++ if yyhl3369 { yyb3369 = yyj3369 > l } else { yyb3369 = r.CheckBreak() } if yyb3369 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3369-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 { yym3378 := z.EncBinary() _ = yym3378 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3379 := !z.EncBinary() yy2arr3379 := z.EncBasicHandle().StructToArray var yyq3379 [4]bool _, _, _ = yysep3379, yyq3379, yy2arr3379 const yyr3379 bool = false yyq3379[0] = x.User != "" yyq3379[1] = x.Role != "" yyq3379[2] = x.Type != "" yyq3379[3] = x.Level != "" var yynn3379 int if yyr3379 || yy2arr3379 { r.EncodeArrayStart(4) } else { yynn3379 = 0 for _, b := range yyq3379 { if b { yynn3379++ } } r.EncodeMapStart(yynn3379) yynn3379 = 0 } if yyr3379 || yy2arr3379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3379[0] { yym3381 := z.EncBinary() _ = yym3381 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3379[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3382 := z.EncBinary() _ = yym3382 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr3379 || yy2arr3379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3379[1] { yym3384 := z.EncBinary() _ = yym3384 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3379[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3385 := z.EncBinary() _ = yym3385 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr3379 || yy2arr3379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3379[2] { yym3387 := z.EncBinary() _ = yym3387 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3379[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3388 := z.EncBinary() _ = yym3388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3379 || yy2arr3379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3379[3] { yym3390 := z.EncBinary() _ = yym3390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3379[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3391 := z.EncBinary() _ = yym3391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr3379 || yy2arr3379 { 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 yym3392 := z.DecBinary() _ = yym3392 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3393 := r.ContainerType() if yyct3393 == codecSelferValueTypeMap1234 { yyl3393 := r.ReadMapStart() if yyl3393 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3393, d) } } else if yyct3393 == codecSelferValueTypeArray1234 { yyl3393 := r.ReadArrayStart() if yyl3393 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3393, 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 yys3394Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3394Slc var yyhl3394 bool = l >= 0 for yyj3394 := 0; ; yyj3394++ { if yyhl3394 { if yyj3394 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3394Slc = r.DecodeBytes(yys3394Slc, true, true) yys3394 := string(yys3394Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3394 { 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, yys3394) } // end switch yys3394 } // end for yyj3394 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 yyj3399 int var yyb3399 bool var yyhl3399 bool = l >= 0 yyj3399++ if yyhl3399 { yyb3399 = yyj3399 > l } else { yyb3399 = r.CheckBreak() } if yyb3399 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj3399++ if yyhl3399 { yyb3399 = yyj3399 > l } else { yyb3399 = r.CheckBreak() } if yyb3399 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj3399++ if yyhl3399 { yyb3399 = yyj3399 > l } else { yyb3399 = r.CheckBreak() } if yyb3399 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj3399++ if yyhl3399 { yyb3399 = yyj3399 > l } else { yyb3399 = r.CheckBreak() } if yyb3399 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj3399++ if yyhl3399 { yyb3399 = yyj3399 > l } else { yyb3399 = r.CheckBreak() } if yyb3399 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3399-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 { yym3404 := z.EncBinary() _ = yym3404 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3405 := !z.EncBinary() yy2arr3405 := z.EncBasicHandle().StructToArray var yyq3405 [5]bool _, _, _ = yysep3405, yyq3405, yy2arr3405 const yyr3405 bool = false yyq3405[0] = x.Kind != "" yyq3405[1] = x.APIVersion != "" yyq3405[2] = true var yynn3405 int if yyr3405 || yy2arr3405 { r.EncodeArrayStart(5) } else { yynn3405 = 2 for _, b := range yyq3405 { if b { yynn3405++ } } r.EncodeMapStart(yynn3405) yynn3405 = 0 } if yyr3405 || yy2arr3405 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3405[0] { yym3407 := z.EncBinary() _ = yym3407 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3405[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3408 := z.EncBinary() _ = yym3408 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3405 || yy2arr3405 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3405[1] { yym3410 := z.EncBinary() _ = yym3410 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3405[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3411 := z.EncBinary() _ = yym3411 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3405 || yy2arr3405 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3405[2] { yy3413 := &x.ObjectMeta yy3413.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3405[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3414 := &x.ObjectMeta yy3414.CodecEncodeSelf(e) } } if yyr3405 || yy2arr3405 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3416 := z.EncBinary() _ = yym3416 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) yym3417 := z.EncBinary() _ = yym3417 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr3405 || yy2arr3405 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym3419 := z.EncBinary() _ = yym3419 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 { yym3420 := z.EncBinary() _ = yym3420 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr3405 || yy2arr3405 { 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 yym3421 := z.DecBinary() _ = yym3421 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3422 := r.ContainerType() if yyct3422 == codecSelferValueTypeMap1234 { yyl3422 := r.ReadMapStart() if yyl3422 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3422, d) } } else if yyct3422 == codecSelferValueTypeArray1234 { yyl3422 := r.ReadArrayStart() if yyl3422 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3422, 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 yys3423Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3423Slc var yyhl3423 bool = l >= 0 for yyj3423 := 0; ; yyj3423++ { if yyhl3423 { if yyj3423 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3423Slc = r.DecodeBytes(yys3423Slc, true, true) yys3423 := string(yys3423Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3423 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3426 := &x.ObjectMeta yyv3426.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3428 := &x.Data yym3429 := z.DecBinary() _ = yym3429 if false { } else { *yyv3428 = r.DecodeBytes(*(*[]byte)(yyv3428), false, false) } } default: z.DecStructFieldNotFound(-1, yys3423) } // end switch yys3423 } // end for yyj3423 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 yyj3430 int var yyb3430 bool var yyhl3430 bool = l >= 0 yyj3430++ if yyhl3430 { yyb3430 = yyj3430 > l } else { yyb3430 = r.CheckBreak() } if yyb3430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3430++ if yyhl3430 { yyb3430 = yyj3430 > l } else { yyb3430 = r.CheckBreak() } if yyb3430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3430++ if yyhl3430 { yyb3430 = yyj3430 > l } else { yyb3430 = r.CheckBreak() } if yyb3430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3433 := &x.ObjectMeta yyv3433.CodecDecodeSelf(d) } yyj3430++ if yyhl3430 { yyb3430 = yyj3430 > l } else { yyb3430 = r.CheckBreak() } if yyb3430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj3430++ if yyhl3430 { yyb3430 = yyj3430 > l } else { yyb3430 = r.CheckBreak() } if yyb3430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3435 := &x.Data yym3436 := z.DecBinary() _ = yym3436 if false { } else { *yyv3435 = r.DecodeBytes(*(*[]byte)(yyv3435), false, false) } } for { yyj3430++ if yyhl3430 { yyb3430 = yyj3430 > l } else { yyb3430 = r.CheckBreak() } if yyb3430 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3430-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 _, yyv3437 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3437.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 yyv3438 := *v yyh3438, yyl3438 := z.DecSliceHelperStart() var yyc3438 bool if yyl3438 == 0 { if yyv3438 == nil { yyv3438 = []PersistentVolumeAccessMode{} yyc3438 = true } else if len(yyv3438) != 0 { yyv3438 = yyv3438[:0] yyc3438 = true } } else if yyl3438 > 0 { var yyrr3438, yyrl3438 int var yyrt3438 bool if yyl3438 > cap(yyv3438) { yyrl3438, yyrt3438 = z.DecInferLen(yyl3438, z.DecBasicHandle().MaxInitLen, 16) if yyrt3438 { if yyrl3438 <= cap(yyv3438) { yyv3438 = yyv3438[:yyrl3438] } else { yyv3438 = make([]PersistentVolumeAccessMode, yyrl3438) } } else { yyv3438 = make([]PersistentVolumeAccessMode, yyrl3438) } yyc3438 = true yyrr3438 = len(yyv3438) } else if yyl3438 != len(yyv3438) { yyv3438 = yyv3438[:yyl3438] yyc3438 = true } yyj3438 := 0 for ; yyj3438 < yyrr3438; yyj3438++ { yyh3438.ElemContainerState(yyj3438) if r.TryDecodeAsNil() { yyv3438[yyj3438] = "" } else { yyv3438[yyj3438] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt3438 { for ; yyj3438 < yyl3438; yyj3438++ { yyv3438 = append(yyv3438, "") yyh3438.ElemContainerState(yyj3438) if r.TryDecodeAsNil() { yyv3438[yyj3438] = "" } else { yyv3438[yyj3438] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj3438 := 0 for ; !r.CheckBreak(); yyj3438++ { if yyj3438 >= len(yyv3438) { yyv3438 = append(yyv3438, "") // var yyz3438 PersistentVolumeAccessMode yyc3438 = true } yyh3438.ElemContainerState(yyj3438) if yyj3438 < len(yyv3438) { if r.TryDecodeAsNil() { yyv3438[yyj3438] = "" } else { yyv3438[yyj3438] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3438 < len(yyv3438) { yyv3438 = yyv3438[:yyj3438] yyc3438 = true } else if yyj3438 == 0 && yyv3438 == nil { yyv3438 = []PersistentVolumeAccessMode{} yyc3438 = true } } yyh3438.End() if yyc3438 { *v = yyv3438 } } 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 _, yyv3442 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3443 := &yyv3442 yy3443.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 yyv3444 := *v yyh3444, yyl3444 := z.DecSliceHelperStart() var yyc3444 bool if yyl3444 == 0 { if yyv3444 == nil { yyv3444 = []PersistentVolume{} yyc3444 = true } else if len(yyv3444) != 0 { yyv3444 = yyv3444[:0] yyc3444 = true } } else if yyl3444 > 0 { var yyrr3444, yyrl3444 int var yyrt3444 bool if yyl3444 > cap(yyv3444) { yyrg3444 := len(yyv3444) > 0 yyv23444 := yyv3444 yyrl3444, yyrt3444 = z.DecInferLen(yyl3444, z.DecBasicHandle().MaxInitLen, 384) if yyrt3444 { if yyrl3444 <= cap(yyv3444) { yyv3444 = yyv3444[:yyrl3444] } else { yyv3444 = make([]PersistentVolume, yyrl3444) } } else { yyv3444 = make([]PersistentVolume, yyrl3444) } yyc3444 = true yyrr3444 = len(yyv3444) if yyrg3444 { copy(yyv3444, yyv23444) } } else if yyl3444 != len(yyv3444) { yyv3444 = yyv3444[:yyl3444] yyc3444 = true } yyj3444 := 0 for ; yyj3444 < yyrr3444; yyj3444++ { yyh3444.ElemContainerState(yyj3444) if r.TryDecodeAsNil() { yyv3444[yyj3444] = PersistentVolume{} } else { yyv3445 := &yyv3444[yyj3444] yyv3445.CodecDecodeSelf(d) } } if yyrt3444 { for ; yyj3444 < yyl3444; yyj3444++ { yyv3444 = append(yyv3444, PersistentVolume{}) yyh3444.ElemContainerState(yyj3444) if r.TryDecodeAsNil() { yyv3444[yyj3444] = PersistentVolume{} } else { yyv3446 := &yyv3444[yyj3444] yyv3446.CodecDecodeSelf(d) } } } } else { yyj3444 := 0 for ; !r.CheckBreak(); yyj3444++ { if yyj3444 >= len(yyv3444) { yyv3444 = append(yyv3444, PersistentVolume{}) // var yyz3444 PersistentVolume yyc3444 = true } yyh3444.ElemContainerState(yyj3444) if yyj3444 < len(yyv3444) { if r.TryDecodeAsNil() { yyv3444[yyj3444] = PersistentVolume{} } else { yyv3447 := &yyv3444[yyj3444] yyv3447.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3444 < len(yyv3444) { yyv3444 = yyv3444[:yyj3444] yyc3444 = true } else if yyj3444 == 0 && yyv3444 == nil { yyv3444 = []PersistentVolume{} yyc3444 = true } } yyh3444.End() if yyc3444 { *v = yyv3444 } } 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 _, yyv3448 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3449 := &yyv3448 yy3449.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 yyv3450 := *v yyh3450, yyl3450 := z.DecSliceHelperStart() var yyc3450 bool if yyl3450 == 0 { if yyv3450 == nil { yyv3450 = []PersistentVolumeClaim{} yyc3450 = true } else if len(yyv3450) != 0 { yyv3450 = yyv3450[:0] yyc3450 = true } } else if yyl3450 > 0 { var yyrr3450, yyrl3450 int var yyrt3450 bool if yyl3450 > cap(yyv3450) { yyrg3450 := len(yyv3450) > 0 yyv23450 := yyv3450 yyrl3450, yyrt3450 = z.DecInferLen(yyl3450, z.DecBasicHandle().MaxInitLen, 296) if yyrt3450 { if yyrl3450 <= cap(yyv3450) { yyv3450 = yyv3450[:yyrl3450] } else { yyv3450 = make([]PersistentVolumeClaim, yyrl3450) } } else { yyv3450 = make([]PersistentVolumeClaim, yyrl3450) } yyc3450 = true yyrr3450 = len(yyv3450) if yyrg3450 { copy(yyv3450, yyv23450) } } else if yyl3450 != len(yyv3450) { yyv3450 = yyv3450[:yyl3450] yyc3450 = true } yyj3450 := 0 for ; yyj3450 < yyrr3450; yyj3450++ { yyh3450.ElemContainerState(yyj3450) if r.TryDecodeAsNil() { yyv3450[yyj3450] = PersistentVolumeClaim{} } else { yyv3451 := &yyv3450[yyj3450] yyv3451.CodecDecodeSelf(d) } } if yyrt3450 { for ; yyj3450 < yyl3450; yyj3450++ { yyv3450 = append(yyv3450, PersistentVolumeClaim{}) yyh3450.ElemContainerState(yyj3450) if r.TryDecodeAsNil() { yyv3450[yyj3450] = PersistentVolumeClaim{} } else { yyv3452 := &yyv3450[yyj3450] yyv3452.CodecDecodeSelf(d) } } } } else { yyj3450 := 0 for ; !r.CheckBreak(); yyj3450++ { if yyj3450 >= len(yyv3450) { yyv3450 = append(yyv3450, PersistentVolumeClaim{}) // var yyz3450 PersistentVolumeClaim yyc3450 = true } yyh3450.ElemContainerState(yyj3450) if yyj3450 < len(yyv3450) { if r.TryDecodeAsNil() { yyv3450[yyj3450] = PersistentVolumeClaim{} } else { yyv3453 := &yyv3450[yyj3450] yyv3453.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3450 < len(yyv3450) { yyv3450 = yyv3450[:yyj3450] yyc3450 = true } else if yyj3450 == 0 && yyv3450 == nil { yyv3450 = []PersistentVolumeClaim{} yyc3450 = true } } yyh3450.End() if yyc3450 { *v = yyv3450 } } 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 _, yyv3454 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3455 := &yyv3454 yy3455.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 yyv3456 := *v yyh3456, yyl3456 := z.DecSliceHelperStart() var yyc3456 bool if yyl3456 == 0 { if yyv3456 == nil { yyv3456 = []DownwardAPIVolumeFile{} yyc3456 = true } else if len(yyv3456) != 0 { yyv3456 = yyv3456[:0] yyc3456 = true } } else if yyl3456 > 0 { var yyrr3456, yyrl3456 int var yyrt3456 bool if yyl3456 > cap(yyv3456) { yyrg3456 := len(yyv3456) > 0 yyv23456 := yyv3456 yyrl3456, yyrt3456 = z.DecInferLen(yyl3456, z.DecBasicHandle().MaxInitLen, 48) if yyrt3456 { if yyrl3456 <= cap(yyv3456) { yyv3456 = yyv3456[:yyrl3456] } else { yyv3456 = make([]DownwardAPIVolumeFile, yyrl3456) } } else { yyv3456 = make([]DownwardAPIVolumeFile, yyrl3456) } yyc3456 = true yyrr3456 = len(yyv3456) if yyrg3456 { copy(yyv3456, yyv23456) } } else if yyl3456 != len(yyv3456) { yyv3456 = yyv3456[:yyl3456] yyc3456 = true } yyj3456 := 0 for ; yyj3456 < yyrr3456; yyj3456++ { yyh3456.ElemContainerState(yyj3456) if r.TryDecodeAsNil() { yyv3456[yyj3456] = DownwardAPIVolumeFile{} } else { yyv3457 := &yyv3456[yyj3456] yyv3457.CodecDecodeSelf(d) } } if yyrt3456 { for ; yyj3456 < yyl3456; yyj3456++ { yyv3456 = append(yyv3456, DownwardAPIVolumeFile{}) yyh3456.ElemContainerState(yyj3456) if r.TryDecodeAsNil() { yyv3456[yyj3456] = DownwardAPIVolumeFile{} } else { yyv3458 := &yyv3456[yyj3456] yyv3458.CodecDecodeSelf(d) } } } } else { yyj3456 := 0 for ; !r.CheckBreak(); yyj3456++ { if yyj3456 >= len(yyv3456) { yyv3456 = append(yyv3456, DownwardAPIVolumeFile{}) // var yyz3456 DownwardAPIVolumeFile yyc3456 = true } yyh3456.ElemContainerState(yyj3456) if yyj3456 < len(yyv3456) { if r.TryDecodeAsNil() { yyv3456[yyj3456] = DownwardAPIVolumeFile{} } else { yyv3459 := &yyv3456[yyj3456] yyv3459.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3456 < len(yyv3456) { yyv3456 = yyv3456[:yyj3456] yyc3456 = true } else if yyj3456 == 0 && yyv3456 == nil { yyv3456 = []DownwardAPIVolumeFile{} yyc3456 = true } } yyh3456.End() if yyc3456 { *v = yyv3456 } } 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 _, yyv3460 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3460.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 yyv3461 := *v yyh3461, yyl3461 := z.DecSliceHelperStart() var yyc3461 bool if yyl3461 == 0 { if yyv3461 == nil { yyv3461 = []Capability{} yyc3461 = true } else if len(yyv3461) != 0 { yyv3461 = yyv3461[:0] yyc3461 = true } } else if yyl3461 > 0 { var yyrr3461, yyrl3461 int var yyrt3461 bool if yyl3461 > cap(yyv3461) { yyrl3461, yyrt3461 = z.DecInferLen(yyl3461, z.DecBasicHandle().MaxInitLen, 16) if yyrt3461 { if yyrl3461 <= cap(yyv3461) { yyv3461 = yyv3461[:yyrl3461] } else { yyv3461 = make([]Capability, yyrl3461) } } else { yyv3461 = make([]Capability, yyrl3461) } yyc3461 = true yyrr3461 = len(yyv3461) } else if yyl3461 != len(yyv3461) { yyv3461 = yyv3461[:yyl3461] yyc3461 = true } yyj3461 := 0 for ; yyj3461 < yyrr3461; yyj3461++ { yyh3461.ElemContainerState(yyj3461) if r.TryDecodeAsNil() { yyv3461[yyj3461] = "" } else { yyv3461[yyj3461] = Capability(r.DecodeString()) } } if yyrt3461 { for ; yyj3461 < yyl3461; yyj3461++ { yyv3461 = append(yyv3461, "") yyh3461.ElemContainerState(yyj3461) if r.TryDecodeAsNil() { yyv3461[yyj3461] = "" } else { yyv3461[yyj3461] = Capability(r.DecodeString()) } } } } else { yyj3461 := 0 for ; !r.CheckBreak(); yyj3461++ { if yyj3461 >= len(yyv3461) { yyv3461 = append(yyv3461, "") // var yyz3461 Capability yyc3461 = true } yyh3461.ElemContainerState(yyj3461) if yyj3461 < len(yyv3461) { if r.TryDecodeAsNil() { yyv3461[yyj3461] = "" } else { yyv3461[yyj3461] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3461 < len(yyv3461) { yyv3461 = yyv3461[:yyj3461] yyc3461 = true } else if yyj3461 == 0 && yyv3461 == nil { yyv3461 = []Capability{} yyc3461 = true } } yyh3461.End() if yyc3461 { *v = yyv3461 } } 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 _, yyv3465 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3466 := &yyv3465 yy3466.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 yyv3467 := *v yyh3467, yyl3467 := z.DecSliceHelperStart() var yyc3467 bool if yyl3467 == 0 { if yyv3467 == nil { yyv3467 = []ContainerPort{} yyc3467 = true } else if len(yyv3467) != 0 { yyv3467 = yyv3467[:0] yyc3467 = true } } else if yyl3467 > 0 { var yyrr3467, yyrl3467 int var yyrt3467 bool if yyl3467 > cap(yyv3467) { yyrg3467 := len(yyv3467) > 0 yyv23467 := yyv3467 yyrl3467, yyrt3467 = z.DecInferLen(yyl3467, z.DecBasicHandle().MaxInitLen, 64) if yyrt3467 { if yyrl3467 <= cap(yyv3467) { yyv3467 = yyv3467[:yyrl3467] } else { yyv3467 = make([]ContainerPort, yyrl3467) } } else { yyv3467 = make([]ContainerPort, yyrl3467) } yyc3467 = true yyrr3467 = len(yyv3467) if yyrg3467 { copy(yyv3467, yyv23467) } } else if yyl3467 != len(yyv3467) { yyv3467 = yyv3467[:yyl3467] yyc3467 = true } yyj3467 := 0 for ; yyj3467 < yyrr3467; yyj3467++ { yyh3467.ElemContainerState(yyj3467) if r.TryDecodeAsNil() { yyv3467[yyj3467] = ContainerPort{} } else { yyv3468 := &yyv3467[yyj3467] yyv3468.CodecDecodeSelf(d) } } if yyrt3467 { for ; yyj3467 < yyl3467; yyj3467++ { yyv3467 = append(yyv3467, ContainerPort{}) yyh3467.ElemContainerState(yyj3467) if r.TryDecodeAsNil() { yyv3467[yyj3467] = ContainerPort{} } else { yyv3469 := &yyv3467[yyj3467] yyv3469.CodecDecodeSelf(d) } } } } else { yyj3467 := 0 for ; !r.CheckBreak(); yyj3467++ { if yyj3467 >= len(yyv3467) { yyv3467 = append(yyv3467, ContainerPort{}) // var yyz3467 ContainerPort yyc3467 = true } yyh3467.ElemContainerState(yyj3467) if yyj3467 < len(yyv3467) { if r.TryDecodeAsNil() { yyv3467[yyj3467] = ContainerPort{} } else { yyv3470 := &yyv3467[yyj3467] yyv3470.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3467 < len(yyv3467) { yyv3467 = yyv3467[:yyj3467] yyc3467 = true } else if yyj3467 == 0 && yyv3467 == nil { yyv3467 = []ContainerPort{} yyc3467 = true } } yyh3467.End() if yyc3467 { *v = yyv3467 } } 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 _, yyv3471 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3472 := &yyv3471 yy3472.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 yyv3473 := *v yyh3473, yyl3473 := z.DecSliceHelperStart() var yyc3473 bool if yyl3473 == 0 { if yyv3473 == nil { yyv3473 = []EnvVar{} yyc3473 = true } else if len(yyv3473) != 0 { yyv3473 = yyv3473[:0] yyc3473 = true } } else if yyl3473 > 0 { var yyrr3473, yyrl3473 int var yyrt3473 bool if yyl3473 > cap(yyv3473) { yyrg3473 := len(yyv3473) > 0 yyv23473 := yyv3473 yyrl3473, yyrt3473 = z.DecInferLen(yyl3473, z.DecBasicHandle().MaxInitLen, 40) if yyrt3473 { if yyrl3473 <= cap(yyv3473) { yyv3473 = yyv3473[:yyrl3473] } else { yyv3473 = make([]EnvVar, yyrl3473) } } else { yyv3473 = make([]EnvVar, yyrl3473) } yyc3473 = true yyrr3473 = len(yyv3473) if yyrg3473 { copy(yyv3473, yyv23473) } } else if yyl3473 != len(yyv3473) { yyv3473 = yyv3473[:yyl3473] yyc3473 = true } yyj3473 := 0 for ; yyj3473 < yyrr3473; yyj3473++ { yyh3473.ElemContainerState(yyj3473) if r.TryDecodeAsNil() { yyv3473[yyj3473] = EnvVar{} } else { yyv3474 := &yyv3473[yyj3473] yyv3474.CodecDecodeSelf(d) } } if yyrt3473 { for ; yyj3473 < yyl3473; yyj3473++ { yyv3473 = append(yyv3473, EnvVar{}) yyh3473.ElemContainerState(yyj3473) if r.TryDecodeAsNil() { yyv3473[yyj3473] = EnvVar{} } else { yyv3475 := &yyv3473[yyj3473] yyv3475.CodecDecodeSelf(d) } } } } else { yyj3473 := 0 for ; !r.CheckBreak(); yyj3473++ { if yyj3473 >= len(yyv3473) { yyv3473 = append(yyv3473, EnvVar{}) // var yyz3473 EnvVar yyc3473 = true } yyh3473.ElemContainerState(yyj3473) if yyj3473 < len(yyv3473) { if r.TryDecodeAsNil() { yyv3473[yyj3473] = EnvVar{} } else { yyv3476 := &yyv3473[yyj3473] yyv3476.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3473 < len(yyv3473) { yyv3473 = yyv3473[:yyj3473] yyc3473 = true } else if yyj3473 == 0 && yyv3473 == nil { yyv3473 = []EnvVar{} yyc3473 = true } } yyh3473.End() if yyc3473 { *v = yyv3473 } } 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 _, yyv3477 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3478 := &yyv3477 yy3478.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 yyv3479 := *v yyh3479, yyl3479 := z.DecSliceHelperStart() var yyc3479 bool if yyl3479 == 0 { if yyv3479 == nil { yyv3479 = []VolumeMount{} yyc3479 = true } else if len(yyv3479) != 0 { yyv3479 = yyv3479[:0] yyc3479 = true } } else if yyl3479 > 0 { var yyrr3479, yyrl3479 int var yyrt3479 bool if yyl3479 > cap(yyv3479) { yyrg3479 := len(yyv3479) > 0 yyv23479 := yyv3479 yyrl3479, yyrt3479 = z.DecInferLen(yyl3479, z.DecBasicHandle().MaxInitLen, 40) if yyrt3479 { if yyrl3479 <= cap(yyv3479) { yyv3479 = yyv3479[:yyrl3479] } else { yyv3479 = make([]VolumeMount, yyrl3479) } } else { yyv3479 = make([]VolumeMount, yyrl3479) } yyc3479 = true yyrr3479 = len(yyv3479) if yyrg3479 { copy(yyv3479, yyv23479) } } else if yyl3479 != len(yyv3479) { yyv3479 = yyv3479[:yyl3479] yyc3479 = true } yyj3479 := 0 for ; yyj3479 < yyrr3479; yyj3479++ { yyh3479.ElemContainerState(yyj3479) if r.TryDecodeAsNil() { yyv3479[yyj3479] = VolumeMount{} } else { yyv3480 := &yyv3479[yyj3479] yyv3480.CodecDecodeSelf(d) } } if yyrt3479 { for ; yyj3479 < yyl3479; yyj3479++ { yyv3479 = append(yyv3479, VolumeMount{}) yyh3479.ElemContainerState(yyj3479) if r.TryDecodeAsNil() { yyv3479[yyj3479] = VolumeMount{} } else { yyv3481 := &yyv3479[yyj3479] yyv3481.CodecDecodeSelf(d) } } } } else { yyj3479 := 0 for ; !r.CheckBreak(); yyj3479++ { if yyj3479 >= len(yyv3479) { yyv3479 = append(yyv3479, VolumeMount{}) // var yyz3479 VolumeMount yyc3479 = true } yyh3479.ElemContainerState(yyj3479) if yyj3479 < len(yyv3479) { if r.TryDecodeAsNil() { yyv3479[yyj3479] = VolumeMount{} } else { yyv3482 := &yyv3479[yyj3479] yyv3482.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3479 < len(yyv3479) { yyv3479 = yyv3479[:yyj3479] yyc3479 = true } else if yyj3479 == 0 && yyv3479 == nil { yyv3479 = []VolumeMount{} yyc3479 = true } } yyh3479.End() if yyc3479 { *v = yyv3479 } } 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 _, yyv3483 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3484 := &yyv3483 yy3484.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 yyv3485 := *v yyh3485, yyl3485 := z.DecSliceHelperStart() var yyc3485 bool if yyl3485 == 0 { if yyv3485 == nil { yyv3485 = []Pod{} yyc3485 = true } else if len(yyv3485) != 0 { yyv3485 = yyv3485[:0] yyc3485 = true } } else if yyl3485 > 0 { var yyrr3485, yyrl3485 int var yyrt3485 bool if yyl3485 > cap(yyv3485) { yyrg3485 := len(yyv3485) > 0 yyv23485 := yyv3485 yyrl3485, yyrt3485 = z.DecInferLen(yyl3485, z.DecBasicHandle().MaxInitLen, 496) if yyrt3485 { if yyrl3485 <= cap(yyv3485) { yyv3485 = yyv3485[:yyrl3485] } else { yyv3485 = make([]Pod, yyrl3485) } } else { yyv3485 = make([]Pod, yyrl3485) } yyc3485 = true yyrr3485 = len(yyv3485) if yyrg3485 { copy(yyv3485, yyv23485) } } else if yyl3485 != len(yyv3485) { yyv3485 = yyv3485[:yyl3485] yyc3485 = true } yyj3485 := 0 for ; yyj3485 < yyrr3485; yyj3485++ { yyh3485.ElemContainerState(yyj3485) if r.TryDecodeAsNil() { yyv3485[yyj3485] = Pod{} } else { yyv3486 := &yyv3485[yyj3485] yyv3486.CodecDecodeSelf(d) } } if yyrt3485 { for ; yyj3485 < yyl3485; yyj3485++ { yyv3485 = append(yyv3485, Pod{}) yyh3485.ElemContainerState(yyj3485) if r.TryDecodeAsNil() { yyv3485[yyj3485] = Pod{} } else { yyv3487 := &yyv3485[yyj3485] yyv3487.CodecDecodeSelf(d) } } } } else { yyj3485 := 0 for ; !r.CheckBreak(); yyj3485++ { if yyj3485 >= len(yyv3485) { yyv3485 = append(yyv3485, Pod{}) // var yyz3485 Pod yyc3485 = true } yyh3485.ElemContainerState(yyj3485) if yyj3485 < len(yyv3485) { if r.TryDecodeAsNil() { yyv3485[yyj3485] = Pod{} } else { yyv3488 := &yyv3485[yyj3485] yyv3488.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3485 < len(yyv3485) { yyv3485 = yyv3485[:yyj3485] yyc3485 = true } else if yyj3485 == 0 && yyv3485 == nil { yyv3485 = []Pod{} yyc3485 = true } } yyh3485.End() if yyc3485 { *v = yyv3485 } } 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 _, yyv3489 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3490 := &yyv3489 yy3490.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 yyv3491 := *v yyh3491, yyl3491 := z.DecSliceHelperStart() var yyc3491 bool if yyl3491 == 0 { if yyv3491 == nil { yyv3491 = []Volume{} yyc3491 = true } else if len(yyv3491) != 0 { yyv3491 = yyv3491[:0] yyc3491 = true } } else if yyl3491 > 0 { var yyrr3491, yyrl3491 int var yyrt3491 bool if yyl3491 > cap(yyv3491) { yyrg3491 := len(yyv3491) > 0 yyv23491 := yyv3491 yyrl3491, yyrt3491 = z.DecInferLen(yyl3491, z.DecBasicHandle().MaxInitLen, 144) if yyrt3491 { if yyrl3491 <= cap(yyv3491) { yyv3491 = yyv3491[:yyrl3491] } else { yyv3491 = make([]Volume, yyrl3491) } } else { yyv3491 = make([]Volume, yyrl3491) } yyc3491 = true yyrr3491 = len(yyv3491) if yyrg3491 { copy(yyv3491, yyv23491) } } else if yyl3491 != len(yyv3491) { yyv3491 = yyv3491[:yyl3491] yyc3491 = true } yyj3491 := 0 for ; yyj3491 < yyrr3491; yyj3491++ { yyh3491.ElemContainerState(yyj3491) if r.TryDecodeAsNil() { yyv3491[yyj3491] = Volume{} } else { yyv3492 := &yyv3491[yyj3491] yyv3492.CodecDecodeSelf(d) } } if yyrt3491 { for ; yyj3491 < yyl3491; yyj3491++ { yyv3491 = append(yyv3491, Volume{}) yyh3491.ElemContainerState(yyj3491) if r.TryDecodeAsNil() { yyv3491[yyj3491] = Volume{} } else { yyv3493 := &yyv3491[yyj3491] yyv3493.CodecDecodeSelf(d) } } } } else { yyj3491 := 0 for ; !r.CheckBreak(); yyj3491++ { if yyj3491 >= len(yyv3491) { yyv3491 = append(yyv3491, Volume{}) // var yyz3491 Volume yyc3491 = true } yyh3491.ElemContainerState(yyj3491) if yyj3491 < len(yyv3491) { if r.TryDecodeAsNil() { yyv3491[yyj3491] = Volume{} } else { yyv3494 := &yyv3491[yyj3491] yyv3494.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3491 < len(yyv3491) { yyv3491 = yyv3491[:yyj3491] yyc3491 = true } else if yyj3491 == 0 && yyv3491 == nil { yyv3491 = []Volume{} yyc3491 = true } } yyh3491.End() if yyc3491 { *v = yyv3491 } } 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 _, yyv3495 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3496 := &yyv3495 yy3496.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 yyv3497 := *v yyh3497, yyl3497 := z.DecSliceHelperStart() var yyc3497 bool if yyl3497 == 0 { if yyv3497 == nil { yyv3497 = []Container{} yyc3497 = true } else if len(yyv3497) != 0 { yyv3497 = yyv3497[:0] yyc3497 = true } } else if yyl3497 > 0 { var yyrr3497, yyrl3497 int var yyrt3497 bool if yyl3497 > cap(yyv3497) { yyrg3497 := len(yyv3497) > 0 yyv23497 := yyv3497 yyrl3497, yyrt3497 = z.DecInferLen(yyl3497, z.DecBasicHandle().MaxInitLen, 256) if yyrt3497 { if yyrl3497 <= cap(yyv3497) { yyv3497 = yyv3497[:yyrl3497] } else { yyv3497 = make([]Container, yyrl3497) } } else { yyv3497 = make([]Container, yyrl3497) } yyc3497 = true yyrr3497 = len(yyv3497) if yyrg3497 { copy(yyv3497, yyv23497) } } else if yyl3497 != len(yyv3497) { yyv3497 = yyv3497[:yyl3497] yyc3497 = true } yyj3497 := 0 for ; yyj3497 < yyrr3497; yyj3497++ { yyh3497.ElemContainerState(yyj3497) if r.TryDecodeAsNil() { yyv3497[yyj3497] = Container{} } else { yyv3498 := &yyv3497[yyj3497] yyv3498.CodecDecodeSelf(d) } } if yyrt3497 { for ; yyj3497 < yyl3497; yyj3497++ { yyv3497 = append(yyv3497, Container{}) yyh3497.ElemContainerState(yyj3497) if r.TryDecodeAsNil() { yyv3497[yyj3497] = Container{} } else { yyv3499 := &yyv3497[yyj3497] yyv3499.CodecDecodeSelf(d) } } } } else { yyj3497 := 0 for ; !r.CheckBreak(); yyj3497++ { if yyj3497 >= len(yyv3497) { yyv3497 = append(yyv3497, Container{}) // var yyz3497 Container yyc3497 = true } yyh3497.ElemContainerState(yyj3497) if yyj3497 < len(yyv3497) { if r.TryDecodeAsNil() { yyv3497[yyj3497] = Container{} } else { yyv3500 := &yyv3497[yyj3497] yyv3500.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3497 < len(yyv3497) { yyv3497 = yyv3497[:yyj3497] yyc3497 = true } else if yyj3497 == 0 && yyv3497 == nil { yyv3497 = []Container{} yyc3497 = true } } yyh3497.End() if yyc3497 { *v = yyv3497 } } 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 _, yyv3501 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3502 := &yyv3501 yy3502.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 yyv3503 := *v yyh3503, yyl3503 := z.DecSliceHelperStart() var yyc3503 bool if yyl3503 == 0 { if yyv3503 == nil { yyv3503 = []LocalObjectReference{} yyc3503 = true } else if len(yyv3503) != 0 { yyv3503 = yyv3503[:0] yyc3503 = true } } else if yyl3503 > 0 { var yyrr3503, yyrl3503 int var yyrt3503 bool if yyl3503 > cap(yyv3503) { yyrg3503 := len(yyv3503) > 0 yyv23503 := yyv3503 yyrl3503, yyrt3503 = z.DecInferLen(yyl3503, z.DecBasicHandle().MaxInitLen, 16) if yyrt3503 { if yyrl3503 <= cap(yyv3503) { yyv3503 = yyv3503[:yyrl3503] } else { yyv3503 = make([]LocalObjectReference, yyrl3503) } } else { yyv3503 = make([]LocalObjectReference, yyrl3503) } yyc3503 = true yyrr3503 = len(yyv3503) if yyrg3503 { copy(yyv3503, yyv23503) } } else if yyl3503 != len(yyv3503) { yyv3503 = yyv3503[:yyl3503] yyc3503 = true } yyj3503 := 0 for ; yyj3503 < yyrr3503; yyj3503++ { yyh3503.ElemContainerState(yyj3503) if r.TryDecodeAsNil() { yyv3503[yyj3503] = LocalObjectReference{} } else { yyv3504 := &yyv3503[yyj3503] yyv3504.CodecDecodeSelf(d) } } if yyrt3503 { for ; yyj3503 < yyl3503; yyj3503++ { yyv3503 = append(yyv3503, LocalObjectReference{}) yyh3503.ElemContainerState(yyj3503) if r.TryDecodeAsNil() { yyv3503[yyj3503] = LocalObjectReference{} } else { yyv3505 := &yyv3503[yyj3503] yyv3505.CodecDecodeSelf(d) } } } } else { yyj3503 := 0 for ; !r.CheckBreak(); yyj3503++ { if yyj3503 >= len(yyv3503) { yyv3503 = append(yyv3503, LocalObjectReference{}) // var yyz3503 LocalObjectReference yyc3503 = true } yyh3503.ElemContainerState(yyj3503) if yyj3503 < len(yyv3503) { if r.TryDecodeAsNil() { yyv3503[yyj3503] = LocalObjectReference{} } else { yyv3506 := &yyv3503[yyj3503] yyv3506.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3503 < len(yyv3503) { yyv3503 = yyv3503[:yyj3503] yyc3503 = true } else if yyj3503 == 0 && yyv3503 == nil { yyv3503 = []LocalObjectReference{} yyc3503 = true } } yyh3503.End() if yyc3503 { *v = yyv3503 } } 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 _, yyv3507 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3508 := &yyv3507 yy3508.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 yyv3509 := *v yyh3509, yyl3509 := z.DecSliceHelperStart() var yyc3509 bool if yyl3509 == 0 { if yyv3509 == nil { yyv3509 = []PodCondition{} yyc3509 = true } else if len(yyv3509) != 0 { yyv3509 = yyv3509[:0] yyc3509 = true } } else if yyl3509 > 0 { var yyrr3509, yyrl3509 int var yyrt3509 bool if yyl3509 > cap(yyv3509) { yyrg3509 := len(yyv3509) > 0 yyv23509 := yyv3509 yyrl3509, yyrt3509 = z.DecInferLen(yyl3509, z.DecBasicHandle().MaxInitLen, 112) if yyrt3509 { if yyrl3509 <= cap(yyv3509) { yyv3509 = yyv3509[:yyrl3509] } else { yyv3509 = make([]PodCondition, yyrl3509) } } else { yyv3509 = make([]PodCondition, yyrl3509) } yyc3509 = true yyrr3509 = len(yyv3509) if yyrg3509 { copy(yyv3509, yyv23509) } } else if yyl3509 != len(yyv3509) { yyv3509 = yyv3509[:yyl3509] yyc3509 = true } yyj3509 := 0 for ; yyj3509 < yyrr3509; yyj3509++ { yyh3509.ElemContainerState(yyj3509) if r.TryDecodeAsNil() { yyv3509[yyj3509] = PodCondition{} } else { yyv3510 := &yyv3509[yyj3509] yyv3510.CodecDecodeSelf(d) } } if yyrt3509 { for ; yyj3509 < yyl3509; yyj3509++ { yyv3509 = append(yyv3509, PodCondition{}) yyh3509.ElemContainerState(yyj3509) if r.TryDecodeAsNil() { yyv3509[yyj3509] = PodCondition{} } else { yyv3511 := &yyv3509[yyj3509] yyv3511.CodecDecodeSelf(d) } } } } else { yyj3509 := 0 for ; !r.CheckBreak(); yyj3509++ { if yyj3509 >= len(yyv3509) { yyv3509 = append(yyv3509, PodCondition{}) // var yyz3509 PodCondition yyc3509 = true } yyh3509.ElemContainerState(yyj3509) if yyj3509 < len(yyv3509) { if r.TryDecodeAsNil() { yyv3509[yyj3509] = PodCondition{} } else { yyv3512 := &yyv3509[yyj3509] yyv3512.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3509 < len(yyv3509) { yyv3509 = yyv3509[:yyj3509] yyc3509 = true } else if yyj3509 == 0 && yyv3509 == nil { yyv3509 = []PodCondition{} yyc3509 = true } } yyh3509.End() if yyc3509 { *v = yyv3509 } } 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 _, yyv3513 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3514 := &yyv3513 yy3514.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 yyv3515 := *v yyh3515, yyl3515 := z.DecSliceHelperStart() var yyc3515 bool if yyl3515 == 0 { if yyv3515 == nil { yyv3515 = []ContainerStatus{} yyc3515 = true } else if len(yyv3515) != 0 { yyv3515 = yyv3515[:0] yyc3515 = true } } else if yyl3515 > 0 { var yyrr3515, yyrl3515 int var yyrt3515 bool if yyl3515 > cap(yyv3515) { yyrg3515 := len(yyv3515) > 0 yyv23515 := yyv3515 yyrl3515, yyrt3515 = z.DecInferLen(yyl3515, z.DecBasicHandle().MaxInitLen, 128) if yyrt3515 { if yyrl3515 <= cap(yyv3515) { yyv3515 = yyv3515[:yyrl3515] } else { yyv3515 = make([]ContainerStatus, yyrl3515) } } else { yyv3515 = make([]ContainerStatus, yyrl3515) } yyc3515 = true yyrr3515 = len(yyv3515) if yyrg3515 { copy(yyv3515, yyv23515) } } else if yyl3515 != len(yyv3515) { yyv3515 = yyv3515[:yyl3515] yyc3515 = true } yyj3515 := 0 for ; yyj3515 < yyrr3515; yyj3515++ { yyh3515.ElemContainerState(yyj3515) if r.TryDecodeAsNil() { yyv3515[yyj3515] = ContainerStatus{} } else { yyv3516 := &yyv3515[yyj3515] yyv3516.CodecDecodeSelf(d) } } if yyrt3515 { for ; yyj3515 < yyl3515; yyj3515++ { yyv3515 = append(yyv3515, ContainerStatus{}) yyh3515.ElemContainerState(yyj3515) if r.TryDecodeAsNil() { yyv3515[yyj3515] = ContainerStatus{} } else { yyv3517 := &yyv3515[yyj3515] yyv3517.CodecDecodeSelf(d) } } } } else { yyj3515 := 0 for ; !r.CheckBreak(); yyj3515++ { if yyj3515 >= len(yyv3515) { yyv3515 = append(yyv3515, ContainerStatus{}) // var yyz3515 ContainerStatus yyc3515 = true } yyh3515.ElemContainerState(yyj3515) if yyj3515 < len(yyv3515) { if r.TryDecodeAsNil() { yyv3515[yyj3515] = ContainerStatus{} } else { yyv3518 := &yyv3515[yyj3515] yyv3518.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3515 < len(yyv3515) { yyv3515 = yyv3515[:yyj3515] yyc3515 = true } else if yyj3515 == 0 && yyv3515 == nil { yyv3515 = []ContainerStatus{} yyc3515 = true } } yyh3515.End() if yyc3515 { *v = yyv3515 } } 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 _, yyv3519 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3520 := &yyv3519 yy3520.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 yyv3521 := *v yyh3521, yyl3521 := z.DecSliceHelperStart() var yyc3521 bool if yyl3521 == 0 { if yyv3521 == nil { yyv3521 = []PodTemplate{} yyc3521 = true } else if len(yyv3521) != 0 { yyv3521 = yyv3521[:0] yyc3521 = true } } else if yyl3521 > 0 { var yyrr3521, yyrl3521 int var yyrt3521 bool if yyl3521 > cap(yyv3521) { yyrg3521 := len(yyv3521) > 0 yyv23521 := yyv3521 yyrl3521, yyrt3521 = z.DecInferLen(yyl3521, z.DecBasicHandle().MaxInitLen, 520) if yyrt3521 { if yyrl3521 <= cap(yyv3521) { yyv3521 = yyv3521[:yyrl3521] } else { yyv3521 = make([]PodTemplate, yyrl3521) } } else { yyv3521 = make([]PodTemplate, yyrl3521) } yyc3521 = true yyrr3521 = len(yyv3521) if yyrg3521 { copy(yyv3521, yyv23521) } } else if yyl3521 != len(yyv3521) { yyv3521 = yyv3521[:yyl3521] yyc3521 = true } yyj3521 := 0 for ; yyj3521 < yyrr3521; yyj3521++ { yyh3521.ElemContainerState(yyj3521) if r.TryDecodeAsNil() { yyv3521[yyj3521] = PodTemplate{} } else { yyv3522 := &yyv3521[yyj3521] yyv3522.CodecDecodeSelf(d) } } if yyrt3521 { for ; yyj3521 < yyl3521; yyj3521++ { yyv3521 = append(yyv3521, PodTemplate{}) yyh3521.ElemContainerState(yyj3521) if r.TryDecodeAsNil() { yyv3521[yyj3521] = PodTemplate{} } else { yyv3523 := &yyv3521[yyj3521] yyv3523.CodecDecodeSelf(d) } } } } else { yyj3521 := 0 for ; !r.CheckBreak(); yyj3521++ { if yyj3521 >= len(yyv3521) { yyv3521 = append(yyv3521, PodTemplate{}) // var yyz3521 PodTemplate yyc3521 = true } yyh3521.ElemContainerState(yyj3521) if yyj3521 < len(yyv3521) { if r.TryDecodeAsNil() { yyv3521[yyj3521] = PodTemplate{} } else { yyv3524 := &yyv3521[yyj3521] yyv3524.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3521 < len(yyv3521) { yyv3521 = yyv3521[:yyj3521] yyc3521 = true } else if yyj3521 == 0 && yyv3521 == nil { yyv3521 = []PodTemplate{} yyc3521 = true } } yyh3521.End() if yyc3521 { *v = yyv3521 } } 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 _, yyv3525 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3526 := &yyv3525 yy3526.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 yyv3527 := *v yyh3527, yyl3527 := z.DecSliceHelperStart() var yyc3527 bool if yyl3527 == 0 { if yyv3527 == nil { yyv3527 = []ReplicationController{} yyc3527 = true } else if len(yyv3527) != 0 { yyv3527 = yyv3527[:0] yyc3527 = true } } else if yyl3527 > 0 { var yyrr3527, yyrl3527 int var yyrt3527 bool if yyl3527 > cap(yyv3527) { yyrg3527 := len(yyv3527) > 0 yyv23527 := yyv3527 yyrl3527, yyrt3527 = z.DecInferLen(yyl3527, z.DecBasicHandle().MaxInitLen, 232) if yyrt3527 { if yyrl3527 <= cap(yyv3527) { yyv3527 = yyv3527[:yyrl3527] } else { yyv3527 = make([]ReplicationController, yyrl3527) } } else { yyv3527 = make([]ReplicationController, yyrl3527) } yyc3527 = true yyrr3527 = len(yyv3527) if yyrg3527 { copy(yyv3527, yyv23527) } } else if yyl3527 != len(yyv3527) { yyv3527 = yyv3527[:yyl3527] yyc3527 = true } yyj3527 := 0 for ; yyj3527 < yyrr3527; yyj3527++ { yyh3527.ElemContainerState(yyj3527) if r.TryDecodeAsNil() { yyv3527[yyj3527] = ReplicationController{} } else { yyv3528 := &yyv3527[yyj3527] yyv3528.CodecDecodeSelf(d) } } if yyrt3527 { for ; yyj3527 < yyl3527; yyj3527++ { yyv3527 = append(yyv3527, ReplicationController{}) yyh3527.ElemContainerState(yyj3527) if r.TryDecodeAsNil() { yyv3527[yyj3527] = ReplicationController{} } else { yyv3529 := &yyv3527[yyj3527] yyv3529.CodecDecodeSelf(d) } } } } else { yyj3527 := 0 for ; !r.CheckBreak(); yyj3527++ { if yyj3527 >= len(yyv3527) { yyv3527 = append(yyv3527, ReplicationController{}) // var yyz3527 ReplicationController yyc3527 = true } yyh3527.ElemContainerState(yyj3527) if yyj3527 < len(yyv3527) { if r.TryDecodeAsNil() { yyv3527[yyj3527] = ReplicationController{} } else { yyv3530 := &yyv3527[yyj3527] yyv3530.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3527 < len(yyv3527) { yyv3527 = yyv3527[:yyj3527] yyc3527 = true } else if yyj3527 == 0 && yyv3527 == nil { yyv3527 = []ReplicationController{} yyc3527 = true } } yyh3527.End() if yyc3527 { *v = yyv3527 } } 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 _, yyv3531 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3532 := &yyv3531 yy3532.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 yyv3533 := *v yyh3533, yyl3533 := z.DecSliceHelperStart() var yyc3533 bool if yyl3533 == 0 { if yyv3533 == nil { yyv3533 = []Service{} yyc3533 = true } else if len(yyv3533) != 0 { yyv3533 = yyv3533[:0] yyc3533 = true } } else if yyl3533 > 0 { var yyrr3533, yyrl3533 int var yyrt3533 bool if yyl3533 > cap(yyv3533) { yyrg3533 := len(yyv3533) > 0 yyv23533 := yyv3533 yyrl3533, yyrt3533 = z.DecInferLen(yyl3533, z.DecBasicHandle().MaxInitLen, 336) if yyrt3533 { if yyrl3533 <= cap(yyv3533) { yyv3533 = yyv3533[:yyrl3533] } else { yyv3533 = make([]Service, yyrl3533) } } else { yyv3533 = make([]Service, yyrl3533) } yyc3533 = true yyrr3533 = len(yyv3533) if yyrg3533 { copy(yyv3533, yyv23533) } } else if yyl3533 != len(yyv3533) { yyv3533 = yyv3533[:yyl3533] yyc3533 = true } yyj3533 := 0 for ; yyj3533 < yyrr3533; yyj3533++ { yyh3533.ElemContainerState(yyj3533) if r.TryDecodeAsNil() { yyv3533[yyj3533] = Service{} } else { yyv3534 := &yyv3533[yyj3533] yyv3534.CodecDecodeSelf(d) } } if yyrt3533 { for ; yyj3533 < yyl3533; yyj3533++ { yyv3533 = append(yyv3533, Service{}) yyh3533.ElemContainerState(yyj3533) if r.TryDecodeAsNil() { yyv3533[yyj3533] = Service{} } else { yyv3535 := &yyv3533[yyj3533] yyv3535.CodecDecodeSelf(d) } } } } else { yyj3533 := 0 for ; !r.CheckBreak(); yyj3533++ { if yyj3533 >= len(yyv3533) { yyv3533 = append(yyv3533, Service{}) // var yyz3533 Service yyc3533 = true } yyh3533.ElemContainerState(yyj3533) if yyj3533 < len(yyv3533) { if r.TryDecodeAsNil() { yyv3533[yyj3533] = Service{} } else { yyv3536 := &yyv3533[yyj3533] yyv3536.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3533 < len(yyv3533) { yyv3533 = yyv3533[:yyj3533] yyc3533 = true } else if yyj3533 == 0 && yyv3533 == nil { yyv3533 = []Service{} yyc3533 = true } } yyh3533.End() if yyc3533 { *v = yyv3533 } } 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 _, yyv3537 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3538 := &yyv3537 yy3538.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 yyv3539 := *v yyh3539, yyl3539 := z.DecSliceHelperStart() var yyc3539 bool if yyl3539 == 0 { if yyv3539 == nil { yyv3539 = []LoadBalancerIngress{} yyc3539 = true } else if len(yyv3539) != 0 { yyv3539 = yyv3539[:0] yyc3539 = true } } else if yyl3539 > 0 { var yyrr3539, yyrl3539 int var yyrt3539 bool if yyl3539 > cap(yyv3539) { yyrg3539 := len(yyv3539) > 0 yyv23539 := yyv3539 yyrl3539, yyrt3539 = z.DecInferLen(yyl3539, z.DecBasicHandle().MaxInitLen, 32) if yyrt3539 { if yyrl3539 <= cap(yyv3539) { yyv3539 = yyv3539[:yyrl3539] } else { yyv3539 = make([]LoadBalancerIngress, yyrl3539) } } else { yyv3539 = make([]LoadBalancerIngress, yyrl3539) } yyc3539 = true yyrr3539 = len(yyv3539) if yyrg3539 { copy(yyv3539, yyv23539) } } else if yyl3539 != len(yyv3539) { yyv3539 = yyv3539[:yyl3539] yyc3539 = true } yyj3539 := 0 for ; yyj3539 < yyrr3539; yyj3539++ { yyh3539.ElemContainerState(yyj3539) if r.TryDecodeAsNil() { yyv3539[yyj3539] = LoadBalancerIngress{} } else { yyv3540 := &yyv3539[yyj3539] yyv3540.CodecDecodeSelf(d) } } if yyrt3539 { for ; yyj3539 < yyl3539; yyj3539++ { yyv3539 = append(yyv3539, LoadBalancerIngress{}) yyh3539.ElemContainerState(yyj3539) if r.TryDecodeAsNil() { yyv3539[yyj3539] = LoadBalancerIngress{} } else { yyv3541 := &yyv3539[yyj3539] yyv3541.CodecDecodeSelf(d) } } } } else { yyj3539 := 0 for ; !r.CheckBreak(); yyj3539++ { if yyj3539 >= len(yyv3539) { yyv3539 = append(yyv3539, LoadBalancerIngress{}) // var yyz3539 LoadBalancerIngress yyc3539 = true } yyh3539.ElemContainerState(yyj3539) if yyj3539 < len(yyv3539) { if r.TryDecodeAsNil() { yyv3539[yyj3539] = LoadBalancerIngress{} } else { yyv3542 := &yyv3539[yyj3539] yyv3542.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3539 < len(yyv3539) { yyv3539 = yyv3539[:yyj3539] yyc3539 = true } else if yyj3539 == 0 && yyv3539 == nil { yyv3539 = []LoadBalancerIngress{} yyc3539 = true } } yyh3539.End() if yyc3539 { *v = yyv3539 } } 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 _, yyv3543 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3544 := &yyv3543 yy3544.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 yyv3545 := *v yyh3545, yyl3545 := z.DecSliceHelperStart() var yyc3545 bool if yyl3545 == 0 { if yyv3545 == nil { yyv3545 = []ServicePort{} yyc3545 = true } else if len(yyv3545) != 0 { yyv3545 = yyv3545[:0] yyc3545 = true } } else if yyl3545 > 0 { var yyrr3545, yyrl3545 int var yyrt3545 bool if yyl3545 > cap(yyv3545) { yyrg3545 := len(yyv3545) > 0 yyv23545 := yyv3545 yyrl3545, yyrt3545 = z.DecInferLen(yyl3545, z.DecBasicHandle().MaxInitLen, 80) if yyrt3545 { if yyrl3545 <= cap(yyv3545) { yyv3545 = yyv3545[:yyrl3545] } else { yyv3545 = make([]ServicePort, yyrl3545) } } else { yyv3545 = make([]ServicePort, yyrl3545) } yyc3545 = true yyrr3545 = len(yyv3545) if yyrg3545 { copy(yyv3545, yyv23545) } } else if yyl3545 != len(yyv3545) { yyv3545 = yyv3545[:yyl3545] yyc3545 = true } yyj3545 := 0 for ; yyj3545 < yyrr3545; yyj3545++ { yyh3545.ElemContainerState(yyj3545) if r.TryDecodeAsNil() { yyv3545[yyj3545] = ServicePort{} } else { yyv3546 := &yyv3545[yyj3545] yyv3546.CodecDecodeSelf(d) } } if yyrt3545 { for ; yyj3545 < yyl3545; yyj3545++ { yyv3545 = append(yyv3545, ServicePort{}) yyh3545.ElemContainerState(yyj3545) if r.TryDecodeAsNil() { yyv3545[yyj3545] = ServicePort{} } else { yyv3547 := &yyv3545[yyj3545] yyv3547.CodecDecodeSelf(d) } } } } else { yyj3545 := 0 for ; !r.CheckBreak(); yyj3545++ { if yyj3545 >= len(yyv3545) { yyv3545 = append(yyv3545, ServicePort{}) // var yyz3545 ServicePort yyc3545 = true } yyh3545.ElemContainerState(yyj3545) if yyj3545 < len(yyv3545) { if r.TryDecodeAsNil() { yyv3545[yyj3545] = ServicePort{} } else { yyv3548 := &yyv3545[yyj3545] yyv3548.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3545 < len(yyv3545) { yyv3545 = yyv3545[:yyj3545] yyc3545 = true } else if yyj3545 == 0 && yyv3545 == nil { yyv3545 = []ServicePort{} yyc3545 = true } } yyh3545.End() if yyc3545 { *v = yyv3545 } } 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 _, yyv3549 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3550 := &yyv3549 yy3550.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 yyv3551 := *v yyh3551, yyl3551 := z.DecSliceHelperStart() var yyc3551 bool if yyl3551 == 0 { if yyv3551 == nil { yyv3551 = []ObjectReference{} yyc3551 = true } else if len(yyv3551) != 0 { yyv3551 = yyv3551[:0] yyc3551 = true } } else if yyl3551 > 0 { var yyrr3551, yyrl3551 int var yyrt3551 bool if yyl3551 > cap(yyv3551) { yyrg3551 := len(yyv3551) > 0 yyv23551 := yyv3551 yyrl3551, yyrt3551 = z.DecInferLen(yyl3551, z.DecBasicHandle().MaxInitLen, 112) if yyrt3551 { if yyrl3551 <= cap(yyv3551) { yyv3551 = yyv3551[:yyrl3551] } else { yyv3551 = make([]ObjectReference, yyrl3551) } } else { yyv3551 = make([]ObjectReference, yyrl3551) } yyc3551 = true yyrr3551 = len(yyv3551) if yyrg3551 { copy(yyv3551, yyv23551) } } else if yyl3551 != len(yyv3551) { yyv3551 = yyv3551[:yyl3551] yyc3551 = true } yyj3551 := 0 for ; yyj3551 < yyrr3551; yyj3551++ { yyh3551.ElemContainerState(yyj3551) if r.TryDecodeAsNil() { yyv3551[yyj3551] = ObjectReference{} } else { yyv3552 := &yyv3551[yyj3551] yyv3552.CodecDecodeSelf(d) } } if yyrt3551 { for ; yyj3551 < yyl3551; yyj3551++ { yyv3551 = append(yyv3551, ObjectReference{}) yyh3551.ElemContainerState(yyj3551) if r.TryDecodeAsNil() { yyv3551[yyj3551] = ObjectReference{} } else { yyv3553 := &yyv3551[yyj3551] yyv3553.CodecDecodeSelf(d) } } } } else { yyj3551 := 0 for ; !r.CheckBreak(); yyj3551++ { if yyj3551 >= len(yyv3551) { yyv3551 = append(yyv3551, ObjectReference{}) // var yyz3551 ObjectReference yyc3551 = true } yyh3551.ElemContainerState(yyj3551) if yyj3551 < len(yyv3551) { if r.TryDecodeAsNil() { yyv3551[yyj3551] = ObjectReference{} } else { yyv3554 := &yyv3551[yyj3551] yyv3554.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3551 < len(yyv3551) { yyv3551 = yyv3551[:yyj3551] yyc3551 = true } else if yyj3551 == 0 && yyv3551 == nil { yyv3551 = []ObjectReference{} yyc3551 = true } } yyh3551.End() if yyc3551 { *v = yyv3551 } } 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 _, yyv3555 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3556 := &yyv3555 yy3556.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 yyv3557 := *v yyh3557, yyl3557 := z.DecSliceHelperStart() var yyc3557 bool if yyl3557 == 0 { if yyv3557 == nil { yyv3557 = []ServiceAccount{} yyc3557 = true } else if len(yyv3557) != 0 { yyv3557 = yyv3557[:0] yyc3557 = true } } else if yyl3557 > 0 { var yyrr3557, yyrl3557 int var yyrt3557 bool if yyl3557 > cap(yyv3557) { yyrg3557 := len(yyv3557) > 0 yyv23557 := yyv3557 yyrl3557, yyrt3557 = z.DecInferLen(yyl3557, z.DecBasicHandle().MaxInitLen, 240) if yyrt3557 { if yyrl3557 <= cap(yyv3557) { yyv3557 = yyv3557[:yyrl3557] } else { yyv3557 = make([]ServiceAccount, yyrl3557) } } else { yyv3557 = make([]ServiceAccount, yyrl3557) } yyc3557 = true yyrr3557 = len(yyv3557) if yyrg3557 { copy(yyv3557, yyv23557) } } else if yyl3557 != len(yyv3557) { yyv3557 = yyv3557[:yyl3557] yyc3557 = true } yyj3557 := 0 for ; yyj3557 < yyrr3557; yyj3557++ { yyh3557.ElemContainerState(yyj3557) if r.TryDecodeAsNil() { yyv3557[yyj3557] = ServiceAccount{} } else { yyv3558 := &yyv3557[yyj3557] yyv3558.CodecDecodeSelf(d) } } if yyrt3557 { for ; yyj3557 < yyl3557; yyj3557++ { yyv3557 = append(yyv3557, ServiceAccount{}) yyh3557.ElemContainerState(yyj3557) if r.TryDecodeAsNil() { yyv3557[yyj3557] = ServiceAccount{} } else { yyv3559 := &yyv3557[yyj3557] yyv3559.CodecDecodeSelf(d) } } } } else { yyj3557 := 0 for ; !r.CheckBreak(); yyj3557++ { if yyj3557 >= len(yyv3557) { yyv3557 = append(yyv3557, ServiceAccount{}) // var yyz3557 ServiceAccount yyc3557 = true } yyh3557.ElemContainerState(yyj3557) if yyj3557 < len(yyv3557) { if r.TryDecodeAsNil() { yyv3557[yyj3557] = ServiceAccount{} } else { yyv3560 := &yyv3557[yyj3557] yyv3560.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3557 < len(yyv3557) { yyv3557 = yyv3557[:yyj3557] yyc3557 = true } else if yyj3557 == 0 && yyv3557 == nil { yyv3557 = []ServiceAccount{} yyc3557 = true } } yyh3557.End() if yyc3557 { *v = yyv3557 } } 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 _, yyv3561 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3562 := &yyv3561 yy3562.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 yyv3563 := *v yyh3563, yyl3563 := z.DecSliceHelperStart() var yyc3563 bool if yyl3563 == 0 { if yyv3563 == nil { yyv3563 = []EndpointSubset{} yyc3563 = true } else if len(yyv3563) != 0 { yyv3563 = yyv3563[:0] yyc3563 = true } } else if yyl3563 > 0 { var yyrr3563, yyrl3563 int var yyrt3563 bool if yyl3563 > cap(yyv3563) { yyrg3563 := len(yyv3563) > 0 yyv23563 := yyv3563 yyrl3563, yyrt3563 = z.DecInferLen(yyl3563, z.DecBasicHandle().MaxInitLen, 72) if yyrt3563 { if yyrl3563 <= cap(yyv3563) { yyv3563 = yyv3563[:yyrl3563] } else { yyv3563 = make([]EndpointSubset, yyrl3563) } } else { yyv3563 = make([]EndpointSubset, yyrl3563) } yyc3563 = true yyrr3563 = len(yyv3563) if yyrg3563 { copy(yyv3563, yyv23563) } } else if yyl3563 != len(yyv3563) { yyv3563 = yyv3563[:yyl3563] yyc3563 = true } yyj3563 := 0 for ; yyj3563 < yyrr3563; yyj3563++ { yyh3563.ElemContainerState(yyj3563) if r.TryDecodeAsNil() { yyv3563[yyj3563] = EndpointSubset{} } else { yyv3564 := &yyv3563[yyj3563] yyv3564.CodecDecodeSelf(d) } } if yyrt3563 { for ; yyj3563 < yyl3563; yyj3563++ { yyv3563 = append(yyv3563, EndpointSubset{}) yyh3563.ElemContainerState(yyj3563) if r.TryDecodeAsNil() { yyv3563[yyj3563] = EndpointSubset{} } else { yyv3565 := &yyv3563[yyj3563] yyv3565.CodecDecodeSelf(d) } } } } else { yyj3563 := 0 for ; !r.CheckBreak(); yyj3563++ { if yyj3563 >= len(yyv3563) { yyv3563 = append(yyv3563, EndpointSubset{}) // var yyz3563 EndpointSubset yyc3563 = true } yyh3563.ElemContainerState(yyj3563) if yyj3563 < len(yyv3563) { if r.TryDecodeAsNil() { yyv3563[yyj3563] = EndpointSubset{} } else { yyv3566 := &yyv3563[yyj3563] yyv3566.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3563 < len(yyv3563) { yyv3563 = yyv3563[:yyj3563] yyc3563 = true } else if yyj3563 == 0 && yyv3563 == nil { yyv3563 = []EndpointSubset{} yyc3563 = true } } yyh3563.End() if yyc3563 { *v = yyv3563 } } 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 _, yyv3567 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3568 := &yyv3567 yy3568.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 yyv3569 := *v yyh3569, yyl3569 := z.DecSliceHelperStart() var yyc3569 bool if yyl3569 == 0 { if yyv3569 == nil { yyv3569 = []EndpointAddress{} yyc3569 = true } else if len(yyv3569) != 0 { yyv3569 = yyv3569[:0] yyc3569 = true } } else if yyl3569 > 0 { var yyrr3569, yyrl3569 int var yyrt3569 bool if yyl3569 > cap(yyv3569) { yyrg3569 := len(yyv3569) > 0 yyv23569 := yyv3569 yyrl3569, yyrt3569 = z.DecInferLen(yyl3569, z.DecBasicHandle().MaxInitLen, 24) if yyrt3569 { if yyrl3569 <= cap(yyv3569) { yyv3569 = yyv3569[:yyrl3569] } else { yyv3569 = make([]EndpointAddress, yyrl3569) } } else { yyv3569 = make([]EndpointAddress, yyrl3569) } yyc3569 = true yyrr3569 = len(yyv3569) if yyrg3569 { copy(yyv3569, yyv23569) } } else if yyl3569 != len(yyv3569) { yyv3569 = yyv3569[:yyl3569] yyc3569 = true } yyj3569 := 0 for ; yyj3569 < yyrr3569; yyj3569++ { yyh3569.ElemContainerState(yyj3569) if r.TryDecodeAsNil() { yyv3569[yyj3569] = EndpointAddress{} } else { yyv3570 := &yyv3569[yyj3569] yyv3570.CodecDecodeSelf(d) } } if yyrt3569 { for ; yyj3569 < yyl3569; yyj3569++ { yyv3569 = append(yyv3569, EndpointAddress{}) yyh3569.ElemContainerState(yyj3569) if r.TryDecodeAsNil() { yyv3569[yyj3569] = EndpointAddress{} } else { yyv3571 := &yyv3569[yyj3569] yyv3571.CodecDecodeSelf(d) } } } } else { yyj3569 := 0 for ; !r.CheckBreak(); yyj3569++ { if yyj3569 >= len(yyv3569) { yyv3569 = append(yyv3569, EndpointAddress{}) // var yyz3569 EndpointAddress yyc3569 = true } yyh3569.ElemContainerState(yyj3569) if yyj3569 < len(yyv3569) { if r.TryDecodeAsNil() { yyv3569[yyj3569] = EndpointAddress{} } else { yyv3572 := &yyv3569[yyj3569] yyv3572.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3569 < len(yyv3569) { yyv3569 = yyv3569[:yyj3569] yyc3569 = true } else if yyj3569 == 0 && yyv3569 == nil { yyv3569 = []EndpointAddress{} yyc3569 = true } } yyh3569.End() if yyc3569 { *v = yyv3569 } } 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 _, yyv3573 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3574 := &yyv3573 yy3574.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 yyv3575 := *v yyh3575, yyl3575 := z.DecSliceHelperStart() var yyc3575 bool if yyl3575 == 0 { if yyv3575 == nil { yyv3575 = []EndpointPort{} yyc3575 = true } else if len(yyv3575) != 0 { yyv3575 = yyv3575[:0] yyc3575 = true } } else if yyl3575 > 0 { var yyrr3575, yyrl3575 int var yyrt3575 bool if yyl3575 > cap(yyv3575) { yyrg3575 := len(yyv3575) > 0 yyv23575 := yyv3575 yyrl3575, yyrt3575 = z.DecInferLen(yyl3575, z.DecBasicHandle().MaxInitLen, 40) if yyrt3575 { if yyrl3575 <= cap(yyv3575) { yyv3575 = yyv3575[:yyrl3575] } else { yyv3575 = make([]EndpointPort, yyrl3575) } } else { yyv3575 = make([]EndpointPort, yyrl3575) } yyc3575 = true yyrr3575 = len(yyv3575) if yyrg3575 { copy(yyv3575, yyv23575) } } else if yyl3575 != len(yyv3575) { yyv3575 = yyv3575[:yyl3575] yyc3575 = true } yyj3575 := 0 for ; yyj3575 < yyrr3575; yyj3575++ { yyh3575.ElemContainerState(yyj3575) if r.TryDecodeAsNil() { yyv3575[yyj3575] = EndpointPort{} } else { yyv3576 := &yyv3575[yyj3575] yyv3576.CodecDecodeSelf(d) } } if yyrt3575 { for ; yyj3575 < yyl3575; yyj3575++ { yyv3575 = append(yyv3575, EndpointPort{}) yyh3575.ElemContainerState(yyj3575) if r.TryDecodeAsNil() { yyv3575[yyj3575] = EndpointPort{} } else { yyv3577 := &yyv3575[yyj3575] yyv3577.CodecDecodeSelf(d) } } } } else { yyj3575 := 0 for ; !r.CheckBreak(); yyj3575++ { if yyj3575 >= len(yyv3575) { yyv3575 = append(yyv3575, EndpointPort{}) // var yyz3575 EndpointPort yyc3575 = true } yyh3575.ElemContainerState(yyj3575) if yyj3575 < len(yyv3575) { if r.TryDecodeAsNil() { yyv3575[yyj3575] = EndpointPort{} } else { yyv3578 := &yyv3575[yyj3575] yyv3578.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3575 < len(yyv3575) { yyv3575 = yyv3575[:yyj3575] yyc3575 = true } else if yyj3575 == 0 && yyv3575 == nil { yyv3575 = []EndpointPort{} yyc3575 = true } } yyh3575.End() if yyc3575 { *v = yyv3575 } } 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 _, yyv3579 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3580 := &yyv3579 yy3580.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 yyv3581 := *v yyh3581, yyl3581 := z.DecSliceHelperStart() var yyc3581 bool if yyl3581 == 0 { if yyv3581 == nil { yyv3581 = []Endpoints{} yyc3581 = true } else if len(yyv3581) != 0 { yyv3581 = yyv3581[:0] yyc3581 = true } } else if yyl3581 > 0 { var yyrr3581, yyrl3581 int var yyrt3581 bool if yyl3581 > cap(yyv3581) { yyrg3581 := len(yyv3581) > 0 yyv23581 := yyv3581 yyrl3581, yyrt3581 = z.DecInferLen(yyl3581, z.DecBasicHandle().MaxInitLen, 216) if yyrt3581 { if yyrl3581 <= cap(yyv3581) { yyv3581 = yyv3581[:yyrl3581] } else { yyv3581 = make([]Endpoints, yyrl3581) } } else { yyv3581 = make([]Endpoints, yyrl3581) } yyc3581 = true yyrr3581 = len(yyv3581) if yyrg3581 { copy(yyv3581, yyv23581) } } else if yyl3581 != len(yyv3581) { yyv3581 = yyv3581[:yyl3581] yyc3581 = true } yyj3581 := 0 for ; yyj3581 < yyrr3581; yyj3581++ { yyh3581.ElemContainerState(yyj3581) if r.TryDecodeAsNil() { yyv3581[yyj3581] = Endpoints{} } else { yyv3582 := &yyv3581[yyj3581] yyv3582.CodecDecodeSelf(d) } } if yyrt3581 { for ; yyj3581 < yyl3581; yyj3581++ { yyv3581 = append(yyv3581, Endpoints{}) yyh3581.ElemContainerState(yyj3581) if r.TryDecodeAsNil() { yyv3581[yyj3581] = Endpoints{} } else { yyv3583 := &yyv3581[yyj3581] yyv3583.CodecDecodeSelf(d) } } } } else { yyj3581 := 0 for ; !r.CheckBreak(); yyj3581++ { if yyj3581 >= len(yyv3581) { yyv3581 = append(yyv3581, Endpoints{}) // var yyz3581 Endpoints yyc3581 = true } yyh3581.ElemContainerState(yyj3581) if yyj3581 < len(yyv3581) { if r.TryDecodeAsNil() { yyv3581[yyj3581] = Endpoints{} } else { yyv3584 := &yyv3581[yyj3581] yyv3584.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3581 < len(yyv3581) { yyv3581 = yyv3581[:yyj3581] yyc3581 = true } else if yyj3581 == 0 && yyv3581 == nil { yyv3581 = []Endpoints{} yyc3581 = true } } yyh3581.End() if yyc3581 { *v = yyv3581 } } 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 _, yyv3585 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3586 := &yyv3585 yy3586.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 yyv3587 := *v yyh3587, yyl3587 := z.DecSliceHelperStart() var yyc3587 bool if yyl3587 == 0 { if yyv3587 == nil { yyv3587 = []NodeCondition{} yyc3587 = true } else if len(yyv3587) != 0 { yyv3587 = yyv3587[:0] yyc3587 = true } } else if yyl3587 > 0 { var yyrr3587, yyrl3587 int var yyrt3587 bool if yyl3587 > cap(yyv3587) { yyrg3587 := len(yyv3587) > 0 yyv23587 := yyv3587 yyrl3587, yyrt3587 = z.DecInferLen(yyl3587, z.DecBasicHandle().MaxInitLen, 112) if yyrt3587 { if yyrl3587 <= cap(yyv3587) { yyv3587 = yyv3587[:yyrl3587] } else { yyv3587 = make([]NodeCondition, yyrl3587) } } else { yyv3587 = make([]NodeCondition, yyrl3587) } yyc3587 = true yyrr3587 = len(yyv3587) if yyrg3587 { copy(yyv3587, yyv23587) } } else if yyl3587 != len(yyv3587) { yyv3587 = yyv3587[:yyl3587] yyc3587 = true } yyj3587 := 0 for ; yyj3587 < yyrr3587; yyj3587++ { yyh3587.ElemContainerState(yyj3587) if r.TryDecodeAsNil() { yyv3587[yyj3587] = NodeCondition{} } else { yyv3588 := &yyv3587[yyj3587] yyv3588.CodecDecodeSelf(d) } } if yyrt3587 { for ; yyj3587 < yyl3587; yyj3587++ { yyv3587 = append(yyv3587, NodeCondition{}) yyh3587.ElemContainerState(yyj3587) if r.TryDecodeAsNil() { yyv3587[yyj3587] = NodeCondition{} } else { yyv3589 := &yyv3587[yyj3587] yyv3589.CodecDecodeSelf(d) } } } } else { yyj3587 := 0 for ; !r.CheckBreak(); yyj3587++ { if yyj3587 >= len(yyv3587) { yyv3587 = append(yyv3587, NodeCondition{}) // var yyz3587 NodeCondition yyc3587 = true } yyh3587.ElemContainerState(yyj3587) if yyj3587 < len(yyv3587) { if r.TryDecodeAsNil() { yyv3587[yyj3587] = NodeCondition{} } else { yyv3590 := &yyv3587[yyj3587] yyv3590.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3587 < len(yyv3587) { yyv3587 = yyv3587[:yyj3587] yyc3587 = true } else if yyj3587 == 0 && yyv3587 == nil { yyv3587 = []NodeCondition{} yyc3587 = true } } yyh3587.End() if yyc3587 { *v = yyv3587 } } 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 _, yyv3591 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3592 := &yyv3591 yy3592.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 yyv3593 := *v yyh3593, yyl3593 := z.DecSliceHelperStart() var yyc3593 bool if yyl3593 == 0 { if yyv3593 == nil { yyv3593 = []NodeAddress{} yyc3593 = true } else if len(yyv3593) != 0 { yyv3593 = yyv3593[:0] yyc3593 = true } } else if yyl3593 > 0 { var yyrr3593, yyrl3593 int var yyrt3593 bool if yyl3593 > cap(yyv3593) { yyrg3593 := len(yyv3593) > 0 yyv23593 := yyv3593 yyrl3593, yyrt3593 = z.DecInferLen(yyl3593, z.DecBasicHandle().MaxInitLen, 32) if yyrt3593 { if yyrl3593 <= cap(yyv3593) { yyv3593 = yyv3593[:yyrl3593] } else { yyv3593 = make([]NodeAddress, yyrl3593) } } else { yyv3593 = make([]NodeAddress, yyrl3593) } yyc3593 = true yyrr3593 = len(yyv3593) if yyrg3593 { copy(yyv3593, yyv23593) } } else if yyl3593 != len(yyv3593) { yyv3593 = yyv3593[:yyl3593] yyc3593 = true } yyj3593 := 0 for ; yyj3593 < yyrr3593; yyj3593++ { yyh3593.ElemContainerState(yyj3593) if r.TryDecodeAsNil() { yyv3593[yyj3593] = NodeAddress{} } else { yyv3594 := &yyv3593[yyj3593] yyv3594.CodecDecodeSelf(d) } } if yyrt3593 { for ; yyj3593 < yyl3593; yyj3593++ { yyv3593 = append(yyv3593, NodeAddress{}) yyh3593.ElemContainerState(yyj3593) if r.TryDecodeAsNil() { yyv3593[yyj3593] = NodeAddress{} } else { yyv3595 := &yyv3593[yyj3593] yyv3595.CodecDecodeSelf(d) } } } } else { yyj3593 := 0 for ; !r.CheckBreak(); yyj3593++ { if yyj3593 >= len(yyv3593) { yyv3593 = append(yyv3593, NodeAddress{}) // var yyz3593 NodeAddress yyc3593 = true } yyh3593.ElemContainerState(yyj3593) if yyj3593 < len(yyv3593) { if r.TryDecodeAsNil() { yyv3593[yyj3593] = NodeAddress{} } else { yyv3596 := &yyv3593[yyj3593] yyv3596.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3593 < len(yyv3593) { yyv3593 = yyv3593[:yyj3593] yyc3593 = true } else if yyj3593 == 0 && yyv3593 == nil { yyv3593 = []NodeAddress{} yyc3593 = true } } yyh3593.End() if yyc3593 { *v = yyv3593 } } 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 yyk3597, yyv3597 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk3597.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3598 := &yyv3597 yym3599 := z.EncBinary() _ = yym3599 if false { } else if z.HasExtensions() && z.EncExt(yy3598) { } else if !yym3599 && z.IsJSONHandle() { z.EncJSONMarshal(yy3598) } else { z.EncFallback(yy3598) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3600 := *v yyl3600 := r.ReadMapStart() yybh3600 := z.DecBasicHandle() if yyv3600 == nil { yyrl3600, _ := z.DecInferLen(yyl3600, yybh3600.MaxInitLen, 40) yyv3600 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3600) *v = yyv3600 } var yymk3600 ResourceName var yymv3600 pkg3_resource.Quantity var yymg3600 bool if yybh3600.MapValueReset { yymg3600 = true } if yyl3600 > 0 { for yyj3600 := 0; yyj3600 < yyl3600; yyj3600++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3600 = "" } else { yymk3600 = ResourceName(r.DecodeString()) } if yymg3600 { yymv3600 = yyv3600[yymk3600] } else { yymv3600 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3600 = pkg3_resource.Quantity{} } else { yyv3602 := &yymv3600 yym3603 := z.DecBinary() _ = yym3603 if false { } else if z.HasExtensions() && z.DecExt(yyv3602) { } else if !yym3603 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3602) } else { z.DecFallback(yyv3602, false) } } if yyv3600 != nil { yyv3600[yymk3600] = yymv3600 } } } else if yyl3600 < 0 { for yyj3600 := 0; !r.CheckBreak(); yyj3600++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3600 = "" } else { yymk3600 = ResourceName(r.DecodeString()) } if yymg3600 { yymv3600 = yyv3600[yymk3600] } else { yymv3600 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3600 = pkg3_resource.Quantity{} } else { yyv3605 := &yymv3600 yym3606 := z.DecBinary() _ = yym3606 if false { } else if z.HasExtensions() && z.DecExt(yyv3605) { } else if !yym3606 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3605) } else { z.DecFallback(yyv3605, false) } } if yyv3600 != nil { yyv3600[yymk3600] = yymv3600 } } } // 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 _, yyv3607 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3608 := &yyv3607 yy3608.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 yyv3609 := *v yyh3609, yyl3609 := z.DecSliceHelperStart() var yyc3609 bool if yyl3609 == 0 { if yyv3609 == nil { yyv3609 = []Node{} yyc3609 = true } else if len(yyv3609) != 0 { yyv3609 = yyv3609[:0] yyc3609 = true } } else if yyl3609 > 0 { var yyrr3609, yyrl3609 int var yyrt3609 bool if yyl3609 > cap(yyv3609) { yyrg3609 := len(yyv3609) > 0 yyv23609 := yyv3609 yyrl3609, yyrt3609 = z.DecInferLen(yyl3609, z.DecBasicHandle().MaxInitLen, 456) if yyrt3609 { if yyrl3609 <= cap(yyv3609) { yyv3609 = yyv3609[:yyrl3609] } else { yyv3609 = make([]Node, yyrl3609) } } else { yyv3609 = make([]Node, yyrl3609) } yyc3609 = true yyrr3609 = len(yyv3609) if yyrg3609 { copy(yyv3609, yyv23609) } } else if yyl3609 != len(yyv3609) { yyv3609 = yyv3609[:yyl3609] yyc3609 = true } yyj3609 := 0 for ; yyj3609 < yyrr3609; yyj3609++ { yyh3609.ElemContainerState(yyj3609) if r.TryDecodeAsNil() { yyv3609[yyj3609] = Node{} } else { yyv3610 := &yyv3609[yyj3609] yyv3610.CodecDecodeSelf(d) } } if yyrt3609 { for ; yyj3609 < yyl3609; yyj3609++ { yyv3609 = append(yyv3609, Node{}) yyh3609.ElemContainerState(yyj3609) if r.TryDecodeAsNil() { yyv3609[yyj3609] = Node{} } else { yyv3611 := &yyv3609[yyj3609] yyv3611.CodecDecodeSelf(d) } } } } else { yyj3609 := 0 for ; !r.CheckBreak(); yyj3609++ { if yyj3609 >= len(yyv3609) { yyv3609 = append(yyv3609, Node{}) // var yyz3609 Node yyc3609 = true } yyh3609.ElemContainerState(yyj3609) if yyj3609 < len(yyv3609) { if r.TryDecodeAsNil() { yyv3609[yyj3609] = Node{} } else { yyv3612 := &yyv3609[yyj3609] yyv3612.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3609 < len(yyv3609) { yyv3609 = yyv3609[:yyj3609] yyc3609 = true } else if yyj3609 == 0 && yyv3609 == nil { yyv3609 = []Node{} yyc3609 = true } } yyh3609.End() if yyc3609 { *v = yyv3609 } } 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 _, yyv3613 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3613.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 yyv3614 := *v yyh3614, yyl3614 := z.DecSliceHelperStart() var yyc3614 bool if yyl3614 == 0 { if yyv3614 == nil { yyv3614 = []FinalizerName{} yyc3614 = true } else if len(yyv3614) != 0 { yyv3614 = yyv3614[:0] yyc3614 = true } } else if yyl3614 > 0 { var yyrr3614, yyrl3614 int var yyrt3614 bool if yyl3614 > cap(yyv3614) { yyrl3614, yyrt3614 = z.DecInferLen(yyl3614, z.DecBasicHandle().MaxInitLen, 16) if yyrt3614 { if yyrl3614 <= cap(yyv3614) { yyv3614 = yyv3614[:yyrl3614] } else { yyv3614 = make([]FinalizerName, yyrl3614) } } else { yyv3614 = make([]FinalizerName, yyrl3614) } yyc3614 = true yyrr3614 = len(yyv3614) } else if yyl3614 != len(yyv3614) { yyv3614 = yyv3614[:yyl3614] yyc3614 = true } yyj3614 := 0 for ; yyj3614 < yyrr3614; yyj3614++ { yyh3614.ElemContainerState(yyj3614) if r.TryDecodeAsNil() { yyv3614[yyj3614] = "" } else { yyv3614[yyj3614] = FinalizerName(r.DecodeString()) } } if yyrt3614 { for ; yyj3614 < yyl3614; yyj3614++ { yyv3614 = append(yyv3614, "") yyh3614.ElemContainerState(yyj3614) if r.TryDecodeAsNil() { yyv3614[yyj3614] = "" } else { yyv3614[yyj3614] = FinalizerName(r.DecodeString()) } } } } else { yyj3614 := 0 for ; !r.CheckBreak(); yyj3614++ { if yyj3614 >= len(yyv3614) { yyv3614 = append(yyv3614, "") // var yyz3614 FinalizerName yyc3614 = true } yyh3614.ElemContainerState(yyj3614) if yyj3614 < len(yyv3614) { if r.TryDecodeAsNil() { yyv3614[yyj3614] = "" } else { yyv3614[yyj3614] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3614 < len(yyv3614) { yyv3614 = yyv3614[:yyj3614] yyc3614 = true } else if yyj3614 == 0 && yyv3614 == nil { yyv3614 = []FinalizerName{} yyc3614 = true } } yyh3614.End() if yyc3614 { *v = yyv3614 } } 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 _, yyv3618 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3619 := &yyv3618 yy3619.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 yyv3620 := *v yyh3620, yyl3620 := z.DecSliceHelperStart() var yyc3620 bool if yyl3620 == 0 { if yyv3620 == nil { yyv3620 = []Namespace{} yyc3620 = true } else if len(yyv3620) != 0 { yyv3620 = yyv3620[:0] yyc3620 = true } } else if yyl3620 > 0 { var yyrr3620, yyrl3620 int var yyrt3620 bool if yyl3620 > cap(yyv3620) { yyrg3620 := len(yyv3620) > 0 yyv23620 := yyv3620 yyrl3620, yyrt3620 = z.DecInferLen(yyl3620, z.DecBasicHandle().MaxInitLen, 232) if yyrt3620 { if yyrl3620 <= cap(yyv3620) { yyv3620 = yyv3620[:yyrl3620] } else { yyv3620 = make([]Namespace, yyrl3620) } } else { yyv3620 = make([]Namespace, yyrl3620) } yyc3620 = true yyrr3620 = len(yyv3620) if yyrg3620 { copy(yyv3620, yyv23620) } } else if yyl3620 != len(yyv3620) { yyv3620 = yyv3620[:yyl3620] yyc3620 = true } yyj3620 := 0 for ; yyj3620 < yyrr3620; yyj3620++ { yyh3620.ElemContainerState(yyj3620) if r.TryDecodeAsNil() { yyv3620[yyj3620] = Namespace{} } else { yyv3621 := &yyv3620[yyj3620] yyv3621.CodecDecodeSelf(d) } } if yyrt3620 { for ; yyj3620 < yyl3620; yyj3620++ { yyv3620 = append(yyv3620, Namespace{}) yyh3620.ElemContainerState(yyj3620) if r.TryDecodeAsNil() { yyv3620[yyj3620] = Namespace{} } else { yyv3622 := &yyv3620[yyj3620] yyv3622.CodecDecodeSelf(d) } } } } else { yyj3620 := 0 for ; !r.CheckBreak(); yyj3620++ { if yyj3620 >= len(yyv3620) { yyv3620 = append(yyv3620, Namespace{}) // var yyz3620 Namespace yyc3620 = true } yyh3620.ElemContainerState(yyj3620) if yyj3620 < len(yyv3620) { if r.TryDecodeAsNil() { yyv3620[yyj3620] = Namespace{} } else { yyv3623 := &yyv3620[yyj3620] yyv3623.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3620 < len(yyv3620) { yyv3620 = yyv3620[:yyj3620] yyc3620 = true } else if yyj3620 == 0 && yyv3620 == nil { yyv3620 = []Namespace{} yyc3620 = true } } yyh3620.End() if yyc3620 { *v = yyv3620 } } 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 _, yyv3624 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3625 := &yyv3624 yy3625.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 yyv3626 := *v yyh3626, yyl3626 := z.DecSliceHelperStart() var yyc3626 bool if yyl3626 == 0 { if yyv3626 == nil { yyv3626 = []Event{} yyc3626 = true } else if len(yyv3626) != 0 { yyv3626 = yyv3626[:0] yyc3626 = true } } else if yyl3626 > 0 { var yyrr3626, yyrl3626 int var yyrt3626 bool if yyl3626 > cap(yyv3626) { yyrg3626 := len(yyv3626) > 0 yyv23626 := yyv3626 yyrl3626, yyrt3626 = z.DecInferLen(yyl3626, z.DecBasicHandle().MaxInitLen, 440) if yyrt3626 { if yyrl3626 <= cap(yyv3626) { yyv3626 = yyv3626[:yyrl3626] } else { yyv3626 = make([]Event, yyrl3626) } } else { yyv3626 = make([]Event, yyrl3626) } yyc3626 = true yyrr3626 = len(yyv3626) if yyrg3626 { copy(yyv3626, yyv23626) } } else if yyl3626 != len(yyv3626) { yyv3626 = yyv3626[:yyl3626] yyc3626 = true } yyj3626 := 0 for ; yyj3626 < yyrr3626; yyj3626++ { yyh3626.ElemContainerState(yyj3626) if r.TryDecodeAsNil() { yyv3626[yyj3626] = Event{} } else { yyv3627 := &yyv3626[yyj3626] yyv3627.CodecDecodeSelf(d) } } if yyrt3626 { for ; yyj3626 < yyl3626; yyj3626++ { yyv3626 = append(yyv3626, Event{}) yyh3626.ElemContainerState(yyj3626) if r.TryDecodeAsNil() { yyv3626[yyj3626] = Event{} } else { yyv3628 := &yyv3626[yyj3626] yyv3628.CodecDecodeSelf(d) } } } } else { yyj3626 := 0 for ; !r.CheckBreak(); yyj3626++ { if yyj3626 >= len(yyv3626) { yyv3626 = append(yyv3626, Event{}) // var yyz3626 Event yyc3626 = true } yyh3626.ElemContainerState(yyj3626) if yyj3626 < len(yyv3626) { if r.TryDecodeAsNil() { yyv3626[yyj3626] = Event{} } else { yyv3629 := &yyv3626[yyj3626] yyv3629.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3626 < len(yyv3626) { yyv3626 = yyv3626[:yyj3626] yyc3626 = true } else if yyj3626 == 0 && yyv3626 == nil { yyv3626 = []Event{} yyc3626 = true } } yyh3626.End() if yyc3626 { *v = yyv3626 } } func (x codecSelfer1234) encSliceruntime_Object(v []pkg6_runtime.Object, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv3630 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv3630 == nil { r.EncodeNil() } else { yym3631 := z.EncBinary() _ = yym3631 if false { } else if z.HasExtensions() && z.EncExt(yyv3630) { } else { z.EncFallback(yyv3630) } } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg6_runtime.Object, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3632 := *v yyh3632, yyl3632 := z.DecSliceHelperStart() var yyc3632 bool if yyl3632 == 0 { if yyv3632 == nil { yyv3632 = []pkg6_runtime.Object{} yyc3632 = true } else if len(yyv3632) != 0 { yyv3632 = yyv3632[:0] yyc3632 = true } } else if yyl3632 > 0 { var yyrr3632, yyrl3632 int var yyrt3632 bool if yyl3632 > cap(yyv3632) { yyrg3632 := len(yyv3632) > 0 yyv23632 := yyv3632 yyrl3632, yyrt3632 = z.DecInferLen(yyl3632, z.DecBasicHandle().MaxInitLen, 16) if yyrt3632 { if yyrl3632 <= cap(yyv3632) { yyv3632 = yyv3632[:yyrl3632] } else { yyv3632 = make([]pkg6_runtime.Object, yyrl3632) } } else { yyv3632 = make([]pkg6_runtime.Object, yyrl3632) } yyc3632 = true yyrr3632 = len(yyv3632) if yyrg3632 { copy(yyv3632, yyv23632) } } else if yyl3632 != len(yyv3632) { yyv3632 = yyv3632[:yyl3632] yyc3632 = true } yyj3632 := 0 for ; yyj3632 < yyrr3632; yyj3632++ { yyh3632.ElemContainerState(yyj3632) if r.TryDecodeAsNil() { yyv3632[yyj3632] = nil } else { yyv3633 := &yyv3632[yyj3632] yym3634 := z.DecBinary() _ = yym3634 if false { } else if z.HasExtensions() && z.DecExt(yyv3633) { } else { z.DecFallback(yyv3633, true) } } } if yyrt3632 { for ; yyj3632 < yyl3632; yyj3632++ { yyv3632 = append(yyv3632, nil) yyh3632.ElemContainerState(yyj3632) if r.TryDecodeAsNil() { yyv3632[yyj3632] = nil } else { yyv3635 := &yyv3632[yyj3632] yym3636 := z.DecBinary() _ = yym3636 if false { } else if z.HasExtensions() && z.DecExt(yyv3635) { } else { z.DecFallback(yyv3635, true) } } } } } else { yyj3632 := 0 for ; !r.CheckBreak(); yyj3632++ { if yyj3632 >= len(yyv3632) { yyv3632 = append(yyv3632, nil) // var yyz3632 pkg6_runtime.Object yyc3632 = true } yyh3632.ElemContainerState(yyj3632) if yyj3632 < len(yyv3632) { if r.TryDecodeAsNil() { yyv3632[yyj3632] = nil } else { yyv3637 := &yyv3632[yyj3632] yym3638 := z.DecBinary() _ = yym3638 if false { } else if z.HasExtensions() && z.DecExt(yyv3637) { } else { z.DecFallback(yyv3637, true) } } } else { z.DecSwallow() } } if yyj3632 < len(yyv3632) { yyv3632 = yyv3632[:yyj3632] yyc3632 = true } else if yyj3632 == 0 && yyv3632 == nil { yyv3632 = []pkg6_runtime.Object{} yyc3632 = true } } yyh3632.End() if yyc3632 { *v = yyv3632 } } 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 _, yyv3639 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3640 := &yyv3639 yy3640.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 yyv3641 := *v yyh3641, yyl3641 := z.DecSliceHelperStart() var yyc3641 bool if yyl3641 == 0 { if yyv3641 == nil { yyv3641 = []LimitRangeItem{} yyc3641 = true } else if len(yyv3641) != 0 { yyv3641 = yyv3641[:0] yyc3641 = true } } else if yyl3641 > 0 { var yyrr3641, yyrl3641 int var yyrt3641 bool if yyl3641 > cap(yyv3641) { yyrg3641 := len(yyv3641) > 0 yyv23641 := yyv3641 yyrl3641, yyrt3641 = z.DecInferLen(yyl3641, z.DecBasicHandle().MaxInitLen, 56) if yyrt3641 { if yyrl3641 <= cap(yyv3641) { yyv3641 = yyv3641[:yyrl3641] } else { yyv3641 = make([]LimitRangeItem, yyrl3641) } } else { yyv3641 = make([]LimitRangeItem, yyrl3641) } yyc3641 = true yyrr3641 = len(yyv3641) if yyrg3641 { copy(yyv3641, yyv23641) } } else if yyl3641 != len(yyv3641) { yyv3641 = yyv3641[:yyl3641] yyc3641 = true } yyj3641 := 0 for ; yyj3641 < yyrr3641; yyj3641++ { yyh3641.ElemContainerState(yyj3641) if r.TryDecodeAsNil() { yyv3641[yyj3641] = LimitRangeItem{} } else { yyv3642 := &yyv3641[yyj3641] yyv3642.CodecDecodeSelf(d) } } if yyrt3641 { for ; yyj3641 < yyl3641; yyj3641++ { yyv3641 = append(yyv3641, LimitRangeItem{}) yyh3641.ElemContainerState(yyj3641) if r.TryDecodeAsNil() { yyv3641[yyj3641] = LimitRangeItem{} } else { yyv3643 := &yyv3641[yyj3641] yyv3643.CodecDecodeSelf(d) } } } } else { yyj3641 := 0 for ; !r.CheckBreak(); yyj3641++ { if yyj3641 >= len(yyv3641) { yyv3641 = append(yyv3641, LimitRangeItem{}) // var yyz3641 LimitRangeItem yyc3641 = true } yyh3641.ElemContainerState(yyj3641) if yyj3641 < len(yyv3641) { if r.TryDecodeAsNil() { yyv3641[yyj3641] = LimitRangeItem{} } else { yyv3644 := &yyv3641[yyj3641] yyv3644.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3641 < len(yyv3641) { yyv3641 = yyv3641[:yyj3641] yyc3641 = true } else if yyj3641 == 0 && yyv3641 == nil { yyv3641 = []LimitRangeItem{} yyc3641 = true } } yyh3641.End() if yyc3641 { *v = yyv3641 } } 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 _, yyv3645 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3646 := &yyv3645 yy3646.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 yyv3647 := *v yyh3647, yyl3647 := z.DecSliceHelperStart() var yyc3647 bool if yyl3647 == 0 { if yyv3647 == nil { yyv3647 = []LimitRange{} yyc3647 = true } else if len(yyv3647) != 0 { yyv3647 = yyv3647[:0] yyc3647 = true } } else if yyl3647 > 0 { var yyrr3647, yyrl3647 int var yyrt3647 bool if yyl3647 > cap(yyv3647) { yyrg3647 := len(yyv3647) > 0 yyv23647 := yyv3647 yyrl3647, yyrt3647 = z.DecInferLen(yyl3647, z.DecBasicHandle().MaxInitLen, 216) if yyrt3647 { if yyrl3647 <= cap(yyv3647) { yyv3647 = yyv3647[:yyrl3647] } else { yyv3647 = make([]LimitRange, yyrl3647) } } else { yyv3647 = make([]LimitRange, yyrl3647) } yyc3647 = true yyrr3647 = len(yyv3647) if yyrg3647 { copy(yyv3647, yyv23647) } } else if yyl3647 != len(yyv3647) { yyv3647 = yyv3647[:yyl3647] yyc3647 = true } yyj3647 := 0 for ; yyj3647 < yyrr3647; yyj3647++ { yyh3647.ElemContainerState(yyj3647) if r.TryDecodeAsNil() { yyv3647[yyj3647] = LimitRange{} } else { yyv3648 := &yyv3647[yyj3647] yyv3648.CodecDecodeSelf(d) } } if yyrt3647 { for ; yyj3647 < yyl3647; yyj3647++ { yyv3647 = append(yyv3647, LimitRange{}) yyh3647.ElemContainerState(yyj3647) if r.TryDecodeAsNil() { yyv3647[yyj3647] = LimitRange{} } else { yyv3649 := &yyv3647[yyj3647] yyv3649.CodecDecodeSelf(d) } } } } else { yyj3647 := 0 for ; !r.CheckBreak(); yyj3647++ { if yyj3647 >= len(yyv3647) { yyv3647 = append(yyv3647, LimitRange{}) // var yyz3647 LimitRange yyc3647 = true } yyh3647.ElemContainerState(yyj3647) if yyj3647 < len(yyv3647) { if r.TryDecodeAsNil() { yyv3647[yyj3647] = LimitRange{} } else { yyv3650 := &yyv3647[yyj3647] yyv3650.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3647 < len(yyv3647) { yyv3647 = yyv3647[:yyj3647] yyc3647 = true } else if yyj3647 == 0 && yyv3647 == nil { yyv3647 = []LimitRange{} yyc3647 = true } } yyh3647.End() if yyc3647 { *v = yyv3647 } } 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 _, yyv3651 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3652 := &yyv3651 yy3652.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 yyv3653 := *v yyh3653, yyl3653 := z.DecSliceHelperStart() var yyc3653 bool if yyl3653 == 0 { if yyv3653 == nil { yyv3653 = []ResourceQuota{} yyc3653 = true } else if len(yyv3653) != 0 { yyv3653 = yyv3653[:0] yyc3653 = true } } else if yyl3653 > 0 { var yyrr3653, yyrl3653 int var yyrt3653 bool if yyl3653 > cap(yyv3653) { yyrg3653 := len(yyv3653) > 0 yyv23653 := yyv3653 yyrl3653, yyrt3653 = z.DecInferLen(yyl3653, z.DecBasicHandle().MaxInitLen, 216) if yyrt3653 { if yyrl3653 <= cap(yyv3653) { yyv3653 = yyv3653[:yyrl3653] } else { yyv3653 = make([]ResourceQuota, yyrl3653) } } else { yyv3653 = make([]ResourceQuota, yyrl3653) } yyc3653 = true yyrr3653 = len(yyv3653) if yyrg3653 { copy(yyv3653, yyv23653) } } else if yyl3653 != len(yyv3653) { yyv3653 = yyv3653[:yyl3653] yyc3653 = true } yyj3653 := 0 for ; yyj3653 < yyrr3653; yyj3653++ { yyh3653.ElemContainerState(yyj3653) if r.TryDecodeAsNil() { yyv3653[yyj3653] = ResourceQuota{} } else { yyv3654 := &yyv3653[yyj3653] yyv3654.CodecDecodeSelf(d) } } if yyrt3653 { for ; yyj3653 < yyl3653; yyj3653++ { yyv3653 = append(yyv3653, ResourceQuota{}) yyh3653.ElemContainerState(yyj3653) if r.TryDecodeAsNil() { yyv3653[yyj3653] = ResourceQuota{} } else { yyv3655 := &yyv3653[yyj3653] yyv3655.CodecDecodeSelf(d) } } } } else { yyj3653 := 0 for ; !r.CheckBreak(); yyj3653++ { if yyj3653 >= len(yyv3653) { yyv3653 = append(yyv3653, ResourceQuota{}) // var yyz3653 ResourceQuota yyc3653 = true } yyh3653.ElemContainerState(yyj3653) if yyj3653 < len(yyv3653) { if r.TryDecodeAsNil() { yyv3653[yyj3653] = ResourceQuota{} } else { yyv3656 := &yyv3653[yyj3653] yyv3656.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3653 < len(yyv3653) { yyv3653 = yyv3653[:yyj3653] yyc3653 = true } else if yyj3653 == 0 && yyv3653 == nil { yyv3653 = []ResourceQuota{} yyc3653 = true } } yyh3653.End() if yyc3653 { *v = yyv3653 } } 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 yyk3657, yyv3657 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym3658 := z.EncBinary() _ = yym3658 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk3657)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv3657 == nil { r.EncodeNil() } else { yym3659 := z.EncBinary() _ = yym3659 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv3657)) } } } 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 yyv3660 := *v yyl3660 := r.ReadMapStart() yybh3660 := z.DecBasicHandle() if yyv3660 == nil { yyrl3660, _ := z.DecInferLen(yyl3660, yybh3660.MaxInitLen, 40) yyv3660 = make(map[string][]uint8, yyrl3660) *v = yyv3660 } var yymk3660 string var yymv3660 []uint8 var yymg3660 bool if yybh3660.MapValueReset { yymg3660 = true } if yyl3660 > 0 { for yyj3660 := 0; yyj3660 < yyl3660; yyj3660++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3660 = "" } else { yymk3660 = string(r.DecodeString()) } if yymg3660 { yymv3660 = yyv3660[yymk3660] } else { yymv3660 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3660 = nil } else { yyv3662 := &yymv3660 yym3663 := z.DecBinary() _ = yym3663 if false { } else { *yyv3662 = r.DecodeBytes(*(*[]byte)(yyv3662), false, false) } } if yyv3660 != nil { yyv3660[yymk3660] = yymv3660 } } } else if yyl3660 < 0 { for yyj3660 := 0; !r.CheckBreak(); yyj3660++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3660 = "" } else { yymk3660 = string(r.DecodeString()) } if yymg3660 { yymv3660 = yyv3660[yymk3660] } else { yymv3660 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3660 = nil } else { yyv3665 := &yymv3660 yym3666 := z.DecBinary() _ = yym3666 if false { } else { *yyv3665 = r.DecodeBytes(*(*[]byte)(yyv3665), false, false) } } if yyv3660 != nil { yyv3660[yymk3660] = yymv3660 } } } // 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 _, yyv3667 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3668 := &yyv3667 yy3668.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 yyv3669 := *v yyh3669, yyl3669 := z.DecSliceHelperStart() var yyc3669 bool if yyl3669 == 0 { if yyv3669 == nil { yyv3669 = []Secret{} yyc3669 = true } else if len(yyv3669) != 0 { yyv3669 = yyv3669[:0] yyc3669 = true } } else if yyl3669 > 0 { var yyrr3669, yyrl3669 int var yyrt3669 bool if yyl3669 > cap(yyv3669) { yyrg3669 := len(yyv3669) > 0 yyv23669 := yyv3669 yyrl3669, yyrt3669 = z.DecInferLen(yyl3669, z.DecBasicHandle().MaxInitLen, 216) if yyrt3669 { if yyrl3669 <= cap(yyv3669) { yyv3669 = yyv3669[:yyrl3669] } else { yyv3669 = make([]Secret, yyrl3669) } } else { yyv3669 = make([]Secret, yyrl3669) } yyc3669 = true yyrr3669 = len(yyv3669) if yyrg3669 { copy(yyv3669, yyv23669) } } else if yyl3669 != len(yyv3669) { yyv3669 = yyv3669[:yyl3669] yyc3669 = true } yyj3669 := 0 for ; yyj3669 < yyrr3669; yyj3669++ { yyh3669.ElemContainerState(yyj3669) if r.TryDecodeAsNil() { yyv3669[yyj3669] = Secret{} } else { yyv3670 := &yyv3669[yyj3669] yyv3670.CodecDecodeSelf(d) } } if yyrt3669 { for ; yyj3669 < yyl3669; yyj3669++ { yyv3669 = append(yyv3669, Secret{}) yyh3669.ElemContainerState(yyj3669) if r.TryDecodeAsNil() { yyv3669[yyj3669] = Secret{} } else { yyv3671 := &yyv3669[yyj3669] yyv3671.CodecDecodeSelf(d) } } } } else { yyj3669 := 0 for ; !r.CheckBreak(); yyj3669++ { if yyj3669 >= len(yyv3669) { yyv3669 = append(yyv3669, Secret{}) // var yyz3669 Secret yyc3669 = true } yyh3669.ElemContainerState(yyj3669) if yyj3669 < len(yyv3669) { if r.TryDecodeAsNil() { yyv3669[yyj3669] = Secret{} } else { yyv3672 := &yyv3669[yyj3669] yyv3672.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3669 < len(yyv3669) { yyv3669 = yyv3669[:yyj3669] yyc3669 = true } else if yyj3669 == 0 && yyv3669 == nil { yyv3669 = []Secret{} yyc3669 = true } } yyh3669.End() if yyc3669 { *v = yyv3669 } } 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 _, yyv3673 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3674 := &yyv3673 yy3674.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 yyv3675 := *v yyh3675, yyl3675 := z.DecSliceHelperStart() var yyc3675 bool if yyl3675 == 0 { if yyv3675 == nil { yyv3675 = []ComponentCondition{} yyc3675 = true } else if len(yyv3675) != 0 { yyv3675 = yyv3675[:0] yyc3675 = true } } else if yyl3675 > 0 { var yyrr3675, yyrl3675 int var yyrt3675 bool if yyl3675 > cap(yyv3675) { yyrg3675 := len(yyv3675) > 0 yyv23675 := yyv3675 yyrl3675, yyrt3675 = z.DecInferLen(yyl3675, z.DecBasicHandle().MaxInitLen, 64) if yyrt3675 { if yyrl3675 <= cap(yyv3675) { yyv3675 = yyv3675[:yyrl3675] } else { yyv3675 = make([]ComponentCondition, yyrl3675) } } else { yyv3675 = make([]ComponentCondition, yyrl3675) } yyc3675 = true yyrr3675 = len(yyv3675) if yyrg3675 { copy(yyv3675, yyv23675) } } else if yyl3675 != len(yyv3675) { yyv3675 = yyv3675[:yyl3675] yyc3675 = true } yyj3675 := 0 for ; yyj3675 < yyrr3675; yyj3675++ { yyh3675.ElemContainerState(yyj3675) if r.TryDecodeAsNil() { yyv3675[yyj3675] = ComponentCondition{} } else { yyv3676 := &yyv3675[yyj3675] yyv3676.CodecDecodeSelf(d) } } if yyrt3675 { for ; yyj3675 < yyl3675; yyj3675++ { yyv3675 = append(yyv3675, ComponentCondition{}) yyh3675.ElemContainerState(yyj3675) if r.TryDecodeAsNil() { yyv3675[yyj3675] = ComponentCondition{} } else { yyv3677 := &yyv3675[yyj3675] yyv3677.CodecDecodeSelf(d) } } } } else { yyj3675 := 0 for ; !r.CheckBreak(); yyj3675++ { if yyj3675 >= len(yyv3675) { yyv3675 = append(yyv3675, ComponentCondition{}) // var yyz3675 ComponentCondition yyc3675 = true } yyh3675.ElemContainerState(yyj3675) if yyj3675 < len(yyv3675) { if r.TryDecodeAsNil() { yyv3675[yyj3675] = ComponentCondition{} } else { yyv3678 := &yyv3675[yyj3675] yyv3678.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3675 < len(yyv3675) { yyv3675 = yyv3675[:yyj3675] yyc3675 = true } else if yyj3675 == 0 && yyv3675 == nil { yyv3675 = []ComponentCondition{} yyc3675 = true } } yyh3675.End() if yyc3675 { *v = yyv3675 } } 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 _, yyv3679 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3680 := &yyv3679 yy3680.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 yyv3681 := *v yyh3681, yyl3681 := z.DecSliceHelperStart() var yyc3681 bool if yyl3681 == 0 { if yyv3681 == nil { yyv3681 = []ComponentStatus{} yyc3681 = true } else if len(yyv3681) != 0 { yyv3681 = yyv3681[:0] yyc3681 = true } } else if yyl3681 > 0 { var yyrr3681, yyrl3681 int var yyrt3681 bool if yyl3681 > cap(yyv3681) { yyrg3681 := len(yyv3681) > 0 yyv23681 := yyv3681 yyrl3681, yyrt3681 = z.DecInferLen(yyl3681, z.DecBasicHandle().MaxInitLen, 216) if yyrt3681 { if yyrl3681 <= cap(yyv3681) { yyv3681 = yyv3681[:yyrl3681] } else { yyv3681 = make([]ComponentStatus, yyrl3681) } } else { yyv3681 = make([]ComponentStatus, yyrl3681) } yyc3681 = true yyrr3681 = len(yyv3681) if yyrg3681 { copy(yyv3681, yyv23681) } } else if yyl3681 != len(yyv3681) { yyv3681 = yyv3681[:yyl3681] yyc3681 = true } yyj3681 := 0 for ; yyj3681 < yyrr3681; yyj3681++ { yyh3681.ElemContainerState(yyj3681) if r.TryDecodeAsNil() { yyv3681[yyj3681] = ComponentStatus{} } else { yyv3682 := &yyv3681[yyj3681] yyv3682.CodecDecodeSelf(d) } } if yyrt3681 { for ; yyj3681 < yyl3681; yyj3681++ { yyv3681 = append(yyv3681, ComponentStatus{}) yyh3681.ElemContainerState(yyj3681) if r.TryDecodeAsNil() { yyv3681[yyj3681] = ComponentStatus{} } else { yyv3683 := &yyv3681[yyj3681] yyv3683.CodecDecodeSelf(d) } } } } else { yyj3681 := 0 for ; !r.CheckBreak(); yyj3681++ { if yyj3681 >= len(yyv3681) { yyv3681 = append(yyv3681, ComponentStatus{}) // var yyz3681 ComponentStatus yyc3681 = true } yyh3681.ElemContainerState(yyj3681) if yyj3681 < len(yyv3681) { if r.TryDecodeAsNil() { yyv3681[yyj3681] = ComponentStatus{} } else { yyv3684 := &yyv3681[yyj3681] yyv3684.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3681 < len(yyv3681) { yyv3681 = yyv3681[:yyj3681] yyc3681 = true } else if yyj3681 == 0 && yyv3681 == nil { yyv3681 = []ComponentStatus{} yyc3681 = true } } yyh3681.End() if yyc3681 { *v = yyv3681 } }