/* Copyright 2015 The Kubernetes Authors All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // ************************************************************ // DO NOT EDIT. // THIS FILE IS AUTO-GENERATED BY codecgen. // ************************************************************ package api import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" pkg3_resource "k8s.io/kubernetes/pkg/api/resource" pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned" pkg7_fields "k8s.io/kubernetes/pkg/fields" pkg6_labels "k8s.io/kubernetes/pkg/labels" pkg8_runtime "k8s.io/kubernetes/pkg/runtime" pkg1_types "k8s.io/kubernetes/pkg/types" pkg5_intstr "k8s.io/kubernetes/pkg/util/intstr" "reflect" "runtime" pkg4_inf "speter.net/go/exp/math/dec/inf" time "time" ) const ( // ----- content types ---- codecSelferC_UTF81234 = 1 codecSelferC_RAW1234 = 0 // ----- value types used ---- codecSelferValueTypeArray1234 = 10 codecSelferValueTypeMap1234 = 9 // ----- containerStateValues ---- codecSelfer_containerMapKey1234 = 2 codecSelfer_containerMapValue1234 = 3 codecSelfer_containerMapEnd1234 = 4 codecSelfer_containerArrayElem1234 = 6 codecSelfer_containerArrayEnd1234 = 7 ) var ( codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) ) type codecSelfer1234 struct{} func init() { if codec1978.GenVersion != 5 { _, file, _, _ := runtime.Caller(0) err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", 5, codec1978.GenVersion, file) panic(err) } if false { // reference the types, but skip this branch at build/run time var v0 pkg3_resource.Quantity var v1 pkg2_unversioned.Time var v2 pkg7_fields.Selector var v3 pkg6_labels.Selector var v4 pkg8_runtime.Object var v5 pkg1_types.UID var v6 pkg5_intstr.IntOrString var v7 pkg4_inf.Dec var v8 time.Time _, _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7, v8 } } func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1 := z.EncBinary() _ = yym1 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2 := !z.EncBinary() yy2arr2 := z.EncBasicHandle().StructToArray var yyq2 [12]bool _, _, _ = yysep2, yyq2, yy2arr2 const yyr2 bool = false yyq2[0] = x.Name != "" yyq2[1] = x.GenerateName != "" yyq2[2] = x.Namespace != "" yyq2[3] = x.SelfLink != "" yyq2[4] = x.UID != "" yyq2[5] = x.ResourceVersion != "" yyq2[6] = x.Generation != 0 yyq2[7] = true yyq2[8] = x.DeletionTimestamp != nil yyq2[9] = x.DeletionGracePeriodSeconds != nil yyq2[10] = len(x.Labels) != 0 yyq2[11] = len(x.Annotations) != 0 var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(12) } else { yynn2 = 0 for _, b := range yyq2 { if b { yynn2++ } } r.EncodeMapStart(yynn2) yynn2 = 0 } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[0] { yym4 := z.EncBinary() _ = yym4 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym5 := z.EncBinary() _ = yym5 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[1] { yym7 := z.EncBinary() _ = yym7 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("generateName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym8 := z.EncBinary() _ = yym8 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[2] { yym10 := z.EncBinary() _ = yym10 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym11 := z.EncBinary() _ = yym11 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[3] { yym13 := z.EncBinary() _ = yym13 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selfLink")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym14 := z.EncBinary() _ = yym14 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[4] { yym16 := z.EncBinary() _ = yym16 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym17 := z.EncBinary() _ = yym17 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[5] { yym19 := z.EncBinary() _ = yym19 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym20 := z.EncBinary() _ = yym20 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[6] { yym22 := z.EncBinary() _ = yym22 if false { } else { r.EncodeInt(int64(x.Generation)) } } else { r.EncodeInt(0) } } else { if yyq2[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("generation")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym23 := z.EncBinary() _ = yym23 if false { } else { r.EncodeInt(int64(x.Generation)) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[7] { yy25 := &x.CreationTimestamp yym26 := z.EncBinary() _ = yym26 if false { } else if z.HasExtensions() && z.EncExt(yy25) { } else if yym26 { z.EncBinaryMarshal(yy25) } else if !yym26 && z.IsJSONHandle() { z.EncJSONMarshal(yy25) } else { z.EncFallback(yy25) } } else { r.EncodeNil() } } else { if yyq2[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy27 := &x.CreationTimestamp yym28 := z.EncBinary() _ = yym28 if false { } else if z.HasExtensions() && z.EncExt(yy27) { } else if yym28 { z.EncBinaryMarshal(yy27) } else if !yym28 && z.IsJSONHandle() { z.EncJSONMarshal(yy27) } else { z.EncFallback(yy27) } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[8] { if x.DeletionTimestamp == nil { r.EncodeNil() } else { yym30 := z.EncBinary() _ = yym30 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { } else if yym30 { z.EncBinaryMarshal(x.DeletionTimestamp) } else if !yym30 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) } } } else { r.EncodeNil() } } else { if yyq2[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DeletionTimestamp == nil { r.EncodeNil() } else { yym31 := z.EncBinary() _ = yym31 if false { } else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) { } else if yym31 { z.EncBinaryMarshal(x.DeletionTimestamp) } else if !yym31 && z.IsJSONHandle() { z.EncJSONMarshal(x.DeletionTimestamp) } else { z.EncFallback(x.DeletionTimestamp) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[9] { if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { yy33 := *x.DeletionGracePeriodSeconds yym34 := z.EncBinary() _ = yym34 if false { } else { r.EncodeInt(int64(yy33)) } } } else { r.EncodeNil() } } else { if yyq2[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DeletionGracePeriodSeconds == nil { r.EncodeNil() } else { yy35 := *x.DeletionGracePeriodSeconds yym36 := z.EncBinary() _ = yym36 if false { } else { r.EncodeInt(int64(yy35)) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[10] { if x.Labels == nil { r.EncodeNil() } else { yym38 := z.EncBinary() _ = yym38 if false { } else { z.F.EncMapStringStringV(x.Labels, false, e) } } } else { r.EncodeNil() } } else { if yyq2[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labels")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Labels == nil { r.EncodeNil() } else { yym39 := z.EncBinary() _ = yym39 if false { } else { z.F.EncMapStringStringV(x.Labels, false, e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[11] { if x.Annotations == nil { r.EncodeNil() } else { yym41 := z.EncBinary() _ = yym41 if false { } else { z.F.EncMapStringStringV(x.Annotations, false, e) } } } else { r.EncodeNil() } } else { if yyq2[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("annotations")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Annotations == nil { r.EncodeNil() } else { yym42 := z.EncBinary() _ = yym42 if false { } else { z.F.EncMapStringStringV(x.Annotations, false, e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym43 := z.DecBinary() _ = yym43 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct44 := r.ContainerType() if yyct44 == codecSelferValueTypeMap1234 { yyl44 := r.ReadMapStart() if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl44, d) } } else if yyct44 == codecSelferValueTypeArray1234 { yyl44 := r.ReadArrayStart() if yyl44 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl44, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys45Slc = z.DecScratchBuffer() // default slice to decode into _ = yys45Slc var yyhl45 bool = l >= 0 for yyj45 := 0; ; yyj45++ { if yyhl45 { if yyj45 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys45Slc = r.DecodeBytes(yys45Slc, true, true) yys45 := string(yys45Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys45 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "generateName": if r.TryDecodeAsNil() { x.GenerateName = "" } else { x.GenerateName = string(r.DecodeString()) } case "namespace": if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } case "selfLink": if r.TryDecodeAsNil() { x.SelfLink = "" } else { x.SelfLink = string(r.DecodeString()) } case "uid": if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } case "resourceVersion": if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } case "generation": if r.TryDecodeAsNil() { x.Generation = 0 } else { x.Generation = int64(r.DecodeInt(64)) } case "creationTimestamp": if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { yyv53 := &x.CreationTimestamp yym54 := z.DecBinary() _ = yym54 if false { } else if z.HasExtensions() && z.DecExt(yyv53) { } else if yym54 { z.DecBinaryUnmarshal(yyv53) } else if !yym54 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv53) } else { z.DecFallback(yyv53, false) } } case "deletionTimestamp": if r.TryDecodeAsNil() { if x.DeletionTimestamp != nil { x.DeletionTimestamp = nil } } else { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } yym56 := z.DecBinary() _ = yym56 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym56 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym56 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } case "deletionGracePeriodSeconds": if r.TryDecodeAsNil() { if x.DeletionGracePeriodSeconds != nil { x.DeletionGracePeriodSeconds = nil } } else { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } yym58 := z.DecBinary() _ = yym58 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "labels": if r.TryDecodeAsNil() { x.Labels = nil } else { yyv59 := &x.Labels yym60 := z.DecBinary() _ = yym60 if false { } else { z.F.DecMapStringStringX(yyv59, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv61 := &x.Annotations yym62 := z.DecBinary() _ = yym62 if false { } else { z.F.DecMapStringStringX(yyv61, false, d) } } default: z.DecStructFieldNotFound(-1, yys45) } // end switch yys45 } // end for yyj45 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj63 int var yyb63 bool var yyhl63 bool = l >= 0 yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.GenerateName = "" } else { x.GenerateName = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SelfLink = "" } else { x.SelfLink = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Generation = 0 } else { x.Generation = int64(r.DecodeInt(64)) } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { yyv71 := &x.CreationTimestamp yym72 := z.DecBinary() _ = yym72 if false { } else if z.HasExtensions() && z.DecExt(yyv71) { } else if yym72 { z.DecBinaryUnmarshal(yyv71) } else if !yym72 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv71) } else { z.DecFallback(yyv71, false) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DeletionTimestamp != nil { x.DeletionTimestamp = nil } } else { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } yym74 := z.DecBinary() _ = yym74 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym74 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym74 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DeletionGracePeriodSeconds != nil { x.DeletionGracePeriodSeconds = nil } } else { if x.DeletionGracePeriodSeconds == nil { x.DeletionGracePeriodSeconds = new(int64) } yym76 := z.DecBinary() _ = yym76 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Labels = nil } else { yyv77 := &x.Labels yym78 := z.DecBinary() _ = yym78 if false { } else { z.F.DecMapStringStringX(yyv77, false, d) } } yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv79 := &x.Annotations yym80 := z.DecBinary() _ = yym80 if false { } else { z.F.DecMapStringStringX(yyv79, false, d) } } for { yyj63++ if yyhl63 { yyb63 = yyj63 > l } else { yyb63 = r.CheckBreak() } if yyb63 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj63-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym81 := z.EncBinary() _ = yym81 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep82 := !z.EncBinary() yy2arr82 := z.EncBasicHandle().StructToArray var yyq82 [18]bool _, _, _ = yysep82, yyq82, yy2arr82 const yyr82 bool = false yyq82[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil yyq82[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil yyq82[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq82[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq82[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil yyq82[6] = x.VolumeSource.Secret != nil && x.Secret != nil yyq82[7] = x.VolumeSource.NFS != nil && x.NFS != nil yyq82[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil yyq82[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq82[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil yyq82[11] = x.VolumeSource.RBD != nil && x.RBD != nil yyq82[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq82[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil yyq82[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil yyq82[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil yyq82[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil yyq82[17] = x.VolumeSource.FC != nil && x.FC != nil var yynn82 int if yyr82 || yy2arr82 { r.EncodeArrayStart(18) } else { yynn82 = 1 for _, b := range yyq82 { if b { yynn82++ } } r.EncodeMapStart(yynn82) yynn82 = 0 } if yyr82 || yy2arr82 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym84 := z.EncBinary() _ = yym84 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym85 := z.EncBinary() _ = yym85 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } var yyn86 bool if x.VolumeSource.HostPath == nil { yyn86 = true goto LABEL86 } LABEL86: if yyr82 || yy2arr82 { if yyn86 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[1] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn86 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn87 bool if x.VolumeSource.EmptyDir == nil { yyn87 = true goto LABEL87 } LABEL87: if yyr82 || yy2arr82 { if yyn87 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[2] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn87 { r.EncodeNil() } else { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } } } var yyn88 bool if x.VolumeSource.GCEPersistentDisk == nil { yyn88 = true goto LABEL88 } LABEL88: if yyr82 || yy2arr82 { if yyn88 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[3] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn88 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn89 bool if x.VolumeSource.AWSElasticBlockStore == nil { yyn89 = true goto LABEL89 } LABEL89: if yyr82 || yy2arr82 { if yyn89 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[4] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn89 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn90 bool if x.VolumeSource.GitRepo == nil { yyn90 = true goto LABEL90 } LABEL90: if yyr82 || yy2arr82 { if yyn90 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[5] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn90 { r.EncodeNil() } else { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } } } var yyn91 bool if x.VolumeSource.Secret == nil { yyn91 = true goto LABEL91 } LABEL91: if yyr82 || yy2arr82 { if yyn91 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[6] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn91 { r.EncodeNil() } else { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } } } var yyn92 bool if x.VolumeSource.NFS == nil { yyn92 = true goto LABEL92 } LABEL92: if yyr82 || yy2arr82 { if yyn92 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[7] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn92 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn93 bool if x.VolumeSource.ISCSI == nil { yyn93 = true goto LABEL93 } LABEL93: if yyr82 || yy2arr82 { if yyn93 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[8] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn93 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn94 bool if x.VolumeSource.Glusterfs == nil { yyn94 = true goto LABEL94 } LABEL94: if yyr82 || yy2arr82 { if yyn94 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[9] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn94 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn95 bool if x.VolumeSource.PersistentVolumeClaim == nil { yyn95 = true goto LABEL95 } LABEL95: if yyr82 || yy2arr82 { if yyn95 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[10] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn95 { r.EncodeNil() } else { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } } var yyn96 bool if x.VolumeSource.RBD == nil { yyn96 = true goto LABEL96 } LABEL96: if yyr82 || yy2arr82 { if yyn96 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[11] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn96 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn97 bool if x.VolumeSource.FlexVolume == nil { yyn97 = true goto LABEL97 } LABEL97: if yyr82 || yy2arr82 { if yyn97 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[12] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn97 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn98 bool if x.VolumeSource.Cinder == nil { yyn98 = true goto LABEL98 } LABEL98: if yyr82 || yy2arr82 { if yyn98 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[13] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn98 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn99 bool if x.VolumeSource.CephFS == nil { yyn99 = true goto LABEL99 } LABEL99: if yyr82 || yy2arr82 { if yyn99 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[14] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn99 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn100 bool if x.VolumeSource.Flocker == nil { yyn100 = true goto LABEL100 } LABEL100: if yyr82 || yy2arr82 { if yyn100 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[15] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn100 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn101 bool if x.VolumeSource.DownwardAPI == nil { yyn101 = true goto LABEL101 } LABEL101: if yyr82 || yy2arr82 { if yyn101 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[16] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn101 { r.EncodeNil() } else { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } } var yyn102 bool if x.VolumeSource.FC == nil { yyn102 = true goto LABEL102 } LABEL102: if yyr82 || yy2arr82 { if yyn102 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[17] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn102 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } 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 yym103 := z.DecBinary() _ = yym103 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct104 := r.ContainerType() if yyct104 == codecSelferValueTypeMap1234 { yyl104 := r.ReadMapStart() if yyl104 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl104, d) } } else if yyct104 == codecSelferValueTypeArray1234 { yyl104 := r.ReadArrayStart() if yyl104 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl104, 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 yys105Slc = z.DecScratchBuffer() // default slice to decode into _ = yys105Slc var yyhl105 bool = l >= 0 for yyj105 := 0; ; yyj105++ { if yyhl105 { if yyj105 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys105Slc = r.DecodeBytes(yys105Slc, true, true) yys105 := string(yys105Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys105 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "hostPath": if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "emptyDir": if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "gitRepo": if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } case "secret": if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } case "nfs": if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "iscsi": if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "glusterfs": if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "persistentVolumeClaim": if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } case "rbd": if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "flexVolume": if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys105) } // end switch yys105 } // end for yyj105 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 yyj124 int var yyb124 bool var yyhl124 bool = l >= 0 yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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) } yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { 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 { yyj124++ if yyhl124 { yyb124 = yyj124 > l } else { yyb124 = r.CheckBreak() } if yyb124 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj124-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 { yym143 := z.EncBinary() _ = yym143 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep144 := !z.EncBinary() yy2arr144 := z.EncBasicHandle().StructToArray var yyq144 [17]bool _, _, _ = yysep144, yyq144, yy2arr144 const yyr144 bool = false yyq144[0] = x.HostPath != nil yyq144[1] = x.EmptyDir != nil yyq144[2] = x.GCEPersistentDisk != nil yyq144[3] = x.AWSElasticBlockStore != nil yyq144[4] = x.GitRepo != nil yyq144[5] = x.Secret != nil yyq144[6] = x.NFS != nil yyq144[7] = x.ISCSI != nil yyq144[8] = x.Glusterfs != nil yyq144[9] = x.PersistentVolumeClaim != nil yyq144[10] = x.RBD != nil yyq144[11] = x.FlexVolume != nil yyq144[12] = x.Cinder != nil yyq144[13] = x.CephFS != nil yyq144[14] = x.Flocker != nil yyq144[15] = x.DownwardAPI != nil yyq144[16] = x.FC != nil var yynn144 int if yyr144 || yy2arr144 { r.EncodeArrayStart(17) } else { yynn144 = 0 for _, b := range yyq144 { if b { yynn144++ } } r.EncodeMapStart(yynn144) yynn144 = 0 } if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[0] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[1] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[4] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[5] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[6] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[8] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[10] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[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 yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[11] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[12] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[13] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[14] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[15] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } if yyr144 || yy2arr144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq144[16] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq144[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } if yyr144 || yy2arr144 { 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 yym162 := z.DecBinary() _ = yym162 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct163 := r.ContainerType() if yyct163 == codecSelferValueTypeMap1234 { yyl163 := r.ReadMapStart() if yyl163 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl163, d) } } else if yyct163 == codecSelferValueTypeArray1234 { yyl163 := r.ReadArrayStart() if yyl163 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl163, 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 yys164Slc = z.DecScratchBuffer() // default slice to decode into _ = yys164Slc var yyhl164 bool = l >= 0 for yyj164 := 0; ; yyj164++ { if yyhl164 { if yyj164 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys164Slc = r.DecodeBytes(yys164Slc, true, true) yys164 := string(yys164Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys164 { case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "emptyDir": if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "gitRepo": if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } case "secret": if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } case "nfs": if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "glusterfs": if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "persistentVolumeClaim": if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } case "rbd": if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "flexVolume": if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys164) } // end switch yys164 } // end for yyj164 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 yyj182 int var yyb182 bool var yyhl182 bool = l >= 0 yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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) } yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { 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 { yyj182++ if yyhl182 { yyb182 = yyj182 > l } else { yyb182 = r.CheckBreak() } if yyb182 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj182-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 { yym200 := z.EncBinary() _ = yym200 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep201 := !z.EncBinary() yy2arr201 := z.EncBasicHandle().StructToArray var yyq201 [12]bool _, _, _ = yysep201, yyq201, yy2arr201 const yyr201 bool = false yyq201[0] = x.GCEPersistentDisk != nil yyq201[1] = x.AWSElasticBlockStore != nil yyq201[2] = x.HostPath != nil yyq201[3] = x.Glusterfs != nil yyq201[4] = x.NFS != nil yyq201[5] = x.RBD != nil yyq201[6] = x.ISCSI != nil yyq201[7] = x.FlexVolume != nil yyq201[8] = x.Cinder != nil yyq201[9] = x.CephFS != nil yyq201[10] = x.FC != nil yyq201[11] = x.Flocker != nil var yynn201 int if yyr201 || yy2arr201 { r.EncodeArrayStart(12) } else { yynn201 = 0 for _, b := range yyq201 { if b { yynn201++ } } r.EncodeMapStart(yynn201) yynn201 = 0 } if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[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 yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[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 yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[2] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[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 yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[3] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[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 yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[4] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[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 yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[5] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[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 yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[6] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[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 yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[7] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[8] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[9] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[10] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } if yyr201 || yy2arr201 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq201[11] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq201[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } if yyr201 || yy2arr201 { 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 yym214 := z.DecBinary() _ = yym214 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct215 := r.ContainerType() if yyct215 == codecSelferValueTypeMap1234 { yyl215 := r.ReadMapStart() if yyl215 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl215, d) } } else if yyct215 == codecSelferValueTypeArray1234 { yyl215 := r.ReadArrayStart() if yyl215 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl215, 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 yys216Slc = z.DecScratchBuffer() // default slice to decode into _ = yys216Slc var yyhl216 bool = l >= 0 for yyj216 := 0; ; yyj216++ { if yyhl216 { if yyj216 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys216Slc = r.DecodeBytes(yys216Slc, true, true) yys216 := string(yys216Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys216 { case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "glusterfs": if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "nfs": if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "rbd": if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "flexVolume": if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys216) } // end switch yys216 } // end for yyj216 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 yyj229 int var yyb229 bool var yyhl229 bool = l >= 0 yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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) } yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { 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 { yyj229++ if yyhl229 { yyb229 = yyj229 > l } else { yyb229 = r.CheckBreak() } if yyb229 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj229-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 { yym242 := z.EncBinary() _ = yym242 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep243 := !z.EncBinary() yy2arr243 := z.EncBasicHandle().StructToArray var yyq243 [2]bool _, _, _ = yysep243, yyq243, yy2arr243 const yyr243 bool = false yyq243[1] = x.ReadOnly != false var yynn243 int if yyr243 || yy2arr243 { r.EncodeArrayStart(2) } else { yynn243 = 1 for _, b := range yyq243 { if b { yynn243++ } } r.EncodeMapStart(yynn243) yynn243 = 0 } if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym245 := z.EncBinary() _ = yym245 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) yym246 := z.EncBinary() _ = yym246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } if yyr243 || yy2arr243 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq243[1] { yym248 := z.EncBinary() _ = yym248 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq243[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym249 := z.EncBinary() _ = yym249 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr243 || yy2arr243 { 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 yym250 := z.DecBinary() _ = yym250 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct251 := r.ContainerType() if yyct251 == codecSelferValueTypeMap1234 { yyl251 := r.ReadMapStart() if yyl251 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl251, d) } } else if yyct251 == codecSelferValueTypeArray1234 { yyl251 := r.ReadArrayStart() if yyl251 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl251, 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 yys252Slc = z.DecScratchBuffer() // default slice to decode into _ = yys252Slc var yyhl252 bool = l >= 0 for yyj252 := 0; ; yyj252++ { if yyhl252 { if yyj252 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys252Slc = r.DecodeBytes(yys252Slc, true, true) yys252 := string(yys252Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys252 { 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, yys252) } // end switch yys252 } // end for yyj252 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 yyj255 int var yyb255 bool var yyhl255 bool = l >= 0 yyj255++ if yyhl255 { yyb255 = yyj255 > l } else { yyb255 = r.CheckBreak() } if yyb255 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } yyj255++ if yyhl255 { yyb255 = yyj255 > l } else { yyb255 = r.CheckBreak() } if yyb255 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj255++ if yyhl255 { yyb255 = yyj255 > l } else { yyb255 = r.CheckBreak() } if yyb255 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj255-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 { yym258 := z.EncBinary() _ = yym258 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep259 := !z.EncBinary() yy2arr259 := z.EncBasicHandle().StructToArray var yyq259 [5]bool _, _, _ = yysep259, yyq259, yy2arr259 const yyr259 bool = false yyq259[0] = x.Kind != "" yyq259[1] = x.APIVersion != "" yyq259[2] = true yyq259[3] = true yyq259[4] = true var yynn259 int if yyr259 || yy2arr259 { r.EncodeArrayStart(5) } else { yynn259 = 0 for _, b := range yyq259 { if b { yynn259++ } } r.EncodeMapStart(yynn259) yynn259 = 0 } if yyr259 || yy2arr259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq259[0] { yym261 := z.EncBinary() _ = yym261 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq259[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym262 := z.EncBinary() _ = yym262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr259 || yy2arr259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq259[1] { yym264 := z.EncBinary() _ = yym264 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq259[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym265 := z.EncBinary() _ = yym265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr259 || yy2arr259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq259[2] { yy267 := &x.ObjectMeta yy267.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq259[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy268 := &x.ObjectMeta yy268.CodecEncodeSelf(e) } } if yyr259 || yy2arr259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq259[3] { yy270 := &x.Spec yy270.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq259[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy271 := &x.Spec yy271.CodecEncodeSelf(e) } } if yyr259 || yy2arr259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq259[4] { yy273 := &x.Status yy273.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq259[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy274 := &x.Status yy274.CodecEncodeSelf(e) } } if yyr259 || yy2arr259 { 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 yym275 := z.DecBinary() _ = yym275 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct276 := r.ContainerType() if yyct276 == codecSelferValueTypeMap1234 { yyl276 := r.ReadMapStart() if yyl276 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl276, d) } } else if yyct276 == codecSelferValueTypeArray1234 { yyl276 := r.ReadArrayStart() if yyl276 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl276, 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 yys277Slc = z.DecScratchBuffer() // default slice to decode into _ = yys277Slc var yyhl277 bool = l >= 0 for yyj277 := 0; ; yyj277++ { if yyhl277 { if yyj277 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys277Slc = r.DecodeBytes(yys277Slc, true, true) yys277 := string(yys277Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys277 { 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 { yyv280 := &x.ObjectMeta yyv280.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv281 := &x.Spec yyv281.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv282 := &x.Status yyv282.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys277) } // end switch yys277 } // end for yyj277 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 yyj283 int var yyb283 bool var yyhl283 bool = l >= 0 yyj283++ if yyhl283 { yyb283 = yyj283 > l } else { yyb283 = r.CheckBreak() } if yyb283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj283++ if yyhl283 { yyb283 = yyj283 > l } else { yyb283 = r.CheckBreak() } if yyb283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj283++ if yyhl283 { yyb283 = yyj283 > l } else { yyb283 = r.CheckBreak() } if yyb283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv286 := &x.ObjectMeta yyv286.CodecDecodeSelf(d) } yyj283++ if yyhl283 { yyb283 = yyj283 > l } else { yyb283 = r.CheckBreak() } if yyb283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv287 := &x.Spec yyv287.CodecDecodeSelf(d) } yyj283++ if yyhl283 { yyb283 = yyj283 > l } else { yyb283 = r.CheckBreak() } if yyb283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv288 := &x.Status yyv288.CodecDecodeSelf(d) } for { yyj283++ if yyhl283 { yyb283 = yyj283 > l } else { yyb283 = r.CheckBreak() } if yyb283 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj283-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 { yym289 := z.EncBinary() _ = yym289 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep290 := !z.EncBinary() yy2arr290 := z.EncBasicHandle().StructToArray var yyq290 [16]bool _, _, _ = yysep290, yyq290, yy2arr290 const yyr290 bool = false yyq290[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq290[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq290[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil yyq290[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq290[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil yyq290[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil yyq290[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil yyq290[8] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq290[9] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil yyq290[10] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil yyq290[11] = x.PersistentVolumeSource.FC != nil && x.FC != nil yyq290[12] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil yyq290[13] = len(x.AccessModes) != 0 yyq290[14] = x.ClaimRef != nil yyq290[15] = x.PersistentVolumeReclaimPolicy != "" var yynn290 int if yyr290 || yy2arr290 { r.EncodeArrayStart(16) } else { yynn290 = 1 for _, b := range yyq290 { if b { yynn290++ } } r.EncodeMapStart(yynn290) yynn290 = 0 } if yyr290 || yy2arr290 { 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 yyn292 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn292 = true goto LABEL292 } LABEL292: if yyr290 || yy2arr290 { if yyn292 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn292 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn293 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn293 = true goto LABEL293 } LABEL293: if yyr290 || yy2arr290 { if yyn293 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn293 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn294 bool if x.PersistentVolumeSource.HostPath == nil { yyn294 = true goto LABEL294 } LABEL294: if yyr290 || yy2arr290 { if yyn294 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[3] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn294 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn295 bool if x.PersistentVolumeSource.Glusterfs == nil { yyn295 = true goto LABEL295 } LABEL295: if yyr290 || yy2arr290 { if yyn295 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[4] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn295 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn296 bool if x.PersistentVolumeSource.NFS == nil { yyn296 = true goto LABEL296 } LABEL296: if yyr290 || yy2arr290 { if yyn296 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[5] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn296 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn297 bool if x.PersistentVolumeSource.RBD == nil { yyn297 = true goto LABEL297 } LABEL297: if yyr290 || yy2arr290 { if yyn297 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[6] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn297 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn298 bool if x.PersistentVolumeSource.ISCSI == nil { yyn298 = true goto LABEL298 } LABEL298: if yyr290 || yy2arr290 { if yyn298 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn298 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn299 bool if x.PersistentVolumeSource.FlexVolume == nil { yyn299 = true goto LABEL299 } LABEL299: if yyr290 || yy2arr290 { if yyn299 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[8] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn299 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn300 bool if x.PersistentVolumeSource.Cinder == nil { yyn300 = true goto LABEL300 } LABEL300: if yyr290 || yy2arr290 { if yyn300 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[9] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn300 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn301 bool if x.PersistentVolumeSource.CephFS == nil { yyn301 = true goto LABEL301 } LABEL301: if yyr290 || yy2arr290 { if yyn301 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[10] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn301 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn302 bool if x.PersistentVolumeSource.FC == nil { yyn302 = true goto LABEL302 } LABEL302: if yyr290 || yy2arr290 { if yyn302 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[11] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn302 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn303 bool if x.PersistentVolumeSource.Flocker == nil { yyn303 = true goto LABEL303 } LABEL303: if yyr290 || yy2arr290 { if yyn303 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[12] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq290[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn303 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } if yyr290 || yy2arr290 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[13] { if x.AccessModes == nil { r.EncodeNil() } else { yym305 := z.EncBinary() _ = yym305 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq290[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym306 := z.EncBinary() _ = yym306 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr290 || yy2arr290 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[14] { if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq290[14] { 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 yyr290 || yy2arr290 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq290[15] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq290[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } if yyr290 || yy2arr290 { 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 yym309 := z.DecBinary() _ = yym309 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct310 := r.ContainerType() if yyct310 == codecSelferValueTypeMap1234 { yyl310 := r.ReadMapStart() if yyl310 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl310, d) } } else if yyct310 == codecSelferValueTypeArray1234 { yyl310 := r.ReadArrayStart() if yyl310 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl310, 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 yys311Slc = z.DecScratchBuffer() // default slice to decode into _ = yys311Slc var yyhl311 bool = l >= 0 for yyj311 := 0; ; yyj311++ { if yyhl311 { if yyj311 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys311Slc = r.DecodeBytes(yys311Slc, true, true) yys311 := string(yys311Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys311 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv312 := &x.Capacity yyv312.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "hostPath": if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "glusterfs": if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "nfs": if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "rbd": if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "iscsi": if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "flexVolume": if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv325 := &x.AccessModes yym326 := z.DecBinary() _ = yym326 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv325), 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, yys311) } // end switch yys311 } // end for yyj311 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 yyj329 int var yyb329 bool var yyhl329 bool = l >= 0 yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv330 := &x.Capacity yyv330.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv343 := &x.AccessModes yym344 := z.DecBinary() _ = yym344 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv343), d) } } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { 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) } yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { yyj329++ if yyhl329 { yyb329 = yyj329 > l } else { yyb329 = r.CheckBreak() } if yyb329 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj329-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym347 := z.EncBinary() _ = yym347 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 yym348 := z.DecBinary() _ = yym348 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 { yym349 := z.EncBinary() _ = yym349 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep350 := !z.EncBinary() yy2arr350 := z.EncBasicHandle().StructToArray var yyq350 [3]bool _, _, _ = yysep350, yyq350, yy2arr350 const yyr350 bool = false yyq350[0] = x.Phase != "" yyq350[1] = x.Message != "" yyq350[2] = x.Reason != "" var yynn350 int if yyr350 || yy2arr350 { r.EncodeArrayStart(3) } else { yynn350 = 0 for _, b := range yyq350 { if b { yynn350++ } } r.EncodeMapStart(yynn350) yynn350 = 0 } if yyr350 || yy2arr350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq350[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq350[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr350 || yy2arr350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq350[1] { yym353 := z.EncBinary() _ = yym353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq350[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym354 := z.EncBinary() _ = yym354 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr350 || yy2arr350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq350[2] { yym356 := z.EncBinary() _ = yym356 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq350[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym357 := z.EncBinary() _ = yym357 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr350 || yy2arr350 { 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 yym358 := z.DecBinary() _ = yym358 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct359 := r.ContainerType() if yyct359 == codecSelferValueTypeMap1234 { yyl359 := r.ReadMapStart() if yyl359 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl359, d) } } else if yyct359 == codecSelferValueTypeArray1234 { yyl359 := r.ReadArrayStart() if yyl359 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl359, 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 yys360Slc = z.DecScratchBuffer() // default slice to decode into _ = yys360Slc var yyhl360 bool = l >= 0 for yyj360 := 0; ; yyj360++ { if yyhl360 { if yyj360 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys360Slc = r.DecodeBytes(yys360Slc, true, true) yys360 := string(yys360Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys360 { 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, yys360) } // end switch yys360 } // end for yyj360 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 yyj364 int var yyb364 bool var yyhl364 bool = l >= 0 yyj364++ if yyhl364 { yyb364 = yyj364 > l } else { yyb364 = r.CheckBreak() } if yyb364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj364++ if yyhl364 { yyb364 = yyj364 > l } else { yyb364 = r.CheckBreak() } if yyb364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj364++ if yyhl364 { yyb364 = yyj364 > l } else { yyb364 = r.CheckBreak() } if yyb364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } for { yyj364++ if yyhl364 { yyb364 = yyj364 > l } else { yyb364 = r.CheckBreak() } if yyb364 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj364-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 { yym368 := z.EncBinary() _ = yym368 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep369 := !z.EncBinary() yy2arr369 := z.EncBasicHandle().StructToArray var yyq369 [4]bool _, _, _ = yysep369, yyq369, yy2arr369 const yyr369 bool = false yyq369[0] = x.Kind != "" yyq369[1] = x.APIVersion != "" yyq369[2] = true var yynn369 int if yyr369 || yy2arr369 { r.EncodeArrayStart(4) } else { yynn369 = 1 for _, b := range yyq369 { if b { yynn369++ } } r.EncodeMapStart(yynn369) yynn369 = 0 } if yyr369 || yy2arr369 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq369[0] { yym371 := z.EncBinary() _ = yym371 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq369[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym372 := z.EncBinary() _ = yym372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr369 || yy2arr369 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq369[1] { yym374 := z.EncBinary() _ = yym374 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq369[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym375 := z.EncBinary() _ = yym375 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr369 || yy2arr369 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq369[2] { yy377 := &x.ListMeta yym378 := z.EncBinary() _ = yym378 if false { } else if z.HasExtensions() && z.EncExt(yy377) { } else { z.EncFallback(yy377) } } else { r.EncodeNil() } } else { if yyq369[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy379 := &x.ListMeta yym380 := z.EncBinary() _ = yym380 if false { } else if z.HasExtensions() && z.EncExt(yy379) { } else { z.EncFallback(yy379) } } } if yyr369 || yy2arr369 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym382 := z.EncBinary() _ = yym382 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 { yym383 := z.EncBinary() _ = yym383 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } if yyr369 || yy2arr369 { 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 yym384 := z.DecBinary() _ = yym384 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct385 := r.ContainerType() if yyct385 == codecSelferValueTypeMap1234 { yyl385 := r.ReadMapStart() if yyl385 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl385, d) } } else if yyct385 == codecSelferValueTypeArray1234 { yyl385 := r.ReadArrayStart() if yyl385 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl385, 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 yys386Slc = z.DecScratchBuffer() // default slice to decode into _ = yys386Slc var yyhl386 bool = l >= 0 for yyj386 := 0; ; yyj386++ { if yyhl386 { if yyj386 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys386Slc = r.DecodeBytes(yys386Slc, true, true) yys386 := string(yys386Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys386 { 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 { yyv389 := &x.ListMeta yym390 := z.DecBinary() _ = yym390 if false { } else if z.HasExtensions() && z.DecExt(yyv389) { } else { z.DecFallback(yyv389, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv391 := &x.Items yym392 := z.DecBinary() _ = yym392 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv391), d) } } default: z.DecStructFieldNotFound(-1, yys386) } // end switch yys386 } // end for yyj386 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 yyj393 int var yyb393 bool var yyhl393 bool = l >= 0 yyj393++ if yyhl393 { yyb393 = yyj393 > l } else { yyb393 = r.CheckBreak() } if yyb393 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj393++ if yyhl393 { yyb393 = yyj393 > l } else { yyb393 = r.CheckBreak() } if yyb393 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj393++ if yyhl393 { yyb393 = yyj393 > l } else { yyb393 = r.CheckBreak() } if yyb393 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv396 := &x.ListMeta yym397 := z.DecBinary() _ = yym397 if false { } else if z.HasExtensions() && z.DecExt(yyv396) { } else { z.DecFallback(yyv396, false) } } yyj393++ if yyhl393 { yyb393 = yyj393 > l } else { yyb393 = r.CheckBreak() } if yyb393 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv398 := &x.Items yym399 := z.DecBinary() _ = yym399 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv398), d) } } for { yyj393++ if yyhl393 { yyb393 = yyj393 > l } else { yyb393 = r.CheckBreak() } if yyb393 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj393-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 { yym400 := z.EncBinary() _ = yym400 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep401 := !z.EncBinary() yy2arr401 := z.EncBasicHandle().StructToArray var yyq401 [5]bool _, _, _ = yysep401, yyq401, yy2arr401 const yyr401 bool = false yyq401[0] = x.Kind != "" yyq401[1] = x.APIVersion != "" yyq401[2] = true yyq401[3] = true yyq401[4] = true var yynn401 int if yyr401 || yy2arr401 { r.EncodeArrayStart(5) } else { yynn401 = 0 for _, b := range yyq401 { if b { yynn401++ } } r.EncodeMapStart(yynn401) yynn401 = 0 } if yyr401 || yy2arr401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq401[0] { yym403 := z.EncBinary() _ = yym403 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq401[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym404 := z.EncBinary() _ = yym404 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr401 || yy2arr401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq401[1] { yym406 := z.EncBinary() _ = yym406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq401[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym407 := z.EncBinary() _ = yym407 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr401 || yy2arr401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq401[2] { yy409 := &x.ObjectMeta yy409.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq401[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy410 := &x.ObjectMeta yy410.CodecEncodeSelf(e) } } if yyr401 || yy2arr401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq401[3] { yy412 := &x.Spec yy412.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq401[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy413 := &x.Spec yy413.CodecEncodeSelf(e) } } if yyr401 || yy2arr401 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq401[4] { yy415 := &x.Status yy415.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq401[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy416 := &x.Status yy416.CodecEncodeSelf(e) } } if yyr401 || yy2arr401 { 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 yym417 := z.DecBinary() _ = yym417 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct418 := r.ContainerType() if yyct418 == codecSelferValueTypeMap1234 { yyl418 := r.ReadMapStart() if yyl418 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl418, d) } } else if yyct418 == codecSelferValueTypeArray1234 { yyl418 := r.ReadArrayStart() if yyl418 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl418, 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 yys419Slc = z.DecScratchBuffer() // default slice to decode into _ = yys419Slc var yyhl419 bool = l >= 0 for yyj419 := 0; ; yyj419++ { if yyhl419 { if yyj419 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys419Slc = r.DecodeBytes(yys419Slc, true, true) yys419 := string(yys419Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys419 { 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 { yyv422 := &x.ObjectMeta yyv422.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv423 := &x.Spec yyv423.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv424 := &x.Status yyv424.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys419) } // end switch yys419 } // end for yyj419 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 yyj425 int var yyb425 bool var yyhl425 bool = l >= 0 yyj425++ if yyhl425 { yyb425 = yyj425 > l } else { yyb425 = r.CheckBreak() } if yyb425 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj425++ if yyhl425 { yyb425 = yyj425 > l } else { yyb425 = r.CheckBreak() } if yyb425 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj425++ if yyhl425 { yyb425 = yyj425 > l } else { yyb425 = r.CheckBreak() } if yyb425 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv428 := &x.ObjectMeta yyv428.CodecDecodeSelf(d) } yyj425++ if yyhl425 { yyb425 = yyj425 > l } else { yyb425 = r.CheckBreak() } if yyb425 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv429 := &x.Spec yyv429.CodecDecodeSelf(d) } yyj425++ if yyhl425 { yyb425 = yyj425 > l } else { yyb425 = r.CheckBreak() } if yyb425 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv430 := &x.Status yyv430.CodecDecodeSelf(d) } for { yyj425++ if yyhl425 { yyb425 = yyj425 > l } else { yyb425 = r.CheckBreak() } if yyb425 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj425-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 { yym431 := z.EncBinary() _ = yym431 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep432 := !z.EncBinary() yy2arr432 := z.EncBasicHandle().StructToArray var yyq432 [4]bool _, _, _ = yysep432, yyq432, yy2arr432 const yyr432 bool = false yyq432[0] = x.Kind != "" yyq432[1] = x.APIVersion != "" yyq432[2] = true var yynn432 int if yyr432 || yy2arr432 { r.EncodeArrayStart(4) } else { yynn432 = 1 for _, b := range yyq432 { if b { yynn432++ } } r.EncodeMapStart(yynn432) yynn432 = 0 } if yyr432 || yy2arr432 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq432[0] { yym434 := z.EncBinary() _ = yym434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq432[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym435 := z.EncBinary() _ = yym435 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr432 || yy2arr432 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq432[1] { yym437 := z.EncBinary() _ = yym437 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq432[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym438 := z.EncBinary() _ = yym438 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr432 || yy2arr432 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq432[2] { yy440 := &x.ListMeta yym441 := z.EncBinary() _ = yym441 if false { } else if z.HasExtensions() && z.EncExt(yy440) { } else { z.EncFallback(yy440) } } else { r.EncodeNil() } } else { if yyq432[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy442 := &x.ListMeta yym443 := z.EncBinary() _ = yym443 if false { } else if z.HasExtensions() && z.EncExt(yy442) { } else { z.EncFallback(yy442) } } } if yyr432 || yy2arr432 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym445 := z.EncBinary() _ = yym445 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 { yym446 := z.EncBinary() _ = yym446 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } if yyr432 || yy2arr432 { 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 yym447 := z.DecBinary() _ = yym447 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct448 := r.ContainerType() if yyct448 == codecSelferValueTypeMap1234 { yyl448 := r.ReadMapStart() if yyl448 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl448, d) } } else if yyct448 == codecSelferValueTypeArray1234 { yyl448 := r.ReadArrayStart() if yyl448 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl448, 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 yys449Slc = z.DecScratchBuffer() // default slice to decode into _ = yys449Slc var yyhl449 bool = l >= 0 for yyj449 := 0; ; yyj449++ { if yyhl449 { if yyj449 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys449Slc = r.DecodeBytes(yys449Slc, true, true) yys449 := string(yys449Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys449 { 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 { yyv452 := &x.ListMeta yym453 := z.DecBinary() _ = yym453 if false { } else if z.HasExtensions() && z.DecExt(yyv452) { } else { z.DecFallback(yyv452, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv454 := &x.Items yym455 := z.DecBinary() _ = yym455 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv454), d) } } default: z.DecStructFieldNotFound(-1, yys449) } // end switch yys449 } // end for yyj449 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 yyj456 int var yyb456 bool var yyhl456 bool = l >= 0 yyj456++ if yyhl456 { yyb456 = yyj456 > l } else { yyb456 = r.CheckBreak() } if yyb456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj456++ if yyhl456 { yyb456 = yyj456 > l } else { yyb456 = r.CheckBreak() } if yyb456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj456++ if yyhl456 { yyb456 = yyj456 > l } else { yyb456 = r.CheckBreak() } if yyb456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv459 := &x.ListMeta yym460 := z.DecBinary() _ = yym460 if false { } else if z.HasExtensions() && z.DecExt(yyv459) { } else { z.DecFallback(yyv459, false) } } yyj456++ if yyhl456 { yyb456 = yyj456 > l } else { yyb456 = r.CheckBreak() } if yyb456 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv461 := &x.Items yym462 := z.DecBinary() _ = yym462 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv461), d) } } for { yyj456++ if yyhl456 { yyb456 = yyj456 > l } else { yyb456 = r.CheckBreak() } if yyb456 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj456-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 { yym463 := z.EncBinary() _ = yym463 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep464 := !z.EncBinary() yy2arr464 := z.EncBasicHandle().StructToArray var yyq464 [3]bool _, _, _ = yysep464, yyq464, yy2arr464 const yyr464 bool = false yyq464[0] = len(x.AccessModes) != 0 yyq464[1] = true yyq464[2] = x.VolumeName != "" var yynn464 int if yyr464 || yy2arr464 { r.EncodeArrayStart(3) } else { yynn464 = 0 for _, b := range yyq464 { if b { yynn464++ } } r.EncodeMapStart(yynn464) yynn464 = 0 } if yyr464 || yy2arr464 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq464[0] { if x.AccessModes == nil { r.EncodeNil() } else { yym466 := z.EncBinary() _ = yym466 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq464[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym467 := z.EncBinary() _ = yym467 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr464 || yy2arr464 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq464[1] { yy469 := &x.Resources yy469.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq464[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy470 := &x.Resources yy470.CodecEncodeSelf(e) } } if yyr464 || yy2arr464 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq464[2] { yym472 := z.EncBinary() _ = yym472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq464[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym473 := z.EncBinary() _ = yym473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } if yyr464 || yy2arr464 { 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 yym474 := z.DecBinary() _ = yym474 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct475 := r.ContainerType() if yyct475 == codecSelferValueTypeMap1234 { yyl475 := r.ReadMapStart() if yyl475 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl475, d) } } else if yyct475 == codecSelferValueTypeArray1234 { yyl475 := r.ReadArrayStart() if yyl475 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl475, 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 yys476Slc = z.DecScratchBuffer() // default slice to decode into _ = yys476Slc var yyhl476 bool = l >= 0 for yyj476 := 0; ; yyj476++ { if yyhl476 { if yyj476 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys476Slc = r.DecodeBytes(yys476Slc, true, true) yys476 := string(yys476Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys476 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv477 := &x.AccessModes yym478 := z.DecBinary() _ = yym478 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv477), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv479 := &x.Resources yyv479.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys476) } // end switch yys476 } // end for yyj476 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 yyj481 int var yyb481 bool var yyhl481 bool = l >= 0 yyj481++ if yyhl481 { yyb481 = yyj481 > l } else { yyb481 = r.CheckBreak() } if yyb481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv482 := &x.AccessModes yym483 := z.DecBinary() _ = yym483 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv482), d) } } yyj481++ if yyhl481 { yyb481 = yyj481 > l } else { yyb481 = r.CheckBreak() } if yyb481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv484 := &x.Resources yyv484.CodecDecodeSelf(d) } yyj481++ if yyhl481 { yyb481 = yyj481 > l } else { yyb481 = r.CheckBreak() } if yyb481 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } for { yyj481++ if yyhl481 { yyb481 = yyj481 > l } else { yyb481 = r.CheckBreak() } if yyb481 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj481-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 { yym486 := z.EncBinary() _ = yym486 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep487 := !z.EncBinary() yy2arr487 := z.EncBasicHandle().StructToArray var yyq487 [3]bool _, _, _ = yysep487, yyq487, yy2arr487 const yyr487 bool = false yyq487[0] = x.Phase != "" yyq487[1] = len(x.AccessModes) != 0 yyq487[2] = len(x.Capacity) != 0 var yynn487 int if yyr487 || yy2arr487 { r.EncodeArrayStart(3) } else { yynn487 = 0 for _, b := range yyq487 { if b { yynn487++ } } r.EncodeMapStart(yynn487) yynn487 = 0 } if yyr487 || yy2arr487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq487[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq487[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr487 || yy2arr487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq487[1] { if x.AccessModes == nil { r.EncodeNil() } else { yym490 := z.EncBinary() _ = yym490 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq487[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym491 := z.EncBinary() _ = yym491 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr487 || yy2arr487 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq487[2] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq487[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 yyr487 || yy2arr487 { 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 yym493 := z.DecBinary() _ = yym493 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct494 := r.ContainerType() if yyct494 == codecSelferValueTypeMap1234 { yyl494 := r.ReadMapStart() if yyl494 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl494, d) } } else if yyct494 == codecSelferValueTypeArray1234 { yyl494 := r.ReadArrayStart() if yyl494 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl494, 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 yys495Slc = z.DecScratchBuffer() // default slice to decode into _ = yys495Slc var yyhl495 bool = l >= 0 for yyj495 := 0; ; yyj495++ { if yyhl495 { if yyj495 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys495Slc = r.DecodeBytes(yys495Slc, true, true) yys495 := string(yys495Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys495 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv497 := &x.AccessModes yym498 := z.DecBinary() _ = yym498 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv497), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv499 := &x.Capacity yyv499.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys495) } // end switch yys495 } // end for yyj495 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 yyj500 int var yyb500 bool var yyhl500 bool = l >= 0 yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv502 := &x.AccessModes yym503 := z.DecBinary() _ = yym503 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv502), d) } } yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv504 := &x.Capacity yyv504.CodecDecodeSelf(d) } for { yyj500++ if yyhl500 { yyb500 = yyj500 > l } else { yyb500 = r.CheckBreak() } if yyb500 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj500-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym505 := z.EncBinary() _ = yym505 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 yym506 := z.DecBinary() _ = yym506 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 yym507 := z.EncBinary() _ = yym507 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 yym508 := z.DecBinary() _ = yym508 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 yym509 := z.EncBinary() _ = yym509 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 yym510 := z.DecBinary() _ = yym510 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 { yym511 := z.EncBinary() _ = yym511 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep512 := !z.EncBinary() yy2arr512 := z.EncBasicHandle().StructToArray var yyq512 [1]bool _, _, _ = yysep512, yyq512, yy2arr512 const yyr512 bool = false var yynn512 int if yyr512 || yy2arr512 { r.EncodeArrayStart(1) } else { yynn512 = 1 for _, b := range yyq512 { if b { yynn512++ } } r.EncodeMapStart(yynn512) yynn512 = 0 } if yyr512 || yy2arr512 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym514 := z.EncBinary() _ = yym514 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) yym515 := z.EncBinary() _ = yym515 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr512 || yy2arr512 { 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 yym516 := z.DecBinary() _ = yym516 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct517 := r.ContainerType() if yyct517 == codecSelferValueTypeMap1234 { yyl517 := r.ReadMapStart() if yyl517 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl517, d) } } else if yyct517 == codecSelferValueTypeArray1234 { yyl517 := r.ReadArrayStart() if yyl517 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl517, 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 yys518Slc = z.DecScratchBuffer() // default slice to decode into _ = yys518Slc var yyhl518 bool = l >= 0 for yyj518 := 0; ; yyj518++ { if yyhl518 { if yyj518 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys518Slc = r.DecodeBytes(yys518Slc, true, true) yys518 := string(yys518Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys518 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys518) } // end switch yys518 } // end for yyj518 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 yyj520 int var yyb520 bool var yyhl520 bool = l >= 0 yyj520++ if yyhl520 { yyb520 = yyj520 > l } else { yyb520 = r.CheckBreak() } if yyb520 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj520++ if yyhl520 { yyb520 = yyj520 > l } else { yyb520 = r.CheckBreak() } if yyb520 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj520-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 { yym522 := z.EncBinary() _ = yym522 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep523 := !z.EncBinary() yy2arr523 := z.EncBasicHandle().StructToArray var yyq523 [1]bool _, _, _ = yysep523, yyq523, yy2arr523 const yyr523 bool = false yyq523[0] = x.Medium != "" var yynn523 int if yyr523 || yy2arr523 { r.EncodeArrayStart(1) } else { yynn523 = 0 for _, b := range yyq523 { if b { yynn523++ } } r.EncodeMapStart(yynn523) yynn523 = 0 } if yyr523 || yy2arr523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq523[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq523[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } if yyr523 || yy2arr523 { 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 yym525 := z.DecBinary() _ = yym525 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct526 := r.ContainerType() if yyct526 == codecSelferValueTypeMap1234 { yyl526 := r.ReadMapStart() if yyl526 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl526, d) } } else if yyct526 == codecSelferValueTypeArray1234 { yyl526 := r.ReadArrayStart() if yyl526 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl526, 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 yys527Slc = z.DecScratchBuffer() // default slice to decode into _ = yys527Slc var yyhl527 bool = l >= 0 for yyj527 := 0; ; yyj527++ { if yyhl527 { if yyj527 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys527Slc = r.DecodeBytes(yys527Slc, true, true) yys527 := string(yys527Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys527 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys527) } // end switch yys527 } // end for yyj527 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 yyj529 int var yyb529 bool var yyhl529 bool = l >= 0 yyj529++ if yyhl529 { yyb529 = yyj529 > l } else { yyb529 = r.CheckBreak() } if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } for { yyj529++ if yyhl529 { yyb529 = yyj529 > l } else { yyb529 = r.CheckBreak() } if yyb529 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj529-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym531 := z.EncBinary() _ = yym531 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 yym532 := z.DecBinary() _ = yym532 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 yym533 := z.EncBinary() _ = yym533 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 yym534 := z.DecBinary() _ = yym534 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 { yym535 := z.EncBinary() _ = yym535 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep536 := !z.EncBinary() yy2arr536 := z.EncBasicHandle().StructToArray var yyq536 [4]bool _, _, _ = yysep536, yyq536, yy2arr536 const yyr536 bool = false yyq536[1] = x.FSType != "" yyq536[2] = x.Partition != 0 yyq536[3] = x.ReadOnly != false var yynn536 int if yyr536 || yy2arr536 { r.EncodeArrayStart(4) } else { yynn536 = 1 for _, b := range yyq536 { if b { yynn536++ } } r.EncodeMapStart(yynn536) yynn536 = 0 } if yyr536 || yy2arr536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym538 := z.EncBinary() _ = yym538 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) yym539 := z.EncBinary() _ = yym539 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } if yyr536 || yy2arr536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq536[1] { yym541 := z.EncBinary() _ = yym541 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq536[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym542 := z.EncBinary() _ = yym542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr536 || yy2arr536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq536[2] { yym544 := z.EncBinary() _ = yym544 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq536[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym545 := z.EncBinary() _ = yym545 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr536 || yy2arr536 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq536[3] { yym547 := z.EncBinary() _ = yym547 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq536[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym548 := z.EncBinary() _ = yym548 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr536 || yy2arr536 { 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 yym549 := z.DecBinary() _ = yym549 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct550 := r.ContainerType() if yyct550 == codecSelferValueTypeMap1234 { yyl550 := r.ReadMapStart() if yyl550 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl550, d) } } else if yyct550 == codecSelferValueTypeArray1234 { yyl550 := r.ReadArrayStart() if yyl550 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl550, 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 yys551Slc = z.DecScratchBuffer() // default slice to decode into _ = yys551Slc var yyhl551 bool = l >= 0 for yyj551 := 0; ; yyj551++ { if yyhl551 { if yyj551 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys551Slc = r.DecodeBytes(yys551Slc, true, true) yys551 := string(yys551Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys551 { 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, yys551) } // end switch yys551 } // end for yyj551 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 yyj556 int var yyb556 bool var yyhl556 bool = l >= 0 yyj556++ if yyhl556 { yyb556 = yyj556 > l } else { yyb556 = r.CheckBreak() } if yyb556 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } yyj556++ if yyhl556 { yyb556 = yyj556 > l } else { yyb556 = r.CheckBreak() } if yyb556 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj556++ if yyhl556 { yyb556 = yyj556 > l } else { yyb556 = r.CheckBreak() } if yyb556 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj556++ if yyhl556 { yyb556 = yyj556 > l } else { yyb556 = r.CheckBreak() } if yyb556 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj556++ if yyhl556 { yyb556 = yyj556 > l } else { yyb556 = r.CheckBreak() } if yyb556 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj556-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 { yym561 := z.EncBinary() _ = yym561 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep562 := !z.EncBinary() yy2arr562 := z.EncBasicHandle().StructToArray var yyq562 [6]bool _, _, _ = yysep562, yyq562, yy2arr562 const yyr562 bool = false yyq562[0] = x.TargetPortal != "" yyq562[1] = x.IQN != "" yyq562[2] = x.Lun != 0 yyq562[3] = x.ISCSIInterface != "" yyq562[4] = x.FSType != "" yyq562[5] = x.ReadOnly != false var yynn562 int if yyr562 || yy2arr562 { r.EncodeArrayStart(6) } else { yynn562 = 0 for _, b := range yyq562 { if b { yynn562++ } } r.EncodeMapStart(yynn562) yynn562 = 0 } if yyr562 || yy2arr562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq562[0] { yym564 := z.EncBinary() _ = yym564 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq562[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym565 := z.EncBinary() _ = yym565 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } if yyr562 || yy2arr562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq562[1] { yym567 := z.EncBinary() _ = yym567 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq562[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym568 := z.EncBinary() _ = yym568 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } if yyr562 || yy2arr562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq562[2] { yym570 := z.EncBinary() _ = yym570 if false { } else { r.EncodeInt(int64(x.Lun)) } } else { r.EncodeInt(0) } } else { if yyq562[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym571 := z.EncBinary() _ = yym571 if false { } else { r.EncodeInt(int64(x.Lun)) } } } if yyr562 || yy2arr562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq562[3] { yym573 := z.EncBinary() _ = yym573 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq562[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym574 := z.EncBinary() _ = yym574 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } if yyr562 || yy2arr562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq562[4] { yym576 := z.EncBinary() _ = yym576 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq562[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym577 := z.EncBinary() _ = yym577 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr562 || yy2arr562 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq562[5] { yym579 := z.EncBinary() _ = yym579 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq562[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym580 := z.EncBinary() _ = yym580 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr562 || yy2arr562 { 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 yym581 := z.DecBinary() _ = yym581 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct582 := r.ContainerType() if yyct582 == codecSelferValueTypeMap1234 { yyl582 := r.ReadMapStart() if yyl582 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl582, d) } } else if yyct582 == codecSelferValueTypeArray1234 { yyl582 := r.ReadArrayStart() if yyl582 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl582, 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 yys583Slc = z.DecScratchBuffer() // default slice to decode into _ = yys583Slc var yyhl583 bool = l >= 0 for yyj583 := 0; ; yyj583++ { if yyhl583 { if yyj583 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys583Slc = r.DecodeBytes(yys583Slc, true, true) yys583 := string(yys583Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys583 { case "targetPortal": if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } case "iqn": if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } case "lun": if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int(r.DecodeInt(codecSelferBitsize1234)) } case "iscsiInterface": if r.TryDecodeAsNil() { x.ISCSIInterface = "" } else { x.ISCSIInterface = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys583) } // end switch yys583 } // end for yyj583 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 yyj590 int var yyb590 bool var yyhl590 bool = l >= 0 yyj590++ if yyhl590 { yyb590 = yyj590 > l } else { yyb590 = r.CheckBreak() } if yyb590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } yyj590++ if yyhl590 { yyb590 = yyj590 > l } else { yyb590 = r.CheckBreak() } if yyb590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } yyj590++ if yyhl590 { yyb590 = yyj590 > l } else { yyb590 = r.CheckBreak() } if yyb590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int(r.DecodeInt(codecSelferBitsize1234)) } yyj590++ if yyhl590 { yyb590 = yyj590 > l } else { yyb590 = r.CheckBreak() } if yyb590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ISCSIInterface = "" } else { x.ISCSIInterface = string(r.DecodeString()) } yyj590++ if yyhl590 { yyb590 = yyj590 > l } else { yyb590 = r.CheckBreak() } if yyb590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj590++ if yyhl590 { yyb590 = yyj590 > l } else { yyb590 = r.CheckBreak() } if yyb590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj590++ if yyhl590 { yyb590 = yyj590 > l } else { yyb590 = r.CheckBreak() } if yyb590 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj590-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 { yym597 := z.EncBinary() _ = yym597 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep598 := !z.EncBinary() yy2arr598 := z.EncBasicHandle().StructToArray var yyq598 [4]bool _, _, _ = yysep598, yyq598, yy2arr598 const yyr598 bool = false yyq598[3] = x.ReadOnly != false var yynn598 int if yyr598 || yy2arr598 { r.EncodeArrayStart(4) } else { yynn598 = 3 for _, b := range yyq598 { if b { yynn598++ } } r.EncodeMapStart(yynn598) yynn598 = 0 } if yyr598 || yy2arr598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym600 := z.EncBinary() _ = yym600 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 { yym601 := z.EncBinary() _ = yym601 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } if yyr598 || yy2arr598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { yy603 := *x.Lun yym604 := z.EncBinary() _ = yym604 if false { } else { r.EncodeInt(int64(yy603)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lun == nil { r.EncodeNil() } else { yy605 := *x.Lun yym606 := z.EncBinary() _ = yym606 if false { } else { r.EncodeInt(int64(yy605)) } } } if yyr598 || yy2arr598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym608 := z.EncBinary() _ = yym608 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) yym609 := z.EncBinary() _ = yym609 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } if yyr598 || yy2arr598 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq598[3] { yym611 := z.EncBinary() _ = yym611 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq598[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym612 := z.EncBinary() _ = yym612 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr598 || yy2arr598 { 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 yym613 := z.DecBinary() _ = yym613 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct614 := r.ContainerType() if yyct614 == codecSelferValueTypeMap1234 { yyl614 := r.ReadMapStart() if yyl614 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl614, d) } } else if yyct614 == codecSelferValueTypeArray1234 { yyl614 := r.ReadArrayStart() if yyl614 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl614, 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 yys615Slc = z.DecScratchBuffer() // default slice to decode into _ = yys615Slc var yyhl615 bool = l >= 0 for yyj615 := 0; ; yyj615++ { if yyhl615 { if yyj615 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys615Slc = r.DecodeBytes(yys615Slc, true, true) yys615 := string(yys615Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys615 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv616 := &x.TargetWWNs yym617 := z.DecBinary() _ = yym617 if false { } else { z.F.DecSliceStringX(yyv616, false, d) } } case "lun": if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int) } yym619 := z.DecBinary() _ = yym619 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, yys615) } // end switch yys615 } // end for yyj615 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 yyj622 int var yyb622 bool var yyhl622 bool = l >= 0 yyj622++ if yyhl622 { yyb622 = yyj622 > l } else { yyb622 = r.CheckBreak() } if yyb622 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv623 := &x.TargetWWNs yym624 := z.DecBinary() _ = yym624 if false { } else { z.F.DecSliceStringX(yyv623, false, d) } } yyj622++ if yyhl622 { yyb622 = yyj622 > l } else { yyb622 = r.CheckBreak() } if yyb622 { 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) } yym626 := z.DecBinary() _ = yym626 if false { } else { *((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234)) } } yyj622++ if yyhl622 { yyb622 = yyj622 > l } else { yyb622 = r.CheckBreak() } if yyb622 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj622++ if yyhl622 { yyb622 = yyj622 > l } else { yyb622 = r.CheckBreak() } if yyb622 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj622++ if yyhl622 { yyb622 = yyj622 > l } else { yyb622 = r.CheckBreak() } if yyb622 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj622-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym629 := z.EncBinary() _ = yym629 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep630 := !z.EncBinary() yy2arr630 := z.EncBasicHandle().StructToArray var yyq630 [5]bool _, _, _ = yysep630, yyq630, yy2arr630 const yyr630 bool = false yyq630[1] = x.FSType != "" yyq630[2] = x.SecretRef != nil yyq630[3] = x.ReadOnly != false yyq630[4] = len(x.Options) != 0 var yynn630 int if yyr630 || yy2arr630 { r.EncodeArrayStart(5) } else { yynn630 = 1 for _, b := range yyq630 { if b { yynn630++ } } r.EncodeMapStart(yynn630) yynn630 = 0 } if yyr630 || yy2arr630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym632 := z.EncBinary() _ = yym632 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("driver")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym633 := z.EncBinary() _ = yym633 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } if yyr630 || yy2arr630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq630[1] { yym635 := z.EncBinary() _ = yym635 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq630[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym636 := z.EncBinary() _ = yym636 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr630 || yy2arr630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq630[2] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq630[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr630 || yy2arr630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq630[3] { yym639 := z.EncBinary() _ = yym639 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq630[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym640 := z.EncBinary() _ = yym640 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr630 || yy2arr630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq630[4] { if x.Options == nil { r.EncodeNil() } else { yym642 := z.EncBinary() _ = yym642 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } else { r.EncodeNil() } } else { if yyq630[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { yym643 := z.EncBinary() _ = yym643 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } } if yyr630 || yy2arr630 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym644 := z.DecBinary() _ = yym644 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct645 := r.ContainerType() if yyct645 == codecSelferValueTypeMap1234 { yyl645 := r.ReadMapStart() if yyl645 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl645, d) } } else if yyct645 == codecSelferValueTypeArray1234 { yyl645 := r.ReadArrayStart() if yyl645 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl645, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys646Slc = z.DecScratchBuffer() // default slice to decode into _ = yys646Slc var yyhl646 bool = l >= 0 for yyj646 := 0; ; yyj646++ { if yyhl646 { if yyj646 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys646Slc = r.DecodeBytes(yys646Slc, true, true) yys646 := string(yys646Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys646 { case "driver": if r.TryDecodeAsNil() { x.Driver = "" } else { x.Driver = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } case "options": if r.TryDecodeAsNil() { x.Options = nil } else { yyv651 := &x.Options yym652 := z.DecBinary() _ = yym652 if false { } else { z.F.DecMapStringStringX(yyv651, false, d) } } default: z.DecStructFieldNotFound(-1, yys646) } // end switch yys646 } // end for yyj646 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj653 int var yyb653 bool var yyhl653 bool = l >= 0 yyj653++ if yyhl653 { yyb653 = yyj653 > l } else { yyb653 = r.CheckBreak() } if yyb653 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Driver = "" } else { x.Driver = string(r.DecodeString()) } yyj653++ if yyhl653 { yyb653 = yyj653 > l } else { yyb653 = r.CheckBreak() } if yyb653 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj653++ if yyhl653 { yyb653 = yyj653 > l } else { yyb653 = r.CheckBreak() } if yyb653 { 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) } yyj653++ if yyhl653 { yyb653 = yyj653 > l } else { yyb653 = r.CheckBreak() } if yyb653 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj653++ if yyhl653 { yyb653 = yyj653 > l } else { yyb653 = r.CheckBreak() } if yyb653 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Options = nil } else { yyv658 := &x.Options yym659 := z.DecBinary() _ = yym659 if false { } else { z.F.DecMapStringStringX(yyv658, false, d) } } for { yyj653++ if yyhl653 { yyb653 = yyj653 > l } else { yyb653 = r.CheckBreak() } if yyb653 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj653-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 { yym660 := z.EncBinary() _ = yym660 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep661 := !z.EncBinary() yy2arr661 := z.EncBasicHandle().StructToArray var yyq661 [4]bool _, _, _ = yysep661, yyq661, yy2arr661 const yyr661 bool = false yyq661[1] = x.FSType != "" yyq661[2] = x.Partition != 0 yyq661[3] = x.ReadOnly != false var yynn661 int if yyr661 || yy2arr661 { r.EncodeArrayStart(4) } else { yynn661 = 1 for _, b := range yyq661 { if b { yynn661++ } } r.EncodeMapStart(yynn661) yynn661 = 0 } if yyr661 || yy2arr661 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym663 := z.EncBinary() _ = yym663 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) yym664 := z.EncBinary() _ = yym664 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr661 || yy2arr661 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq661[1] { yym666 := z.EncBinary() _ = yym666 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq661[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym667 := z.EncBinary() _ = yym667 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr661 || yy2arr661 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq661[2] { yym669 := z.EncBinary() _ = yym669 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq661[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym670 := z.EncBinary() _ = yym670 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr661 || yy2arr661 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq661[3] { yym672 := z.EncBinary() _ = yym672 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq661[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym673 := z.EncBinary() _ = yym673 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr661 || yy2arr661 { 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 yym674 := z.DecBinary() _ = yym674 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct675 := r.ContainerType() if yyct675 == codecSelferValueTypeMap1234 { yyl675 := r.ReadMapStart() if yyl675 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl675, d) } } else if yyct675 == codecSelferValueTypeArray1234 { yyl675 := r.ReadArrayStart() if yyl675 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl675, 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 yys676Slc = z.DecScratchBuffer() // default slice to decode into _ = yys676Slc var yyhl676 bool = l >= 0 for yyj676 := 0; ; yyj676++ { if yyhl676 { if yyj676 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys676Slc = r.DecodeBytes(yys676Slc, true, true) yys676 := string(yys676Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys676 { 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, yys676) } // end switch yys676 } // end for yyj676 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 yyj681 int var yyb681 bool var yyhl681 bool = l >= 0 yyj681++ if yyhl681 { yyb681 = yyj681 > l } else { yyb681 = r.CheckBreak() } if yyb681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj681++ if yyhl681 { yyb681 = yyj681 > l } else { yyb681 = r.CheckBreak() } if yyb681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj681++ if yyhl681 { yyb681 = yyj681 > l } else { yyb681 = r.CheckBreak() } if yyb681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj681++ if yyhl681 { yyb681 = yyj681 > l } else { yyb681 = r.CheckBreak() } if yyb681 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj681++ if yyhl681 { yyb681 = yyj681 > l } else { yyb681 = r.CheckBreak() } if yyb681 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj681-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 { 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[1] = x.Revision != "" yyq687[2] = x.Directory != "" var yynn687 int if yyr687 || yy2arr687 { r.EncodeArrayStart(3) } else { yynn687 = 1 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.Repository)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repository")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym690 := z.EncBinary() _ = yym690 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq687[1] { yym692 := z.EncBinary() _ = yym692 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq687[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym693 := z.EncBinary() _ = yym693 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq687[2] { yym695 := z.EncBinary() _ = yym695 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq687[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym696 := z.EncBinary() _ = yym696 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } if yyr687 || yy2arr687 { 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 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 *GitRepoVolumeSource) 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 "repository": if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } case "revision": if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } case "directory": if r.TryDecodeAsNil() { x.Directory = "" } else { x.Directory = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys699) } // end switch yys699 } // end for yyj699 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 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.Repository = "" } else { x.Repository = 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.Revision = "" } else { x.Revision = 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.Directory = "" } else { x.Directory = string(r.DecodeString()) } 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 *SecretVolumeSource) 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 [1]bool _, _, _ = yysep708, yyq708, yy2arr708 const yyr708 bool = false yyq708[0] = x.SecretName != "" var yynn708 int if yyr708 || yy2arr708 { r.EncodeArrayStart(1) } else { yynn708 = 0 for _, b := range yyq708 { if b { yynn708++ } } r.EncodeMapStart(yynn708) yynn708 = 0 } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq708[0] { yym710 := z.EncBinary() _ = yym710 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq708[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym711 := z.EncBinary() _ = yym711 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } if yyr708 || yy2arr708 { 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 yym712 := z.DecBinary() _ = yym712 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct713 := r.ContainerType() if yyct713 == codecSelferValueTypeMap1234 { yyl713 := r.ReadMapStart() if yyl713 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl713, d) } } else if yyct713 == codecSelferValueTypeArray1234 { yyl713 := r.ReadArrayStart() if yyl713 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl713, 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 yys714Slc = z.DecScratchBuffer() // default slice to decode into _ = yys714Slc var yyhl714 bool = l >= 0 for yyj714 := 0; ; yyj714++ { if yyhl714 { if yyj714 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys714Slc = r.DecodeBytes(yys714Slc, true, true) yys714 := string(yys714Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys714 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys714) } // end switch yys714 } // end for yyj714 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 yyj716 int var yyb716 bool var yyhl716 bool = l >= 0 yyj716++ if yyhl716 { yyb716 = yyj716 > l } else { yyb716 = r.CheckBreak() } if yyb716 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } for { yyj716++ if yyhl716 { yyb716 = yyj716 > l } else { yyb716 = r.CheckBreak() } if yyb716 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj716-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 { yym718 := z.EncBinary() _ = yym718 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep719 := !z.EncBinary() yy2arr719 := z.EncBasicHandle().StructToArray var yyq719 [3]bool _, _, _ = yysep719, yyq719, yy2arr719 const yyr719 bool = false yyq719[2] = x.ReadOnly != false var yynn719 int if yyr719 || yy2arr719 { r.EncodeArrayStart(3) } else { yynn719 = 2 for _, b := range yyq719 { if b { yynn719++ } } r.EncodeMapStart(yynn719) yynn719 = 0 } if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym721 := z.EncBinary() _ = yym721 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) yym722 := z.EncBinary() _ = yym722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym724 := z.EncBinary() _ = yym724 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) yym725 := z.EncBinary() _ = yym725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr719 || yy2arr719 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq719[2] { yym727 := z.EncBinary() _ = yym727 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq719[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym728 := z.EncBinary() _ = yym728 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr719 || yy2arr719 { 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 yym729 := z.DecBinary() _ = yym729 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct730 := r.ContainerType() if yyct730 == codecSelferValueTypeMap1234 { yyl730 := r.ReadMapStart() if yyl730 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl730, d) } } else if yyct730 == codecSelferValueTypeArray1234 { yyl730 := r.ReadArrayStart() if yyl730 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl730, 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 yys731Slc = z.DecScratchBuffer() // default slice to decode into _ = yys731Slc var yyhl731 bool = l >= 0 for yyj731 := 0; ; yyj731++ { if yyhl731 { if yyj731 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys731Slc = r.DecodeBytes(yys731Slc, true, true) yys731 := string(yys731Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys731 { 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, yys731) } // end switch yys731 } // end for yyj731 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 yyj735 int var yyb735 bool var yyhl735 bool = l >= 0 yyj735++ if yyhl735 { yyb735 = yyj735 > l } else { yyb735 = r.CheckBreak() } if yyb735 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } yyj735++ if yyhl735 { yyb735 = yyj735 > l } else { yyb735 = r.CheckBreak() } if yyb735 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj735++ if yyhl735 { yyb735 = yyj735 > l } else { yyb735 = r.CheckBreak() } if yyb735 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj735++ if yyhl735 { yyb735 = yyj735 > l } else { yyb735 = r.CheckBreak() } if yyb735 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj735-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 { yym739 := z.EncBinary() _ = yym739 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep740 := !z.EncBinary() yy2arr740 := z.EncBasicHandle().StructToArray var yyq740 [3]bool _, _, _ = yysep740, yyq740, yy2arr740 const yyr740 bool = false yyq740[2] = x.ReadOnly != false var yynn740 int if yyr740 || yy2arr740 { r.EncodeArrayStart(3) } else { yynn740 = 2 for _, b := range yyq740 { if b { yynn740++ } } r.EncodeMapStart(yynn740) yynn740 = 0 } if yyr740 || yy2arr740 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym742 := z.EncBinary() _ = yym742 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) yym743 := z.EncBinary() _ = yym743 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } if yyr740 || yy2arr740 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym745 := z.EncBinary() _ = yym745 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) yym746 := z.EncBinary() _ = yym746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr740 || yy2arr740 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq740[2] { yym748 := z.EncBinary() _ = yym748 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq740[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym749 := z.EncBinary() _ = yym749 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr740 || yy2arr740 { 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 yym750 := z.DecBinary() _ = yym750 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct751 := r.ContainerType() if yyct751 == codecSelferValueTypeMap1234 { yyl751 := r.ReadMapStart() if yyl751 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl751, d) } } else if yyct751 == codecSelferValueTypeArray1234 { yyl751 := r.ReadArrayStart() if yyl751 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl751, 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 yys752Slc = z.DecScratchBuffer() // default slice to decode into _ = yys752Slc var yyhl752 bool = l >= 0 for yyj752 := 0; ; yyj752++ { if yyhl752 { if yyj752 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys752Slc = r.DecodeBytes(yys752Slc, true, true) yys752 := string(yys752Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys752 { 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, yys752) } // end switch yys752 } // end for yyj752 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 yyj756 int var yyb756 bool var yyhl756 bool = l >= 0 yyj756++ if yyhl756 { yyb756 = yyj756 > l } else { yyb756 = r.CheckBreak() } if yyb756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } yyj756++ if yyhl756 { yyb756 = yyj756 > l } else { yyb756 = r.CheckBreak() } if yyb756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj756++ if yyhl756 { yyb756 = yyj756 > l } else { yyb756 = r.CheckBreak() } if yyb756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj756++ if yyhl756 { yyb756 = yyj756 > l } else { yyb756 = r.CheckBreak() } if yyb756 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj756-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 { yym760 := z.EncBinary() _ = yym760 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep761 := !z.EncBinary() yy2arr761 := z.EncBasicHandle().StructToArray var yyq761 [8]bool _, _, _ = yysep761, yyq761, yy2arr761 const yyr761 bool = false yyq761[2] = x.FSType != "" yyq761[7] = x.ReadOnly != false var yynn761 int if yyr761 || yy2arr761 { r.EncodeArrayStart(8) } else { yynn761 = 6 for _, b := range yyq761 { if b { yynn761++ } } r.EncodeMapStart(yynn761) yynn761 = 0 } if yyr761 || yy2arr761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym763 := z.EncBinary() _ = yym763 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 { yym764 := z.EncBinary() _ = yym764 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } if yyr761 || yy2arr761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym766 := z.EncBinary() _ = yym766 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) yym767 := z.EncBinary() _ = yym767 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } if yyr761 || yy2arr761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq761[2] { yym769 := z.EncBinary() _ = yym769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq761[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym770 := z.EncBinary() _ = yym770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr761 || yy2arr761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym772 := z.EncBinary() _ = yym772 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) yym773 := z.EncBinary() _ = yym773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } if yyr761 || yy2arr761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym775 := z.EncBinary() _ = yym775 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) yym776 := z.EncBinary() _ = yym776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } if yyr761 || yy2arr761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym778 := z.EncBinary() _ = yym778 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) yym779 := z.EncBinary() _ = yym779 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } if yyr761 || yy2arr761 { 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 yyr761 || yy2arr761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq761[7] { yym782 := z.EncBinary() _ = yym782 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq761[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym783 := z.EncBinary() _ = yym783 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr761 || yy2arr761 { 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 yym784 := z.DecBinary() _ = yym784 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct785 := r.ContainerType() if yyct785 == codecSelferValueTypeMap1234 { yyl785 := r.ReadMapStart() if yyl785 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl785, d) } } else if yyct785 == codecSelferValueTypeArray1234 { yyl785 := r.ReadArrayStart() if yyl785 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl785, 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 yys786Slc = z.DecScratchBuffer() // default slice to decode into _ = yys786Slc var yyhl786 bool = l >= 0 for yyj786 := 0; ; yyj786++ { if yyhl786 { if yyj786 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys786Slc = r.DecodeBytes(yys786Slc, true, true) yys786 := string(yys786Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys786 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv787 := &x.CephMonitors yym788 := z.DecBinary() _ = yym788 if false { } else { z.F.DecSliceStringX(yyv787, 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, yys786) } // end switch yys786 } // end for yyj786 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 yyj796 int var yyb796 bool var yyhl796 bool = l >= 0 yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv797 := &x.CephMonitors yym798 := z.DecBinary() _ = yym798 if false { } else { z.F.DecSliceStringX(yyv797, false, d) } } yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { 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) } yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj796++ if yyhl796 { yyb796 = yyj796 > l } else { yyb796 = r.CheckBreak() } if yyb796 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj796-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 { yym806 := z.EncBinary() _ = yym806 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep807 := !z.EncBinary() yy2arr807 := z.EncBasicHandle().StructToArray var yyq807 [3]bool _, _, _ = yysep807, yyq807, yy2arr807 const yyr807 bool = false yyq807[1] = x.FSType != "" yyq807[2] = x.ReadOnly != false var yynn807 int if yyr807 || yy2arr807 { r.EncodeArrayStart(3) } else { yynn807 = 1 for _, b := range yyq807 { if b { yynn807++ } } r.EncodeMapStart(yynn807) yynn807 = 0 } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym809 := z.EncBinary() _ = yym809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym810 := z.EncBinary() _ = yym810 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq807[1] { yym812 := z.EncBinary() _ = yym812 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq807[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym813 := z.EncBinary() _ = yym813 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq807[2] { yym815 := z.EncBinary() _ = yym815 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq807[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym816 := z.EncBinary() _ = yym816 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr807 || yy2arr807 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym817 := z.DecBinary() _ = yym817 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct818 := r.ContainerType() if yyct818 == codecSelferValueTypeMap1234 { yyl818 := r.ReadMapStart() if yyl818 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl818, d) } } else if yyct818 == codecSelferValueTypeArray1234 { yyl818 := r.ReadArrayStart() if yyl818 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl818, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys819Slc = z.DecScratchBuffer() // default slice to decode into _ = yys819Slc var yyhl819 bool = l >= 0 for yyj819 := 0; ; yyj819++ { if yyhl819 { if yyj819 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys819Slc = r.DecodeBytes(yys819Slc, true, true) yys819 := string(yys819Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys819 { case "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, yys819) } // end switch yys819 } // end for yyj819 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 yyj823 int var yyb823 bool var yyhl823 bool = l >= 0 yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj823++ if yyhl823 { yyb823 = yyj823 > l } else { yyb823 = r.CheckBreak() } if yyb823 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj823-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym827 := z.EncBinary() _ = yym827 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep828 := !z.EncBinary() yy2arr828 := z.EncBasicHandle().StructToArray var yyq828 [6]bool _, _, _ = yysep828, yyq828, yy2arr828 const yyr828 bool = false yyq828[1] = x.Path != "" yyq828[2] = x.User != "" yyq828[3] = x.SecretFile != "" yyq828[4] = x.SecretRef != nil yyq828[5] = x.ReadOnly != false var yynn828 int if yyr828 || yy2arr828 { r.EncodeArrayStart(6) } else { yynn828 = 1 for _, b := range yyq828 { if b { yynn828++ } } r.EncodeMapStart(yynn828) yynn828 = 0 } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { yym830 := z.EncBinary() _ = yym830 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 { yym831 := z.EncBinary() _ = yym831 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[1] { yym833 := z.EncBinary() _ = yym833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq828[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym834 := z.EncBinary() _ = yym834 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[2] { yym836 := z.EncBinary() _ = yym836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq828[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym837 := z.EncBinary() _ = yym837 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[3] { yym839 := z.EncBinary() _ = yym839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq828[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym840 := z.EncBinary() _ = yym840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[4] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq828[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr828 || yy2arr828 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq828[5] { yym843 := z.EncBinary() _ = yym843 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq828[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym844 := z.EncBinary() _ = yym844 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr828 || yy2arr828 { 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 yym845 := z.DecBinary() _ = yym845 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct846 := r.ContainerType() if yyct846 == codecSelferValueTypeMap1234 { yyl846 := r.ReadMapStart() if yyl846 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl846, d) } } else if yyct846 == codecSelferValueTypeArray1234 { yyl846 := r.ReadArrayStart() if yyl846 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl846, 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 yys847Slc = z.DecScratchBuffer() // default slice to decode into _ = yys847Slc var yyhl847 bool = l >= 0 for yyj847 := 0; ; yyj847++ { if yyhl847 { if yyj847 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys847Slc = r.DecodeBytes(yys847Slc, true, true) yys847 := string(yys847Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys847 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv848 := &x.Monitors yym849 := z.DecBinary() _ = yym849 if false { } else { z.F.DecSliceStringX(yyv848, false, d) } } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "user": if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } case "secretFile": if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys847) } // end switch yys847 } // end for yyj847 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 yyj855 int var yyb855 bool var yyhl855 bool = l >= 0 yyj855++ if yyhl855 { yyb855 = yyj855 > l } else { yyb855 = r.CheckBreak() } if yyb855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv856 := &x.Monitors yym857 := z.DecBinary() _ = yym857 if false { } else { z.F.DecSliceStringX(yyv856, false, d) } } yyj855++ if yyhl855 { yyb855 = yyj855 > l } else { yyb855 = r.CheckBreak() } if yyb855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj855++ if yyhl855 { yyb855 = yyj855 > l } else { yyb855 = r.CheckBreak() } if yyb855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj855++ if yyhl855 { yyb855 = yyj855 > l } else { yyb855 = r.CheckBreak() } if yyb855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } yyj855++ if yyhl855 { yyb855 = yyj855 > l } else { yyb855 = r.CheckBreak() } if yyb855 { 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) } yyj855++ if yyhl855 { yyb855 = yyj855 > l } else { yyb855 = r.CheckBreak() } if yyb855 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj855++ if yyhl855 { yyb855 = yyj855 > l } else { yyb855 = r.CheckBreak() } if yyb855 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj855-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 { yym863 := z.EncBinary() _ = yym863 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep864 := !z.EncBinary() yy2arr864 := z.EncBasicHandle().StructToArray var yyq864 [1]bool _, _, _ = yysep864, yyq864, yy2arr864 const yyr864 bool = false var yynn864 int if yyr864 || yy2arr864 { r.EncodeArrayStart(1) } else { yynn864 = 1 for _, b := range yyq864 { if b { yynn864++ } } r.EncodeMapStart(yynn864) yynn864 = 0 } if yyr864 || yy2arr864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym866 := z.EncBinary() _ = yym866 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) yym867 := z.EncBinary() _ = yym867 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } if yyr864 || yy2arr864 { 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 yym868 := z.DecBinary() _ = yym868 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct869 := r.ContainerType() if yyct869 == codecSelferValueTypeMap1234 { yyl869 := r.ReadMapStart() if yyl869 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl869, d) } } else if yyct869 == codecSelferValueTypeArray1234 { yyl869 := r.ReadArrayStart() if yyl869 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl869, 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 yys870Slc = z.DecScratchBuffer() // default slice to decode into _ = yys870Slc var yyhl870 bool = l >= 0 for yyj870 := 0; ; yyj870++ { if yyhl870 { if yyj870 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys870Slc = r.DecodeBytes(yys870Slc, true, true) yys870 := string(yys870Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys870 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys870) } // end switch yys870 } // end for yyj870 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 yyj872 int var yyb872 bool var yyhl872 bool = l >= 0 yyj872++ if yyhl872 { yyb872 = yyj872 > l } else { yyb872 = r.CheckBreak() } if yyb872 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } for { yyj872++ if yyhl872 { yyb872 = yyj872 > l } else { yyb872 = r.CheckBreak() } if yyb872 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj872-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 { yym874 := z.EncBinary() _ = yym874 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep875 := !z.EncBinary() yy2arr875 := z.EncBasicHandle().StructToArray var yyq875 [1]bool _, _, _ = yysep875, yyq875, yy2arr875 const yyr875 bool = false yyq875[0] = len(x.Items) != 0 var yynn875 int if yyr875 || yy2arr875 { r.EncodeArrayStart(1) } else { yynn875 = 0 for _, b := range yyq875 { if b { yynn875++ } } r.EncodeMapStart(yynn875) yynn875 = 0 } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq875[0] { if x.Items == nil { r.EncodeNil() } else { yym877 := z.EncBinary() _ = yym877 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq875[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym878 := z.EncBinary() _ = yym878 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } } if yyr875 || yy2arr875 { 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 yym879 := z.DecBinary() _ = yym879 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct880 := r.ContainerType() if yyct880 == codecSelferValueTypeMap1234 { yyl880 := r.ReadMapStart() if yyl880 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl880, d) } } else if yyct880 == codecSelferValueTypeArray1234 { yyl880 := r.ReadArrayStart() if yyl880 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl880, 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 yys881Slc = z.DecScratchBuffer() // default slice to decode into _ = yys881Slc var yyhl881 bool = l >= 0 for yyj881 := 0; ; yyj881++ { if yyhl881 { if yyj881 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys881Slc = r.DecodeBytes(yys881Slc, true, true) yys881 := string(yys881Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys881 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv882 := &x.Items yym883 := z.DecBinary() _ = yym883 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv882), d) } } default: z.DecStructFieldNotFound(-1, yys881) } // end switch yys881 } // end for yyj881 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 yyj884 int var yyb884 bool var yyhl884 bool = l >= 0 yyj884++ if yyhl884 { yyb884 = yyj884 > l } else { yyb884 = r.CheckBreak() } if yyb884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv885 := &x.Items yym886 := z.DecBinary() _ = yym886 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv885), d) } } for { yyj884++ if yyhl884 { yyb884 = yyj884 > l } else { yyb884 = r.CheckBreak() } if yyb884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj884-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym887 := z.EncBinary() _ = yym887 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep888 := !z.EncBinary() yy2arr888 := z.EncBasicHandle().StructToArray var yyq888 [2]bool _, _, _ = yysep888, yyq888, yy2arr888 const yyr888 bool = false var yynn888 int if yyr888 || yy2arr888 { r.EncodeArrayStart(2) } else { yynn888 = 2 for _, b := range yyq888 { if b { yynn888++ } } r.EncodeMapStart(yynn888) yynn888 = 0 } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym890 := z.EncBinary() _ = yym890 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) yym891 := z.EncBinary() _ = yym891 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy893 := &x.FieldRef yy893.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy894 := &x.FieldRef yy894.CodecEncodeSelf(e) } if yyr888 || yy2arr888 { 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 yym895 := z.DecBinary() _ = yym895 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct896 := r.ContainerType() if yyct896 == codecSelferValueTypeMap1234 { yyl896 := r.ReadMapStart() if yyl896 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl896, d) } } else if yyct896 == codecSelferValueTypeArray1234 { yyl896 := r.ReadArrayStart() if yyl896 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl896, 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 yys897Slc = z.DecScratchBuffer() // default slice to decode into _ = yys897Slc var yyhl897 bool = l >= 0 for yyj897 := 0; ; yyj897++ { if yyhl897 { if yyj897 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys897Slc = r.DecodeBytes(yys897Slc, true, true) yys897 := string(yys897Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys897 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "fieldRef": if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv899 := &x.FieldRef yyv899.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys897) } // end switch yys897 } // end for yyj897 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 yyj900 int var yyb900 bool var yyhl900 bool = l >= 0 yyj900++ if yyhl900 { yyb900 = yyj900 > l } else { yyb900 = r.CheckBreak() } if yyb900 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj900++ if yyhl900 { yyb900 = yyj900 > l } else { yyb900 = r.CheckBreak() } if yyb900 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv902 := &x.FieldRef yyv902.CodecDecodeSelf(d) } for { yyj900++ if yyhl900 { yyb900 = yyj900 > l } else { yyb900 = r.CheckBreak() } if yyb900 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj900-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 { yym903 := z.EncBinary() _ = yym903 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep904 := !z.EncBinary() yy2arr904 := z.EncBasicHandle().StructToArray var yyq904 [5]bool _, _, _ = yysep904, yyq904, yy2arr904 const yyr904 bool = false yyq904[0] = x.Name != "" yyq904[1] = x.HostPort != 0 yyq904[3] = x.Protocol != "" yyq904[4] = x.HostIP != "" var yynn904 int if yyr904 || yy2arr904 { r.EncodeArrayStart(5) } else { yynn904 = 1 for _, b := range yyq904 { if b { yynn904++ } } r.EncodeMapStart(yynn904) yynn904 = 0 } if yyr904 || yy2arr904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq904[0] { yym906 := z.EncBinary() _ = yym906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq904[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym907 := z.EncBinary() _ = yym907 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr904 || yy2arr904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq904[1] { yym909 := z.EncBinary() _ = yym909 if false { } else { r.EncodeInt(int64(x.HostPort)) } } else { r.EncodeInt(0) } } else { if yyq904[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym910 := z.EncBinary() _ = yym910 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } if yyr904 || yy2arr904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym912 := z.EncBinary() _ = yym912 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym913 := z.EncBinary() _ = yym913 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } if yyr904 || yy2arr904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq904[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq904[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } if yyr904 || yy2arr904 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq904[4] { yym916 := z.EncBinary() _ = yym916 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq904[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym917 := z.EncBinary() _ = yym917 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr904 || yy2arr904 { 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 yym918 := z.DecBinary() _ = yym918 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct919 := r.ContainerType() if yyct919 == codecSelferValueTypeMap1234 { yyl919 := r.ReadMapStart() if yyl919 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl919, d) } } else if yyct919 == codecSelferValueTypeArray1234 { yyl919 := r.ReadArrayStart() if yyl919 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl919, 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 yys920Slc = z.DecScratchBuffer() // default slice to decode into _ = yys920Slc var yyhl920 bool = l >= 0 for yyj920 := 0; ; yyj920++ { if yyhl920 { if yyj920 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys920Slc = r.DecodeBytes(yys920Slc, true, true) yys920 := string(yys920Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys920 { 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, yys920) } // end switch yys920 } // end for yyj920 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 yyj926 int var yyb926 bool var yyhl926 bool = l >= 0 yyj926++ if yyhl926 { yyb926 = yyj926 > l } else { yyb926 = r.CheckBreak() } if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj926++ if yyhl926 { yyb926 = yyj926 > l } else { yyb926 = r.CheckBreak() } if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj926++ if yyhl926 { yyb926 = yyj926 > l } else { yyb926 = r.CheckBreak() } if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj926++ if yyhl926 { yyb926 = yyj926 > l } else { yyb926 = r.CheckBreak() } if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj926++ if yyhl926 { yyb926 = yyj926 > l } else { yyb926 = r.CheckBreak() } if yyb926 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } for { yyj926++ if yyhl926 { yyb926 = yyj926 > l } else { yyb926 = r.CheckBreak() } if yyb926 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj926-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 { yym932 := z.EncBinary() _ = yym932 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep933 := !z.EncBinary() yy2arr933 := z.EncBasicHandle().StructToArray var yyq933 [3]bool _, _, _ = yysep933, yyq933, yy2arr933 const yyr933 bool = false yyq933[1] = x.ReadOnly != false var yynn933 int if yyr933 || yy2arr933 { r.EncodeArrayStart(3) } else { yynn933 = 2 for _, b := range yyq933 { if b { yynn933++ } } r.EncodeMapStart(yynn933) yynn933 = 0 } if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym935 := z.EncBinary() _ = yym935 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) yym936 := z.EncBinary() _ = yym936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq933[1] { yym938 := z.EncBinary() _ = yym938 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq933[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym939 := z.EncBinary() _ = yym939 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr933 || yy2arr933 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym941 := z.EncBinary() _ = yym941 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) yym942 := z.EncBinary() _ = yym942 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } if yyr933 || yy2arr933 { 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 yym943 := z.DecBinary() _ = yym943 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct944 := r.ContainerType() if yyct944 == codecSelferValueTypeMap1234 { yyl944 := r.ReadMapStart() if yyl944 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl944, d) } } else if yyct944 == codecSelferValueTypeArray1234 { yyl944 := r.ReadArrayStart() if yyl944 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl944, 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 yys945Slc = z.DecScratchBuffer() // default slice to decode into _ = yys945Slc var yyhl945 bool = l >= 0 for yyj945 := 0; ; yyj945++ { if yyhl945 { if yyj945 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys945Slc = r.DecodeBytes(yys945Slc, true, true) yys945 := string(yys945Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys945 { 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, yys945) } // end switch yys945 } // end for yyj945 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 yyj949 int var yyb949 bool var yyhl949 bool = l >= 0 yyj949++ if yyhl949 { yyb949 = yyj949 > l } else { yyb949 = r.CheckBreak() } if yyb949 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj949++ if yyhl949 { yyb949 = yyj949 > l } else { yyb949 = r.CheckBreak() } if yyb949 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj949++ if yyhl949 { yyb949 = yyj949 > l } else { yyb949 = r.CheckBreak() } if yyb949 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } for { yyj949++ if yyhl949 { yyb949 = yyj949 > l } else { yyb949 = r.CheckBreak() } if yyb949 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj949-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 { yym953 := z.EncBinary() _ = yym953 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep954 := !z.EncBinary() yy2arr954 := z.EncBasicHandle().StructToArray var yyq954 [3]bool _, _, _ = yysep954, yyq954, yy2arr954 const yyr954 bool = false yyq954[1] = x.Value != "" yyq954[2] = x.ValueFrom != nil var yynn954 int if yyr954 || yy2arr954 { r.EncodeArrayStart(3) } else { yynn954 = 1 for _, b := range yyq954 { if b { yynn954++ } } r.EncodeMapStart(yynn954) yynn954 = 0 } if yyr954 || yy2arr954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym956 := z.EncBinary() _ = yym956 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) yym957 := z.EncBinary() _ = yym957 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr954 || yy2arr954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq954[1] { yym959 := z.EncBinary() _ = yym959 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq954[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym960 := z.EncBinary() _ = yym960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr954 || yy2arr954 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq954[2] { if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq954[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 yyr954 || yy2arr954 { 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 yym962 := z.DecBinary() _ = yym962 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct963 := r.ContainerType() if yyct963 == codecSelferValueTypeMap1234 { yyl963 := r.ReadMapStart() if yyl963 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl963, d) } } else if yyct963 == codecSelferValueTypeArray1234 { yyl963 := r.ReadArrayStart() if yyl963 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl963, 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 yys964Slc = z.DecScratchBuffer() // default slice to decode into _ = yys964Slc var yyhl964 bool = l >= 0 for yyj964 := 0; ; yyj964++ { if yyhl964 { if yyj964 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys964Slc = r.DecodeBytes(yys964Slc, true, true) yys964 := string(yys964Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys964 { 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, yys964) } // end switch yys964 } // end for yyj964 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 yyj968 int var yyb968 bool var yyhl968 bool = l >= 0 yyj968++ if yyhl968 { yyb968 = yyj968 > l } else { yyb968 = r.CheckBreak() } if yyb968 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj968++ if yyhl968 { yyb968 = yyj968 > l } else { yyb968 = r.CheckBreak() } if yyb968 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj968++ if yyhl968 { yyb968 = yyj968 > l } else { yyb968 = r.CheckBreak() } if yyb968 { 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 { yyj968++ if yyhl968 { yyb968 = yyj968 > l } else { yyb968 = r.CheckBreak() } if yyb968 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj968-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 { yym972 := z.EncBinary() _ = yym972 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep973 := !z.EncBinary() yy2arr973 := z.EncBasicHandle().StructToArray var yyq973 [3]bool _, _, _ = yysep973, yyq973, yy2arr973 const yyr973 bool = false yyq973[0] = x.FieldRef != nil yyq973[1] = x.ConfigMapKeyRef != nil yyq973[2] = x.SecretKeyRef != nil var yynn973 int if yyr973 || yy2arr973 { r.EncodeArrayStart(3) } else { yynn973 = 0 for _, b := range yyq973 { if b { yynn973++ } } r.EncodeMapStart(yynn973) yynn973 = 0 } if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq973[0] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq973[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } } if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq973[1] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq973[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } } if yyr973 || yy2arr973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq973[2] { if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq973[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } } if yyr973 || yy2arr973 { 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 yym977 := z.DecBinary() _ = yym977 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct978 := r.ContainerType() if yyct978 == codecSelferValueTypeMap1234 { yyl978 := r.ReadMapStart() if yyl978 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl978, d) } } else if yyct978 == codecSelferValueTypeArray1234 { yyl978 := r.ReadArrayStart() if yyl978 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl978, 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 yys979Slc = z.DecScratchBuffer() // default slice to decode into _ = yys979Slc var yyhl979 bool = l >= 0 for yyj979 := 0; ; yyj979++ { if yyhl979 { if yyj979 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys979Slc = r.DecodeBytes(yys979Slc, true, true) yys979 := string(yys979Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys979 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } case "configMapKeyRef": if r.TryDecodeAsNil() { if x.ConfigMapKeyRef != nil { x.ConfigMapKeyRef = nil } } else { if x.ConfigMapKeyRef == nil { x.ConfigMapKeyRef = new(ConfigMapKeySelector) } x.ConfigMapKeyRef.CodecDecodeSelf(d) } case "secretKeyRef": if r.TryDecodeAsNil() { if x.SecretKeyRef != nil { x.SecretKeyRef = nil } } else { if x.SecretKeyRef == nil { x.SecretKeyRef = new(SecretKeySelector) } x.SecretKeyRef.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys979) } // end switch yys979 } // end for yyj979 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 yyj983 int var yyb983 bool var yyhl983 bool = l >= 0 yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ConfigMapKeyRef != nil { x.ConfigMapKeyRef = nil } } else { if x.ConfigMapKeyRef == nil { x.ConfigMapKeyRef = new(ConfigMapKeySelector) } x.ConfigMapKeyRef.CodecDecodeSelf(d) } yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretKeyRef != nil { x.SecretKeyRef = nil } } else { if x.SecretKeyRef == nil { x.SecretKeyRef = new(SecretKeySelector) } x.SecretKeyRef.CodecDecodeSelf(d) } for { yyj983++ if yyhl983 { yyb983 = yyj983 > l } else { yyb983 = r.CheckBreak() } if yyb983 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj983-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym987 := z.EncBinary() _ = yym987 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep988 := !z.EncBinary() yy2arr988 := z.EncBasicHandle().StructToArray var yyq988 [2]bool _, _, _ = yysep988, yyq988, yy2arr988 const yyr988 bool = false var yynn988 int if yyr988 || yy2arr988 { r.EncodeArrayStart(2) } else { yynn988 = 2 for _, b := range yyq988 { if b { yynn988++ } } r.EncodeMapStart(yynn988) yynn988 = 0 } if yyr988 || yy2arr988 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym990 := z.EncBinary() _ = yym990 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) yym991 := z.EncBinary() _ = yym991 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr988 || yy2arr988 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym993 := z.EncBinary() _ = yym993 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) yym994 := z.EncBinary() _ = yym994 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } if yyr988 || yy2arr988 { 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 yym995 := z.DecBinary() _ = yym995 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct996 := r.ContainerType() if yyct996 == codecSelferValueTypeMap1234 { yyl996 := r.ReadMapStart() if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl996, d) } } else if yyct996 == codecSelferValueTypeArray1234 { yyl996 := r.ReadArrayStart() if yyl996 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl996, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys997Slc = z.DecScratchBuffer() // default slice to decode into _ = yys997Slc var yyhl997 bool = l >= 0 for yyj997 := 0; ; yyj997++ { if yyhl997 { if yyj997 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys997Slc = r.DecodeBytes(yys997Slc, true, true) yys997 := string(yys997Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys997 { case "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, yys997) } // end switch yys997 } // end for yyj997 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 yyj1000 int var yyb1000 bool var yyhl1000 bool = l >= 0 yyj1000++ if yyhl1000 { yyb1000 = yyj1000 > l } else { yyb1000 = r.CheckBreak() } if yyb1000 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1000++ if yyhl1000 { yyb1000 = yyj1000 > l } else { yyb1000 = r.CheckBreak() } if yyb1000 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj1000++ if yyhl1000 { yyb1000 = yyj1000 > l } else { yyb1000 = r.CheckBreak() } if yyb1000 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1000-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1003 := z.EncBinary() _ = yym1003 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1004 := !z.EncBinary() yy2arr1004 := z.EncBasicHandle().StructToArray var yyq1004 [2]bool _, _, _ = yysep1004, yyq1004, yy2arr1004 const yyr1004 bool = false var yynn1004 int if yyr1004 || yy2arr1004 { r.EncodeArrayStart(2) } else { yynn1004 = 2 for _, b := range yyq1004 { if b { yynn1004++ } } r.EncodeMapStart(yynn1004) yynn1004 = 0 } if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1006 := z.EncBinary() _ = yym1006 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) yym1007 := z.EncBinary() _ = yym1007 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1009 := z.EncBinary() _ = yym1009 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1010 := z.EncBinary() _ = yym1010 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1004 || yy2arr1004 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1011 := z.DecBinary() _ = yym1011 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1012 := r.ContainerType() if yyct1012 == codecSelferValueTypeMap1234 { yyl1012 := r.ReadMapStart() if yyl1012 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1012, d) } } else if yyct1012 == codecSelferValueTypeArray1234 { yyl1012 := r.ReadArrayStart() if yyl1012 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1012, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1013Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1013Slc var yyhl1013 bool = l >= 0 for yyj1013 := 0; ; yyj1013++ { if yyhl1013 { if yyj1013 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1013Slc = r.DecodeBytes(yys1013Slc, true, true) yys1013 := string(yys1013Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1013 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1013) } // end switch yys1013 } // end for yyj1013 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1016 int var yyb1016 bool var yyhl1016 bool = l >= 0 yyj1016++ if yyhl1016 { yyb1016 = yyj1016 > l } else { yyb1016 = r.CheckBreak() } if yyb1016 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1016++ if yyhl1016 { yyb1016 = yyj1016 > l } else { yyb1016 = r.CheckBreak() } if yyb1016 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } for { yyj1016++ if yyhl1016 { yyb1016 = yyj1016 > l } else { yyb1016 = r.CheckBreak() } if yyb1016 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1016-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1019 := z.EncBinary() _ = yym1019 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1020 := !z.EncBinary() yy2arr1020 := z.EncBasicHandle().StructToArray var yyq1020 [2]bool _, _, _ = yysep1020, yyq1020, yy2arr1020 const yyr1020 bool = false var yynn1020 int if yyr1020 || yy2arr1020 { r.EncodeArrayStart(2) } else { yynn1020 = 2 for _, b := range yyq1020 { if b { yynn1020++ } } r.EncodeMapStart(yynn1020) yynn1020 = 0 } if yyr1020 || yy2arr1020 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1022 := z.EncBinary() _ = yym1022 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) yym1023 := z.EncBinary() _ = yym1023 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1020 || yy2arr1020 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1025 := z.EncBinary() _ = yym1025 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1026 := z.EncBinary() _ = yym1026 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1020 || yy2arr1020 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1027 := z.DecBinary() _ = yym1027 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1028 := r.ContainerType() if yyct1028 == codecSelferValueTypeMap1234 { yyl1028 := r.ReadMapStart() if yyl1028 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1028, d) } } else if yyct1028 == codecSelferValueTypeArray1234 { yyl1028 := r.ReadArrayStart() if yyl1028 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1028, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1029Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1029Slc var yyhl1029 bool = l >= 0 for yyj1029 := 0; ; yyj1029++ { if yyhl1029 { if yyj1029 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1029Slc = r.DecodeBytes(yys1029Slc, true, true) yys1029 := string(yys1029Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1029 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1029) } // end switch yys1029 } // end for yyj1029 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1032 int var yyb1032 bool var yyhl1032 bool = l >= 0 yyj1032++ if yyhl1032 { yyb1032 = yyj1032 > l } else { yyb1032 = r.CheckBreak() } if yyb1032 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1032++ if yyhl1032 { yyb1032 = yyj1032 > l } else { yyb1032 = r.CheckBreak() } if yyb1032 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } for { yyj1032++ if yyhl1032 { yyb1032 = yyj1032 > l } else { yyb1032 = r.CheckBreak() } if yyb1032 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1032-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1035 := z.EncBinary() _ = yym1035 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1036 := !z.EncBinary() yy2arr1036 := z.EncBasicHandle().StructToArray var yyq1036 [2]bool _, _, _ = yysep1036, yyq1036, yy2arr1036 const yyr1036 bool = false var yynn1036 int if yyr1036 || yy2arr1036 { r.EncodeArrayStart(2) } else { yynn1036 = 2 for _, b := range yyq1036 { if b { yynn1036++ } } r.EncodeMapStart(yynn1036) yynn1036 = 0 } if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1038 := z.EncBinary() _ = yym1038 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) yym1039 := z.EncBinary() _ = yym1039 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1041 := z.EncBinary() _ = yym1041 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1042 := z.EncBinary() _ = yym1042 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1043 := z.DecBinary() _ = yym1043 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1044 := r.ContainerType() if yyct1044 == codecSelferValueTypeMap1234 { yyl1044 := r.ReadMapStart() if yyl1044 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1044, d) } } else if yyct1044 == codecSelferValueTypeArray1234 { yyl1044 := r.ReadArrayStart() if yyl1044 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1044, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1045Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1045Slc var yyhl1045 bool = l >= 0 for yyj1045 := 0; ; yyj1045++ { if yyhl1045 { if yyj1045 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1045Slc = r.DecodeBytes(yys1045Slc, true, true) yys1045 := string(yys1045Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1045 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1045) } // end switch yys1045 } // end for yyj1045 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1048 int var yyb1048 bool var yyhl1048 bool = l >= 0 yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } for { yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1048-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 { yym1051 := z.EncBinary() _ = yym1051 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1052 := !z.EncBinary() yy2arr1052 := z.EncBasicHandle().StructToArray var yyq1052 [5]bool _, _, _ = yysep1052, yyq1052, yy2arr1052 const yyr1052 bool = false yyq1052[0] = x.Path != "" yyq1052[1] = true yyq1052[2] = x.Host != "" yyq1052[3] = x.Scheme != "" yyq1052[4] = len(x.HTTPHeaders) != 0 var yynn1052 int if yyr1052 || yy2arr1052 { r.EncodeArrayStart(5) } else { yynn1052 = 0 for _, b := range yyq1052 { if b { yynn1052++ } } r.EncodeMapStart(yynn1052) yynn1052 = 0 } if yyr1052 || yy2arr1052 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1052[0] { yym1054 := z.EncBinary() _ = yym1054 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1052[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1055 := z.EncBinary() _ = yym1055 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr1052 || yy2arr1052 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1052[1] { yy1057 := &x.Port yym1058 := z.EncBinary() _ = yym1058 if false { } else if z.HasExtensions() && z.EncExt(yy1057) { } else if !yym1058 && z.IsJSONHandle() { z.EncJSONMarshal(yy1057) } else { z.EncFallback(yy1057) } } else { r.EncodeNil() } } else { if yyq1052[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1059 := &x.Port yym1060 := z.EncBinary() _ = yym1060 if false { } else if z.HasExtensions() && z.EncExt(yy1059) { } else if !yym1060 && z.IsJSONHandle() { z.EncJSONMarshal(yy1059) } else { z.EncFallback(yy1059) } } } if yyr1052 || yy2arr1052 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1052[2] { yym1062 := z.EncBinary() _ = yym1062 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1052[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1063 := z.EncBinary() _ = yym1063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr1052 || yy2arr1052 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1052[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1052[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr1052 || yy2arr1052 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1052[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1066 := z.EncBinary() _ = yym1066 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } else { r.EncodeNil() } } else { if yyq1052[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1067 := z.EncBinary() _ = yym1067 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } } if yyr1052 || yy2arr1052 { 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 yym1068 := z.DecBinary() _ = yym1068 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1069 := r.ContainerType() if yyct1069 == codecSelferValueTypeMap1234 { yyl1069 := r.ReadMapStart() if yyl1069 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1069, d) } } else if yyct1069 == codecSelferValueTypeArray1234 { yyl1069 := r.ReadArrayStart() if yyl1069 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1069, 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 yys1070Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1070Slc var yyhl1070 bool = l >= 0 for yyj1070 := 0; ; yyj1070++ { if yyhl1070 { if yyj1070 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1070Slc = r.DecodeBytes(yys1070Slc, true, true) yys1070 := string(yys1070Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1070 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1072 := &x.Port yym1073 := z.DecBinary() _ = yym1073 if false { } else if z.HasExtensions() && z.DecExt(yyv1072) { } else if !yym1073 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1072) } else { z.DecFallback(yyv1072, false) } } case "host": if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } case "scheme": if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } case "httpHeaders": if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1076 := &x.HTTPHeaders yym1077 := z.DecBinary() _ = yym1077 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1076), d) } } default: z.DecStructFieldNotFound(-1, yys1070) } // end switch yys1070 } // end for yyj1070 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 yyj1078 int var yyb1078 bool var yyhl1078 bool = l >= 0 yyj1078++ if yyhl1078 { yyb1078 = yyj1078 > l } else { yyb1078 = r.CheckBreak() } if yyb1078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1078++ if yyhl1078 { yyb1078 = yyj1078 > l } else { yyb1078 = r.CheckBreak() } if yyb1078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1080 := &x.Port yym1081 := z.DecBinary() _ = yym1081 if false { } else if z.HasExtensions() && z.DecExt(yyv1080) { } else if !yym1081 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1080) } else { z.DecFallback(yyv1080, false) } } yyj1078++ if yyhl1078 { yyb1078 = yyj1078 > l } else { yyb1078 = r.CheckBreak() } if yyb1078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj1078++ if yyhl1078 { yyb1078 = yyj1078 > l } else { yyb1078 = r.CheckBreak() } if yyb1078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } yyj1078++ if yyhl1078 { yyb1078 = yyj1078 > l } else { yyb1078 = r.CheckBreak() } if yyb1078 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1084 := &x.HTTPHeaders yym1085 := z.DecBinary() _ = yym1085 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1084), d) } } for { yyj1078++ if yyhl1078 { yyb1078 = yyj1078 > l } else { yyb1078 = r.CheckBreak() } if yyb1078 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1078-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1086 := z.EncBinary() _ = yym1086 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 yym1087 := z.DecBinary() _ = yym1087 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 { yym1088 := z.EncBinary() _ = yym1088 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1089 := !z.EncBinary() yy2arr1089 := z.EncBasicHandle().StructToArray var yyq1089 [1]bool _, _, _ = yysep1089, yyq1089, yy2arr1089 const yyr1089 bool = false yyq1089[0] = true var yynn1089 int if yyr1089 || yy2arr1089 { r.EncodeArrayStart(1) } else { yynn1089 = 0 for _, b := range yyq1089 { if b { yynn1089++ } } r.EncodeMapStart(yynn1089) yynn1089 = 0 } if yyr1089 || yy2arr1089 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1089[0] { yy1091 := &x.Port yym1092 := z.EncBinary() _ = yym1092 if false { } else if z.HasExtensions() && z.EncExt(yy1091) { } else if !yym1092 && z.IsJSONHandle() { z.EncJSONMarshal(yy1091) } else { z.EncFallback(yy1091) } } else { r.EncodeNil() } } else { if yyq1089[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1093 := &x.Port yym1094 := z.EncBinary() _ = yym1094 if false { } else if z.HasExtensions() && z.EncExt(yy1093) { } else if !yym1094 && z.IsJSONHandle() { z.EncJSONMarshal(yy1093) } else { z.EncFallback(yy1093) } } } if yyr1089 || yy2arr1089 { 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 yym1095 := z.DecBinary() _ = yym1095 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1096 := r.ContainerType() if yyct1096 == codecSelferValueTypeMap1234 { yyl1096 := r.ReadMapStart() if yyl1096 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1096, d) } } else if yyct1096 == codecSelferValueTypeArray1234 { yyl1096 := r.ReadArrayStart() if yyl1096 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1096, 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 yys1097Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1097Slc var yyhl1097 bool = l >= 0 for yyj1097 := 0; ; yyj1097++ { if yyhl1097 { if yyj1097 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1097Slc = r.DecodeBytes(yys1097Slc, true, true) yys1097 := string(yys1097Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1097 { case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1098 := &x.Port yym1099 := z.DecBinary() _ = yym1099 if false { } else if z.HasExtensions() && z.DecExt(yyv1098) { } else if !yym1099 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1098) } else { z.DecFallback(yyv1098, false) } } default: z.DecStructFieldNotFound(-1, yys1097) } // end switch yys1097 } // end for yyj1097 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 yyj1100 int var yyb1100 bool var yyhl1100 bool = l >= 0 yyj1100++ if yyhl1100 { yyb1100 = yyj1100 > l } else { yyb1100 = r.CheckBreak() } if yyb1100 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1101 := &x.Port yym1102 := z.DecBinary() _ = yym1102 if false { } else if z.HasExtensions() && z.DecExt(yyv1101) { } else if !yym1102 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1101) } else { z.DecFallback(yyv1101, false) } } for { yyj1100++ if yyhl1100 { yyb1100 = yyj1100 > l } else { yyb1100 = r.CheckBreak() } if yyb1100 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1100-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 { yym1103 := z.EncBinary() _ = yym1103 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1104 := !z.EncBinary() yy2arr1104 := z.EncBasicHandle().StructToArray var yyq1104 [1]bool _, _, _ = yysep1104, yyq1104, yy2arr1104 const yyr1104 bool = false yyq1104[0] = len(x.Command) != 0 var yynn1104 int if yyr1104 || yy2arr1104 { r.EncodeArrayStart(1) } else { yynn1104 = 0 for _, b := range yyq1104 { if b { yynn1104++ } } r.EncodeMapStart(yynn1104) yynn1104 = 0 } if yyr1104 || yy2arr1104 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1104[0] { if x.Command == nil { r.EncodeNil() } else { yym1106 := z.EncBinary() _ = yym1106 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1104[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1107 := z.EncBinary() _ = yym1107 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1104 || yy2arr1104 { 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 yym1108 := z.DecBinary() _ = yym1108 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1109 := r.ContainerType() if yyct1109 == codecSelferValueTypeMap1234 { yyl1109 := r.ReadMapStart() if yyl1109 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1109, d) } } else if yyct1109 == codecSelferValueTypeArray1234 { yyl1109 := r.ReadArrayStart() if yyl1109 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1109, 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 yys1110Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1110Slc var yyhl1110 bool = l >= 0 for yyj1110 := 0; ; yyj1110++ { if yyhl1110 { if yyj1110 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1110Slc = r.DecodeBytes(yys1110Slc, true, true) yys1110 := string(yys1110Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1110 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1111 := &x.Command yym1112 := z.DecBinary() _ = yym1112 if false { } else { z.F.DecSliceStringX(yyv1111, false, d) } } default: z.DecStructFieldNotFound(-1, yys1110) } // end switch yys1110 } // end for yyj1110 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 yyj1113 int var yyb1113 bool var yyhl1113 bool = l >= 0 yyj1113++ if yyhl1113 { yyb1113 = yyj1113 > l } else { yyb1113 = r.CheckBreak() } if yyb1113 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1114 := &x.Command yym1115 := z.DecBinary() _ = yym1115 if false { } else { z.F.DecSliceStringX(yyv1114, false, d) } } for { yyj1113++ if yyhl1113 { yyb1113 = yyj1113 > l } else { yyb1113 = r.CheckBreak() } if yyb1113 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1113-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 { yym1116 := z.EncBinary() _ = yym1116 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1117 := !z.EncBinary() yy2arr1117 := z.EncBasicHandle().StructToArray var yyq1117 [8]bool _, _, _ = yysep1117, yyq1117, yy2arr1117 const yyr1117 bool = false yyq1117[0] = x.Handler.Exec != nil && x.Exec != nil yyq1117[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq1117[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil yyq1117[3] = x.InitialDelaySeconds != 0 yyq1117[4] = x.TimeoutSeconds != 0 yyq1117[5] = x.PeriodSeconds != 0 yyq1117[6] = x.SuccessThreshold != 0 yyq1117[7] = x.FailureThreshold != 0 var yynn1117 int if yyr1117 || yy2arr1117 { r.EncodeArrayStart(8) } else { yynn1117 = 0 for _, b := range yyq1117 { if b { yynn1117++ } } r.EncodeMapStart(yynn1117) yynn1117 = 0 } var yyn1118 bool if x.Handler.Exec == nil { yyn1118 = true goto LABEL1118 } LABEL1118: if yyr1117 || yy2arr1117 { if yyn1118 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1117[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1118 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1119 bool if x.Handler.HTTPGet == nil { yyn1119 = true goto LABEL1119 } LABEL1119: if yyr1117 || yy2arr1117 { if yyn1119 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1117[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1119 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1120 bool if x.Handler.TCPSocket == nil { yyn1120 = true goto LABEL1120 } LABEL1120: if yyr1117 || yy2arr1117 { if yyn1120 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1117[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1120 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr1117 || yy2arr1117 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[3] { yym1122 := z.EncBinary() _ = yym1122 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq1117[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1123 := z.EncBinary() _ = yym1123 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr1117 || yy2arr1117 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[4] { yym1125 := z.EncBinary() _ = yym1125 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1117[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1126 := z.EncBinary() _ = yym1126 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr1117 || yy2arr1117 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[5] { yym1128 := z.EncBinary() _ = yym1128 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1117[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1129 := z.EncBinary() _ = yym1129 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr1117 || yy2arr1117 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[6] { yym1131 := z.EncBinary() _ = yym1131 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1117[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1132 := z.EncBinary() _ = yym1132 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr1117 || yy2arr1117 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1117[7] { yym1134 := z.EncBinary() _ = yym1134 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1117[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1135 := z.EncBinary() _ = yym1135 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } if yyr1117 || yy2arr1117 { 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 yym1136 := z.DecBinary() _ = yym1136 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1137 := r.ContainerType() if yyct1137 == codecSelferValueTypeMap1234 { yyl1137 := r.ReadMapStart() if yyl1137 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1137, d) } } else if yyct1137 == codecSelferValueTypeArray1234 { yyl1137 := r.ReadArrayStart() if yyl1137 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1137, 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 yys1138Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1138Slc var yyhl1138 bool = l >= 0 for yyj1138 := 0; ; yyj1138++ { if yyhl1138 { if yyj1138 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1138Slc = r.DecodeBytes(yys1138Slc, true, true) yys1138 := string(yys1138Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1138 { 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, yys1138) } // end switch yys1138 } // end for yyj1138 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 yyj1147 int var yyb1147 bool var yyhl1147 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { 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) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { 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) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { 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) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj1147++ if yyhl1147 { yyb1147 = yyj1147 > l } else { yyb1147 = r.CheckBreak() } if yyb1147 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1147-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1156 := z.EncBinary() _ = yym1156 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 yym1157 := z.DecBinary() _ = yym1157 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 yym1158 := z.EncBinary() _ = yym1158 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 yym1159 := z.DecBinary() _ = yym1159 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 { yym1160 := z.EncBinary() _ = yym1160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1161 := !z.EncBinary() yy2arr1161 := z.EncBasicHandle().StructToArray var yyq1161 [2]bool _, _, _ = yysep1161, yyq1161, yy2arr1161 const yyr1161 bool = false yyq1161[0] = len(x.Add) != 0 yyq1161[1] = len(x.Drop) != 0 var yynn1161 int if yyr1161 || yy2arr1161 { r.EncodeArrayStart(2) } else { yynn1161 = 0 for _, b := range yyq1161 { if b { yynn1161++ } } r.EncodeMapStart(yynn1161) yynn1161 = 0 } if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1161[0] { if x.Add == nil { r.EncodeNil() } else { yym1163 := z.EncBinary() _ = yym1163 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1161[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1164 := z.EncBinary() _ = yym1164 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1161 || yy2arr1161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1161[1] { if x.Drop == nil { r.EncodeNil() } else { yym1166 := z.EncBinary() _ = yym1166 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1161[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1167 := z.EncBinary() _ = yym1167 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1161 || yy2arr1161 { 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 yym1168 := z.DecBinary() _ = yym1168 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1169 := r.ContainerType() if yyct1169 == codecSelferValueTypeMap1234 { yyl1169 := r.ReadMapStart() if yyl1169 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1169, d) } } else if yyct1169 == codecSelferValueTypeArray1234 { yyl1169 := r.ReadArrayStart() if yyl1169 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1169, 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 yys1170Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1170Slc var yyhl1170 bool = l >= 0 for yyj1170 := 0; ; yyj1170++ { if yyhl1170 { if yyj1170 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1170Slc = r.DecodeBytes(yys1170Slc, true, true) yys1170 := string(yys1170Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1170 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1171 := &x.Add yym1172 := z.DecBinary() _ = yym1172 if false { } else { h.decSliceCapability((*[]Capability)(yyv1171), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1173 := &x.Drop yym1174 := z.DecBinary() _ = yym1174 if false { } else { h.decSliceCapability((*[]Capability)(yyv1173), d) } } default: z.DecStructFieldNotFound(-1, yys1170) } // end switch yys1170 } // end for yyj1170 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 yyj1175 int var yyb1175 bool var yyhl1175 bool = l >= 0 yyj1175++ if yyhl1175 { yyb1175 = yyj1175 > l } else { yyb1175 = r.CheckBreak() } if yyb1175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1176 := &x.Add yym1177 := z.DecBinary() _ = yym1177 if false { } else { h.decSliceCapability((*[]Capability)(yyv1176), d) } } yyj1175++ if yyhl1175 { yyb1175 = yyj1175 > l } else { yyb1175 = r.CheckBreak() } if yyb1175 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1178 := &x.Drop yym1179 := z.DecBinary() _ = yym1179 if false { } else { h.decSliceCapability((*[]Capability)(yyv1178), d) } } for { yyj1175++ if yyhl1175 { yyb1175 = yyj1175 > l } else { yyb1175 = r.CheckBreak() } if yyb1175 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1175-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 { yym1180 := z.EncBinary() _ = yym1180 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1181 := !z.EncBinary() yy2arr1181 := z.EncBasicHandle().StructToArray var yyq1181 [2]bool _, _, _ = yysep1181, yyq1181, yy2arr1181 const yyr1181 bool = false yyq1181[0] = len(x.Limits) != 0 yyq1181[1] = len(x.Requests) != 0 var yynn1181 int if yyr1181 || yy2arr1181 { r.EncodeArrayStart(2) } else { yynn1181 = 0 for _, b := range yyq1181 { if b { yynn1181++ } } r.EncodeMapStart(yynn1181) yynn1181 = 0 } if yyr1181 || yy2arr1181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1181[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1181[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 yyr1181 || yy2arr1181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1181[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1181[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 yyr1181 || yy2arr1181 { 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 yym1184 := z.DecBinary() _ = yym1184 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1185 := r.ContainerType() if yyct1185 == codecSelferValueTypeMap1234 { yyl1185 := r.ReadMapStart() if yyl1185 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1185, d) } } else if yyct1185 == codecSelferValueTypeArray1234 { yyl1185 := r.ReadArrayStart() if yyl1185 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1185, 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 yys1186Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1186Slc var yyhl1186 bool = l >= 0 for yyj1186 := 0; ; yyj1186++ { if yyhl1186 { if yyj1186 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1186Slc = r.DecodeBytes(yys1186Slc, true, true) yys1186 := string(yys1186Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1186 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1187 := &x.Limits yyv1187.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1188 := &x.Requests yyv1188.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1186) } // end switch yys1186 } // end for yyj1186 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 yyj1189 int var yyb1189 bool var yyhl1189 bool = l >= 0 yyj1189++ if yyhl1189 { yyb1189 = yyj1189 > l } else { yyb1189 = r.CheckBreak() } if yyb1189 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1190 := &x.Limits yyv1190.CodecDecodeSelf(d) } yyj1189++ if yyhl1189 { yyb1189 = yyj1189 > l } else { yyb1189 = r.CheckBreak() } if yyb1189 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1191 := &x.Requests yyv1191.CodecDecodeSelf(d) } for { yyj1189++ if yyhl1189 { yyb1189 = yyj1189 > l } else { yyb1189 = r.CheckBreak() } if yyb1189 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1189-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 { yym1192 := z.EncBinary() _ = yym1192 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1193 := !z.EncBinary() yy2arr1193 := z.EncBasicHandle().StructToArray var yyq1193 [18]bool _, _, _ = yysep1193, yyq1193, yy2arr1193 const yyr1193 bool = false yyq1193[2] = len(x.Command) != 0 yyq1193[3] = len(x.Args) != 0 yyq1193[4] = x.WorkingDir != "" yyq1193[5] = len(x.Ports) != 0 yyq1193[6] = len(x.Env) != 0 yyq1193[7] = true yyq1193[8] = len(x.VolumeMounts) != 0 yyq1193[9] = x.LivenessProbe != nil yyq1193[10] = x.ReadinessProbe != nil yyq1193[11] = x.Lifecycle != nil yyq1193[12] = x.TerminationMessagePath != "" yyq1193[14] = x.SecurityContext != nil yyq1193[15] = x.Stdin != false yyq1193[16] = x.StdinOnce != false yyq1193[17] = x.TTY != false var yynn1193 int if yyr1193 || yy2arr1193 { r.EncodeArrayStart(18) } else { yynn1193 = 3 for _, b := range yyq1193 { if b { yynn1193++ } } r.EncodeMapStart(yynn1193) yynn1193 = 0 } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1195 := z.EncBinary() _ = yym1195 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) yym1196 := z.EncBinary() _ = yym1196 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1198 := z.EncBinary() _ = yym1198 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) yym1199 := z.EncBinary() _ = yym1199 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[2] { if x.Command == nil { r.EncodeNil() } else { yym1201 := z.EncBinary() _ = yym1201 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1193[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1202 := z.EncBinary() _ = yym1202 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[3] { if x.Args == nil { r.EncodeNil() } else { yym1204 := z.EncBinary() _ = yym1204 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1193[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1205 := z.EncBinary() _ = yym1205 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[4] { yym1207 := z.EncBinary() _ = yym1207 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1193[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1208 := z.EncBinary() _ = yym1208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[5] { if x.Ports == nil { r.EncodeNil() } else { yym1210 := z.EncBinary() _ = yym1210 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1193[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1211 := z.EncBinary() _ = yym1211 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[6] { if x.Env == nil { r.EncodeNil() } else { yym1213 := z.EncBinary() _ = yym1213 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1193[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1214 := z.EncBinary() _ = yym1214 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[7] { yy1216 := &x.Resources yy1216.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1193[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1217 := &x.Resources yy1217.CodecEncodeSelf(e) } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1219 := z.EncBinary() _ = yym1219 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1193[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1220 := z.EncBinary() _ = yym1220 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1193[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 yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1193[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 yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1193[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 yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[12] { yym1225 := z.EncBinary() _ = yym1225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1193[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1226 := z.EncBinary() _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1193 || yy2arr1193 { 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 yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1193[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 yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[15] { yym1230 := z.EncBinary() _ = yym1230 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1193[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1231 := z.EncBinary() _ = yym1231 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[16] { yym1233 := z.EncBinary() _ = yym1233 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1193[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1234 := z.EncBinary() _ = yym1234 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1193 || yy2arr1193 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1193[17] { yym1236 := z.EncBinary() _ = yym1236 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1193[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1237 := z.EncBinary() _ = yym1237 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1193 || yy2arr1193 { 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 yym1238 := z.DecBinary() _ = yym1238 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1239 := r.ContainerType() if yyct1239 == codecSelferValueTypeMap1234 { yyl1239 := r.ReadMapStart() if yyl1239 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1239, d) } } else if yyct1239 == codecSelferValueTypeArray1234 { yyl1239 := r.ReadArrayStart() if yyl1239 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1239, 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 yys1240Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1240Slc var yyhl1240 bool = l >= 0 for yyj1240 := 0; ; yyj1240++ { if yyhl1240 { if yyj1240 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1240Slc = r.DecodeBytes(yys1240Slc, true, true) yys1240 := string(yys1240Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1240 { 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 { yyv1243 := &x.Command yym1244 := z.DecBinary() _ = yym1244 if false { } else { z.F.DecSliceStringX(yyv1243, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1245 := &x.Args yym1246 := z.DecBinary() _ = yym1246 if false { } else { z.F.DecSliceStringX(yyv1245, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1248 := &x.Ports yym1249 := z.DecBinary() _ = yym1249 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1248), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1250 := &x.Env yym1251 := z.DecBinary() _ = yym1251 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1250), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1252 := &x.Resources yyv1252.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1253 := &x.VolumeMounts yym1254 := z.DecBinary() _ = yym1254 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1253), 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, yys1240) } // end switch yys1240 } // end for yyj1240 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 yyj1264 int var yyb1264 bool var yyhl1264 bool = l >= 0 yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1267 := &x.Command yym1268 := z.DecBinary() _ = yym1268 if false { } else { z.F.DecSliceStringX(yyv1267, false, d) } } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1269 := &x.Args yym1270 := z.DecBinary() _ = yym1270 if false { } else { z.F.DecSliceStringX(yyv1269, false, d) } } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1272 := &x.Ports yym1273 := z.DecBinary() _ = yym1273 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1272), d) } } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1274 := &x.Env yym1275 := z.DecBinary() _ = yym1275 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1274), d) } } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1276 := &x.Resources yyv1276.CodecDecodeSelf(d) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1277 := &x.VolumeMounts yym1278 := z.DecBinary() _ = yym1278 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1277), d) } } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { 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) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { 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) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { 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) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { 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) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1264++ if yyhl1264 { yyb1264 = yyj1264 > l } else { yyb1264 = r.CheckBreak() } if yyb1264 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1264-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 { yym1288 := z.EncBinary() _ = yym1288 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1289 := !z.EncBinary() yy2arr1289 := z.EncBasicHandle().StructToArray var yyq1289 [3]bool _, _, _ = yysep1289, yyq1289, yy2arr1289 const yyr1289 bool = false yyq1289[0] = x.Exec != nil yyq1289[1] = x.HTTPGet != nil yyq1289[2] = x.TCPSocket != nil var yynn1289 int if yyr1289 || yy2arr1289 { r.EncodeArrayStart(3) } else { yynn1289 = 0 for _, b := range yyq1289 { if b { yynn1289++ } } r.EncodeMapStart(yynn1289) yynn1289 = 0 } if yyr1289 || yy2arr1289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1289[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1289[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 yyr1289 || yy2arr1289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1289[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1289[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 yyr1289 || yy2arr1289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1289[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1289[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 yyr1289 || yy2arr1289 { 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 yym1293 := z.DecBinary() _ = yym1293 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1294 := r.ContainerType() if yyct1294 == codecSelferValueTypeMap1234 { yyl1294 := r.ReadMapStart() if yyl1294 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1294, d) } } else if yyct1294 == codecSelferValueTypeArray1234 { yyl1294 := r.ReadArrayStart() if yyl1294 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1294, 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 yys1295Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1295Slc var yyhl1295 bool = l >= 0 for yyj1295 := 0; ; yyj1295++ { if yyhl1295 { if yyj1295 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1295Slc = r.DecodeBytes(yys1295Slc, true, true) yys1295 := string(yys1295Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1295 { 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, yys1295) } // end switch yys1295 } // end for yyj1295 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 yyj1299 int var yyb1299 bool var yyhl1299 bool = l >= 0 yyj1299++ if yyhl1299 { yyb1299 = yyj1299 > l } else { yyb1299 = r.CheckBreak() } if yyb1299 { 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) } yyj1299++ if yyhl1299 { yyb1299 = yyj1299 > l } else { yyb1299 = r.CheckBreak() } if yyb1299 { 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) } yyj1299++ if yyhl1299 { yyb1299 = yyj1299 > l } else { yyb1299 = r.CheckBreak() } if yyb1299 { 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 { yyj1299++ if yyhl1299 { yyb1299 = yyj1299 > l } else { yyb1299 = r.CheckBreak() } if yyb1299 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1299-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 { yym1303 := z.EncBinary() _ = yym1303 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1304 := !z.EncBinary() yy2arr1304 := z.EncBasicHandle().StructToArray var yyq1304 [2]bool _, _, _ = yysep1304, yyq1304, yy2arr1304 const yyr1304 bool = false yyq1304[0] = x.PostStart != nil yyq1304[1] = x.PreStop != nil var yynn1304 int if yyr1304 || yy2arr1304 { r.EncodeArrayStart(2) } else { yynn1304 = 0 for _, b := range yyq1304 { if b { yynn1304++ } } r.EncodeMapStart(yynn1304) yynn1304 = 0 } if yyr1304 || yy2arr1304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1304[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1304[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 yyr1304 || yy2arr1304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1304[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1304[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 yyr1304 || yy2arr1304 { 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 yym1307 := z.DecBinary() _ = yym1307 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1308 := r.ContainerType() if yyct1308 == codecSelferValueTypeMap1234 { yyl1308 := r.ReadMapStart() if yyl1308 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1308, d) } } else if yyct1308 == codecSelferValueTypeArray1234 { yyl1308 := r.ReadArrayStart() if yyl1308 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1308, 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 yys1309Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1309Slc var yyhl1309 bool = l >= 0 for yyj1309 := 0; ; yyj1309++ { if yyhl1309 { if yyj1309 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1309Slc = r.DecodeBytes(yys1309Slc, true, true) yys1309 := string(yys1309Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1309 { 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, yys1309) } // end switch yys1309 } // end for yyj1309 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 yyj1312 int var yyb1312 bool var yyhl1312 bool = l >= 0 yyj1312++ if yyhl1312 { yyb1312 = yyj1312 > l } else { yyb1312 = r.CheckBreak() } if yyb1312 { 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) } yyj1312++ if yyhl1312 { yyb1312 = yyj1312 > l } else { yyb1312 = r.CheckBreak() } if yyb1312 { 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 { yyj1312++ if yyhl1312 { yyb1312 = yyj1312 > l } else { yyb1312 = r.CheckBreak() } if yyb1312 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1312-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1315 := z.EncBinary() _ = yym1315 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 yym1316 := z.DecBinary() _ = yym1316 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 { yym1317 := z.EncBinary() _ = yym1317 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1318 := !z.EncBinary() yy2arr1318 := z.EncBasicHandle().StructToArray var yyq1318 [2]bool _, _, _ = yysep1318, yyq1318, yy2arr1318 const yyr1318 bool = false yyq1318[0] = x.Reason != "" yyq1318[1] = x.Message != "" var yynn1318 int if yyr1318 || yy2arr1318 { r.EncodeArrayStart(2) } else { yynn1318 = 0 for _, b := range yyq1318 { if b { yynn1318++ } } r.EncodeMapStart(yynn1318) yynn1318 = 0 } if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1318[0] { yym1320 := z.EncBinary() _ = yym1320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1318[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1321 := z.EncBinary() _ = yym1321 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1318[1] { yym1323 := z.EncBinary() _ = yym1323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1318[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1324 := z.EncBinary() _ = yym1324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1318 || yy2arr1318 { 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 yym1325 := z.DecBinary() _ = yym1325 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1326 := r.ContainerType() if yyct1326 == codecSelferValueTypeMap1234 { yyl1326 := r.ReadMapStart() if yyl1326 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1326, d) } } else if yyct1326 == codecSelferValueTypeArray1234 { yyl1326 := r.ReadArrayStart() if yyl1326 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1326, 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 yys1327Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1327Slc var yyhl1327 bool = l >= 0 for yyj1327 := 0; ; yyj1327++ { if yyhl1327 { if yyj1327 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1327Slc = r.DecodeBytes(yys1327Slc, true, true) yys1327 := string(yys1327Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1327 { 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, yys1327) } // end switch yys1327 } // end for yyj1327 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 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.Reason = "" } else { x.Reason = 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.Message = "" } else { x.Message = 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 *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1333 := z.EncBinary() _ = yym1333 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1334 := !z.EncBinary() yy2arr1334 := z.EncBasicHandle().StructToArray var yyq1334 [1]bool _, _, _ = yysep1334, yyq1334, yy2arr1334 const yyr1334 bool = false yyq1334[0] = true var yynn1334 int if yyr1334 || yy2arr1334 { r.EncodeArrayStart(1) } else { yynn1334 = 0 for _, b := range yyq1334 { if b { yynn1334++ } } r.EncodeMapStart(yynn1334) yynn1334 = 0 } if yyr1334 || yy2arr1334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1334[0] { yy1336 := &x.StartedAt yym1337 := z.EncBinary() _ = yym1337 if false { } else if z.HasExtensions() && z.EncExt(yy1336) { } else if yym1337 { z.EncBinaryMarshal(yy1336) } else if !yym1337 && z.IsJSONHandle() { z.EncJSONMarshal(yy1336) } else { z.EncFallback(yy1336) } } else { r.EncodeNil() } } else { if yyq1334[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1338 := &x.StartedAt yym1339 := z.EncBinary() _ = yym1339 if false { } else if z.HasExtensions() && z.EncExt(yy1338) { } else if yym1339 { z.EncBinaryMarshal(yy1338) } else if !yym1339 && z.IsJSONHandle() { z.EncJSONMarshal(yy1338) } else { z.EncFallback(yy1338) } } } if yyr1334 || yy2arr1334 { 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 yym1340 := z.DecBinary() _ = yym1340 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1341 := r.ContainerType() if yyct1341 == codecSelferValueTypeMap1234 { yyl1341 := r.ReadMapStart() if yyl1341 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1341, d) } } else if yyct1341 == codecSelferValueTypeArray1234 { yyl1341 := r.ReadArrayStart() if yyl1341 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1341, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1342Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1342Slc var yyhl1342 bool = l >= 0 for yyj1342 := 0; ; yyj1342++ { if yyhl1342 { if yyj1342 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1342Slc = r.DecodeBytes(yys1342Slc, true, true) yys1342 := string(yys1342Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1342 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1343 := &x.StartedAt yym1344 := z.DecBinary() _ = yym1344 if false { } else if z.HasExtensions() && z.DecExt(yyv1343) { } else if yym1344 { z.DecBinaryUnmarshal(yyv1343) } else if !yym1344 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1343) } else { z.DecFallback(yyv1343, false) } } default: z.DecStructFieldNotFound(-1, yys1342) } // end switch yys1342 } // end for yyj1342 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 yyj1345 int var yyb1345 bool var yyhl1345 bool = l >= 0 yyj1345++ if yyhl1345 { yyb1345 = yyj1345 > l } else { yyb1345 = r.CheckBreak() } if yyb1345 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1346 := &x.StartedAt yym1347 := z.DecBinary() _ = yym1347 if false { } else if z.HasExtensions() && z.DecExt(yyv1346) { } else if yym1347 { z.DecBinaryUnmarshal(yyv1346) } else if !yym1347 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1346) } else { z.DecFallback(yyv1346, false) } } for { yyj1345++ if yyhl1345 { yyb1345 = yyj1345 > l } else { yyb1345 = r.CheckBreak() } if yyb1345 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1345-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1348 := z.EncBinary() _ = yym1348 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1349 := !z.EncBinary() yy2arr1349 := z.EncBasicHandle().StructToArray var yyq1349 [7]bool _, _, _ = yysep1349, yyq1349, yy2arr1349 const yyr1349 bool = false yyq1349[1] = x.Signal != 0 yyq1349[2] = x.Reason != "" yyq1349[3] = x.Message != "" yyq1349[4] = true yyq1349[5] = true yyq1349[6] = x.ContainerID != "" var yynn1349 int if yyr1349 || yy2arr1349 { r.EncodeArrayStart(7) } else { yynn1349 = 1 for _, b := range yyq1349 { if b { yynn1349++ } } r.EncodeMapStart(yynn1349) yynn1349 = 0 } if yyr1349 || yy2arr1349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1351 := z.EncBinary() _ = yym1351 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1352 := z.EncBinary() _ = yym1352 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1349 || yy2arr1349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1349[1] { yym1354 := z.EncBinary() _ = yym1354 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1349[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1355 := z.EncBinary() _ = yym1355 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1349 || yy2arr1349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1349[2] { yym1357 := z.EncBinary() _ = yym1357 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1349[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1358 := z.EncBinary() _ = yym1358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1349 || yy2arr1349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1349[3] { yym1360 := z.EncBinary() _ = yym1360 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1349[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1361 := z.EncBinary() _ = yym1361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1349 || yy2arr1349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1349[4] { yy1363 := &x.StartedAt yym1364 := z.EncBinary() _ = yym1364 if false { } else if z.HasExtensions() && z.EncExt(yy1363) { } else if yym1364 { z.EncBinaryMarshal(yy1363) } else if !yym1364 && z.IsJSONHandle() { z.EncJSONMarshal(yy1363) } else { z.EncFallback(yy1363) } } else { r.EncodeNil() } } else { if yyq1349[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1365 := &x.StartedAt yym1366 := z.EncBinary() _ = yym1366 if false { } else if z.HasExtensions() && z.EncExt(yy1365) { } else if yym1366 { z.EncBinaryMarshal(yy1365) } else if !yym1366 && z.IsJSONHandle() { z.EncJSONMarshal(yy1365) } else { z.EncFallback(yy1365) } } } if yyr1349 || yy2arr1349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1349[5] { yy1368 := &x.FinishedAt yym1369 := z.EncBinary() _ = yym1369 if false { } else if z.HasExtensions() && z.EncExt(yy1368) { } else if yym1369 { z.EncBinaryMarshal(yy1368) } else if !yym1369 && z.IsJSONHandle() { z.EncJSONMarshal(yy1368) } else { z.EncFallback(yy1368) } } else { r.EncodeNil() } } else { if yyq1349[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1370 := &x.FinishedAt yym1371 := z.EncBinary() _ = yym1371 if false { } else if z.HasExtensions() && z.EncExt(yy1370) { } else if yym1371 { z.EncBinaryMarshal(yy1370) } else if !yym1371 && z.IsJSONHandle() { z.EncJSONMarshal(yy1370) } else { z.EncFallback(yy1370) } } } if yyr1349 || yy2arr1349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1349[6] { yym1373 := z.EncBinary() _ = yym1373 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1349[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1374 := z.EncBinary() _ = yym1374 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1349 || yy2arr1349 { 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 yym1375 := z.DecBinary() _ = yym1375 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1376 := r.ContainerType() if yyct1376 == codecSelferValueTypeMap1234 { yyl1376 := r.ReadMapStart() if yyl1376 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1376, d) } } else if yyct1376 == codecSelferValueTypeArray1234 { yyl1376 := r.ReadArrayStart() if yyl1376 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1376, 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 yys1377Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1377Slc var yyhl1377 bool = l >= 0 for yyj1377 := 0; ; yyj1377++ { if yyhl1377 { if yyj1377 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1377Slc = r.DecodeBytes(yys1377Slc, true, true) yys1377 := string(yys1377Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1377 { 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 { yyv1382 := &x.StartedAt yym1383 := z.DecBinary() _ = yym1383 if false { } else if z.HasExtensions() && z.DecExt(yyv1382) { } else if yym1383 { z.DecBinaryUnmarshal(yyv1382) } else if !yym1383 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1382) } else { z.DecFallback(yyv1382, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1384 := &x.FinishedAt yym1385 := z.DecBinary() _ = yym1385 if false { } else if z.HasExtensions() && z.DecExt(yyv1384) { } else if yym1385 { z.DecBinaryUnmarshal(yyv1384) } else if !yym1385 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1384) } else { z.DecFallback(yyv1384, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1377) } // end switch yys1377 } // end for yyj1377 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 yyj1387 int var yyb1387 bool var yyhl1387 bool = l >= 0 yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1392 := &x.StartedAt yym1393 := z.DecBinary() _ = yym1393 if false { } else if z.HasExtensions() && z.DecExt(yyv1392) { } else if yym1393 { z.DecBinaryUnmarshal(yyv1392) } else if !yym1393 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1392) } else { z.DecFallback(yyv1392, false) } } yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1394 := &x.FinishedAt yym1395 := z.DecBinary() _ = yym1395 if false { } else if z.HasExtensions() && z.DecExt(yyv1394) { } else if yym1395 { z.DecBinaryUnmarshal(yyv1394) } else if !yym1395 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1394) } else { z.DecFallback(yyv1394, false) } } yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1387++ if yyhl1387 { yyb1387 = yyj1387 > l } else { yyb1387 = r.CheckBreak() } if yyb1387 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1387-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 { yym1397 := z.EncBinary() _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1398 := !z.EncBinary() yy2arr1398 := z.EncBasicHandle().StructToArray var yyq1398 [3]bool _, _, _ = yysep1398, yyq1398, yy2arr1398 const yyr1398 bool = false yyq1398[0] = x.Waiting != nil yyq1398[1] = x.Running != nil yyq1398[2] = x.Terminated != nil var yynn1398 int if yyr1398 || yy2arr1398 { r.EncodeArrayStart(3) } else { yynn1398 = 0 for _, b := range yyq1398 { if b { yynn1398++ } } r.EncodeMapStart(yynn1398) yynn1398 = 0 } if yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1398[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1398[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 yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1398[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1398[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 yyr1398 || yy2arr1398 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1398[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1398[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 yyr1398 || yy2arr1398 { 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 yym1402 := z.DecBinary() _ = yym1402 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1403 := r.ContainerType() if yyct1403 == codecSelferValueTypeMap1234 { yyl1403 := r.ReadMapStart() if yyl1403 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1403, d) } } else if yyct1403 == codecSelferValueTypeArray1234 { yyl1403 := r.ReadArrayStart() if yyl1403 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1403, 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 yys1404Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1404Slc var yyhl1404 bool = l >= 0 for yyj1404 := 0; ; yyj1404++ { if yyhl1404 { if yyj1404 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1404Slc = r.DecodeBytes(yys1404Slc, true, true) yys1404 := string(yys1404Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1404 { 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, yys1404) } // end switch yys1404 } // end for yyj1404 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 yyj1408 int var yyb1408 bool var yyhl1408 bool = l >= 0 yyj1408++ if yyhl1408 { yyb1408 = yyj1408 > l } else { yyb1408 = r.CheckBreak() } if yyb1408 { 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) } yyj1408++ if yyhl1408 { yyb1408 = yyj1408 > l } else { yyb1408 = r.CheckBreak() } if yyb1408 { 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) } yyj1408++ if yyhl1408 { yyb1408 = yyj1408 > l } else { yyb1408 = r.CheckBreak() } if yyb1408 { 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 { yyj1408++ if yyhl1408 { yyb1408 = yyj1408 > l } else { yyb1408 = r.CheckBreak() } if yyb1408 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1408-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 { yym1412 := z.EncBinary() _ = yym1412 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1413 := !z.EncBinary() yy2arr1413 := z.EncBasicHandle().StructToArray var yyq1413 [8]bool _, _, _ = yysep1413, yyq1413, yy2arr1413 const yyr1413 bool = false yyq1413[1] = true yyq1413[2] = true yyq1413[7] = x.ContainerID != "" var yynn1413 int if yyr1413 || yy2arr1413 { r.EncodeArrayStart(8) } else { yynn1413 = 5 for _, b := range yyq1413 { if b { yynn1413++ } } r.EncodeMapStart(yynn1413) yynn1413 = 0 } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1415 := z.EncBinary() _ = yym1415 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) yym1416 := z.EncBinary() _ = yym1416 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1413[1] { yy1418 := &x.State yy1418.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1413[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1419 := &x.State yy1419.CodecEncodeSelf(e) } } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1413[2] { yy1421 := &x.LastTerminationState yy1421.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1413[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1422 := &x.LastTerminationState yy1422.CodecEncodeSelf(e) } } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1424 := z.EncBinary() _ = yym1424 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1425 := z.EncBinary() _ = yym1425 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1427 := z.EncBinary() _ = yym1427 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1428 := z.EncBinary() _ = yym1428 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1430 := z.EncBinary() _ = yym1430 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) yym1431 := z.EncBinary() _ = yym1431 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1433 := z.EncBinary() _ = yym1433 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) yym1434 := z.EncBinary() _ = yym1434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1413 || yy2arr1413 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1413[7] { yym1436 := z.EncBinary() _ = yym1436 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1413[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1437 := z.EncBinary() _ = yym1437 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1413 || yy2arr1413 { 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 yym1438 := z.DecBinary() _ = yym1438 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1439 := r.ContainerType() if yyct1439 == codecSelferValueTypeMap1234 { yyl1439 := r.ReadMapStart() if yyl1439 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1439, d) } } else if yyct1439 == codecSelferValueTypeArray1234 { yyl1439 := r.ReadArrayStart() if yyl1439 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1439, 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 yys1440Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1440Slc var yyhl1440 bool = l >= 0 for yyj1440 := 0; ; yyj1440++ { if yyhl1440 { if yyj1440 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1440Slc = r.DecodeBytes(yys1440Slc, true, true) yys1440 := string(yys1440Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1440 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1442 := &x.State yyv1442.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1443 := &x.LastTerminationState yyv1443.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, yys1440) } // end switch yys1440 } // end for yyj1440 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 yyj1449 int var yyb1449 bool var yyhl1449 bool = l >= 0 yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1451 := &x.State yyv1451.CodecDecodeSelf(d) } yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1452 := &x.LastTerminationState yyv1452.CodecDecodeSelf(d) } yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1449++ if yyhl1449 { yyb1449 = yyj1449 > l } else { yyb1449 = r.CheckBreak() } if yyb1449 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1449-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1458 := z.EncBinary() _ = yym1458 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 yym1459 := z.DecBinary() _ = yym1459 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 yym1460 := z.EncBinary() _ = yym1460 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 yym1461 := z.DecBinary() _ = yym1461 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 { yym1462 := z.EncBinary() _ = yym1462 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1463 := !z.EncBinary() yy2arr1463 := z.EncBasicHandle().StructToArray var yyq1463 [6]bool _, _, _ = yysep1463, yyq1463, yy2arr1463 const yyr1463 bool = false yyq1463[2] = true yyq1463[3] = true yyq1463[4] = x.Reason != "" yyq1463[5] = x.Message != "" var yynn1463 int if yyr1463 || yy2arr1463 { r.EncodeArrayStart(6) } else { yynn1463 = 2 for _, b := range yyq1463 { if b { yynn1463++ } } r.EncodeMapStart(yynn1463) yynn1463 = 0 } if yyr1463 || yy2arr1463 { 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 yyr1463 || yy2arr1463 { 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 yyr1463 || yy2arr1463 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1463[2] { yy1467 := &x.LastProbeTime yym1468 := z.EncBinary() _ = yym1468 if false { } else if z.HasExtensions() && z.EncExt(yy1467) { } else if yym1468 { z.EncBinaryMarshal(yy1467) } else if !yym1468 && z.IsJSONHandle() { z.EncJSONMarshal(yy1467) } else { z.EncFallback(yy1467) } } else { r.EncodeNil() } } else { if yyq1463[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1469 := &x.LastProbeTime yym1470 := z.EncBinary() _ = yym1470 if false { } else if z.HasExtensions() && z.EncExt(yy1469) { } else if yym1470 { z.EncBinaryMarshal(yy1469) } else if !yym1470 && z.IsJSONHandle() { z.EncJSONMarshal(yy1469) } else { z.EncFallback(yy1469) } } } if yyr1463 || yy2arr1463 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1463[3] { yy1472 := &x.LastTransitionTime yym1473 := z.EncBinary() _ = yym1473 if false { } else if z.HasExtensions() && z.EncExt(yy1472) { } else if yym1473 { z.EncBinaryMarshal(yy1472) } else if !yym1473 && z.IsJSONHandle() { z.EncJSONMarshal(yy1472) } else { z.EncFallback(yy1472) } } else { r.EncodeNil() } } else { if yyq1463[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1474 := &x.LastTransitionTime yym1475 := z.EncBinary() _ = yym1475 if false { } else if z.HasExtensions() && z.EncExt(yy1474) { } else if yym1475 { z.EncBinaryMarshal(yy1474) } else if !yym1475 && z.IsJSONHandle() { z.EncJSONMarshal(yy1474) } else { z.EncFallback(yy1474) } } } if yyr1463 || yy2arr1463 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1463[4] { yym1477 := z.EncBinary() _ = yym1477 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1463[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1478 := z.EncBinary() _ = yym1478 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1463 || yy2arr1463 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1463[5] { yym1480 := z.EncBinary() _ = yym1480 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1463[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1481 := z.EncBinary() _ = yym1481 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1463 || yy2arr1463 { 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 yym1482 := z.DecBinary() _ = yym1482 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1483 := r.ContainerType() if yyct1483 == codecSelferValueTypeMap1234 { yyl1483 := r.ReadMapStart() if yyl1483 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1483, d) } } else if yyct1483 == codecSelferValueTypeArray1234 { yyl1483 := r.ReadArrayStart() if yyl1483 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1483, 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 yys1484Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1484Slc var yyhl1484 bool = l >= 0 for yyj1484 := 0; ; yyj1484++ { if yyhl1484 { if yyj1484 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1484Slc = r.DecodeBytes(yys1484Slc, true, true) yys1484 := string(yys1484Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1484 { 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 { yyv1487 := &x.LastProbeTime yym1488 := z.DecBinary() _ = yym1488 if false { } else if z.HasExtensions() && z.DecExt(yyv1487) { } else if yym1488 { z.DecBinaryUnmarshal(yyv1487) } else if !yym1488 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1487) } else { z.DecFallback(yyv1487, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1489 := &x.LastTransitionTime yym1490 := z.DecBinary() _ = yym1490 if false { } else if z.HasExtensions() && z.DecExt(yyv1489) { } else if yym1490 { z.DecBinaryUnmarshal(yyv1489) } else if !yym1490 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1489) } else { z.DecFallback(yyv1489, 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, yys1484) } // end switch yys1484 } // end for yyj1484 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 yyj1493 int var yyb1493 bool var yyhl1493 bool = l >= 0 yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1496 := &x.LastProbeTime yym1497 := z.DecBinary() _ = yym1497 if false { } else if z.HasExtensions() && z.DecExt(yyv1496) { } else if yym1497 { z.DecBinaryUnmarshal(yyv1496) } else if !yym1497 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1496) } else { z.DecFallback(yyv1496, false) } } yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1498 := &x.LastTransitionTime yym1499 := z.DecBinary() _ = yym1499 if false { } else if z.HasExtensions() && z.DecExt(yyv1498) { } else if yym1499 { z.DecBinaryUnmarshal(yyv1498) } else if !yym1499 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1498) } else { z.DecFallback(yyv1498, false) } } yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1493++ if yyhl1493 { yyb1493 = yyj1493 > l } else { yyb1493 = r.CheckBreak() } if yyb1493 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1493-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1502 := z.EncBinary() _ = yym1502 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 yym1503 := z.DecBinary() _ = yym1503 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 { yym1504 := z.EncBinary() _ = yym1504 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1505 := !z.EncBinary() yy2arr1505 := z.EncBasicHandle().StructToArray var yyq1505 [4]bool _, _, _ = yysep1505, yyq1505, yy2arr1505 const yyr1505 bool = false yyq1505[0] = x.Kind != "" yyq1505[1] = x.APIVersion != "" yyq1505[2] = true var yynn1505 int if yyr1505 || yy2arr1505 { r.EncodeArrayStart(4) } else { yynn1505 = 1 for _, b := range yyq1505 { if b { yynn1505++ } } r.EncodeMapStart(yynn1505) yynn1505 = 0 } if yyr1505 || yy2arr1505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1505[0] { yym1507 := z.EncBinary() _ = yym1507 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1505[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1508 := z.EncBinary() _ = yym1508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1505 || yy2arr1505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1505[1] { yym1510 := z.EncBinary() _ = yym1510 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1505[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1511 := z.EncBinary() _ = yym1511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1505 || yy2arr1505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1505[2] { yy1513 := &x.ListMeta yym1514 := z.EncBinary() _ = yym1514 if false { } else if z.HasExtensions() && z.EncExt(yy1513) { } else { z.EncFallback(yy1513) } } else { r.EncodeNil() } } else { if yyq1505[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1515 := &x.ListMeta yym1516 := z.EncBinary() _ = yym1516 if false { } else if z.HasExtensions() && z.EncExt(yy1515) { } else { z.EncFallback(yy1515) } } } if yyr1505 || yy2arr1505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1518 := z.EncBinary() _ = yym1518 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 { yym1519 := z.EncBinary() _ = yym1519 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1505 || yy2arr1505 { 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 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 *PodList) 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 "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 { yyv1525 := &x.ListMeta yym1526 := z.DecBinary() _ = yym1526 if false { } else if z.HasExtensions() && z.DecExt(yyv1525) { } else { z.DecFallback(yyv1525, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1527 := &x.Items yym1528 := z.DecBinary() _ = yym1528 if false { } else { h.decSlicePod((*[]Pod)(yyv1527), d) } } default: z.DecStructFieldNotFound(-1, yys1522) } // end switch yys1522 } // end for yyj1522 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 yyj1529 int var yyb1529 bool var yyhl1529 bool = l >= 0 yyj1529++ if yyhl1529 { yyb1529 = yyj1529 > l } else { yyb1529 = r.CheckBreak() } if yyb1529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1529++ if yyhl1529 { yyb1529 = yyj1529 > l } else { yyb1529 = r.CheckBreak() } if yyb1529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1529++ if yyhl1529 { yyb1529 = yyj1529 > l } else { yyb1529 = r.CheckBreak() } if yyb1529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1532 := &x.ListMeta yym1533 := z.DecBinary() _ = yym1533 if false { } else if z.HasExtensions() && z.DecExt(yyv1532) { } else { z.DecFallback(yyv1532, false) } } yyj1529++ if yyhl1529 { yyb1529 = yyj1529 > l } else { yyb1529 = r.CheckBreak() } if yyb1529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1534 := &x.Items yym1535 := z.DecBinary() _ = yym1535 if false { } else { h.decSlicePod((*[]Pod)(yyv1534), d) } } for { yyj1529++ if yyhl1529 { yyb1529 = yyj1529 > l } else { yyb1529 = r.CheckBreak() } if yyb1529 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1529-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1536 := z.EncBinary() _ = yym1536 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 yym1537 := z.DecBinary() _ = yym1537 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1538 := z.EncBinary() _ = yym1538 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1539 := !z.EncBinary() yy2arr1539 := z.EncBasicHandle().StructToArray var yyq1539 [1]bool _, _, _ = yysep1539, yyq1539, yy2arr1539 const yyr1539 bool = false var yynn1539 int if yyr1539 || yy2arr1539 { r.EncodeArrayStart(1) } else { yynn1539 = 1 for _, b := range yyq1539 { if b { yynn1539++ } } r.EncodeMapStart(yynn1539) yynn1539 = 0 } if yyr1539 || yy2arr1539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1541 := z.EncBinary() _ = yym1541 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1542 := z.EncBinary() _ = yym1542 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } if yyr1539 || yy2arr1539 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1543 := z.DecBinary() _ = yym1543 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1544 := r.ContainerType() if yyct1544 == codecSelferValueTypeMap1234 { yyl1544 := r.ReadMapStart() if yyl1544 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1544, d) } } else if yyct1544 == codecSelferValueTypeArray1234 { yyl1544 := r.ReadArrayStart() if yyl1544 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1544, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1545Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1545Slc var yyhl1545 bool = l >= 0 for yyj1545 := 0; ; yyj1545++ { if yyhl1545 { if yyj1545 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1545Slc = r.DecodeBytes(yys1545Slc, true, true) yys1545 := string(yys1545Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1545 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1546 := &x.NodeSelectorTerms yym1547 := z.DecBinary() _ = yym1547 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1546), d) } } default: z.DecStructFieldNotFound(-1, yys1545) } // end switch yys1545 } // end for yyj1545 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1548 int var yyb1548 bool var yyhl1548 bool = l >= 0 yyj1548++ if yyhl1548 { yyb1548 = yyj1548 > l } else { yyb1548 = r.CheckBreak() } if yyb1548 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1549 := &x.NodeSelectorTerms yym1550 := z.DecBinary() _ = yym1550 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1549), d) } } for { yyj1548++ if yyhl1548 { yyb1548 = yyj1548 > l } else { yyb1548 = r.CheckBreak() } if yyb1548 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1548-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1551 := z.EncBinary() _ = yym1551 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1552 := !z.EncBinary() yy2arr1552 := z.EncBasicHandle().StructToArray var yyq1552 [1]bool _, _, _ = yysep1552, yyq1552, yy2arr1552 const yyr1552 bool = false var yynn1552 int if yyr1552 || yy2arr1552 { r.EncodeArrayStart(1) } else { yynn1552 = 1 for _, b := range yyq1552 { if b { yynn1552++ } } r.EncodeMapStart(yynn1552) yynn1552 = 0 } if yyr1552 || yy2arr1552 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1554 := z.EncBinary() _ = yym1554 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1555 := z.EncBinary() _ = yym1555 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } if yyr1552 || yy2arr1552 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1556 := z.DecBinary() _ = yym1556 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1557 := r.ContainerType() if yyct1557 == codecSelferValueTypeMap1234 { yyl1557 := r.ReadMapStart() if yyl1557 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1557, d) } } else if yyct1557 == codecSelferValueTypeArray1234 { yyl1557 := r.ReadArrayStart() if yyl1557 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1557, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1558Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1558Slc var yyhl1558 bool = l >= 0 for yyj1558 := 0; ; yyj1558++ { if yyhl1558 { if yyj1558 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1558Slc = r.DecodeBytes(yys1558Slc, true, true) yys1558 := string(yys1558Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1558 { case "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1559 := &x.MatchExpressions yym1560 := z.DecBinary() _ = yym1560 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1559), d) } } default: z.DecStructFieldNotFound(-1, yys1558) } // end switch yys1558 } // end for yyj1558 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1561 int var yyb1561 bool var yyhl1561 bool = l >= 0 yyj1561++ if yyhl1561 { yyb1561 = yyj1561 > l } else { yyb1561 = r.CheckBreak() } if yyb1561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1562 := &x.MatchExpressions yym1563 := z.DecBinary() _ = yym1563 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1562), d) } } for { yyj1561++ if yyhl1561 { yyb1561 = yyj1561 > l } else { yyb1561 = r.CheckBreak() } if yyb1561 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1561-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1564 := z.EncBinary() _ = yym1564 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1565 := !z.EncBinary() yy2arr1565 := z.EncBasicHandle().StructToArray var yyq1565 [3]bool _, _, _ = yysep1565, yyq1565, yy2arr1565 const yyr1565 bool = false yyq1565[2] = len(x.Values) != 0 var yynn1565 int if yyr1565 || yy2arr1565 { r.EncodeArrayStart(3) } else { yynn1565 = 2 for _, b := range yyq1565 { if b { yynn1565++ } } r.EncodeMapStart(yynn1565) yynn1565 = 0 } if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1567 := z.EncBinary() _ = yym1567 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1568 := z.EncBinary() _ = yym1568 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1565[2] { if x.Values == nil { r.EncodeNil() } else { yym1571 := z.EncBinary() _ = yym1571 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } else { r.EncodeNil() } } else { if yyq1565[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { yym1572 := z.EncBinary() _ = yym1572 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } } if yyr1565 || yy2arr1565 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1573 := z.DecBinary() _ = yym1573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1574 := r.ContainerType() if yyct1574 == codecSelferValueTypeMap1234 { yyl1574 := r.ReadMapStart() if yyl1574 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1574, d) } } else if yyct1574 == codecSelferValueTypeArray1234 { yyl1574 := r.ReadArrayStart() if yyl1574 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1574, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1575Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1575Slc var yyhl1575 bool = l >= 0 for yyj1575 := 0; ; yyj1575++ { if yyhl1575 { if yyj1575 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1575Slc = r.DecodeBytes(yys1575Slc, true, true) yys1575 := string(yys1575Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1575 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "operator": if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } case "values": if r.TryDecodeAsNil() { x.Values = nil } else { yyv1578 := &x.Values yym1579 := z.DecBinary() _ = yym1579 if false { } else { z.F.DecSliceStringX(yyv1578, false, d) } } default: z.DecStructFieldNotFound(-1, yys1575) } // end switch yys1575 } // end for yyj1575 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1580 int var yyb1580 bool var yyhl1580 bool = l >= 0 yyj1580++ if yyhl1580 { yyb1580 = yyj1580 > l } else { yyb1580 = r.CheckBreak() } if yyb1580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1580++ if yyhl1580 { yyb1580 = yyj1580 > l } else { yyb1580 = r.CheckBreak() } if yyb1580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } yyj1580++ if yyhl1580 { yyb1580 = yyj1580 > l } else { yyb1580 = r.CheckBreak() } if yyb1580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Values = nil } else { yyv1583 := &x.Values yym1584 := z.DecBinary() _ = yym1584 if false { } else { z.F.DecSliceStringX(yyv1583, false, d) } } for { yyj1580++ if yyhl1580 { yyb1580 = yyj1580 > l } else { yyb1580 = r.CheckBreak() } if yyb1580 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1580-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1585 := z.EncBinary() _ = yym1585 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1586 := z.DecBinary() _ = yym1586 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1587 := z.EncBinary() _ = yym1587 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1588 := !z.EncBinary() yy2arr1588 := z.EncBasicHandle().StructToArray var yyq1588 [1]bool _, _, _ = yysep1588, yyq1588, yy2arr1588 const yyr1588 bool = false yyq1588[0] = x.NodeAffinity != nil var yynn1588 int if yyr1588 || yy2arr1588 { r.EncodeArrayStart(1) } else { yynn1588 = 0 for _, b := range yyq1588 { if b { yynn1588++ } } r.EncodeMapStart(yynn1588) yynn1588 = 0 } if yyr1588 || yy2arr1588 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1588[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1588[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } } if yyr1588 || yy2arr1588 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1590 := z.DecBinary() _ = yym1590 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1591 := r.ContainerType() if yyct1591 == codecSelferValueTypeMap1234 { yyl1591 := r.ReadMapStart() if yyl1591 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1591, d) } } else if yyct1591 == codecSelferValueTypeArray1234 { yyl1591 := r.ReadArrayStart() if yyl1591 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1591, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1592Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1592Slc var yyhl1592 bool = l >= 0 for yyj1592 := 0; ; yyj1592++ { if yyhl1592 { if yyj1592 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1592Slc = r.DecodeBytes(yys1592Slc, true, true) yys1592 := string(yys1592Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1592 { case "nodeAffinity": if r.TryDecodeAsNil() { if x.NodeAffinity != nil { x.NodeAffinity = nil } } else { if x.NodeAffinity == nil { x.NodeAffinity = new(NodeAffinity) } x.NodeAffinity.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1592) } // end switch yys1592 } // end for yyj1592 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1594 int var yyb1594 bool var yyhl1594 bool = l >= 0 yyj1594++ if yyhl1594 { yyb1594 = yyj1594 > l } else { yyb1594 = r.CheckBreak() } if yyb1594 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NodeAffinity != nil { x.NodeAffinity = nil } } else { if x.NodeAffinity == nil { x.NodeAffinity = new(NodeAffinity) } x.NodeAffinity.CodecDecodeSelf(d) } for { yyj1594++ if yyhl1594 { yyb1594 = yyj1594 > l } else { yyb1594 = r.CheckBreak() } if yyb1594 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1594-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1596 := z.EncBinary() _ = yym1596 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1597 := !z.EncBinary() yy2arr1597 := z.EncBasicHandle().StructToArray var yyq1597 [3]bool _, _, _ = yysep1597, yyq1597, yy2arr1597 const yyr1597 bool = false yyq1597[0] = x.RequiredDuringSchedulingRequiredDuringExecution != nil yyq1597[1] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil yyq1597[2] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1597 int if yyr1597 || yy2arr1597 { r.EncodeArrayStart(3) } else { yynn1597 = 0 for _, b := range yyq1597 { if b { yynn1597++ } } r.EncodeMapStart(yynn1597) yynn1597 = 0 } if yyr1597 || yy2arr1597 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1597[0] { if x.RequiredDuringSchedulingRequiredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingRequiredDuringExecution.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1597[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingRequiredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingRequiredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingRequiredDuringExecution.CodecEncodeSelf(e) } } } if yyr1597 || yy2arr1597 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1597[1] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1597[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } } if yyr1597 || yy2arr1597 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1597[2] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1601 := z.EncBinary() _ = yym1601 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1597[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1602 := z.EncBinary() _ = yym1602 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1597 || yy2arr1597 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1603 := z.DecBinary() _ = yym1603 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1604 := r.ContainerType() if yyct1604 == codecSelferValueTypeMap1234 { yyl1604 := r.ReadMapStart() if yyl1604 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1604, d) } } else if yyct1604 == codecSelferValueTypeArray1234 { yyl1604 := r.ReadArrayStart() if yyl1604 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1604, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1605Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1605Slc var yyhl1605 bool = l >= 0 for yyj1605 := 0; ; yyj1605++ { if yyhl1605 { if yyj1605 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1605Slc = r.DecodeBytes(yys1605Slc, true, true) yys1605 := string(yys1605Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1605 { case "requiredDuringSchedulingRequiredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingRequiredDuringExecution != nil { x.RequiredDuringSchedulingRequiredDuringExecution = nil } } else { if x.RequiredDuringSchedulingRequiredDuringExecution == nil { x.RequiredDuringSchedulingRequiredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingRequiredDuringExecution.CodecDecodeSelf(d) } case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } } else { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1608 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1609 := z.DecBinary() _ = yym1609 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1608), d) } } default: z.DecStructFieldNotFound(-1, yys1605) } // end switch yys1605 } // end for yyj1605 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1610 int var yyb1610 bool var yyhl1610 bool = l >= 0 yyj1610++ if yyhl1610 { yyb1610 = yyj1610 > l } else { yyb1610 = r.CheckBreak() } if yyb1610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingRequiredDuringExecution != nil { x.RequiredDuringSchedulingRequiredDuringExecution = nil } } else { if x.RequiredDuringSchedulingRequiredDuringExecution == nil { x.RequiredDuringSchedulingRequiredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingRequiredDuringExecution.CodecDecodeSelf(d) } yyj1610++ if yyhl1610 { yyb1610 = yyj1610 > l } else { yyb1610 = r.CheckBreak() } if yyb1610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } } else { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } yyj1610++ if yyhl1610 { yyb1610 = yyj1610 > l } else { yyb1610 = r.CheckBreak() } if yyb1610 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1613 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1614 := z.DecBinary() _ = yym1614 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1613), d) } } for { yyj1610++ if yyhl1610 { yyb1610 = yyj1610 > l } else { yyb1610 = r.CheckBreak() } if yyb1610 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1610-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1615 := z.EncBinary() _ = yym1615 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1616 := !z.EncBinary() yy2arr1616 := z.EncBasicHandle().StructToArray var yyq1616 [2]bool _, _, _ = yysep1616, yyq1616, yy2arr1616 const yyr1616 bool = false var yynn1616 int if yyr1616 || yy2arr1616 { r.EncodeArrayStart(2) } else { yynn1616 = 2 for _, b := range yyq1616 { if b { yynn1616++ } } r.EncodeMapStart(yynn1616) yynn1616 = 0 } if yyr1616 || yy2arr1616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1618 := z.EncBinary() _ = yym1618 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1619 := z.EncBinary() _ = yym1619 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr1616 || yy2arr1616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1621 := &x.Preference yy1621.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1622 := &x.Preference yy1622.CodecEncodeSelf(e) } if yyr1616 || yy2arr1616 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1623 := z.DecBinary() _ = yym1623 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1624 := r.ContainerType() if yyct1624 == codecSelferValueTypeMap1234 { yyl1624 := r.ReadMapStart() if yyl1624 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1624, d) } } else if yyct1624 == codecSelferValueTypeArray1234 { yyl1624 := r.ReadArrayStart() if yyl1624 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1624, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1625Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1625Slc var yyhl1625 bool = l >= 0 for yyj1625 := 0; ; yyj1625++ { if yyhl1625 { if yyj1625 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1625Slc = r.DecodeBytes(yys1625Slc, true, true) yys1625 := string(yys1625Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1625 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } case "preference": if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1627 := &x.Preference yyv1627.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1625) } // end switch yys1625 } // end for yyj1625 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1628 int var yyb1628 bool var yyhl1628 bool = l >= 0 yyj1628++ if yyhl1628 { yyb1628 = yyj1628 > l } else { yyb1628 = r.CheckBreak() } if yyb1628 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1628++ if yyhl1628 { yyb1628 = yyj1628 > l } else { yyb1628 = r.CheckBreak() } if yyb1628 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv1630 := &x.Preference yyv1630.CodecDecodeSelf(d) } for { yyj1628++ if yyhl1628 { yyb1628 = yyj1628 > l } else { yyb1628 = r.CheckBreak() } if yyb1628 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1628-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1631 := z.EncBinary() _ = yym1631 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1632 := !z.EncBinary() yy2arr1632 := z.EncBasicHandle().StructToArray var yyq1632 [11]bool _, _, _ = yysep1632, yyq1632, yy2arr1632 const yyr1632 bool = false yyq1632[2] = x.RestartPolicy != "" yyq1632[3] = x.TerminationGracePeriodSeconds != nil yyq1632[4] = x.ActiveDeadlineSeconds != nil yyq1632[5] = x.DNSPolicy != "" yyq1632[6] = len(x.NodeSelector) != 0 yyq1632[8] = x.NodeName != "" yyq1632[9] = x.SecurityContext != nil yyq1632[10] = len(x.ImagePullSecrets) != 0 var yynn1632 int if yyr1632 || yy2arr1632 { r.EncodeArrayStart(11) } else { yynn1632 = 3 for _, b := range yyq1632 { if b { yynn1632++ } } r.EncodeMapStart(yynn1632) yynn1632 = 0 } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym1634 := z.EncBinary() _ = yym1634 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 { yym1635 := z.EncBinary() _ = yym1635 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym1637 := z.EncBinary() _ = yym1637 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 { yym1638 := z.EncBinary() _ = yym1638 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1632[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1641 := *x.TerminationGracePeriodSeconds yym1642 := z.EncBinary() _ = yym1642 if false { } else { r.EncodeInt(int64(yy1641)) } } } else { r.EncodeNil() } } else { if yyq1632[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1643 := *x.TerminationGracePeriodSeconds yym1644 := z.EncBinary() _ = yym1644 if false { } else { r.EncodeInt(int64(yy1643)) } } } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1646 := *x.ActiveDeadlineSeconds yym1647 := z.EncBinary() _ = yym1647 if false { } else { r.EncodeInt(int64(yy1646)) } } } else { r.EncodeNil() } } else { if yyq1632[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1648 := *x.ActiveDeadlineSeconds yym1649 := z.EncBinary() _ = yym1649 if false { } else { r.EncodeInt(int64(yy1648)) } } } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1632[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym1652 := z.EncBinary() _ = yym1652 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq1632[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym1653 := z.EncBinary() _ = yym1653 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1655 := z.EncBinary() _ = yym1655 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) yym1656 := z.EncBinary() _ = yym1656 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[8] { yym1658 := z.EncBinary() _ = yym1658 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1632[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1659 := z.EncBinary() _ = yym1659 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1632[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 yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1662 := z.EncBinary() _ = yym1662 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq1632[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1663 := z.EncBinary() _ = yym1663 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr1632 || yy2arr1632 { 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 yym1664 := z.DecBinary() _ = yym1664 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1665 := r.ContainerType() if yyct1665 == codecSelferValueTypeMap1234 { yyl1665 := r.ReadMapStart() if yyl1665 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1665, d) } } else if yyct1665 == codecSelferValueTypeArray1234 { yyl1665 := r.ReadArrayStart() if yyl1665 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1665, 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 yys1666Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1666Slc var yyhl1666 bool = l >= 0 for yyj1666 := 0; ; yyj1666++ { if yyhl1666 { if yyj1666 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1666Slc = r.DecodeBytes(yys1666Slc, true, true) yys1666 := string(yys1666Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1666 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1667 := &x.Volumes yym1668 := z.DecBinary() _ = yym1668 if false { } else { h.decSliceVolume((*[]Volume)(yyv1667), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1669 := &x.Containers yym1670 := z.DecBinary() _ = yym1670 if false { } else { h.decSliceContainer((*[]Container)(yyv1669), 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) } yym1673 := z.DecBinary() _ = yym1673 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) } yym1675 := z.DecBinary() _ = yym1675 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 { yyv1677 := &x.NodeSelector yym1678 := z.DecBinary() _ = yym1678 if false { } else { z.F.DecMapStringStringX(yyv1677, 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 { yyv1682 := &x.ImagePullSecrets yym1683 := z.DecBinary() _ = yym1683 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1682), d) } } default: z.DecStructFieldNotFound(-1, yys1666) } // end switch yys1666 } // end for yyj1666 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 yyj1684 int var yyb1684 bool var yyhl1684 bool = l >= 0 yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1685 := &x.Volumes yym1686 := z.DecBinary() _ = yym1686 if false { } else { h.decSliceVolume((*[]Volume)(yyv1685), d) } } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1687 := &x.Containers yym1688 := z.DecBinary() _ = yym1688 if false { } else { h.decSliceContainer((*[]Container)(yyv1687), d) } } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { 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) } yym1691 := z.DecBinary() _ = yym1691 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { 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) } yym1693 := z.DecBinary() _ = yym1693 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv1695 := &x.NodeSelector yym1696 := z.DecBinary() _ = yym1696 if false { } else { z.F.DecMapStringStringX(yyv1695, false, d) } } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { 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) } yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv1700 := &x.ImagePullSecrets yym1701 := z.DecBinary() _ = yym1701 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1700), d) } } for { yyj1684++ if yyhl1684 { yyb1684 = yyj1684 > l } else { yyb1684 = r.CheckBreak() } if yyb1684 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1684-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 { yym1702 := z.EncBinary() _ = yym1702 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1703 := !z.EncBinary() yy2arr1703 := z.EncBasicHandle().StructToArray var yyq1703 [8]bool _, _, _ = yysep1703, yyq1703, yy2arr1703 const yyr1703 bool = false yyq1703[0] = x.HostNetwork != false yyq1703[1] = x.HostPID != false yyq1703[2] = x.HostIPC != false yyq1703[3] = x.SELinuxOptions != nil yyq1703[4] = x.RunAsUser != nil yyq1703[5] = x.RunAsNonRoot != nil yyq1703[6] = len(x.SupplementalGroups) != 0 yyq1703[7] = x.FSGroup != nil var yynn1703 int if yyr1703 || yy2arr1703 { r.EncodeArrayStart(8) } else { yynn1703 = 0 for _, b := range yyq1703 { if b { yynn1703++ } } r.EncodeMapStart(yynn1703) yynn1703 = 0 } if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[0] { yym1705 := z.EncBinary() _ = yym1705 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq1703[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1706 := z.EncBinary() _ = yym1706 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[1] { yym1708 := z.EncBinary() _ = yym1708 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq1703[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1709 := z.EncBinary() _ = yym1709 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[2] { yym1711 := z.EncBinary() _ = yym1711 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq1703[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1712 := z.EncBinary() _ = yym1712 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1703[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 yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy1715 := *x.RunAsUser yym1716 := z.EncBinary() _ = yym1716 if false { } else { r.EncodeInt(int64(yy1715)) } } } else { r.EncodeNil() } } else { if yyq1703[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy1717 := *x.RunAsUser yym1718 := z.EncBinary() _ = yym1718 if false { } else { r.EncodeInt(int64(yy1717)) } } } } if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1720 := *x.RunAsNonRoot yym1721 := z.EncBinary() _ = yym1721 if false { } else { r.EncodeBool(bool(yy1720)) } } } else { r.EncodeNil() } } else { if yyq1703[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1722 := *x.RunAsNonRoot yym1723 := z.EncBinary() _ = yym1723 if false { } else { r.EncodeBool(bool(yy1722)) } } } } if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1725 := z.EncBinary() _ = yym1725 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq1703[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1726 := z.EncBinary() _ = yym1726 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr1703 || yy2arr1703 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1703[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy1728 := *x.FSGroup yym1729 := z.EncBinary() _ = yym1729 if false { } else { r.EncodeInt(int64(yy1728)) } } } else { r.EncodeNil() } } else { if yyq1703[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy1730 := *x.FSGroup yym1731 := z.EncBinary() _ = yym1731 if false { } else { r.EncodeInt(int64(yy1730)) } } } } if yyr1703 || yy2arr1703 { 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 yym1732 := z.DecBinary() _ = yym1732 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1733 := r.ContainerType() if yyct1733 == codecSelferValueTypeMap1234 { yyl1733 := r.ReadMapStart() if yyl1733 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1733, d) } } else if yyct1733 == codecSelferValueTypeArray1234 { yyl1733 := r.ReadArrayStart() if yyl1733 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1733, 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 yys1734Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1734Slc var yyhl1734 bool = l >= 0 for yyj1734 := 0; ; yyj1734++ { if yyhl1734 { if yyj1734 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1734Slc = r.DecodeBytes(yys1734Slc, true, true) yys1734 := string(yys1734Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1734 { 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) } yym1740 := z.DecBinary() _ = yym1740 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) } yym1742 := z.DecBinary() _ = yym1742 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1743 := &x.SupplementalGroups yym1744 := z.DecBinary() _ = yym1744 if false { } else { z.F.DecSliceInt64X(yyv1743, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym1746 := z.DecBinary() _ = yym1746 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys1734) } // end switch yys1734 } // end for yyj1734 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 yyj1747 int var yyb1747 bool var yyhl1747 bool = l >= 0 yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { 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) } yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { 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) } yym1753 := z.DecBinary() _ = yym1753 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { 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) } yym1755 := z.DecBinary() _ = yym1755 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1756 := &x.SupplementalGroups yym1757 := z.DecBinary() _ = yym1757 if false { } else { z.F.DecSliceInt64X(yyv1756, false, d) } } yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { 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) } yym1759 := z.DecBinary() _ = yym1759 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { yyj1747++ if yyhl1747 { yyb1747 = yyj1747 > l } else { yyb1747 = r.CheckBreak() } if yyb1747 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1747-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 { yym1760 := z.EncBinary() _ = yym1760 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1761 := !z.EncBinary() yy2arr1761 := z.EncBasicHandle().StructToArray var yyq1761 [8]bool _, _, _ = yysep1761, yyq1761, yy2arr1761 const yyr1761 bool = false yyq1761[0] = x.Phase != "" yyq1761[1] = len(x.Conditions) != 0 yyq1761[2] = x.Message != "" yyq1761[3] = x.Reason != "" yyq1761[4] = x.HostIP != "" yyq1761[5] = x.PodIP != "" yyq1761[6] = x.StartTime != nil yyq1761[7] = len(x.ContainerStatuses) != 0 var yynn1761 int if yyr1761 || yy2arr1761 { r.EncodeArrayStart(8) } else { yynn1761 = 0 for _, b := range yyq1761 { if b { yynn1761++ } } r.EncodeMapStart(yynn1761) yynn1761 = 0 } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1761[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[1] { if x.Conditions == nil { r.EncodeNil() } else { yym1764 := z.EncBinary() _ = yym1764 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq1761[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym1765 := z.EncBinary() _ = yym1765 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[2] { yym1767 := z.EncBinary() _ = yym1767 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1761[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1768 := z.EncBinary() _ = yym1768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[3] { yym1770 := z.EncBinary() _ = yym1770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1761[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1771 := z.EncBinary() _ = yym1771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[4] { yym1773 := z.EncBinary() _ = yym1773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1761[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1774 := z.EncBinary() _ = yym1774 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[5] { yym1776 := z.EncBinary() _ = yym1776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1761[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1777 := z.EncBinary() _ = yym1777 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[6] { if x.StartTime == nil { r.EncodeNil() } else { yym1779 := z.EncBinary() _ = yym1779 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1779 { z.EncBinaryMarshal(x.StartTime) } else if !yym1779 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq1761[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym1780 := z.EncBinary() _ = yym1780 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1780 { z.EncBinaryMarshal(x.StartTime) } else if !yym1780 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr1761 || yy2arr1761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1761[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1782 := z.EncBinary() _ = yym1782 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq1761[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1783 := z.EncBinary() _ = yym1783 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr1761 || yy2arr1761 { 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 yym1784 := z.DecBinary() _ = yym1784 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1785 := r.ContainerType() if yyct1785 == codecSelferValueTypeMap1234 { yyl1785 := r.ReadMapStart() if yyl1785 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1785, d) } } else if yyct1785 == codecSelferValueTypeArray1234 { yyl1785 := r.ReadArrayStart() if yyl1785 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1785, 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 yys1786Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1786Slc var yyhl1786 bool = l >= 0 for yyj1786 := 0; ; yyj1786++ { if yyhl1786 { if yyj1786 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1786Slc = r.DecodeBytes(yys1786Slc, true, true) yys1786 := string(yys1786Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1786 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1788 := &x.Conditions yym1789 := z.DecBinary() _ = yym1789 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1788), 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) } yym1795 := z.DecBinary() _ = yym1795 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1795 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1795 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1796 := &x.ContainerStatuses yym1797 := z.DecBinary() _ = yym1797 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1796), d) } } default: z.DecStructFieldNotFound(-1, yys1786) } // end switch yys1786 } // end for yyj1786 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 yyj1798 int var yyb1798 bool var yyhl1798 bool = l >= 0 yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1800 := &x.Conditions yym1801 := z.DecBinary() _ = yym1801 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1800), d) } } yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { 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) } yym1807 := z.DecBinary() _ = yym1807 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1807 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1807 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1808 := &x.ContainerStatuses yym1809 := z.DecBinary() _ = yym1809 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1808), d) } } for { yyj1798++ if yyhl1798 { yyb1798 = yyj1798 > l } else { yyb1798 = r.CheckBreak() } if yyb1798 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1798-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 { yym1810 := z.EncBinary() _ = yym1810 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1811 := !z.EncBinary() yy2arr1811 := z.EncBasicHandle().StructToArray var yyq1811 [4]bool _, _, _ = yysep1811, yyq1811, yy2arr1811 const yyr1811 bool = false yyq1811[0] = x.Kind != "" yyq1811[1] = x.APIVersion != "" yyq1811[2] = true yyq1811[3] = true var yynn1811 int if yyr1811 || yy2arr1811 { r.EncodeArrayStart(4) } else { yynn1811 = 0 for _, b := range yyq1811 { if b { yynn1811++ } } r.EncodeMapStart(yynn1811) yynn1811 = 0 } if yyr1811 || yy2arr1811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1811[0] { yym1813 := z.EncBinary() _ = yym1813 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1811[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1814 := z.EncBinary() _ = yym1814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1811 || yy2arr1811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1811[1] { yym1816 := z.EncBinary() _ = yym1816 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1811[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1817 := z.EncBinary() _ = yym1817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1811 || yy2arr1811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1811[2] { yy1819 := &x.ObjectMeta yy1819.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1811[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1820 := &x.ObjectMeta yy1820.CodecEncodeSelf(e) } } if yyr1811 || yy2arr1811 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1811[3] { yy1822 := &x.Status yy1822.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1811[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1823 := &x.Status yy1823.CodecEncodeSelf(e) } } if yyr1811 || yy2arr1811 { 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 yym1824 := z.DecBinary() _ = yym1824 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1825 := r.ContainerType() if yyct1825 == codecSelferValueTypeMap1234 { yyl1825 := r.ReadMapStart() if yyl1825 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1825, d) } } else if yyct1825 == codecSelferValueTypeArray1234 { yyl1825 := r.ReadArrayStart() if yyl1825 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1825, 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 yys1826Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1826Slc var yyhl1826 bool = l >= 0 for yyj1826 := 0; ; yyj1826++ { if yyhl1826 { if yyj1826 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1826Slc = r.DecodeBytes(yys1826Slc, true, true) yys1826 := string(yys1826Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1826 { 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 { yyv1829 := &x.ObjectMeta yyv1829.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1830 := &x.Status yyv1830.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1826) } // end switch yys1826 } // end for yyj1826 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 yyj1831 int var yyb1831 bool var yyhl1831 bool = l >= 0 yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1834 := &x.ObjectMeta yyv1834.CodecDecodeSelf(d) } yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1835 := &x.Status yyv1835.CodecDecodeSelf(d) } for { yyj1831++ if yyhl1831 { yyb1831 = yyj1831 > l } else { yyb1831 = r.CheckBreak() } if yyb1831 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1831-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1836 := z.EncBinary() _ = yym1836 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1837 := !z.EncBinary() yy2arr1837 := z.EncBasicHandle().StructToArray var yyq1837 [5]bool _, _, _ = yysep1837, yyq1837, yy2arr1837 const yyr1837 bool = false yyq1837[0] = x.Kind != "" yyq1837[1] = x.APIVersion != "" yyq1837[2] = true yyq1837[3] = true yyq1837[4] = true var yynn1837 int if yyr1837 || yy2arr1837 { r.EncodeArrayStart(5) } else { yynn1837 = 0 for _, b := range yyq1837 { if b { yynn1837++ } } r.EncodeMapStart(yynn1837) yynn1837 = 0 } if yyr1837 || yy2arr1837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1837[0] { yym1839 := z.EncBinary() _ = yym1839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1837[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1840 := z.EncBinary() _ = yym1840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1837 || yy2arr1837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1837[1] { yym1842 := z.EncBinary() _ = yym1842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1837[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1843 := z.EncBinary() _ = yym1843 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1837 || yy2arr1837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1837[2] { yy1845 := &x.ObjectMeta yy1845.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1837[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1846 := &x.ObjectMeta yy1846.CodecEncodeSelf(e) } } if yyr1837 || yy2arr1837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1837[3] { yy1848 := &x.Spec yy1848.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1837[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1849 := &x.Spec yy1849.CodecEncodeSelf(e) } } if yyr1837 || yy2arr1837 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1837[4] { yy1851 := &x.Status yy1851.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1837[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1852 := &x.Status yy1852.CodecEncodeSelf(e) } } if yyr1837 || yy2arr1837 { 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 yym1853 := z.DecBinary() _ = yym1853 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1854 := r.ContainerType() if yyct1854 == codecSelferValueTypeMap1234 { yyl1854 := r.ReadMapStart() if yyl1854 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1854, d) } } else if yyct1854 == codecSelferValueTypeArray1234 { yyl1854 := r.ReadArrayStart() if yyl1854 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1854, 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 yys1855Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1855Slc var yyhl1855 bool = l >= 0 for yyj1855 := 0; ; yyj1855++ { if yyhl1855 { if yyj1855 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1855Slc = r.DecodeBytes(yys1855Slc, true, true) yys1855 := string(yys1855Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1855 { 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 { yyv1858 := &x.ObjectMeta yyv1858.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1859 := &x.Spec yyv1859.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1860 := &x.Status yyv1860.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1855) } // end switch yys1855 } // end for yyj1855 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 yyj1861 int var yyb1861 bool var yyhl1861 bool = l >= 0 yyj1861++ if yyhl1861 { yyb1861 = yyj1861 > l } else { yyb1861 = r.CheckBreak() } if yyb1861 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1861++ if yyhl1861 { yyb1861 = yyj1861 > l } else { yyb1861 = r.CheckBreak() } if yyb1861 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1861++ if yyhl1861 { yyb1861 = yyj1861 > l } else { yyb1861 = r.CheckBreak() } if yyb1861 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1864 := &x.ObjectMeta yyv1864.CodecDecodeSelf(d) } yyj1861++ if yyhl1861 { yyb1861 = yyj1861 > l } else { yyb1861 = r.CheckBreak() } if yyb1861 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1865 := &x.Spec yyv1865.CodecDecodeSelf(d) } yyj1861++ if yyhl1861 { yyb1861 = yyj1861 > l } else { yyb1861 = r.CheckBreak() } if yyb1861 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1866 := &x.Status yyv1866.CodecDecodeSelf(d) } for { yyj1861++ if yyhl1861 { yyb1861 = yyj1861 > l } else { yyb1861 = r.CheckBreak() } if yyb1861 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1861-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 { yym1867 := z.EncBinary() _ = yym1867 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1868 := !z.EncBinary() yy2arr1868 := z.EncBasicHandle().StructToArray var yyq1868 [2]bool _, _, _ = yysep1868, yyq1868, yy2arr1868 const yyr1868 bool = false yyq1868[0] = true yyq1868[1] = true var yynn1868 int if yyr1868 || yy2arr1868 { r.EncodeArrayStart(2) } else { yynn1868 = 0 for _, b := range yyq1868 { if b { yynn1868++ } } r.EncodeMapStart(yynn1868) yynn1868 = 0 } if yyr1868 || yy2arr1868 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1868[0] { yy1870 := &x.ObjectMeta yy1870.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1868[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1871 := &x.ObjectMeta yy1871.CodecEncodeSelf(e) } } if yyr1868 || yy2arr1868 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1868[1] { yy1873 := &x.Spec yy1873.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1868[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1874 := &x.Spec yy1874.CodecEncodeSelf(e) } } if yyr1868 || yy2arr1868 { 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 yym1875 := z.DecBinary() _ = yym1875 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1876 := r.ContainerType() if yyct1876 == codecSelferValueTypeMap1234 { yyl1876 := r.ReadMapStart() if yyl1876 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1876, d) } } else if yyct1876 == codecSelferValueTypeArray1234 { yyl1876 := r.ReadArrayStart() if yyl1876 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1876, 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 yys1877Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1877Slc var yyhl1877 bool = l >= 0 for yyj1877 := 0; ; yyj1877++ { if yyhl1877 { if yyj1877 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1877Slc = r.DecodeBytes(yys1877Slc, true, true) yys1877 := string(yys1877Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1877 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1878 := &x.ObjectMeta yyv1878.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1879 := &x.Spec yyv1879.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1877) } // end switch yys1877 } // end for yyj1877 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 yyj1880 int var yyb1880 bool var yyhl1880 bool = l >= 0 yyj1880++ if yyhl1880 { yyb1880 = yyj1880 > l } else { yyb1880 = r.CheckBreak() } if yyb1880 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1881 := &x.ObjectMeta yyv1881.CodecDecodeSelf(d) } yyj1880++ if yyhl1880 { yyb1880 = yyj1880 > l } else { yyb1880 = r.CheckBreak() } if yyb1880 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1882 := &x.Spec yyv1882.CodecDecodeSelf(d) } for { yyj1880++ if yyhl1880 { yyb1880 = yyj1880 > l } else { yyb1880 = r.CheckBreak() } if yyb1880 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1880-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 { yym1883 := z.EncBinary() _ = yym1883 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1884 := !z.EncBinary() yy2arr1884 := z.EncBasicHandle().StructToArray var yyq1884 [4]bool _, _, _ = yysep1884, yyq1884, yy2arr1884 const yyr1884 bool = false yyq1884[0] = x.Kind != "" yyq1884[1] = x.APIVersion != "" yyq1884[2] = true yyq1884[3] = true var yynn1884 int if yyr1884 || yy2arr1884 { r.EncodeArrayStart(4) } else { yynn1884 = 0 for _, b := range yyq1884 { if b { yynn1884++ } } r.EncodeMapStart(yynn1884) yynn1884 = 0 } if yyr1884 || yy2arr1884 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1884[0] { yym1886 := z.EncBinary() _ = yym1886 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1884[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1887 := z.EncBinary() _ = yym1887 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1884 || yy2arr1884 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1884[1] { yym1889 := z.EncBinary() _ = yym1889 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1884[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1890 := z.EncBinary() _ = yym1890 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1884 || yy2arr1884 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1884[2] { yy1892 := &x.ObjectMeta yy1892.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1884[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1893 := &x.ObjectMeta yy1893.CodecEncodeSelf(e) } } if yyr1884 || yy2arr1884 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1884[3] { yy1895 := &x.Template yy1895.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1884[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1896 := &x.Template yy1896.CodecEncodeSelf(e) } } if yyr1884 || yy2arr1884 { 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 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 *PodTemplate) 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 "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 { yyv1902 := &x.ObjectMeta yyv1902.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1903 := &x.Template yyv1903.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1899) } // end switch yys1899 } // end for yyj1899 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 yyj1904 int var yyb1904 bool var yyhl1904 bool = l >= 0 yyj1904++ if yyhl1904 { yyb1904 = yyj1904 > l } else { yyb1904 = r.CheckBreak() } if yyb1904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1904++ if yyhl1904 { yyb1904 = yyj1904 > l } else { yyb1904 = r.CheckBreak() } if yyb1904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1904++ if yyhl1904 { yyb1904 = yyj1904 > l } else { yyb1904 = r.CheckBreak() } if yyb1904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1907 := &x.ObjectMeta yyv1907.CodecDecodeSelf(d) } yyj1904++ if yyhl1904 { yyb1904 = yyj1904 > l } else { yyb1904 = r.CheckBreak() } if yyb1904 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1908 := &x.Template yyv1908.CodecDecodeSelf(d) } for { yyj1904++ if yyhl1904 { yyb1904 = yyj1904 > l } else { yyb1904 = r.CheckBreak() } if yyb1904 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1904-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 { yym1909 := z.EncBinary() _ = yym1909 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1910 := !z.EncBinary() yy2arr1910 := z.EncBasicHandle().StructToArray var yyq1910 [4]bool _, _, _ = yysep1910, yyq1910, yy2arr1910 const yyr1910 bool = false yyq1910[0] = x.Kind != "" yyq1910[1] = x.APIVersion != "" yyq1910[2] = true var yynn1910 int if yyr1910 || yy2arr1910 { r.EncodeArrayStart(4) } else { yynn1910 = 1 for _, b := range yyq1910 { if b { yynn1910++ } } r.EncodeMapStart(yynn1910) yynn1910 = 0 } if yyr1910 || yy2arr1910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1910[0] { yym1912 := z.EncBinary() _ = yym1912 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1910[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1913 := z.EncBinary() _ = yym1913 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1910 || yy2arr1910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1910[1] { yym1915 := z.EncBinary() _ = yym1915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1910[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1916 := z.EncBinary() _ = yym1916 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1910 || yy2arr1910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1910[2] { yy1918 := &x.ListMeta yym1919 := z.EncBinary() _ = yym1919 if false { } else if z.HasExtensions() && z.EncExt(yy1918) { } else { z.EncFallback(yy1918) } } else { r.EncodeNil() } } else { if yyq1910[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1920 := &x.ListMeta yym1921 := z.EncBinary() _ = yym1921 if false { } else if z.HasExtensions() && z.EncExt(yy1920) { } else { z.EncFallback(yy1920) } } } if yyr1910 || yy2arr1910 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1923 := z.EncBinary() _ = yym1923 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 { yym1924 := z.EncBinary() _ = yym1924 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr1910 || yy2arr1910 { 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 yym1925 := z.DecBinary() _ = yym1925 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1926 := r.ContainerType() if yyct1926 == codecSelferValueTypeMap1234 { yyl1926 := r.ReadMapStart() if yyl1926 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1926, d) } } else if yyct1926 == codecSelferValueTypeArray1234 { yyl1926 := r.ReadArrayStart() if yyl1926 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1926, 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 yys1927Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1927Slc var yyhl1927 bool = l >= 0 for yyj1927 := 0; ; yyj1927++ { if yyhl1927 { if yyj1927 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1927Slc = r.DecodeBytes(yys1927Slc, true, true) yys1927 := string(yys1927Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1927 { 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 { yyv1930 := &x.ListMeta yym1931 := z.DecBinary() _ = yym1931 if false { } else if z.HasExtensions() && z.DecExt(yyv1930) { } else { z.DecFallback(yyv1930, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1932 := &x.Items yym1933 := z.DecBinary() _ = yym1933 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1932), d) } } default: z.DecStructFieldNotFound(-1, yys1927) } // end switch yys1927 } // end for yyj1927 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 yyj1934 int var yyb1934 bool var yyhl1934 bool = l >= 0 yyj1934++ if yyhl1934 { yyb1934 = yyj1934 > l } else { yyb1934 = r.CheckBreak() } if yyb1934 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1934++ if yyhl1934 { yyb1934 = yyj1934 > l } else { yyb1934 = r.CheckBreak() } if yyb1934 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1934++ if yyhl1934 { yyb1934 = yyj1934 > l } else { yyb1934 = r.CheckBreak() } if yyb1934 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1937 := &x.ListMeta yym1938 := z.DecBinary() _ = yym1938 if false { } else if z.HasExtensions() && z.DecExt(yyv1937) { } else { z.DecFallback(yyv1937, false) } } yyj1934++ if yyhl1934 { yyb1934 = yyj1934 > l } else { yyb1934 = r.CheckBreak() } if yyb1934 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1939 := &x.Items yym1940 := z.DecBinary() _ = yym1940 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1939), d) } } for { yyj1934++ if yyhl1934 { yyb1934 = yyj1934 > l } else { yyb1934 = r.CheckBreak() } if yyb1934 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1934-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 { yym1941 := z.EncBinary() _ = yym1941 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1942 := !z.EncBinary() yy2arr1942 := z.EncBasicHandle().StructToArray var yyq1942 [3]bool _, _, _ = yysep1942, yyq1942, yy2arr1942 const yyr1942 bool = false yyq1942[2] = x.Template != nil var yynn1942 int if yyr1942 || yy2arr1942 { r.EncodeArrayStart(3) } else { yynn1942 = 2 for _, b := range yyq1942 { if b { yynn1942++ } } r.EncodeMapStart(yynn1942) yynn1942 = 0 } if yyr1942 || yy2arr1942 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1944 := z.EncBinary() _ = yym1944 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1945 := z.EncBinary() _ = yym1945 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1942 || yy2arr1942 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym1947 := z.EncBinary() _ = yym1947 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 { yym1948 := z.EncBinary() _ = yym1948 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr1942 || yy2arr1942 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1942[2] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1942[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 yyr1942 || yy2arr1942 { 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 yym1950 := z.DecBinary() _ = yym1950 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1951 := r.ContainerType() if yyct1951 == codecSelferValueTypeMap1234 { yyl1951 := r.ReadMapStart() if yyl1951 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1951, d) } } else if yyct1951 == codecSelferValueTypeArray1234 { yyl1951 := r.ReadArrayStart() if yyl1951 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1951, 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 yys1952Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1952Slc var yyhl1952 bool = l >= 0 for yyj1952 := 0; ; yyj1952++ { if yyhl1952 { if yyj1952 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1952Slc = r.DecodeBytes(yys1952Slc, true, true) yys1952 := string(yys1952Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1952 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1954 := &x.Selector yym1955 := z.DecBinary() _ = yym1955 if false { } else { z.F.DecMapStringStringX(yyv1954, 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, yys1952) } // end switch yys1952 } // end for yyj1952 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 yyj1957 int var yyb1957 bool var yyhl1957 bool = l >= 0 yyj1957++ if yyhl1957 { yyb1957 = yyj1957 > l } else { yyb1957 = r.CheckBreak() } if yyb1957 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1957++ if yyhl1957 { yyb1957 = yyj1957 > l } else { yyb1957 = r.CheckBreak() } if yyb1957 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1959 := &x.Selector yym1960 := z.DecBinary() _ = yym1960 if false { } else { z.F.DecMapStringStringX(yyv1959, false, d) } } yyj1957++ if yyhl1957 { yyb1957 = yyj1957 > l } else { yyb1957 = r.CheckBreak() } if yyb1957 { 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 { yyj1957++ if yyhl1957 { yyb1957 = yyj1957 > l } else { yyb1957 = r.CheckBreak() } if yyb1957 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1957-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 { yym1962 := z.EncBinary() _ = yym1962 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1963 := !z.EncBinary() yy2arr1963 := z.EncBasicHandle().StructToArray var yyq1963 [2]bool _, _, _ = yysep1963, yyq1963, yy2arr1963 const yyr1963 bool = false yyq1963[1] = x.ObservedGeneration != 0 var yynn1963 int if yyr1963 || yy2arr1963 { r.EncodeArrayStart(2) } else { yynn1963 = 1 for _, b := range yyq1963 { if b { yynn1963++ } } r.EncodeMapStart(yynn1963) yynn1963 = 0 } if yyr1963 || yy2arr1963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1965 := z.EncBinary() _ = yym1965 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1966 := z.EncBinary() _ = yym1966 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1963 || yy2arr1963 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1963[1] { yym1968 := z.EncBinary() _ = yym1968 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq1963[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1969 := z.EncBinary() _ = yym1969 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr1963 || yy2arr1963 { 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 yym1970 := z.DecBinary() _ = yym1970 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1971 := r.ContainerType() if yyct1971 == codecSelferValueTypeMap1234 { yyl1971 := r.ReadMapStart() if yyl1971 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1971, d) } } else if yyct1971 == codecSelferValueTypeArray1234 { yyl1971 := r.ReadArrayStart() if yyl1971 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1971, 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 yys1972Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1972Slc var yyhl1972 bool = l >= 0 for yyj1972 := 0; ; yyj1972++ { if yyhl1972 { if yyj1972 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1972Slc = r.DecodeBytes(yys1972Slc, true, true) yys1972 := string(yys1972Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1972 { 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, yys1972) } // end switch yys1972 } // end for yyj1972 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 yyj1975 int var yyb1975 bool var yyhl1975 bool = l >= 0 yyj1975++ if yyhl1975 { yyb1975 = yyj1975 > l } else { yyb1975 = r.CheckBreak() } if yyb1975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1975++ if yyhl1975 { yyb1975 = yyj1975 > l } else { yyb1975 = r.CheckBreak() } if yyb1975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } for { yyj1975++ if yyhl1975 { yyb1975 = yyj1975 > l } else { yyb1975 = r.CheckBreak() } if yyb1975 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1975-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 { yym1978 := z.EncBinary() _ = yym1978 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1979 := !z.EncBinary() yy2arr1979 := z.EncBasicHandle().StructToArray var yyq1979 [5]bool _, _, _ = yysep1979, yyq1979, yy2arr1979 const yyr1979 bool = false yyq1979[0] = x.Kind != "" yyq1979[1] = x.APIVersion != "" yyq1979[2] = true yyq1979[3] = true yyq1979[4] = true var yynn1979 int if yyr1979 || yy2arr1979 { r.EncodeArrayStart(5) } else { yynn1979 = 0 for _, b := range yyq1979 { if b { yynn1979++ } } r.EncodeMapStart(yynn1979) yynn1979 = 0 } if yyr1979 || yy2arr1979 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1979[0] { yym1981 := z.EncBinary() _ = yym1981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1979[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1982 := z.EncBinary() _ = yym1982 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1979 || yy2arr1979 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1979[1] { yym1984 := z.EncBinary() _ = yym1984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1979[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1985 := z.EncBinary() _ = yym1985 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1979 || yy2arr1979 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1979[2] { yy1987 := &x.ObjectMeta yy1987.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1979[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1988 := &x.ObjectMeta yy1988.CodecEncodeSelf(e) } } if yyr1979 || yy2arr1979 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1979[3] { yy1990 := &x.Spec yy1990.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1979[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1991 := &x.Spec yy1991.CodecEncodeSelf(e) } } if yyr1979 || yy2arr1979 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1979[4] { yy1993 := &x.Status yy1993.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1979[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1994 := &x.Status yy1994.CodecEncodeSelf(e) } } if yyr1979 || yy2arr1979 { 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 yym1995 := z.DecBinary() _ = yym1995 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1996 := r.ContainerType() if yyct1996 == codecSelferValueTypeMap1234 { yyl1996 := r.ReadMapStart() if yyl1996 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1996, d) } } else if yyct1996 == codecSelferValueTypeArray1234 { yyl1996 := r.ReadArrayStart() if yyl1996 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1996, 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 yys1997Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1997Slc var yyhl1997 bool = l >= 0 for yyj1997 := 0; ; yyj1997++ { if yyhl1997 { if yyj1997 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1997Slc = r.DecodeBytes(yys1997Slc, true, true) yys1997 := string(yys1997Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1997 { 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 { yyv2000 := &x.ObjectMeta yyv2000.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2001 := &x.Spec yyv2001.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2002 := &x.Status yyv2002.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1997) } // end switch yys1997 } // end for yyj1997 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 yyj2003 int var yyb2003 bool var yyhl2003 bool = l >= 0 yyj2003++ if yyhl2003 { yyb2003 = yyj2003 > l } else { yyb2003 = r.CheckBreak() } if yyb2003 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2003++ if yyhl2003 { yyb2003 = yyj2003 > l } else { yyb2003 = r.CheckBreak() } if yyb2003 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2003++ if yyhl2003 { yyb2003 = yyj2003 > l } else { yyb2003 = r.CheckBreak() } if yyb2003 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2006 := &x.ObjectMeta yyv2006.CodecDecodeSelf(d) } yyj2003++ if yyhl2003 { yyb2003 = yyj2003 > l } else { yyb2003 = r.CheckBreak() } if yyb2003 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2007 := &x.Spec yyv2007.CodecDecodeSelf(d) } yyj2003++ if yyhl2003 { yyb2003 = yyj2003 > l } else { yyb2003 = r.CheckBreak() } if yyb2003 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2008 := &x.Status yyv2008.CodecDecodeSelf(d) } for { yyj2003++ if yyhl2003 { yyb2003 = yyj2003 > l } else { yyb2003 = r.CheckBreak() } if yyb2003 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2003-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 { yym2009 := z.EncBinary() _ = yym2009 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2010 := !z.EncBinary() yy2arr2010 := z.EncBasicHandle().StructToArray var yyq2010 [4]bool _, _, _ = yysep2010, yyq2010, yy2arr2010 const yyr2010 bool = false yyq2010[0] = x.Kind != "" yyq2010[1] = x.APIVersion != "" yyq2010[2] = true var yynn2010 int if yyr2010 || yy2arr2010 { r.EncodeArrayStart(4) } else { yynn2010 = 1 for _, b := range yyq2010 { if b { yynn2010++ } } r.EncodeMapStart(yynn2010) yynn2010 = 0 } if yyr2010 || yy2arr2010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2010[0] { yym2012 := z.EncBinary() _ = yym2012 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2010[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2013 := z.EncBinary() _ = yym2013 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2010 || yy2arr2010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2010[1] { yym2015 := z.EncBinary() _ = yym2015 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2010[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2016 := z.EncBinary() _ = yym2016 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2010 || yy2arr2010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2010[2] { yy2018 := &x.ListMeta yym2019 := z.EncBinary() _ = yym2019 if false { } else if z.HasExtensions() && z.EncExt(yy2018) { } else { z.EncFallback(yy2018) } } else { r.EncodeNil() } } else { if yyq2010[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2020 := &x.ListMeta yym2021 := z.EncBinary() _ = yym2021 if false { } else if z.HasExtensions() && z.EncExt(yy2020) { } else { z.EncFallback(yy2020) } } } if yyr2010 || yy2arr2010 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2023 := z.EncBinary() _ = yym2023 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 { yym2024 := z.EncBinary() _ = yym2024 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr2010 || yy2arr2010 { 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 yym2025 := z.DecBinary() _ = yym2025 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2026 := r.ContainerType() if yyct2026 == codecSelferValueTypeMap1234 { yyl2026 := r.ReadMapStart() if yyl2026 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2026, d) } } else if yyct2026 == codecSelferValueTypeArray1234 { yyl2026 := r.ReadArrayStart() if yyl2026 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2026, 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 yys2027Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2027Slc var yyhl2027 bool = l >= 0 for yyj2027 := 0; ; yyj2027++ { if yyhl2027 { if yyj2027 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2027Slc = r.DecodeBytes(yys2027Slc, true, true) yys2027 := string(yys2027Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2027 { 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 { yyv2030 := &x.ListMeta yym2031 := z.DecBinary() _ = yym2031 if false { } else if z.HasExtensions() && z.DecExt(yyv2030) { } else { z.DecFallback(yyv2030, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2032 := &x.Items yym2033 := z.DecBinary() _ = yym2033 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2032), d) } } default: z.DecStructFieldNotFound(-1, yys2027) } // end switch yys2027 } // end for yyj2027 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 yyj2034 int var yyb2034 bool var yyhl2034 bool = l >= 0 yyj2034++ if yyhl2034 { yyb2034 = yyj2034 > l } else { yyb2034 = r.CheckBreak() } if yyb2034 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2034++ if yyhl2034 { yyb2034 = yyj2034 > l } else { yyb2034 = r.CheckBreak() } if yyb2034 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2034++ if yyhl2034 { yyb2034 = yyj2034 > l } else { yyb2034 = r.CheckBreak() } if yyb2034 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2037 := &x.ListMeta yym2038 := z.DecBinary() _ = yym2038 if false { } else if z.HasExtensions() && z.DecExt(yyv2037) { } else { z.DecFallback(yyv2037, false) } } yyj2034++ if yyhl2034 { yyb2034 = yyj2034 > l } else { yyb2034 = r.CheckBreak() } if yyb2034 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2039 := &x.Items yym2040 := z.DecBinary() _ = yym2040 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2039), d) } } for { yyj2034++ if yyhl2034 { yyb2034 = yyj2034 > l } else { yyb2034 = r.CheckBreak() } if yyb2034 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2034-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 { yym2041 := z.EncBinary() _ = yym2041 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2042 := !z.EncBinary() yy2arr2042 := z.EncBasicHandle().StructToArray var yyq2042 [4]bool _, _, _ = yysep2042, yyq2042, yy2arr2042 const yyr2042 bool = false yyq2042[0] = x.Kind != "" yyq2042[1] = x.APIVersion != "" yyq2042[2] = true var yynn2042 int if yyr2042 || yy2arr2042 { r.EncodeArrayStart(4) } else { yynn2042 = 1 for _, b := range yyq2042 { if b { yynn2042++ } } r.EncodeMapStart(yynn2042) yynn2042 = 0 } if yyr2042 || yy2arr2042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2042[0] { yym2044 := z.EncBinary() _ = yym2044 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2042[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2045 := z.EncBinary() _ = yym2045 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2042 || yy2arr2042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2042[1] { yym2047 := z.EncBinary() _ = yym2047 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2042[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2048 := z.EncBinary() _ = yym2048 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2042 || yy2arr2042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2042[2] { yy2050 := &x.ListMeta yym2051 := z.EncBinary() _ = yym2051 if false { } else if z.HasExtensions() && z.EncExt(yy2050) { } else { z.EncFallback(yy2050) } } else { r.EncodeNil() } } else { if yyq2042[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2052 := &x.ListMeta yym2053 := z.EncBinary() _ = yym2053 if false { } else if z.HasExtensions() && z.EncExt(yy2052) { } else { z.EncFallback(yy2052) } } } if yyr2042 || yy2arr2042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2055 := z.EncBinary() _ = yym2055 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 { yym2056 := z.EncBinary() _ = yym2056 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr2042 || yy2arr2042 { 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 yym2057 := z.DecBinary() _ = yym2057 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2058 := r.ContainerType() if yyct2058 == codecSelferValueTypeMap1234 { yyl2058 := r.ReadMapStart() if yyl2058 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2058, d) } } else if yyct2058 == codecSelferValueTypeArray1234 { yyl2058 := r.ReadArrayStart() if yyl2058 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2058, 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 yys2059Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2059Slc var yyhl2059 bool = l >= 0 for yyj2059 := 0; ; yyj2059++ { if yyhl2059 { if yyj2059 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2059Slc = r.DecodeBytes(yys2059Slc, true, true) yys2059 := string(yys2059Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2059 { 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 { yyv2062 := &x.ListMeta yym2063 := z.DecBinary() _ = yym2063 if false { } else if z.HasExtensions() && z.DecExt(yyv2062) { } else { z.DecFallback(yyv2062, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2064 := &x.Items yym2065 := z.DecBinary() _ = yym2065 if false { } else { h.decSliceService((*[]Service)(yyv2064), d) } } default: z.DecStructFieldNotFound(-1, yys2059) } // end switch yys2059 } // end for yyj2059 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 yyj2066 int var yyb2066 bool var yyhl2066 bool = l >= 0 yyj2066++ if yyhl2066 { yyb2066 = yyj2066 > l } else { yyb2066 = r.CheckBreak() } if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2066++ if yyhl2066 { yyb2066 = yyj2066 > l } else { yyb2066 = r.CheckBreak() } if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2066++ if yyhl2066 { yyb2066 = yyj2066 > l } else { yyb2066 = r.CheckBreak() } if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2069 := &x.ListMeta yym2070 := z.DecBinary() _ = yym2070 if false { } else if z.HasExtensions() && z.DecExt(yyv2069) { } else { z.DecFallback(yyv2069, false) } } yyj2066++ if yyhl2066 { yyb2066 = yyj2066 > l } else { yyb2066 = r.CheckBreak() } if yyb2066 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2071 := &x.Items yym2072 := z.DecBinary() _ = yym2072 if false { } else { h.decSliceService((*[]Service)(yyv2071), d) } } for { yyj2066++ if yyhl2066 { yyb2066 = yyj2066 > l } else { yyb2066 = r.CheckBreak() } if yyb2066 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2066-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2073 := z.EncBinary() _ = yym2073 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 yym2074 := z.DecBinary() _ = yym2074 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 yym2075 := z.EncBinary() _ = yym2075 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 yym2076 := z.DecBinary() _ = yym2076 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 { yym2077 := z.EncBinary() _ = yym2077 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2078 := !z.EncBinary() yy2arr2078 := z.EncBasicHandle().StructToArray var yyq2078 [1]bool _, _, _ = yysep2078, yyq2078, yy2arr2078 const yyr2078 bool = false yyq2078[0] = true var yynn2078 int if yyr2078 || yy2arr2078 { r.EncodeArrayStart(1) } else { yynn2078 = 0 for _, b := range yyq2078 { if b { yynn2078++ } } r.EncodeMapStart(yynn2078) yynn2078 = 0 } if yyr2078 || yy2arr2078 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2078[0] { yy2080 := &x.LoadBalancer yy2080.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2078[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2081 := &x.LoadBalancer yy2081.CodecEncodeSelf(e) } } if yyr2078 || yy2arr2078 { 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 yym2082 := z.DecBinary() _ = yym2082 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2083 := r.ContainerType() if yyct2083 == codecSelferValueTypeMap1234 { yyl2083 := r.ReadMapStart() if yyl2083 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2083, d) } } else if yyct2083 == codecSelferValueTypeArray1234 { yyl2083 := r.ReadArrayStart() if yyl2083 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2083, 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 yys2084Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2084Slc var yyhl2084 bool = l >= 0 for yyj2084 := 0; ; yyj2084++ { if yyhl2084 { if yyj2084 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2084Slc = r.DecodeBytes(yys2084Slc, true, true) yys2084 := string(yys2084Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2084 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2085 := &x.LoadBalancer yyv2085.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2084) } // end switch yys2084 } // end for yyj2084 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 yyj2086 int var yyb2086 bool var yyhl2086 bool = l >= 0 yyj2086++ if yyhl2086 { yyb2086 = yyj2086 > l } else { yyb2086 = r.CheckBreak() } if yyb2086 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2087 := &x.LoadBalancer yyv2087.CodecDecodeSelf(d) } for { yyj2086++ if yyhl2086 { yyb2086 = yyj2086 > l } else { yyb2086 = r.CheckBreak() } if yyb2086 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2086-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 { yym2088 := z.EncBinary() _ = yym2088 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2089 := !z.EncBinary() yy2arr2089 := z.EncBasicHandle().StructToArray var yyq2089 [1]bool _, _, _ = yysep2089, yyq2089, yy2arr2089 const yyr2089 bool = false yyq2089[0] = len(x.Ingress) != 0 var yynn2089 int if yyr2089 || yy2arr2089 { r.EncodeArrayStart(1) } else { yynn2089 = 0 for _, b := range yyq2089 { if b { yynn2089++ } } r.EncodeMapStart(yynn2089) yynn2089 = 0 } if yyr2089 || yy2arr2089 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2089[0] { if x.Ingress == nil { r.EncodeNil() } else { yym2091 := z.EncBinary() _ = yym2091 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq2089[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym2092 := z.EncBinary() _ = yym2092 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr2089 || yy2arr2089 { 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 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 *LoadBalancerStatus) 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 "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2096 := &x.Ingress yym2097 := z.DecBinary() _ = yym2097 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2096), d) } } default: z.DecStructFieldNotFound(-1, yys2095) } // end switch yys2095 } // end for yyj2095 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 yyj2098 int var yyb2098 bool var yyhl2098 bool = l >= 0 yyj2098++ if yyhl2098 { yyb2098 = yyj2098 > l } else { yyb2098 = r.CheckBreak() } if yyb2098 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2099 := &x.Ingress yym2100 := z.DecBinary() _ = yym2100 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2099), d) } } for { yyj2098++ if yyhl2098 { yyb2098 = yyj2098 > l } else { yyb2098 = r.CheckBreak() } if yyb2098 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2098-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 { yym2101 := z.EncBinary() _ = yym2101 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2102 := !z.EncBinary() yy2arr2102 := z.EncBasicHandle().StructToArray var yyq2102 [2]bool _, _, _ = yysep2102, yyq2102, yy2arr2102 const yyr2102 bool = false yyq2102[0] = x.IP != "" yyq2102[1] = x.Hostname != "" var yynn2102 int if yyr2102 || yy2arr2102 { r.EncodeArrayStart(2) } else { yynn2102 = 0 for _, b := range yyq2102 { if b { yynn2102++ } } r.EncodeMapStart(yynn2102) yynn2102 = 0 } if yyr2102 || yy2arr2102 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2102[0] { yym2104 := z.EncBinary() _ = yym2104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2102[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2105 := z.EncBinary() _ = yym2105 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr2102 || yy2arr2102 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2102[1] { yym2107 := z.EncBinary() _ = yym2107 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2102[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2108 := z.EncBinary() _ = yym2108 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2102 || yy2arr2102 { 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 yym2109 := z.DecBinary() _ = yym2109 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2110 := r.ContainerType() if yyct2110 == codecSelferValueTypeMap1234 { yyl2110 := r.ReadMapStart() if yyl2110 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2110, d) } } else if yyct2110 == codecSelferValueTypeArray1234 { yyl2110 := r.ReadArrayStart() if yyl2110 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2110, 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 yys2111Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2111Slc var yyhl2111 bool = l >= 0 for yyj2111 := 0; ; yyj2111++ { if yyhl2111 { if yyj2111 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2111Slc = r.DecodeBytes(yys2111Slc, true, true) yys2111 := string(yys2111Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2111 { 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, yys2111) } // end switch yys2111 } // end for yyj2111 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 yyj2114 int var yyb2114 bool var yyhl2114 bool = l >= 0 yyj2114++ if yyhl2114 { yyb2114 = yyj2114 > l } else { yyb2114 = r.CheckBreak() } if yyb2114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2114++ if yyhl2114 { yyb2114 = yyj2114 > l } else { yyb2114 = r.CheckBreak() } if yyb2114 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj2114++ if yyhl2114 { yyb2114 = yyj2114 > l } else { yyb2114 = r.CheckBreak() } if yyb2114 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2114-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 { yym2117 := z.EncBinary() _ = yym2117 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2118 := !z.EncBinary() yy2arr2118 := z.EncBasicHandle().StructToArray var yyq2118 [7]bool _, _, _ = yysep2118, yyq2118, yy2arr2118 const yyr2118 bool = false yyq2118[0] = x.Type != "" yyq2118[3] = x.ClusterIP != "" yyq2118[4] = len(x.ExternalIPs) != 0 yyq2118[5] = x.LoadBalancerIP != "" yyq2118[6] = x.SessionAffinity != "" var yynn2118 int if yyr2118 || yy2arr2118 { r.EncodeArrayStart(7) } else { yynn2118 = 2 for _, b := range yyq2118 { if b { yynn2118++ } } r.EncodeMapStart(yynn2118) yynn2118 = 0 } if yyr2118 || yy2arr2118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2118[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2118[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr2118 || yy2arr2118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2121 := z.EncBinary() _ = yym2121 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 { yym2122 := z.EncBinary() _ = yym2122 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr2118 || yy2arr2118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2124 := z.EncBinary() _ = yym2124 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 { yym2125 := z.EncBinary() _ = yym2125 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2118 || yy2arr2118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2118[3] { yym2127 := z.EncBinary() _ = yym2127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2118[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2128 := z.EncBinary() _ = yym2128 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr2118 || yy2arr2118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2118[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym2130 := z.EncBinary() _ = yym2130 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq2118[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym2131 := z.EncBinary() _ = yym2131 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr2118 || yy2arr2118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2118[5] { yym2133 := z.EncBinary() _ = yym2133 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2118[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2134 := z.EncBinary() _ = yym2134 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr2118 || yy2arr2118 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2118[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2118[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr2118 || yy2arr2118 { 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 yym2136 := z.DecBinary() _ = yym2136 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2137 := r.ContainerType() if yyct2137 == codecSelferValueTypeMap1234 { yyl2137 := r.ReadMapStart() if yyl2137 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2137, d) } } else if yyct2137 == codecSelferValueTypeArray1234 { yyl2137 := r.ReadArrayStart() if yyl2137 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2137, 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 yys2138Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2138Slc var yyhl2138 bool = l >= 0 for yyj2138 := 0; ; yyj2138++ { if yyhl2138 { if yyj2138 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2138Slc = r.DecodeBytes(yys2138Slc, true, true) yys2138 := string(yys2138Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2138 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2140 := &x.Ports yym2141 := z.DecBinary() _ = yym2141 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2140), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2142 := &x.Selector yym2143 := z.DecBinary() _ = yym2143 if false { } else { z.F.DecMapStringStringX(yyv2142, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2145 := &x.ExternalIPs yym2146 := z.DecBinary() _ = yym2146 if false { } else { z.F.DecSliceStringX(yyv2145, 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, yys2138) } // end switch yys2138 } // end for yyj2138 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 yyj2149 int var yyb2149 bool var yyhl2149 bool = l >= 0 yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2151 := &x.Ports yym2152 := z.DecBinary() _ = yym2152 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2151), d) } } yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2153 := &x.Selector yym2154 := z.DecBinary() _ = yym2154 if false { } else { z.F.DecMapStringStringX(yyv2153, false, d) } } yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2156 := &x.ExternalIPs yym2157 := z.DecBinary() _ = yym2157 if false { } else { z.F.DecSliceStringX(yyv2156, false, d) } } yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } for { yyj2149++ if yyhl2149 { yyb2149 = yyj2149 > l } else { yyb2149 = r.CheckBreak() } if yyb2149 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2149-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 { yym2160 := z.EncBinary() _ = yym2160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2161 := !z.EncBinary() yy2arr2161 := z.EncBasicHandle().StructToArray var yyq2161 [5]bool _, _, _ = yysep2161, yyq2161, yy2arr2161 const yyr2161 bool = false var yynn2161 int if yyr2161 || yy2arr2161 { r.EncodeArrayStart(5) } else { yynn2161 = 5 for _, b := range yyq2161 { if b { yynn2161++ } } r.EncodeMapStart(yynn2161) yynn2161 = 0 } if yyr2161 || yy2arr2161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2163 := z.EncBinary() _ = yym2163 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) yym2164 := z.EncBinary() _ = yym2164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2161 || yy2arr2161 { 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 yyr2161 || yy2arr2161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2167 := z.EncBinary() _ = yym2167 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2168 := z.EncBinary() _ = yym2168 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2161 || yy2arr2161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2170 := &x.TargetPort yym2171 := z.EncBinary() _ = yym2171 if false { } else if z.HasExtensions() && z.EncExt(yy2170) { } else if !yym2171 && z.IsJSONHandle() { z.EncJSONMarshal(yy2170) } else { z.EncFallback(yy2170) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2172 := &x.TargetPort yym2173 := z.EncBinary() _ = yym2173 if false { } else if z.HasExtensions() && z.EncExt(yy2172) { } else if !yym2173 && z.IsJSONHandle() { z.EncJSONMarshal(yy2172) } else { z.EncFallback(yy2172) } } if yyr2161 || yy2arr2161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2175 := z.EncBinary() _ = yym2175 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2176 := z.EncBinary() _ = yym2176 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr2161 || yy2arr2161 { 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 yym2177 := z.DecBinary() _ = yym2177 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2178 := r.ContainerType() if yyct2178 == codecSelferValueTypeMap1234 { yyl2178 := r.ReadMapStart() if yyl2178 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2178, d) } } else if yyct2178 == codecSelferValueTypeArray1234 { yyl2178 := r.ReadArrayStart() if yyl2178 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2178, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2179Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2179Slc var yyhl2179 bool = l >= 0 for yyj2179 := 0; ; yyj2179++ { if yyhl2179 { if yyj2179 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2179Slc = r.DecodeBytes(yys2179Slc, true, true) yys2179 := string(yys2179Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2179 { case "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 { yyv2183 := &x.TargetPort yym2184 := z.DecBinary() _ = yym2184 if false { } else if z.HasExtensions() && z.DecExt(yyv2183) { } else if !yym2184 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2183) } else { z.DecFallback(yyv2183, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2179) } // end switch yys2179 } // end for yyj2179 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 yyj2186 int var yyb2186 bool var yyhl2186 bool = l >= 0 yyj2186++ if yyhl2186 { yyb2186 = yyj2186 > l } else { yyb2186 = r.CheckBreak() } if yyb2186 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2186++ if yyhl2186 { yyb2186 = yyj2186 > l } else { yyb2186 = r.CheckBreak() } if yyb2186 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj2186++ if yyhl2186 { yyb2186 = yyj2186 > l } else { yyb2186 = r.CheckBreak() } if yyb2186 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2186++ if yyhl2186 { yyb2186 = yyj2186 > l } else { yyb2186 = r.CheckBreak() } if yyb2186 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg5_intstr.IntOrString{} } else { yyv2190 := &x.TargetPort yym2191 := z.DecBinary() _ = yym2191 if false { } else if z.HasExtensions() && z.DecExt(yyv2190) { } else if !yym2191 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2190) } else { z.DecFallback(yyv2190, false) } } yyj2186++ if yyhl2186 { yyb2186 = yyj2186 > l } else { yyb2186 = r.CheckBreak() } if yyb2186 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2186++ if yyhl2186 { yyb2186 = yyj2186 > l } else { yyb2186 = r.CheckBreak() } if yyb2186 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2186-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 { yym2193 := z.EncBinary() _ = yym2193 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2194 := !z.EncBinary() yy2arr2194 := z.EncBasicHandle().StructToArray var yyq2194 [5]bool _, _, _ = yysep2194, yyq2194, yy2arr2194 const yyr2194 bool = false yyq2194[0] = x.Kind != "" yyq2194[1] = x.APIVersion != "" yyq2194[2] = true yyq2194[3] = true yyq2194[4] = true var yynn2194 int if yyr2194 || yy2arr2194 { r.EncodeArrayStart(5) } else { yynn2194 = 0 for _, b := range yyq2194 { if b { yynn2194++ } } r.EncodeMapStart(yynn2194) yynn2194 = 0 } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2194[0] { yym2196 := z.EncBinary() _ = yym2196 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2194[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2197 := z.EncBinary() _ = yym2197 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2194[1] { yym2199 := z.EncBinary() _ = yym2199 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2194[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2200 := z.EncBinary() _ = yym2200 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2194[2] { yy2202 := &x.ObjectMeta yy2202.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2194[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2203 := &x.ObjectMeta yy2203.CodecEncodeSelf(e) } } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2194[3] { yy2205 := &x.Spec yy2205.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2194[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2206 := &x.Spec yy2206.CodecEncodeSelf(e) } } if yyr2194 || yy2arr2194 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2194[4] { yy2208 := &x.Status yy2208.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2194[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2209 := &x.Status yy2209.CodecEncodeSelf(e) } } if yyr2194 || yy2arr2194 { 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 yym2210 := z.DecBinary() _ = yym2210 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2211 := r.ContainerType() if yyct2211 == codecSelferValueTypeMap1234 { yyl2211 := r.ReadMapStart() if yyl2211 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2211, d) } } else if yyct2211 == codecSelferValueTypeArray1234 { yyl2211 := r.ReadArrayStart() if yyl2211 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2211, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2212Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2212Slc var yyhl2212 bool = l >= 0 for yyj2212 := 0; ; yyj2212++ { if yyhl2212 { if yyj2212 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2212Slc = r.DecodeBytes(yys2212Slc, true, true) yys2212 := string(yys2212Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2212 { case "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 { yyv2215 := &x.ObjectMeta yyv2215.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2216 := &x.Spec yyv2216.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2217 := &x.Status yyv2217.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2212) } // end switch yys2212 } // end for yyj2212 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 yyj2218 int var yyb2218 bool var yyhl2218 bool = l >= 0 yyj2218++ if yyhl2218 { yyb2218 = yyj2218 > l } else { yyb2218 = r.CheckBreak() } if yyb2218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2218++ if yyhl2218 { yyb2218 = yyj2218 > l } else { yyb2218 = r.CheckBreak() } if yyb2218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2218++ if yyhl2218 { yyb2218 = yyj2218 > l } else { yyb2218 = r.CheckBreak() } if yyb2218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2221 := &x.ObjectMeta yyv2221.CodecDecodeSelf(d) } yyj2218++ if yyhl2218 { yyb2218 = yyj2218 > l } else { yyb2218 = r.CheckBreak() } if yyb2218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2222 := &x.Spec yyv2222.CodecDecodeSelf(d) } yyj2218++ if yyhl2218 { yyb2218 = yyj2218 > l } else { yyb2218 = r.CheckBreak() } if yyb2218 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2223 := &x.Status yyv2223.CodecDecodeSelf(d) } for { yyj2218++ if yyhl2218 { yyb2218 = yyj2218 > l } else { yyb2218 = r.CheckBreak() } if yyb2218 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2218-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 { yym2224 := z.EncBinary() _ = yym2224 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2225 := !z.EncBinary() yy2arr2225 := z.EncBasicHandle().StructToArray var yyq2225 [5]bool _, _, _ = yysep2225, yyq2225, yy2arr2225 const yyr2225 bool = false yyq2225[0] = x.Kind != "" yyq2225[1] = x.APIVersion != "" yyq2225[2] = true yyq2225[4] = len(x.ImagePullSecrets) != 0 var yynn2225 int if yyr2225 || yy2arr2225 { r.EncodeArrayStart(5) } else { yynn2225 = 1 for _, b := range yyq2225 { if b { yynn2225++ } } r.EncodeMapStart(yynn2225) yynn2225 = 0 } if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2225[0] { yym2227 := z.EncBinary() _ = yym2227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2225[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2228 := z.EncBinary() _ = yym2228 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2225[1] { yym2230 := z.EncBinary() _ = yym2230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2225[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2231 := z.EncBinary() _ = yym2231 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2225[2] { yy2233 := &x.ObjectMeta yy2233.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2225[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2234 := &x.ObjectMeta yy2234.CodecEncodeSelf(e) } } if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2236 := z.EncBinary() _ = yym2236 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 { yym2237 := z.EncBinary() _ = yym2237 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2225 || yy2arr2225 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2225[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2239 := z.EncBinary() _ = yym2239 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2225[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2240 := z.EncBinary() _ = yym2240 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2225 || yy2arr2225 { 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 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 *ServiceAccount) 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 "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 { yyv2246 := &x.ObjectMeta yyv2246.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2247 := &x.Secrets yym2248 := z.DecBinary() _ = yym2248 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2247), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2249 := &x.ImagePullSecrets yym2250 := z.DecBinary() _ = yym2250 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2249), d) } } default: z.DecStructFieldNotFound(-1, yys2243) } // end switch yys2243 } // end for yyj2243 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 yyj2251 int var yyb2251 bool var yyhl2251 bool = l >= 0 yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2254 := &x.ObjectMeta yyv2254.CodecDecodeSelf(d) } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2255 := &x.Secrets yym2256 := z.DecBinary() _ = yym2256 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2255), d) } } yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2257 := &x.ImagePullSecrets yym2258 := z.DecBinary() _ = yym2258 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2257), d) } } for { yyj2251++ if yyhl2251 { yyb2251 = yyj2251 > l } else { yyb2251 = r.CheckBreak() } if yyb2251 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2251-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2259 := z.EncBinary() _ = yym2259 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2260 := !z.EncBinary() yy2arr2260 := z.EncBasicHandle().StructToArray var yyq2260 [4]bool _, _, _ = yysep2260, yyq2260, yy2arr2260 const yyr2260 bool = false yyq2260[0] = x.Kind != "" yyq2260[1] = x.APIVersion != "" yyq2260[2] = true var yynn2260 int if yyr2260 || yy2arr2260 { r.EncodeArrayStart(4) } else { yynn2260 = 1 for _, b := range yyq2260 { if b { yynn2260++ } } r.EncodeMapStart(yynn2260) yynn2260 = 0 } if yyr2260 || yy2arr2260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2260[0] { yym2262 := z.EncBinary() _ = yym2262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2260[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2263 := z.EncBinary() _ = yym2263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2260 || yy2arr2260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2260[1] { yym2265 := z.EncBinary() _ = yym2265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2260[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2266 := z.EncBinary() _ = yym2266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2260 || yy2arr2260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2260[2] { yy2268 := &x.ListMeta yym2269 := z.EncBinary() _ = yym2269 if false { } else if z.HasExtensions() && z.EncExt(yy2268) { } else { z.EncFallback(yy2268) } } else { r.EncodeNil() } } else { if yyq2260[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2270 := &x.ListMeta yym2271 := z.EncBinary() _ = yym2271 if false { } else if z.HasExtensions() && z.EncExt(yy2270) { } else { z.EncFallback(yy2270) } } } if yyr2260 || yy2arr2260 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2273 := z.EncBinary() _ = yym2273 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 { yym2274 := z.EncBinary() _ = yym2274 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2260 || yy2arr2260 { 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 yym2275 := z.DecBinary() _ = yym2275 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2276 := r.ContainerType() if yyct2276 == codecSelferValueTypeMap1234 { yyl2276 := r.ReadMapStart() if yyl2276 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2276, d) } } else if yyct2276 == codecSelferValueTypeArray1234 { yyl2276 := r.ReadArrayStart() if yyl2276 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2276, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2277Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2277Slc var yyhl2277 bool = l >= 0 for yyj2277 := 0; ; yyj2277++ { if yyhl2277 { if yyj2277 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2277Slc = r.DecodeBytes(yys2277Slc, true, true) yys2277 := string(yys2277Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2277 { case "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 { yyv2280 := &x.ListMeta yym2281 := z.DecBinary() _ = yym2281 if false { } else if z.HasExtensions() && z.DecExt(yyv2280) { } else { z.DecFallback(yyv2280, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2282 := &x.Items yym2283 := z.DecBinary() _ = yym2283 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2282), d) } } default: z.DecStructFieldNotFound(-1, yys2277) } // end switch yys2277 } // end for yyj2277 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 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.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } 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.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2287 := &x.ListMeta yym2288 := z.DecBinary() _ = yym2288 if false { } else if z.HasExtensions() && z.DecExt(yyv2287) { } else { z.DecFallback(yyv2287, false) } } 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.Items = nil } else { yyv2289 := &x.Items yym2290 := z.DecBinary() _ = yym2290 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2289), d) } } 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 *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2291 := z.EncBinary() _ = yym2291 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2292 := !z.EncBinary() yy2arr2292 := z.EncBasicHandle().StructToArray var yyq2292 [4]bool _, _, _ = yysep2292, yyq2292, yy2arr2292 const yyr2292 bool = false yyq2292[0] = x.Kind != "" yyq2292[1] = x.APIVersion != "" yyq2292[2] = true var yynn2292 int if yyr2292 || yy2arr2292 { r.EncodeArrayStart(4) } else { yynn2292 = 1 for _, b := range yyq2292 { if b { yynn2292++ } } r.EncodeMapStart(yynn2292) yynn2292 = 0 } if yyr2292 || yy2arr2292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2292[0] { yym2294 := z.EncBinary() _ = yym2294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2292[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2295 := z.EncBinary() _ = yym2295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2292 || yy2arr2292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2292[1] { yym2297 := z.EncBinary() _ = yym2297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2292[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2298 := z.EncBinary() _ = yym2298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2292 || yy2arr2292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2292[2] { yy2300 := &x.ObjectMeta yy2300.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2292[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2301 := &x.ObjectMeta yy2301.CodecEncodeSelf(e) } } if yyr2292 || yy2arr2292 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2303 := z.EncBinary() _ = yym2303 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 { yym2304 := z.EncBinary() _ = yym2304 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2292 || yy2arr2292 { 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 yym2305 := z.DecBinary() _ = yym2305 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2306 := r.ContainerType() if yyct2306 == codecSelferValueTypeMap1234 { yyl2306 := r.ReadMapStart() if yyl2306 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2306, d) } } else if yyct2306 == codecSelferValueTypeArray1234 { yyl2306 := r.ReadArrayStart() if yyl2306 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2306, 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 yys2307Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2307Slc var yyhl2307 bool = l >= 0 for yyj2307 := 0; ; yyj2307++ { if yyhl2307 { if yyj2307 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2307Slc = r.DecodeBytes(yys2307Slc, true, true) yys2307 := string(yys2307Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2307 { 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 { yyv2310 := &x.ObjectMeta yyv2310.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2311 := &x.Subsets yym2312 := z.DecBinary() _ = yym2312 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2311), d) } } default: z.DecStructFieldNotFound(-1, yys2307) } // end switch yys2307 } // end for yyj2307 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 yyj2313 int var yyb2313 bool var yyhl2313 bool = l >= 0 yyj2313++ if yyhl2313 { yyb2313 = yyj2313 > l } else { yyb2313 = r.CheckBreak() } if yyb2313 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2313++ if yyhl2313 { yyb2313 = yyj2313 > l } else { yyb2313 = r.CheckBreak() } if yyb2313 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2313++ if yyhl2313 { yyb2313 = yyj2313 > l } else { yyb2313 = r.CheckBreak() } if yyb2313 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2316 := &x.ObjectMeta yyv2316.CodecDecodeSelf(d) } yyj2313++ if yyhl2313 { yyb2313 = yyj2313 > l } else { yyb2313 = r.CheckBreak() } if yyb2313 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2317 := &x.Subsets yym2318 := z.DecBinary() _ = yym2318 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2317), d) } } for { yyj2313++ if yyhl2313 { yyb2313 = yyj2313 > l } else { yyb2313 = r.CheckBreak() } if yyb2313 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2313-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 { yym2319 := z.EncBinary() _ = yym2319 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2320 := !z.EncBinary() yy2arr2320 := z.EncBasicHandle().StructToArray var yyq2320 [3]bool _, _, _ = yysep2320, yyq2320, yy2arr2320 const yyr2320 bool = false var yynn2320 int if yyr2320 || yy2arr2320 { r.EncodeArrayStart(3) } else { yynn2320 = 3 for _, b := range yyq2320 { if b { yynn2320++ } } r.EncodeMapStart(yynn2320) yynn2320 = 0 } if yyr2320 || yy2arr2320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2322 := z.EncBinary() _ = yym2322 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 { yym2323 := z.EncBinary() _ = yym2323 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2320 || yy2arr2320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2325 := z.EncBinary() _ = yym2325 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 { yym2326 := z.EncBinary() _ = yym2326 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2320 || yy2arr2320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2328 := z.EncBinary() _ = yym2328 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 { yym2329 := z.EncBinary() _ = yym2329 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2320 || yy2arr2320 { 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 yym2330 := z.DecBinary() _ = yym2330 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2331 := r.ContainerType() if yyct2331 == codecSelferValueTypeMap1234 { yyl2331 := r.ReadMapStart() if yyl2331 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2331, d) } } else if yyct2331 == codecSelferValueTypeArray1234 { yyl2331 := r.ReadArrayStart() if yyl2331 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2331, 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 yys2332Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2332Slc var yyhl2332 bool = l >= 0 for yyj2332 := 0; ; yyj2332++ { if yyhl2332 { if yyj2332 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2332Slc = r.DecodeBytes(yys2332Slc, true, true) yys2332 := string(yys2332Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2332 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2333 := &x.Addresses yym2334 := z.DecBinary() _ = yym2334 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2333), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2335 := &x.NotReadyAddresses yym2336 := z.DecBinary() _ = yym2336 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2335), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2337 := &x.Ports yym2338 := z.DecBinary() _ = yym2338 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2337), d) } } default: z.DecStructFieldNotFound(-1, yys2332) } // end switch yys2332 } // end for yyj2332 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 yyj2339 int var yyb2339 bool var yyhl2339 bool = l >= 0 yyj2339++ if yyhl2339 { yyb2339 = yyj2339 > l } else { yyb2339 = r.CheckBreak() } if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2340 := &x.Addresses yym2341 := z.DecBinary() _ = yym2341 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2340), d) } } yyj2339++ if yyhl2339 { yyb2339 = yyj2339 > l } else { yyb2339 = r.CheckBreak() } if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2342 := &x.NotReadyAddresses yym2343 := z.DecBinary() _ = yym2343 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2342), d) } } yyj2339++ if yyhl2339 { yyb2339 = yyj2339 > l } else { yyb2339 = r.CheckBreak() } if yyb2339 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2344 := &x.Ports yym2345 := z.DecBinary() _ = yym2345 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2344), d) } } for { yyj2339++ if yyhl2339 { yyb2339 = yyj2339 > l } else { yyb2339 = r.CheckBreak() } if yyb2339 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2339-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 { yym2346 := z.EncBinary() _ = yym2346 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2347 := !z.EncBinary() yy2arr2347 := z.EncBasicHandle().StructToArray var yyq2347 [2]bool _, _, _ = yysep2347, yyq2347, yy2arr2347 const yyr2347 bool = false var yynn2347 int if yyr2347 || yy2arr2347 { r.EncodeArrayStart(2) } else { yynn2347 = 2 for _, b := range yyq2347 { if b { yynn2347++ } } r.EncodeMapStart(yynn2347) yynn2347 = 0 } if yyr2347 || yy2arr2347 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2349 := z.EncBinary() _ = yym2349 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) yym2350 := z.EncBinary() _ = yym2350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2347 || yy2arr2347 { 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 yyr2347 || yy2arr2347 { 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 yym2352 := z.DecBinary() _ = yym2352 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2353 := r.ContainerType() if yyct2353 == codecSelferValueTypeMap1234 { yyl2353 := r.ReadMapStart() if yyl2353 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2353, d) } } else if yyct2353 == codecSelferValueTypeArray1234 { yyl2353 := r.ReadArrayStart() if yyl2353 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2353, 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 yys2354Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2354Slc var yyhl2354 bool = l >= 0 for yyj2354 := 0; ; yyj2354++ { if yyhl2354 { if yyj2354 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2354Slc = r.DecodeBytes(yys2354Slc, true, true) yys2354 := string(yys2354Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2354 { 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, yys2354) } // end switch yys2354 } // end for yyj2354 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 yyj2357 int var yyb2357 bool var yyhl2357 bool = l >= 0 yyj2357++ if yyhl2357 { yyb2357 = yyj2357 > l } else { yyb2357 = r.CheckBreak() } if yyb2357 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2357++ if yyhl2357 { yyb2357 = yyj2357 > l } else { yyb2357 = r.CheckBreak() } if yyb2357 { 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 { yyj2357++ if yyhl2357 { yyb2357 = yyj2357 > l } else { yyb2357 = r.CheckBreak() } if yyb2357 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2357-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 { yym2360 := z.EncBinary() _ = yym2360 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2361 := !z.EncBinary() yy2arr2361 := z.EncBasicHandle().StructToArray var yyq2361 [3]bool _, _, _ = yysep2361, yyq2361, yy2arr2361 const yyr2361 bool = false var yynn2361 int if yyr2361 || yy2arr2361 { r.EncodeArrayStart(3) } else { yynn2361 = 3 for _, b := range yyq2361 { if b { yynn2361++ } } r.EncodeMapStart(yynn2361) yynn2361 = 0 } if yyr2361 || yy2arr2361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2363 := z.EncBinary() _ = yym2363 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) yym2364 := z.EncBinary() _ = yym2364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2361 || yy2arr2361 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2366 := z.EncBinary() _ = yym2366 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2367 := z.EncBinary() _ = yym2367 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2361 || yy2arr2361 { 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 yyr2361 || yy2arr2361 { 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 yym2369 := z.DecBinary() _ = yym2369 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2370 := r.ContainerType() if yyct2370 == codecSelferValueTypeMap1234 { yyl2370 := r.ReadMapStart() if yyl2370 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2370, d) } } else if yyct2370 == codecSelferValueTypeArray1234 { yyl2370 := r.ReadArrayStart() if yyl2370 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2370, 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 yys2371Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2371Slc var yyhl2371 bool = l >= 0 for yyj2371 := 0; ; yyj2371++ { if yyhl2371 { if yyj2371 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2371Slc = r.DecodeBytes(yys2371Slc, true, true) yys2371 := string(yys2371Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2371 { 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, yys2371) } // end switch yys2371 } // end for yyj2371 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 yyj2375 int var yyb2375 bool var yyhl2375 bool = l >= 0 yyj2375++ if yyhl2375 { yyb2375 = yyj2375 > l } else { yyb2375 = r.CheckBreak() } if yyb2375 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2375++ if yyhl2375 { yyb2375 = yyj2375 > l } else { yyb2375 = r.CheckBreak() } if yyb2375 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2375++ if yyhl2375 { yyb2375 = yyj2375 > l } else { yyb2375 = r.CheckBreak() } if yyb2375 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2375++ if yyhl2375 { yyb2375 = yyj2375 > l } else { yyb2375 = r.CheckBreak() } if yyb2375 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2375-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 { yym2379 := z.EncBinary() _ = yym2379 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2380 := !z.EncBinary() yy2arr2380 := z.EncBasicHandle().StructToArray var yyq2380 [4]bool _, _, _ = yysep2380, yyq2380, yy2arr2380 const yyr2380 bool = false yyq2380[0] = x.Kind != "" yyq2380[1] = x.APIVersion != "" yyq2380[2] = true var yynn2380 int if yyr2380 || yy2arr2380 { r.EncodeArrayStart(4) } else { yynn2380 = 1 for _, b := range yyq2380 { if b { yynn2380++ } } r.EncodeMapStart(yynn2380) yynn2380 = 0 } if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2380[0] { yym2382 := z.EncBinary() _ = yym2382 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2380[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2383 := z.EncBinary() _ = yym2383 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2380[1] { yym2385 := z.EncBinary() _ = yym2385 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2380[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2386 := z.EncBinary() _ = yym2386 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2380[2] { yy2388 := &x.ListMeta yym2389 := z.EncBinary() _ = yym2389 if false { } else if z.HasExtensions() && z.EncExt(yy2388) { } else { z.EncFallback(yy2388) } } else { r.EncodeNil() } } else { if yyq2380[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2390 := &x.ListMeta yym2391 := z.EncBinary() _ = yym2391 if false { } else if z.HasExtensions() && z.EncExt(yy2390) { } else { z.EncFallback(yy2390) } } } if yyr2380 || yy2arr2380 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2393 := z.EncBinary() _ = yym2393 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 { yym2394 := z.EncBinary() _ = yym2394 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2380 || yy2arr2380 { 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 yym2395 := z.DecBinary() _ = yym2395 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2396 := r.ContainerType() if yyct2396 == codecSelferValueTypeMap1234 { yyl2396 := r.ReadMapStart() if yyl2396 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2396, d) } } else if yyct2396 == codecSelferValueTypeArray1234 { yyl2396 := r.ReadArrayStart() if yyl2396 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2396, 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 yys2397Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2397Slc var yyhl2397 bool = l >= 0 for yyj2397 := 0; ; yyj2397++ { if yyhl2397 { if yyj2397 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2397Slc = r.DecodeBytes(yys2397Slc, true, true) yys2397 := string(yys2397Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2397 { 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 { yyv2400 := &x.ListMeta yym2401 := z.DecBinary() _ = yym2401 if false { } else if z.HasExtensions() && z.DecExt(yyv2400) { } else { z.DecFallback(yyv2400, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2402 := &x.Items yym2403 := z.DecBinary() _ = yym2403 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2402), d) } } default: z.DecStructFieldNotFound(-1, yys2397) } // end switch yys2397 } // end for yyj2397 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 yyj2404 int var yyb2404 bool var yyhl2404 bool = l >= 0 yyj2404++ if yyhl2404 { yyb2404 = yyj2404 > l } else { yyb2404 = r.CheckBreak() } if yyb2404 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2404++ if yyhl2404 { yyb2404 = yyj2404 > l } else { yyb2404 = r.CheckBreak() } if yyb2404 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2404++ if yyhl2404 { yyb2404 = yyj2404 > l } else { yyb2404 = r.CheckBreak() } if yyb2404 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2407 := &x.ListMeta yym2408 := z.DecBinary() _ = yym2408 if false { } else if z.HasExtensions() && z.DecExt(yyv2407) { } else { z.DecFallback(yyv2407, false) } } yyj2404++ if yyhl2404 { yyb2404 = yyj2404 > l } else { yyb2404 = r.CheckBreak() } if yyb2404 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2409 := &x.Items yym2410 := z.DecBinary() _ = yym2410 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2409), d) } } for { yyj2404++ if yyhl2404 { yyb2404 = yyj2404 > l } else { yyb2404 = r.CheckBreak() } if yyb2404 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2404-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 { yym2411 := z.EncBinary() _ = yym2411 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2412 := !z.EncBinary() yy2arr2412 := z.EncBasicHandle().StructToArray var yyq2412 [4]bool _, _, _ = yysep2412, yyq2412, yy2arr2412 const yyr2412 bool = false yyq2412[0] = x.PodCIDR != "" yyq2412[1] = x.ExternalID != "" yyq2412[2] = x.ProviderID != "" yyq2412[3] = x.Unschedulable != false var yynn2412 int if yyr2412 || yy2arr2412 { r.EncodeArrayStart(4) } else { yynn2412 = 0 for _, b := range yyq2412 { if b { yynn2412++ } } r.EncodeMapStart(yynn2412) yynn2412 = 0 } if yyr2412 || yy2arr2412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2412[0] { yym2414 := z.EncBinary() _ = yym2414 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2412[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2415 := z.EncBinary() _ = yym2415 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2412 || yy2arr2412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2412[1] { yym2417 := z.EncBinary() _ = yym2417 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2412[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2418 := z.EncBinary() _ = yym2418 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2412 || yy2arr2412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2412[2] { yym2420 := z.EncBinary() _ = yym2420 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2412[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2421 := z.EncBinary() _ = yym2421 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2412 || yy2arr2412 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2412[3] { yym2423 := z.EncBinary() _ = yym2423 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2412[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2424 := z.EncBinary() _ = yym2424 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2412 || yy2arr2412 { 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 yym2425 := z.DecBinary() _ = yym2425 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2426 := r.ContainerType() if yyct2426 == codecSelferValueTypeMap1234 { yyl2426 := r.ReadMapStart() if yyl2426 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2426, d) } } else if yyct2426 == codecSelferValueTypeArray1234 { yyl2426 := r.ReadArrayStart() if yyl2426 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2426, 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 yys2427Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2427Slc var yyhl2427 bool = l >= 0 for yyj2427 := 0; ; yyj2427++ { if yyhl2427 { if yyj2427 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2427Slc = r.DecodeBytes(yys2427Slc, true, true) yys2427 := string(yys2427Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2427 { 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, yys2427) } // end switch yys2427 } // end for yyj2427 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 yyj2432 int var yyb2432 bool var yyhl2432 bool = l >= 0 yyj2432++ if yyhl2432 { yyb2432 = yyj2432 > l } else { yyb2432 = r.CheckBreak() } if yyb2432 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2432++ if yyhl2432 { yyb2432 = yyj2432 > l } else { yyb2432 = r.CheckBreak() } if yyb2432 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2432++ if yyhl2432 { yyb2432 = yyj2432 > l } else { yyb2432 = r.CheckBreak() } if yyb2432 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2432++ if yyhl2432 { yyb2432 = yyj2432 > l } else { yyb2432 = r.CheckBreak() } if yyb2432 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2432++ if yyhl2432 { yyb2432 = yyj2432 > l } else { yyb2432 = r.CheckBreak() } if yyb2432 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2432-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 { yym2437 := z.EncBinary() _ = yym2437 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2438 := !z.EncBinary() yy2arr2438 := z.EncBasicHandle().StructToArray var yyq2438 [1]bool _, _, _ = yysep2438, yyq2438, yy2arr2438 const yyr2438 bool = false var yynn2438 int if yyr2438 || yy2arr2438 { r.EncodeArrayStart(1) } else { yynn2438 = 1 for _, b := range yyq2438 { if b { yynn2438++ } } r.EncodeMapStart(yynn2438) yynn2438 = 0 } if yyr2438 || yy2arr2438 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2440 := z.EncBinary() _ = yym2440 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2441 := z.EncBinary() _ = yym2441 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2438 || yy2arr2438 { 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 yym2442 := z.DecBinary() _ = yym2442 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2443 := r.ContainerType() if yyct2443 == codecSelferValueTypeMap1234 { yyl2443 := r.ReadMapStart() if yyl2443 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2443, d) } } else if yyct2443 == codecSelferValueTypeArray1234 { yyl2443 := r.ReadArrayStart() if yyl2443 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2443, 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 yys2444Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2444Slc var yyhl2444 bool = l >= 0 for yyj2444 := 0; ; yyj2444++ { if yyhl2444 { if yyj2444 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2444Slc = r.DecodeBytes(yys2444Slc, true, true) yys2444 := string(yys2444Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2444 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2444) } // end switch yys2444 } // end for yyj2444 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 yyj2446 int var yyb2446 bool var yyhl2446 bool = l >= 0 yyj2446++ if yyhl2446 { yyb2446 = yyj2446 > l } else { yyb2446 = r.CheckBreak() } if yyb2446 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2446++ if yyhl2446 { yyb2446 = yyj2446 > l } else { yyb2446 = r.CheckBreak() } if yyb2446 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2446-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 { yym2448 := z.EncBinary() _ = yym2448 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2449 := !z.EncBinary() yy2arr2449 := z.EncBasicHandle().StructToArray var yyq2449 [1]bool _, _, _ = yysep2449, yyq2449, yy2arr2449 const yyr2449 bool = false yyq2449[0] = true var yynn2449 int if yyr2449 || yy2arr2449 { r.EncodeArrayStart(1) } else { yynn2449 = 0 for _, b := range yyq2449 { if b { yynn2449++ } } r.EncodeMapStart(yynn2449) yynn2449 = 0 } if yyr2449 || yy2arr2449 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2449[0] { yy2451 := &x.KubeletEndpoint yy2451.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2449[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2452 := &x.KubeletEndpoint yy2452.CodecEncodeSelf(e) } } if yyr2449 || yy2arr2449 { 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 yym2453 := z.DecBinary() _ = yym2453 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2454 := r.ContainerType() if yyct2454 == codecSelferValueTypeMap1234 { yyl2454 := r.ReadMapStart() if yyl2454 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2454, d) } } else if yyct2454 == codecSelferValueTypeArray1234 { yyl2454 := r.ReadArrayStart() if yyl2454 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2454, 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 yys2455Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2455Slc var yyhl2455 bool = l >= 0 for yyj2455 := 0; ; yyj2455++ { if yyhl2455 { if yyj2455 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2455Slc = r.DecodeBytes(yys2455Slc, true, true) yys2455 := string(yys2455Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2455 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2456 := &x.KubeletEndpoint yyv2456.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2455) } // end switch yys2455 } // end for yyj2455 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 yyj2457 int var yyb2457 bool var yyhl2457 bool = l >= 0 yyj2457++ if yyhl2457 { yyb2457 = yyj2457 > l } else { yyb2457 = r.CheckBreak() } if yyb2457 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2458 := &x.KubeletEndpoint yyv2458.CodecDecodeSelf(d) } for { yyj2457++ if yyhl2457 { yyb2457 = yyj2457 > l } else { yyb2457 = r.CheckBreak() } if yyb2457 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2457-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 { yym2459 := z.EncBinary() _ = yym2459 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2460 := !z.EncBinary() yy2arr2460 := z.EncBasicHandle().StructToArray var yyq2460 [8]bool _, _, _ = yysep2460, yyq2460, yy2arr2460 const yyr2460 bool = false var yynn2460 int if yyr2460 || yy2arr2460 { r.EncodeArrayStart(8) } else { yynn2460 = 8 for _, b := range yyq2460 { if b { yynn2460++ } } r.EncodeMapStart(yynn2460) yynn2460 = 0 } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2462 := z.EncBinary() _ = yym2462 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) yym2463 := z.EncBinary() _ = yym2463 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2465 := z.EncBinary() _ = yym2465 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) yym2466 := z.EncBinary() _ = yym2466 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2468 := z.EncBinary() _ = yym2468 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) yym2469 := z.EncBinary() _ = yym2469 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2471 := z.EncBinary() _ = yym2471 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) yym2472 := z.EncBinary() _ = yym2472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2474 := z.EncBinary() _ = yym2474 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) yym2475 := z.EncBinary() _ = yym2475 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2477 := z.EncBinary() _ = yym2477 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) yym2478 := z.EncBinary() _ = yym2478 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2480 := z.EncBinary() _ = yym2480 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) yym2481 := z.EncBinary() _ = yym2481 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2460 || yy2arr2460 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2483 := z.EncBinary() _ = yym2483 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) yym2484 := z.EncBinary() _ = yym2484 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2460 || yy2arr2460 { 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 yym2485 := z.DecBinary() _ = yym2485 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2486 := r.ContainerType() if yyct2486 == codecSelferValueTypeMap1234 { yyl2486 := r.ReadMapStart() if yyl2486 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2486, d) } } else if yyct2486 == codecSelferValueTypeArray1234 { yyl2486 := r.ReadArrayStart() if yyl2486 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2486, 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 yys2487Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2487Slc var yyhl2487 bool = l >= 0 for yyj2487 := 0; ; yyj2487++ { if yyhl2487 { if yyj2487 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2487Slc = r.DecodeBytes(yys2487Slc, true, true) yys2487 := string(yys2487Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2487 { 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, yys2487) } // end switch yys2487 } // end for yyj2487 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 yyj2496 int var yyb2496 bool var yyhl2496 bool = l >= 0 yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OSImage = "" } else { x.OSImage = string(r.DecodeString()) } yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } for { yyj2496++ if yyhl2496 { yyb2496 = yyj2496 > l } else { yyb2496 = r.CheckBreak() } if yyb2496 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2496-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 { yym2505 := z.EncBinary() _ = yym2505 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2506 := !z.EncBinary() yy2arr2506 := z.EncBasicHandle().StructToArray var yyq2506 [8]bool _, _, _ = yysep2506, yyq2506, yy2arr2506 const yyr2506 bool = false yyq2506[0] = len(x.Capacity) != 0 yyq2506[1] = len(x.Allocatable) != 0 yyq2506[2] = x.Phase != "" yyq2506[3] = len(x.Conditions) != 0 yyq2506[4] = len(x.Addresses) != 0 yyq2506[5] = true yyq2506[6] = true var yynn2506 int if yyr2506 || yy2arr2506 { r.EncodeArrayStart(8) } else { yynn2506 = 1 for _, b := range yyq2506 { if b { yynn2506++ } } r.EncodeMapStart(yynn2506) yynn2506 = 0 } if yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2506[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2506[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 yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2506[1] { if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2506[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } } if yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2506[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2506[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2506[3] { if x.Conditions == nil { r.EncodeNil() } else { yym2511 := z.EncBinary() _ = yym2511 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2506[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2512 := z.EncBinary() _ = yym2512 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2506[4] { if x.Addresses == nil { r.EncodeNil() } else { yym2514 := z.EncBinary() _ = yym2514 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq2506[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2515 := z.EncBinary() _ = yym2515 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2506[5] { yy2517 := &x.DaemonEndpoints yy2517.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2506[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2518 := &x.DaemonEndpoints yy2518.CodecEncodeSelf(e) } } if yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2506[6] { yy2520 := &x.NodeInfo yy2520.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2506[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2521 := &x.NodeInfo yy2521.CodecEncodeSelf(e) } } if yyr2506 || yy2arr2506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Images == nil { r.EncodeNil() } else { yym2523 := z.EncBinary() _ = yym2523 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { yym2524 := z.EncBinary() _ = yym2524 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } if yyr2506 || yy2arr2506 { 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 yym2525 := z.DecBinary() _ = yym2525 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2526 := r.ContainerType() if yyct2526 == codecSelferValueTypeMap1234 { yyl2526 := r.ReadMapStart() if yyl2526 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2526, d) } } else if yyct2526 == codecSelferValueTypeArray1234 { yyl2526 := r.ReadArrayStart() if yyl2526 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2526, 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 yys2527Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2527Slc var yyhl2527 bool = l >= 0 for yyj2527 := 0; ; yyj2527++ { if yyhl2527 { if yyj2527 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2527Slc = r.DecodeBytes(yys2527Slc, true, true) yys2527 := string(yys2527Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2527 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2528 := &x.Capacity yyv2528.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2529 := &x.Allocatable yyv2529.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2531 := &x.Conditions yym2532 := z.DecBinary() _ = yym2532 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2531), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2533 := &x.Addresses yym2534 := z.DecBinary() _ = yym2534 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2533), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2535 := &x.DaemonEndpoints yyv2535.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2536 := &x.NodeInfo yyv2536.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { yyv2537 := &x.Images yym2538 := z.DecBinary() _ = yym2538 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2537), d) } } default: z.DecStructFieldNotFound(-1, yys2527) } // end switch yys2527 } // end for yyj2527 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 yyj2539 int var yyb2539 bool var yyhl2539 bool = l >= 0 yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2540 := &x.Capacity yyv2540.CodecDecodeSelf(d) } yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2541 := &x.Allocatable yyv2541.CodecDecodeSelf(d) } yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2543 := &x.Conditions yym2544 := z.DecBinary() _ = yym2544 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2543), d) } } yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2545 := &x.Addresses yym2546 := z.DecBinary() _ = yym2546 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2545), d) } } yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2547 := &x.DaemonEndpoints yyv2547.CodecDecodeSelf(d) } yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2548 := &x.NodeInfo yyv2548.CodecDecodeSelf(d) } yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Images = nil } else { yyv2549 := &x.Images yym2550 := z.DecBinary() _ = yym2550 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2549), d) } } for { yyj2539++ if yyhl2539 { yyb2539 = yyj2539 > l } else { yyb2539 = r.CheckBreak() } if yyb2539 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2539-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2551 := z.EncBinary() _ = yym2551 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2552 := !z.EncBinary() yy2arr2552 := z.EncBasicHandle().StructToArray var yyq2552 [2]bool _, _, _ = yysep2552, yyq2552, yy2arr2552 const yyr2552 bool = false yyq2552[1] = x.Size != 0 var yynn2552 int if yyr2552 || yy2arr2552 { r.EncodeArrayStart(2) } else { yynn2552 = 1 for _, b := range yyq2552 { if b { yynn2552++ } } r.EncodeMapStart(yynn2552) yynn2552 = 0 } if yyr2552 || yy2arr2552 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.RepoTags == nil { r.EncodeNil() } else { yym2554 := z.EncBinary() _ = yym2554 if false { } else { z.F.EncSliceStringV(x.RepoTags, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repoTags")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RepoTags == nil { r.EncodeNil() } else { yym2555 := z.EncBinary() _ = yym2555 if false { } else { z.F.EncSliceStringV(x.RepoTags, false, e) } } } if yyr2552 || yy2arr2552 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2552[1] { yym2557 := z.EncBinary() _ = yym2557 if false { } else { r.EncodeInt(int64(x.Size)) } } else { r.EncodeInt(0) } } else { if yyq2552[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("size")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2558 := z.EncBinary() _ = yym2558 if false { } else { r.EncodeInt(int64(x.Size)) } } } if yyr2552 || yy2arr2552 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2559 := z.DecBinary() _ = yym2559 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2560 := r.ContainerType() if yyct2560 == codecSelferValueTypeMap1234 { yyl2560 := r.ReadMapStart() if yyl2560 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2560, d) } } else if yyct2560 == codecSelferValueTypeArray1234 { yyl2560 := r.ReadArrayStart() if yyl2560 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2560, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2561Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2561Slc var yyhl2561 bool = l >= 0 for yyj2561 := 0; ; yyj2561++ { if yyhl2561 { if yyj2561 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2561Slc = r.DecodeBytes(yys2561Slc, true, true) yys2561 := string(yys2561Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2561 { case "repoTags": if r.TryDecodeAsNil() { x.RepoTags = nil } else { yyv2562 := &x.RepoTags yym2563 := z.DecBinary() _ = yym2563 if false { } else { z.F.DecSliceStringX(yyv2562, false, d) } } case "size": if r.TryDecodeAsNil() { x.Size = 0 } else { x.Size = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys2561) } // end switch yys2561 } // end for yyj2561 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2565 int var yyb2565 bool var yyhl2565 bool = l >= 0 yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RepoTags = nil } else { yyv2566 := &x.RepoTags yym2567 := z.DecBinary() _ = yym2567 if false { } else { z.F.DecSliceStringX(yyv2566, false, d) } } yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Size = 0 } else { x.Size = int64(r.DecodeInt(64)) } for { yyj2565++ if yyhl2565 { yyb2565 = yyj2565 > l } else { yyb2565 = r.CheckBreak() } if yyb2565 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2565-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2569 := z.EncBinary() _ = yym2569 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 yym2570 := z.DecBinary() _ = yym2570 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 yym2571 := z.EncBinary() _ = yym2571 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 yym2572 := z.DecBinary() _ = yym2572 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 { yym2573 := z.EncBinary() _ = yym2573 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2574 := !z.EncBinary() yy2arr2574 := z.EncBasicHandle().StructToArray var yyq2574 [6]bool _, _, _ = yysep2574, yyq2574, yy2arr2574 const yyr2574 bool = false yyq2574[2] = true yyq2574[3] = true yyq2574[4] = x.Reason != "" yyq2574[5] = x.Message != "" var yynn2574 int if yyr2574 || yy2arr2574 { r.EncodeArrayStart(6) } else { yynn2574 = 2 for _, b := range yyq2574 { if b { yynn2574++ } } r.EncodeMapStart(yynn2574) yynn2574 = 0 } if yyr2574 || yy2arr2574 { 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 yyr2574 || yy2arr2574 { 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 yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2574[2] { yy2578 := &x.LastHeartbeatTime yym2579 := z.EncBinary() _ = yym2579 if false { } else if z.HasExtensions() && z.EncExt(yy2578) { } else if yym2579 { z.EncBinaryMarshal(yy2578) } else if !yym2579 && z.IsJSONHandle() { z.EncJSONMarshal(yy2578) } else { z.EncFallback(yy2578) } } else { r.EncodeNil() } } else { if yyq2574[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2580 := &x.LastHeartbeatTime yym2581 := z.EncBinary() _ = yym2581 if false { } else if z.HasExtensions() && z.EncExt(yy2580) { } else if yym2581 { z.EncBinaryMarshal(yy2580) } else if !yym2581 && z.IsJSONHandle() { z.EncJSONMarshal(yy2580) } else { z.EncFallback(yy2580) } } } if yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2574[3] { yy2583 := &x.LastTransitionTime yym2584 := z.EncBinary() _ = yym2584 if false { } else if z.HasExtensions() && z.EncExt(yy2583) { } else if yym2584 { z.EncBinaryMarshal(yy2583) } else if !yym2584 && z.IsJSONHandle() { z.EncJSONMarshal(yy2583) } else { z.EncFallback(yy2583) } } else { r.EncodeNil() } } else { if yyq2574[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2585 := &x.LastTransitionTime yym2586 := z.EncBinary() _ = yym2586 if false { } else if z.HasExtensions() && z.EncExt(yy2585) { } else if yym2586 { z.EncBinaryMarshal(yy2585) } else if !yym2586 && z.IsJSONHandle() { z.EncJSONMarshal(yy2585) } else { z.EncFallback(yy2585) } } } if yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2574[4] { yym2588 := z.EncBinary() _ = yym2588 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2574[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2589 := z.EncBinary() _ = yym2589 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2574 || yy2arr2574 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2574[5] { yym2591 := z.EncBinary() _ = yym2591 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2574[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2592 := z.EncBinary() _ = yym2592 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2574 || yy2arr2574 { 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 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 *NodeCondition) 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 "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 { yyv2598 := &x.LastHeartbeatTime yym2599 := z.DecBinary() _ = yym2599 if false { } else if z.HasExtensions() && z.DecExt(yyv2598) { } else if yym2599 { z.DecBinaryUnmarshal(yyv2598) } else if !yym2599 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2598) } else { z.DecFallback(yyv2598, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2600 := &x.LastTransitionTime yym2601 := z.DecBinary() _ = yym2601 if false { } else if z.HasExtensions() && z.DecExt(yyv2600) { } else if yym2601 { z.DecBinaryUnmarshal(yyv2600) } else if !yym2601 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2600) } else { z.DecFallback(yyv2600, 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, yys2595) } // end switch yys2595 } // end for yyj2595 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 yyj2604 int var yyb2604 bool var yyhl2604 bool = l >= 0 yyj2604++ if yyhl2604 { yyb2604 = yyj2604 > l } else { yyb2604 = r.CheckBreak() } if yyb2604 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj2604++ if yyhl2604 { yyb2604 = yyj2604 > l } else { yyb2604 = r.CheckBreak() } if yyb2604 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj2604++ if yyhl2604 { yyb2604 = yyj2604 > l } else { yyb2604 = r.CheckBreak() } if yyb2604 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv2607 := &x.LastHeartbeatTime yym2608 := z.DecBinary() _ = yym2608 if false { } else if z.HasExtensions() && z.DecExt(yyv2607) { } else if yym2608 { z.DecBinaryUnmarshal(yyv2607) } else if !yym2608 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2607) } else { z.DecFallback(yyv2607, false) } } yyj2604++ if yyhl2604 { yyb2604 = yyj2604 > l } else { yyb2604 = r.CheckBreak() } if yyb2604 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2609 := &x.LastTransitionTime yym2610 := z.DecBinary() _ = yym2610 if false { } else if z.HasExtensions() && z.DecExt(yyv2609) { } else if yym2610 { z.DecBinaryUnmarshal(yyv2609) } else if !yym2610 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2609) } else { z.DecFallback(yyv2609, false) } } yyj2604++ if yyhl2604 { yyb2604 = yyj2604 > l } else { yyb2604 = r.CheckBreak() } if yyb2604 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2604++ if yyhl2604 { yyb2604 = yyj2604 > l } else { yyb2604 = r.CheckBreak() } if yyb2604 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj2604++ if yyhl2604 { yyb2604 = yyj2604 > l } else { yyb2604 = r.CheckBreak() } if yyb2604 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2604-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2613 := z.EncBinary() _ = yym2613 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 yym2614 := z.DecBinary() _ = yym2614 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 { yym2615 := z.EncBinary() _ = yym2615 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2616 := !z.EncBinary() yy2arr2616 := z.EncBasicHandle().StructToArray var yyq2616 [2]bool _, _, _ = yysep2616, yyq2616, yy2arr2616 const yyr2616 bool = false var yynn2616 int if yyr2616 || yy2arr2616 { r.EncodeArrayStart(2) } else { yynn2616 = 2 for _, b := range yyq2616 { if b { yynn2616++ } } r.EncodeMapStart(yynn2616) yynn2616 = 0 } if yyr2616 || yy2arr2616 { 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 yyr2616 || yy2arr2616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2619 := z.EncBinary() _ = yym2619 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) yym2620 := z.EncBinary() _ = yym2620 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr2616 || yy2arr2616 { 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 yym2621 := z.DecBinary() _ = yym2621 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2622 := r.ContainerType() if yyct2622 == codecSelferValueTypeMap1234 { yyl2622 := r.ReadMapStart() if yyl2622 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2622, d) } } else if yyct2622 == codecSelferValueTypeArray1234 { yyl2622 := r.ReadArrayStart() if yyl2622 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2622, 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 yys2623Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2623Slc var yyhl2623 bool = l >= 0 for yyj2623 := 0; ; yyj2623++ { if yyhl2623 { if yyj2623 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2623Slc = r.DecodeBytes(yys2623Slc, true, true) yys2623 := string(yys2623Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2623 { 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, yys2623) } // end switch yys2623 } // end for yyj2623 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 yyj2626 int var yyb2626 bool var yyhl2626 bool = l >= 0 yyj2626++ if yyhl2626 { yyb2626 = yyj2626 > l } else { yyb2626 = r.CheckBreak() } if yyb2626 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj2626++ if yyhl2626 { yyb2626 = yyj2626 > l } else { yyb2626 = r.CheckBreak() } if yyb2626 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj2626++ if yyhl2626 { yyb2626 = yyj2626 > l } else { yyb2626 = r.CheckBreak() } if yyb2626 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2626-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 { yym2629 := z.EncBinary() _ = yym2629 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2630 := !z.EncBinary() yy2arr2630 := z.EncBasicHandle().StructToArray var yyq2630 [1]bool _, _, _ = yysep2630, yyq2630, yy2arr2630 const yyr2630 bool = false yyq2630[0] = len(x.Capacity) != 0 var yynn2630 int if yyr2630 || yy2arr2630 { r.EncodeArrayStart(1) } else { yynn2630 = 0 for _, b := range yyq2630 { if b { yynn2630++ } } r.EncodeMapStart(yynn2630) yynn2630 = 0 } if yyr2630 || yy2arr2630 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2630[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2630[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 yyr2630 || yy2arr2630 { 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 yym2632 := z.DecBinary() _ = yym2632 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2633 := r.ContainerType() if yyct2633 == codecSelferValueTypeMap1234 { yyl2633 := r.ReadMapStart() if yyl2633 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2633, d) } } else if yyct2633 == codecSelferValueTypeArray1234 { yyl2633 := r.ReadArrayStart() if yyl2633 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2633, 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 yys2634Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2634Slc var yyhl2634 bool = l >= 0 for yyj2634 := 0; ; yyj2634++ { if yyhl2634 { if yyj2634 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2634Slc = r.DecodeBytes(yys2634Slc, true, true) yys2634 := string(yys2634Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2634 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2635 := &x.Capacity yyv2635.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2634) } // end switch yys2634 } // end for yyj2634 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 yyj2636 int var yyb2636 bool var yyhl2636 bool = l >= 0 yyj2636++ if yyhl2636 { yyb2636 = yyj2636 > l } else { yyb2636 = r.CheckBreak() } if yyb2636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2637 := &x.Capacity yyv2637.CodecDecodeSelf(d) } for { yyj2636++ if yyhl2636 { yyb2636 = yyj2636 > l } else { yyb2636 = r.CheckBreak() } if yyb2636 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2636-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2638 := z.EncBinary() _ = yym2638 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 yym2639 := z.DecBinary() _ = yym2639 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 { yym2640 := z.EncBinary() _ = yym2640 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 yym2641 := z.DecBinary() _ = yym2641 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 { yym2642 := z.EncBinary() _ = yym2642 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2643 := !z.EncBinary() yy2arr2643 := z.EncBasicHandle().StructToArray var yyq2643 [5]bool _, _, _ = yysep2643, yyq2643, yy2arr2643 const yyr2643 bool = false yyq2643[0] = x.Kind != "" yyq2643[1] = x.APIVersion != "" yyq2643[2] = true yyq2643[3] = true yyq2643[4] = true var yynn2643 int if yyr2643 || yy2arr2643 { r.EncodeArrayStart(5) } else { yynn2643 = 0 for _, b := range yyq2643 { if b { yynn2643++ } } r.EncodeMapStart(yynn2643) yynn2643 = 0 } if yyr2643 || yy2arr2643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2643[0] { yym2645 := z.EncBinary() _ = yym2645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2643[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2646 := z.EncBinary() _ = yym2646 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2643 || yy2arr2643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2643[1] { yym2648 := z.EncBinary() _ = yym2648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2643[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2649 := z.EncBinary() _ = yym2649 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2643 || yy2arr2643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2643[2] { yy2651 := &x.ObjectMeta yy2651.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2643[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2652 := &x.ObjectMeta yy2652.CodecEncodeSelf(e) } } if yyr2643 || yy2arr2643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2643[3] { yy2654 := &x.Spec yy2654.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2643[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2655 := &x.Spec yy2655.CodecEncodeSelf(e) } } if yyr2643 || yy2arr2643 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2643[4] { yy2657 := &x.Status yy2657.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2643[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2658 := &x.Status yy2658.CodecEncodeSelf(e) } } if yyr2643 || yy2arr2643 { 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 yym2659 := z.DecBinary() _ = yym2659 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2660 := r.ContainerType() if yyct2660 == codecSelferValueTypeMap1234 { yyl2660 := r.ReadMapStart() if yyl2660 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2660, d) } } else if yyct2660 == codecSelferValueTypeArray1234 { yyl2660 := r.ReadArrayStart() if yyl2660 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2660, 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 yys2661Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2661Slc var yyhl2661 bool = l >= 0 for yyj2661 := 0; ; yyj2661++ { if yyhl2661 { if yyj2661 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2661Slc = r.DecodeBytes(yys2661Slc, true, true) yys2661 := string(yys2661Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2661 { 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 { yyv2664 := &x.ObjectMeta yyv2664.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2665 := &x.Spec yyv2665.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2666 := &x.Status yyv2666.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2661) } // end switch yys2661 } // end for yyj2661 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 yyj2667 int var yyb2667 bool var yyhl2667 bool = l >= 0 yyj2667++ if yyhl2667 { yyb2667 = yyj2667 > l } else { yyb2667 = r.CheckBreak() } if yyb2667 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2667++ if yyhl2667 { yyb2667 = yyj2667 > l } else { yyb2667 = r.CheckBreak() } if yyb2667 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2667++ if yyhl2667 { yyb2667 = yyj2667 > l } else { yyb2667 = r.CheckBreak() } if yyb2667 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2670 := &x.ObjectMeta yyv2670.CodecDecodeSelf(d) } yyj2667++ if yyhl2667 { yyb2667 = yyj2667 > l } else { yyb2667 = r.CheckBreak() } if yyb2667 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2671 := &x.Spec yyv2671.CodecDecodeSelf(d) } yyj2667++ if yyhl2667 { yyb2667 = yyj2667 > l } else { yyb2667 = r.CheckBreak() } if yyb2667 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2672 := &x.Status yyv2672.CodecDecodeSelf(d) } for { yyj2667++ if yyhl2667 { yyb2667 = yyj2667 > l } else { yyb2667 = r.CheckBreak() } if yyb2667 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2667-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 { yym2673 := z.EncBinary() _ = yym2673 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2674 := !z.EncBinary() yy2arr2674 := z.EncBasicHandle().StructToArray var yyq2674 [4]bool _, _, _ = yysep2674, yyq2674, yy2arr2674 const yyr2674 bool = false yyq2674[0] = x.Kind != "" yyq2674[1] = x.APIVersion != "" yyq2674[2] = true var yynn2674 int if yyr2674 || yy2arr2674 { r.EncodeArrayStart(4) } else { yynn2674 = 1 for _, b := range yyq2674 { if b { yynn2674++ } } r.EncodeMapStart(yynn2674) yynn2674 = 0 } if yyr2674 || yy2arr2674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2674[0] { yym2676 := z.EncBinary() _ = yym2676 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2674[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2677 := z.EncBinary() _ = yym2677 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2674 || yy2arr2674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2674[1] { yym2679 := z.EncBinary() _ = yym2679 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2674[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2680 := z.EncBinary() _ = yym2680 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2674 || yy2arr2674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2674[2] { yy2682 := &x.ListMeta yym2683 := z.EncBinary() _ = yym2683 if false { } else if z.HasExtensions() && z.EncExt(yy2682) { } else { z.EncFallback(yy2682) } } else { r.EncodeNil() } } else { if yyq2674[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2684 := &x.ListMeta yym2685 := z.EncBinary() _ = yym2685 if false { } else if z.HasExtensions() && z.EncExt(yy2684) { } else { z.EncFallback(yy2684) } } } if yyr2674 || yy2arr2674 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2687 := z.EncBinary() _ = yym2687 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 { yym2688 := z.EncBinary() _ = yym2688 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr2674 || yy2arr2674 { 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 yym2689 := z.DecBinary() _ = yym2689 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2690 := r.ContainerType() if yyct2690 == codecSelferValueTypeMap1234 { yyl2690 := r.ReadMapStart() if yyl2690 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2690, d) } } else if yyct2690 == codecSelferValueTypeArray1234 { yyl2690 := r.ReadArrayStart() if yyl2690 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2690, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2691Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2691Slc var yyhl2691 bool = l >= 0 for yyj2691 := 0; ; yyj2691++ { if yyhl2691 { if yyj2691 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2691Slc = r.DecodeBytes(yys2691Slc, true, true) yys2691 := string(yys2691Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2691 { case "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 { yyv2694 := &x.ListMeta yym2695 := z.DecBinary() _ = yym2695 if false { } else if z.HasExtensions() && z.DecExt(yyv2694) { } else { z.DecFallback(yyv2694, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2696 := &x.Items yym2697 := z.DecBinary() _ = yym2697 if false { } else { h.decSliceNode((*[]Node)(yyv2696), d) } } default: z.DecStructFieldNotFound(-1, yys2691) } // end switch yys2691 } // end for yyj2691 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 yyj2698 int var yyb2698 bool var yyhl2698 bool = l >= 0 yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2701 := &x.ListMeta yym2702 := z.DecBinary() _ = yym2702 if false { } else if z.HasExtensions() && z.DecExt(yyv2701) { } else { z.DecFallback(yyv2701, false) } } yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2703 := &x.Items yym2704 := z.DecBinary() _ = yym2704 if false { } else { h.decSliceNode((*[]Node)(yyv2703), d) } } for { yyj2698++ if yyhl2698 { yyb2698 = yyj2698 > l } else { yyb2698 = r.CheckBreak() } if yyb2698 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2698-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2705 := z.EncBinary() _ = yym2705 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2706 := !z.EncBinary() yy2arr2706 := z.EncBasicHandle().StructToArray var yyq2706 [1]bool _, _, _ = yysep2706, yyq2706, yy2arr2706 const yyr2706 bool = false var yynn2706 int if yyr2706 || yy2arr2706 { r.EncodeArrayStart(1) } else { yynn2706 = 1 for _, b := range yyq2706 { if b { yynn2706++ } } r.EncodeMapStart(yynn2706) yynn2706 = 0 } if yyr2706 || yy2arr2706 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym2708 := z.EncBinary() _ = yym2708 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 { yym2709 := z.EncBinary() _ = yym2709 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr2706 || yy2arr2706 { 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 yym2710 := z.DecBinary() _ = yym2710 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2711 := r.ContainerType() if yyct2711 == codecSelferValueTypeMap1234 { yyl2711 := r.ReadMapStart() if yyl2711 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2711, d) } } else if yyct2711 == codecSelferValueTypeArray1234 { yyl2711 := r.ReadArrayStart() if yyl2711 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2711, 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 yys2712Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2712Slc var yyhl2712 bool = l >= 0 for yyj2712 := 0; ; yyj2712++ { if yyhl2712 { if yyj2712 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2712Slc = r.DecodeBytes(yys2712Slc, true, true) yys2712 := string(yys2712Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2712 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2713 := &x.Finalizers yym2714 := z.DecBinary() _ = yym2714 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2713), d) } } default: z.DecStructFieldNotFound(-1, yys2712) } // end switch yys2712 } // end for yyj2712 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 yyj2715 int var yyb2715 bool var yyhl2715 bool = l >= 0 yyj2715++ if yyhl2715 { yyb2715 = yyj2715 > l } else { yyb2715 = r.CheckBreak() } if yyb2715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2716 := &x.Finalizers yym2717 := z.DecBinary() _ = yym2717 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2716), d) } } for { yyj2715++ if yyhl2715 { yyb2715 = yyj2715 > l } else { yyb2715 = r.CheckBreak() } if yyb2715 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2715-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2718 := z.EncBinary() _ = yym2718 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 yym2719 := z.DecBinary() _ = yym2719 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 { yym2720 := z.EncBinary() _ = yym2720 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2721 := !z.EncBinary() yy2arr2721 := z.EncBasicHandle().StructToArray var yyq2721 [1]bool _, _, _ = yysep2721, yyq2721, yy2arr2721 const yyr2721 bool = false yyq2721[0] = x.Phase != "" var yynn2721 int if yyr2721 || yy2arr2721 { r.EncodeArrayStart(1) } else { yynn2721 = 0 for _, b := range yyq2721 { if b { yynn2721++ } } r.EncodeMapStart(yynn2721) yynn2721 = 0 } if yyr2721 || yy2arr2721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2721[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2721[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2721 || yy2arr2721 { 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 yym2723 := z.DecBinary() _ = yym2723 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2724 := r.ContainerType() if yyct2724 == codecSelferValueTypeMap1234 { yyl2724 := r.ReadMapStart() if yyl2724 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2724, d) } } else if yyct2724 == codecSelferValueTypeArray1234 { yyl2724 := r.ReadArrayStart() if yyl2724 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2724, 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 yys2725Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2725Slc var yyhl2725 bool = l >= 0 for yyj2725 := 0; ; yyj2725++ { if yyhl2725 { if yyj2725 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2725Slc = r.DecodeBytes(yys2725Slc, true, true) yys2725 := string(yys2725Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2725 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2725) } // end switch yys2725 } // end for yyj2725 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 yyj2727 int var yyb2727 bool var yyhl2727 bool = l >= 0 yyj2727++ if yyhl2727 { yyb2727 = yyj2727 > l } else { yyb2727 = r.CheckBreak() } if yyb2727 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj2727++ if yyhl2727 { yyb2727 = yyj2727 > l } else { yyb2727 = r.CheckBreak() } if yyb2727 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2727-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2729 := z.EncBinary() _ = yym2729 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 yym2730 := z.DecBinary() _ = yym2730 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 { yym2731 := z.EncBinary() _ = yym2731 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2732 := !z.EncBinary() yy2arr2732 := z.EncBasicHandle().StructToArray var yyq2732 [5]bool _, _, _ = yysep2732, yyq2732, yy2arr2732 const yyr2732 bool = false yyq2732[0] = x.Kind != "" yyq2732[1] = x.APIVersion != "" yyq2732[2] = true yyq2732[3] = true yyq2732[4] = true var yynn2732 int if yyr2732 || yy2arr2732 { r.EncodeArrayStart(5) } else { yynn2732 = 0 for _, b := range yyq2732 { if b { yynn2732++ } } r.EncodeMapStart(yynn2732) yynn2732 = 0 } if yyr2732 || yy2arr2732 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2732[0] { yym2734 := z.EncBinary() _ = yym2734 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2732[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2735 := z.EncBinary() _ = yym2735 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2732 || yy2arr2732 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2732[1] { yym2737 := z.EncBinary() _ = yym2737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2732[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2738 := z.EncBinary() _ = yym2738 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2732 || yy2arr2732 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2732[2] { yy2740 := &x.ObjectMeta yy2740.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2732[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2741 := &x.ObjectMeta yy2741.CodecEncodeSelf(e) } } if yyr2732 || yy2arr2732 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2732[3] { yy2743 := &x.Spec yy2743.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2732[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2744 := &x.Spec yy2744.CodecEncodeSelf(e) } } if yyr2732 || yy2arr2732 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2732[4] { yy2746 := &x.Status yy2746.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2732[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2747 := &x.Status yy2747.CodecEncodeSelf(e) } } if yyr2732 || yy2arr2732 { 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 yym2748 := z.DecBinary() _ = yym2748 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2749 := r.ContainerType() if yyct2749 == codecSelferValueTypeMap1234 { yyl2749 := r.ReadMapStart() if yyl2749 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2749, d) } } else if yyct2749 == codecSelferValueTypeArray1234 { yyl2749 := r.ReadArrayStart() if yyl2749 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2749, 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 yys2750Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2750Slc var yyhl2750 bool = l >= 0 for yyj2750 := 0; ; yyj2750++ { if yyhl2750 { if yyj2750 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2750Slc = r.DecodeBytes(yys2750Slc, true, true) yys2750 := string(yys2750Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2750 { 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 { yyv2753 := &x.ObjectMeta yyv2753.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2754 := &x.Spec yyv2754.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2755 := &x.Status yyv2755.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2750) } // end switch yys2750 } // end for yyj2750 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 yyj2756 int var yyb2756 bool var yyhl2756 bool = l >= 0 yyj2756++ if yyhl2756 { yyb2756 = yyj2756 > l } else { yyb2756 = r.CheckBreak() } if yyb2756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2756++ if yyhl2756 { yyb2756 = yyj2756 > l } else { yyb2756 = r.CheckBreak() } if yyb2756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2756++ if yyhl2756 { yyb2756 = yyj2756 > l } else { yyb2756 = r.CheckBreak() } if yyb2756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2759 := &x.ObjectMeta yyv2759.CodecDecodeSelf(d) } yyj2756++ if yyhl2756 { yyb2756 = yyj2756 > l } else { yyb2756 = r.CheckBreak() } if yyb2756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2760 := &x.Spec yyv2760.CodecDecodeSelf(d) } yyj2756++ if yyhl2756 { yyb2756 = yyj2756 > l } else { yyb2756 = r.CheckBreak() } if yyb2756 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2761 := &x.Status yyv2761.CodecDecodeSelf(d) } for { yyj2756++ if yyhl2756 { yyb2756 = yyj2756 > l } else { yyb2756 = r.CheckBreak() } if yyb2756 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2756-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 { yym2762 := z.EncBinary() _ = yym2762 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2763 := !z.EncBinary() yy2arr2763 := z.EncBasicHandle().StructToArray var yyq2763 [4]bool _, _, _ = yysep2763, yyq2763, yy2arr2763 const yyr2763 bool = false yyq2763[0] = x.Kind != "" yyq2763[1] = x.APIVersion != "" yyq2763[2] = true var yynn2763 int if yyr2763 || yy2arr2763 { r.EncodeArrayStart(4) } else { yynn2763 = 1 for _, b := range yyq2763 { if b { yynn2763++ } } r.EncodeMapStart(yynn2763) yynn2763 = 0 } if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2763[0] { yym2765 := z.EncBinary() _ = yym2765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2763[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2766 := z.EncBinary() _ = yym2766 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2763[1] { yym2768 := z.EncBinary() _ = yym2768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2763[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2769 := z.EncBinary() _ = yym2769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2763[2] { yy2771 := &x.ListMeta yym2772 := z.EncBinary() _ = yym2772 if false { } else if z.HasExtensions() && z.EncExt(yy2771) { } else { z.EncFallback(yy2771) } } else { r.EncodeNil() } } else { if yyq2763[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2773 := &x.ListMeta yym2774 := z.EncBinary() _ = yym2774 if false { } else if z.HasExtensions() && z.EncExt(yy2773) { } else { z.EncFallback(yy2773) } } } if yyr2763 || yy2arr2763 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2776 := z.EncBinary() _ = yym2776 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 { yym2777 := z.EncBinary() _ = yym2777 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr2763 || yy2arr2763 { 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 yym2778 := z.DecBinary() _ = yym2778 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2779 := r.ContainerType() if yyct2779 == codecSelferValueTypeMap1234 { yyl2779 := r.ReadMapStart() if yyl2779 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2779, d) } } else if yyct2779 == codecSelferValueTypeArray1234 { yyl2779 := r.ReadArrayStart() if yyl2779 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2779, 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 yys2780Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2780Slc var yyhl2780 bool = l >= 0 for yyj2780 := 0; ; yyj2780++ { if yyhl2780 { if yyj2780 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2780Slc = r.DecodeBytes(yys2780Slc, true, true) yys2780 := string(yys2780Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2780 { 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 { yyv2783 := &x.ListMeta yym2784 := z.DecBinary() _ = yym2784 if false { } else if z.HasExtensions() && z.DecExt(yyv2783) { } else { z.DecFallback(yyv2783, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2785 := &x.Items yym2786 := z.DecBinary() _ = yym2786 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2785), d) } } default: z.DecStructFieldNotFound(-1, yys2780) } // end switch yys2780 } // end for yyj2780 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 yyj2787 int var yyb2787 bool var yyhl2787 bool = l >= 0 yyj2787++ if yyhl2787 { yyb2787 = yyj2787 > l } else { yyb2787 = r.CheckBreak() } if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2787++ if yyhl2787 { yyb2787 = yyj2787 > l } else { yyb2787 = r.CheckBreak() } if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2787++ if yyhl2787 { yyb2787 = yyj2787 > l } else { yyb2787 = r.CheckBreak() } if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2790 := &x.ListMeta yym2791 := z.DecBinary() _ = yym2791 if false { } else if z.HasExtensions() && z.DecExt(yyv2790) { } else { z.DecFallback(yyv2790, false) } } yyj2787++ if yyhl2787 { yyb2787 = yyj2787 > l } else { yyb2787 = r.CheckBreak() } if yyb2787 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2792 := &x.Items yym2793 := z.DecBinary() _ = yym2793 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2792), d) } } for { yyj2787++ if yyhl2787 { yyb2787 = yyj2787 > l } else { yyb2787 = r.CheckBreak() } if yyb2787 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2787-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 { yym2794 := z.EncBinary() _ = yym2794 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2795 := !z.EncBinary() yy2arr2795 := z.EncBasicHandle().StructToArray var yyq2795 [4]bool _, _, _ = yysep2795, yyq2795, yy2arr2795 const yyr2795 bool = false yyq2795[0] = x.Kind != "" yyq2795[1] = x.APIVersion != "" yyq2795[2] = true var yynn2795 int if yyr2795 || yy2arr2795 { r.EncodeArrayStart(4) } else { yynn2795 = 1 for _, b := range yyq2795 { if b { yynn2795++ } } r.EncodeMapStart(yynn2795) yynn2795 = 0 } if yyr2795 || yy2arr2795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2795[0] { yym2797 := z.EncBinary() _ = yym2797 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2795[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2798 := z.EncBinary() _ = yym2798 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2795 || yy2arr2795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2795[1] { yym2800 := z.EncBinary() _ = yym2800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2795[1] { 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 yyr2795 || yy2arr2795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2795[2] { yy2803 := &x.ObjectMeta yy2803.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2795[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2804 := &x.ObjectMeta yy2804.CodecEncodeSelf(e) } } if yyr2795 || yy2arr2795 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2806 := &x.Target yy2806.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2807 := &x.Target yy2807.CodecEncodeSelf(e) } if yyr2795 || yy2arr2795 { 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 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 *Binding) 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 "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2813 := &x.ObjectMeta yyv2813.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2814 := &x.Target yyv2814.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2810) } // end switch yys2810 } // end for yyj2810 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 yyj2815 int var yyb2815 bool var yyhl2815 bool = l >= 0 yyj2815++ if yyhl2815 { yyb2815 = yyj2815 > l } else { yyb2815 = r.CheckBreak() } if yyb2815 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2815++ if yyhl2815 { yyb2815 = yyj2815 > l } else { yyb2815 = r.CheckBreak() } if yyb2815 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2815++ if yyhl2815 { yyb2815 = yyj2815 > l } else { yyb2815 = r.CheckBreak() } if yyb2815 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2818 := &x.ObjectMeta yyv2818.CodecDecodeSelf(d) } yyj2815++ if yyhl2815 { yyb2815 = yyj2815 > l } else { yyb2815 = r.CheckBreak() } if yyb2815 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2819 := &x.Target yyv2819.CodecDecodeSelf(d) } for { yyj2815++ if yyhl2815 { yyb2815 = yyj2815 > l } else { yyb2815 = r.CheckBreak() } if yyb2815 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2815-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 { yym2820 := z.EncBinary() _ = yym2820 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2821 := !z.EncBinary() yy2arr2821 := z.EncBasicHandle().StructToArray var yyq2821 [3]bool _, _, _ = yysep2821, yyq2821, yy2arr2821 const yyr2821 bool = false yyq2821[0] = x.Kind != "" yyq2821[1] = x.APIVersion != "" var yynn2821 int if yyr2821 || yy2arr2821 { r.EncodeArrayStart(3) } else { yynn2821 = 1 for _, b := range yyq2821 { if b { yynn2821++ } } r.EncodeMapStart(yynn2821) yynn2821 = 0 } if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2821[0] { yym2823 := z.EncBinary() _ = yym2823 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2821[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2824 := z.EncBinary() _ = yym2824 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2821[1] { yym2826 := z.EncBinary() _ = yym2826 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2821[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2827 := z.EncBinary() _ = yym2827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2829 := *x.GracePeriodSeconds yym2830 := z.EncBinary() _ = yym2830 if false { } else { r.EncodeInt(int64(yy2829)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2831 := *x.GracePeriodSeconds yym2832 := z.EncBinary() _ = yym2832 if false { } else { r.EncodeInt(int64(yy2831)) } } } if yyr2821 || yy2arr2821 { 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 yym2833 := z.DecBinary() _ = yym2833 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2834 := r.ContainerType() if yyct2834 == codecSelferValueTypeMap1234 { yyl2834 := r.ReadMapStart() if yyl2834 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2834, d) } } else if yyct2834 == codecSelferValueTypeArray1234 { yyl2834 := r.ReadArrayStart() if yyl2834 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2834, 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 yys2835Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2835Slc var yyhl2835 bool = l >= 0 for yyj2835 := 0; ; yyj2835++ { if yyhl2835 { if yyj2835 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2835Slc = r.DecodeBytes(yys2835Slc, true, true) yys2835 := string(yys2835Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2835 { 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) } yym2839 := z.DecBinary() _ = yym2839 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2835) } // end switch yys2835 } // end for yyj2835 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 yyj2840 int var yyb2840 bool var yyhl2840 bool = l >= 0 yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { 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) } yym2844 := z.DecBinary() _ = yym2844 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } for { yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2840-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2845 := z.EncBinary() _ = yym2845 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2846 := !z.EncBinary() yy2arr2846 := z.EncBasicHandle().StructToArray var yyq2846 [4]bool _, _, _ = yysep2846, yyq2846, yy2arr2846 const yyr2846 bool = false yyq2846[0] = x.Kind != "" yyq2846[1] = x.APIVersion != "" var yynn2846 int if yyr2846 || yy2arr2846 { r.EncodeArrayStart(4) } else { yynn2846 = 2 for _, b := range yyq2846 { if b { yynn2846++ } } r.EncodeMapStart(yynn2846) yynn2846 = 0 } if yyr2846 || yy2arr2846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2846[0] { yym2848 := z.EncBinary() _ = yym2848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2846[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2849 := z.EncBinary() _ = yym2849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2846 || yy2arr2846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2846[1] { yym2851 := z.EncBinary() _ = yym2851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2846[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2852 := z.EncBinary() _ = yym2852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2846 || yy2arr2846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2854 := z.EncBinary() _ = yym2854 if false { } else { r.EncodeBool(bool(x.Export)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2855 := z.EncBinary() _ = yym2855 if false { } else { r.EncodeBool(bool(x.Export)) } } if yyr2846 || yy2arr2846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2857 := z.EncBinary() _ = yym2857 if false { } else { r.EncodeBool(bool(x.Exact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2858 := z.EncBinary() _ = yym2858 if false { } else { r.EncodeBool(bool(x.Exact)) } } if yyr2846 || yy2arr2846 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2859 := z.DecBinary() _ = yym2859 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2860 := r.ContainerType() if yyct2860 == codecSelferValueTypeMap1234 { yyl2860 := r.ReadMapStart() if yyl2860 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2860, d) } } else if yyct2860 == codecSelferValueTypeArray1234 { yyl2860 := r.ReadArrayStart() if yyl2860 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2860, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2861Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2861Slc var yyhl2861 bool = l >= 0 for yyj2861 := 0; ; yyj2861++ { if yyhl2861 { if yyj2861 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2861Slc = r.DecodeBytes(yys2861Slc, true, true) yys2861 := string(yys2861Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2861 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "export": if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } case "exact": if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys2861) } // end switch yys2861 } // end for yyj2861 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2866 int var yyb2866 bool var yyhl2866 bool = l >= 0 yyj2866++ if yyhl2866 { yyb2866 = yyj2866 > l } else { yyb2866 = r.CheckBreak() } if yyb2866 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2866++ if yyhl2866 { yyb2866 = yyj2866 > l } else { yyb2866 = r.CheckBreak() } if yyb2866 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2866++ if yyhl2866 { yyb2866 = yyj2866 > l } else { yyb2866 = r.CheckBreak() } if yyb2866 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } yyj2866++ if yyhl2866 { yyb2866 = yyj2866 > l } else { yyb2866 = r.CheckBreak() } if yyb2866 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } for { yyj2866++ if yyhl2866 { yyb2866 = yyj2866 > l } else { yyb2866 = r.CheckBreak() } if yyb2866 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2866-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2871 := z.EncBinary() _ = yym2871 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2872 := !z.EncBinary() yy2arr2872 := z.EncBasicHandle().StructToArray var yyq2872 [7]bool _, _, _ = yysep2872, yyq2872, yy2arr2872 const yyr2872 bool = false yyq2872[0] = x.Kind != "" yyq2872[1] = x.APIVersion != "" var yynn2872 int if yyr2872 || yy2arr2872 { r.EncodeArrayStart(7) } else { yynn2872 = 5 for _, b := range yyq2872 { if b { yynn2872++ } } r.EncodeMapStart(yynn2872) yynn2872 = 0 } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2872[0] { yym2874 := z.EncBinary() _ = yym2874 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2872[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2875 := z.EncBinary() _ = yym2875 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2872[1] { yym2877 := z.EncBinary() _ = yym2877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2872[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2878 := z.EncBinary() _ = yym2878 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym2880 := z.EncBinary() _ = yym2880 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LabelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym2881 := z.EncBinary() _ = yym2881 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym2883 := z.EncBinary() _ = yym2883 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("FieldSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym2884 := z.EncBinary() _ = yym2884 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2886 := z.EncBinary() _ = yym2886 if false { } else { r.EncodeBool(bool(x.Watch)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2887 := z.EncBinary() _ = yym2887 if false { } else { r.EncodeBool(bool(x.Watch)) } } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2889 := z.EncBinary() _ = yym2889 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ResourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2890 := z.EncBinary() _ = yym2890 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2892 := *x.TimeoutSeconds yym2893 := z.EncBinary() _ = yym2893 if false { } else { r.EncodeInt(int64(yy2892)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2894 := *x.TimeoutSeconds yym2895 := z.EncBinary() _ = yym2895 if false { } else { r.EncodeInt(int64(yy2894)) } } } if yyr2872 || yy2arr2872 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ListOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2896 := z.DecBinary() _ = yym2896 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2897 := r.ContainerType() if yyct2897 == codecSelferValueTypeMap1234 { yyl2897 := r.ReadMapStart() if yyl2897 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2897, d) } } else if yyct2897 == codecSelferValueTypeArray1234 { yyl2897 := r.ReadArrayStart() if yyl2897 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2897, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2898Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2898Slc var yyhl2898 bool = l >= 0 for yyj2898 := 0; ; yyj2898++ { if yyhl2898 { if yyj2898 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2898Slc = r.DecodeBytes(yys2898Slc, true, true) yys2898 := string(yys2898Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2898 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "LabelSelector": if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv2901 := &x.LabelSelector yym2902 := z.DecBinary() _ = yym2902 if false { } else if z.HasExtensions() && z.DecExt(yyv2901) { } else { z.DecFallback(yyv2901, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2903 := &x.FieldSelector yym2904 := z.DecBinary() _ = yym2904 if false { } else if z.HasExtensions() && z.DecExt(yyv2903) { } else { z.DecFallback(yyv2903, true) } } case "Watch": if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } case "ResourceVersion": if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } case "TimeoutSeconds": if r.TryDecodeAsNil() { if x.TimeoutSeconds != nil { x.TimeoutSeconds = nil } } else { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } yym2908 := z.DecBinary() _ = yym2908 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2898) } // end switch yys2898 } // end for yyj2898 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ListOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2909 int var yyb2909 bool var yyhl2909 bool = l >= 0 yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv2912 := &x.LabelSelector yym2913 := z.DecBinary() _ = yym2913 if false { } else if z.HasExtensions() && z.DecExt(yyv2912) { } else { z.DecFallback(yyv2912, true) } } yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2914 := &x.FieldSelector yym2915 := z.DecBinary() _ = yym2915 if false { } else if z.HasExtensions() && z.DecExt(yyv2914) { } else { z.DecFallback(yyv2914, true) } } yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TimeoutSeconds != nil { x.TimeoutSeconds = nil } } else { if x.TimeoutSeconds == nil { x.TimeoutSeconds = new(int64) } yym2919 := z.DecBinary() _ = yym2919 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { yyj2909++ if yyhl2909 { yyb2909 = yyj2909 > l } else { yyb2909 = r.CheckBreak() } if yyb2909 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2909-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 { yym2920 := z.EncBinary() _ = yym2920 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2921 := !z.EncBinary() yy2arr2921 := z.EncBasicHandle().StructToArray var yyq2921 [10]bool _, _, _ = yysep2921, yyq2921, yy2arr2921 const yyr2921 bool = false yyq2921[0] = x.Kind != "" yyq2921[1] = x.APIVersion != "" var yynn2921 int if yyr2921 || yy2arr2921 { r.EncodeArrayStart(10) } else { yynn2921 = 8 for _, b := range yyq2921 { if b { yynn2921++ } } r.EncodeMapStart(yynn2921) yynn2921 = 0 } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2921[0] { yym2923 := z.EncBinary() _ = yym2923 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2921[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2924 := z.EncBinary() _ = yym2924 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2921[1] { yym2926 := z.EncBinary() _ = yym2926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2921[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2927 := z.EncBinary() _ = yym2927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2929 := z.EncBinary() _ = yym2929 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) yym2930 := z.EncBinary() _ = yym2930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2932 := z.EncBinary() _ = yym2932 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2933 := z.EncBinary() _ = yym2933 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2935 := z.EncBinary() _ = yym2935 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2936 := z.EncBinary() _ = yym2936 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2938 := *x.SinceSeconds yym2939 := z.EncBinary() _ = yym2939 if false { } else { r.EncodeInt(int64(yy2938)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2940 := *x.SinceSeconds yym2941 := z.EncBinary() _ = yym2941 if false { } else { r.EncodeInt(int64(yy2940)) } } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym2943 := z.EncBinary() _ = yym2943 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2943 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2943 && 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 { yym2944 := z.EncBinary() _ = yym2944 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2944 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2944 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2946 := z.EncBinary() _ = yym2946 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2947 := z.EncBinary() _ = yym2947 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy2949 := *x.TailLines yym2950 := z.EncBinary() _ = yym2950 if false { } else { r.EncodeInt(int64(yy2949)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy2951 := *x.TailLines yym2952 := z.EncBinary() _ = yym2952 if false { } else { r.EncodeInt(int64(yy2951)) } } } if yyr2921 || yy2arr2921 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2954 := *x.LimitBytes yym2955 := z.EncBinary() _ = yym2955 if false { } else { r.EncodeInt(int64(yy2954)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2956 := *x.LimitBytes yym2957 := z.EncBinary() _ = yym2957 if false { } else { r.EncodeInt(int64(yy2956)) } } } if yyr2921 || yy2arr2921 { 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 yym2958 := z.DecBinary() _ = yym2958 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2959 := r.ContainerType() if yyct2959 == codecSelferValueTypeMap1234 { yyl2959 := r.ReadMapStart() if yyl2959 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2959, d) } } else if yyct2959 == codecSelferValueTypeArray1234 { yyl2959 := r.ReadArrayStart() if yyl2959 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2959, 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 yys2960Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2960Slc var yyhl2960 bool = l >= 0 for yyj2960 := 0; ; yyj2960++ { if yyhl2960 { if yyj2960 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2960Slc = r.DecodeBytes(yys2960Slc, true, true) yys2960 := string(yys2960Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2960 { 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) } yym2967 := z.DecBinary() _ = yym2967 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) } yym2969 := z.DecBinary() _ = yym2969 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2969 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2969 && 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) } yym2972 := z.DecBinary() _ = yym2972 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) } yym2974 := z.DecBinary() _ = yym2974 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2960) } // end switch yys2960 } // end for yyj2960 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 yyj2975 int var yyb2975 bool var yyhl2975 bool = l >= 0 yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { 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) } yym2982 := z.DecBinary() _ = yym2982 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { 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) } yym2984 := z.DecBinary() _ = yym2984 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2984 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2984 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { 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) } yym2987 := z.DecBinary() _ = yym2987 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { 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) } yym2989 := z.DecBinary() _ = yym2989 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { yyj2975++ if yyhl2975 { yyb2975 = yyj2975 > l } else { yyb2975 = r.CheckBreak() } if yyb2975 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2975-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 { yym2990 := z.EncBinary() _ = yym2990 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2991 := !z.EncBinary() yy2arr2991 := z.EncBasicHandle().StructToArray var yyq2991 [7]bool _, _, _ = yysep2991, yyq2991, yy2arr2991 const yyr2991 bool = false yyq2991[0] = x.Kind != "" yyq2991[1] = x.APIVersion != "" yyq2991[2] = x.Stdin != false yyq2991[3] = x.Stdout != false yyq2991[4] = x.Stderr != false yyq2991[5] = x.TTY != false yyq2991[6] = x.Container != "" var yynn2991 int if yyr2991 || yy2arr2991 { r.EncodeArrayStart(7) } else { yynn2991 = 0 for _, b := range yyq2991 { if b { yynn2991++ } } r.EncodeMapStart(yynn2991) yynn2991 = 0 } if yyr2991 || yy2arr2991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2991[0] { yym2993 := z.EncBinary() _ = yym2993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2991[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2994 := z.EncBinary() _ = yym2994 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2991 || yy2arr2991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2991[1] { yym2996 := z.EncBinary() _ = yym2996 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2991[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2997 := z.EncBinary() _ = yym2997 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2991 || yy2arr2991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2991[2] { yym2999 := z.EncBinary() _ = yym2999 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq2991[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3000 := z.EncBinary() _ = yym3000 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr2991 || yy2arr2991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2991[3] { yym3002 := z.EncBinary() _ = yym3002 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq2991[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3003 := z.EncBinary() _ = yym3003 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr2991 || yy2arr2991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2991[4] { yym3005 := z.EncBinary() _ = yym3005 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq2991[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3006 := z.EncBinary() _ = yym3006 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr2991 || yy2arr2991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2991[5] { yym3008 := z.EncBinary() _ = yym3008 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq2991[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3009 := z.EncBinary() _ = yym3009 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr2991 || yy2arr2991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2991[6] { yym3011 := z.EncBinary() _ = yym3011 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2991[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3012 := z.EncBinary() _ = yym3012 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr2991 || yy2arr2991 { 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 yym3013 := z.DecBinary() _ = yym3013 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3014 := r.ContainerType() if yyct3014 == codecSelferValueTypeMap1234 { yyl3014 := r.ReadMapStart() if yyl3014 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3014, d) } } else if yyct3014 == codecSelferValueTypeArray1234 { yyl3014 := r.ReadArrayStart() if yyl3014 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3014, 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 yys3015Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3015Slc var yyhl3015 bool = l >= 0 for yyj3015 := 0; ; yyj3015++ { if yyhl3015 { if yyj3015 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3015Slc = r.DecodeBytes(yys3015Slc, true, true) yys3015 := string(yys3015Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3015 { 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, yys3015) } // end switch yys3015 } // end for yyj3015 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 yyj3023 int var yyb3023 bool var yyhl3023 bool = l >= 0 yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } for { yyj3023++ if yyhl3023 { yyb3023 = yyj3023 > l } else { yyb3023 = r.CheckBreak() } if yyb3023 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3023-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 { yym3031 := z.EncBinary() _ = yym3031 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3032 := !z.EncBinary() yy2arr3032 := z.EncBasicHandle().StructToArray var yyq3032 [8]bool _, _, _ = yysep3032, yyq3032, yy2arr3032 const yyr3032 bool = false yyq3032[0] = x.Kind != "" yyq3032[1] = x.APIVersion != "" var yynn3032 int if yyr3032 || yy2arr3032 { r.EncodeArrayStart(8) } else { yynn3032 = 6 for _, b := range yyq3032 { if b { yynn3032++ } } r.EncodeMapStart(yynn3032) yynn3032 = 0 } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3032[0] { yym3034 := z.EncBinary() _ = yym3034 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3032[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3035 := z.EncBinary() _ = yym3035 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3032[1] { yym3037 := z.EncBinary() _ = yym3037 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3032[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3038 := z.EncBinary() _ = yym3038 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3040 := z.EncBinary() _ = yym3040 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3041 := z.EncBinary() _ = yym3041 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3043 := z.EncBinary() _ = yym3043 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3044 := z.EncBinary() _ = yym3044 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3046 := z.EncBinary() _ = yym3046 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3047 := z.EncBinary() _ = yym3047 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3049 := z.EncBinary() _ = yym3049 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3050 := z.EncBinary() _ = yym3050 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3052 := z.EncBinary() _ = yym3052 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) yym3053 := z.EncBinary() _ = yym3053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3032 || yy2arr3032 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym3055 := z.EncBinary() _ = yym3055 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 { yym3056 := z.EncBinary() _ = yym3056 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr3032 || yy2arr3032 { 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 yym3057 := z.DecBinary() _ = yym3057 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3058 := r.ContainerType() if yyct3058 == codecSelferValueTypeMap1234 { yyl3058 := r.ReadMapStart() if yyl3058 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3058, d) } } else if yyct3058 == codecSelferValueTypeArray1234 { yyl3058 := r.ReadArrayStart() if yyl3058 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3058, 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 yys3059Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3059Slc var yyhl3059 bool = l >= 0 for yyj3059 := 0; ; yyj3059++ { if yyhl3059 { if yyj3059 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3059Slc = r.DecodeBytes(yys3059Slc, true, true) yys3059 := string(yys3059Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3059 { 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 { yyv3067 := &x.Command yym3068 := z.DecBinary() _ = yym3068 if false { } else { z.F.DecSliceStringX(yyv3067, false, d) } } default: z.DecStructFieldNotFound(-1, yys3059) } // end switch yys3059 } // end for yyj3059 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 yyj3069 int var yyb3069 bool var yyhl3069 bool = l >= 0 yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv3077 := &x.Command yym3078 := z.DecBinary() _ = yym3078 if false { } else { z.F.DecSliceStringX(yyv3077, false, d) } } for { yyj3069++ if yyhl3069 { yyb3069 = yyj3069 > l } else { yyb3069 = r.CheckBreak() } if yyb3069 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3069-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3079 := z.EncBinary() _ = yym3079 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3080 := !z.EncBinary() yy2arr3080 := z.EncBasicHandle().StructToArray var yyq3080 [3]bool _, _, _ = yysep3080, yyq3080, yy2arr3080 const yyr3080 bool = false yyq3080[0] = x.Kind != "" yyq3080[1] = x.APIVersion != "" var yynn3080 int if yyr3080 || yy2arr3080 { r.EncodeArrayStart(3) } else { yynn3080 = 1 for _, b := range yyq3080 { if b { yynn3080++ } } r.EncodeMapStart(yynn3080) yynn3080 = 0 } if yyr3080 || yy2arr3080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3080[0] { yym3082 := z.EncBinary() _ = yym3082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3080[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3083 := z.EncBinary() _ = yym3083 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3080 || yy2arr3080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3080[1] { yym3085 := z.EncBinary() _ = yym3085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3080[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3086 := z.EncBinary() _ = yym3086 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3080 || yy2arr3080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3088 := z.EncBinary() _ = yym3088 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) yym3089 := z.EncBinary() _ = yym3089 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3080 || yy2arr3080 { 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 yym3090 := z.DecBinary() _ = yym3090 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3091 := r.ContainerType() if yyct3091 == codecSelferValueTypeMap1234 { yyl3091 := r.ReadMapStart() if yyl3091 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3091, d) } } else if yyct3091 == codecSelferValueTypeArray1234 { yyl3091 := r.ReadArrayStart() if yyl3091 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3091, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3092Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3092Slc var yyhl3092 bool = l >= 0 for yyj3092 := 0; ; yyj3092++ { if yyhl3092 { if yyj3092 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3092Slc = r.DecodeBytes(yys3092Slc, true, true) yys3092 := string(yys3092Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3092 { case "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, yys3092) } // end switch yys3092 } // end for yyj3092 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 yyj3096 int var yyb3096 bool var yyhl3096 bool = l >= 0 yyj3096++ if yyhl3096 { yyb3096 = yyj3096 > l } else { yyb3096 = r.CheckBreak() } if yyb3096 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3096++ if yyhl3096 { yyb3096 = yyj3096 > l } else { yyb3096 = r.CheckBreak() } if yyb3096 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3096++ if yyhl3096 { yyb3096 = yyj3096 > l } else { yyb3096 = r.CheckBreak() } if yyb3096 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3096++ if yyhl3096 { yyb3096 = yyj3096 > l } else { yyb3096 = r.CheckBreak() } if yyb3096 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3096-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 { yym3100 := z.EncBinary() _ = yym3100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3101 := !z.EncBinary() yy2arr3101 := z.EncBasicHandle().StructToArray var yyq3101 [7]bool _, _, _ = yysep3101, yyq3101, yy2arr3101 const yyr3101 bool = false yyq3101[0] = x.Kind != "" yyq3101[1] = x.Namespace != "" yyq3101[2] = x.Name != "" yyq3101[3] = x.UID != "" yyq3101[4] = x.APIVersion != "" yyq3101[5] = x.ResourceVersion != "" yyq3101[6] = x.FieldPath != "" var yynn3101 int if yyr3101 || yy2arr3101 { r.EncodeArrayStart(7) } else { yynn3101 = 0 for _, b := range yyq3101 { if b { yynn3101++ } } r.EncodeMapStart(yynn3101) yynn3101 = 0 } if yyr3101 || yy2arr3101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3101[0] { yym3103 := z.EncBinary() _ = yym3103 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3101[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3104 := z.EncBinary() _ = yym3104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3101 || yy2arr3101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3101[1] { yym3106 := z.EncBinary() _ = yym3106 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3101[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3107 := z.EncBinary() _ = yym3107 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr3101 || yy2arr3101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3101[2] { yym3109 := z.EncBinary() _ = yym3109 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3101[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3110 := z.EncBinary() _ = yym3110 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr3101 || yy2arr3101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3101[3] { yym3112 := z.EncBinary() _ = yym3112 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 yyq3101[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3113 := z.EncBinary() _ = yym3113 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr3101 || yy2arr3101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3101[4] { yym3115 := z.EncBinary() _ = yym3115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3101[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3116 := z.EncBinary() _ = yym3116 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3101 || yy2arr3101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3101[5] { yym3118 := z.EncBinary() _ = yym3118 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3101[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3119 := z.EncBinary() _ = yym3119 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr3101 || yy2arr3101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3101[6] { yym3121 := z.EncBinary() _ = yym3121 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3101[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3122 := z.EncBinary() _ = yym3122 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr3101 || yy2arr3101 { 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 yym3123 := z.DecBinary() _ = yym3123 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3124 := r.ContainerType() if yyct3124 == codecSelferValueTypeMap1234 { yyl3124 := r.ReadMapStart() if yyl3124 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3124, d) } } else if yyct3124 == codecSelferValueTypeArray1234 { yyl3124 := r.ReadArrayStart() if yyl3124 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3124, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3125Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3125Slc var yyhl3125 bool = l >= 0 for yyj3125 := 0; ; yyj3125++ { if yyhl3125 { if yyj3125 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3125Slc = r.DecodeBytes(yys3125Slc, true, true) yys3125 := string(yys3125Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3125 { case "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, yys3125) } // end switch yys3125 } // end for yyj3125 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 yyj3133 int var yyb3133 bool var yyhl3133 bool = l >= 0 yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj3133++ if yyhl3133 { yyb3133 = yyj3133 > l } else { yyb3133 = r.CheckBreak() } if yyb3133 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3133-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 { yym3141 := z.EncBinary() _ = yym3141 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3142 := !z.EncBinary() yy2arr3142 := z.EncBasicHandle().StructToArray var yyq3142 [1]bool _, _, _ = yysep3142, yyq3142, yy2arr3142 const yyr3142 bool = false var yynn3142 int if yyr3142 || yy2arr3142 { r.EncodeArrayStart(1) } else { yynn3142 = 1 for _, b := range yyq3142 { if b { yynn3142++ } } r.EncodeMapStart(yynn3142) yynn3142 = 0 } if yyr3142 || yy2arr3142 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3144 := z.EncBinary() _ = yym3144 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) yym3145 := z.EncBinary() _ = yym3145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3142 || yy2arr3142 { 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 yym3146 := z.DecBinary() _ = yym3146 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3147 := r.ContainerType() if yyct3147 == codecSelferValueTypeMap1234 { yyl3147 := r.ReadMapStart() if yyl3147 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3147, d) } } else if yyct3147 == codecSelferValueTypeArray1234 { yyl3147 := r.ReadArrayStart() if yyl3147 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3147, 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 yys3148Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3148Slc var yyhl3148 bool = l >= 0 for yyj3148 := 0; ; yyj3148++ { if yyhl3148 { if yyj3148 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3148Slc = r.DecodeBytes(yys3148Slc, true, true) yys3148 := string(yys3148Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3148 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3148) } // end switch yys3148 } // end for yyj3148 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 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.Name = "" } else { x.Name = string(r.DecodeString()) } 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 *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3152 := z.EncBinary() _ = yym3152 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3153 := !z.EncBinary() yy2arr3153 := z.EncBasicHandle().StructToArray var yyq3153 [3]bool _, _, _ = yysep3153, yyq3153, yy2arr3153 const yyr3153 bool = false yyq3153[0] = x.Kind != "" yyq3153[1] = x.APIVersion != "" yyq3153[2] = true var yynn3153 int if yyr3153 || yy2arr3153 { r.EncodeArrayStart(3) } else { yynn3153 = 0 for _, b := range yyq3153 { if b { yynn3153++ } } r.EncodeMapStart(yynn3153) yynn3153 = 0 } if yyr3153 || yy2arr3153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3153[0] { yym3155 := z.EncBinary() _ = yym3155 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3153[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3156 := z.EncBinary() _ = yym3156 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3153 || yy2arr3153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3153[1] { yym3158 := z.EncBinary() _ = yym3158 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3153[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3159 := z.EncBinary() _ = yym3159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3153 || yy2arr3153 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3153[2] { yy3161 := &x.Reference yy3161.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3153[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3162 := &x.Reference yy3162.CodecEncodeSelf(e) } } if yyr3153 || yy2arr3153 { 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 yym3163 := z.DecBinary() _ = yym3163 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3164 := r.ContainerType() if yyct3164 == codecSelferValueTypeMap1234 { yyl3164 := r.ReadMapStart() if yyl3164 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3164, d) } } else if yyct3164 == codecSelferValueTypeArray1234 { yyl3164 := r.ReadArrayStart() if yyl3164 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3164, 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 yys3165Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3165Slc var yyhl3165 bool = l >= 0 for yyj3165 := 0; ; yyj3165++ { if yyhl3165 { if yyj3165 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3165Slc = r.DecodeBytes(yys3165Slc, true, true) yys3165 := string(yys3165Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3165 { 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 { yyv3168 := &x.Reference yyv3168.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3165) } // end switch yys3165 } // end for yyj3165 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 yyj3169 int var yyb3169 bool var yyhl3169 bool = l >= 0 yyj3169++ if yyhl3169 { yyb3169 = yyj3169 > l } else { yyb3169 = r.CheckBreak() } if yyb3169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3169++ if yyhl3169 { yyb3169 = yyj3169 > l } else { yyb3169 = r.CheckBreak() } if yyb3169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3169++ if yyhl3169 { yyb3169 = yyj3169 > l } else { yyb3169 = r.CheckBreak() } if yyb3169 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3172 := &x.Reference yyv3172.CodecDecodeSelf(d) } for { yyj3169++ if yyhl3169 { yyb3169 = yyj3169 > l } else { yyb3169 = r.CheckBreak() } if yyb3169 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3169-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 { yym3173 := z.EncBinary() _ = yym3173 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3174 := !z.EncBinary() yy2arr3174 := z.EncBasicHandle().StructToArray var yyq3174 [2]bool _, _, _ = yysep3174, yyq3174, yy2arr3174 const yyr3174 bool = false yyq3174[0] = x.Component != "" yyq3174[1] = x.Host != "" var yynn3174 int if yyr3174 || yy2arr3174 { r.EncodeArrayStart(2) } else { yynn3174 = 0 for _, b := range yyq3174 { if b { yynn3174++ } } r.EncodeMapStart(yynn3174) yynn3174 = 0 } if yyr3174 || yy2arr3174 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3174[0] { yym3176 := z.EncBinary() _ = yym3176 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3174[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3177 := z.EncBinary() _ = yym3177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr3174 || yy2arr3174 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3174[1] { yym3179 := z.EncBinary() _ = yym3179 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3174[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3180 := z.EncBinary() _ = yym3180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr3174 || yy2arr3174 { 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 yym3181 := z.DecBinary() _ = yym3181 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3182 := r.ContainerType() if yyct3182 == codecSelferValueTypeMap1234 { yyl3182 := r.ReadMapStart() if yyl3182 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3182, d) } } else if yyct3182 == codecSelferValueTypeArray1234 { yyl3182 := r.ReadArrayStart() if yyl3182 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3182, 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 yys3183Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3183Slc var yyhl3183 bool = l >= 0 for yyj3183 := 0; ; yyj3183++ { if yyhl3183 { if yyj3183 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3183Slc = r.DecodeBytes(yys3183Slc, true, true) yys3183 := string(yys3183Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3183 { 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, yys3183) } // end switch yys3183 } // end for yyj3183 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 yyj3186 int var yyb3186 bool var yyhl3186 bool = l >= 0 yyj3186++ if yyhl3186 { yyb3186 = yyj3186 > l } else { yyb3186 = r.CheckBreak() } if yyb3186 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj3186++ if yyhl3186 { yyb3186 = yyj3186 > l } else { yyb3186 = r.CheckBreak() } if yyb3186 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj3186++ if yyhl3186 { yyb3186 = yyj3186 > l } else { yyb3186 = r.CheckBreak() } if yyb3186 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3186-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 { yym3189 := z.EncBinary() _ = yym3189 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3190 := !z.EncBinary() yy2arr3190 := z.EncBasicHandle().StructToArray var yyq3190 [11]bool _, _, _ = yysep3190, yyq3190, yy2arr3190 const yyr3190 bool = false yyq3190[0] = x.Kind != "" yyq3190[1] = x.APIVersion != "" yyq3190[2] = true yyq3190[3] = true yyq3190[4] = x.Reason != "" yyq3190[5] = x.Message != "" yyq3190[6] = true yyq3190[7] = true yyq3190[8] = true yyq3190[9] = x.Count != 0 yyq3190[10] = x.Type != "" var yynn3190 int if yyr3190 || yy2arr3190 { r.EncodeArrayStart(11) } else { yynn3190 = 0 for _, b := range yyq3190 { if b { yynn3190++ } } r.EncodeMapStart(yynn3190) yynn3190 = 0 } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[0] { yym3192 := z.EncBinary() _ = yym3192 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3190[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3193 := z.EncBinary() _ = yym3193 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[1] { yym3195 := z.EncBinary() _ = yym3195 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3190[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3196 := z.EncBinary() _ = yym3196 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[2] { yy3198 := &x.ObjectMeta yy3198.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3190[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3199 := &x.ObjectMeta yy3199.CodecEncodeSelf(e) } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[3] { yy3201 := &x.InvolvedObject yy3201.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3190[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3202 := &x.InvolvedObject yy3202.CodecEncodeSelf(e) } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[4] { yym3204 := z.EncBinary() _ = yym3204 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3190[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3205 := z.EncBinary() _ = yym3205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[5] { yym3207 := z.EncBinary() _ = yym3207 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3190[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3208 := z.EncBinary() _ = yym3208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[6] { yy3210 := &x.Source yy3210.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3190[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3211 := &x.Source yy3211.CodecEncodeSelf(e) } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[7] { yy3213 := &x.FirstTimestamp yym3214 := z.EncBinary() _ = yym3214 if false { } else if z.HasExtensions() && z.EncExt(yy3213) { } else if yym3214 { z.EncBinaryMarshal(yy3213) } else if !yym3214 && z.IsJSONHandle() { z.EncJSONMarshal(yy3213) } else { z.EncFallback(yy3213) } } else { r.EncodeNil() } } else { if yyq3190[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3215 := &x.FirstTimestamp yym3216 := z.EncBinary() _ = yym3216 if false { } else if z.HasExtensions() && z.EncExt(yy3215) { } else if yym3216 { z.EncBinaryMarshal(yy3215) } else if !yym3216 && z.IsJSONHandle() { z.EncJSONMarshal(yy3215) } else { z.EncFallback(yy3215) } } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[8] { yy3218 := &x.LastTimestamp yym3219 := z.EncBinary() _ = yym3219 if false { } else if z.HasExtensions() && z.EncExt(yy3218) { } else if yym3219 { z.EncBinaryMarshal(yy3218) } else if !yym3219 && z.IsJSONHandle() { z.EncJSONMarshal(yy3218) } else { z.EncFallback(yy3218) } } else { r.EncodeNil() } } else { if yyq3190[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3220 := &x.LastTimestamp yym3221 := z.EncBinary() _ = yym3221 if false { } else if z.HasExtensions() && z.EncExt(yy3220) { } else if yym3221 { z.EncBinaryMarshal(yy3220) } else if !yym3221 && z.IsJSONHandle() { z.EncJSONMarshal(yy3220) } else { z.EncFallback(yy3220) } } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[9] { yym3223 := z.EncBinary() _ = yym3223 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq3190[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3224 := z.EncBinary() _ = yym3224 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr3190 || yy2arr3190 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3190[10] { yym3226 := z.EncBinary() _ = yym3226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3190[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3227 := z.EncBinary() _ = yym3227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3190 || yy2arr3190 { 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 yym3228 := z.DecBinary() _ = yym3228 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3229 := r.ContainerType() if yyct3229 == codecSelferValueTypeMap1234 { yyl3229 := r.ReadMapStart() if yyl3229 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3229, d) } } else if yyct3229 == codecSelferValueTypeArray1234 { yyl3229 := r.ReadArrayStart() if yyl3229 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3229, 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 yys3230Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3230Slc var yyhl3230 bool = l >= 0 for yyj3230 := 0; ; yyj3230++ { if yyhl3230 { if yyj3230 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3230Slc = r.DecodeBytes(yys3230Slc, true, true) yys3230 := string(yys3230Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3230 { 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 { yyv3233 := &x.ObjectMeta yyv3233.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3234 := &x.InvolvedObject yyv3234.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 { yyv3237 := &x.Source yyv3237.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3238 := &x.FirstTimestamp yym3239 := z.DecBinary() _ = yym3239 if false { } else if z.HasExtensions() && z.DecExt(yyv3238) { } else if yym3239 { z.DecBinaryUnmarshal(yyv3238) } else if !yym3239 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3238) } else { z.DecFallback(yyv3238, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3240 := &x.LastTimestamp yym3241 := z.DecBinary() _ = yym3241 if false { } else if z.HasExtensions() && z.DecExt(yyv3240) { } else if yym3241 { z.DecBinaryUnmarshal(yyv3240) } else if !yym3241 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3240) } else { z.DecFallback(yyv3240, 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, yys3230) } // end switch yys3230 } // end for yyj3230 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 yyj3244 int var yyb3244 bool var yyhl3244 bool = l >= 0 yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3247 := &x.ObjectMeta yyv3247.CodecDecodeSelf(d) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3248 := &x.InvolvedObject yyv3248.CodecDecodeSelf(d) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv3251 := &x.Source yyv3251.CodecDecodeSelf(d) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3252 := &x.FirstTimestamp yym3253 := z.DecBinary() _ = yym3253 if false { } else if z.HasExtensions() && z.DecExt(yyv3252) { } else if yym3253 { z.DecBinaryUnmarshal(yyv3252) } else if !yym3253 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3252) } else { z.DecFallback(yyv3252, false) } } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3254 := &x.LastTimestamp yym3255 := z.DecBinary() _ = yym3255 if false { } else if z.HasExtensions() && z.DecExt(yyv3254) { } else if yym3255 { z.DecBinaryUnmarshal(yyv3254) } else if !yym3255 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3254) } else { z.DecFallback(yyv3254, false) } } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int(r.DecodeInt(codecSelferBitsize1234)) } yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } for { yyj3244++ if yyhl3244 { yyb3244 = yyj3244 > l } else { yyb3244 = r.CheckBreak() } if yyb3244 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3244-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 { yym3258 := z.EncBinary() _ = yym3258 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3259 := !z.EncBinary() yy2arr3259 := z.EncBasicHandle().StructToArray var yyq3259 [4]bool _, _, _ = yysep3259, yyq3259, yy2arr3259 const yyr3259 bool = false yyq3259[0] = x.Kind != "" yyq3259[1] = x.APIVersion != "" yyq3259[2] = true var yynn3259 int if yyr3259 || yy2arr3259 { r.EncodeArrayStart(4) } else { yynn3259 = 1 for _, b := range yyq3259 { if b { yynn3259++ } } r.EncodeMapStart(yynn3259) yynn3259 = 0 } if yyr3259 || yy2arr3259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3259[0] { yym3261 := z.EncBinary() _ = yym3261 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3259[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3262 := z.EncBinary() _ = yym3262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3259 || yy2arr3259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3259[1] { yym3264 := z.EncBinary() _ = yym3264 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3259[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3265 := z.EncBinary() _ = yym3265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3259 || yy2arr3259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3259[2] { yy3267 := &x.ListMeta yym3268 := z.EncBinary() _ = yym3268 if false { } else if z.HasExtensions() && z.EncExt(yy3267) { } else { z.EncFallback(yy3267) } } else { r.EncodeNil() } } else { if yyq3259[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3269 := &x.ListMeta yym3270 := z.EncBinary() _ = yym3270 if false { } else if z.HasExtensions() && z.EncExt(yy3269) { } else { z.EncFallback(yy3269) } } } if yyr3259 || yy2arr3259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3272 := z.EncBinary() _ = yym3272 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 { yym3273 := z.EncBinary() _ = yym3273 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr3259 || yy2arr3259 { 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 yym3274 := z.DecBinary() _ = yym3274 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3275 := r.ContainerType() if yyct3275 == codecSelferValueTypeMap1234 { yyl3275 := r.ReadMapStart() if yyl3275 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3275, d) } } else if yyct3275 == codecSelferValueTypeArray1234 { yyl3275 := r.ReadArrayStart() if yyl3275 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3275, 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 yys3276Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3276Slc var yyhl3276 bool = l >= 0 for yyj3276 := 0; ; yyj3276++ { if yyhl3276 { if yyj3276 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3276Slc = r.DecodeBytes(yys3276Slc, true, true) yys3276 := string(yys3276Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3276 { 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 { yyv3279 := &x.ListMeta yym3280 := z.DecBinary() _ = yym3280 if false { } else if z.HasExtensions() && z.DecExt(yyv3279) { } else { z.DecFallback(yyv3279, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3281 := &x.Items yym3282 := z.DecBinary() _ = yym3282 if false { } else { h.decSliceEvent((*[]Event)(yyv3281), d) } } default: z.DecStructFieldNotFound(-1, yys3276) } // end switch yys3276 } // end for yyj3276 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 yyj3283 int var yyb3283 bool var yyhl3283 bool = l >= 0 yyj3283++ if yyhl3283 { yyb3283 = yyj3283 > l } else { yyb3283 = r.CheckBreak() } if yyb3283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3283++ if yyhl3283 { yyb3283 = yyj3283 > l } else { yyb3283 = r.CheckBreak() } if yyb3283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3283++ if yyhl3283 { yyb3283 = yyj3283 > l } else { yyb3283 = r.CheckBreak() } if yyb3283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3286 := &x.ListMeta yym3287 := z.DecBinary() _ = yym3287 if false { } else if z.HasExtensions() && z.DecExt(yyv3286) { } else { z.DecFallback(yyv3286, false) } } yyj3283++ if yyhl3283 { yyb3283 = yyj3283 > l } else { yyb3283 = r.CheckBreak() } if yyb3283 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3288 := &x.Items yym3289 := z.DecBinary() _ = yym3289 if false { } else { h.decSliceEvent((*[]Event)(yyv3288), d) } } for { yyj3283++ if yyhl3283 { yyb3283 = yyj3283 > l } else { yyb3283 = r.CheckBreak() } if yyb3283 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3283-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 { yym3290 := z.EncBinary() _ = yym3290 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3291 := !z.EncBinary() yy2arr3291 := z.EncBasicHandle().StructToArray var yyq3291 [4]bool _, _, _ = yysep3291, yyq3291, yy2arr3291 const yyr3291 bool = false yyq3291[0] = x.Kind != "" yyq3291[1] = x.APIVersion != "" yyq3291[2] = true var yynn3291 int if yyr3291 || yy2arr3291 { r.EncodeArrayStart(4) } else { yynn3291 = 1 for _, b := range yyq3291 { if b { yynn3291++ } } r.EncodeMapStart(yynn3291) yynn3291 = 0 } if yyr3291 || yy2arr3291 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3291[0] { yym3293 := z.EncBinary() _ = yym3293 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3291[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3294 := z.EncBinary() _ = yym3294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3291 || yy2arr3291 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3291[1] { yym3296 := z.EncBinary() _ = yym3296 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3291[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3297 := z.EncBinary() _ = yym3297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3291 || yy2arr3291 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3291[2] { yy3299 := &x.ListMeta yym3300 := z.EncBinary() _ = yym3300 if false { } else if z.HasExtensions() && z.EncExt(yy3299) { } else { z.EncFallback(yy3299) } } else { r.EncodeNil() } } else { if yyq3291[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3301 := &x.ListMeta yym3302 := z.EncBinary() _ = yym3302 if false { } else if z.HasExtensions() && z.EncExt(yy3301) { } else { z.EncFallback(yy3301) } } } if yyr3291 || yy2arr3291 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3304 := z.EncBinary() _ = yym3304 if false { } else { h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3305 := z.EncBinary() _ = yym3305 if false { } else { h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e) } } } if yyr3291 || yy2arr3291 { 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 yym3306 := z.DecBinary() _ = yym3306 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3307 := r.ContainerType() if yyct3307 == codecSelferValueTypeMap1234 { yyl3307 := r.ReadMapStart() if yyl3307 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3307, d) } } else if yyct3307 == codecSelferValueTypeArray1234 { yyl3307 := r.ReadArrayStart() if yyl3307 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3307, 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 yys3308Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3308Slc var yyhl3308 bool = l >= 0 for yyj3308 := 0; ; yyj3308++ { if yyhl3308 { if yyj3308 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3308Slc = r.DecodeBytes(yys3308Slc, true, true) yys3308 := string(yys3308Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3308 { 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 { yyv3311 := &x.ListMeta yym3312 := z.DecBinary() _ = yym3312 if false { } else if z.HasExtensions() && z.DecExt(yyv3311) { } else { z.DecFallback(yyv3311, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3313 := &x.Items yym3314 := z.DecBinary() _ = yym3314 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3313), d) } } default: z.DecStructFieldNotFound(-1, yys3308) } // end switch yys3308 } // end for yyj3308 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 yyj3315 int var yyb3315 bool var yyhl3315 bool = l >= 0 yyj3315++ if yyhl3315 { yyb3315 = yyj3315 > l } else { yyb3315 = r.CheckBreak() } if yyb3315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3315++ if yyhl3315 { yyb3315 = yyj3315 > l } else { yyb3315 = r.CheckBreak() } if yyb3315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3315++ if yyhl3315 { yyb3315 = yyj3315 > l } else { yyb3315 = r.CheckBreak() } if yyb3315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3318 := &x.ListMeta yym3319 := z.DecBinary() _ = yym3319 if false { } else if z.HasExtensions() && z.DecExt(yyv3318) { } else { z.DecFallback(yyv3318, false) } } yyj3315++ if yyhl3315 { yyb3315 = yyj3315 > l } else { yyb3315 = r.CheckBreak() } if yyb3315 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3320 := &x.Items yym3321 := z.DecBinary() _ = yym3321 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3320), d) } } for { yyj3315++ if yyhl3315 { yyb3315 = yyj3315 > l } else { yyb3315 = r.CheckBreak() } if yyb3315 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3315-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3322 := z.EncBinary() _ = yym3322 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 yym3323 := z.DecBinary() _ = yym3323 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 { yym3324 := z.EncBinary() _ = yym3324 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3325 := !z.EncBinary() yy2arr3325 := z.EncBasicHandle().StructToArray var yyq3325 [6]bool _, _, _ = yysep3325, yyq3325, yy2arr3325 const yyr3325 bool = false yyq3325[0] = x.Type != "" yyq3325[1] = len(x.Max) != 0 yyq3325[2] = len(x.Min) != 0 yyq3325[3] = len(x.Default) != 0 yyq3325[4] = len(x.DefaultRequest) != 0 yyq3325[5] = len(x.MaxLimitRequestRatio) != 0 var yynn3325 int if yyr3325 || yy2arr3325 { r.EncodeArrayStart(6) } else { yynn3325 = 0 for _, b := range yyq3325 { if b { yynn3325++ } } r.EncodeMapStart(yynn3325) yynn3325 = 0 } if yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3325[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3325[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 yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3325[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 yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3325[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 yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3325[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 yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3325[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 yyr3325 || yy2arr3325 { 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 yym3332 := z.DecBinary() _ = yym3332 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3333 := r.ContainerType() if yyct3333 == codecSelferValueTypeMap1234 { yyl3333 := r.ReadMapStart() if yyl3333 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3333, d) } } else if yyct3333 == codecSelferValueTypeArray1234 { yyl3333 := r.ReadArrayStart() if yyl3333 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3333, 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 yys3334Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3334Slc var yyhl3334 bool = l >= 0 for yyj3334 := 0; ; yyj3334++ { if yyhl3334 { if yyj3334 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3334Slc = r.DecodeBytes(yys3334Slc, true, true) yys3334 := string(yys3334Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3334 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv3336 := &x.Max yyv3336.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv3337 := &x.Min yyv3337.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv3338 := &x.Default yyv3338.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3339 := &x.DefaultRequest yyv3339.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3340 := &x.MaxLimitRequestRatio yyv3340.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3334) } // end switch yys3334 } // end for yyj3334 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 yyj3341 int var yyb3341 bool var yyhl3341 bool = l >= 0 yyj3341++ if yyhl3341 { yyb3341 = yyj3341 > l } else { yyb3341 = r.CheckBreak() } if yyb3341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj3341++ if yyhl3341 { yyb3341 = yyj3341 > l } else { yyb3341 = r.CheckBreak() } if yyb3341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv3343 := &x.Max yyv3343.CodecDecodeSelf(d) } yyj3341++ if yyhl3341 { yyb3341 = yyj3341 > l } else { yyb3341 = r.CheckBreak() } if yyb3341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv3344 := &x.Min yyv3344.CodecDecodeSelf(d) } yyj3341++ if yyhl3341 { yyb3341 = yyj3341 > l } else { yyb3341 = r.CheckBreak() } if yyb3341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv3345 := &x.Default yyv3345.CodecDecodeSelf(d) } yyj3341++ if yyhl3341 { yyb3341 = yyj3341 > l } else { yyb3341 = r.CheckBreak() } if yyb3341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3346 := &x.DefaultRequest yyv3346.CodecDecodeSelf(d) } yyj3341++ if yyhl3341 { yyb3341 = yyj3341 > l } else { yyb3341 = r.CheckBreak() } if yyb3341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3347 := &x.MaxLimitRequestRatio yyv3347.CodecDecodeSelf(d) } for { yyj3341++ if yyhl3341 { yyb3341 = yyj3341 > l } else { yyb3341 = r.CheckBreak() } if yyb3341 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3341-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 { yym3348 := z.EncBinary() _ = yym3348 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3349 := !z.EncBinary() yy2arr3349 := z.EncBasicHandle().StructToArray var yyq3349 [1]bool _, _, _ = yysep3349, yyq3349, yy2arr3349 const yyr3349 bool = false var yynn3349 int if yyr3349 || yy2arr3349 { r.EncodeArrayStart(1) } else { yynn3349 = 1 for _, b := range yyq3349 { if b { yynn3349++ } } r.EncodeMapStart(yynn3349) yynn3349 = 0 } if yyr3349 || yy2arr3349 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym3351 := z.EncBinary() _ = yym3351 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 { yym3352 := z.EncBinary() _ = yym3352 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr3349 || yy2arr3349 { 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 yym3353 := z.DecBinary() _ = yym3353 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3354 := r.ContainerType() if yyct3354 == codecSelferValueTypeMap1234 { yyl3354 := r.ReadMapStart() if yyl3354 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3354, d) } } else if yyct3354 == codecSelferValueTypeArray1234 { yyl3354 := r.ReadArrayStart() if yyl3354 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3354, 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 yys3355Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3355Slc var yyhl3355 bool = l >= 0 for yyj3355 := 0; ; yyj3355++ { if yyhl3355 { if yyj3355 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3355Slc = r.DecodeBytes(yys3355Slc, true, true) yys3355 := string(yys3355Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3355 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3356 := &x.Limits yym3357 := z.DecBinary() _ = yym3357 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3356), d) } } default: z.DecStructFieldNotFound(-1, yys3355) } // end switch yys3355 } // end for yyj3355 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 yyj3358 int var yyb3358 bool var yyhl3358 bool = l >= 0 yyj3358++ if yyhl3358 { yyb3358 = yyj3358 > l } else { yyb3358 = r.CheckBreak() } if yyb3358 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3359 := &x.Limits yym3360 := z.DecBinary() _ = yym3360 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3359), d) } } for { yyj3358++ if yyhl3358 { yyb3358 = yyj3358 > l } else { yyb3358 = r.CheckBreak() } if yyb3358 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3358-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LimitRange) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3361 := z.EncBinary() _ = yym3361 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3362 := !z.EncBinary() yy2arr3362 := z.EncBasicHandle().StructToArray var yyq3362 [4]bool _, _, _ = yysep3362, yyq3362, yy2arr3362 const yyr3362 bool = false yyq3362[0] = x.Kind != "" yyq3362[1] = x.APIVersion != "" yyq3362[2] = true yyq3362[3] = true var yynn3362 int if yyr3362 || yy2arr3362 { r.EncodeArrayStart(4) } else { yynn3362 = 0 for _, b := range yyq3362 { if b { yynn3362++ } } r.EncodeMapStart(yynn3362) yynn3362 = 0 } if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3362[0] { yym3364 := z.EncBinary() _ = yym3364 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3362[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3365 := z.EncBinary() _ = yym3365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3362[1] { yym3367 := z.EncBinary() _ = yym3367 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3362[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3368 := z.EncBinary() _ = yym3368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3362[2] { yy3370 := &x.ObjectMeta yy3370.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3362[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3371 := &x.ObjectMeta yy3371.CodecEncodeSelf(e) } } if yyr3362 || yy2arr3362 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3362[3] { yy3373 := &x.Spec yy3373.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3362[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3374 := &x.Spec yy3374.CodecEncodeSelf(e) } } if yyr3362 || yy2arr3362 { 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 yym3375 := z.DecBinary() _ = yym3375 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3376 := r.ContainerType() if yyct3376 == codecSelferValueTypeMap1234 { yyl3376 := r.ReadMapStart() if yyl3376 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3376, d) } } else if yyct3376 == codecSelferValueTypeArray1234 { yyl3376 := r.ReadArrayStart() if yyl3376 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3376, 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 yys3377Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3377Slc var yyhl3377 bool = l >= 0 for yyj3377 := 0; ; yyj3377++ { if yyhl3377 { if yyj3377 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3377Slc = r.DecodeBytes(yys3377Slc, true, true) yys3377 := string(yys3377Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3377 { 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 { yyv3380 := &x.ObjectMeta yyv3380.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3381 := &x.Spec yyv3381.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3377) } // end switch yys3377 } // end for yyj3377 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 yyj3382 int var yyb3382 bool var yyhl3382 bool = l >= 0 yyj3382++ if yyhl3382 { yyb3382 = yyj3382 > l } else { yyb3382 = r.CheckBreak() } if yyb3382 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3382++ if yyhl3382 { yyb3382 = yyj3382 > l } else { yyb3382 = r.CheckBreak() } if yyb3382 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3382++ if yyhl3382 { yyb3382 = yyj3382 > l } else { yyb3382 = r.CheckBreak() } if yyb3382 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3385 := &x.ObjectMeta yyv3385.CodecDecodeSelf(d) } yyj3382++ if yyhl3382 { yyb3382 = yyj3382 > l } else { yyb3382 = r.CheckBreak() } if yyb3382 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3386 := &x.Spec yyv3386.CodecDecodeSelf(d) } for { yyj3382++ if yyhl3382 { yyb3382 = yyj3382 > l } else { yyb3382 = r.CheckBreak() } if yyb3382 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3382-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 { yym3387 := z.EncBinary() _ = yym3387 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3388 := !z.EncBinary() yy2arr3388 := z.EncBasicHandle().StructToArray var yyq3388 [4]bool _, _, _ = yysep3388, yyq3388, yy2arr3388 const yyr3388 bool = false yyq3388[0] = x.Kind != "" yyq3388[1] = x.APIVersion != "" yyq3388[2] = true var yynn3388 int if yyr3388 || yy2arr3388 { r.EncodeArrayStart(4) } else { yynn3388 = 1 for _, b := range yyq3388 { if b { yynn3388++ } } r.EncodeMapStart(yynn3388) yynn3388 = 0 } if yyr3388 || yy2arr3388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3388[0] { yym3390 := z.EncBinary() _ = yym3390 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3388[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3391 := z.EncBinary() _ = yym3391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3388 || yy2arr3388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3388[1] { yym3393 := z.EncBinary() _ = yym3393 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3388[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3394 := z.EncBinary() _ = yym3394 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3388 || yy2arr3388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3388[2] { yy3396 := &x.ListMeta yym3397 := z.EncBinary() _ = yym3397 if false { } else if z.HasExtensions() && z.EncExt(yy3396) { } else { z.EncFallback(yy3396) } } else { r.EncodeNil() } } else { if yyq3388[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3398 := &x.ListMeta yym3399 := z.EncBinary() _ = yym3399 if false { } else if z.HasExtensions() && z.EncExt(yy3398) { } else { z.EncFallback(yy3398) } } } if yyr3388 || yy2arr3388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3401 := z.EncBinary() _ = yym3401 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 { yym3402 := z.EncBinary() _ = yym3402 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr3388 || yy2arr3388 { 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 yym3403 := z.DecBinary() _ = yym3403 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3404 := r.ContainerType() if yyct3404 == codecSelferValueTypeMap1234 { yyl3404 := r.ReadMapStart() if yyl3404 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3404, d) } } else if yyct3404 == codecSelferValueTypeArray1234 { yyl3404 := r.ReadArrayStart() if yyl3404 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3404, 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 yys3405Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3405Slc var yyhl3405 bool = l >= 0 for yyj3405 := 0; ; yyj3405++ { if yyhl3405 { if yyj3405 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3405Slc = r.DecodeBytes(yys3405Slc, true, true) yys3405 := string(yys3405Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3405 { 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 { yyv3408 := &x.ListMeta yym3409 := z.DecBinary() _ = yym3409 if false { } else if z.HasExtensions() && z.DecExt(yyv3408) { } else { z.DecFallback(yyv3408, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3410 := &x.Items yym3411 := z.DecBinary() _ = yym3411 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3410), d) } } default: z.DecStructFieldNotFound(-1, yys3405) } // end switch yys3405 } // end for yyj3405 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 yyj3412 int var yyb3412 bool var yyhl3412 bool = l >= 0 yyj3412++ if yyhl3412 { yyb3412 = yyj3412 > l } else { yyb3412 = r.CheckBreak() } if yyb3412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3412++ if yyhl3412 { yyb3412 = yyj3412 > l } else { yyb3412 = r.CheckBreak() } if yyb3412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3412++ if yyhl3412 { yyb3412 = yyj3412 > l } else { yyb3412 = r.CheckBreak() } if yyb3412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3415 := &x.ListMeta yym3416 := z.DecBinary() _ = yym3416 if false { } else if z.HasExtensions() && z.DecExt(yyv3415) { } else { z.DecFallback(yyv3415, false) } } yyj3412++ if yyhl3412 { yyb3412 = yyj3412 > l } else { yyb3412 = r.CheckBreak() } if yyb3412 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3417 := &x.Items yym3418 := z.DecBinary() _ = yym3418 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3417), d) } } for { yyj3412++ if yyhl3412 { yyb3412 = yyj3412 > l } else { yyb3412 = r.CheckBreak() } if yyb3412 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3412-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 { yym3419 := z.EncBinary() _ = yym3419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3420 := !z.EncBinary() yy2arr3420 := z.EncBasicHandle().StructToArray var yyq3420 [1]bool _, _, _ = yysep3420, yyq3420, yy2arr3420 const yyr3420 bool = false yyq3420[0] = len(x.Hard) != 0 var yynn3420 int if yyr3420 || yy2arr3420 { r.EncodeArrayStart(1) } else { yynn3420 = 0 for _, b := range yyq3420 { if b { yynn3420++ } } r.EncodeMapStart(yynn3420) yynn3420 = 0 } if yyr3420 || yy2arr3420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3420[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3420[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 yyr3420 || yy2arr3420 { 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 yym3422 := z.DecBinary() _ = yym3422 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3423 := r.ContainerType() if yyct3423 == codecSelferValueTypeMap1234 { yyl3423 := r.ReadMapStart() if yyl3423 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3423, d) } } else if yyct3423 == codecSelferValueTypeArray1234 { yyl3423 := r.ReadArrayStart() if yyl3423 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3423, 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 yys3424Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3424Slc var yyhl3424 bool = l >= 0 for yyj3424 := 0; ; yyj3424++ { if yyhl3424 { if yyj3424 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3424Slc = r.DecodeBytes(yys3424Slc, true, true) yys3424 := string(yys3424Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3424 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3425 := &x.Hard yyv3425.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3424) } // end switch yys3424 } // end for yyj3424 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 yyj3426 int var yyb3426 bool var yyhl3426 bool = l >= 0 yyj3426++ if yyhl3426 { yyb3426 = yyj3426 > l } else { yyb3426 = r.CheckBreak() } if yyb3426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3427 := &x.Hard yyv3427.CodecDecodeSelf(d) } for { yyj3426++ if yyhl3426 { yyb3426 = yyj3426 > l } else { yyb3426 = r.CheckBreak() } if yyb3426 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3426-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 { yym3428 := z.EncBinary() _ = yym3428 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3429 := !z.EncBinary() yy2arr3429 := z.EncBasicHandle().StructToArray var yyq3429 [2]bool _, _, _ = yysep3429, yyq3429, yy2arr3429 const yyr3429 bool = false yyq3429[0] = len(x.Hard) != 0 yyq3429[1] = len(x.Used) != 0 var yynn3429 int if yyr3429 || yy2arr3429 { r.EncodeArrayStart(2) } else { yynn3429 = 0 for _, b := range yyq3429 { if b { yynn3429++ } } r.EncodeMapStart(yynn3429) yynn3429 = 0 } if yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3429[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 yyr3429 || yy2arr3429 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3429[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3429[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 yyr3429 || yy2arr3429 { 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 yym3432 := z.DecBinary() _ = yym3432 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3433 := r.ContainerType() if yyct3433 == codecSelferValueTypeMap1234 { yyl3433 := r.ReadMapStart() if yyl3433 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3433, d) } } else if yyct3433 == codecSelferValueTypeArray1234 { yyl3433 := r.ReadArrayStart() if yyl3433 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3433, 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 yys3434Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3434Slc var yyhl3434 bool = l >= 0 for yyj3434 := 0; ; yyj3434++ { if yyhl3434 { if yyj3434 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3434Slc = r.DecodeBytes(yys3434Slc, true, true) yys3434 := string(yys3434Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3434 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3435 := &x.Hard yyv3435.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv3436 := &x.Used yyv3436.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3434) } // end switch yys3434 } // end for yyj3434 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 yyj3437 int var yyb3437 bool var yyhl3437 bool = l >= 0 yyj3437++ if yyhl3437 { yyb3437 = yyj3437 > l } else { yyb3437 = r.CheckBreak() } if yyb3437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3438 := &x.Hard yyv3438.CodecDecodeSelf(d) } yyj3437++ if yyhl3437 { yyb3437 = yyj3437 > l } else { yyb3437 = r.CheckBreak() } if yyb3437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv3439 := &x.Used yyv3439.CodecDecodeSelf(d) } for { yyj3437++ if yyhl3437 { yyb3437 = yyj3437 > l } else { yyb3437 = r.CheckBreak() } if yyb3437 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3437-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 { yym3440 := z.EncBinary() _ = yym3440 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3441 := !z.EncBinary() yy2arr3441 := z.EncBasicHandle().StructToArray var yyq3441 [5]bool _, _, _ = yysep3441, yyq3441, yy2arr3441 const yyr3441 bool = false yyq3441[0] = x.Kind != "" yyq3441[1] = x.APIVersion != "" yyq3441[2] = true yyq3441[3] = true yyq3441[4] = true var yynn3441 int if yyr3441 || yy2arr3441 { r.EncodeArrayStart(5) } else { yynn3441 = 0 for _, b := range yyq3441 { if b { yynn3441++ } } r.EncodeMapStart(yynn3441) yynn3441 = 0 } if yyr3441 || yy2arr3441 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3441[0] { yym3443 := z.EncBinary() _ = yym3443 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3441[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3444 := z.EncBinary() _ = yym3444 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3441 || yy2arr3441 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3441[1] { yym3446 := z.EncBinary() _ = yym3446 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3441[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3447 := z.EncBinary() _ = yym3447 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3441 || yy2arr3441 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3441[2] { yy3449 := &x.ObjectMeta yy3449.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3441[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3450 := &x.ObjectMeta yy3450.CodecEncodeSelf(e) } } if yyr3441 || yy2arr3441 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3441[3] { yy3452 := &x.Spec yy3452.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3441[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3453 := &x.Spec yy3453.CodecEncodeSelf(e) } } if yyr3441 || yy2arr3441 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3441[4] { yy3455 := &x.Status yy3455.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3441[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3456 := &x.Status yy3456.CodecEncodeSelf(e) } } if yyr3441 || yy2arr3441 { 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 yym3457 := z.DecBinary() _ = yym3457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3458 := r.ContainerType() if yyct3458 == codecSelferValueTypeMap1234 { yyl3458 := r.ReadMapStart() if yyl3458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3458, d) } } else if yyct3458 == codecSelferValueTypeArray1234 { yyl3458 := r.ReadArrayStart() if yyl3458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3458, 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 yys3459Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3459Slc var yyhl3459 bool = l >= 0 for yyj3459 := 0; ; yyj3459++ { if yyhl3459 { if yyj3459 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3459Slc = r.DecodeBytes(yys3459Slc, true, true) yys3459 := string(yys3459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3459 { 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 { yyv3462 := &x.ObjectMeta yyv3462.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3463 := &x.Spec yyv3463.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3464 := &x.Status yyv3464.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3459) } // end switch yys3459 } // end for yyj3459 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 yyj3465 int var yyb3465 bool var yyhl3465 bool = l >= 0 yyj3465++ if yyhl3465 { yyb3465 = yyj3465 > l } else { yyb3465 = r.CheckBreak() } if yyb3465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3465++ if yyhl3465 { yyb3465 = yyj3465 > l } else { yyb3465 = r.CheckBreak() } if yyb3465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3465++ if yyhl3465 { yyb3465 = yyj3465 > l } else { yyb3465 = r.CheckBreak() } if yyb3465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3468 := &x.ObjectMeta yyv3468.CodecDecodeSelf(d) } yyj3465++ if yyhl3465 { yyb3465 = yyj3465 > l } else { yyb3465 = r.CheckBreak() } if yyb3465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3469 := &x.Spec yyv3469.CodecDecodeSelf(d) } yyj3465++ if yyhl3465 { yyb3465 = yyj3465 > l } else { yyb3465 = r.CheckBreak() } if yyb3465 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3470 := &x.Status yyv3470.CodecDecodeSelf(d) } for { yyj3465++ if yyhl3465 { yyb3465 = yyj3465 > l } else { yyb3465 = r.CheckBreak() } if yyb3465 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3465-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 { yym3471 := z.EncBinary() _ = yym3471 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3472 := !z.EncBinary() yy2arr3472 := z.EncBasicHandle().StructToArray var yyq3472 [4]bool _, _, _ = yysep3472, yyq3472, yy2arr3472 const yyr3472 bool = false yyq3472[0] = x.Kind != "" yyq3472[1] = x.APIVersion != "" yyq3472[2] = true var yynn3472 int if yyr3472 || yy2arr3472 { r.EncodeArrayStart(4) } else { yynn3472 = 1 for _, b := range yyq3472 { if b { yynn3472++ } } r.EncodeMapStart(yynn3472) yynn3472 = 0 } if yyr3472 || yy2arr3472 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3472[0] { yym3474 := z.EncBinary() _ = yym3474 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3472[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3475 := z.EncBinary() _ = yym3475 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3472 || yy2arr3472 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3472[1] { yym3477 := z.EncBinary() _ = yym3477 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3472[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3478 := z.EncBinary() _ = yym3478 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3472 || yy2arr3472 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3472[2] { yy3480 := &x.ListMeta yym3481 := z.EncBinary() _ = yym3481 if false { } else if z.HasExtensions() && z.EncExt(yy3480) { } else { z.EncFallback(yy3480) } } else { r.EncodeNil() } } else { if yyq3472[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3482 := &x.ListMeta yym3483 := z.EncBinary() _ = yym3483 if false { } else if z.HasExtensions() && z.EncExt(yy3482) { } else { z.EncFallback(yy3482) } } } if yyr3472 || yy2arr3472 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3485 := z.EncBinary() _ = yym3485 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 { yym3486 := z.EncBinary() _ = yym3486 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr3472 || yy2arr3472 { 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 yym3487 := z.DecBinary() _ = yym3487 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3488 := r.ContainerType() if yyct3488 == codecSelferValueTypeMap1234 { yyl3488 := r.ReadMapStart() if yyl3488 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3488, d) } } else if yyct3488 == codecSelferValueTypeArray1234 { yyl3488 := r.ReadArrayStart() if yyl3488 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3488, 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 yys3489Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3489Slc var yyhl3489 bool = l >= 0 for yyj3489 := 0; ; yyj3489++ { if yyhl3489 { if yyj3489 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3489Slc = r.DecodeBytes(yys3489Slc, true, true) yys3489 := string(yys3489Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3489 { 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 { yyv3492 := &x.ListMeta yym3493 := z.DecBinary() _ = yym3493 if false { } else if z.HasExtensions() && z.DecExt(yyv3492) { } else { z.DecFallback(yyv3492, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3494 := &x.Items yym3495 := z.DecBinary() _ = yym3495 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3494), d) } } default: z.DecStructFieldNotFound(-1, yys3489) } // end switch yys3489 } // end for yyj3489 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 yyj3496 int var yyb3496 bool var yyhl3496 bool = l >= 0 yyj3496++ if yyhl3496 { yyb3496 = yyj3496 > l } else { yyb3496 = r.CheckBreak() } if yyb3496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3496++ if yyhl3496 { yyb3496 = yyj3496 > l } else { yyb3496 = r.CheckBreak() } if yyb3496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3496++ if yyhl3496 { yyb3496 = yyj3496 > l } else { yyb3496 = r.CheckBreak() } if yyb3496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3499 := &x.ListMeta yym3500 := z.DecBinary() _ = yym3500 if false { } else if z.HasExtensions() && z.DecExt(yyv3499) { } else { z.DecFallback(yyv3499, false) } } yyj3496++ if yyhl3496 { yyb3496 = yyj3496 > l } else { yyb3496 = r.CheckBreak() } if yyb3496 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3501 := &x.Items yym3502 := z.DecBinary() _ = yym3502 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3501), d) } } for { yyj3496++ if yyhl3496 { yyb3496 = yyj3496 > l } else { yyb3496 = r.CheckBreak() } if yyb3496 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3496-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 { yym3503 := z.EncBinary() _ = yym3503 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3504 := !z.EncBinary() yy2arr3504 := z.EncBasicHandle().StructToArray var yyq3504 [5]bool _, _, _ = yysep3504, yyq3504, yy2arr3504 const yyr3504 bool = false yyq3504[0] = x.Kind != "" yyq3504[1] = x.APIVersion != "" yyq3504[2] = true yyq3504[3] = len(x.Data) != 0 yyq3504[4] = x.Type != "" var yynn3504 int if yyr3504 || yy2arr3504 { r.EncodeArrayStart(5) } else { yynn3504 = 0 for _, b := range yyq3504 { if b { yynn3504++ } } r.EncodeMapStart(yynn3504) yynn3504 = 0 } if yyr3504 || yy2arr3504 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3504[0] { yym3506 := z.EncBinary() _ = yym3506 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3504[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3507 := z.EncBinary() _ = yym3507 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3504 || yy2arr3504 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3504[1] { yym3509 := z.EncBinary() _ = yym3509 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3504[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3510 := z.EncBinary() _ = yym3510 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3504 || yy2arr3504 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3504[2] { yy3512 := &x.ObjectMeta yy3512.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3504[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3513 := &x.ObjectMeta yy3513.CodecEncodeSelf(e) } } if yyr3504 || yy2arr3504 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3504[3] { if x.Data == nil { r.EncodeNil() } else { yym3515 := z.EncBinary() _ = yym3515 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq3504[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3516 := z.EncBinary() _ = yym3516 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr3504 || yy2arr3504 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3504[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3504[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3504 || yy2arr3504 { 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 yym3518 := z.DecBinary() _ = yym3518 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3519 := r.ContainerType() if yyct3519 == codecSelferValueTypeMap1234 { yyl3519 := r.ReadMapStart() if yyl3519 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3519, d) } } else if yyct3519 == codecSelferValueTypeArray1234 { yyl3519 := r.ReadArrayStart() if yyl3519 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3519, 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 yys3520Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3520Slc var yyhl3520 bool = l >= 0 for yyj3520 := 0; ; yyj3520++ { if yyhl3520 { if yyj3520 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3520Slc = r.DecodeBytes(yys3520Slc, true, true) yys3520 := string(yys3520Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3520 { 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 { yyv3523 := &x.ObjectMeta yyv3523.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3524 := &x.Data yym3525 := z.DecBinary() _ = yym3525 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3524), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3520) } // end switch yys3520 } // end for yyj3520 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 yyj3527 int var yyb3527 bool var yyhl3527 bool = l >= 0 yyj3527++ if yyhl3527 { yyb3527 = yyj3527 > l } else { yyb3527 = r.CheckBreak() } if yyb3527 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3527++ if yyhl3527 { yyb3527 = yyj3527 > l } else { yyb3527 = r.CheckBreak() } if yyb3527 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3527++ if yyhl3527 { yyb3527 = yyj3527 > l } else { yyb3527 = r.CheckBreak() } if yyb3527 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3530 := &x.ObjectMeta yyv3530.CodecDecodeSelf(d) } yyj3527++ if yyhl3527 { yyb3527 = yyj3527 > l } else { yyb3527 = r.CheckBreak() } if yyb3527 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3531 := &x.Data yym3532 := z.DecBinary() _ = yym3532 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3531), d) } } yyj3527++ if yyhl3527 { yyb3527 = yyj3527 > l } else { yyb3527 = r.CheckBreak() } if yyb3527 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } for { yyj3527++ if yyhl3527 { yyb3527 = yyj3527 > l } else { yyb3527 = r.CheckBreak() } if yyb3527 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3527-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3534 := z.EncBinary() _ = yym3534 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 yym3535 := z.DecBinary() _ = yym3535 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 { yym3536 := z.EncBinary() _ = yym3536 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3537 := !z.EncBinary() yy2arr3537 := z.EncBasicHandle().StructToArray var yyq3537 [4]bool _, _, _ = yysep3537, yyq3537, yy2arr3537 const yyr3537 bool = false yyq3537[0] = x.Kind != "" yyq3537[1] = x.APIVersion != "" yyq3537[2] = true var yynn3537 int if yyr3537 || yy2arr3537 { r.EncodeArrayStart(4) } else { yynn3537 = 1 for _, b := range yyq3537 { if b { yynn3537++ } } r.EncodeMapStart(yynn3537) yynn3537 = 0 } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[0] { yym3539 := z.EncBinary() _ = yym3539 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3537[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3540 := z.EncBinary() _ = yym3540 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[1] { yym3542 := z.EncBinary() _ = yym3542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3537[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3543 := z.EncBinary() _ = yym3543 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3537[2] { yy3545 := &x.ListMeta yym3546 := z.EncBinary() _ = yym3546 if false { } else if z.HasExtensions() && z.EncExt(yy3545) { } else { z.EncFallback(yy3545) } } else { r.EncodeNil() } } else { if yyq3537[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3547 := &x.ListMeta yym3548 := z.EncBinary() _ = yym3548 if false { } else if z.HasExtensions() && z.EncExt(yy3547) { } else { z.EncFallback(yy3547) } } } if yyr3537 || yy2arr3537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3550 := z.EncBinary() _ = yym3550 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 { yym3551 := z.EncBinary() _ = yym3551 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr3537 || yy2arr3537 { 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 yym3552 := z.DecBinary() _ = yym3552 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3553 := r.ContainerType() if yyct3553 == codecSelferValueTypeMap1234 { yyl3553 := r.ReadMapStart() if yyl3553 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3553, d) } } else if yyct3553 == codecSelferValueTypeArray1234 { yyl3553 := r.ReadArrayStart() if yyl3553 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3553, 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 yys3554Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3554Slc var yyhl3554 bool = l >= 0 for yyj3554 := 0; ; yyj3554++ { if yyhl3554 { if yyj3554 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3554Slc = r.DecodeBytes(yys3554Slc, true, true) yys3554 := string(yys3554Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3554 { 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 { yyv3557 := &x.ListMeta yym3558 := z.DecBinary() _ = yym3558 if false { } else if z.HasExtensions() && z.DecExt(yyv3557) { } else { z.DecFallback(yyv3557, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3559 := &x.Items yym3560 := z.DecBinary() _ = yym3560 if false { } else { h.decSliceSecret((*[]Secret)(yyv3559), d) } } default: z.DecStructFieldNotFound(-1, yys3554) } // end switch yys3554 } // end for yyj3554 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 yyj3561 int var yyb3561 bool var yyhl3561 bool = l >= 0 yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3564 := &x.ListMeta yym3565 := z.DecBinary() _ = yym3565 if false { } else if z.HasExtensions() && z.DecExt(yyv3564) { } else { z.DecFallback(yyv3564, false) } } yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3566 := &x.Items yym3567 := z.DecBinary() _ = yym3567 if false { } else { h.decSliceSecret((*[]Secret)(yyv3566), d) } } for { yyj3561++ if yyhl3561 { yyb3561 = yyj3561 > l } else { yyb3561 = r.CheckBreak() } if yyb3561 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3561-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3568 := z.EncBinary() _ = yym3568 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3569 := !z.EncBinary() yy2arr3569 := z.EncBasicHandle().StructToArray var yyq3569 [4]bool _, _, _ = yysep3569, yyq3569, yy2arr3569 const yyr3569 bool = false yyq3569[0] = x.Kind != "" yyq3569[1] = x.APIVersion != "" yyq3569[2] = true yyq3569[3] = len(x.Data) != 0 var yynn3569 int if yyr3569 || yy2arr3569 { r.EncodeArrayStart(4) } else { yynn3569 = 0 for _, b := range yyq3569 { if b { yynn3569++ } } r.EncodeMapStart(yynn3569) yynn3569 = 0 } if yyr3569 || yy2arr3569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3569[0] { yym3571 := z.EncBinary() _ = yym3571 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3569[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3572 := z.EncBinary() _ = yym3572 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3569 || yy2arr3569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3569[1] { yym3574 := z.EncBinary() _ = yym3574 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3569[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3575 := z.EncBinary() _ = yym3575 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3569 || yy2arr3569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3569[2] { yy3577 := &x.ObjectMeta yy3577.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3569[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3578 := &x.ObjectMeta yy3578.CodecEncodeSelf(e) } } if yyr3569 || yy2arr3569 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3569[3] { if x.Data == nil { r.EncodeNil() } else { yym3580 := z.EncBinary() _ = yym3580 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } else { r.EncodeNil() } } else { if yyq3569[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3581 := z.EncBinary() _ = yym3581 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } } if yyr3569 || yy2arr3569 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3582 := z.DecBinary() _ = yym3582 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3583 := r.ContainerType() if yyct3583 == codecSelferValueTypeMap1234 { yyl3583 := r.ReadMapStart() if yyl3583 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3583, d) } } else if yyct3583 == codecSelferValueTypeArray1234 { yyl3583 := r.ReadArrayStart() if yyl3583 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3583, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3584Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3584Slc var yyhl3584 bool = l >= 0 for yyj3584 := 0; ; yyj3584++ { if yyhl3584 { if yyj3584 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3584Slc = r.DecodeBytes(yys3584Slc, true, true) yys3584 := string(yys3584Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3584 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3587 := &x.ObjectMeta yyv3587.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3588 := &x.Data yym3589 := z.DecBinary() _ = yym3589 if false { } else { z.F.DecMapStringStringX(yyv3588, false, d) } } default: z.DecStructFieldNotFound(-1, yys3584) } // end switch yys3584 } // end for yyj3584 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3590 int var yyb3590 bool var yyhl3590 bool = l >= 0 yyj3590++ if yyhl3590 { yyb3590 = yyj3590 > l } else { yyb3590 = r.CheckBreak() } if yyb3590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3590++ if yyhl3590 { yyb3590 = yyj3590 > l } else { yyb3590 = r.CheckBreak() } if yyb3590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3590++ if yyhl3590 { yyb3590 = yyj3590 > l } else { yyb3590 = r.CheckBreak() } if yyb3590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3593 := &x.ObjectMeta yyv3593.CodecDecodeSelf(d) } yyj3590++ if yyhl3590 { yyb3590 = yyj3590 > l } else { yyb3590 = r.CheckBreak() } if yyb3590 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3594 := &x.Data yym3595 := z.DecBinary() _ = yym3595 if false { } else { z.F.DecMapStringStringX(yyv3594, false, d) } } for { yyj3590++ if yyhl3590 { yyb3590 = yyj3590 > l } else { yyb3590 = r.CheckBreak() } if yyb3590 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3590-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3596 := z.EncBinary() _ = yym3596 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3597 := !z.EncBinary() yy2arr3597 := z.EncBasicHandle().StructToArray var yyq3597 [4]bool _, _, _ = yysep3597, yyq3597, yy2arr3597 const yyr3597 bool = false yyq3597[0] = x.Kind != "" yyq3597[1] = x.APIVersion != "" yyq3597[2] = true yyq3597[3] = len(x.Items) != 0 var yynn3597 int if yyr3597 || yy2arr3597 { r.EncodeArrayStart(4) } else { yynn3597 = 0 for _, b := range yyq3597 { if b { yynn3597++ } } r.EncodeMapStart(yynn3597) yynn3597 = 0 } if yyr3597 || yy2arr3597 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3597[0] { yym3599 := z.EncBinary() _ = yym3599 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3597[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3600 := z.EncBinary() _ = yym3600 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3597 || yy2arr3597 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3597[1] { yym3602 := z.EncBinary() _ = yym3602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3597[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3603 := z.EncBinary() _ = yym3603 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3597 || yy2arr3597 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3597[2] { yy3605 := &x.ListMeta yym3606 := z.EncBinary() _ = yym3606 if false { } else if z.HasExtensions() && z.EncExt(yy3605) { } else { z.EncFallback(yy3605) } } else { r.EncodeNil() } } else { if yyq3597[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3607 := &x.ListMeta yym3608 := z.EncBinary() _ = yym3608 if false { } else if z.HasExtensions() && z.EncExt(yy3607) { } else { z.EncFallback(yy3607) } } } if yyr3597 || yy2arr3597 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3597[3] { if x.Items == nil { r.EncodeNil() } else { yym3610 := z.EncBinary() _ = yym3610 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq3597[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3611 := z.EncBinary() _ = yym3611 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } } if yyr3597 || yy2arr3597 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3612 := z.DecBinary() _ = yym3612 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3613 := r.ContainerType() if yyct3613 == codecSelferValueTypeMap1234 { yyl3613 := r.ReadMapStart() if yyl3613 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3613, d) } } else if yyct3613 == codecSelferValueTypeArray1234 { yyl3613 := r.ReadArrayStart() if yyl3613 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3613, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3614Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3614Slc var yyhl3614 bool = l >= 0 for yyj3614 := 0; ; yyj3614++ { if yyhl3614 { if yyj3614 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3614Slc = r.DecodeBytes(yys3614Slc, true, true) yys3614 := string(yys3614Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3614 { 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 { yyv3617 := &x.ListMeta yym3618 := z.DecBinary() _ = yym3618 if false { } else if z.HasExtensions() && z.DecExt(yyv3617) { } else { z.DecFallback(yyv3617, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3619 := &x.Items yym3620 := z.DecBinary() _ = yym3620 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv3619), d) } } default: z.DecStructFieldNotFound(-1, yys3614) } // end switch yys3614 } // end for yyj3614 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3621 int var yyb3621 bool var yyhl3621 bool = l >= 0 yyj3621++ if yyhl3621 { yyb3621 = yyj3621 > l } else { yyb3621 = r.CheckBreak() } if yyb3621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3621++ if yyhl3621 { yyb3621 = yyj3621 > l } else { yyb3621 = r.CheckBreak() } if yyb3621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3621++ if yyhl3621 { yyb3621 = yyj3621 > l } else { yyb3621 = r.CheckBreak() } if yyb3621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3624 := &x.ListMeta yym3625 := z.DecBinary() _ = yym3625 if false { } else if z.HasExtensions() && z.DecExt(yyv3624) { } else { z.DecFallback(yyv3624, false) } } yyj3621++ if yyhl3621 { yyb3621 = yyj3621 > l } else { yyb3621 = r.CheckBreak() } if yyb3621 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3626 := &x.Items yym3627 := z.DecBinary() _ = yym3627 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv3626), d) } } for { yyj3621++ if yyhl3621 { yyb3621 = yyj3621 > l } else { yyb3621 = r.CheckBreak() } if yyb3621 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3621-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3628 := z.EncBinary() _ = yym3628 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 yym3629 := z.DecBinary() _ = yym3629 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 yym3630 := z.EncBinary() _ = yym3630 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 yym3631 := z.DecBinary() _ = yym3631 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 { yym3632 := z.EncBinary() _ = yym3632 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3633 := !z.EncBinary() yy2arr3633 := z.EncBasicHandle().StructToArray var yyq3633 [4]bool _, _, _ = yysep3633, yyq3633, yy2arr3633 const yyr3633 bool = false yyq3633[2] = x.Message != "" yyq3633[3] = x.Error != "" var yynn3633 int if yyr3633 || yy2arr3633 { r.EncodeArrayStart(4) } else { yynn3633 = 2 for _, b := range yyq3633 { if b { yynn3633++ } } r.EncodeMapStart(yynn3633) yynn3633 = 0 } if yyr3633 || yy2arr3633 { 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 yyr3633 || yy2arr3633 { 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 yyr3633 || yy2arr3633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3633[2] { yym3637 := z.EncBinary() _ = yym3637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3633[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3638 := z.EncBinary() _ = yym3638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3633 || yy2arr3633 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3633[3] { yym3640 := z.EncBinary() _ = yym3640 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3633[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3641 := z.EncBinary() _ = yym3641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr3633 || yy2arr3633 { 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 yym3642 := z.DecBinary() _ = yym3642 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3643 := r.ContainerType() if yyct3643 == codecSelferValueTypeMap1234 { yyl3643 := r.ReadMapStart() if yyl3643 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3643, d) } } else if yyct3643 == codecSelferValueTypeArray1234 { yyl3643 := r.ReadArrayStart() if yyl3643 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3643, 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 yys3644Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3644Slc var yyhl3644 bool = l >= 0 for yyj3644 := 0; ; yyj3644++ { if yyhl3644 { if yyj3644 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3644Slc = r.DecodeBytes(yys3644Slc, true, true) yys3644 := string(yys3644Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3644 { 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, yys3644) } // end switch yys3644 } // end for yyj3644 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 yyj3649 int var yyb3649 bool var yyhl3649 bool = l >= 0 yyj3649++ if yyhl3649 { yyb3649 = yyj3649 > l } else { yyb3649 = r.CheckBreak() } if yyb3649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj3649++ if yyhl3649 { yyb3649 = yyj3649 > l } else { yyb3649 = r.CheckBreak() } if yyb3649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3649++ if yyhl3649 { yyb3649 = yyj3649 > l } else { yyb3649 = r.CheckBreak() } if yyb3649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3649++ if yyhl3649 { yyb3649 = yyj3649 > l } else { yyb3649 = r.CheckBreak() } if yyb3649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj3649++ if yyhl3649 { yyb3649 = yyj3649 > l } else { yyb3649 = r.CheckBreak() } if yyb3649 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3649-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 { yym3654 := z.EncBinary() _ = yym3654 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3655 := !z.EncBinary() yy2arr3655 := z.EncBasicHandle().StructToArray var yyq3655 [4]bool _, _, _ = yysep3655, yyq3655, yy2arr3655 const yyr3655 bool = false yyq3655[0] = x.Kind != "" yyq3655[1] = x.APIVersion != "" yyq3655[2] = true yyq3655[3] = len(x.Conditions) != 0 var yynn3655 int if yyr3655 || yy2arr3655 { r.EncodeArrayStart(4) } else { yynn3655 = 0 for _, b := range yyq3655 { if b { yynn3655++ } } r.EncodeMapStart(yynn3655) yynn3655 = 0 } if yyr3655 || yy2arr3655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3655[0] { yym3657 := z.EncBinary() _ = yym3657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3655[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3658 := z.EncBinary() _ = yym3658 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3655 || yy2arr3655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3655[1] { yym3660 := z.EncBinary() _ = yym3660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3655[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3661 := z.EncBinary() _ = yym3661 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3655 || yy2arr3655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3655[2] { yy3663 := &x.ObjectMeta yy3663.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3655[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3664 := &x.ObjectMeta yy3664.CodecEncodeSelf(e) } } if yyr3655 || yy2arr3655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3655[3] { if x.Conditions == nil { r.EncodeNil() } else { yym3666 := z.EncBinary() _ = yym3666 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq3655[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym3667 := z.EncBinary() _ = yym3667 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr3655 || yy2arr3655 { 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 yym3668 := z.DecBinary() _ = yym3668 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3669 := r.ContainerType() if yyct3669 == codecSelferValueTypeMap1234 { yyl3669 := r.ReadMapStart() if yyl3669 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3669, d) } } else if yyct3669 == codecSelferValueTypeArray1234 { yyl3669 := r.ReadArrayStart() if yyl3669 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3669, 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 yys3670Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3670Slc var yyhl3670 bool = l >= 0 for yyj3670 := 0; ; yyj3670++ { if yyhl3670 { if yyj3670 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3670Slc = r.DecodeBytes(yys3670Slc, true, true) yys3670 := string(yys3670Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3670 { 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 { yyv3673 := &x.ObjectMeta yyv3673.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3674 := &x.Conditions yym3675 := z.DecBinary() _ = yym3675 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3674), d) } } default: z.DecStructFieldNotFound(-1, yys3670) } // end switch yys3670 } // end for yyj3670 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 yyj3676 int var yyb3676 bool var yyhl3676 bool = l >= 0 yyj3676++ if yyhl3676 { yyb3676 = yyj3676 > l } else { yyb3676 = r.CheckBreak() } if yyb3676 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3676++ if yyhl3676 { yyb3676 = yyj3676 > l } else { yyb3676 = r.CheckBreak() } if yyb3676 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3676++ if yyhl3676 { yyb3676 = yyj3676 > l } else { yyb3676 = r.CheckBreak() } if yyb3676 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3679 := &x.ObjectMeta yyv3679.CodecDecodeSelf(d) } yyj3676++ if yyhl3676 { yyb3676 = yyj3676 > l } else { yyb3676 = r.CheckBreak() } if yyb3676 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3680 := &x.Conditions yym3681 := z.DecBinary() _ = yym3681 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3680), d) } } for { yyj3676++ if yyhl3676 { yyb3676 = yyj3676 > l } else { yyb3676 = r.CheckBreak() } if yyb3676 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3676-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 { yym3682 := z.EncBinary() _ = yym3682 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3683 := !z.EncBinary() yy2arr3683 := z.EncBasicHandle().StructToArray var yyq3683 [4]bool _, _, _ = yysep3683, yyq3683, yy2arr3683 const yyr3683 bool = false yyq3683[0] = x.Kind != "" yyq3683[1] = x.APIVersion != "" yyq3683[2] = true var yynn3683 int if yyr3683 || yy2arr3683 { r.EncodeArrayStart(4) } else { yynn3683 = 1 for _, b := range yyq3683 { if b { yynn3683++ } } r.EncodeMapStart(yynn3683) yynn3683 = 0 } if yyr3683 || yy2arr3683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3683[0] { yym3685 := z.EncBinary() _ = yym3685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3683[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3686 := z.EncBinary() _ = yym3686 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3683 || yy2arr3683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3683[1] { yym3688 := z.EncBinary() _ = yym3688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3683[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3689 := z.EncBinary() _ = yym3689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3683 || yy2arr3683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3683[2] { yy3691 := &x.ListMeta yym3692 := z.EncBinary() _ = yym3692 if false { } else if z.HasExtensions() && z.EncExt(yy3691) { } else { z.EncFallback(yy3691) } } else { r.EncodeNil() } } else { if yyq3683[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3693 := &x.ListMeta yym3694 := z.EncBinary() _ = yym3694 if false { } else if z.HasExtensions() && z.EncExt(yy3693) { } else { z.EncFallback(yy3693) } } } if yyr3683 || yy2arr3683 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3696 := z.EncBinary() _ = yym3696 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 { yym3697 := z.EncBinary() _ = yym3697 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr3683 || yy2arr3683 { 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 yym3698 := z.DecBinary() _ = yym3698 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3699 := r.ContainerType() if yyct3699 == codecSelferValueTypeMap1234 { yyl3699 := r.ReadMapStart() if yyl3699 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3699, d) } } else if yyct3699 == codecSelferValueTypeArray1234 { yyl3699 := r.ReadArrayStart() if yyl3699 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3699, 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 yys3700Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3700Slc var yyhl3700 bool = l >= 0 for yyj3700 := 0; ; yyj3700++ { if yyhl3700 { if yyj3700 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3700Slc = r.DecodeBytes(yys3700Slc, true, true) yys3700 := string(yys3700Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3700 { 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 { yyv3703 := &x.ListMeta yym3704 := z.DecBinary() _ = yym3704 if false { } else if z.HasExtensions() && z.DecExt(yyv3703) { } else { z.DecFallback(yyv3703, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3705 := &x.Items yym3706 := z.DecBinary() _ = yym3706 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3705), d) } } default: z.DecStructFieldNotFound(-1, yys3700) } // end switch yys3700 } // end for yyj3700 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 yyj3707 int var yyb3707 bool var yyhl3707 bool = l >= 0 yyj3707++ if yyhl3707 { yyb3707 = yyj3707 > l } else { yyb3707 = r.CheckBreak() } if yyb3707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3707++ if yyhl3707 { yyb3707 = yyj3707 > l } else { yyb3707 = r.CheckBreak() } if yyb3707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3707++ if yyhl3707 { yyb3707 = yyj3707 > l } else { yyb3707 = r.CheckBreak() } if yyb3707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3710 := &x.ListMeta yym3711 := z.DecBinary() _ = yym3711 if false { } else if z.HasExtensions() && z.DecExt(yyv3710) { } else { z.DecFallback(yyv3710, false) } } yyj3707++ if yyhl3707 { yyb3707 = yyj3707 > l } else { yyb3707 = r.CheckBreak() } if yyb3707 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3712 := &x.Items yym3713 := z.DecBinary() _ = yym3713 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3712), d) } } for { yyj3707++ if yyhl3707 { yyb3707 = yyj3707 > l } else { yyb3707 = r.CheckBreak() } if yyb3707 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3707-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 { yym3714 := z.EncBinary() _ = yym3714 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3715 := !z.EncBinary() yy2arr3715 := z.EncBasicHandle().StructToArray var yyq3715 [5]bool _, _, _ = yysep3715, yyq3715, yy2arr3715 const yyr3715 bool = false yyq3715[0] = x.Capabilities != nil yyq3715[1] = x.Privileged != nil yyq3715[2] = x.SELinuxOptions != nil yyq3715[3] = x.RunAsUser != nil yyq3715[4] = x.RunAsNonRoot != nil var yynn3715 int if yyr3715 || yy2arr3715 { r.EncodeArrayStart(5) } else { yynn3715 = 0 for _, b := range yyq3715 { if b { yynn3715++ } } r.EncodeMapStart(yynn3715) yynn3715 = 0 } if yyr3715 || yy2arr3715 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3715[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3715[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 yyr3715 || yy2arr3715 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3715[1] { if x.Privileged == nil { r.EncodeNil() } else { yy3718 := *x.Privileged yym3719 := z.EncBinary() _ = yym3719 if false { } else { r.EncodeBool(bool(yy3718)) } } } else { r.EncodeNil() } } else { if yyq3715[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy3720 := *x.Privileged yym3721 := z.EncBinary() _ = yym3721 if false { } else { r.EncodeBool(bool(yy3720)) } } } } if yyr3715 || yy2arr3715 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3715[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3715[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 yyr3715 || yy2arr3715 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3715[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy3724 := *x.RunAsUser yym3725 := z.EncBinary() _ = yym3725 if false { } else { r.EncodeInt(int64(yy3724)) } } } else { r.EncodeNil() } } else { if yyq3715[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy3726 := *x.RunAsUser yym3727 := z.EncBinary() _ = yym3727 if false { } else { r.EncodeInt(int64(yy3726)) } } } } if yyr3715 || yy2arr3715 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3715[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3729 := *x.RunAsNonRoot yym3730 := z.EncBinary() _ = yym3730 if false { } else { r.EncodeBool(bool(yy3729)) } } } else { r.EncodeNil() } } else { if yyq3715[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3731 := *x.RunAsNonRoot yym3732 := z.EncBinary() _ = yym3732 if false { } else { r.EncodeBool(bool(yy3731)) } } } } if yyr3715 || yy2arr3715 { 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 yym3733 := z.DecBinary() _ = yym3733 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3734 := r.ContainerType() if yyct3734 == codecSelferValueTypeMap1234 { yyl3734 := r.ReadMapStart() if yyl3734 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3734, d) } } else if yyct3734 == codecSelferValueTypeArray1234 { yyl3734 := r.ReadArrayStart() if yyl3734 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3734, 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 yys3735Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3735Slc var yyhl3735 bool = l >= 0 for yyj3735 := 0; ; yyj3735++ { if yyhl3735 { if yyj3735 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3735Slc = r.DecodeBytes(yys3735Slc, true, true) yys3735 := string(yys3735Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3735 { 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) } yym3738 := z.DecBinary() _ = yym3738 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) } yym3741 := z.DecBinary() _ = yym3741 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) } yym3743 := z.DecBinary() _ = yym3743 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3735) } // end switch yys3735 } // end for yyj3735 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 yyj3744 int var yyb3744 bool var yyhl3744 bool = l >= 0 yyj3744++ if yyhl3744 { yyb3744 = yyj3744 > l } else { yyb3744 = r.CheckBreak() } if yyb3744 { 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) } yyj3744++ if yyhl3744 { yyb3744 = yyj3744 > l } else { yyb3744 = r.CheckBreak() } if yyb3744 { 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) } yym3747 := z.DecBinary() _ = yym3747 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj3744++ if yyhl3744 { yyb3744 = yyj3744 > l } else { yyb3744 = r.CheckBreak() } if yyb3744 { 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) } yyj3744++ if yyhl3744 { yyb3744 = yyj3744 > l } else { yyb3744 = r.CheckBreak() } if yyb3744 { 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) } yym3750 := z.DecBinary() _ = yym3750 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj3744++ if yyhl3744 { yyb3744 = yyj3744 > l } else { yyb3744 = r.CheckBreak() } if yyb3744 { 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) } yym3752 := z.DecBinary() _ = yym3752 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } for { yyj3744++ if yyhl3744 { yyb3744 = yyj3744 > l } else { yyb3744 = r.CheckBreak() } if yyb3744 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3744-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 { yym3753 := z.EncBinary() _ = yym3753 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3754 := !z.EncBinary() yy2arr3754 := z.EncBasicHandle().StructToArray var yyq3754 [4]bool _, _, _ = yysep3754, yyq3754, yy2arr3754 const yyr3754 bool = false yyq3754[0] = x.User != "" yyq3754[1] = x.Role != "" yyq3754[2] = x.Type != "" yyq3754[3] = x.Level != "" var yynn3754 int if yyr3754 || yy2arr3754 { r.EncodeArrayStart(4) } else { yynn3754 = 0 for _, b := range yyq3754 { if b { yynn3754++ } } r.EncodeMapStart(yynn3754) yynn3754 = 0 } if yyr3754 || yy2arr3754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3754[0] { yym3756 := z.EncBinary() _ = yym3756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3754[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3757 := z.EncBinary() _ = yym3757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr3754 || yy2arr3754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3754[1] { yym3759 := z.EncBinary() _ = yym3759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3754[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3760 := z.EncBinary() _ = yym3760 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr3754 || yy2arr3754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3754[2] { yym3762 := z.EncBinary() _ = yym3762 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3754[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3763 := z.EncBinary() _ = yym3763 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3754 || yy2arr3754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3754[3] { yym3765 := z.EncBinary() _ = yym3765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3754[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3766 := z.EncBinary() _ = yym3766 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr3754 || yy2arr3754 { 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 yym3767 := z.DecBinary() _ = yym3767 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3768 := r.ContainerType() if yyct3768 == codecSelferValueTypeMap1234 { yyl3768 := r.ReadMapStart() if yyl3768 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3768, d) } } else if yyct3768 == codecSelferValueTypeArray1234 { yyl3768 := r.ReadArrayStart() if yyl3768 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3768, 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 yys3769Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3769Slc var yyhl3769 bool = l >= 0 for yyj3769 := 0; ; yyj3769++ { if yyhl3769 { if yyj3769 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3769Slc = r.DecodeBytes(yys3769Slc, true, true) yys3769 := string(yys3769Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3769 { 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, yys3769) } // end switch yys3769 } // end for yyj3769 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 yyj3774 int var yyb3774 bool var yyhl3774 bool = l >= 0 yyj3774++ if yyhl3774 { yyb3774 = yyj3774 > l } else { yyb3774 = r.CheckBreak() } if yyb3774 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj3774++ if yyhl3774 { yyb3774 = yyj3774 > l } else { yyb3774 = r.CheckBreak() } if yyb3774 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj3774++ if yyhl3774 { yyb3774 = yyj3774 > l } else { yyb3774 = r.CheckBreak() } if yyb3774 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj3774++ if yyhl3774 { yyb3774 = yyj3774 > l } else { yyb3774 = r.CheckBreak() } if yyb3774 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj3774++ if yyhl3774 { yyb3774 = yyj3774 > l } else { yyb3774 = r.CheckBreak() } if yyb3774 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3774-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 { yym3779 := z.EncBinary() _ = yym3779 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3780 := !z.EncBinary() yy2arr3780 := z.EncBasicHandle().StructToArray var yyq3780 [5]bool _, _, _ = yysep3780, yyq3780, yy2arr3780 const yyr3780 bool = false yyq3780[0] = x.Kind != "" yyq3780[1] = x.APIVersion != "" yyq3780[2] = true var yynn3780 int if yyr3780 || yy2arr3780 { r.EncodeArrayStart(5) } else { yynn3780 = 2 for _, b := range yyq3780 { if b { yynn3780++ } } r.EncodeMapStart(yynn3780) yynn3780 = 0 } if yyr3780 || yy2arr3780 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3780[0] { yym3782 := z.EncBinary() _ = yym3782 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3780[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3783 := z.EncBinary() _ = yym3783 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3780 || yy2arr3780 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3780[1] { yym3785 := z.EncBinary() _ = yym3785 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3780[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3786 := z.EncBinary() _ = yym3786 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3780 || yy2arr3780 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3780[2] { yy3788 := &x.ObjectMeta yy3788.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3780[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3789 := &x.ObjectMeta yy3789.CodecEncodeSelf(e) } } if yyr3780 || yy2arr3780 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3791 := z.EncBinary() _ = yym3791 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) yym3792 := z.EncBinary() _ = yym3792 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr3780 || yy2arr3780 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym3794 := z.EncBinary() _ = yym3794 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 { yym3795 := z.EncBinary() _ = yym3795 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr3780 || yy2arr3780 { 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 yym3796 := z.DecBinary() _ = yym3796 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3797 := r.ContainerType() if yyct3797 == codecSelferValueTypeMap1234 { yyl3797 := r.ReadMapStart() if yyl3797 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3797, d) } } else if yyct3797 == codecSelferValueTypeArray1234 { yyl3797 := r.ReadArrayStart() if yyl3797 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3797, 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 yys3798Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3798Slc var yyhl3798 bool = l >= 0 for yyj3798 := 0; ; yyj3798++ { if yyhl3798 { if yyj3798 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3798Slc = r.DecodeBytes(yys3798Slc, true, true) yys3798 := string(yys3798Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3798 { 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 { yyv3801 := &x.ObjectMeta yyv3801.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3803 := &x.Data yym3804 := z.DecBinary() _ = yym3804 if false { } else { *yyv3803 = r.DecodeBytes(*(*[]byte)(yyv3803), false, false) } } default: z.DecStructFieldNotFound(-1, yys3798) } // end switch yys3798 } // end for yyj3798 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 yyj3805 int var yyb3805 bool var yyhl3805 bool = l >= 0 yyj3805++ if yyhl3805 { yyb3805 = yyj3805 > l } else { yyb3805 = r.CheckBreak() } if yyb3805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3805++ if yyhl3805 { yyb3805 = yyj3805 > l } else { yyb3805 = r.CheckBreak() } if yyb3805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3805++ if yyhl3805 { yyb3805 = yyj3805 > l } else { yyb3805 = r.CheckBreak() } if yyb3805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3808 := &x.ObjectMeta yyv3808.CodecDecodeSelf(d) } yyj3805++ if yyhl3805 { yyb3805 = yyj3805 > l } else { yyb3805 = r.CheckBreak() } if yyb3805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj3805++ if yyhl3805 { yyb3805 = yyj3805 > l } else { yyb3805 = r.CheckBreak() } if yyb3805 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3810 := &x.Data yym3811 := z.DecBinary() _ = yym3811 if false { } else { *yyv3810 = r.DecodeBytes(*(*[]byte)(yyv3810), false, false) } } for { yyj3805++ if yyhl3805 { yyb3805 = yyj3805 > l } else { yyb3805 = r.CheckBreak() } if yyb3805 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3805-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 _, yyv3812 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3812.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 yyv3813 := *v yyh3813, yyl3813 := z.DecSliceHelperStart() var yyc3813 bool if yyl3813 == 0 { if yyv3813 == nil { yyv3813 = []PersistentVolumeAccessMode{} yyc3813 = true } else if len(yyv3813) != 0 { yyv3813 = yyv3813[:0] yyc3813 = true } } else if yyl3813 > 0 { var yyrr3813, yyrl3813 int var yyrt3813 bool if yyl3813 > cap(yyv3813) { yyrl3813, yyrt3813 = z.DecInferLen(yyl3813, z.DecBasicHandle().MaxInitLen, 16) if yyrt3813 { if yyrl3813 <= cap(yyv3813) { yyv3813 = yyv3813[:yyrl3813] } else { yyv3813 = make([]PersistentVolumeAccessMode, yyrl3813) } } else { yyv3813 = make([]PersistentVolumeAccessMode, yyrl3813) } yyc3813 = true yyrr3813 = len(yyv3813) } else if yyl3813 != len(yyv3813) { yyv3813 = yyv3813[:yyl3813] yyc3813 = true } yyj3813 := 0 for ; yyj3813 < yyrr3813; yyj3813++ { yyh3813.ElemContainerState(yyj3813) if r.TryDecodeAsNil() { yyv3813[yyj3813] = "" } else { yyv3813[yyj3813] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt3813 { for ; yyj3813 < yyl3813; yyj3813++ { yyv3813 = append(yyv3813, "") yyh3813.ElemContainerState(yyj3813) if r.TryDecodeAsNil() { yyv3813[yyj3813] = "" } else { yyv3813[yyj3813] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj3813 := 0 for ; !r.CheckBreak(); yyj3813++ { if yyj3813 >= len(yyv3813) { yyv3813 = append(yyv3813, "") // var yyz3813 PersistentVolumeAccessMode yyc3813 = true } yyh3813.ElemContainerState(yyj3813) if yyj3813 < len(yyv3813) { if r.TryDecodeAsNil() { yyv3813[yyj3813] = "" } else { yyv3813[yyj3813] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3813 < len(yyv3813) { yyv3813 = yyv3813[:yyj3813] yyc3813 = true } else if yyj3813 == 0 && yyv3813 == nil { yyv3813 = []PersistentVolumeAccessMode{} yyc3813 = true } } yyh3813.End() if yyc3813 { *v = yyv3813 } } 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 _, yyv3817 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3818 := &yyv3817 yy3818.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 yyv3819 := *v yyh3819, yyl3819 := z.DecSliceHelperStart() var yyc3819 bool if yyl3819 == 0 { if yyv3819 == nil { yyv3819 = []PersistentVolume{} yyc3819 = true } else if len(yyv3819) != 0 { yyv3819 = yyv3819[:0] yyc3819 = true } } else if yyl3819 > 0 { var yyrr3819, yyrl3819 int var yyrt3819 bool if yyl3819 > cap(yyv3819) { yyrg3819 := len(yyv3819) > 0 yyv23819 := yyv3819 yyrl3819, yyrt3819 = z.DecInferLen(yyl3819, z.DecBasicHandle().MaxInitLen, 392) if yyrt3819 { if yyrl3819 <= cap(yyv3819) { yyv3819 = yyv3819[:yyrl3819] } else { yyv3819 = make([]PersistentVolume, yyrl3819) } } else { yyv3819 = make([]PersistentVolume, yyrl3819) } yyc3819 = true yyrr3819 = len(yyv3819) if yyrg3819 { copy(yyv3819, yyv23819) } } else if yyl3819 != len(yyv3819) { yyv3819 = yyv3819[:yyl3819] yyc3819 = true } yyj3819 := 0 for ; yyj3819 < yyrr3819; yyj3819++ { yyh3819.ElemContainerState(yyj3819) if r.TryDecodeAsNil() { yyv3819[yyj3819] = PersistentVolume{} } else { yyv3820 := &yyv3819[yyj3819] yyv3820.CodecDecodeSelf(d) } } if yyrt3819 { for ; yyj3819 < yyl3819; yyj3819++ { yyv3819 = append(yyv3819, PersistentVolume{}) yyh3819.ElemContainerState(yyj3819) if r.TryDecodeAsNil() { yyv3819[yyj3819] = PersistentVolume{} } else { yyv3821 := &yyv3819[yyj3819] yyv3821.CodecDecodeSelf(d) } } } } else { yyj3819 := 0 for ; !r.CheckBreak(); yyj3819++ { if yyj3819 >= len(yyv3819) { yyv3819 = append(yyv3819, PersistentVolume{}) // var yyz3819 PersistentVolume yyc3819 = true } yyh3819.ElemContainerState(yyj3819) if yyj3819 < len(yyv3819) { if r.TryDecodeAsNil() { yyv3819[yyj3819] = PersistentVolume{} } else { yyv3822 := &yyv3819[yyj3819] yyv3822.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3819 < len(yyv3819) { yyv3819 = yyv3819[:yyj3819] yyc3819 = true } else if yyj3819 == 0 && yyv3819 == nil { yyv3819 = []PersistentVolume{} yyc3819 = true } } yyh3819.End() if yyc3819 { *v = yyv3819 } } 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 _, yyv3823 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3824 := &yyv3823 yy3824.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 yyv3825 := *v yyh3825, yyl3825 := z.DecSliceHelperStart() var yyc3825 bool if yyl3825 == 0 { if yyv3825 == nil { yyv3825 = []PersistentVolumeClaim{} yyc3825 = true } else if len(yyv3825) != 0 { yyv3825 = yyv3825[:0] yyc3825 = true } } else if yyl3825 > 0 { var yyrr3825, yyrl3825 int var yyrt3825 bool if yyl3825 > cap(yyv3825) { yyrg3825 := len(yyv3825) > 0 yyv23825 := yyv3825 yyrl3825, yyrt3825 = z.DecInferLen(yyl3825, z.DecBasicHandle().MaxInitLen, 296) if yyrt3825 { if yyrl3825 <= cap(yyv3825) { yyv3825 = yyv3825[:yyrl3825] } else { yyv3825 = make([]PersistentVolumeClaim, yyrl3825) } } else { yyv3825 = make([]PersistentVolumeClaim, yyrl3825) } yyc3825 = true yyrr3825 = len(yyv3825) if yyrg3825 { copy(yyv3825, yyv23825) } } else if yyl3825 != len(yyv3825) { yyv3825 = yyv3825[:yyl3825] yyc3825 = true } yyj3825 := 0 for ; yyj3825 < yyrr3825; yyj3825++ { yyh3825.ElemContainerState(yyj3825) if r.TryDecodeAsNil() { yyv3825[yyj3825] = PersistentVolumeClaim{} } else { yyv3826 := &yyv3825[yyj3825] yyv3826.CodecDecodeSelf(d) } } if yyrt3825 { for ; yyj3825 < yyl3825; yyj3825++ { yyv3825 = append(yyv3825, PersistentVolumeClaim{}) yyh3825.ElemContainerState(yyj3825) if r.TryDecodeAsNil() { yyv3825[yyj3825] = PersistentVolumeClaim{} } else { yyv3827 := &yyv3825[yyj3825] yyv3827.CodecDecodeSelf(d) } } } } else { yyj3825 := 0 for ; !r.CheckBreak(); yyj3825++ { if yyj3825 >= len(yyv3825) { yyv3825 = append(yyv3825, PersistentVolumeClaim{}) // var yyz3825 PersistentVolumeClaim yyc3825 = true } yyh3825.ElemContainerState(yyj3825) if yyj3825 < len(yyv3825) { if r.TryDecodeAsNil() { yyv3825[yyj3825] = PersistentVolumeClaim{} } else { yyv3828 := &yyv3825[yyj3825] yyv3828.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3825 < len(yyv3825) { yyv3825 = yyv3825[:yyj3825] yyc3825 = true } else if yyj3825 == 0 && yyv3825 == nil { yyv3825 = []PersistentVolumeClaim{} yyc3825 = true } } yyh3825.End() if yyc3825 { *v = yyv3825 } } 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 _, yyv3829 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3830 := &yyv3829 yy3830.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 yyv3831 := *v yyh3831, yyl3831 := z.DecSliceHelperStart() var yyc3831 bool if yyl3831 == 0 { if yyv3831 == nil { yyv3831 = []DownwardAPIVolumeFile{} yyc3831 = true } else if len(yyv3831) != 0 { yyv3831 = yyv3831[:0] yyc3831 = true } } else if yyl3831 > 0 { var yyrr3831, yyrl3831 int var yyrt3831 bool if yyl3831 > cap(yyv3831) { yyrg3831 := len(yyv3831) > 0 yyv23831 := yyv3831 yyrl3831, yyrt3831 = z.DecInferLen(yyl3831, z.DecBasicHandle().MaxInitLen, 48) if yyrt3831 { if yyrl3831 <= cap(yyv3831) { yyv3831 = yyv3831[:yyrl3831] } else { yyv3831 = make([]DownwardAPIVolumeFile, yyrl3831) } } else { yyv3831 = make([]DownwardAPIVolumeFile, yyrl3831) } yyc3831 = true yyrr3831 = len(yyv3831) if yyrg3831 { copy(yyv3831, yyv23831) } } else if yyl3831 != len(yyv3831) { yyv3831 = yyv3831[:yyl3831] yyc3831 = true } yyj3831 := 0 for ; yyj3831 < yyrr3831; yyj3831++ { yyh3831.ElemContainerState(yyj3831) if r.TryDecodeAsNil() { yyv3831[yyj3831] = DownwardAPIVolumeFile{} } else { yyv3832 := &yyv3831[yyj3831] yyv3832.CodecDecodeSelf(d) } } if yyrt3831 { for ; yyj3831 < yyl3831; yyj3831++ { yyv3831 = append(yyv3831, DownwardAPIVolumeFile{}) yyh3831.ElemContainerState(yyj3831) if r.TryDecodeAsNil() { yyv3831[yyj3831] = DownwardAPIVolumeFile{} } else { yyv3833 := &yyv3831[yyj3831] yyv3833.CodecDecodeSelf(d) } } } } else { yyj3831 := 0 for ; !r.CheckBreak(); yyj3831++ { if yyj3831 >= len(yyv3831) { yyv3831 = append(yyv3831, DownwardAPIVolumeFile{}) // var yyz3831 DownwardAPIVolumeFile yyc3831 = true } yyh3831.ElemContainerState(yyj3831) if yyj3831 < len(yyv3831) { if r.TryDecodeAsNil() { yyv3831[yyj3831] = DownwardAPIVolumeFile{} } else { yyv3834 := &yyv3831[yyj3831] yyv3834.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3831 < len(yyv3831) { yyv3831 = yyv3831[:yyj3831] yyc3831 = true } else if yyj3831 == 0 && yyv3831 == nil { yyv3831 = []DownwardAPIVolumeFile{} yyc3831 = true } } yyh3831.End() if yyc3831 { *v = yyv3831 } } func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv3835 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3836 := &yyv3835 yy3836.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3837 := *v yyh3837, yyl3837 := z.DecSliceHelperStart() var yyc3837 bool if yyl3837 == 0 { if yyv3837 == nil { yyv3837 = []HTTPHeader{} yyc3837 = true } else if len(yyv3837) != 0 { yyv3837 = yyv3837[:0] yyc3837 = true } } else if yyl3837 > 0 { var yyrr3837, yyrl3837 int var yyrt3837 bool if yyl3837 > cap(yyv3837) { yyrg3837 := len(yyv3837) > 0 yyv23837 := yyv3837 yyrl3837, yyrt3837 = z.DecInferLen(yyl3837, z.DecBasicHandle().MaxInitLen, 32) if yyrt3837 { if yyrl3837 <= cap(yyv3837) { yyv3837 = yyv3837[:yyrl3837] } else { yyv3837 = make([]HTTPHeader, yyrl3837) } } else { yyv3837 = make([]HTTPHeader, yyrl3837) } yyc3837 = true yyrr3837 = len(yyv3837) if yyrg3837 { copy(yyv3837, yyv23837) } } else if yyl3837 != len(yyv3837) { yyv3837 = yyv3837[:yyl3837] yyc3837 = true } yyj3837 := 0 for ; yyj3837 < yyrr3837; yyj3837++ { yyh3837.ElemContainerState(yyj3837) if r.TryDecodeAsNil() { yyv3837[yyj3837] = HTTPHeader{} } else { yyv3838 := &yyv3837[yyj3837] yyv3838.CodecDecodeSelf(d) } } if yyrt3837 { for ; yyj3837 < yyl3837; yyj3837++ { yyv3837 = append(yyv3837, HTTPHeader{}) yyh3837.ElemContainerState(yyj3837) if r.TryDecodeAsNil() { yyv3837[yyj3837] = HTTPHeader{} } else { yyv3839 := &yyv3837[yyj3837] yyv3839.CodecDecodeSelf(d) } } } } else { yyj3837 := 0 for ; !r.CheckBreak(); yyj3837++ { if yyj3837 >= len(yyv3837) { yyv3837 = append(yyv3837, HTTPHeader{}) // var yyz3837 HTTPHeader yyc3837 = true } yyh3837.ElemContainerState(yyj3837) if yyj3837 < len(yyv3837) { if r.TryDecodeAsNil() { yyv3837[yyj3837] = HTTPHeader{} } else { yyv3840 := &yyv3837[yyj3837] yyv3840.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3837 < len(yyv3837) { yyv3837 = yyv3837[:yyj3837] yyc3837 = true } else if yyj3837 == 0 && yyv3837 == nil { yyv3837 = []HTTPHeader{} yyc3837 = true } } yyh3837.End() if yyc3837 { *v = yyv3837 } } 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 _, yyv3841 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3841.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 yyv3842 := *v yyh3842, yyl3842 := z.DecSliceHelperStart() var yyc3842 bool if yyl3842 == 0 { if yyv3842 == nil { yyv3842 = []Capability{} yyc3842 = true } else if len(yyv3842) != 0 { yyv3842 = yyv3842[:0] yyc3842 = true } } else if yyl3842 > 0 { var yyrr3842, yyrl3842 int var yyrt3842 bool if yyl3842 > cap(yyv3842) { yyrl3842, yyrt3842 = z.DecInferLen(yyl3842, z.DecBasicHandle().MaxInitLen, 16) if yyrt3842 { if yyrl3842 <= cap(yyv3842) { yyv3842 = yyv3842[:yyrl3842] } else { yyv3842 = make([]Capability, yyrl3842) } } else { yyv3842 = make([]Capability, yyrl3842) } yyc3842 = true yyrr3842 = len(yyv3842) } else if yyl3842 != len(yyv3842) { yyv3842 = yyv3842[:yyl3842] yyc3842 = true } yyj3842 := 0 for ; yyj3842 < yyrr3842; yyj3842++ { yyh3842.ElemContainerState(yyj3842) if r.TryDecodeAsNil() { yyv3842[yyj3842] = "" } else { yyv3842[yyj3842] = Capability(r.DecodeString()) } } if yyrt3842 { for ; yyj3842 < yyl3842; yyj3842++ { yyv3842 = append(yyv3842, "") yyh3842.ElemContainerState(yyj3842) if r.TryDecodeAsNil() { yyv3842[yyj3842] = "" } else { yyv3842[yyj3842] = Capability(r.DecodeString()) } } } } else { yyj3842 := 0 for ; !r.CheckBreak(); yyj3842++ { if yyj3842 >= len(yyv3842) { yyv3842 = append(yyv3842, "") // var yyz3842 Capability yyc3842 = true } yyh3842.ElemContainerState(yyj3842) if yyj3842 < len(yyv3842) { if r.TryDecodeAsNil() { yyv3842[yyj3842] = "" } else { yyv3842[yyj3842] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3842 < len(yyv3842) { yyv3842 = yyv3842[:yyj3842] yyc3842 = true } else if yyj3842 == 0 && yyv3842 == nil { yyv3842 = []Capability{} yyc3842 = true } } yyh3842.End() if yyc3842 { *v = yyv3842 } } 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 _, yyv3846 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3847 := &yyv3846 yy3847.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 yyv3848 := *v yyh3848, yyl3848 := z.DecSliceHelperStart() var yyc3848 bool if yyl3848 == 0 { if yyv3848 == nil { yyv3848 = []ContainerPort{} yyc3848 = true } else if len(yyv3848) != 0 { yyv3848 = yyv3848[:0] yyc3848 = true } } else if yyl3848 > 0 { var yyrr3848, yyrl3848 int var yyrt3848 bool if yyl3848 > cap(yyv3848) { yyrg3848 := len(yyv3848) > 0 yyv23848 := yyv3848 yyrl3848, yyrt3848 = z.DecInferLen(yyl3848, z.DecBasicHandle().MaxInitLen, 64) if yyrt3848 { if yyrl3848 <= cap(yyv3848) { yyv3848 = yyv3848[:yyrl3848] } else { yyv3848 = make([]ContainerPort, yyrl3848) } } else { yyv3848 = make([]ContainerPort, yyrl3848) } yyc3848 = true yyrr3848 = len(yyv3848) if yyrg3848 { copy(yyv3848, yyv23848) } } else if yyl3848 != len(yyv3848) { yyv3848 = yyv3848[:yyl3848] yyc3848 = true } yyj3848 := 0 for ; yyj3848 < yyrr3848; yyj3848++ { yyh3848.ElemContainerState(yyj3848) if r.TryDecodeAsNil() { yyv3848[yyj3848] = ContainerPort{} } else { yyv3849 := &yyv3848[yyj3848] yyv3849.CodecDecodeSelf(d) } } if yyrt3848 { for ; yyj3848 < yyl3848; yyj3848++ { yyv3848 = append(yyv3848, ContainerPort{}) yyh3848.ElemContainerState(yyj3848) if r.TryDecodeAsNil() { yyv3848[yyj3848] = ContainerPort{} } else { yyv3850 := &yyv3848[yyj3848] yyv3850.CodecDecodeSelf(d) } } } } else { yyj3848 := 0 for ; !r.CheckBreak(); yyj3848++ { if yyj3848 >= len(yyv3848) { yyv3848 = append(yyv3848, ContainerPort{}) // var yyz3848 ContainerPort yyc3848 = true } yyh3848.ElemContainerState(yyj3848) if yyj3848 < len(yyv3848) { if r.TryDecodeAsNil() { yyv3848[yyj3848] = ContainerPort{} } else { yyv3851 := &yyv3848[yyj3848] yyv3851.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3848 < len(yyv3848) { yyv3848 = yyv3848[:yyj3848] yyc3848 = true } else if yyj3848 == 0 && yyv3848 == nil { yyv3848 = []ContainerPort{} yyc3848 = true } } yyh3848.End() if yyc3848 { *v = yyv3848 } } 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 _, yyv3852 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3853 := &yyv3852 yy3853.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 yyv3854 := *v yyh3854, yyl3854 := z.DecSliceHelperStart() var yyc3854 bool if yyl3854 == 0 { if yyv3854 == nil { yyv3854 = []EnvVar{} yyc3854 = true } else if len(yyv3854) != 0 { yyv3854 = yyv3854[:0] yyc3854 = true } } else if yyl3854 > 0 { var yyrr3854, yyrl3854 int var yyrt3854 bool if yyl3854 > cap(yyv3854) { yyrg3854 := len(yyv3854) > 0 yyv23854 := yyv3854 yyrl3854, yyrt3854 = z.DecInferLen(yyl3854, z.DecBasicHandle().MaxInitLen, 40) if yyrt3854 { if yyrl3854 <= cap(yyv3854) { yyv3854 = yyv3854[:yyrl3854] } else { yyv3854 = make([]EnvVar, yyrl3854) } } else { yyv3854 = make([]EnvVar, yyrl3854) } yyc3854 = true yyrr3854 = len(yyv3854) if yyrg3854 { copy(yyv3854, yyv23854) } } else if yyl3854 != len(yyv3854) { yyv3854 = yyv3854[:yyl3854] yyc3854 = true } yyj3854 := 0 for ; yyj3854 < yyrr3854; yyj3854++ { yyh3854.ElemContainerState(yyj3854) if r.TryDecodeAsNil() { yyv3854[yyj3854] = EnvVar{} } else { yyv3855 := &yyv3854[yyj3854] yyv3855.CodecDecodeSelf(d) } } if yyrt3854 { for ; yyj3854 < yyl3854; yyj3854++ { yyv3854 = append(yyv3854, EnvVar{}) yyh3854.ElemContainerState(yyj3854) if r.TryDecodeAsNil() { yyv3854[yyj3854] = EnvVar{} } else { yyv3856 := &yyv3854[yyj3854] yyv3856.CodecDecodeSelf(d) } } } } else { yyj3854 := 0 for ; !r.CheckBreak(); yyj3854++ { if yyj3854 >= len(yyv3854) { yyv3854 = append(yyv3854, EnvVar{}) // var yyz3854 EnvVar yyc3854 = true } yyh3854.ElemContainerState(yyj3854) if yyj3854 < len(yyv3854) { if r.TryDecodeAsNil() { yyv3854[yyj3854] = EnvVar{} } else { yyv3857 := &yyv3854[yyj3854] yyv3857.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3854 < len(yyv3854) { yyv3854 = yyv3854[:yyj3854] yyc3854 = true } else if yyj3854 == 0 && yyv3854 == nil { yyv3854 = []EnvVar{} yyc3854 = true } } yyh3854.End() if yyc3854 { *v = yyv3854 } } 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 _, yyv3858 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3859 := &yyv3858 yy3859.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 yyv3860 := *v yyh3860, yyl3860 := z.DecSliceHelperStart() var yyc3860 bool if yyl3860 == 0 { if yyv3860 == nil { yyv3860 = []VolumeMount{} yyc3860 = true } else if len(yyv3860) != 0 { yyv3860 = yyv3860[:0] yyc3860 = true } } else if yyl3860 > 0 { var yyrr3860, yyrl3860 int var yyrt3860 bool if yyl3860 > cap(yyv3860) { yyrg3860 := len(yyv3860) > 0 yyv23860 := yyv3860 yyrl3860, yyrt3860 = z.DecInferLen(yyl3860, z.DecBasicHandle().MaxInitLen, 40) if yyrt3860 { if yyrl3860 <= cap(yyv3860) { yyv3860 = yyv3860[:yyrl3860] } else { yyv3860 = make([]VolumeMount, yyrl3860) } } else { yyv3860 = make([]VolumeMount, yyrl3860) } yyc3860 = true yyrr3860 = len(yyv3860) if yyrg3860 { copy(yyv3860, yyv23860) } } else if yyl3860 != len(yyv3860) { yyv3860 = yyv3860[:yyl3860] yyc3860 = true } yyj3860 := 0 for ; yyj3860 < yyrr3860; yyj3860++ { yyh3860.ElemContainerState(yyj3860) if r.TryDecodeAsNil() { yyv3860[yyj3860] = VolumeMount{} } else { yyv3861 := &yyv3860[yyj3860] yyv3861.CodecDecodeSelf(d) } } if yyrt3860 { for ; yyj3860 < yyl3860; yyj3860++ { yyv3860 = append(yyv3860, VolumeMount{}) yyh3860.ElemContainerState(yyj3860) if r.TryDecodeAsNil() { yyv3860[yyj3860] = VolumeMount{} } else { yyv3862 := &yyv3860[yyj3860] yyv3862.CodecDecodeSelf(d) } } } } else { yyj3860 := 0 for ; !r.CheckBreak(); yyj3860++ { if yyj3860 >= len(yyv3860) { yyv3860 = append(yyv3860, VolumeMount{}) // var yyz3860 VolumeMount yyc3860 = true } yyh3860.ElemContainerState(yyj3860) if yyj3860 < len(yyv3860) { if r.TryDecodeAsNil() { yyv3860[yyj3860] = VolumeMount{} } else { yyv3863 := &yyv3860[yyj3860] yyv3863.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3860 < len(yyv3860) { yyv3860 = yyv3860[:yyj3860] yyc3860 = true } else if yyj3860 == 0 && yyv3860 == nil { yyv3860 = []VolumeMount{} yyc3860 = true } } yyh3860.End() if yyc3860 { *v = yyv3860 } } 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 _, yyv3864 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3865 := &yyv3864 yy3865.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 yyv3866 := *v yyh3866, yyl3866 := z.DecSliceHelperStart() var yyc3866 bool if yyl3866 == 0 { if yyv3866 == nil { yyv3866 = []Pod{} yyc3866 = true } else if len(yyv3866) != 0 { yyv3866 = yyv3866[:0] yyc3866 = true } } else if yyl3866 > 0 { var yyrr3866, yyrl3866 int var yyrt3866 bool if yyl3866 > cap(yyv3866) { yyrg3866 := len(yyv3866) > 0 yyv23866 := yyv3866 yyrl3866, yyrt3866 = z.DecInferLen(yyl3866, z.DecBasicHandle().MaxInitLen, 496) if yyrt3866 { if yyrl3866 <= cap(yyv3866) { yyv3866 = yyv3866[:yyrl3866] } else { yyv3866 = make([]Pod, yyrl3866) } } else { yyv3866 = make([]Pod, yyrl3866) } yyc3866 = true yyrr3866 = len(yyv3866) if yyrg3866 { copy(yyv3866, yyv23866) } } else if yyl3866 != len(yyv3866) { yyv3866 = yyv3866[:yyl3866] yyc3866 = true } yyj3866 := 0 for ; yyj3866 < yyrr3866; yyj3866++ { yyh3866.ElemContainerState(yyj3866) if r.TryDecodeAsNil() { yyv3866[yyj3866] = Pod{} } else { yyv3867 := &yyv3866[yyj3866] yyv3867.CodecDecodeSelf(d) } } if yyrt3866 { for ; yyj3866 < yyl3866; yyj3866++ { yyv3866 = append(yyv3866, Pod{}) yyh3866.ElemContainerState(yyj3866) if r.TryDecodeAsNil() { yyv3866[yyj3866] = Pod{} } else { yyv3868 := &yyv3866[yyj3866] yyv3868.CodecDecodeSelf(d) } } } } else { yyj3866 := 0 for ; !r.CheckBreak(); yyj3866++ { if yyj3866 >= len(yyv3866) { yyv3866 = append(yyv3866, Pod{}) // var yyz3866 Pod yyc3866 = true } yyh3866.ElemContainerState(yyj3866) if yyj3866 < len(yyv3866) { if r.TryDecodeAsNil() { yyv3866[yyj3866] = Pod{} } else { yyv3869 := &yyv3866[yyj3866] yyv3869.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3866 < len(yyv3866) { yyv3866 = yyv3866[:yyj3866] yyc3866 = true } else if yyj3866 == 0 && yyv3866 == nil { yyv3866 = []Pod{} yyc3866 = true } } yyh3866.End() if yyc3866 { *v = yyv3866 } } func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv3870 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3871 := &yyv3870 yy3871.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3872 := *v yyh3872, yyl3872 := z.DecSliceHelperStart() var yyc3872 bool if yyl3872 == 0 { if yyv3872 == nil { yyv3872 = []NodeSelectorTerm{} yyc3872 = true } else if len(yyv3872) != 0 { yyv3872 = yyv3872[:0] yyc3872 = true } } else if yyl3872 > 0 { var yyrr3872, yyrl3872 int var yyrt3872 bool if yyl3872 > cap(yyv3872) { yyrg3872 := len(yyv3872) > 0 yyv23872 := yyv3872 yyrl3872, yyrt3872 = z.DecInferLen(yyl3872, z.DecBasicHandle().MaxInitLen, 24) if yyrt3872 { if yyrl3872 <= cap(yyv3872) { yyv3872 = yyv3872[:yyrl3872] } else { yyv3872 = make([]NodeSelectorTerm, yyrl3872) } } else { yyv3872 = make([]NodeSelectorTerm, yyrl3872) } yyc3872 = true yyrr3872 = len(yyv3872) if yyrg3872 { copy(yyv3872, yyv23872) } } else if yyl3872 != len(yyv3872) { yyv3872 = yyv3872[:yyl3872] yyc3872 = true } yyj3872 := 0 for ; yyj3872 < yyrr3872; yyj3872++ { yyh3872.ElemContainerState(yyj3872) if r.TryDecodeAsNil() { yyv3872[yyj3872] = NodeSelectorTerm{} } else { yyv3873 := &yyv3872[yyj3872] yyv3873.CodecDecodeSelf(d) } } if yyrt3872 { for ; yyj3872 < yyl3872; yyj3872++ { yyv3872 = append(yyv3872, NodeSelectorTerm{}) yyh3872.ElemContainerState(yyj3872) if r.TryDecodeAsNil() { yyv3872[yyj3872] = NodeSelectorTerm{} } else { yyv3874 := &yyv3872[yyj3872] yyv3874.CodecDecodeSelf(d) } } } } else { yyj3872 := 0 for ; !r.CheckBreak(); yyj3872++ { if yyj3872 >= len(yyv3872) { yyv3872 = append(yyv3872, NodeSelectorTerm{}) // var yyz3872 NodeSelectorTerm yyc3872 = true } yyh3872.ElemContainerState(yyj3872) if yyj3872 < len(yyv3872) { if r.TryDecodeAsNil() { yyv3872[yyj3872] = NodeSelectorTerm{} } else { yyv3875 := &yyv3872[yyj3872] yyv3875.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3872 < len(yyv3872) { yyv3872 = yyv3872[:yyj3872] yyc3872 = true } else if yyj3872 == 0 && yyv3872 == nil { yyv3872 = []NodeSelectorTerm{} yyc3872 = true } } yyh3872.End() if yyc3872 { *v = yyv3872 } } func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv3876 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3877 := &yyv3876 yy3877.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3878 := *v yyh3878, yyl3878 := z.DecSliceHelperStart() var yyc3878 bool if yyl3878 == 0 { if yyv3878 == nil { yyv3878 = []NodeSelectorRequirement{} yyc3878 = true } else if len(yyv3878) != 0 { yyv3878 = yyv3878[:0] yyc3878 = true } } else if yyl3878 > 0 { var yyrr3878, yyrl3878 int var yyrt3878 bool if yyl3878 > cap(yyv3878) { yyrg3878 := len(yyv3878) > 0 yyv23878 := yyv3878 yyrl3878, yyrt3878 = z.DecInferLen(yyl3878, z.DecBasicHandle().MaxInitLen, 56) if yyrt3878 { if yyrl3878 <= cap(yyv3878) { yyv3878 = yyv3878[:yyrl3878] } else { yyv3878 = make([]NodeSelectorRequirement, yyrl3878) } } else { yyv3878 = make([]NodeSelectorRequirement, yyrl3878) } yyc3878 = true yyrr3878 = len(yyv3878) if yyrg3878 { copy(yyv3878, yyv23878) } } else if yyl3878 != len(yyv3878) { yyv3878 = yyv3878[:yyl3878] yyc3878 = true } yyj3878 := 0 for ; yyj3878 < yyrr3878; yyj3878++ { yyh3878.ElemContainerState(yyj3878) if r.TryDecodeAsNil() { yyv3878[yyj3878] = NodeSelectorRequirement{} } else { yyv3879 := &yyv3878[yyj3878] yyv3879.CodecDecodeSelf(d) } } if yyrt3878 { for ; yyj3878 < yyl3878; yyj3878++ { yyv3878 = append(yyv3878, NodeSelectorRequirement{}) yyh3878.ElemContainerState(yyj3878) if r.TryDecodeAsNil() { yyv3878[yyj3878] = NodeSelectorRequirement{} } else { yyv3880 := &yyv3878[yyj3878] yyv3880.CodecDecodeSelf(d) } } } } else { yyj3878 := 0 for ; !r.CheckBreak(); yyj3878++ { if yyj3878 >= len(yyv3878) { yyv3878 = append(yyv3878, NodeSelectorRequirement{}) // var yyz3878 NodeSelectorRequirement yyc3878 = true } yyh3878.ElemContainerState(yyj3878) if yyj3878 < len(yyv3878) { if r.TryDecodeAsNil() { yyv3878[yyj3878] = NodeSelectorRequirement{} } else { yyv3881 := &yyv3878[yyj3878] yyv3881.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3878 < len(yyv3878) { yyv3878 = yyv3878[:yyj3878] yyc3878 = true } else if yyj3878 == 0 && yyv3878 == nil { yyv3878 = []NodeSelectorRequirement{} yyc3878 = true } } yyh3878.End() if yyc3878 { *v = yyv3878 } } func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv3882 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3883 := &yyv3882 yy3883.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3884 := *v yyh3884, yyl3884 := z.DecSliceHelperStart() var yyc3884 bool if yyl3884 == 0 { if yyv3884 == nil { yyv3884 = []PreferredSchedulingTerm{} yyc3884 = true } else if len(yyv3884) != 0 { yyv3884 = yyv3884[:0] yyc3884 = true } } else if yyl3884 > 0 { var yyrr3884, yyrl3884 int var yyrt3884 bool if yyl3884 > cap(yyv3884) { yyrg3884 := len(yyv3884) > 0 yyv23884 := yyv3884 yyrl3884, yyrt3884 = z.DecInferLen(yyl3884, z.DecBasicHandle().MaxInitLen, 32) if yyrt3884 { if yyrl3884 <= cap(yyv3884) { yyv3884 = yyv3884[:yyrl3884] } else { yyv3884 = make([]PreferredSchedulingTerm, yyrl3884) } } else { yyv3884 = make([]PreferredSchedulingTerm, yyrl3884) } yyc3884 = true yyrr3884 = len(yyv3884) if yyrg3884 { copy(yyv3884, yyv23884) } } else if yyl3884 != len(yyv3884) { yyv3884 = yyv3884[:yyl3884] yyc3884 = true } yyj3884 := 0 for ; yyj3884 < yyrr3884; yyj3884++ { yyh3884.ElemContainerState(yyj3884) if r.TryDecodeAsNil() { yyv3884[yyj3884] = PreferredSchedulingTerm{} } else { yyv3885 := &yyv3884[yyj3884] yyv3885.CodecDecodeSelf(d) } } if yyrt3884 { for ; yyj3884 < yyl3884; yyj3884++ { yyv3884 = append(yyv3884, PreferredSchedulingTerm{}) yyh3884.ElemContainerState(yyj3884) if r.TryDecodeAsNil() { yyv3884[yyj3884] = PreferredSchedulingTerm{} } else { yyv3886 := &yyv3884[yyj3884] yyv3886.CodecDecodeSelf(d) } } } } else { yyj3884 := 0 for ; !r.CheckBreak(); yyj3884++ { if yyj3884 >= len(yyv3884) { yyv3884 = append(yyv3884, PreferredSchedulingTerm{}) // var yyz3884 PreferredSchedulingTerm yyc3884 = true } yyh3884.ElemContainerState(yyj3884) if yyj3884 < len(yyv3884) { if r.TryDecodeAsNil() { yyv3884[yyj3884] = PreferredSchedulingTerm{} } else { yyv3887 := &yyv3884[yyj3884] yyv3887.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3884 < len(yyv3884) { yyv3884 = yyv3884[:yyj3884] yyc3884 = true } else if yyj3884 == 0 && yyv3884 == nil { yyv3884 = []PreferredSchedulingTerm{} yyc3884 = true } } yyh3884.End() if yyc3884 { *v = yyv3884 } } 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 _, yyv3888 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3889 := &yyv3888 yy3889.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 yyv3890 := *v yyh3890, yyl3890 := z.DecSliceHelperStart() var yyc3890 bool if yyl3890 == 0 { if yyv3890 == nil { yyv3890 = []Volume{} yyc3890 = true } else if len(yyv3890) != 0 { yyv3890 = yyv3890[:0] yyc3890 = true } } else if yyl3890 > 0 { var yyrr3890, yyrl3890 int var yyrt3890 bool if yyl3890 > cap(yyv3890) { yyrg3890 := len(yyv3890) > 0 yyv23890 := yyv3890 yyrl3890, yyrt3890 = z.DecInferLen(yyl3890, z.DecBasicHandle().MaxInitLen, 152) if yyrt3890 { if yyrl3890 <= cap(yyv3890) { yyv3890 = yyv3890[:yyrl3890] } else { yyv3890 = make([]Volume, yyrl3890) } } else { yyv3890 = make([]Volume, yyrl3890) } yyc3890 = true yyrr3890 = len(yyv3890) if yyrg3890 { copy(yyv3890, yyv23890) } } else if yyl3890 != len(yyv3890) { yyv3890 = yyv3890[:yyl3890] yyc3890 = true } yyj3890 := 0 for ; yyj3890 < yyrr3890; yyj3890++ { yyh3890.ElemContainerState(yyj3890) if r.TryDecodeAsNil() { yyv3890[yyj3890] = Volume{} } else { yyv3891 := &yyv3890[yyj3890] yyv3891.CodecDecodeSelf(d) } } if yyrt3890 { for ; yyj3890 < yyl3890; yyj3890++ { yyv3890 = append(yyv3890, Volume{}) yyh3890.ElemContainerState(yyj3890) if r.TryDecodeAsNil() { yyv3890[yyj3890] = Volume{} } else { yyv3892 := &yyv3890[yyj3890] yyv3892.CodecDecodeSelf(d) } } } } else { yyj3890 := 0 for ; !r.CheckBreak(); yyj3890++ { if yyj3890 >= len(yyv3890) { yyv3890 = append(yyv3890, Volume{}) // var yyz3890 Volume yyc3890 = true } yyh3890.ElemContainerState(yyj3890) if yyj3890 < len(yyv3890) { if r.TryDecodeAsNil() { yyv3890[yyj3890] = Volume{} } else { yyv3893 := &yyv3890[yyj3890] yyv3893.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3890 < len(yyv3890) { yyv3890 = yyv3890[:yyj3890] yyc3890 = true } else if yyj3890 == 0 && yyv3890 == nil { yyv3890 = []Volume{} yyc3890 = true } } yyh3890.End() if yyc3890 { *v = yyv3890 } } 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 _, yyv3894 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3895 := &yyv3894 yy3895.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 yyv3896 := *v yyh3896, yyl3896 := z.DecSliceHelperStart() var yyc3896 bool if yyl3896 == 0 { if yyv3896 == nil { yyv3896 = []Container{} yyc3896 = true } else if len(yyv3896) != 0 { yyv3896 = yyv3896[:0] yyc3896 = true } } else if yyl3896 > 0 { var yyrr3896, yyrl3896 int var yyrt3896 bool if yyl3896 > cap(yyv3896) { yyrg3896 := len(yyv3896) > 0 yyv23896 := yyv3896 yyrl3896, yyrt3896 = z.DecInferLen(yyl3896, z.DecBasicHandle().MaxInitLen, 256) if yyrt3896 { if yyrl3896 <= cap(yyv3896) { yyv3896 = yyv3896[:yyrl3896] } else { yyv3896 = make([]Container, yyrl3896) } } else { yyv3896 = make([]Container, yyrl3896) } yyc3896 = true yyrr3896 = len(yyv3896) if yyrg3896 { copy(yyv3896, yyv23896) } } else if yyl3896 != len(yyv3896) { yyv3896 = yyv3896[:yyl3896] yyc3896 = true } yyj3896 := 0 for ; yyj3896 < yyrr3896; yyj3896++ { yyh3896.ElemContainerState(yyj3896) if r.TryDecodeAsNil() { yyv3896[yyj3896] = Container{} } else { yyv3897 := &yyv3896[yyj3896] yyv3897.CodecDecodeSelf(d) } } if yyrt3896 { for ; yyj3896 < yyl3896; yyj3896++ { yyv3896 = append(yyv3896, Container{}) yyh3896.ElemContainerState(yyj3896) if r.TryDecodeAsNil() { yyv3896[yyj3896] = Container{} } else { yyv3898 := &yyv3896[yyj3896] yyv3898.CodecDecodeSelf(d) } } } } else { yyj3896 := 0 for ; !r.CheckBreak(); yyj3896++ { if yyj3896 >= len(yyv3896) { yyv3896 = append(yyv3896, Container{}) // var yyz3896 Container yyc3896 = true } yyh3896.ElemContainerState(yyj3896) if yyj3896 < len(yyv3896) { if r.TryDecodeAsNil() { yyv3896[yyj3896] = Container{} } else { yyv3899 := &yyv3896[yyj3896] yyv3899.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3896 < len(yyv3896) { yyv3896 = yyv3896[:yyj3896] yyc3896 = true } else if yyj3896 == 0 && yyv3896 == nil { yyv3896 = []Container{} yyc3896 = true } } yyh3896.End() if yyc3896 { *v = yyv3896 } } 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 _, yyv3900 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3901 := &yyv3900 yy3901.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 yyv3902 := *v yyh3902, yyl3902 := z.DecSliceHelperStart() var yyc3902 bool if yyl3902 == 0 { if yyv3902 == nil { yyv3902 = []LocalObjectReference{} yyc3902 = true } else if len(yyv3902) != 0 { yyv3902 = yyv3902[:0] yyc3902 = true } } else if yyl3902 > 0 { var yyrr3902, yyrl3902 int var yyrt3902 bool if yyl3902 > cap(yyv3902) { yyrg3902 := len(yyv3902) > 0 yyv23902 := yyv3902 yyrl3902, yyrt3902 = z.DecInferLen(yyl3902, z.DecBasicHandle().MaxInitLen, 16) if yyrt3902 { if yyrl3902 <= cap(yyv3902) { yyv3902 = yyv3902[:yyrl3902] } else { yyv3902 = make([]LocalObjectReference, yyrl3902) } } else { yyv3902 = make([]LocalObjectReference, yyrl3902) } yyc3902 = true yyrr3902 = len(yyv3902) if yyrg3902 { copy(yyv3902, yyv23902) } } else if yyl3902 != len(yyv3902) { yyv3902 = yyv3902[:yyl3902] yyc3902 = true } yyj3902 := 0 for ; yyj3902 < yyrr3902; yyj3902++ { yyh3902.ElemContainerState(yyj3902) if r.TryDecodeAsNil() { yyv3902[yyj3902] = LocalObjectReference{} } else { yyv3903 := &yyv3902[yyj3902] yyv3903.CodecDecodeSelf(d) } } if yyrt3902 { for ; yyj3902 < yyl3902; yyj3902++ { yyv3902 = append(yyv3902, LocalObjectReference{}) yyh3902.ElemContainerState(yyj3902) if r.TryDecodeAsNil() { yyv3902[yyj3902] = LocalObjectReference{} } else { yyv3904 := &yyv3902[yyj3902] yyv3904.CodecDecodeSelf(d) } } } } else { yyj3902 := 0 for ; !r.CheckBreak(); yyj3902++ { if yyj3902 >= len(yyv3902) { yyv3902 = append(yyv3902, LocalObjectReference{}) // var yyz3902 LocalObjectReference yyc3902 = true } yyh3902.ElemContainerState(yyj3902) if yyj3902 < len(yyv3902) { if r.TryDecodeAsNil() { yyv3902[yyj3902] = LocalObjectReference{} } else { yyv3905 := &yyv3902[yyj3902] yyv3905.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3902 < len(yyv3902) { yyv3902 = yyv3902[:yyj3902] yyc3902 = true } else if yyj3902 == 0 && yyv3902 == nil { yyv3902 = []LocalObjectReference{} yyc3902 = true } } yyh3902.End() if yyc3902 { *v = yyv3902 } } 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 _, yyv3906 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3907 := &yyv3906 yy3907.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 yyv3908 := *v yyh3908, yyl3908 := z.DecSliceHelperStart() var yyc3908 bool if yyl3908 == 0 { if yyv3908 == nil { yyv3908 = []PodCondition{} yyc3908 = true } else if len(yyv3908) != 0 { yyv3908 = yyv3908[:0] yyc3908 = true } } else if yyl3908 > 0 { var yyrr3908, yyrl3908 int var yyrt3908 bool if yyl3908 > cap(yyv3908) { yyrg3908 := len(yyv3908) > 0 yyv23908 := yyv3908 yyrl3908, yyrt3908 = z.DecInferLen(yyl3908, z.DecBasicHandle().MaxInitLen, 112) if yyrt3908 { if yyrl3908 <= cap(yyv3908) { yyv3908 = yyv3908[:yyrl3908] } else { yyv3908 = make([]PodCondition, yyrl3908) } } else { yyv3908 = make([]PodCondition, yyrl3908) } yyc3908 = true yyrr3908 = len(yyv3908) if yyrg3908 { copy(yyv3908, yyv23908) } } else if yyl3908 != len(yyv3908) { yyv3908 = yyv3908[:yyl3908] yyc3908 = true } yyj3908 := 0 for ; yyj3908 < yyrr3908; yyj3908++ { yyh3908.ElemContainerState(yyj3908) if r.TryDecodeAsNil() { yyv3908[yyj3908] = PodCondition{} } else { yyv3909 := &yyv3908[yyj3908] yyv3909.CodecDecodeSelf(d) } } if yyrt3908 { for ; yyj3908 < yyl3908; yyj3908++ { yyv3908 = append(yyv3908, PodCondition{}) yyh3908.ElemContainerState(yyj3908) if r.TryDecodeAsNil() { yyv3908[yyj3908] = PodCondition{} } else { yyv3910 := &yyv3908[yyj3908] yyv3910.CodecDecodeSelf(d) } } } } else { yyj3908 := 0 for ; !r.CheckBreak(); yyj3908++ { if yyj3908 >= len(yyv3908) { yyv3908 = append(yyv3908, PodCondition{}) // var yyz3908 PodCondition yyc3908 = true } yyh3908.ElemContainerState(yyj3908) if yyj3908 < len(yyv3908) { if r.TryDecodeAsNil() { yyv3908[yyj3908] = PodCondition{} } else { yyv3911 := &yyv3908[yyj3908] yyv3911.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3908 < len(yyv3908) { yyv3908 = yyv3908[:yyj3908] yyc3908 = true } else if yyj3908 == 0 && yyv3908 == nil { yyv3908 = []PodCondition{} yyc3908 = true } } yyh3908.End() if yyc3908 { *v = yyv3908 } } 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 _, yyv3912 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3913 := &yyv3912 yy3913.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 yyv3914 := *v yyh3914, yyl3914 := z.DecSliceHelperStart() var yyc3914 bool if yyl3914 == 0 { if yyv3914 == nil { yyv3914 = []ContainerStatus{} yyc3914 = true } else if len(yyv3914) != 0 { yyv3914 = yyv3914[:0] yyc3914 = true } } else if yyl3914 > 0 { var yyrr3914, yyrl3914 int var yyrt3914 bool if yyl3914 > cap(yyv3914) { yyrg3914 := len(yyv3914) > 0 yyv23914 := yyv3914 yyrl3914, yyrt3914 = z.DecInferLen(yyl3914, z.DecBasicHandle().MaxInitLen, 128) if yyrt3914 { if yyrl3914 <= cap(yyv3914) { yyv3914 = yyv3914[:yyrl3914] } else { yyv3914 = make([]ContainerStatus, yyrl3914) } } else { yyv3914 = make([]ContainerStatus, yyrl3914) } yyc3914 = true yyrr3914 = len(yyv3914) if yyrg3914 { copy(yyv3914, yyv23914) } } else if yyl3914 != len(yyv3914) { yyv3914 = yyv3914[:yyl3914] yyc3914 = true } yyj3914 := 0 for ; yyj3914 < yyrr3914; yyj3914++ { yyh3914.ElemContainerState(yyj3914) if r.TryDecodeAsNil() { yyv3914[yyj3914] = ContainerStatus{} } else { yyv3915 := &yyv3914[yyj3914] yyv3915.CodecDecodeSelf(d) } } if yyrt3914 { for ; yyj3914 < yyl3914; yyj3914++ { yyv3914 = append(yyv3914, ContainerStatus{}) yyh3914.ElemContainerState(yyj3914) if r.TryDecodeAsNil() { yyv3914[yyj3914] = ContainerStatus{} } else { yyv3916 := &yyv3914[yyj3914] yyv3916.CodecDecodeSelf(d) } } } } else { yyj3914 := 0 for ; !r.CheckBreak(); yyj3914++ { if yyj3914 >= len(yyv3914) { yyv3914 = append(yyv3914, ContainerStatus{}) // var yyz3914 ContainerStatus yyc3914 = true } yyh3914.ElemContainerState(yyj3914) if yyj3914 < len(yyv3914) { if r.TryDecodeAsNil() { yyv3914[yyj3914] = ContainerStatus{} } else { yyv3917 := &yyv3914[yyj3914] yyv3917.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3914 < len(yyv3914) { yyv3914 = yyv3914[:yyj3914] yyc3914 = true } else if yyj3914 == 0 && yyv3914 == nil { yyv3914 = []ContainerStatus{} yyc3914 = true } } yyh3914.End() if yyc3914 { *v = yyv3914 } } 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 _, yyv3918 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3919 := &yyv3918 yy3919.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 yyv3920 := *v yyh3920, yyl3920 := z.DecSliceHelperStart() var yyc3920 bool if yyl3920 == 0 { if yyv3920 == nil { yyv3920 = []PodTemplate{} yyc3920 = true } else if len(yyv3920) != 0 { yyv3920 = yyv3920[:0] yyc3920 = true } } else if yyl3920 > 0 { var yyrr3920, yyrl3920 int var yyrt3920 bool if yyl3920 > cap(yyv3920) { yyrg3920 := len(yyv3920) > 0 yyv23920 := yyv3920 yyrl3920, yyrt3920 = z.DecInferLen(yyl3920, z.DecBasicHandle().MaxInitLen, 520) if yyrt3920 { if yyrl3920 <= cap(yyv3920) { yyv3920 = yyv3920[:yyrl3920] } else { yyv3920 = make([]PodTemplate, yyrl3920) } } else { yyv3920 = make([]PodTemplate, yyrl3920) } yyc3920 = true yyrr3920 = len(yyv3920) if yyrg3920 { copy(yyv3920, yyv23920) } } else if yyl3920 != len(yyv3920) { yyv3920 = yyv3920[:yyl3920] yyc3920 = true } yyj3920 := 0 for ; yyj3920 < yyrr3920; yyj3920++ { yyh3920.ElemContainerState(yyj3920) if r.TryDecodeAsNil() { yyv3920[yyj3920] = PodTemplate{} } else { yyv3921 := &yyv3920[yyj3920] yyv3921.CodecDecodeSelf(d) } } if yyrt3920 { for ; yyj3920 < yyl3920; yyj3920++ { yyv3920 = append(yyv3920, PodTemplate{}) yyh3920.ElemContainerState(yyj3920) if r.TryDecodeAsNil() { yyv3920[yyj3920] = PodTemplate{} } else { yyv3922 := &yyv3920[yyj3920] yyv3922.CodecDecodeSelf(d) } } } } else { yyj3920 := 0 for ; !r.CheckBreak(); yyj3920++ { if yyj3920 >= len(yyv3920) { yyv3920 = append(yyv3920, PodTemplate{}) // var yyz3920 PodTemplate yyc3920 = true } yyh3920.ElemContainerState(yyj3920) if yyj3920 < len(yyv3920) { if r.TryDecodeAsNil() { yyv3920[yyj3920] = PodTemplate{} } else { yyv3923 := &yyv3920[yyj3920] yyv3923.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3920 < len(yyv3920) { yyv3920 = yyv3920[:yyj3920] yyc3920 = true } else if yyj3920 == 0 && yyv3920 == nil { yyv3920 = []PodTemplate{} yyc3920 = true } } yyh3920.End() if yyc3920 { *v = yyv3920 } } 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 _, yyv3924 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3925 := &yyv3924 yy3925.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 yyv3926 := *v yyh3926, yyl3926 := z.DecSliceHelperStart() var yyc3926 bool if yyl3926 == 0 { if yyv3926 == nil { yyv3926 = []ReplicationController{} yyc3926 = true } else if len(yyv3926) != 0 { yyv3926 = yyv3926[:0] yyc3926 = true } } else if yyl3926 > 0 { var yyrr3926, yyrl3926 int var yyrt3926 bool if yyl3926 > cap(yyv3926) { yyrg3926 := len(yyv3926) > 0 yyv23926 := yyv3926 yyrl3926, yyrt3926 = z.DecInferLen(yyl3926, z.DecBasicHandle().MaxInitLen, 232) if yyrt3926 { if yyrl3926 <= cap(yyv3926) { yyv3926 = yyv3926[:yyrl3926] } else { yyv3926 = make([]ReplicationController, yyrl3926) } } else { yyv3926 = make([]ReplicationController, yyrl3926) } yyc3926 = true yyrr3926 = len(yyv3926) if yyrg3926 { copy(yyv3926, yyv23926) } } else if yyl3926 != len(yyv3926) { yyv3926 = yyv3926[:yyl3926] yyc3926 = true } yyj3926 := 0 for ; yyj3926 < yyrr3926; yyj3926++ { yyh3926.ElemContainerState(yyj3926) if r.TryDecodeAsNil() { yyv3926[yyj3926] = ReplicationController{} } else { yyv3927 := &yyv3926[yyj3926] yyv3927.CodecDecodeSelf(d) } } if yyrt3926 { for ; yyj3926 < yyl3926; yyj3926++ { yyv3926 = append(yyv3926, ReplicationController{}) yyh3926.ElemContainerState(yyj3926) if r.TryDecodeAsNil() { yyv3926[yyj3926] = ReplicationController{} } else { yyv3928 := &yyv3926[yyj3926] yyv3928.CodecDecodeSelf(d) } } } } else { yyj3926 := 0 for ; !r.CheckBreak(); yyj3926++ { if yyj3926 >= len(yyv3926) { yyv3926 = append(yyv3926, ReplicationController{}) // var yyz3926 ReplicationController yyc3926 = true } yyh3926.ElemContainerState(yyj3926) if yyj3926 < len(yyv3926) { if r.TryDecodeAsNil() { yyv3926[yyj3926] = ReplicationController{} } else { yyv3929 := &yyv3926[yyj3926] yyv3929.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3926 < len(yyv3926) { yyv3926 = yyv3926[:yyj3926] yyc3926 = true } else if yyj3926 == 0 && yyv3926 == nil { yyv3926 = []ReplicationController{} yyc3926 = true } } yyh3926.End() if yyc3926 { *v = yyv3926 } } 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 _, yyv3930 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3931 := &yyv3930 yy3931.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 yyv3932 := *v yyh3932, yyl3932 := z.DecSliceHelperStart() var yyc3932 bool if yyl3932 == 0 { if yyv3932 == nil { yyv3932 = []Service{} yyc3932 = true } else if len(yyv3932) != 0 { yyv3932 = yyv3932[:0] yyc3932 = true } } else if yyl3932 > 0 { var yyrr3932, yyrl3932 int var yyrt3932 bool if yyl3932 > cap(yyv3932) { yyrg3932 := len(yyv3932) > 0 yyv23932 := yyv3932 yyrl3932, yyrt3932 = z.DecInferLen(yyl3932, z.DecBasicHandle().MaxInitLen, 336) if yyrt3932 { if yyrl3932 <= cap(yyv3932) { yyv3932 = yyv3932[:yyrl3932] } else { yyv3932 = make([]Service, yyrl3932) } } else { yyv3932 = make([]Service, yyrl3932) } yyc3932 = true yyrr3932 = len(yyv3932) if yyrg3932 { copy(yyv3932, yyv23932) } } else if yyl3932 != len(yyv3932) { yyv3932 = yyv3932[:yyl3932] yyc3932 = true } yyj3932 := 0 for ; yyj3932 < yyrr3932; yyj3932++ { yyh3932.ElemContainerState(yyj3932) if r.TryDecodeAsNil() { yyv3932[yyj3932] = Service{} } else { yyv3933 := &yyv3932[yyj3932] yyv3933.CodecDecodeSelf(d) } } if yyrt3932 { for ; yyj3932 < yyl3932; yyj3932++ { yyv3932 = append(yyv3932, Service{}) yyh3932.ElemContainerState(yyj3932) if r.TryDecodeAsNil() { yyv3932[yyj3932] = Service{} } else { yyv3934 := &yyv3932[yyj3932] yyv3934.CodecDecodeSelf(d) } } } } else { yyj3932 := 0 for ; !r.CheckBreak(); yyj3932++ { if yyj3932 >= len(yyv3932) { yyv3932 = append(yyv3932, Service{}) // var yyz3932 Service yyc3932 = true } yyh3932.ElemContainerState(yyj3932) if yyj3932 < len(yyv3932) { if r.TryDecodeAsNil() { yyv3932[yyj3932] = Service{} } else { yyv3935 := &yyv3932[yyj3932] yyv3935.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3932 < len(yyv3932) { yyv3932 = yyv3932[:yyj3932] yyc3932 = true } else if yyj3932 == 0 && yyv3932 == nil { yyv3932 = []Service{} yyc3932 = true } } yyh3932.End() if yyc3932 { *v = yyv3932 } } 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 _, yyv3936 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3937 := &yyv3936 yy3937.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 yyv3938 := *v yyh3938, yyl3938 := z.DecSliceHelperStart() var yyc3938 bool if yyl3938 == 0 { if yyv3938 == nil { yyv3938 = []LoadBalancerIngress{} yyc3938 = true } else if len(yyv3938) != 0 { yyv3938 = yyv3938[:0] yyc3938 = true } } else if yyl3938 > 0 { var yyrr3938, yyrl3938 int var yyrt3938 bool if yyl3938 > cap(yyv3938) { yyrg3938 := len(yyv3938) > 0 yyv23938 := yyv3938 yyrl3938, yyrt3938 = z.DecInferLen(yyl3938, z.DecBasicHandle().MaxInitLen, 32) if yyrt3938 { if yyrl3938 <= cap(yyv3938) { yyv3938 = yyv3938[:yyrl3938] } else { yyv3938 = make([]LoadBalancerIngress, yyrl3938) } } else { yyv3938 = make([]LoadBalancerIngress, yyrl3938) } yyc3938 = true yyrr3938 = len(yyv3938) if yyrg3938 { copy(yyv3938, yyv23938) } } else if yyl3938 != len(yyv3938) { yyv3938 = yyv3938[:yyl3938] yyc3938 = true } yyj3938 := 0 for ; yyj3938 < yyrr3938; yyj3938++ { yyh3938.ElemContainerState(yyj3938) if r.TryDecodeAsNil() { yyv3938[yyj3938] = LoadBalancerIngress{} } else { yyv3939 := &yyv3938[yyj3938] yyv3939.CodecDecodeSelf(d) } } if yyrt3938 { for ; yyj3938 < yyl3938; yyj3938++ { yyv3938 = append(yyv3938, LoadBalancerIngress{}) yyh3938.ElemContainerState(yyj3938) if r.TryDecodeAsNil() { yyv3938[yyj3938] = LoadBalancerIngress{} } else { yyv3940 := &yyv3938[yyj3938] yyv3940.CodecDecodeSelf(d) } } } } else { yyj3938 := 0 for ; !r.CheckBreak(); yyj3938++ { if yyj3938 >= len(yyv3938) { yyv3938 = append(yyv3938, LoadBalancerIngress{}) // var yyz3938 LoadBalancerIngress yyc3938 = true } yyh3938.ElemContainerState(yyj3938) if yyj3938 < len(yyv3938) { if r.TryDecodeAsNil() { yyv3938[yyj3938] = LoadBalancerIngress{} } else { yyv3941 := &yyv3938[yyj3938] yyv3941.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3938 < len(yyv3938) { yyv3938 = yyv3938[:yyj3938] yyc3938 = true } else if yyj3938 == 0 && yyv3938 == nil { yyv3938 = []LoadBalancerIngress{} yyc3938 = true } } yyh3938.End() if yyc3938 { *v = yyv3938 } } 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 _, yyv3942 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3943 := &yyv3942 yy3943.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 yyv3944 := *v yyh3944, yyl3944 := z.DecSliceHelperStart() var yyc3944 bool if yyl3944 == 0 { if yyv3944 == nil { yyv3944 = []ServicePort{} yyc3944 = true } else if len(yyv3944) != 0 { yyv3944 = yyv3944[:0] yyc3944 = true } } else if yyl3944 > 0 { var yyrr3944, yyrl3944 int var yyrt3944 bool if yyl3944 > cap(yyv3944) { yyrg3944 := len(yyv3944) > 0 yyv23944 := yyv3944 yyrl3944, yyrt3944 = z.DecInferLen(yyl3944, z.DecBasicHandle().MaxInitLen, 80) if yyrt3944 { if yyrl3944 <= cap(yyv3944) { yyv3944 = yyv3944[:yyrl3944] } else { yyv3944 = make([]ServicePort, yyrl3944) } } else { yyv3944 = make([]ServicePort, yyrl3944) } yyc3944 = true yyrr3944 = len(yyv3944) if yyrg3944 { copy(yyv3944, yyv23944) } } else if yyl3944 != len(yyv3944) { yyv3944 = yyv3944[:yyl3944] yyc3944 = true } yyj3944 := 0 for ; yyj3944 < yyrr3944; yyj3944++ { yyh3944.ElemContainerState(yyj3944) if r.TryDecodeAsNil() { yyv3944[yyj3944] = ServicePort{} } else { yyv3945 := &yyv3944[yyj3944] yyv3945.CodecDecodeSelf(d) } } if yyrt3944 { for ; yyj3944 < yyl3944; yyj3944++ { yyv3944 = append(yyv3944, ServicePort{}) yyh3944.ElemContainerState(yyj3944) if r.TryDecodeAsNil() { yyv3944[yyj3944] = ServicePort{} } else { yyv3946 := &yyv3944[yyj3944] yyv3946.CodecDecodeSelf(d) } } } } else { yyj3944 := 0 for ; !r.CheckBreak(); yyj3944++ { if yyj3944 >= len(yyv3944) { yyv3944 = append(yyv3944, ServicePort{}) // var yyz3944 ServicePort yyc3944 = true } yyh3944.ElemContainerState(yyj3944) if yyj3944 < len(yyv3944) { if r.TryDecodeAsNil() { yyv3944[yyj3944] = ServicePort{} } else { yyv3947 := &yyv3944[yyj3944] yyv3947.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3944 < len(yyv3944) { yyv3944 = yyv3944[:yyj3944] yyc3944 = true } else if yyj3944 == 0 && yyv3944 == nil { yyv3944 = []ServicePort{} yyc3944 = true } } yyh3944.End() if yyc3944 { *v = yyv3944 } } 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 _, yyv3948 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3949 := &yyv3948 yy3949.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 yyv3950 := *v yyh3950, yyl3950 := z.DecSliceHelperStart() var yyc3950 bool if yyl3950 == 0 { if yyv3950 == nil { yyv3950 = []ObjectReference{} yyc3950 = true } else if len(yyv3950) != 0 { yyv3950 = yyv3950[:0] yyc3950 = true } } else if yyl3950 > 0 { var yyrr3950, yyrl3950 int var yyrt3950 bool if yyl3950 > cap(yyv3950) { yyrg3950 := len(yyv3950) > 0 yyv23950 := yyv3950 yyrl3950, yyrt3950 = z.DecInferLen(yyl3950, z.DecBasicHandle().MaxInitLen, 112) if yyrt3950 { if yyrl3950 <= cap(yyv3950) { yyv3950 = yyv3950[:yyrl3950] } else { yyv3950 = make([]ObjectReference, yyrl3950) } } else { yyv3950 = make([]ObjectReference, yyrl3950) } yyc3950 = true yyrr3950 = len(yyv3950) if yyrg3950 { copy(yyv3950, yyv23950) } } else if yyl3950 != len(yyv3950) { yyv3950 = yyv3950[:yyl3950] yyc3950 = true } yyj3950 := 0 for ; yyj3950 < yyrr3950; yyj3950++ { yyh3950.ElemContainerState(yyj3950) if r.TryDecodeAsNil() { yyv3950[yyj3950] = ObjectReference{} } else { yyv3951 := &yyv3950[yyj3950] yyv3951.CodecDecodeSelf(d) } } if yyrt3950 { for ; yyj3950 < yyl3950; yyj3950++ { yyv3950 = append(yyv3950, ObjectReference{}) yyh3950.ElemContainerState(yyj3950) if r.TryDecodeAsNil() { yyv3950[yyj3950] = ObjectReference{} } else { yyv3952 := &yyv3950[yyj3950] yyv3952.CodecDecodeSelf(d) } } } } else { yyj3950 := 0 for ; !r.CheckBreak(); yyj3950++ { if yyj3950 >= len(yyv3950) { yyv3950 = append(yyv3950, ObjectReference{}) // var yyz3950 ObjectReference yyc3950 = true } yyh3950.ElemContainerState(yyj3950) if yyj3950 < len(yyv3950) { if r.TryDecodeAsNil() { yyv3950[yyj3950] = ObjectReference{} } else { yyv3953 := &yyv3950[yyj3950] yyv3953.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3950 < len(yyv3950) { yyv3950 = yyv3950[:yyj3950] yyc3950 = true } else if yyj3950 == 0 && yyv3950 == nil { yyv3950 = []ObjectReference{} yyc3950 = true } } yyh3950.End() if yyc3950 { *v = yyv3950 } } 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 _, yyv3954 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3955 := &yyv3954 yy3955.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 yyv3956 := *v yyh3956, yyl3956 := z.DecSliceHelperStart() var yyc3956 bool if yyl3956 == 0 { if yyv3956 == nil { yyv3956 = []ServiceAccount{} yyc3956 = true } else if len(yyv3956) != 0 { yyv3956 = yyv3956[:0] yyc3956 = true } } else if yyl3956 > 0 { var yyrr3956, yyrl3956 int var yyrt3956 bool if yyl3956 > cap(yyv3956) { yyrg3956 := len(yyv3956) > 0 yyv23956 := yyv3956 yyrl3956, yyrt3956 = z.DecInferLen(yyl3956, z.DecBasicHandle().MaxInitLen, 240) if yyrt3956 { if yyrl3956 <= cap(yyv3956) { yyv3956 = yyv3956[:yyrl3956] } else { yyv3956 = make([]ServiceAccount, yyrl3956) } } else { yyv3956 = make([]ServiceAccount, yyrl3956) } yyc3956 = true yyrr3956 = len(yyv3956) if yyrg3956 { copy(yyv3956, yyv23956) } } else if yyl3956 != len(yyv3956) { yyv3956 = yyv3956[:yyl3956] yyc3956 = true } yyj3956 := 0 for ; yyj3956 < yyrr3956; yyj3956++ { yyh3956.ElemContainerState(yyj3956) if r.TryDecodeAsNil() { yyv3956[yyj3956] = ServiceAccount{} } else { yyv3957 := &yyv3956[yyj3956] yyv3957.CodecDecodeSelf(d) } } if yyrt3956 { for ; yyj3956 < yyl3956; yyj3956++ { yyv3956 = append(yyv3956, ServiceAccount{}) yyh3956.ElemContainerState(yyj3956) if r.TryDecodeAsNil() { yyv3956[yyj3956] = ServiceAccount{} } else { yyv3958 := &yyv3956[yyj3956] yyv3958.CodecDecodeSelf(d) } } } } else { yyj3956 := 0 for ; !r.CheckBreak(); yyj3956++ { if yyj3956 >= len(yyv3956) { yyv3956 = append(yyv3956, ServiceAccount{}) // var yyz3956 ServiceAccount yyc3956 = true } yyh3956.ElemContainerState(yyj3956) if yyj3956 < len(yyv3956) { if r.TryDecodeAsNil() { yyv3956[yyj3956] = ServiceAccount{} } else { yyv3959 := &yyv3956[yyj3956] yyv3959.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3956 < len(yyv3956) { yyv3956 = yyv3956[:yyj3956] yyc3956 = true } else if yyj3956 == 0 && yyv3956 == nil { yyv3956 = []ServiceAccount{} yyc3956 = true } } yyh3956.End() if yyc3956 { *v = yyv3956 } } 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 _, yyv3960 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3961 := &yyv3960 yy3961.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 yyv3962 := *v yyh3962, yyl3962 := z.DecSliceHelperStart() var yyc3962 bool if yyl3962 == 0 { if yyv3962 == nil { yyv3962 = []EndpointSubset{} yyc3962 = true } else if len(yyv3962) != 0 { yyv3962 = yyv3962[:0] yyc3962 = true } } else if yyl3962 > 0 { var yyrr3962, yyrl3962 int var yyrt3962 bool if yyl3962 > cap(yyv3962) { yyrg3962 := len(yyv3962) > 0 yyv23962 := yyv3962 yyrl3962, yyrt3962 = z.DecInferLen(yyl3962, z.DecBasicHandle().MaxInitLen, 72) if yyrt3962 { if yyrl3962 <= cap(yyv3962) { yyv3962 = yyv3962[:yyrl3962] } else { yyv3962 = make([]EndpointSubset, yyrl3962) } } else { yyv3962 = make([]EndpointSubset, yyrl3962) } yyc3962 = true yyrr3962 = len(yyv3962) if yyrg3962 { copy(yyv3962, yyv23962) } } else if yyl3962 != len(yyv3962) { yyv3962 = yyv3962[:yyl3962] yyc3962 = true } yyj3962 := 0 for ; yyj3962 < yyrr3962; yyj3962++ { yyh3962.ElemContainerState(yyj3962) if r.TryDecodeAsNil() { yyv3962[yyj3962] = EndpointSubset{} } else { yyv3963 := &yyv3962[yyj3962] yyv3963.CodecDecodeSelf(d) } } if yyrt3962 { for ; yyj3962 < yyl3962; yyj3962++ { yyv3962 = append(yyv3962, EndpointSubset{}) yyh3962.ElemContainerState(yyj3962) if r.TryDecodeAsNil() { yyv3962[yyj3962] = EndpointSubset{} } else { yyv3964 := &yyv3962[yyj3962] yyv3964.CodecDecodeSelf(d) } } } } else { yyj3962 := 0 for ; !r.CheckBreak(); yyj3962++ { if yyj3962 >= len(yyv3962) { yyv3962 = append(yyv3962, EndpointSubset{}) // var yyz3962 EndpointSubset yyc3962 = true } yyh3962.ElemContainerState(yyj3962) if yyj3962 < len(yyv3962) { if r.TryDecodeAsNil() { yyv3962[yyj3962] = EndpointSubset{} } else { yyv3965 := &yyv3962[yyj3962] yyv3965.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3962 < len(yyv3962) { yyv3962 = yyv3962[:yyj3962] yyc3962 = true } else if yyj3962 == 0 && yyv3962 == nil { yyv3962 = []EndpointSubset{} yyc3962 = true } } yyh3962.End() if yyc3962 { *v = yyv3962 } } 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 _, yyv3966 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3967 := &yyv3966 yy3967.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 yyv3968 := *v yyh3968, yyl3968 := z.DecSliceHelperStart() var yyc3968 bool if yyl3968 == 0 { if yyv3968 == nil { yyv3968 = []EndpointAddress{} yyc3968 = true } else if len(yyv3968) != 0 { yyv3968 = yyv3968[:0] yyc3968 = true } } else if yyl3968 > 0 { var yyrr3968, yyrl3968 int var yyrt3968 bool if yyl3968 > cap(yyv3968) { yyrg3968 := len(yyv3968) > 0 yyv23968 := yyv3968 yyrl3968, yyrt3968 = z.DecInferLen(yyl3968, z.DecBasicHandle().MaxInitLen, 24) if yyrt3968 { if yyrl3968 <= cap(yyv3968) { yyv3968 = yyv3968[:yyrl3968] } else { yyv3968 = make([]EndpointAddress, yyrl3968) } } else { yyv3968 = make([]EndpointAddress, yyrl3968) } yyc3968 = true yyrr3968 = len(yyv3968) if yyrg3968 { copy(yyv3968, yyv23968) } } else if yyl3968 != len(yyv3968) { yyv3968 = yyv3968[:yyl3968] yyc3968 = true } yyj3968 := 0 for ; yyj3968 < yyrr3968; yyj3968++ { yyh3968.ElemContainerState(yyj3968) if r.TryDecodeAsNil() { yyv3968[yyj3968] = EndpointAddress{} } else { yyv3969 := &yyv3968[yyj3968] yyv3969.CodecDecodeSelf(d) } } if yyrt3968 { for ; yyj3968 < yyl3968; yyj3968++ { yyv3968 = append(yyv3968, EndpointAddress{}) yyh3968.ElemContainerState(yyj3968) if r.TryDecodeAsNil() { yyv3968[yyj3968] = EndpointAddress{} } else { yyv3970 := &yyv3968[yyj3968] yyv3970.CodecDecodeSelf(d) } } } } else { yyj3968 := 0 for ; !r.CheckBreak(); yyj3968++ { if yyj3968 >= len(yyv3968) { yyv3968 = append(yyv3968, EndpointAddress{}) // var yyz3968 EndpointAddress yyc3968 = true } yyh3968.ElemContainerState(yyj3968) if yyj3968 < len(yyv3968) { if r.TryDecodeAsNil() { yyv3968[yyj3968] = EndpointAddress{} } else { yyv3971 := &yyv3968[yyj3968] yyv3971.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3968 < len(yyv3968) { yyv3968 = yyv3968[:yyj3968] yyc3968 = true } else if yyj3968 == 0 && yyv3968 == nil { yyv3968 = []EndpointAddress{} yyc3968 = true } } yyh3968.End() if yyc3968 { *v = yyv3968 } } 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 _, yyv3972 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3973 := &yyv3972 yy3973.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 yyv3974 := *v yyh3974, yyl3974 := z.DecSliceHelperStart() var yyc3974 bool if yyl3974 == 0 { if yyv3974 == nil { yyv3974 = []EndpointPort{} yyc3974 = true } else if len(yyv3974) != 0 { yyv3974 = yyv3974[:0] yyc3974 = true } } else if yyl3974 > 0 { var yyrr3974, yyrl3974 int var yyrt3974 bool if yyl3974 > cap(yyv3974) { yyrg3974 := len(yyv3974) > 0 yyv23974 := yyv3974 yyrl3974, yyrt3974 = z.DecInferLen(yyl3974, z.DecBasicHandle().MaxInitLen, 40) if yyrt3974 { if yyrl3974 <= cap(yyv3974) { yyv3974 = yyv3974[:yyrl3974] } else { yyv3974 = make([]EndpointPort, yyrl3974) } } else { yyv3974 = make([]EndpointPort, yyrl3974) } yyc3974 = true yyrr3974 = len(yyv3974) if yyrg3974 { copy(yyv3974, yyv23974) } } else if yyl3974 != len(yyv3974) { yyv3974 = yyv3974[:yyl3974] yyc3974 = true } yyj3974 := 0 for ; yyj3974 < yyrr3974; yyj3974++ { yyh3974.ElemContainerState(yyj3974) if r.TryDecodeAsNil() { yyv3974[yyj3974] = EndpointPort{} } else { yyv3975 := &yyv3974[yyj3974] yyv3975.CodecDecodeSelf(d) } } if yyrt3974 { for ; yyj3974 < yyl3974; yyj3974++ { yyv3974 = append(yyv3974, EndpointPort{}) yyh3974.ElemContainerState(yyj3974) if r.TryDecodeAsNil() { yyv3974[yyj3974] = EndpointPort{} } else { yyv3976 := &yyv3974[yyj3974] yyv3976.CodecDecodeSelf(d) } } } } else { yyj3974 := 0 for ; !r.CheckBreak(); yyj3974++ { if yyj3974 >= len(yyv3974) { yyv3974 = append(yyv3974, EndpointPort{}) // var yyz3974 EndpointPort yyc3974 = true } yyh3974.ElemContainerState(yyj3974) if yyj3974 < len(yyv3974) { if r.TryDecodeAsNil() { yyv3974[yyj3974] = EndpointPort{} } else { yyv3977 := &yyv3974[yyj3974] yyv3977.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3974 < len(yyv3974) { yyv3974 = yyv3974[:yyj3974] yyc3974 = true } else if yyj3974 == 0 && yyv3974 == nil { yyv3974 = []EndpointPort{} yyc3974 = true } } yyh3974.End() if yyc3974 { *v = yyv3974 } } 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 _, yyv3978 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3979 := &yyv3978 yy3979.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 yyv3980 := *v yyh3980, yyl3980 := z.DecSliceHelperStart() var yyc3980 bool if yyl3980 == 0 { if yyv3980 == nil { yyv3980 = []Endpoints{} yyc3980 = true } else if len(yyv3980) != 0 { yyv3980 = yyv3980[:0] yyc3980 = true } } else if yyl3980 > 0 { var yyrr3980, yyrl3980 int var yyrt3980 bool if yyl3980 > cap(yyv3980) { yyrg3980 := len(yyv3980) > 0 yyv23980 := yyv3980 yyrl3980, yyrt3980 = z.DecInferLen(yyl3980, z.DecBasicHandle().MaxInitLen, 216) if yyrt3980 { if yyrl3980 <= cap(yyv3980) { yyv3980 = yyv3980[:yyrl3980] } else { yyv3980 = make([]Endpoints, yyrl3980) } } else { yyv3980 = make([]Endpoints, yyrl3980) } yyc3980 = true yyrr3980 = len(yyv3980) if yyrg3980 { copy(yyv3980, yyv23980) } } else if yyl3980 != len(yyv3980) { yyv3980 = yyv3980[:yyl3980] yyc3980 = true } yyj3980 := 0 for ; yyj3980 < yyrr3980; yyj3980++ { yyh3980.ElemContainerState(yyj3980) if r.TryDecodeAsNil() { yyv3980[yyj3980] = Endpoints{} } else { yyv3981 := &yyv3980[yyj3980] yyv3981.CodecDecodeSelf(d) } } if yyrt3980 { for ; yyj3980 < yyl3980; yyj3980++ { yyv3980 = append(yyv3980, Endpoints{}) yyh3980.ElemContainerState(yyj3980) if r.TryDecodeAsNil() { yyv3980[yyj3980] = Endpoints{} } else { yyv3982 := &yyv3980[yyj3980] yyv3982.CodecDecodeSelf(d) } } } } else { yyj3980 := 0 for ; !r.CheckBreak(); yyj3980++ { if yyj3980 >= len(yyv3980) { yyv3980 = append(yyv3980, Endpoints{}) // var yyz3980 Endpoints yyc3980 = true } yyh3980.ElemContainerState(yyj3980) if yyj3980 < len(yyv3980) { if r.TryDecodeAsNil() { yyv3980[yyj3980] = Endpoints{} } else { yyv3983 := &yyv3980[yyj3980] yyv3983.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3980 < len(yyv3980) { yyv3980 = yyv3980[:yyj3980] yyc3980 = true } else if yyj3980 == 0 && yyv3980 == nil { yyv3980 = []Endpoints{} yyc3980 = true } } yyh3980.End() if yyc3980 { *v = yyv3980 } } 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 _, yyv3984 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3985 := &yyv3984 yy3985.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 yyv3986 := *v yyh3986, yyl3986 := z.DecSliceHelperStart() var yyc3986 bool if yyl3986 == 0 { if yyv3986 == nil { yyv3986 = []NodeCondition{} yyc3986 = true } else if len(yyv3986) != 0 { yyv3986 = yyv3986[:0] yyc3986 = true } } else if yyl3986 > 0 { var yyrr3986, yyrl3986 int var yyrt3986 bool if yyl3986 > cap(yyv3986) { yyrg3986 := len(yyv3986) > 0 yyv23986 := yyv3986 yyrl3986, yyrt3986 = z.DecInferLen(yyl3986, z.DecBasicHandle().MaxInitLen, 112) if yyrt3986 { if yyrl3986 <= cap(yyv3986) { yyv3986 = yyv3986[:yyrl3986] } else { yyv3986 = make([]NodeCondition, yyrl3986) } } else { yyv3986 = make([]NodeCondition, yyrl3986) } yyc3986 = true yyrr3986 = len(yyv3986) if yyrg3986 { copy(yyv3986, yyv23986) } } else if yyl3986 != len(yyv3986) { yyv3986 = yyv3986[:yyl3986] yyc3986 = true } yyj3986 := 0 for ; yyj3986 < yyrr3986; yyj3986++ { yyh3986.ElemContainerState(yyj3986) if r.TryDecodeAsNil() { yyv3986[yyj3986] = NodeCondition{} } else { yyv3987 := &yyv3986[yyj3986] yyv3987.CodecDecodeSelf(d) } } if yyrt3986 { for ; yyj3986 < yyl3986; yyj3986++ { yyv3986 = append(yyv3986, NodeCondition{}) yyh3986.ElemContainerState(yyj3986) if r.TryDecodeAsNil() { yyv3986[yyj3986] = NodeCondition{} } else { yyv3988 := &yyv3986[yyj3986] yyv3988.CodecDecodeSelf(d) } } } } else { yyj3986 := 0 for ; !r.CheckBreak(); yyj3986++ { if yyj3986 >= len(yyv3986) { yyv3986 = append(yyv3986, NodeCondition{}) // var yyz3986 NodeCondition yyc3986 = true } yyh3986.ElemContainerState(yyj3986) if yyj3986 < len(yyv3986) { if r.TryDecodeAsNil() { yyv3986[yyj3986] = NodeCondition{} } else { yyv3989 := &yyv3986[yyj3986] yyv3989.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3986 < len(yyv3986) { yyv3986 = yyv3986[:yyj3986] yyc3986 = true } else if yyj3986 == 0 && yyv3986 == nil { yyv3986 = []NodeCondition{} yyc3986 = true } } yyh3986.End() if yyc3986 { *v = yyv3986 } } 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 _, yyv3990 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3991 := &yyv3990 yy3991.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 yyv3992 := *v yyh3992, yyl3992 := z.DecSliceHelperStart() var yyc3992 bool if yyl3992 == 0 { if yyv3992 == nil { yyv3992 = []NodeAddress{} yyc3992 = true } else if len(yyv3992) != 0 { yyv3992 = yyv3992[:0] yyc3992 = true } } else if yyl3992 > 0 { var yyrr3992, yyrl3992 int var yyrt3992 bool if yyl3992 > cap(yyv3992) { yyrg3992 := len(yyv3992) > 0 yyv23992 := yyv3992 yyrl3992, yyrt3992 = z.DecInferLen(yyl3992, z.DecBasicHandle().MaxInitLen, 32) if yyrt3992 { if yyrl3992 <= cap(yyv3992) { yyv3992 = yyv3992[:yyrl3992] } else { yyv3992 = make([]NodeAddress, yyrl3992) } } else { yyv3992 = make([]NodeAddress, yyrl3992) } yyc3992 = true yyrr3992 = len(yyv3992) if yyrg3992 { copy(yyv3992, yyv23992) } } else if yyl3992 != len(yyv3992) { yyv3992 = yyv3992[:yyl3992] yyc3992 = true } yyj3992 := 0 for ; yyj3992 < yyrr3992; yyj3992++ { yyh3992.ElemContainerState(yyj3992) if r.TryDecodeAsNil() { yyv3992[yyj3992] = NodeAddress{} } else { yyv3993 := &yyv3992[yyj3992] yyv3993.CodecDecodeSelf(d) } } if yyrt3992 { for ; yyj3992 < yyl3992; yyj3992++ { yyv3992 = append(yyv3992, NodeAddress{}) yyh3992.ElemContainerState(yyj3992) if r.TryDecodeAsNil() { yyv3992[yyj3992] = NodeAddress{} } else { yyv3994 := &yyv3992[yyj3992] yyv3994.CodecDecodeSelf(d) } } } } else { yyj3992 := 0 for ; !r.CheckBreak(); yyj3992++ { if yyj3992 >= len(yyv3992) { yyv3992 = append(yyv3992, NodeAddress{}) // var yyz3992 NodeAddress yyc3992 = true } yyh3992.ElemContainerState(yyj3992) if yyj3992 < len(yyv3992) { if r.TryDecodeAsNil() { yyv3992[yyj3992] = NodeAddress{} } else { yyv3995 := &yyv3992[yyj3992] yyv3995.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3992 < len(yyv3992) { yyv3992 = yyv3992[:yyj3992] yyc3992 = true } else if yyj3992 == 0 && yyv3992 == nil { yyv3992 = []NodeAddress{} yyc3992 = true } } yyh3992.End() if yyc3992 { *v = yyv3992 } } func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv3996 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3997 := &yyv3996 yy3997.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3998 := *v yyh3998, yyl3998 := z.DecSliceHelperStart() var yyc3998 bool if yyl3998 == 0 { if yyv3998 == nil { yyv3998 = []ContainerImage{} yyc3998 = true } else if len(yyv3998) != 0 { yyv3998 = yyv3998[:0] yyc3998 = true } } else if yyl3998 > 0 { var yyrr3998, yyrl3998 int var yyrt3998 bool if yyl3998 > cap(yyv3998) { yyrg3998 := len(yyv3998) > 0 yyv23998 := yyv3998 yyrl3998, yyrt3998 = z.DecInferLen(yyl3998, z.DecBasicHandle().MaxInitLen, 32) if yyrt3998 { if yyrl3998 <= cap(yyv3998) { yyv3998 = yyv3998[:yyrl3998] } else { yyv3998 = make([]ContainerImage, yyrl3998) } } else { yyv3998 = make([]ContainerImage, yyrl3998) } yyc3998 = true yyrr3998 = len(yyv3998) if yyrg3998 { copy(yyv3998, yyv23998) } } else if yyl3998 != len(yyv3998) { yyv3998 = yyv3998[:yyl3998] yyc3998 = true } yyj3998 := 0 for ; yyj3998 < yyrr3998; yyj3998++ { yyh3998.ElemContainerState(yyj3998) if r.TryDecodeAsNil() { yyv3998[yyj3998] = ContainerImage{} } else { yyv3999 := &yyv3998[yyj3998] yyv3999.CodecDecodeSelf(d) } } if yyrt3998 { for ; yyj3998 < yyl3998; yyj3998++ { yyv3998 = append(yyv3998, ContainerImage{}) yyh3998.ElemContainerState(yyj3998) if r.TryDecodeAsNil() { yyv3998[yyj3998] = ContainerImage{} } else { yyv4000 := &yyv3998[yyj3998] yyv4000.CodecDecodeSelf(d) } } } } else { yyj3998 := 0 for ; !r.CheckBreak(); yyj3998++ { if yyj3998 >= len(yyv3998) { yyv3998 = append(yyv3998, ContainerImage{}) // var yyz3998 ContainerImage yyc3998 = true } yyh3998.ElemContainerState(yyj3998) if yyj3998 < len(yyv3998) { if r.TryDecodeAsNil() { yyv3998[yyj3998] = ContainerImage{} } else { yyv4001 := &yyv3998[yyj3998] yyv4001.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3998 < len(yyv3998) { yyv3998 = yyv3998[:yyj3998] yyc3998 = true } else if yyj3998 == 0 && yyv3998 == nil { yyv3998 = []ContainerImage{} yyc3998 = true } } yyh3998.End() if yyc3998 { *v = yyv3998 } } 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 yyk4002, yyv4002 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk4002.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4003 := &yyv4002 yym4004 := z.EncBinary() _ = yym4004 if false { } else if z.HasExtensions() && z.EncExt(yy4003) { } else if !yym4004 && z.IsJSONHandle() { z.EncJSONMarshal(yy4003) } else { z.EncFallback(yy4003) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4005 := *v yyl4005 := r.ReadMapStart() yybh4005 := z.DecBasicHandle() if yyv4005 == nil { yyrl4005, _ := z.DecInferLen(yyl4005, yybh4005.MaxInitLen, 40) yyv4005 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4005) *v = yyv4005 } var yymk4005 ResourceName var yymv4005 pkg3_resource.Quantity var yymg4005 bool if yybh4005.MapValueReset { yymg4005 = true } if yyl4005 > 0 { for yyj4005 := 0; yyj4005 < yyl4005; yyj4005++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4005 = "" } else { yymk4005 = ResourceName(r.DecodeString()) } if yymg4005 { yymv4005 = yyv4005[yymk4005] } else { yymv4005 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4005 = pkg3_resource.Quantity{} } else { yyv4007 := &yymv4005 yym4008 := z.DecBinary() _ = yym4008 if false { } else if z.HasExtensions() && z.DecExt(yyv4007) { } else if !yym4008 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4007) } else { z.DecFallback(yyv4007, false) } } if yyv4005 != nil { yyv4005[yymk4005] = yymv4005 } } } else if yyl4005 < 0 { for yyj4005 := 0; !r.CheckBreak(); yyj4005++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4005 = "" } else { yymk4005 = ResourceName(r.DecodeString()) } if yymg4005 { yymv4005 = yyv4005[yymk4005] } else { yymv4005 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4005 = pkg3_resource.Quantity{} } else { yyv4010 := &yymv4005 yym4011 := z.DecBinary() _ = yym4011 if false { } else if z.HasExtensions() && z.DecExt(yyv4010) { } else if !yym4011 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4010) } else { z.DecFallback(yyv4010, false) } } if yyv4005 != nil { yyv4005[yymk4005] = yymv4005 } } } // 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 _, yyv4012 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4013 := &yyv4012 yy4013.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 yyv4014 := *v yyh4014, yyl4014 := z.DecSliceHelperStart() var yyc4014 bool if yyl4014 == 0 { if yyv4014 == nil { yyv4014 = []Node{} yyc4014 = true } else if len(yyv4014) != 0 { yyv4014 = yyv4014[:0] yyc4014 = true } } else if yyl4014 > 0 { var yyrr4014, yyrl4014 int var yyrt4014 bool if yyl4014 > cap(yyv4014) { yyrg4014 := len(yyv4014) > 0 yyv24014 := yyv4014 yyrl4014, yyrt4014 = z.DecInferLen(yyl4014, z.DecBasicHandle().MaxInitLen, 488) if yyrt4014 { if yyrl4014 <= cap(yyv4014) { yyv4014 = yyv4014[:yyrl4014] } else { yyv4014 = make([]Node, yyrl4014) } } else { yyv4014 = make([]Node, yyrl4014) } yyc4014 = true yyrr4014 = len(yyv4014) if yyrg4014 { copy(yyv4014, yyv24014) } } else if yyl4014 != len(yyv4014) { yyv4014 = yyv4014[:yyl4014] yyc4014 = true } yyj4014 := 0 for ; yyj4014 < yyrr4014; yyj4014++ { yyh4014.ElemContainerState(yyj4014) if r.TryDecodeAsNil() { yyv4014[yyj4014] = Node{} } else { yyv4015 := &yyv4014[yyj4014] yyv4015.CodecDecodeSelf(d) } } if yyrt4014 { for ; yyj4014 < yyl4014; yyj4014++ { yyv4014 = append(yyv4014, Node{}) yyh4014.ElemContainerState(yyj4014) if r.TryDecodeAsNil() { yyv4014[yyj4014] = Node{} } else { yyv4016 := &yyv4014[yyj4014] yyv4016.CodecDecodeSelf(d) } } } } else { yyj4014 := 0 for ; !r.CheckBreak(); yyj4014++ { if yyj4014 >= len(yyv4014) { yyv4014 = append(yyv4014, Node{}) // var yyz4014 Node yyc4014 = true } yyh4014.ElemContainerState(yyj4014) if yyj4014 < len(yyv4014) { if r.TryDecodeAsNil() { yyv4014[yyj4014] = Node{} } else { yyv4017 := &yyv4014[yyj4014] yyv4017.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4014 < len(yyv4014) { yyv4014 = yyv4014[:yyj4014] yyc4014 = true } else if yyj4014 == 0 && yyv4014 == nil { yyv4014 = []Node{} yyc4014 = true } } yyh4014.End() if yyc4014 { *v = yyv4014 } } 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 _, yyv4018 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4018.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 yyv4019 := *v yyh4019, yyl4019 := z.DecSliceHelperStart() var yyc4019 bool if yyl4019 == 0 { if yyv4019 == nil { yyv4019 = []FinalizerName{} yyc4019 = true } else if len(yyv4019) != 0 { yyv4019 = yyv4019[:0] yyc4019 = true } } else if yyl4019 > 0 { var yyrr4019, yyrl4019 int var yyrt4019 bool if yyl4019 > cap(yyv4019) { yyrl4019, yyrt4019 = z.DecInferLen(yyl4019, z.DecBasicHandle().MaxInitLen, 16) if yyrt4019 { if yyrl4019 <= cap(yyv4019) { yyv4019 = yyv4019[:yyrl4019] } else { yyv4019 = make([]FinalizerName, yyrl4019) } } else { yyv4019 = make([]FinalizerName, yyrl4019) } yyc4019 = true yyrr4019 = len(yyv4019) } else if yyl4019 != len(yyv4019) { yyv4019 = yyv4019[:yyl4019] yyc4019 = true } yyj4019 := 0 for ; yyj4019 < yyrr4019; yyj4019++ { yyh4019.ElemContainerState(yyj4019) if r.TryDecodeAsNil() { yyv4019[yyj4019] = "" } else { yyv4019[yyj4019] = FinalizerName(r.DecodeString()) } } if yyrt4019 { for ; yyj4019 < yyl4019; yyj4019++ { yyv4019 = append(yyv4019, "") yyh4019.ElemContainerState(yyj4019) if r.TryDecodeAsNil() { yyv4019[yyj4019] = "" } else { yyv4019[yyj4019] = FinalizerName(r.DecodeString()) } } } } else { yyj4019 := 0 for ; !r.CheckBreak(); yyj4019++ { if yyj4019 >= len(yyv4019) { yyv4019 = append(yyv4019, "") // var yyz4019 FinalizerName yyc4019 = true } yyh4019.ElemContainerState(yyj4019) if yyj4019 < len(yyv4019) { if r.TryDecodeAsNil() { yyv4019[yyj4019] = "" } else { yyv4019[yyj4019] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4019 < len(yyv4019) { yyv4019 = yyv4019[:yyj4019] yyc4019 = true } else if yyj4019 == 0 && yyv4019 == nil { yyv4019 = []FinalizerName{} yyc4019 = true } } yyh4019.End() if yyc4019 { *v = yyv4019 } } 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 _, yyv4023 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4024 := &yyv4023 yy4024.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 yyv4025 := *v yyh4025, yyl4025 := z.DecSliceHelperStart() var yyc4025 bool if yyl4025 == 0 { if yyv4025 == nil { yyv4025 = []Namespace{} yyc4025 = true } else if len(yyv4025) != 0 { yyv4025 = yyv4025[:0] yyc4025 = true } } else if yyl4025 > 0 { var yyrr4025, yyrl4025 int var yyrt4025 bool if yyl4025 > cap(yyv4025) { yyrg4025 := len(yyv4025) > 0 yyv24025 := yyv4025 yyrl4025, yyrt4025 = z.DecInferLen(yyl4025, z.DecBasicHandle().MaxInitLen, 232) if yyrt4025 { if yyrl4025 <= cap(yyv4025) { yyv4025 = yyv4025[:yyrl4025] } else { yyv4025 = make([]Namespace, yyrl4025) } } else { yyv4025 = make([]Namespace, yyrl4025) } yyc4025 = true yyrr4025 = len(yyv4025) if yyrg4025 { copy(yyv4025, yyv24025) } } else if yyl4025 != len(yyv4025) { yyv4025 = yyv4025[:yyl4025] yyc4025 = true } yyj4025 := 0 for ; yyj4025 < yyrr4025; yyj4025++ { yyh4025.ElemContainerState(yyj4025) if r.TryDecodeAsNil() { yyv4025[yyj4025] = Namespace{} } else { yyv4026 := &yyv4025[yyj4025] yyv4026.CodecDecodeSelf(d) } } if yyrt4025 { for ; yyj4025 < yyl4025; yyj4025++ { yyv4025 = append(yyv4025, Namespace{}) yyh4025.ElemContainerState(yyj4025) if r.TryDecodeAsNil() { yyv4025[yyj4025] = Namespace{} } else { yyv4027 := &yyv4025[yyj4025] yyv4027.CodecDecodeSelf(d) } } } } else { yyj4025 := 0 for ; !r.CheckBreak(); yyj4025++ { if yyj4025 >= len(yyv4025) { yyv4025 = append(yyv4025, Namespace{}) // var yyz4025 Namespace yyc4025 = true } yyh4025.ElemContainerState(yyj4025) if yyj4025 < len(yyv4025) { if r.TryDecodeAsNil() { yyv4025[yyj4025] = Namespace{} } else { yyv4028 := &yyv4025[yyj4025] yyv4028.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4025 < len(yyv4025) { yyv4025 = yyv4025[:yyj4025] yyc4025 = true } else if yyj4025 == 0 && yyv4025 == nil { yyv4025 = []Namespace{} yyc4025 = true } } yyh4025.End() if yyc4025 { *v = yyv4025 } } 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 _, yyv4029 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4030 := &yyv4029 yy4030.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 yyv4031 := *v yyh4031, yyl4031 := z.DecSliceHelperStart() var yyc4031 bool if yyl4031 == 0 { if yyv4031 == nil { yyv4031 = []Event{} yyc4031 = true } else if len(yyv4031) != 0 { yyv4031 = yyv4031[:0] yyc4031 = true } } else if yyl4031 > 0 { var yyrr4031, yyrl4031 int var yyrt4031 bool if yyl4031 > cap(yyv4031) { yyrg4031 := len(yyv4031) > 0 yyv24031 := yyv4031 yyrl4031, yyrt4031 = z.DecInferLen(yyl4031, z.DecBasicHandle().MaxInitLen, 440) if yyrt4031 { if yyrl4031 <= cap(yyv4031) { yyv4031 = yyv4031[:yyrl4031] } else { yyv4031 = make([]Event, yyrl4031) } } else { yyv4031 = make([]Event, yyrl4031) } yyc4031 = true yyrr4031 = len(yyv4031) if yyrg4031 { copy(yyv4031, yyv24031) } } else if yyl4031 != len(yyv4031) { yyv4031 = yyv4031[:yyl4031] yyc4031 = true } yyj4031 := 0 for ; yyj4031 < yyrr4031; yyj4031++ { yyh4031.ElemContainerState(yyj4031) if r.TryDecodeAsNil() { yyv4031[yyj4031] = Event{} } else { yyv4032 := &yyv4031[yyj4031] yyv4032.CodecDecodeSelf(d) } } if yyrt4031 { for ; yyj4031 < yyl4031; yyj4031++ { yyv4031 = append(yyv4031, Event{}) yyh4031.ElemContainerState(yyj4031) if r.TryDecodeAsNil() { yyv4031[yyj4031] = Event{} } else { yyv4033 := &yyv4031[yyj4031] yyv4033.CodecDecodeSelf(d) } } } } else { yyj4031 := 0 for ; !r.CheckBreak(); yyj4031++ { if yyj4031 >= len(yyv4031) { yyv4031 = append(yyv4031, Event{}) // var yyz4031 Event yyc4031 = true } yyh4031.ElemContainerState(yyj4031) if yyj4031 < len(yyv4031) { if r.TryDecodeAsNil() { yyv4031[yyj4031] = Event{} } else { yyv4034 := &yyv4031[yyj4031] yyv4034.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4031 < len(yyv4031) { yyv4031 = yyv4031[:yyj4031] yyc4031 = true } else if yyj4031 == 0 && yyv4031 == nil { yyv4031 = []Event{} yyc4031 = true } } yyh4031.End() if yyc4031 { *v = yyv4031 } } func (x codecSelfer1234) encSliceruntime_Object(v []pkg8_runtime.Object, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4035 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv4035 == nil { r.EncodeNil() } else { yym4036 := z.EncBinary() _ = yym4036 if false { } else if z.HasExtensions() && z.EncExt(yyv4035) { } else { z.EncFallback(yyv4035) } } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg8_runtime.Object, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4037 := *v yyh4037, yyl4037 := z.DecSliceHelperStart() var yyc4037 bool if yyl4037 == 0 { if yyv4037 == nil { yyv4037 = []pkg8_runtime.Object{} yyc4037 = true } else if len(yyv4037) != 0 { yyv4037 = yyv4037[:0] yyc4037 = true } } else if yyl4037 > 0 { var yyrr4037, yyrl4037 int var yyrt4037 bool if yyl4037 > cap(yyv4037) { yyrg4037 := len(yyv4037) > 0 yyv24037 := yyv4037 yyrl4037, yyrt4037 = z.DecInferLen(yyl4037, z.DecBasicHandle().MaxInitLen, 16) if yyrt4037 { if yyrl4037 <= cap(yyv4037) { yyv4037 = yyv4037[:yyrl4037] } else { yyv4037 = make([]pkg8_runtime.Object, yyrl4037) } } else { yyv4037 = make([]pkg8_runtime.Object, yyrl4037) } yyc4037 = true yyrr4037 = len(yyv4037) if yyrg4037 { copy(yyv4037, yyv24037) } } else if yyl4037 != len(yyv4037) { yyv4037 = yyv4037[:yyl4037] yyc4037 = true } yyj4037 := 0 for ; yyj4037 < yyrr4037; yyj4037++ { yyh4037.ElemContainerState(yyj4037) if r.TryDecodeAsNil() { yyv4037[yyj4037] = nil } else { yyv4038 := &yyv4037[yyj4037] yym4039 := z.DecBinary() _ = yym4039 if false { } else if z.HasExtensions() && z.DecExt(yyv4038) { } else { z.DecFallback(yyv4038, true) } } } if yyrt4037 { for ; yyj4037 < yyl4037; yyj4037++ { yyv4037 = append(yyv4037, nil) yyh4037.ElemContainerState(yyj4037) if r.TryDecodeAsNil() { yyv4037[yyj4037] = nil } else { yyv4040 := &yyv4037[yyj4037] yym4041 := z.DecBinary() _ = yym4041 if false { } else if z.HasExtensions() && z.DecExt(yyv4040) { } else { z.DecFallback(yyv4040, true) } } } } } else { yyj4037 := 0 for ; !r.CheckBreak(); yyj4037++ { if yyj4037 >= len(yyv4037) { yyv4037 = append(yyv4037, nil) // var yyz4037 pkg8_runtime.Object yyc4037 = true } yyh4037.ElemContainerState(yyj4037) if yyj4037 < len(yyv4037) { if r.TryDecodeAsNil() { yyv4037[yyj4037] = nil } else { yyv4042 := &yyv4037[yyj4037] yym4043 := z.DecBinary() _ = yym4043 if false { } else if z.HasExtensions() && z.DecExt(yyv4042) { } else { z.DecFallback(yyv4042, true) } } } else { z.DecSwallow() } } if yyj4037 < len(yyv4037) { yyv4037 = yyv4037[:yyj4037] yyc4037 = true } else if yyj4037 == 0 && yyv4037 == nil { yyv4037 = []pkg8_runtime.Object{} yyc4037 = true } } yyh4037.End() if yyc4037 { *v = yyv4037 } } 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 _, yyv4044 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4045 := &yyv4044 yy4045.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 yyv4046 := *v yyh4046, yyl4046 := z.DecSliceHelperStart() var yyc4046 bool if yyl4046 == 0 { if yyv4046 == nil { yyv4046 = []LimitRangeItem{} yyc4046 = true } else if len(yyv4046) != 0 { yyv4046 = yyv4046[:0] yyc4046 = true } } else if yyl4046 > 0 { var yyrr4046, yyrl4046 int var yyrt4046 bool if yyl4046 > cap(yyv4046) { yyrg4046 := len(yyv4046) > 0 yyv24046 := yyv4046 yyrl4046, yyrt4046 = z.DecInferLen(yyl4046, z.DecBasicHandle().MaxInitLen, 56) if yyrt4046 { if yyrl4046 <= cap(yyv4046) { yyv4046 = yyv4046[:yyrl4046] } else { yyv4046 = make([]LimitRangeItem, yyrl4046) } } else { yyv4046 = make([]LimitRangeItem, yyrl4046) } yyc4046 = true yyrr4046 = len(yyv4046) if yyrg4046 { copy(yyv4046, yyv24046) } } else if yyl4046 != len(yyv4046) { yyv4046 = yyv4046[:yyl4046] yyc4046 = true } yyj4046 := 0 for ; yyj4046 < yyrr4046; yyj4046++ { yyh4046.ElemContainerState(yyj4046) if r.TryDecodeAsNil() { yyv4046[yyj4046] = LimitRangeItem{} } else { yyv4047 := &yyv4046[yyj4046] yyv4047.CodecDecodeSelf(d) } } if yyrt4046 { for ; yyj4046 < yyl4046; yyj4046++ { yyv4046 = append(yyv4046, LimitRangeItem{}) yyh4046.ElemContainerState(yyj4046) if r.TryDecodeAsNil() { yyv4046[yyj4046] = LimitRangeItem{} } else { yyv4048 := &yyv4046[yyj4046] yyv4048.CodecDecodeSelf(d) } } } } else { yyj4046 := 0 for ; !r.CheckBreak(); yyj4046++ { if yyj4046 >= len(yyv4046) { yyv4046 = append(yyv4046, LimitRangeItem{}) // var yyz4046 LimitRangeItem yyc4046 = true } yyh4046.ElemContainerState(yyj4046) if yyj4046 < len(yyv4046) { if r.TryDecodeAsNil() { yyv4046[yyj4046] = LimitRangeItem{} } else { yyv4049 := &yyv4046[yyj4046] yyv4049.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4046 < len(yyv4046) { yyv4046 = yyv4046[:yyj4046] yyc4046 = true } else if yyj4046 == 0 && yyv4046 == nil { yyv4046 = []LimitRangeItem{} yyc4046 = true } } yyh4046.End() if yyc4046 { *v = yyv4046 } } 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 _, yyv4050 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4051 := &yyv4050 yy4051.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 yyv4052 := *v yyh4052, yyl4052 := z.DecSliceHelperStart() var yyc4052 bool if yyl4052 == 0 { if yyv4052 == nil { yyv4052 = []LimitRange{} yyc4052 = true } else if len(yyv4052) != 0 { yyv4052 = yyv4052[:0] yyc4052 = true } } else if yyl4052 > 0 { var yyrr4052, yyrl4052 int var yyrt4052 bool if yyl4052 > cap(yyv4052) { yyrg4052 := len(yyv4052) > 0 yyv24052 := yyv4052 yyrl4052, yyrt4052 = z.DecInferLen(yyl4052, z.DecBasicHandle().MaxInitLen, 216) if yyrt4052 { if yyrl4052 <= cap(yyv4052) { yyv4052 = yyv4052[:yyrl4052] } else { yyv4052 = make([]LimitRange, yyrl4052) } } else { yyv4052 = make([]LimitRange, yyrl4052) } yyc4052 = true yyrr4052 = len(yyv4052) if yyrg4052 { copy(yyv4052, yyv24052) } } else if yyl4052 != len(yyv4052) { yyv4052 = yyv4052[:yyl4052] yyc4052 = true } yyj4052 := 0 for ; yyj4052 < yyrr4052; yyj4052++ { yyh4052.ElemContainerState(yyj4052) if r.TryDecodeAsNil() { yyv4052[yyj4052] = LimitRange{} } else { yyv4053 := &yyv4052[yyj4052] yyv4053.CodecDecodeSelf(d) } } if yyrt4052 { for ; yyj4052 < yyl4052; yyj4052++ { yyv4052 = append(yyv4052, LimitRange{}) yyh4052.ElemContainerState(yyj4052) if r.TryDecodeAsNil() { yyv4052[yyj4052] = LimitRange{} } else { yyv4054 := &yyv4052[yyj4052] yyv4054.CodecDecodeSelf(d) } } } } else { yyj4052 := 0 for ; !r.CheckBreak(); yyj4052++ { if yyj4052 >= len(yyv4052) { yyv4052 = append(yyv4052, LimitRange{}) // var yyz4052 LimitRange yyc4052 = true } yyh4052.ElemContainerState(yyj4052) if yyj4052 < len(yyv4052) { if r.TryDecodeAsNil() { yyv4052[yyj4052] = LimitRange{} } else { yyv4055 := &yyv4052[yyj4052] yyv4055.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4052 < len(yyv4052) { yyv4052 = yyv4052[:yyj4052] yyc4052 = true } else if yyj4052 == 0 && yyv4052 == nil { yyv4052 = []LimitRange{} yyc4052 = true } } yyh4052.End() if yyc4052 { *v = yyv4052 } } 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 _, yyv4056 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4057 := &yyv4056 yy4057.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 yyv4058 := *v yyh4058, yyl4058 := z.DecSliceHelperStart() var yyc4058 bool if yyl4058 == 0 { if yyv4058 == nil { yyv4058 = []ResourceQuota{} yyc4058 = true } else if len(yyv4058) != 0 { yyv4058 = yyv4058[:0] yyc4058 = true } } else if yyl4058 > 0 { var yyrr4058, yyrl4058 int var yyrt4058 bool if yyl4058 > cap(yyv4058) { yyrg4058 := len(yyv4058) > 0 yyv24058 := yyv4058 yyrl4058, yyrt4058 = z.DecInferLen(yyl4058, z.DecBasicHandle().MaxInitLen, 216) if yyrt4058 { if yyrl4058 <= cap(yyv4058) { yyv4058 = yyv4058[:yyrl4058] } else { yyv4058 = make([]ResourceQuota, yyrl4058) } } else { yyv4058 = make([]ResourceQuota, yyrl4058) } yyc4058 = true yyrr4058 = len(yyv4058) if yyrg4058 { copy(yyv4058, yyv24058) } } else if yyl4058 != len(yyv4058) { yyv4058 = yyv4058[:yyl4058] yyc4058 = true } yyj4058 := 0 for ; yyj4058 < yyrr4058; yyj4058++ { yyh4058.ElemContainerState(yyj4058) if r.TryDecodeAsNil() { yyv4058[yyj4058] = ResourceQuota{} } else { yyv4059 := &yyv4058[yyj4058] yyv4059.CodecDecodeSelf(d) } } if yyrt4058 { for ; yyj4058 < yyl4058; yyj4058++ { yyv4058 = append(yyv4058, ResourceQuota{}) yyh4058.ElemContainerState(yyj4058) if r.TryDecodeAsNil() { yyv4058[yyj4058] = ResourceQuota{} } else { yyv4060 := &yyv4058[yyj4058] yyv4060.CodecDecodeSelf(d) } } } } else { yyj4058 := 0 for ; !r.CheckBreak(); yyj4058++ { if yyj4058 >= len(yyv4058) { yyv4058 = append(yyv4058, ResourceQuota{}) // var yyz4058 ResourceQuota yyc4058 = true } yyh4058.ElemContainerState(yyj4058) if yyj4058 < len(yyv4058) { if r.TryDecodeAsNil() { yyv4058[yyj4058] = ResourceQuota{} } else { yyv4061 := &yyv4058[yyj4058] yyv4061.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4058 < len(yyv4058) { yyv4058 = yyv4058[:yyj4058] yyc4058 = true } else if yyj4058 == 0 && yyv4058 == nil { yyv4058 = []ResourceQuota{} yyc4058 = true } } yyh4058.End() if yyc4058 { *v = yyv4058 } } 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 yyk4062, yyv4062 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym4063 := z.EncBinary() _ = yym4063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk4062)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv4062 == nil { r.EncodeNil() } else { yym4064 := z.EncBinary() _ = yym4064 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4062)) } } } 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 yyv4065 := *v yyl4065 := r.ReadMapStart() yybh4065 := z.DecBasicHandle() if yyv4065 == nil { yyrl4065, _ := z.DecInferLen(yyl4065, yybh4065.MaxInitLen, 40) yyv4065 = make(map[string][]uint8, yyrl4065) *v = yyv4065 } var yymk4065 string var yymv4065 []uint8 var yymg4065 bool if yybh4065.MapValueReset { yymg4065 = true } if yyl4065 > 0 { for yyj4065 := 0; yyj4065 < yyl4065; yyj4065++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4065 = "" } else { yymk4065 = string(r.DecodeString()) } if yymg4065 { yymv4065 = yyv4065[yymk4065] } else { yymv4065 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4065 = nil } else { yyv4067 := &yymv4065 yym4068 := z.DecBinary() _ = yym4068 if false { } else { *yyv4067 = r.DecodeBytes(*(*[]byte)(yyv4067), false, false) } } if yyv4065 != nil { yyv4065[yymk4065] = yymv4065 } } } else if yyl4065 < 0 { for yyj4065 := 0; !r.CheckBreak(); yyj4065++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4065 = "" } else { yymk4065 = string(r.DecodeString()) } if yymg4065 { yymv4065 = yyv4065[yymk4065] } else { yymv4065 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4065 = nil } else { yyv4070 := &yymv4065 yym4071 := z.DecBinary() _ = yym4071 if false { } else { *yyv4070 = r.DecodeBytes(*(*[]byte)(yyv4070), false, false) } } if yyv4065 != nil { yyv4065[yymk4065] = yymv4065 } } } // 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 _, yyv4072 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4073 := &yyv4072 yy4073.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 yyv4074 := *v yyh4074, yyl4074 := z.DecSliceHelperStart() var yyc4074 bool if yyl4074 == 0 { if yyv4074 == nil { yyv4074 = []Secret{} yyc4074 = true } else if len(yyv4074) != 0 { yyv4074 = yyv4074[:0] yyc4074 = true } } else if yyl4074 > 0 { var yyrr4074, yyrl4074 int var yyrt4074 bool if yyl4074 > cap(yyv4074) { yyrg4074 := len(yyv4074) > 0 yyv24074 := yyv4074 yyrl4074, yyrt4074 = z.DecInferLen(yyl4074, z.DecBasicHandle().MaxInitLen, 216) if yyrt4074 { if yyrl4074 <= cap(yyv4074) { yyv4074 = yyv4074[:yyrl4074] } else { yyv4074 = make([]Secret, yyrl4074) } } else { yyv4074 = make([]Secret, yyrl4074) } yyc4074 = true yyrr4074 = len(yyv4074) if yyrg4074 { copy(yyv4074, yyv24074) } } else if yyl4074 != len(yyv4074) { yyv4074 = yyv4074[:yyl4074] yyc4074 = true } yyj4074 := 0 for ; yyj4074 < yyrr4074; yyj4074++ { yyh4074.ElemContainerState(yyj4074) if r.TryDecodeAsNil() { yyv4074[yyj4074] = Secret{} } else { yyv4075 := &yyv4074[yyj4074] yyv4075.CodecDecodeSelf(d) } } if yyrt4074 { for ; yyj4074 < yyl4074; yyj4074++ { yyv4074 = append(yyv4074, Secret{}) yyh4074.ElemContainerState(yyj4074) if r.TryDecodeAsNil() { yyv4074[yyj4074] = Secret{} } else { yyv4076 := &yyv4074[yyj4074] yyv4076.CodecDecodeSelf(d) } } } } else { yyj4074 := 0 for ; !r.CheckBreak(); yyj4074++ { if yyj4074 >= len(yyv4074) { yyv4074 = append(yyv4074, Secret{}) // var yyz4074 Secret yyc4074 = true } yyh4074.ElemContainerState(yyj4074) if yyj4074 < len(yyv4074) { if r.TryDecodeAsNil() { yyv4074[yyj4074] = Secret{} } else { yyv4077 := &yyv4074[yyj4074] yyv4077.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4074 < len(yyv4074) { yyv4074 = yyv4074[:yyj4074] yyc4074 = true } else if yyj4074 == 0 && yyv4074 == nil { yyv4074 = []Secret{} yyc4074 = true } } yyh4074.End() if yyc4074 { *v = yyv4074 } } func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4078 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4079 := &yyv4078 yy4079.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4080 := *v yyh4080, yyl4080 := z.DecSliceHelperStart() var yyc4080 bool if yyl4080 == 0 { if yyv4080 == nil { yyv4080 = []ConfigMap{} yyc4080 = true } else if len(yyv4080) != 0 { yyv4080 = yyv4080[:0] yyc4080 = true } } else if yyl4080 > 0 { var yyrr4080, yyrl4080 int var yyrt4080 bool if yyl4080 > cap(yyv4080) { yyrg4080 := len(yyv4080) > 0 yyv24080 := yyv4080 yyrl4080, yyrt4080 = z.DecInferLen(yyl4080, z.DecBasicHandle().MaxInitLen, 200) if yyrt4080 { if yyrl4080 <= cap(yyv4080) { yyv4080 = yyv4080[:yyrl4080] } else { yyv4080 = make([]ConfigMap, yyrl4080) } } else { yyv4080 = make([]ConfigMap, yyrl4080) } yyc4080 = true yyrr4080 = len(yyv4080) if yyrg4080 { copy(yyv4080, yyv24080) } } else if yyl4080 != len(yyv4080) { yyv4080 = yyv4080[:yyl4080] yyc4080 = true } yyj4080 := 0 for ; yyj4080 < yyrr4080; yyj4080++ { yyh4080.ElemContainerState(yyj4080) if r.TryDecodeAsNil() { yyv4080[yyj4080] = ConfigMap{} } else { yyv4081 := &yyv4080[yyj4080] yyv4081.CodecDecodeSelf(d) } } if yyrt4080 { for ; yyj4080 < yyl4080; yyj4080++ { yyv4080 = append(yyv4080, ConfigMap{}) yyh4080.ElemContainerState(yyj4080) if r.TryDecodeAsNil() { yyv4080[yyj4080] = ConfigMap{} } else { yyv4082 := &yyv4080[yyj4080] yyv4082.CodecDecodeSelf(d) } } } } else { yyj4080 := 0 for ; !r.CheckBreak(); yyj4080++ { if yyj4080 >= len(yyv4080) { yyv4080 = append(yyv4080, ConfigMap{}) // var yyz4080 ConfigMap yyc4080 = true } yyh4080.ElemContainerState(yyj4080) if yyj4080 < len(yyv4080) { if r.TryDecodeAsNil() { yyv4080[yyj4080] = ConfigMap{} } else { yyv4083 := &yyv4080[yyj4080] yyv4083.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4080 < len(yyv4080) { yyv4080 = yyv4080[:yyj4080] yyc4080 = true } else if yyj4080 == 0 && yyv4080 == nil { yyv4080 = []ConfigMap{} yyc4080 = true } } yyh4080.End() if yyc4080 { *v = yyv4080 } } 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 _, yyv4084 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4085 := &yyv4084 yy4085.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 yyv4086 := *v yyh4086, yyl4086 := z.DecSliceHelperStart() var yyc4086 bool if yyl4086 == 0 { if yyv4086 == nil { yyv4086 = []ComponentCondition{} yyc4086 = true } else if len(yyv4086) != 0 { yyv4086 = yyv4086[:0] yyc4086 = true } } else if yyl4086 > 0 { var yyrr4086, yyrl4086 int var yyrt4086 bool if yyl4086 > cap(yyv4086) { yyrg4086 := len(yyv4086) > 0 yyv24086 := yyv4086 yyrl4086, yyrt4086 = z.DecInferLen(yyl4086, z.DecBasicHandle().MaxInitLen, 64) if yyrt4086 { if yyrl4086 <= cap(yyv4086) { yyv4086 = yyv4086[:yyrl4086] } else { yyv4086 = make([]ComponentCondition, yyrl4086) } } else { yyv4086 = make([]ComponentCondition, yyrl4086) } yyc4086 = true yyrr4086 = len(yyv4086) if yyrg4086 { copy(yyv4086, yyv24086) } } else if yyl4086 != len(yyv4086) { yyv4086 = yyv4086[:yyl4086] yyc4086 = true } yyj4086 := 0 for ; yyj4086 < yyrr4086; yyj4086++ { yyh4086.ElemContainerState(yyj4086) if r.TryDecodeAsNil() { yyv4086[yyj4086] = ComponentCondition{} } else { yyv4087 := &yyv4086[yyj4086] yyv4087.CodecDecodeSelf(d) } } if yyrt4086 { for ; yyj4086 < yyl4086; yyj4086++ { yyv4086 = append(yyv4086, ComponentCondition{}) yyh4086.ElemContainerState(yyj4086) if r.TryDecodeAsNil() { yyv4086[yyj4086] = ComponentCondition{} } else { yyv4088 := &yyv4086[yyj4086] yyv4088.CodecDecodeSelf(d) } } } } else { yyj4086 := 0 for ; !r.CheckBreak(); yyj4086++ { if yyj4086 >= len(yyv4086) { yyv4086 = append(yyv4086, ComponentCondition{}) // var yyz4086 ComponentCondition yyc4086 = true } yyh4086.ElemContainerState(yyj4086) if yyj4086 < len(yyv4086) { if r.TryDecodeAsNil() { yyv4086[yyj4086] = ComponentCondition{} } else { yyv4089 := &yyv4086[yyj4086] yyv4089.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4086 < len(yyv4086) { yyv4086 = yyv4086[:yyj4086] yyc4086 = true } else if yyj4086 == 0 && yyv4086 == nil { yyv4086 = []ComponentCondition{} yyc4086 = true } } yyh4086.End() if yyc4086 { *v = yyv4086 } } 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 _, yyv4090 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4091 := &yyv4090 yy4091.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 yyv4092 := *v yyh4092, yyl4092 := z.DecSliceHelperStart() var yyc4092 bool if yyl4092 == 0 { if yyv4092 == nil { yyv4092 = []ComponentStatus{} yyc4092 = true } else if len(yyv4092) != 0 { yyv4092 = yyv4092[:0] yyc4092 = true } } else if yyl4092 > 0 { var yyrr4092, yyrl4092 int var yyrt4092 bool if yyl4092 > cap(yyv4092) { yyrg4092 := len(yyv4092) > 0 yyv24092 := yyv4092 yyrl4092, yyrt4092 = z.DecInferLen(yyl4092, z.DecBasicHandle().MaxInitLen, 216) if yyrt4092 { if yyrl4092 <= cap(yyv4092) { yyv4092 = yyv4092[:yyrl4092] } else { yyv4092 = make([]ComponentStatus, yyrl4092) } } else { yyv4092 = make([]ComponentStatus, yyrl4092) } yyc4092 = true yyrr4092 = len(yyv4092) if yyrg4092 { copy(yyv4092, yyv24092) } } else if yyl4092 != len(yyv4092) { yyv4092 = yyv4092[:yyl4092] yyc4092 = true } yyj4092 := 0 for ; yyj4092 < yyrr4092; yyj4092++ { yyh4092.ElemContainerState(yyj4092) if r.TryDecodeAsNil() { yyv4092[yyj4092] = ComponentStatus{} } else { yyv4093 := &yyv4092[yyj4092] yyv4093.CodecDecodeSelf(d) } } if yyrt4092 { for ; yyj4092 < yyl4092; yyj4092++ { yyv4092 = append(yyv4092, ComponentStatus{}) yyh4092.ElemContainerState(yyj4092) if r.TryDecodeAsNil() { yyv4092[yyj4092] = ComponentStatus{} } else { yyv4094 := &yyv4092[yyj4092] yyv4094.CodecDecodeSelf(d) } } } } else { yyj4092 := 0 for ; !r.CheckBreak(); yyj4092++ { if yyj4092 >= len(yyv4092) { yyv4092 = append(yyv4092, ComponentStatus{}) // var yyz4092 ComponentStatus yyc4092 = true } yyh4092.ElemContainerState(yyj4092) if yyj4092 < len(yyv4092) { if r.TryDecodeAsNil() { yyv4092[yyj4092] = ComponentStatus{} } else { yyv4095 := &yyv4092[yyj4092] yyv4095.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4092 < len(yyv4092) { yyv4092 = yyv4092[:yyj4092] yyc4092 = true } else if yyj4092 == 0 && yyv4092 == nil { yyv4092 = []ComponentStatus{} yyc4092 = true } } yyh4092.End() if yyc4092 { *v = yyv4092 } }