/* 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 *HTTPGetAction) 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 [4]bool _, _, _ = yysep1036, yyq1036, yy2arr1036 const yyr1036 bool = false yyq1036[0] = x.Path != "" yyq1036[1] = true yyq1036[2] = x.Host != "" yyq1036[3] = x.Scheme != "" var yynn1036 int if yyr1036 || yy2arr1036 { r.EncodeArrayStart(4) } else { yynn1036 = 0 for _, b := range yyq1036 { if b { yynn1036++ } } r.EncodeMapStart(yynn1036) yynn1036 = 0 } if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1036[0] { yym1038 := z.EncBinary() _ = yym1038 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1036[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1039 := z.EncBinary() _ = yym1039 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1036[1] { yy1041 := &x.Port yym1042 := z.EncBinary() _ = yym1042 if false { } else if z.HasExtensions() && z.EncExt(yy1041) { } else if !yym1042 && z.IsJSONHandle() { z.EncJSONMarshal(yy1041) } else { z.EncFallback(yy1041) } } else { r.EncodeNil() } } else { if yyq1036[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1043 := &x.Port yym1044 := z.EncBinary() _ = yym1044 if false { } else if z.HasExtensions() && z.EncExt(yy1043) { } else if !yym1044 && z.IsJSONHandle() { z.EncJSONMarshal(yy1043) } else { z.EncFallback(yy1043) } } } if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1036[2] { yym1046 := z.EncBinary() _ = yym1046 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1036[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1047 := z.EncBinary() _ = yym1047 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr1036 || yy2arr1036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1036[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1036[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr1036 || yy2arr1036 { 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 yym1049 := z.DecBinary() _ = yym1049 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1050 := r.ContainerType() if yyct1050 == codecSelferValueTypeMap1234 { yyl1050 := r.ReadMapStart() if yyl1050 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1050, d) } } else if yyct1050 == codecSelferValueTypeArray1234 { yyl1050 := r.ReadArrayStart() if yyl1050 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1050, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1051Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1051Slc var yyhl1051 bool = l >= 0 for yyj1051 := 0; ; yyj1051++ { if yyhl1051 { if yyj1051 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1051Slc = r.DecodeBytes(yys1051Slc, true, true) yys1051 := string(yys1051Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1051 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1053 := &x.Port yym1054 := z.DecBinary() _ = yym1054 if false { } else if z.HasExtensions() && z.DecExt(yyv1053) { } else if !yym1054 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1053) } else { z.DecFallback(yyv1053, false) } } case "host": if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } case "scheme": if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1051) } // end switch yys1051 } // end for yyj1051 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 yyj1057 int var yyb1057 bool var yyhl1057 bool = l >= 0 yyj1057++ if yyhl1057 { yyb1057 = yyj1057 > l } else { yyb1057 = r.CheckBreak() } if yyb1057 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1057++ if yyhl1057 { yyb1057 = yyj1057 > l } else { yyb1057 = r.CheckBreak() } if yyb1057 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1059 := &x.Port yym1060 := z.DecBinary() _ = yym1060 if false { } else if z.HasExtensions() && z.DecExt(yyv1059) { } else if !yym1060 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1059) } else { z.DecFallback(yyv1059, false) } } yyj1057++ if yyhl1057 { yyb1057 = yyj1057 > l } else { yyb1057 = r.CheckBreak() } if yyb1057 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj1057++ if yyhl1057 { yyb1057 = yyj1057 > l } else { yyb1057 = r.CheckBreak() } if yyb1057 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } for { yyj1057++ if yyhl1057 { yyb1057 = yyj1057 > l } else { yyb1057 = r.CheckBreak() } if yyb1057 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1057-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1063 := z.EncBinary() _ = yym1063 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 yym1064 := z.DecBinary() _ = yym1064 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 { yym1065 := z.EncBinary() _ = yym1065 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1066 := !z.EncBinary() yy2arr1066 := z.EncBasicHandle().StructToArray var yyq1066 [1]bool _, _, _ = yysep1066, yyq1066, yy2arr1066 const yyr1066 bool = false yyq1066[0] = true var yynn1066 int if yyr1066 || yy2arr1066 { r.EncodeArrayStart(1) } else { yynn1066 = 0 for _, b := range yyq1066 { if b { yynn1066++ } } r.EncodeMapStart(yynn1066) yynn1066 = 0 } if yyr1066 || yy2arr1066 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1066[0] { yy1068 := &x.Port yym1069 := z.EncBinary() _ = yym1069 if false { } else if z.HasExtensions() && z.EncExt(yy1068) { } else if !yym1069 && z.IsJSONHandle() { z.EncJSONMarshal(yy1068) } else { z.EncFallback(yy1068) } } else { r.EncodeNil() } } else { if yyq1066[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1070 := &x.Port yym1071 := z.EncBinary() _ = yym1071 if false { } else if z.HasExtensions() && z.EncExt(yy1070) { } else if !yym1071 && z.IsJSONHandle() { z.EncJSONMarshal(yy1070) } else { z.EncFallback(yy1070) } } } if yyr1066 || yy2arr1066 { 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 yym1072 := z.DecBinary() _ = yym1072 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1073 := r.ContainerType() if yyct1073 == codecSelferValueTypeMap1234 { yyl1073 := r.ReadMapStart() if yyl1073 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1073, d) } } else if yyct1073 == codecSelferValueTypeArray1234 { yyl1073 := r.ReadArrayStart() if yyl1073 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1073, 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 yys1074Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1074Slc var yyhl1074 bool = l >= 0 for yyj1074 := 0; ; yyj1074++ { if yyhl1074 { if yyj1074 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1074Slc = r.DecodeBytes(yys1074Slc, true, true) yys1074 := string(yys1074Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1074 { case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1075 := &x.Port yym1076 := z.DecBinary() _ = yym1076 if false { } else if z.HasExtensions() && z.DecExt(yyv1075) { } else if !yym1076 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1075) } else { z.DecFallback(yyv1075, false) } } default: z.DecStructFieldNotFound(-1, yys1074) } // end switch yys1074 } // end for yyj1074 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 yyj1077 int var yyb1077 bool var yyhl1077 bool = l >= 0 yyj1077++ if yyhl1077 { yyb1077 = yyj1077 > l } else { yyb1077 = r.CheckBreak() } if yyb1077 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv1078 := &x.Port yym1079 := z.DecBinary() _ = yym1079 if false { } else if z.HasExtensions() && z.DecExt(yyv1078) { } else if !yym1079 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1078) } else { z.DecFallback(yyv1078, false) } } for { yyj1077++ if yyhl1077 { yyb1077 = yyj1077 > l } else { yyb1077 = r.CheckBreak() } if yyb1077 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1077-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 { yym1080 := z.EncBinary() _ = yym1080 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1081 := !z.EncBinary() yy2arr1081 := z.EncBasicHandle().StructToArray var yyq1081 [1]bool _, _, _ = yysep1081, yyq1081, yy2arr1081 const yyr1081 bool = false yyq1081[0] = len(x.Command) != 0 var yynn1081 int if yyr1081 || yy2arr1081 { r.EncodeArrayStart(1) } else { yynn1081 = 0 for _, b := range yyq1081 { if b { yynn1081++ } } r.EncodeMapStart(yynn1081) yynn1081 = 0 } if yyr1081 || yy2arr1081 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1081[0] { if x.Command == nil { r.EncodeNil() } else { yym1083 := z.EncBinary() _ = yym1083 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1081[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1084 := z.EncBinary() _ = yym1084 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1081 || yy2arr1081 { 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 yym1085 := z.DecBinary() _ = yym1085 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1086 := r.ContainerType() if yyct1086 == codecSelferValueTypeMap1234 { yyl1086 := r.ReadMapStart() if yyl1086 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1086, d) } } else if yyct1086 == codecSelferValueTypeArray1234 { yyl1086 := r.ReadArrayStart() if yyl1086 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1086, 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 yys1087Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1087Slc var yyhl1087 bool = l >= 0 for yyj1087 := 0; ; yyj1087++ { if yyhl1087 { if yyj1087 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1087Slc = r.DecodeBytes(yys1087Slc, true, true) yys1087 := string(yys1087Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1087 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1088 := &x.Command yym1089 := z.DecBinary() _ = yym1089 if false { } else { z.F.DecSliceStringX(yyv1088, false, d) } } default: z.DecStructFieldNotFound(-1, yys1087) } // end switch yys1087 } // end for yyj1087 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 yyj1090 int var yyb1090 bool var yyhl1090 bool = l >= 0 yyj1090++ if yyhl1090 { yyb1090 = yyj1090 > l } else { yyb1090 = r.CheckBreak() } if yyb1090 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1091 := &x.Command yym1092 := z.DecBinary() _ = yym1092 if false { } else { z.F.DecSliceStringX(yyv1091, false, d) } } for { yyj1090++ if yyhl1090 { yyb1090 = yyj1090 > l } else { yyb1090 = r.CheckBreak() } if yyb1090 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1090-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 { yym1093 := z.EncBinary() _ = yym1093 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1094 := !z.EncBinary() yy2arr1094 := z.EncBasicHandle().StructToArray var yyq1094 [8]bool _, _, _ = yysep1094, yyq1094, yy2arr1094 const yyr1094 bool = false yyq1094[0] = x.Handler.Exec != nil && x.Exec != nil yyq1094[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq1094[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil yyq1094[3] = x.InitialDelaySeconds != 0 yyq1094[4] = x.TimeoutSeconds != 0 yyq1094[5] = x.PeriodSeconds != 0 yyq1094[6] = x.SuccessThreshold != 0 yyq1094[7] = x.FailureThreshold != 0 var yynn1094 int if yyr1094 || yy2arr1094 { r.EncodeArrayStart(8) } else { yynn1094 = 0 for _, b := range yyq1094 { if b { yynn1094++ } } r.EncodeMapStart(yynn1094) yynn1094 = 0 } var yyn1095 bool if x.Handler.Exec == nil { yyn1095 = true goto LABEL1095 } LABEL1095: if yyr1094 || yy2arr1094 { if yyn1095 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1094[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1095 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1096 bool if x.Handler.HTTPGet == nil { yyn1096 = true goto LABEL1096 } LABEL1096: if yyr1094 || yy2arr1094 { if yyn1096 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1094[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1096 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1097 bool if x.Handler.TCPSocket == nil { yyn1097 = true goto LABEL1097 } LABEL1097: if yyr1094 || yy2arr1094 { if yyn1097 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1094[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1097 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[3] { yym1099 := z.EncBinary() _ = yym1099 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq1094[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1100 := z.EncBinary() _ = yym1100 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[4] { yym1102 := z.EncBinary() _ = yym1102 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1094[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1103 := z.EncBinary() _ = yym1103 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[5] { yym1105 := z.EncBinary() _ = yym1105 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1094[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1106 := z.EncBinary() _ = yym1106 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[6] { yym1108 := z.EncBinary() _ = yym1108 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1094[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1109 := z.EncBinary() _ = yym1109 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[7] { yym1111 := z.EncBinary() _ = yym1111 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1094[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1112 := z.EncBinary() _ = yym1112 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } if yyr1094 || yy2arr1094 { 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 yym1113 := z.DecBinary() _ = yym1113 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1114 := r.ContainerType() if yyct1114 == codecSelferValueTypeMap1234 { yyl1114 := r.ReadMapStart() if yyl1114 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1114, d) } } else if yyct1114 == codecSelferValueTypeArray1234 { yyl1114 := r.ReadArrayStart() if yyl1114 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1114, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1115Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1115Slc var yyhl1115 bool = l >= 0 for yyj1115 := 0; ; yyj1115++ { if yyhl1115 { if yyj1115 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1115Slc = r.DecodeBytes(yys1115Slc, true, true) yys1115 := string(yys1115Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1115 { case "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, yys1115) } // end switch yys1115 } // end for yyj1115 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 yyj1124 int var yyb1124 bool var yyhl1124 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { 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) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { 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) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { 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) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1124-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1133 := z.EncBinary() _ = yym1133 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 yym1134 := z.DecBinary() _ = yym1134 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 yym1135 := z.EncBinary() _ = yym1135 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 yym1136 := z.DecBinary() _ = yym1136 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 { yym1137 := z.EncBinary() _ = yym1137 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1138 := !z.EncBinary() yy2arr1138 := z.EncBasicHandle().StructToArray var yyq1138 [2]bool _, _, _ = yysep1138, yyq1138, yy2arr1138 const yyr1138 bool = false yyq1138[0] = len(x.Add) != 0 yyq1138[1] = len(x.Drop) != 0 var yynn1138 int if yyr1138 || yy2arr1138 { r.EncodeArrayStart(2) } else { yynn1138 = 0 for _, b := range yyq1138 { if b { yynn1138++ } } r.EncodeMapStart(yynn1138) yynn1138 = 0 } if yyr1138 || yy2arr1138 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1138[0] { if x.Add == nil { r.EncodeNil() } else { yym1140 := z.EncBinary() _ = yym1140 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1138[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1141 := z.EncBinary() _ = yym1141 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1138 || yy2arr1138 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1138[1] { if x.Drop == nil { r.EncodeNil() } else { yym1143 := z.EncBinary() _ = yym1143 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1138[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1144 := z.EncBinary() _ = yym1144 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1138 || yy2arr1138 { 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 yym1145 := z.DecBinary() _ = yym1145 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1146 := r.ContainerType() if yyct1146 == codecSelferValueTypeMap1234 { yyl1146 := r.ReadMapStart() if yyl1146 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1146, d) } } else if yyct1146 == codecSelferValueTypeArray1234 { yyl1146 := r.ReadArrayStart() if yyl1146 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1146, 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 yys1147Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1147Slc var yyhl1147 bool = l >= 0 for yyj1147 := 0; ; yyj1147++ { if yyhl1147 { if yyj1147 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1147Slc = r.DecodeBytes(yys1147Slc, true, true) yys1147 := string(yys1147Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1147 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1148 := &x.Add yym1149 := z.DecBinary() _ = yym1149 if false { } else { h.decSliceCapability((*[]Capability)(yyv1148), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1150 := &x.Drop yym1151 := z.DecBinary() _ = yym1151 if false { } else { h.decSliceCapability((*[]Capability)(yyv1150), d) } } default: z.DecStructFieldNotFound(-1, yys1147) } // end switch yys1147 } // end for yyj1147 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 yyj1152 int var yyb1152 bool var yyhl1152 bool = l >= 0 yyj1152++ if yyhl1152 { yyb1152 = yyj1152 > l } else { yyb1152 = r.CheckBreak() } if yyb1152 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1153 := &x.Add yym1154 := z.DecBinary() _ = yym1154 if false { } else { h.decSliceCapability((*[]Capability)(yyv1153), d) } } yyj1152++ if yyhl1152 { yyb1152 = yyj1152 > l } else { yyb1152 = r.CheckBreak() } if yyb1152 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1155 := &x.Drop yym1156 := z.DecBinary() _ = yym1156 if false { } else { h.decSliceCapability((*[]Capability)(yyv1155), d) } } for { yyj1152++ if yyhl1152 { yyb1152 = yyj1152 > l } else { yyb1152 = r.CheckBreak() } if yyb1152 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1152-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 { yym1157 := z.EncBinary() _ = yym1157 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1158 := !z.EncBinary() yy2arr1158 := z.EncBasicHandle().StructToArray var yyq1158 [2]bool _, _, _ = yysep1158, yyq1158, yy2arr1158 const yyr1158 bool = false yyq1158[0] = len(x.Limits) != 0 yyq1158[1] = len(x.Requests) != 0 var yynn1158 int if yyr1158 || yy2arr1158 { r.EncodeArrayStart(2) } else { yynn1158 = 0 for _, b := range yyq1158 { if b { yynn1158++ } } r.EncodeMapStart(yynn1158) yynn1158 = 0 } if yyr1158 || yy2arr1158 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1158[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1158[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 yyr1158 || yy2arr1158 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1158[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1158[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 yyr1158 || yy2arr1158 { 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 yym1161 := z.DecBinary() _ = yym1161 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1162 := r.ContainerType() if yyct1162 == codecSelferValueTypeMap1234 { yyl1162 := r.ReadMapStart() if yyl1162 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1162, d) } } else if yyct1162 == codecSelferValueTypeArray1234 { yyl1162 := r.ReadArrayStart() if yyl1162 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1162, 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 yys1163Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1163Slc var yyhl1163 bool = l >= 0 for yyj1163 := 0; ; yyj1163++ { if yyhl1163 { if yyj1163 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1163Slc = r.DecodeBytes(yys1163Slc, true, true) yys1163 := string(yys1163Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1163 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1164 := &x.Limits yyv1164.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1165 := &x.Requests yyv1165.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1163) } // end switch yys1163 } // end for yyj1163 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 yyj1166 int var yyb1166 bool var yyhl1166 bool = l >= 0 yyj1166++ if yyhl1166 { yyb1166 = yyj1166 > l } else { yyb1166 = r.CheckBreak() } if yyb1166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1167 := &x.Limits yyv1167.CodecDecodeSelf(d) } yyj1166++ if yyhl1166 { yyb1166 = yyj1166 > l } else { yyb1166 = r.CheckBreak() } if yyb1166 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1168 := &x.Requests yyv1168.CodecDecodeSelf(d) } for { yyj1166++ if yyhl1166 { yyb1166 = yyj1166 > l } else { yyb1166 = r.CheckBreak() } if yyb1166 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1166-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 { yym1169 := z.EncBinary() _ = yym1169 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1170 := !z.EncBinary() yy2arr1170 := z.EncBasicHandle().StructToArray var yyq1170 [18]bool _, _, _ = yysep1170, yyq1170, yy2arr1170 const yyr1170 bool = false yyq1170[2] = len(x.Command) != 0 yyq1170[3] = len(x.Args) != 0 yyq1170[4] = x.WorkingDir != "" yyq1170[5] = len(x.Ports) != 0 yyq1170[6] = len(x.Env) != 0 yyq1170[7] = true yyq1170[8] = len(x.VolumeMounts) != 0 yyq1170[9] = x.LivenessProbe != nil yyq1170[10] = x.ReadinessProbe != nil yyq1170[11] = x.Lifecycle != nil yyq1170[12] = x.TerminationMessagePath != "" yyq1170[14] = x.SecurityContext != nil yyq1170[15] = x.Stdin != false yyq1170[16] = x.StdinOnce != false yyq1170[17] = x.TTY != false var yynn1170 int if yyr1170 || yy2arr1170 { r.EncodeArrayStart(18) } else { yynn1170 = 3 for _, b := range yyq1170 { if b { yynn1170++ } } r.EncodeMapStart(yynn1170) yynn1170 = 0 } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1172 := z.EncBinary() _ = yym1172 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) yym1173 := z.EncBinary() _ = yym1173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1175 := z.EncBinary() _ = yym1175 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) yym1176 := z.EncBinary() _ = yym1176 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[2] { if x.Command == nil { r.EncodeNil() } else { yym1178 := z.EncBinary() _ = yym1178 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1170[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1179 := z.EncBinary() _ = yym1179 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[3] { if x.Args == nil { r.EncodeNil() } else { yym1181 := z.EncBinary() _ = yym1181 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1170[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1182 := z.EncBinary() _ = yym1182 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[4] { yym1184 := z.EncBinary() _ = yym1184 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1170[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1185 := z.EncBinary() _ = yym1185 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[5] { if x.Ports == nil { r.EncodeNil() } else { yym1187 := z.EncBinary() _ = yym1187 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1170[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1188 := z.EncBinary() _ = yym1188 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[6] { if x.Env == nil { r.EncodeNil() } else { yym1190 := z.EncBinary() _ = yym1190 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1170[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1191 := z.EncBinary() _ = yym1191 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[7] { yy1193 := &x.Resources yy1193.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1170[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1194 := &x.Resources yy1194.CodecEncodeSelf(e) } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1196 := z.EncBinary() _ = yym1196 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1170[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1197 := z.EncBinary() _ = yym1197 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[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 yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[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 yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[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 yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[12] { yym1202 := z.EncBinary() _ = yym1202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1170[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1203 := z.EncBinary() _ = yym1203 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1170 || yy2arr1170 { 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 yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[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 yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[15] { yym1207 := z.EncBinary() _ = yym1207 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1170[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1208 := z.EncBinary() _ = yym1208 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[16] { yym1210 := z.EncBinary() _ = yym1210 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1170[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1211 := z.EncBinary() _ = yym1211 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[17] { yym1213 := z.EncBinary() _ = yym1213 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1170[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1214 := z.EncBinary() _ = yym1214 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1170 || yy2arr1170 { 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 yym1215 := z.DecBinary() _ = yym1215 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1216 := r.ContainerType() if yyct1216 == codecSelferValueTypeMap1234 { yyl1216 := r.ReadMapStart() if yyl1216 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1216, d) } } else if yyct1216 == codecSelferValueTypeArray1234 { yyl1216 := r.ReadArrayStart() if yyl1216 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1216, 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 yys1217Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1217Slc var yyhl1217 bool = l >= 0 for yyj1217 := 0; ; yyj1217++ { if yyhl1217 { if yyj1217 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1217Slc = r.DecodeBytes(yys1217Slc, true, true) yys1217 := string(yys1217Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1217 { 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 { yyv1220 := &x.Command yym1221 := z.DecBinary() _ = yym1221 if false { } else { z.F.DecSliceStringX(yyv1220, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1222 := &x.Args yym1223 := z.DecBinary() _ = yym1223 if false { } else { z.F.DecSliceStringX(yyv1222, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1225 := &x.Ports yym1226 := z.DecBinary() _ = yym1226 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1225), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1227 := &x.Env yym1228 := z.DecBinary() _ = yym1228 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1227), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1229 := &x.Resources yyv1229.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1230 := &x.VolumeMounts yym1231 := z.DecBinary() _ = yym1231 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1230), 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, yys1217) } // end switch yys1217 } // end for yyj1217 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 yyj1241 int var yyb1241 bool var yyhl1241 bool = l >= 0 yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1244 := &x.Command yym1245 := z.DecBinary() _ = yym1245 if false { } else { z.F.DecSliceStringX(yyv1244, false, d) } } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1246 := &x.Args yym1247 := z.DecBinary() _ = yym1247 if false { } else { z.F.DecSliceStringX(yyv1246, false, d) } } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1249 := &x.Ports yym1250 := z.DecBinary() _ = yym1250 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1249), d) } } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1251 := &x.Env yym1252 := z.DecBinary() _ = yym1252 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1251), d) } } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1253 := &x.Resources yyv1253.CodecDecodeSelf(d) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1254 := &x.VolumeMounts yym1255 := z.DecBinary() _ = yym1255 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1254), d) } } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { 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) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { 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) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { 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) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(SecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1241++ if yyhl1241 { yyb1241 = yyj1241 > l } else { yyb1241 = r.CheckBreak() } if yyb1241 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1241-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1265 := z.EncBinary() _ = yym1265 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1266 := !z.EncBinary() yy2arr1266 := z.EncBasicHandle().StructToArray var yyq1266 [3]bool _, _, _ = yysep1266, yyq1266, yy2arr1266 const yyr1266 bool = false yyq1266[0] = x.Exec != nil yyq1266[1] = x.HTTPGet != nil yyq1266[2] = x.TCPSocket != nil var yynn1266 int if yyr1266 || yy2arr1266 { r.EncodeArrayStart(3) } else { yynn1266 = 0 for _, b := range yyq1266 { if b { yynn1266++ } } r.EncodeMapStart(yynn1266) yynn1266 = 0 } if yyr1266 || yy2arr1266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1266[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1266[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 yyr1266 || yy2arr1266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1266[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1266[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 yyr1266 || yy2arr1266 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1266[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1266[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 yyr1266 || yy2arr1266 { 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 yym1270 := z.DecBinary() _ = yym1270 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1271 := r.ContainerType() if yyct1271 == codecSelferValueTypeMap1234 { yyl1271 := r.ReadMapStart() if yyl1271 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1271, d) } } else if yyct1271 == codecSelferValueTypeArray1234 { yyl1271 := r.ReadArrayStart() if yyl1271 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1271, 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 yys1272Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1272Slc var yyhl1272 bool = l >= 0 for yyj1272 := 0; ; yyj1272++ { if yyhl1272 { if yyj1272 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1272Slc = r.DecodeBytes(yys1272Slc, true, true) yys1272 := string(yys1272Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1272 { 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, yys1272) } // end switch yys1272 } // end for yyj1272 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 yyj1276 int var yyb1276 bool var yyhl1276 bool = l >= 0 yyj1276++ if yyhl1276 { yyb1276 = yyj1276 > l } else { yyb1276 = r.CheckBreak() } if yyb1276 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } yyj1276++ if yyhl1276 { yyb1276 = yyj1276 > l } else { yyb1276 = r.CheckBreak() } if yyb1276 { 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) } yyj1276++ if yyhl1276 { yyb1276 = yyj1276 > l } else { yyb1276 = r.CheckBreak() } if yyb1276 { 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 { yyj1276++ if yyhl1276 { yyb1276 = yyj1276 > l } else { yyb1276 = r.CheckBreak() } if yyb1276 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1276-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1280 := z.EncBinary() _ = yym1280 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1281 := !z.EncBinary() yy2arr1281 := z.EncBasicHandle().StructToArray var yyq1281 [2]bool _, _, _ = yysep1281, yyq1281, yy2arr1281 const yyr1281 bool = false yyq1281[0] = x.PostStart != nil yyq1281[1] = x.PreStop != nil var yynn1281 int if yyr1281 || yy2arr1281 { r.EncodeArrayStart(2) } else { yynn1281 = 0 for _, b := range yyq1281 { if b { yynn1281++ } } r.EncodeMapStart(yynn1281) yynn1281 = 0 } if yyr1281 || yy2arr1281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1281[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1281[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 yyr1281 || yy2arr1281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1281[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1281[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 yyr1281 || yy2arr1281 { 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 yym1284 := z.DecBinary() _ = yym1284 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1285 := r.ContainerType() if yyct1285 == codecSelferValueTypeMap1234 { yyl1285 := r.ReadMapStart() if yyl1285 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1285, d) } } else if yyct1285 == codecSelferValueTypeArray1234 { yyl1285 := r.ReadArrayStart() if yyl1285 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1285, 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 yys1286Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1286Slc var yyhl1286 bool = l >= 0 for yyj1286 := 0; ; yyj1286++ { if yyhl1286 { if yyj1286 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1286Slc = r.DecodeBytes(yys1286Slc, true, true) yys1286 := string(yys1286Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1286 { 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, yys1286) } // end switch yys1286 } // end for yyj1286 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 yyj1289 int var yyb1289 bool var yyhl1289 bool = l >= 0 yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PostStart != nil { x.PostStart = nil } } else { if x.PostStart == nil { x.PostStart = new(Handler) } x.PostStart.CodecDecodeSelf(d) } yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PreStop != nil { x.PreStop = nil } } else { if x.PreStop == nil { x.PreStop = new(Handler) } x.PreStop.CodecDecodeSelf(d) } for { yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1289-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1292 := z.EncBinary() _ = yym1292 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 yym1293 := z.DecBinary() _ = yym1293 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 { yym1294 := z.EncBinary() _ = yym1294 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1295 := !z.EncBinary() yy2arr1295 := z.EncBasicHandle().StructToArray var yyq1295 [2]bool _, _, _ = yysep1295, yyq1295, yy2arr1295 const yyr1295 bool = false yyq1295[0] = x.Reason != "" yyq1295[1] = x.Message != "" var yynn1295 int if yyr1295 || yy2arr1295 { r.EncodeArrayStart(2) } else { yynn1295 = 0 for _, b := range yyq1295 { if b { yynn1295++ } } r.EncodeMapStart(yynn1295) yynn1295 = 0 } if yyr1295 || yy2arr1295 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1295[0] { yym1297 := z.EncBinary() _ = yym1297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1295[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1298 := z.EncBinary() _ = yym1298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1295 || yy2arr1295 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1295[1] { yym1300 := z.EncBinary() _ = yym1300 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1295[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1301 := z.EncBinary() _ = yym1301 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1295 || yy2arr1295 { 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 yym1302 := z.DecBinary() _ = yym1302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1303 := r.ContainerType() if yyct1303 == codecSelferValueTypeMap1234 { yyl1303 := r.ReadMapStart() if yyl1303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1303, d) } } else if yyct1303 == codecSelferValueTypeArray1234 { yyl1303 := r.ReadArrayStart() if yyl1303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1303, 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 yys1304Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1304Slc var yyhl1304 bool = l >= 0 for yyj1304 := 0; ; yyj1304++ { if yyhl1304 { if yyj1304 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1304Slc = r.DecodeBytes(yys1304Slc, true, true) yys1304 := string(yys1304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1304 { 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, yys1304) } // end switch yys1304 } // end for yyj1304 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 yyj1307 int var yyb1307 bool var yyhl1307 bool = l >= 0 yyj1307++ if yyhl1307 { yyb1307 = yyj1307 > l } else { yyb1307 = r.CheckBreak() } if yyb1307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1307++ if yyhl1307 { yyb1307 = yyj1307 > l } else { yyb1307 = r.CheckBreak() } if yyb1307 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1307++ if yyhl1307 { yyb1307 = yyj1307 > l } else { yyb1307 = r.CheckBreak() } if yyb1307 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1307-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 { yym1310 := z.EncBinary() _ = yym1310 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1311 := !z.EncBinary() yy2arr1311 := z.EncBasicHandle().StructToArray var yyq1311 [1]bool _, _, _ = yysep1311, yyq1311, yy2arr1311 const yyr1311 bool = false yyq1311[0] = true var yynn1311 int if yyr1311 || yy2arr1311 { r.EncodeArrayStart(1) } else { yynn1311 = 0 for _, b := range yyq1311 { if b { yynn1311++ } } r.EncodeMapStart(yynn1311) yynn1311 = 0 } if yyr1311 || yy2arr1311 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1311[0] { yy1313 := &x.StartedAt yym1314 := z.EncBinary() _ = yym1314 if false { } else if z.HasExtensions() && z.EncExt(yy1313) { } else if yym1314 { z.EncBinaryMarshal(yy1313) } else if !yym1314 && z.IsJSONHandle() { z.EncJSONMarshal(yy1313) } else { z.EncFallback(yy1313) } } else { r.EncodeNil() } } else { if yyq1311[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1315 := &x.StartedAt yym1316 := z.EncBinary() _ = yym1316 if false { } else if z.HasExtensions() && z.EncExt(yy1315) { } else if yym1316 { z.EncBinaryMarshal(yy1315) } else if !yym1316 && z.IsJSONHandle() { z.EncJSONMarshal(yy1315) } else { z.EncFallback(yy1315) } } } if yyr1311 || yy2arr1311 { 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 yym1317 := z.DecBinary() _ = yym1317 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1318 := r.ContainerType() if yyct1318 == codecSelferValueTypeMap1234 { yyl1318 := r.ReadMapStart() if yyl1318 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1318, d) } } else if yyct1318 == codecSelferValueTypeArray1234 { yyl1318 := r.ReadArrayStart() if yyl1318 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1318, 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 yys1319Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1319Slc var yyhl1319 bool = l >= 0 for yyj1319 := 0; ; yyj1319++ { if yyhl1319 { if yyj1319 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1319Slc = r.DecodeBytes(yys1319Slc, true, true) yys1319 := string(yys1319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1319 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1320 := &x.StartedAt yym1321 := z.DecBinary() _ = yym1321 if false { } else if z.HasExtensions() && z.DecExt(yyv1320) { } else if yym1321 { z.DecBinaryUnmarshal(yyv1320) } else if !yym1321 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1320) } else { z.DecFallback(yyv1320, false) } } default: z.DecStructFieldNotFound(-1, yys1319) } // end switch yys1319 } // end for yyj1319 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 yyj1322 int var yyb1322 bool var yyhl1322 bool = l >= 0 yyj1322++ if yyhl1322 { yyb1322 = yyj1322 > l } else { yyb1322 = r.CheckBreak() } if yyb1322 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1323 := &x.StartedAt yym1324 := z.DecBinary() _ = yym1324 if false { } else if z.HasExtensions() && z.DecExt(yyv1323) { } else if yym1324 { z.DecBinaryUnmarshal(yyv1323) } else if !yym1324 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1323) } else { z.DecFallback(yyv1323, false) } } for { yyj1322++ if yyhl1322 { yyb1322 = yyj1322 > l } else { yyb1322 = r.CheckBreak() } if yyb1322 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1322-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 { yym1325 := z.EncBinary() _ = yym1325 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1326 := !z.EncBinary() yy2arr1326 := z.EncBasicHandle().StructToArray var yyq1326 [7]bool _, _, _ = yysep1326, yyq1326, yy2arr1326 const yyr1326 bool = false yyq1326[1] = x.Signal != 0 yyq1326[2] = x.Reason != "" yyq1326[3] = x.Message != "" yyq1326[4] = true yyq1326[5] = true yyq1326[6] = x.ContainerID != "" var yynn1326 int if yyr1326 || yy2arr1326 { r.EncodeArrayStart(7) } else { yynn1326 = 1 for _, b := range yyq1326 { if b { yynn1326++ } } r.EncodeMapStart(yynn1326) yynn1326 = 0 } if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1328 := z.EncBinary() _ = yym1328 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1329 := z.EncBinary() _ = yym1329 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1326[1] { yym1331 := z.EncBinary() _ = yym1331 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1326[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1332 := z.EncBinary() _ = yym1332 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1326[2] { yym1334 := z.EncBinary() _ = yym1334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1326[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1335 := z.EncBinary() _ = yym1335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1326[3] { yym1337 := z.EncBinary() _ = yym1337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1326[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1338 := z.EncBinary() _ = yym1338 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1326[4] { yy1340 := &x.StartedAt yym1341 := z.EncBinary() _ = yym1341 if false { } else if z.HasExtensions() && z.EncExt(yy1340) { } else if yym1341 { z.EncBinaryMarshal(yy1340) } else if !yym1341 && z.IsJSONHandle() { z.EncJSONMarshal(yy1340) } else { z.EncFallback(yy1340) } } else { r.EncodeNil() } } else { if yyq1326[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1342 := &x.StartedAt yym1343 := z.EncBinary() _ = yym1343 if false { } else if z.HasExtensions() && z.EncExt(yy1342) { } else if yym1343 { z.EncBinaryMarshal(yy1342) } else if !yym1343 && z.IsJSONHandle() { z.EncJSONMarshal(yy1342) } else { z.EncFallback(yy1342) } } } if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1326[5] { yy1345 := &x.FinishedAt yym1346 := z.EncBinary() _ = yym1346 if false { } else if z.HasExtensions() && z.EncExt(yy1345) { } else if yym1346 { z.EncBinaryMarshal(yy1345) } else if !yym1346 && z.IsJSONHandle() { z.EncJSONMarshal(yy1345) } else { z.EncFallback(yy1345) } } else { r.EncodeNil() } } else { if yyq1326[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1347 := &x.FinishedAt yym1348 := z.EncBinary() _ = yym1348 if false { } else if z.HasExtensions() && z.EncExt(yy1347) { } else if yym1348 { z.EncBinaryMarshal(yy1347) } else if !yym1348 && z.IsJSONHandle() { z.EncJSONMarshal(yy1347) } else { z.EncFallback(yy1347) } } } if yyr1326 || yy2arr1326 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1326[6] { yym1350 := z.EncBinary() _ = yym1350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1326[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1351 := z.EncBinary() _ = yym1351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1326 || yy2arr1326 { 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 yym1352 := z.DecBinary() _ = yym1352 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1353 := r.ContainerType() if yyct1353 == codecSelferValueTypeMap1234 { yyl1353 := r.ReadMapStart() if yyl1353 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1353, d) } } else if yyct1353 == codecSelferValueTypeArray1234 { yyl1353 := r.ReadArrayStart() if yyl1353 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1353, 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 yys1354Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1354Slc var yyhl1354 bool = l >= 0 for yyj1354 := 0; ; yyj1354++ { if yyhl1354 { if yyj1354 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1354Slc = r.DecodeBytes(yys1354Slc, true, true) yys1354 := string(yys1354Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1354 { 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 { yyv1359 := &x.StartedAt yym1360 := z.DecBinary() _ = yym1360 if false { } else if z.HasExtensions() && z.DecExt(yyv1359) { } else if yym1360 { z.DecBinaryUnmarshal(yyv1359) } else if !yym1360 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1359) } else { z.DecFallback(yyv1359, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1361 := &x.FinishedAt yym1362 := z.DecBinary() _ = yym1362 if false { } else if z.HasExtensions() && z.DecExt(yyv1361) { } else if yym1362 { z.DecBinaryUnmarshal(yyv1361) } else if !yym1362 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1361) } else { z.DecFallback(yyv1361, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1354) } // end switch yys1354 } // end for yyj1354 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 yyj1364 int var yyb1364 bool var yyhl1364 bool = l >= 0 yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1369 := &x.StartedAt yym1370 := z.DecBinary() _ = yym1370 if false { } else if z.HasExtensions() && z.DecExt(yyv1369) { } else if yym1370 { z.DecBinaryUnmarshal(yyv1369) } else if !yym1370 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1369) } else { z.DecFallback(yyv1369, false) } } yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1371 := &x.FinishedAt yym1372 := z.DecBinary() _ = yym1372 if false { } else if z.HasExtensions() && z.DecExt(yyv1371) { } else if yym1372 { z.DecBinaryUnmarshal(yyv1371) } else if !yym1372 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1371) } else { z.DecFallback(yyv1371, false) } } yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1364++ if yyhl1364 { yyb1364 = yyj1364 > l } else { yyb1364 = r.CheckBreak() } if yyb1364 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1364-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 { yym1374 := z.EncBinary() _ = yym1374 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1375 := !z.EncBinary() yy2arr1375 := z.EncBasicHandle().StructToArray var yyq1375 [3]bool _, _, _ = yysep1375, yyq1375, yy2arr1375 const yyr1375 bool = false yyq1375[0] = x.Waiting != nil yyq1375[1] = x.Running != nil yyq1375[2] = x.Terminated != nil var yynn1375 int if yyr1375 || yy2arr1375 { r.EncodeArrayStart(3) } else { yynn1375 = 0 for _, b := range yyq1375 { if b { yynn1375++ } } r.EncodeMapStart(yynn1375) yynn1375 = 0 } if yyr1375 || yy2arr1375 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1375[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1375[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 yyr1375 || yy2arr1375 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1375[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1375[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 yyr1375 || yy2arr1375 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1375[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1375[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 yyr1375 || yy2arr1375 { 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 yym1379 := z.DecBinary() _ = yym1379 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1380 := r.ContainerType() if yyct1380 == codecSelferValueTypeMap1234 { yyl1380 := r.ReadMapStart() if yyl1380 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1380, d) } } else if yyct1380 == codecSelferValueTypeArray1234 { yyl1380 := r.ReadArrayStart() if yyl1380 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1380, 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 yys1381Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1381Slc var yyhl1381 bool = l >= 0 for yyj1381 := 0; ; yyj1381++ { if yyhl1381 { if yyj1381 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1381Slc = r.DecodeBytes(yys1381Slc, true, true) yys1381 := string(yys1381Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1381 { 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, yys1381) } // end switch yys1381 } // end for yyj1381 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 yyj1385 int var yyb1385 bool var yyhl1385 bool = l >= 0 yyj1385++ if yyhl1385 { yyb1385 = yyj1385 > l } else { yyb1385 = r.CheckBreak() } if yyb1385 { 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) } yyj1385++ if yyhl1385 { yyb1385 = yyj1385 > l } else { yyb1385 = r.CheckBreak() } if yyb1385 { 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) } yyj1385++ if yyhl1385 { yyb1385 = yyj1385 > l } else { yyb1385 = r.CheckBreak() } if yyb1385 { 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 { yyj1385++ if yyhl1385 { yyb1385 = yyj1385 > l } else { yyb1385 = r.CheckBreak() } if yyb1385 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1385-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 { yym1389 := z.EncBinary() _ = yym1389 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1390 := !z.EncBinary() yy2arr1390 := z.EncBasicHandle().StructToArray var yyq1390 [8]bool _, _, _ = yysep1390, yyq1390, yy2arr1390 const yyr1390 bool = false yyq1390[1] = true yyq1390[2] = true yyq1390[7] = x.ContainerID != "" var yynn1390 int if yyr1390 || yy2arr1390 { r.EncodeArrayStart(8) } else { yynn1390 = 5 for _, b := range yyq1390 { if b { yynn1390++ } } r.EncodeMapStart(yynn1390) yynn1390 = 0 } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1392 := z.EncBinary() _ = yym1392 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) yym1393 := z.EncBinary() _ = yym1393 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1390[1] { yy1395 := &x.State yy1395.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1390[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1396 := &x.State yy1396.CodecEncodeSelf(e) } } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1390[2] { yy1398 := &x.LastTerminationState yy1398.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1390[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1399 := &x.LastTerminationState yy1399.CodecEncodeSelf(e) } } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1401 := z.EncBinary() _ = yym1401 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1402 := z.EncBinary() _ = yym1402 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1404 := z.EncBinary() _ = yym1404 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1405 := z.EncBinary() _ = yym1405 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1407 := z.EncBinary() _ = yym1407 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) yym1408 := z.EncBinary() _ = yym1408 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1410 := z.EncBinary() _ = yym1410 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) yym1411 := z.EncBinary() _ = yym1411 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1390 || yy2arr1390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1390[7] { yym1413 := z.EncBinary() _ = yym1413 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1390[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1414 := z.EncBinary() _ = yym1414 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1390 || yy2arr1390 { 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 yym1415 := z.DecBinary() _ = yym1415 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1416 := r.ContainerType() if yyct1416 == codecSelferValueTypeMap1234 { yyl1416 := r.ReadMapStart() if yyl1416 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1416, d) } } else if yyct1416 == codecSelferValueTypeArray1234 { yyl1416 := r.ReadArrayStart() if yyl1416 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1416, 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 yys1417Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1417Slc var yyhl1417 bool = l >= 0 for yyj1417 := 0; ; yyj1417++ { if yyhl1417 { if yyj1417 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1417Slc = r.DecodeBytes(yys1417Slc, true, true) yys1417 := string(yys1417Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1417 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1419 := &x.State yyv1419.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1420 := &x.LastTerminationState yyv1420.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, yys1417) } // end switch yys1417 } // end for yyj1417 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 yyj1426 int var yyb1426 bool var yyhl1426 bool = l >= 0 yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1428 := &x.State yyv1428.CodecDecodeSelf(d) } yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1429 := &x.LastTerminationState yyv1429.CodecDecodeSelf(d) } yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1426++ if yyhl1426 { yyb1426 = yyj1426 > l } else { yyb1426 = r.CheckBreak() } if yyb1426 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1426-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1435 := z.EncBinary() _ = yym1435 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 yym1436 := z.DecBinary() _ = yym1436 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 yym1437 := z.EncBinary() _ = yym1437 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 yym1438 := z.DecBinary() _ = yym1438 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 { yym1439 := z.EncBinary() _ = yym1439 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1440 := !z.EncBinary() yy2arr1440 := z.EncBasicHandle().StructToArray var yyq1440 [6]bool _, _, _ = yysep1440, yyq1440, yy2arr1440 const yyr1440 bool = false yyq1440[2] = true yyq1440[3] = true yyq1440[4] = x.Reason != "" yyq1440[5] = x.Message != "" var yynn1440 int if yyr1440 || yy2arr1440 { r.EncodeArrayStart(6) } else { yynn1440 = 2 for _, b := range yyq1440 { if b { yynn1440++ } } r.EncodeMapStart(yynn1440) yynn1440 = 0 } if yyr1440 || yy2arr1440 { 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 yyr1440 || yy2arr1440 { 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 yyr1440 || yy2arr1440 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1440[2] { yy1444 := &x.LastProbeTime yym1445 := z.EncBinary() _ = yym1445 if false { } else if z.HasExtensions() && z.EncExt(yy1444) { } else if yym1445 { z.EncBinaryMarshal(yy1444) } else if !yym1445 && z.IsJSONHandle() { z.EncJSONMarshal(yy1444) } else { z.EncFallback(yy1444) } } else { r.EncodeNil() } } else { if yyq1440[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1446 := &x.LastProbeTime yym1447 := z.EncBinary() _ = yym1447 if false { } else if z.HasExtensions() && z.EncExt(yy1446) { } else if yym1447 { z.EncBinaryMarshal(yy1446) } else if !yym1447 && z.IsJSONHandle() { z.EncJSONMarshal(yy1446) } else { z.EncFallback(yy1446) } } } if yyr1440 || yy2arr1440 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1440[3] { yy1449 := &x.LastTransitionTime yym1450 := z.EncBinary() _ = yym1450 if false { } else if z.HasExtensions() && z.EncExt(yy1449) { } else if yym1450 { z.EncBinaryMarshal(yy1449) } else if !yym1450 && z.IsJSONHandle() { z.EncJSONMarshal(yy1449) } else { z.EncFallback(yy1449) } } else { r.EncodeNil() } } else { if yyq1440[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1451 := &x.LastTransitionTime yym1452 := z.EncBinary() _ = yym1452 if false { } else if z.HasExtensions() && z.EncExt(yy1451) { } else if yym1452 { z.EncBinaryMarshal(yy1451) } else if !yym1452 && z.IsJSONHandle() { z.EncJSONMarshal(yy1451) } else { z.EncFallback(yy1451) } } } if yyr1440 || yy2arr1440 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1440[4] { yym1454 := z.EncBinary() _ = yym1454 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1440[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1455 := z.EncBinary() _ = yym1455 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1440 || yy2arr1440 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1440[5] { yym1457 := z.EncBinary() _ = yym1457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1440[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1458 := z.EncBinary() _ = yym1458 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1440 || yy2arr1440 { 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 yym1459 := z.DecBinary() _ = yym1459 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1460 := r.ContainerType() if yyct1460 == codecSelferValueTypeMap1234 { yyl1460 := r.ReadMapStart() if yyl1460 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1460, d) } } else if yyct1460 == codecSelferValueTypeArray1234 { yyl1460 := r.ReadArrayStart() if yyl1460 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1460, 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 yys1461Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1461Slc var yyhl1461 bool = l >= 0 for yyj1461 := 0; ; yyj1461++ { if yyhl1461 { if yyj1461 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1461Slc = r.DecodeBytes(yys1461Slc, true, true) yys1461 := string(yys1461Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1461 { 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 { yyv1464 := &x.LastProbeTime yym1465 := z.DecBinary() _ = yym1465 if false { } else if z.HasExtensions() && z.DecExt(yyv1464) { } else if yym1465 { z.DecBinaryUnmarshal(yyv1464) } else if !yym1465 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1464) } else { z.DecFallback(yyv1464, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1466 := &x.LastTransitionTime yym1467 := z.DecBinary() _ = yym1467 if false { } else if z.HasExtensions() && z.DecExt(yyv1466) { } else if yym1467 { z.DecBinaryUnmarshal(yyv1466) } else if !yym1467 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1466) } else { z.DecFallback(yyv1466, 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, yys1461) } // end switch yys1461 } // end for yyj1461 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 yyj1470 int var yyb1470 bool var yyhl1470 bool = l >= 0 yyj1470++ if yyhl1470 { yyb1470 = yyj1470 > l } else { yyb1470 = r.CheckBreak() } if yyb1470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1470++ if yyhl1470 { yyb1470 = yyj1470 > l } else { yyb1470 = r.CheckBreak() } if yyb1470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1470++ if yyhl1470 { yyb1470 = yyj1470 > l } else { yyb1470 = r.CheckBreak() } if yyb1470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1473 := &x.LastProbeTime yym1474 := z.DecBinary() _ = yym1474 if false { } else if z.HasExtensions() && z.DecExt(yyv1473) { } else if yym1474 { z.DecBinaryUnmarshal(yyv1473) } else if !yym1474 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1473) } else { z.DecFallback(yyv1473, false) } } yyj1470++ if yyhl1470 { yyb1470 = yyj1470 > l } else { yyb1470 = r.CheckBreak() } if yyb1470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1475 := &x.LastTransitionTime yym1476 := z.DecBinary() _ = yym1476 if false { } else if z.HasExtensions() && z.DecExt(yyv1475) { } else if yym1476 { z.DecBinaryUnmarshal(yyv1475) } else if !yym1476 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1475) } else { z.DecFallback(yyv1475, false) } } yyj1470++ if yyhl1470 { yyb1470 = yyj1470 > l } else { yyb1470 = r.CheckBreak() } if yyb1470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1470++ if yyhl1470 { yyb1470 = yyj1470 > l } else { yyb1470 = r.CheckBreak() } if yyb1470 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1470++ if yyhl1470 { yyb1470 = yyj1470 > l } else { yyb1470 = r.CheckBreak() } if yyb1470 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1470-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1479 := z.EncBinary() _ = yym1479 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 yym1480 := z.DecBinary() _ = yym1480 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 { yym1481 := z.EncBinary() _ = yym1481 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1482 := !z.EncBinary() yy2arr1482 := z.EncBasicHandle().StructToArray var yyq1482 [4]bool _, _, _ = yysep1482, yyq1482, yy2arr1482 const yyr1482 bool = false yyq1482[0] = x.Kind != "" yyq1482[1] = x.APIVersion != "" yyq1482[2] = true var yynn1482 int if yyr1482 || yy2arr1482 { r.EncodeArrayStart(4) } else { yynn1482 = 1 for _, b := range yyq1482 { if b { yynn1482++ } } r.EncodeMapStart(yynn1482) yynn1482 = 0 } if yyr1482 || yy2arr1482 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1482[0] { yym1484 := z.EncBinary() _ = yym1484 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1482[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1485 := z.EncBinary() _ = yym1485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1482 || yy2arr1482 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1482[1] { yym1487 := z.EncBinary() _ = yym1487 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1482[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1488 := z.EncBinary() _ = yym1488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1482 || yy2arr1482 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1482[2] { yy1490 := &x.ListMeta yym1491 := z.EncBinary() _ = yym1491 if false { } else if z.HasExtensions() && z.EncExt(yy1490) { } else { z.EncFallback(yy1490) } } else { r.EncodeNil() } } else { if yyq1482[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1492 := &x.ListMeta yym1493 := z.EncBinary() _ = yym1493 if false { } else if z.HasExtensions() && z.EncExt(yy1492) { } else { z.EncFallback(yy1492) } } } if yyr1482 || yy2arr1482 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1495 := z.EncBinary() _ = yym1495 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 { yym1496 := z.EncBinary() _ = yym1496 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1482 || yy2arr1482 { 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 yym1497 := z.DecBinary() _ = yym1497 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1498 := r.ContainerType() if yyct1498 == codecSelferValueTypeMap1234 { yyl1498 := r.ReadMapStart() if yyl1498 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1498, d) } } else if yyct1498 == codecSelferValueTypeArray1234 { yyl1498 := r.ReadArrayStart() if yyl1498 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1498, 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 yys1499Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1499Slc var yyhl1499 bool = l >= 0 for yyj1499 := 0; ; yyj1499++ { if yyhl1499 { if yyj1499 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1499Slc = r.DecodeBytes(yys1499Slc, true, true) yys1499 := string(yys1499Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1499 { 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 { yyv1502 := &x.ListMeta yym1503 := z.DecBinary() _ = yym1503 if false { } else if z.HasExtensions() && z.DecExt(yyv1502) { } else { z.DecFallback(yyv1502, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1504 := &x.Items yym1505 := z.DecBinary() _ = yym1505 if false { } else { h.decSlicePod((*[]Pod)(yyv1504), d) } } default: z.DecStructFieldNotFound(-1, yys1499) } // end switch yys1499 } // end for yyj1499 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 yyj1506 int var yyb1506 bool var yyhl1506 bool = l >= 0 yyj1506++ if yyhl1506 { yyb1506 = yyj1506 > l } else { yyb1506 = r.CheckBreak() } if yyb1506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1506++ if yyhl1506 { yyb1506 = yyj1506 > l } else { yyb1506 = r.CheckBreak() } if yyb1506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1506++ if yyhl1506 { yyb1506 = yyj1506 > l } else { yyb1506 = r.CheckBreak() } if yyb1506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1509 := &x.ListMeta yym1510 := z.DecBinary() _ = yym1510 if false { } else if z.HasExtensions() && z.DecExt(yyv1509) { } else { z.DecFallback(yyv1509, false) } } yyj1506++ if yyhl1506 { yyb1506 = yyj1506 > l } else { yyb1506 = r.CheckBreak() } if yyb1506 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1511 := &x.Items yym1512 := z.DecBinary() _ = yym1512 if false { } else { h.decSlicePod((*[]Pod)(yyv1511), d) } } for { yyj1506++ if yyhl1506 { yyb1506 = yyj1506 > l } else { yyb1506 = r.CheckBreak() } if yyb1506 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1506-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1513 := z.EncBinary() _ = yym1513 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 yym1514 := z.DecBinary() _ = yym1514 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1515 := z.EncBinary() _ = yym1515 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1516 := !z.EncBinary() yy2arr1516 := z.EncBasicHandle().StructToArray var yyq1516 [11]bool _, _, _ = yysep1516, yyq1516, yy2arr1516 const yyr1516 bool = false yyq1516[2] = x.RestartPolicy != "" yyq1516[3] = x.TerminationGracePeriodSeconds != nil yyq1516[4] = x.ActiveDeadlineSeconds != nil yyq1516[5] = x.DNSPolicy != "" yyq1516[6] = len(x.NodeSelector) != 0 yyq1516[8] = x.NodeName != "" yyq1516[9] = x.SecurityContext != nil yyq1516[10] = len(x.ImagePullSecrets) != 0 var yynn1516 int if yyr1516 || yy2arr1516 { r.EncodeArrayStart(11) } else { yynn1516 = 3 for _, b := range yyq1516 { if b { yynn1516++ } } r.EncodeMapStart(yynn1516) yynn1516 = 0 } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym1518 := z.EncBinary() _ = yym1518 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 { yym1519 := z.EncBinary() _ = yym1519 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym1521 := z.EncBinary() _ = yym1521 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 { yym1522 := z.EncBinary() _ = yym1522 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1516[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1525 := *x.TerminationGracePeriodSeconds yym1526 := z.EncBinary() _ = yym1526 if false { } else { r.EncodeInt(int64(yy1525)) } } } else { r.EncodeNil() } } else { if yyq1516[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1527 := *x.TerminationGracePeriodSeconds yym1528 := z.EncBinary() _ = yym1528 if false { } else { r.EncodeInt(int64(yy1527)) } } } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1530 := *x.ActiveDeadlineSeconds yym1531 := z.EncBinary() _ = yym1531 if false { } else { r.EncodeInt(int64(yy1530)) } } } else { r.EncodeNil() } } else { if yyq1516[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1532 := *x.ActiveDeadlineSeconds yym1533 := z.EncBinary() _ = yym1533 if false { } else { r.EncodeInt(int64(yy1532)) } } } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1516[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym1536 := z.EncBinary() _ = yym1536 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq1516[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym1537 := z.EncBinary() _ = yym1537 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1539 := z.EncBinary() _ = yym1539 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) yym1540 := z.EncBinary() _ = yym1540 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[8] { yym1542 := z.EncBinary() _ = yym1542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1516[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1543 := z.EncBinary() _ = yym1543 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1516[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 yyr1516 || yy2arr1516 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1516[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1546 := z.EncBinary() _ = yym1546 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq1516[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1547 := z.EncBinary() _ = yym1547 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr1516 || yy2arr1516 { 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 yym1548 := z.DecBinary() _ = yym1548 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1549 := r.ContainerType() if yyct1549 == codecSelferValueTypeMap1234 { yyl1549 := r.ReadMapStart() if yyl1549 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1549, d) } } else if yyct1549 == codecSelferValueTypeArray1234 { yyl1549 := r.ReadArrayStart() if yyl1549 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1549, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1550Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1550Slc var yyhl1550 bool = l >= 0 for yyj1550 := 0; ; yyj1550++ { if yyhl1550 { if yyj1550 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1550Slc = r.DecodeBytes(yys1550Slc, true, true) yys1550 := string(yys1550Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1550 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1551 := &x.Volumes yym1552 := z.DecBinary() _ = yym1552 if false { } else { h.decSliceVolume((*[]Volume)(yyv1551), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1553 := &x.Containers yym1554 := z.DecBinary() _ = yym1554 if false { } else { h.decSliceContainer((*[]Container)(yyv1553), 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) } yym1557 := z.DecBinary() _ = yym1557 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) } yym1559 := z.DecBinary() _ = yym1559 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 { yyv1561 := &x.NodeSelector yym1562 := z.DecBinary() _ = yym1562 if false { } else { z.F.DecMapStringStringX(yyv1561, 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 { yyv1566 := &x.ImagePullSecrets yym1567 := z.DecBinary() _ = yym1567 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1566), d) } } default: z.DecStructFieldNotFound(-1, yys1550) } // end switch yys1550 } // end for yyj1550 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 yyj1568 int var yyb1568 bool var yyhl1568 bool = l >= 0 yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1569 := &x.Volumes yym1570 := z.DecBinary() _ = yym1570 if false { } else { h.decSliceVolume((*[]Volume)(yyv1569), d) } } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1571 := &x.Containers yym1572 := z.DecBinary() _ = yym1572 if false { } else { h.decSliceContainer((*[]Container)(yyv1571), d) } } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { 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) } yym1575 := z.DecBinary() _ = yym1575 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { 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) } yym1577 := z.DecBinary() _ = yym1577 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv1579 := &x.NodeSelector yym1580 := z.DecBinary() _ = yym1580 if false { } else { z.F.DecMapStringStringX(yyv1579, false, d) } } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { 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) } yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv1584 := &x.ImagePullSecrets yym1585 := z.DecBinary() _ = yym1585 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1584), d) } } for { yyj1568++ if yyhl1568 { yyb1568 = yyj1568 > l } else { yyb1568 = r.CheckBreak() } if yyb1568 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1568-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 { yym1586 := z.EncBinary() _ = yym1586 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1587 := !z.EncBinary() yy2arr1587 := z.EncBasicHandle().StructToArray var yyq1587 [8]bool _, _, _ = yysep1587, yyq1587, yy2arr1587 const yyr1587 bool = false yyq1587[0] = x.HostNetwork != false yyq1587[1] = x.HostPID != false yyq1587[2] = x.HostIPC != false yyq1587[3] = x.SELinuxOptions != nil yyq1587[4] = x.RunAsUser != nil yyq1587[5] = x.RunAsNonRoot != nil yyq1587[6] = len(x.SupplementalGroups) != 0 yyq1587[7] = x.FSGroup != nil var yynn1587 int if yyr1587 || yy2arr1587 { r.EncodeArrayStart(8) } else { yynn1587 = 0 for _, b := range yyq1587 { if b { yynn1587++ } } r.EncodeMapStart(yynn1587) yynn1587 = 0 } if yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[0] { yym1589 := z.EncBinary() _ = yym1589 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq1587[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1590 := z.EncBinary() _ = yym1590 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[1] { yym1592 := z.EncBinary() _ = yym1592 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq1587[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1593 := z.EncBinary() _ = yym1593 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[2] { yym1595 := z.EncBinary() _ = yym1595 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq1587[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1596 := z.EncBinary() _ = yym1596 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1587[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 yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy1599 := *x.RunAsUser yym1600 := z.EncBinary() _ = yym1600 if false { } else { r.EncodeInt(int64(yy1599)) } } } else { r.EncodeNil() } } else { if yyq1587[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy1601 := *x.RunAsUser yym1602 := z.EncBinary() _ = yym1602 if false { } else { r.EncodeInt(int64(yy1601)) } } } } if yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1604 := *x.RunAsNonRoot yym1605 := z.EncBinary() _ = yym1605 if false { } else { r.EncodeBool(bool(yy1604)) } } } else { r.EncodeNil() } } else { if yyq1587[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1606 := *x.RunAsNonRoot yym1607 := z.EncBinary() _ = yym1607 if false { } else { r.EncodeBool(bool(yy1606)) } } } } if yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1609 := z.EncBinary() _ = yym1609 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq1587[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1610 := z.EncBinary() _ = yym1610 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr1587 || yy2arr1587 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1587[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy1612 := *x.FSGroup yym1613 := z.EncBinary() _ = yym1613 if false { } else { r.EncodeInt(int64(yy1612)) } } } else { r.EncodeNil() } } else { if yyq1587[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy1614 := *x.FSGroup yym1615 := z.EncBinary() _ = yym1615 if false { } else { r.EncodeInt(int64(yy1614)) } } } } if yyr1587 || yy2arr1587 { 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 yym1616 := z.DecBinary() _ = yym1616 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1617 := r.ContainerType() if yyct1617 == codecSelferValueTypeMap1234 { yyl1617 := r.ReadMapStart() if yyl1617 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1617, d) } } else if yyct1617 == codecSelferValueTypeArray1234 { yyl1617 := r.ReadArrayStart() if yyl1617 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1617, 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 yys1618Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1618Slc var yyhl1618 bool = l >= 0 for yyj1618 := 0; ; yyj1618++ { if yyhl1618 { if yyj1618 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1618Slc = r.DecodeBytes(yys1618Slc, true, true) yys1618 := string(yys1618Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1618 { 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) } yym1624 := z.DecBinary() _ = yym1624 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) } yym1626 := z.DecBinary() _ = yym1626 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1627 := &x.SupplementalGroups yym1628 := z.DecBinary() _ = yym1628 if false { } else { z.F.DecSliceInt64X(yyv1627, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym1630 := z.DecBinary() _ = yym1630 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys1618) } // end switch yys1618 } // end for yyj1618 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 yyj1631 int var yyb1631 bool var yyhl1631 bool = l >= 0 yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { 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) } yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { 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) } yym1637 := z.DecBinary() _ = yym1637 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { 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) } yym1639 := z.DecBinary() _ = yym1639 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1640 := &x.SupplementalGroups yym1641 := z.DecBinary() _ = yym1641 if false { } else { z.F.DecSliceInt64X(yyv1640, false, d) } } yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { 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) } yym1643 := z.DecBinary() _ = yym1643 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { yyj1631++ if yyhl1631 { yyb1631 = yyj1631 > l } else { yyb1631 = r.CheckBreak() } if yyb1631 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1631-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 { yym1644 := z.EncBinary() _ = yym1644 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1645 := !z.EncBinary() yy2arr1645 := z.EncBasicHandle().StructToArray var yyq1645 [8]bool _, _, _ = yysep1645, yyq1645, yy2arr1645 const yyr1645 bool = false yyq1645[0] = x.Phase != "" yyq1645[1] = len(x.Conditions) != 0 yyq1645[2] = x.Message != "" yyq1645[3] = x.Reason != "" yyq1645[4] = x.HostIP != "" yyq1645[5] = x.PodIP != "" yyq1645[6] = x.StartTime != nil yyq1645[7] = len(x.ContainerStatuses) != 0 var yynn1645 int if yyr1645 || yy2arr1645 { r.EncodeArrayStart(8) } else { yynn1645 = 0 for _, b := range yyq1645 { if b { yynn1645++ } } r.EncodeMapStart(yynn1645) yynn1645 = 0 } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1645[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[1] { if x.Conditions == nil { r.EncodeNil() } else { yym1648 := z.EncBinary() _ = yym1648 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq1645[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym1649 := z.EncBinary() _ = yym1649 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[2] { yym1651 := z.EncBinary() _ = yym1651 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1645[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1652 := z.EncBinary() _ = yym1652 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[3] { yym1654 := z.EncBinary() _ = yym1654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1645[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1655 := z.EncBinary() _ = yym1655 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[4] { yym1657 := z.EncBinary() _ = yym1657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1645[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1658 := z.EncBinary() _ = yym1658 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[5] { yym1660 := z.EncBinary() _ = yym1660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1645[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1661 := z.EncBinary() _ = yym1661 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[6] { if x.StartTime == nil { r.EncodeNil() } else { yym1663 := z.EncBinary() _ = yym1663 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1663 { z.EncBinaryMarshal(x.StartTime) } else if !yym1663 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq1645[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym1664 := z.EncBinary() _ = yym1664 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1664 { z.EncBinaryMarshal(x.StartTime) } else if !yym1664 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr1645 || yy2arr1645 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1645[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1666 := z.EncBinary() _ = yym1666 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq1645[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1667 := z.EncBinary() _ = yym1667 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr1645 || yy2arr1645 { 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 yym1668 := z.DecBinary() _ = yym1668 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1669 := r.ContainerType() if yyct1669 == codecSelferValueTypeMap1234 { yyl1669 := r.ReadMapStart() if yyl1669 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1669, d) } } else if yyct1669 == codecSelferValueTypeArray1234 { yyl1669 := r.ReadArrayStart() if yyl1669 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1669, 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 yys1670Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1670Slc var yyhl1670 bool = l >= 0 for yyj1670 := 0; ; yyj1670++ { if yyhl1670 { if yyj1670 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1670Slc = r.DecodeBytes(yys1670Slc, true, true) yys1670 := string(yys1670Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1670 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1672 := &x.Conditions yym1673 := z.DecBinary() _ = yym1673 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1672), 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) } yym1679 := z.DecBinary() _ = yym1679 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1679 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1679 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1680 := &x.ContainerStatuses yym1681 := z.DecBinary() _ = yym1681 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1680), d) } } default: z.DecStructFieldNotFound(-1, yys1670) } // end switch yys1670 } // end for yyj1670 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 yyj1682 int var yyb1682 bool var yyhl1682 bool = l >= 0 yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1684 := &x.Conditions yym1685 := z.DecBinary() _ = yym1685 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1684), d) } } yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { 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) } yym1691 := z.DecBinary() _ = yym1691 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1691 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1691 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1692 := &x.ContainerStatuses yym1693 := z.DecBinary() _ = yym1693 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1692), d) } } for { yyj1682++ if yyhl1682 { yyb1682 = yyj1682 > l } else { yyb1682 = r.CheckBreak() } if yyb1682 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1682-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 { yym1694 := z.EncBinary() _ = yym1694 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1695 := !z.EncBinary() yy2arr1695 := z.EncBasicHandle().StructToArray var yyq1695 [4]bool _, _, _ = yysep1695, yyq1695, yy2arr1695 const yyr1695 bool = false yyq1695[0] = x.Kind != "" yyq1695[1] = x.APIVersion != "" yyq1695[2] = true yyq1695[3] = true var yynn1695 int if yyr1695 || yy2arr1695 { r.EncodeArrayStart(4) } else { yynn1695 = 0 for _, b := range yyq1695 { if b { yynn1695++ } } r.EncodeMapStart(yynn1695) yynn1695 = 0 } if yyr1695 || yy2arr1695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1695[0] { yym1697 := z.EncBinary() _ = yym1697 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1695[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1698 := z.EncBinary() _ = yym1698 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1695 || yy2arr1695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1695[1] { yym1700 := z.EncBinary() _ = yym1700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1695[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1701 := z.EncBinary() _ = yym1701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1695 || yy2arr1695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1695[2] { yy1703 := &x.ObjectMeta yy1703.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1695[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1704 := &x.ObjectMeta yy1704.CodecEncodeSelf(e) } } if yyr1695 || yy2arr1695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1695[3] { yy1706 := &x.Status yy1706.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1695[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1707 := &x.Status yy1707.CodecEncodeSelf(e) } } if yyr1695 || yy2arr1695 { 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 yym1708 := z.DecBinary() _ = yym1708 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1709 := r.ContainerType() if yyct1709 == codecSelferValueTypeMap1234 { yyl1709 := r.ReadMapStart() if yyl1709 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1709, d) } } else if yyct1709 == codecSelferValueTypeArray1234 { yyl1709 := r.ReadArrayStart() if yyl1709 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1709, 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 yys1710Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1710Slc var yyhl1710 bool = l >= 0 for yyj1710 := 0; ; yyj1710++ { if yyhl1710 { if yyj1710 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1710Slc = r.DecodeBytes(yys1710Slc, true, true) yys1710 := string(yys1710Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1710 { 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 { yyv1713 := &x.ObjectMeta yyv1713.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1714 := &x.Status yyv1714.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1710) } // end switch yys1710 } // end for yyj1710 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 yyj1715 int var yyb1715 bool var yyhl1715 bool = l >= 0 yyj1715++ if yyhl1715 { yyb1715 = yyj1715 > l } else { yyb1715 = r.CheckBreak() } if yyb1715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1715++ if yyhl1715 { yyb1715 = yyj1715 > l } else { yyb1715 = r.CheckBreak() } if yyb1715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1715++ if yyhl1715 { yyb1715 = yyj1715 > l } else { yyb1715 = r.CheckBreak() } if yyb1715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1718 := &x.ObjectMeta yyv1718.CodecDecodeSelf(d) } yyj1715++ if yyhl1715 { yyb1715 = yyj1715 > l } else { yyb1715 = r.CheckBreak() } if yyb1715 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1719 := &x.Status yyv1719.CodecDecodeSelf(d) } for { yyj1715++ if yyhl1715 { yyb1715 = yyj1715 > l } else { yyb1715 = r.CheckBreak() } if yyb1715 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1715-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 { yym1720 := z.EncBinary() _ = yym1720 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1721 := !z.EncBinary() yy2arr1721 := z.EncBasicHandle().StructToArray var yyq1721 [5]bool _, _, _ = yysep1721, yyq1721, yy2arr1721 const yyr1721 bool = false yyq1721[0] = x.Kind != "" yyq1721[1] = x.APIVersion != "" yyq1721[2] = true yyq1721[3] = true yyq1721[4] = true var yynn1721 int if yyr1721 || yy2arr1721 { r.EncodeArrayStart(5) } else { yynn1721 = 0 for _, b := range yyq1721 { if b { yynn1721++ } } r.EncodeMapStart(yynn1721) yynn1721 = 0 } if yyr1721 || yy2arr1721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1721[0] { yym1723 := z.EncBinary() _ = yym1723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1721[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1724 := z.EncBinary() _ = yym1724 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1721 || yy2arr1721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1721[1] { yym1726 := z.EncBinary() _ = yym1726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1721[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1727 := z.EncBinary() _ = yym1727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1721 || yy2arr1721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1721[2] { yy1729 := &x.ObjectMeta yy1729.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1721[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1730 := &x.ObjectMeta yy1730.CodecEncodeSelf(e) } } if yyr1721 || yy2arr1721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1721[3] { yy1732 := &x.Spec yy1732.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1721[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1733 := &x.Spec yy1733.CodecEncodeSelf(e) } } if yyr1721 || yy2arr1721 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1721[4] { yy1735 := &x.Status yy1735.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1721[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1736 := &x.Status yy1736.CodecEncodeSelf(e) } } if yyr1721 || yy2arr1721 { 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 yym1737 := z.DecBinary() _ = yym1737 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1738 := r.ContainerType() if yyct1738 == codecSelferValueTypeMap1234 { yyl1738 := r.ReadMapStart() if yyl1738 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1738, d) } } else if yyct1738 == codecSelferValueTypeArray1234 { yyl1738 := r.ReadArrayStart() if yyl1738 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1738, 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 yys1739Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1739Slc var yyhl1739 bool = l >= 0 for yyj1739 := 0; ; yyj1739++ { if yyhl1739 { if yyj1739 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1739Slc = r.DecodeBytes(yys1739Slc, true, true) yys1739 := string(yys1739Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1739 { 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 { yyv1742 := &x.ObjectMeta yyv1742.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1743 := &x.Spec yyv1743.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1744 := &x.Status yyv1744.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1739) } // end switch yys1739 } // end for yyj1739 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 yyj1745 int var yyb1745 bool var yyhl1745 bool = l >= 0 yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1748 := &x.ObjectMeta yyv1748.CodecDecodeSelf(d) } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1749 := &x.Spec yyv1749.CodecDecodeSelf(d) } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1750 := &x.Status yyv1750.CodecDecodeSelf(d) } for { yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1745-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1751 := z.EncBinary() _ = yym1751 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1752 := !z.EncBinary() yy2arr1752 := z.EncBasicHandle().StructToArray var yyq1752 [2]bool _, _, _ = yysep1752, yyq1752, yy2arr1752 const yyr1752 bool = false yyq1752[0] = true yyq1752[1] = true var yynn1752 int if yyr1752 || yy2arr1752 { r.EncodeArrayStart(2) } else { yynn1752 = 0 for _, b := range yyq1752 { if b { yynn1752++ } } r.EncodeMapStart(yynn1752) yynn1752 = 0 } if yyr1752 || yy2arr1752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1752[0] { yy1754 := &x.ObjectMeta yy1754.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1752[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1755 := &x.ObjectMeta yy1755.CodecEncodeSelf(e) } } if yyr1752 || yy2arr1752 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1752[1] { yy1757 := &x.Spec yy1757.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1752[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1758 := &x.Spec yy1758.CodecEncodeSelf(e) } } if yyr1752 || yy2arr1752 { 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 yym1759 := z.DecBinary() _ = yym1759 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1760 := r.ContainerType() if yyct1760 == codecSelferValueTypeMap1234 { yyl1760 := r.ReadMapStart() if yyl1760 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1760, d) } } else if yyct1760 == codecSelferValueTypeArray1234 { yyl1760 := r.ReadArrayStart() if yyl1760 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1760, 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 yys1761Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1761Slc var yyhl1761 bool = l >= 0 for yyj1761 := 0; ; yyj1761++ { if yyhl1761 { if yyj1761 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1761Slc = r.DecodeBytes(yys1761Slc, true, true) yys1761 := string(yys1761Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1761 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1762 := &x.ObjectMeta yyv1762.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1763 := &x.Spec yyv1763.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1761) } // end switch yys1761 } // end for yyj1761 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 yyj1764 int var yyb1764 bool var yyhl1764 bool = l >= 0 yyj1764++ if yyhl1764 { yyb1764 = yyj1764 > l } else { yyb1764 = r.CheckBreak() } if yyb1764 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1765 := &x.ObjectMeta yyv1765.CodecDecodeSelf(d) } yyj1764++ if yyhl1764 { yyb1764 = yyj1764 > l } else { yyb1764 = r.CheckBreak() } if yyb1764 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1766 := &x.Spec yyv1766.CodecDecodeSelf(d) } for { yyj1764++ if yyhl1764 { yyb1764 = yyj1764 > l } else { yyb1764 = r.CheckBreak() } if yyb1764 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1764-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 { yym1767 := z.EncBinary() _ = yym1767 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1768 := !z.EncBinary() yy2arr1768 := z.EncBasicHandle().StructToArray var yyq1768 [4]bool _, _, _ = yysep1768, yyq1768, yy2arr1768 const yyr1768 bool = false yyq1768[0] = x.Kind != "" yyq1768[1] = x.APIVersion != "" yyq1768[2] = true yyq1768[3] = true var yynn1768 int if yyr1768 || yy2arr1768 { r.EncodeArrayStart(4) } else { yynn1768 = 0 for _, b := range yyq1768 { if b { yynn1768++ } } r.EncodeMapStart(yynn1768) yynn1768 = 0 } if yyr1768 || yy2arr1768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1768[0] { yym1770 := z.EncBinary() _ = yym1770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1768[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1771 := z.EncBinary() _ = yym1771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1768 || yy2arr1768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1768[1] { yym1773 := z.EncBinary() _ = yym1773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1768[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1774 := z.EncBinary() _ = yym1774 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1768 || yy2arr1768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1768[2] { yy1776 := &x.ObjectMeta yy1776.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1768[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1777 := &x.ObjectMeta yy1777.CodecEncodeSelf(e) } } if yyr1768 || yy2arr1768 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1768[3] { yy1779 := &x.Template yy1779.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1768[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1780 := &x.Template yy1780.CodecEncodeSelf(e) } } if yyr1768 || yy2arr1768 { 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 yym1781 := z.DecBinary() _ = yym1781 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1782 := r.ContainerType() if yyct1782 == codecSelferValueTypeMap1234 { yyl1782 := r.ReadMapStart() if yyl1782 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1782, d) } } else if yyct1782 == codecSelferValueTypeArray1234 { yyl1782 := r.ReadArrayStart() if yyl1782 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1782, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1783Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1783Slc var yyhl1783 bool = l >= 0 for yyj1783 := 0; ; yyj1783++ { if yyhl1783 { if yyj1783 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1783Slc = r.DecodeBytes(yys1783Slc, true, true) yys1783 := string(yys1783Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1783 { case "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 { yyv1786 := &x.ObjectMeta yyv1786.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1787 := &x.Template yyv1787.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1783) } // end switch yys1783 } // end for yyj1783 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 yyj1788 int var yyb1788 bool var yyhl1788 bool = l >= 0 yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1791 := &x.ObjectMeta yyv1791.CodecDecodeSelf(d) } yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1792 := &x.Template yyv1792.CodecDecodeSelf(d) } for { yyj1788++ if yyhl1788 { yyb1788 = yyj1788 > l } else { yyb1788 = r.CheckBreak() } if yyb1788 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1788-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1793 := z.EncBinary() _ = yym1793 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1794 := !z.EncBinary() yy2arr1794 := z.EncBasicHandle().StructToArray var yyq1794 [4]bool _, _, _ = yysep1794, yyq1794, yy2arr1794 const yyr1794 bool = false yyq1794[0] = x.Kind != "" yyq1794[1] = x.APIVersion != "" yyq1794[2] = true var yynn1794 int if yyr1794 || yy2arr1794 { r.EncodeArrayStart(4) } else { yynn1794 = 1 for _, b := range yyq1794 { if b { yynn1794++ } } r.EncodeMapStart(yynn1794) yynn1794 = 0 } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[0] { yym1796 := z.EncBinary() _ = yym1796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1794[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1797 := z.EncBinary() _ = yym1797 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[1] { yym1799 := z.EncBinary() _ = yym1799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1794[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1800 := z.EncBinary() _ = yym1800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1794[2] { yy1802 := &x.ListMeta yym1803 := z.EncBinary() _ = yym1803 if false { } else if z.HasExtensions() && z.EncExt(yy1802) { } else { z.EncFallback(yy1802) } } else { r.EncodeNil() } } else { if yyq1794[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1804 := &x.ListMeta yym1805 := z.EncBinary() _ = yym1805 if false { } else if z.HasExtensions() && z.EncExt(yy1804) { } else { z.EncFallback(yy1804) } } } if yyr1794 || yy2arr1794 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1807 := z.EncBinary() _ = yym1807 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 { yym1808 := z.EncBinary() _ = yym1808 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr1794 || yy2arr1794 { 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 yym1809 := z.DecBinary() _ = yym1809 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1810 := r.ContainerType() if yyct1810 == codecSelferValueTypeMap1234 { yyl1810 := r.ReadMapStart() if yyl1810 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1810, d) } } else if yyct1810 == codecSelferValueTypeArray1234 { yyl1810 := r.ReadArrayStart() if yyl1810 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1810, 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 yys1811Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1811Slc var yyhl1811 bool = l >= 0 for yyj1811 := 0; ; yyj1811++ { if yyhl1811 { if yyj1811 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1811Slc = r.DecodeBytes(yys1811Slc, true, true) yys1811 := string(yys1811Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1811 { 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 { yyv1814 := &x.ListMeta yym1815 := z.DecBinary() _ = yym1815 if false { } else if z.HasExtensions() && z.DecExt(yyv1814) { } else { z.DecFallback(yyv1814, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1816 := &x.Items yym1817 := z.DecBinary() _ = yym1817 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1816), d) } } default: z.DecStructFieldNotFound(-1, yys1811) } // end switch yys1811 } // end for yyj1811 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 yyj1818 int var yyb1818 bool var yyhl1818 bool = l >= 0 yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1821 := &x.ListMeta yym1822 := z.DecBinary() _ = yym1822 if false { } else if z.HasExtensions() && z.DecExt(yyv1821) { } else { z.DecFallback(yyv1821, false) } } yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1823 := &x.Items yym1824 := z.DecBinary() _ = yym1824 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1823), d) } } for { yyj1818++ if yyhl1818 { yyb1818 = yyj1818 > l } else { yyb1818 = r.CheckBreak() } if yyb1818 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1818-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1825 := z.EncBinary() _ = yym1825 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1826 := !z.EncBinary() yy2arr1826 := z.EncBasicHandle().StructToArray var yyq1826 [3]bool _, _, _ = yysep1826, yyq1826, yy2arr1826 const yyr1826 bool = false yyq1826[2] = x.Template != nil var yynn1826 int if yyr1826 || yy2arr1826 { r.EncodeArrayStart(3) } else { yynn1826 = 2 for _, b := range yyq1826 { if b { yynn1826++ } } r.EncodeMapStart(yynn1826) yynn1826 = 0 } if yyr1826 || yy2arr1826 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1828 := z.EncBinary() _ = yym1828 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1829 := z.EncBinary() _ = yym1829 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1826 || yy2arr1826 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym1831 := z.EncBinary() _ = yym1831 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 { yym1832 := z.EncBinary() _ = yym1832 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr1826 || yy2arr1826 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1826[2] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1826[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 yyr1826 || yy2arr1826 { 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 yym1834 := z.DecBinary() _ = yym1834 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1835 := r.ContainerType() if yyct1835 == codecSelferValueTypeMap1234 { yyl1835 := r.ReadMapStart() if yyl1835 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1835, d) } } else if yyct1835 == codecSelferValueTypeArray1234 { yyl1835 := r.ReadArrayStart() if yyl1835 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1835, 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 yys1836Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1836Slc var yyhl1836 bool = l >= 0 for yyj1836 := 0; ; yyj1836++ { if yyhl1836 { if yyj1836 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1836Slc = r.DecodeBytes(yys1836Slc, true, true) yys1836 := string(yys1836Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1836 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1838 := &x.Selector yym1839 := z.DecBinary() _ = yym1839 if false { } else { z.F.DecMapStringStringX(yyv1838, 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, yys1836) } // end switch yys1836 } // end for yyj1836 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 yyj1841 int var yyb1841 bool var yyhl1841 bool = l >= 0 yyj1841++ if yyhl1841 { yyb1841 = yyj1841 > l } else { yyb1841 = r.CheckBreak() } if yyb1841 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1841++ if yyhl1841 { yyb1841 = yyj1841 > l } else { yyb1841 = r.CheckBreak() } if yyb1841 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1843 := &x.Selector yym1844 := z.DecBinary() _ = yym1844 if false { } else { z.F.DecMapStringStringX(yyv1843, false, d) } } yyj1841++ if yyhl1841 { yyb1841 = yyj1841 > l } else { yyb1841 = r.CheckBreak() } if yyb1841 { 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 { yyj1841++ if yyhl1841 { yyb1841 = yyj1841 > l } else { yyb1841 = r.CheckBreak() } if yyb1841 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1841-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 { yym1846 := z.EncBinary() _ = yym1846 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1847 := !z.EncBinary() yy2arr1847 := z.EncBasicHandle().StructToArray var yyq1847 [2]bool _, _, _ = yysep1847, yyq1847, yy2arr1847 const yyr1847 bool = false yyq1847[1] = x.ObservedGeneration != 0 var yynn1847 int if yyr1847 || yy2arr1847 { r.EncodeArrayStart(2) } else { yynn1847 = 1 for _, b := range yyq1847 { if b { yynn1847++ } } r.EncodeMapStart(yynn1847) yynn1847 = 0 } if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1849 := z.EncBinary() _ = yym1849 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1850 := z.EncBinary() _ = yym1850 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1847 || yy2arr1847 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1847[1] { yym1852 := z.EncBinary() _ = yym1852 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq1847[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1853 := z.EncBinary() _ = yym1853 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr1847 || yy2arr1847 { 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 yym1854 := z.DecBinary() _ = yym1854 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1855 := r.ContainerType() if yyct1855 == codecSelferValueTypeMap1234 { yyl1855 := r.ReadMapStart() if yyl1855 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1855, d) } } else if yyct1855 == codecSelferValueTypeArray1234 { yyl1855 := r.ReadArrayStart() if yyl1855 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1855, 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 yys1856Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1856Slc var yyhl1856 bool = l >= 0 for yyj1856 := 0; ; yyj1856++ { if yyhl1856 { if yyj1856 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1856Slc = r.DecodeBytes(yys1856Slc, true, true) yys1856 := string(yys1856Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1856 { 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, yys1856) } // end switch yys1856 } // end for yyj1856 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 yyj1859 int var yyb1859 bool var yyhl1859 bool = l >= 0 yyj1859++ if yyhl1859 { yyb1859 = yyj1859 > l } else { yyb1859 = r.CheckBreak() } if yyb1859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1859++ if yyhl1859 { yyb1859 = yyj1859 > l } else { yyb1859 = r.CheckBreak() } if yyb1859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } for { yyj1859++ if yyhl1859 { yyb1859 = yyj1859 > l } else { yyb1859 = r.CheckBreak() } if yyb1859 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1859-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 { yym1862 := z.EncBinary() _ = yym1862 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1863 := !z.EncBinary() yy2arr1863 := z.EncBasicHandle().StructToArray var yyq1863 [5]bool _, _, _ = yysep1863, yyq1863, yy2arr1863 const yyr1863 bool = false yyq1863[0] = x.Kind != "" yyq1863[1] = x.APIVersion != "" yyq1863[2] = true yyq1863[3] = true yyq1863[4] = true var yynn1863 int if yyr1863 || yy2arr1863 { r.EncodeArrayStart(5) } else { yynn1863 = 0 for _, b := range yyq1863 { if b { yynn1863++ } } r.EncodeMapStart(yynn1863) yynn1863 = 0 } if yyr1863 || yy2arr1863 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1863[0] { yym1865 := z.EncBinary() _ = yym1865 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1863[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1866 := z.EncBinary() _ = yym1866 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1863 || yy2arr1863 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1863[1] { yym1868 := z.EncBinary() _ = yym1868 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1863[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1869 := z.EncBinary() _ = yym1869 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1863 || yy2arr1863 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1863[2] { yy1871 := &x.ObjectMeta yy1871.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1863[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1872 := &x.ObjectMeta yy1872.CodecEncodeSelf(e) } } if yyr1863 || yy2arr1863 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1863[3] { yy1874 := &x.Spec yy1874.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1863[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1875 := &x.Spec yy1875.CodecEncodeSelf(e) } } if yyr1863 || yy2arr1863 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1863[4] { yy1877 := &x.Status yy1877.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1863[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1878 := &x.Status yy1878.CodecEncodeSelf(e) } } if yyr1863 || yy2arr1863 { 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 yym1879 := z.DecBinary() _ = yym1879 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1880 := r.ContainerType() if yyct1880 == codecSelferValueTypeMap1234 { yyl1880 := r.ReadMapStart() if yyl1880 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1880, d) } } else if yyct1880 == codecSelferValueTypeArray1234 { yyl1880 := r.ReadArrayStart() if yyl1880 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1880, 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 yys1881Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1881Slc var yyhl1881 bool = l >= 0 for yyj1881 := 0; ; yyj1881++ { if yyhl1881 { if yyj1881 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1881Slc = r.DecodeBytes(yys1881Slc, true, true) yys1881 := string(yys1881Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1881 { 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 { yyv1884 := &x.ObjectMeta yyv1884.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv1885 := &x.Spec yyv1885.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv1886 := &x.Status yyv1886.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1881) } // end switch yys1881 } // end for yyj1881 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 yyj1887 int var yyb1887 bool var yyhl1887 bool = l >= 0 yyj1887++ if yyhl1887 { yyb1887 = yyj1887 > l } else { yyb1887 = r.CheckBreak() } if yyb1887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1887++ if yyhl1887 { yyb1887 = yyj1887 > l } else { yyb1887 = r.CheckBreak() } if yyb1887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1887++ if yyhl1887 { yyb1887 = yyj1887 > l } else { yyb1887 = r.CheckBreak() } if yyb1887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1890 := &x.ObjectMeta yyv1890.CodecDecodeSelf(d) } yyj1887++ if yyhl1887 { yyb1887 = yyj1887 > l } else { yyb1887 = r.CheckBreak() } if yyb1887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv1891 := &x.Spec yyv1891.CodecDecodeSelf(d) } yyj1887++ if yyhl1887 { yyb1887 = yyj1887 > l } else { yyb1887 = r.CheckBreak() } if yyb1887 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv1892 := &x.Status yyv1892.CodecDecodeSelf(d) } for { yyj1887++ if yyhl1887 { yyb1887 = yyj1887 > l } else { yyb1887 = r.CheckBreak() } if yyb1887 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1887-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 { yym1893 := z.EncBinary() _ = yym1893 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1894 := !z.EncBinary() yy2arr1894 := z.EncBasicHandle().StructToArray var yyq1894 [4]bool _, _, _ = yysep1894, yyq1894, yy2arr1894 const yyr1894 bool = false yyq1894[0] = x.Kind != "" yyq1894[1] = x.APIVersion != "" yyq1894[2] = true var yynn1894 int if yyr1894 || yy2arr1894 { r.EncodeArrayStart(4) } else { yynn1894 = 1 for _, b := range yyq1894 { if b { yynn1894++ } } r.EncodeMapStart(yynn1894) yynn1894 = 0 } if yyr1894 || yy2arr1894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1894[0] { yym1896 := z.EncBinary() _ = yym1896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1894[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1897 := z.EncBinary() _ = yym1897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1894 || yy2arr1894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1894[1] { yym1899 := z.EncBinary() _ = yym1899 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1894[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1900 := z.EncBinary() _ = yym1900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1894 || yy2arr1894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1894[2] { yy1902 := &x.ListMeta yym1903 := z.EncBinary() _ = yym1903 if false { } else if z.HasExtensions() && z.EncExt(yy1902) { } else { z.EncFallback(yy1902) } } else { r.EncodeNil() } } else { if yyq1894[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1904 := &x.ListMeta yym1905 := z.EncBinary() _ = yym1905 if false { } else if z.HasExtensions() && z.EncExt(yy1904) { } else { z.EncFallback(yy1904) } } } if yyr1894 || yy2arr1894 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1907 := z.EncBinary() _ = yym1907 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 { yym1908 := z.EncBinary() _ = yym1908 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr1894 || yy2arr1894 { 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 yym1909 := z.DecBinary() _ = yym1909 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1910 := r.ContainerType() if yyct1910 == codecSelferValueTypeMap1234 { yyl1910 := r.ReadMapStart() if yyl1910 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1910, d) } } else if yyct1910 == codecSelferValueTypeArray1234 { yyl1910 := r.ReadArrayStart() if yyl1910 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1910, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1911Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1911Slc var yyhl1911 bool = l >= 0 for yyj1911 := 0; ; yyj1911++ { if yyhl1911 { if yyj1911 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1911Slc = r.DecodeBytes(yys1911Slc, true, true) yys1911 := string(yys1911Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1911 { case "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 { yyv1914 := &x.ListMeta yym1915 := z.DecBinary() _ = yym1915 if false { } else if z.HasExtensions() && z.DecExt(yyv1914) { } else { z.DecFallback(yyv1914, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1916 := &x.Items yym1917 := z.DecBinary() _ = yym1917 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv1916), d) } } default: z.DecStructFieldNotFound(-1, yys1911) } // end switch yys1911 } // end for yyj1911 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 yyj1918 int var yyb1918 bool var yyhl1918 bool = l >= 0 yyj1918++ if yyhl1918 { yyb1918 = yyj1918 > l } else { yyb1918 = r.CheckBreak() } if yyb1918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1918++ if yyhl1918 { yyb1918 = yyj1918 > l } else { yyb1918 = r.CheckBreak() } if yyb1918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1918++ if yyhl1918 { yyb1918 = yyj1918 > l } else { yyb1918 = r.CheckBreak() } if yyb1918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1921 := &x.ListMeta yym1922 := z.DecBinary() _ = yym1922 if false { } else if z.HasExtensions() && z.DecExt(yyv1921) { } else { z.DecFallback(yyv1921, false) } } yyj1918++ if yyhl1918 { yyb1918 = yyj1918 > l } else { yyb1918 = r.CheckBreak() } if yyb1918 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1923 := &x.Items yym1924 := z.DecBinary() _ = yym1924 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv1923), d) } } for { yyj1918++ if yyhl1918 { yyb1918 = yyj1918 > l } else { yyb1918 = r.CheckBreak() } if yyb1918 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1918-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 { yym1925 := z.EncBinary() _ = yym1925 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1926 := !z.EncBinary() yy2arr1926 := z.EncBasicHandle().StructToArray var yyq1926 [4]bool _, _, _ = yysep1926, yyq1926, yy2arr1926 const yyr1926 bool = false yyq1926[0] = x.Kind != "" yyq1926[1] = x.APIVersion != "" yyq1926[2] = true var yynn1926 int if yyr1926 || yy2arr1926 { r.EncodeArrayStart(4) } else { yynn1926 = 1 for _, b := range yyq1926 { if b { yynn1926++ } } r.EncodeMapStart(yynn1926) yynn1926 = 0 } if yyr1926 || yy2arr1926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1926[0] { yym1928 := z.EncBinary() _ = yym1928 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1926[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1929 := z.EncBinary() _ = yym1929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1926 || yy2arr1926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1926[1] { yym1931 := z.EncBinary() _ = yym1931 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1926[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1932 := z.EncBinary() _ = yym1932 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1926 || yy2arr1926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1926[2] { yy1934 := &x.ListMeta yym1935 := z.EncBinary() _ = yym1935 if false { } else if z.HasExtensions() && z.EncExt(yy1934) { } else { z.EncFallback(yy1934) } } else { r.EncodeNil() } } else { if yyq1926[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1936 := &x.ListMeta yym1937 := z.EncBinary() _ = yym1937 if false { } else if z.HasExtensions() && z.EncExt(yy1936) { } else { z.EncFallback(yy1936) } } } if yyr1926 || yy2arr1926 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1939 := z.EncBinary() _ = yym1939 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 { yym1940 := z.EncBinary() _ = yym1940 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr1926 || yy2arr1926 { 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 yym1941 := z.DecBinary() _ = yym1941 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1942 := r.ContainerType() if yyct1942 == codecSelferValueTypeMap1234 { yyl1942 := r.ReadMapStart() if yyl1942 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1942, d) } } else if yyct1942 == codecSelferValueTypeArray1234 { yyl1942 := r.ReadArrayStart() if yyl1942 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1942, 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 yys1943Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1943Slc var yyhl1943 bool = l >= 0 for yyj1943 := 0; ; yyj1943++ { if yyhl1943 { if yyj1943 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1943Slc = r.DecodeBytes(yys1943Slc, true, true) yys1943 := string(yys1943Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1943 { 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 { yyv1946 := &x.ListMeta yym1947 := z.DecBinary() _ = yym1947 if false { } else if z.HasExtensions() && z.DecExt(yyv1946) { } else { z.DecFallback(yyv1946, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1948 := &x.Items yym1949 := z.DecBinary() _ = yym1949 if false { } else { h.decSliceService((*[]Service)(yyv1948), d) } } default: z.DecStructFieldNotFound(-1, yys1943) } // end switch yys1943 } // end for yyj1943 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 yyj1950 int var yyb1950 bool var yyhl1950 bool = l >= 0 yyj1950++ if yyhl1950 { yyb1950 = yyj1950 > l } else { yyb1950 = r.CheckBreak() } if yyb1950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1950++ if yyhl1950 { yyb1950 = yyj1950 > l } else { yyb1950 = r.CheckBreak() } if yyb1950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1950++ if yyhl1950 { yyb1950 = yyj1950 > l } else { yyb1950 = r.CheckBreak() } if yyb1950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1953 := &x.ListMeta yym1954 := z.DecBinary() _ = yym1954 if false { } else if z.HasExtensions() && z.DecExt(yyv1953) { } else { z.DecFallback(yyv1953, false) } } yyj1950++ if yyhl1950 { yyb1950 = yyj1950 > l } else { yyb1950 = r.CheckBreak() } if yyb1950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1955 := &x.Items yym1956 := z.DecBinary() _ = yym1956 if false { } else { h.decSliceService((*[]Service)(yyv1955), d) } } for { yyj1950++ if yyhl1950 { yyb1950 = yyj1950 > l } else { yyb1950 = r.CheckBreak() } if yyb1950 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1950-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1957 := z.EncBinary() _ = yym1957 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 yym1958 := z.DecBinary() _ = yym1958 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 yym1959 := z.EncBinary() _ = yym1959 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 yym1960 := z.DecBinary() _ = yym1960 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 { yym1961 := z.EncBinary() _ = yym1961 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1962 := !z.EncBinary() yy2arr1962 := z.EncBasicHandle().StructToArray var yyq1962 [1]bool _, _, _ = yysep1962, yyq1962, yy2arr1962 const yyr1962 bool = false yyq1962[0] = true var yynn1962 int if yyr1962 || yy2arr1962 { r.EncodeArrayStart(1) } else { yynn1962 = 0 for _, b := range yyq1962 { if b { yynn1962++ } } r.EncodeMapStart(yynn1962) yynn1962 = 0 } if yyr1962 || yy2arr1962 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1962[0] { yy1964 := &x.LoadBalancer yy1964.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1962[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1965 := &x.LoadBalancer yy1965.CodecEncodeSelf(e) } } if yyr1962 || yy2arr1962 { 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 yym1966 := z.DecBinary() _ = yym1966 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1967 := r.ContainerType() if yyct1967 == codecSelferValueTypeMap1234 { yyl1967 := r.ReadMapStart() if yyl1967 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1967, d) } } else if yyct1967 == codecSelferValueTypeArray1234 { yyl1967 := r.ReadArrayStart() if yyl1967 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1967, 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 yys1968Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1968Slc var yyhl1968 bool = l >= 0 for yyj1968 := 0; ; yyj1968++ { if yyhl1968 { if yyj1968 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1968Slc = r.DecodeBytes(yys1968Slc, true, true) yys1968 := string(yys1968Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1968 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv1969 := &x.LoadBalancer yyv1969.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1968) } // end switch yys1968 } // end for yyj1968 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 yyj1970 int var yyb1970 bool var yyhl1970 bool = l >= 0 yyj1970++ if yyhl1970 { yyb1970 = yyj1970 > l } else { yyb1970 = r.CheckBreak() } if yyb1970 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv1971 := &x.LoadBalancer yyv1971.CodecDecodeSelf(d) } for { yyj1970++ if yyhl1970 { yyb1970 = yyj1970 > l } else { yyb1970 = r.CheckBreak() } if yyb1970 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1970-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 { yym1972 := z.EncBinary() _ = yym1972 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1973 := !z.EncBinary() yy2arr1973 := z.EncBasicHandle().StructToArray var yyq1973 [1]bool _, _, _ = yysep1973, yyq1973, yy2arr1973 const yyr1973 bool = false yyq1973[0] = len(x.Ingress) != 0 var yynn1973 int if yyr1973 || yy2arr1973 { r.EncodeArrayStart(1) } else { yynn1973 = 0 for _, b := range yyq1973 { if b { yynn1973++ } } r.EncodeMapStart(yynn1973) yynn1973 = 0 } if yyr1973 || yy2arr1973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1973[0] { if x.Ingress == nil { r.EncodeNil() } else { yym1975 := z.EncBinary() _ = yym1975 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq1973[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym1976 := z.EncBinary() _ = yym1976 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr1973 || yy2arr1973 { 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 yym1977 := z.DecBinary() _ = yym1977 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1978 := r.ContainerType() if yyct1978 == codecSelferValueTypeMap1234 { yyl1978 := r.ReadMapStart() if yyl1978 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1978, d) } } else if yyct1978 == codecSelferValueTypeArray1234 { yyl1978 := r.ReadArrayStart() if yyl1978 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1978, 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 yys1979Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1979Slc var yyhl1979 bool = l >= 0 for yyj1979 := 0; ; yyj1979++ { if yyhl1979 { if yyj1979 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1979Slc = r.DecodeBytes(yys1979Slc, true, true) yys1979 := string(yys1979Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1979 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv1980 := &x.Ingress yym1981 := z.DecBinary() _ = yym1981 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1980), d) } } default: z.DecStructFieldNotFound(-1, yys1979) } // end switch yys1979 } // end for yyj1979 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 yyj1982 int var yyb1982 bool var yyhl1982 bool = l >= 0 yyj1982++ if yyhl1982 { yyb1982 = yyj1982 > l } else { yyb1982 = r.CheckBreak() } if yyb1982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv1983 := &x.Ingress yym1984 := z.DecBinary() _ = yym1984 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1983), d) } } for { yyj1982++ if yyhl1982 { yyb1982 = yyj1982 > l } else { yyb1982 = r.CheckBreak() } if yyb1982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1982-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 { yym1985 := z.EncBinary() _ = yym1985 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1986 := !z.EncBinary() yy2arr1986 := z.EncBasicHandle().StructToArray var yyq1986 [2]bool _, _, _ = yysep1986, yyq1986, yy2arr1986 const yyr1986 bool = false yyq1986[0] = x.IP != "" yyq1986[1] = x.Hostname != "" var yynn1986 int if yyr1986 || yy2arr1986 { r.EncodeArrayStart(2) } else { yynn1986 = 0 for _, b := range yyq1986 { if b { yynn1986++ } } r.EncodeMapStart(yynn1986) yynn1986 = 0 } if yyr1986 || yy2arr1986 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1986[0] { yym1988 := z.EncBinary() _ = yym1988 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1986[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1989 := z.EncBinary() _ = yym1989 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr1986 || yy2arr1986 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1986[1] { yym1991 := z.EncBinary() _ = yym1991 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1986[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1992 := z.EncBinary() _ = yym1992 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr1986 || yy2arr1986 { 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 yym1993 := z.DecBinary() _ = yym1993 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1994 := r.ContainerType() if yyct1994 == codecSelferValueTypeMap1234 { yyl1994 := r.ReadMapStart() if yyl1994 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1994, d) } } else if yyct1994 == codecSelferValueTypeArray1234 { yyl1994 := r.ReadArrayStart() if yyl1994 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1994, 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 yys1995Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1995Slc var yyhl1995 bool = l >= 0 for yyj1995 := 0; ; yyj1995++ { if yyhl1995 { if yyj1995 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1995Slc = r.DecodeBytes(yys1995Slc, true, true) yys1995 := string(yys1995Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1995 { 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, yys1995) } // end switch yys1995 } // end for yyj1995 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 yyj1998 int var yyb1998 bool var yyhl1998 bool = l >= 0 yyj1998++ if yyhl1998 { yyb1998 = yyj1998 > l } else { yyb1998 = r.CheckBreak() } if yyb1998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj1998++ if yyhl1998 { yyb1998 = yyj1998 > l } else { yyb1998 = r.CheckBreak() } if yyb1998 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj1998++ if yyhl1998 { yyb1998 = yyj1998 > l } else { yyb1998 = r.CheckBreak() } if yyb1998 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1998-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 { yym2001 := z.EncBinary() _ = yym2001 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2002 := !z.EncBinary() yy2arr2002 := z.EncBasicHandle().StructToArray var yyq2002 [7]bool _, _, _ = yysep2002, yyq2002, yy2arr2002 const yyr2002 bool = false yyq2002[0] = x.Type != "" yyq2002[3] = x.ClusterIP != "" yyq2002[4] = len(x.ExternalIPs) != 0 yyq2002[5] = x.LoadBalancerIP != "" yyq2002[6] = x.SessionAffinity != "" var yynn2002 int if yyr2002 || yy2arr2002 { r.EncodeArrayStart(7) } else { yynn2002 = 2 for _, b := range yyq2002 { if b { yynn2002++ } } r.EncodeMapStart(yynn2002) yynn2002 = 0 } if yyr2002 || yy2arr2002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2002[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2002[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr2002 || yy2arr2002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2005 := z.EncBinary() _ = yym2005 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 { yym2006 := z.EncBinary() _ = yym2006 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr2002 || yy2arr2002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2008 := z.EncBinary() _ = yym2008 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 { yym2009 := z.EncBinary() _ = yym2009 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2002 || yy2arr2002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2002[3] { yym2011 := z.EncBinary() _ = yym2011 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2002[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2012 := z.EncBinary() _ = yym2012 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr2002 || yy2arr2002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2002[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym2014 := z.EncBinary() _ = yym2014 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq2002[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym2015 := z.EncBinary() _ = yym2015 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr2002 || yy2arr2002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2002[5] { yym2017 := z.EncBinary() _ = yym2017 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2002[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2018 := z.EncBinary() _ = yym2018 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr2002 || yy2arr2002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2002[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2002[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr2002 || yy2arr2002 { 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 yym2020 := z.DecBinary() _ = yym2020 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2021 := r.ContainerType() if yyct2021 == codecSelferValueTypeMap1234 { yyl2021 := r.ReadMapStart() if yyl2021 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2021, d) } } else if yyct2021 == codecSelferValueTypeArray1234 { yyl2021 := r.ReadArrayStart() if yyl2021 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2021, 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 yys2022Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2022Slc var yyhl2022 bool = l >= 0 for yyj2022 := 0; ; yyj2022++ { if yyhl2022 { if yyj2022 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2022Slc = r.DecodeBytes(yys2022Slc, true, true) yys2022 := string(yys2022Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2022 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2024 := &x.Ports yym2025 := z.DecBinary() _ = yym2025 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2024), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2026 := &x.Selector yym2027 := z.DecBinary() _ = yym2027 if false { } else { z.F.DecMapStringStringX(yyv2026, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2029 := &x.ExternalIPs yym2030 := z.DecBinary() _ = yym2030 if false { } else { z.F.DecSliceStringX(yyv2029, 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, yys2022) } // end switch yys2022 } // end for yyj2022 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 yyj2033 int var yyb2033 bool var yyhl2033 bool = l >= 0 yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2035 := &x.Ports yym2036 := z.DecBinary() _ = yym2036 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2035), d) } } yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2037 := &x.Selector yym2038 := z.DecBinary() _ = yym2038 if false { } else { z.F.DecMapStringStringX(yyv2037, false, d) } } yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2040 := &x.ExternalIPs yym2041 := z.DecBinary() _ = yym2041 if false { } else { z.F.DecSliceStringX(yyv2040, false, d) } } yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } for { yyj2033++ if yyhl2033 { yyb2033 = yyj2033 > l } else { yyb2033 = r.CheckBreak() } if yyb2033 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2033-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 { yym2044 := z.EncBinary() _ = yym2044 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2045 := !z.EncBinary() yy2arr2045 := z.EncBasicHandle().StructToArray var yyq2045 [5]bool _, _, _ = yysep2045, yyq2045, yy2arr2045 const yyr2045 bool = false var yynn2045 int if yyr2045 || yy2arr2045 { r.EncodeArrayStart(5) } else { yynn2045 = 5 for _, b := range yyq2045 { if b { yynn2045++ } } r.EncodeMapStart(yynn2045) yynn2045 = 0 } if yyr2045 || yy2arr2045 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2047 := z.EncBinary() _ = yym2047 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) yym2048 := z.EncBinary() _ = yym2048 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2045 || yy2arr2045 { 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 yyr2045 || yy2arr2045 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2051 := z.EncBinary() _ = yym2051 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2052 := z.EncBinary() _ = yym2052 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2045 || yy2arr2045 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2054 := &x.TargetPort yym2055 := z.EncBinary() _ = yym2055 if false { } else if z.HasExtensions() && z.EncExt(yy2054) { } else if !yym2055 && z.IsJSONHandle() { z.EncJSONMarshal(yy2054) } else { z.EncFallback(yy2054) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2056 := &x.TargetPort yym2057 := z.EncBinary() _ = yym2057 if false { } else if z.HasExtensions() && z.EncExt(yy2056) { } else if !yym2057 && z.IsJSONHandle() { z.EncJSONMarshal(yy2056) } else { z.EncFallback(yy2056) } } if yyr2045 || yy2arr2045 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2059 := z.EncBinary() _ = yym2059 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2060 := z.EncBinary() _ = yym2060 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr2045 || yy2arr2045 { 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 yym2061 := z.DecBinary() _ = yym2061 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2062 := r.ContainerType() if yyct2062 == codecSelferValueTypeMap1234 { yyl2062 := r.ReadMapStart() if yyl2062 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2062, d) } } else if yyct2062 == codecSelferValueTypeArray1234 { yyl2062 := r.ReadArrayStart() if yyl2062 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2062, 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 yys2063Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2063Slc var yyhl2063 bool = l >= 0 for yyj2063 := 0; ; yyj2063++ { if yyhl2063 { if yyj2063 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2063Slc = r.DecodeBytes(yys2063Slc, true, true) yys2063 := string(yys2063Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2063 { 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 { yyv2067 := &x.TargetPort yym2068 := z.DecBinary() _ = yym2068 if false { } else if z.HasExtensions() && z.DecExt(yyv2067) { } else if !yym2068 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2067) } else { z.DecFallback(yyv2067, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2063) } // end switch yys2063 } // end for yyj2063 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 yyj2070 int var yyb2070 bool var yyhl2070 bool = l >= 0 yyj2070++ if yyhl2070 { yyb2070 = yyj2070 > l } else { yyb2070 = r.CheckBreak() } if yyb2070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2070++ if yyhl2070 { yyb2070 = yyj2070 > l } else { yyb2070 = r.CheckBreak() } if yyb2070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj2070++ if yyhl2070 { yyb2070 = yyj2070 > l } else { yyb2070 = r.CheckBreak() } if yyb2070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2070++ if yyhl2070 { yyb2070 = yyj2070 > l } else { yyb2070 = r.CheckBreak() } if yyb2070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg5_intstr.IntOrString{} } else { yyv2074 := &x.TargetPort yym2075 := z.DecBinary() _ = yym2075 if false { } else if z.HasExtensions() && z.DecExt(yyv2074) { } else if !yym2075 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2074) } else { z.DecFallback(yyv2074, false) } } yyj2070++ if yyhl2070 { yyb2070 = yyj2070 > l } else { yyb2070 = r.CheckBreak() } if yyb2070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2070++ if yyhl2070 { yyb2070 = yyj2070 > l } else { yyb2070 = r.CheckBreak() } if yyb2070 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2070-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 { yym2077 := z.EncBinary() _ = yym2077 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2078 := !z.EncBinary() yy2arr2078 := z.EncBasicHandle().StructToArray var yyq2078 [5]bool _, _, _ = yysep2078, yyq2078, yy2arr2078 const yyr2078 bool = false yyq2078[0] = x.Kind != "" yyq2078[1] = x.APIVersion != "" yyq2078[2] = true yyq2078[3] = true yyq2078[4] = true var yynn2078 int if yyr2078 || yy2arr2078 { r.EncodeArrayStart(5) } 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] { yym2080 := z.EncBinary() _ = yym2080 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2078[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2081 := z.EncBinary() _ = yym2081 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2078 || yy2arr2078 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2078[1] { yym2083 := z.EncBinary() _ = yym2083 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2078[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2084 := z.EncBinary() _ = yym2084 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2078 || yy2arr2078 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2078[2] { yy2086 := &x.ObjectMeta yy2086.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2078[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2087 := &x.ObjectMeta yy2087.CodecEncodeSelf(e) } } if yyr2078 || yy2arr2078 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2078[3] { yy2089 := &x.Spec yy2089.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2078[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2090 := &x.Spec yy2090.CodecEncodeSelf(e) } } if yyr2078 || yy2arr2078 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2078[4] { yy2092 := &x.Status yy2092.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2078[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2093 := &x.Status yy2093.CodecEncodeSelf(e) } } if yyr2078 || yy2arr2078 { 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 yym2094 := z.DecBinary() _ = yym2094 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2095 := r.ContainerType() if yyct2095 == codecSelferValueTypeMap1234 { yyl2095 := r.ReadMapStart() if yyl2095 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2095, d) } } else if yyct2095 == codecSelferValueTypeArray1234 { yyl2095 := r.ReadArrayStart() if yyl2095 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2095, 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 yys2096Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2096Slc var yyhl2096 bool = l >= 0 for yyj2096 := 0; ; yyj2096++ { if yyhl2096 { if yyj2096 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2096Slc = r.DecodeBytes(yys2096Slc, true, true) yys2096 := string(yys2096Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2096 { 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 { yyv2099 := &x.ObjectMeta yyv2099.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2100 := &x.Spec yyv2100.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2101 := &x.Status yyv2101.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2096) } // end switch yys2096 } // end for yyj2096 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 yyj2102 int var yyb2102 bool var yyhl2102 bool = l >= 0 yyj2102++ if yyhl2102 { yyb2102 = yyj2102 > l } else { yyb2102 = r.CheckBreak() } if yyb2102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2102++ if yyhl2102 { yyb2102 = yyj2102 > l } else { yyb2102 = r.CheckBreak() } if yyb2102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2102++ if yyhl2102 { yyb2102 = yyj2102 > l } else { yyb2102 = r.CheckBreak() } if yyb2102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2105 := &x.ObjectMeta yyv2105.CodecDecodeSelf(d) } yyj2102++ if yyhl2102 { yyb2102 = yyj2102 > l } else { yyb2102 = r.CheckBreak() } if yyb2102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2106 := &x.Spec yyv2106.CodecDecodeSelf(d) } yyj2102++ if yyhl2102 { yyb2102 = yyj2102 > l } else { yyb2102 = r.CheckBreak() } if yyb2102 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2107 := &x.Status yyv2107.CodecDecodeSelf(d) } for { yyj2102++ if yyhl2102 { yyb2102 = yyj2102 > l } else { yyb2102 = r.CheckBreak() } if yyb2102 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2102-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 { yym2108 := z.EncBinary() _ = yym2108 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2109 := !z.EncBinary() yy2arr2109 := z.EncBasicHandle().StructToArray var yyq2109 [5]bool _, _, _ = yysep2109, yyq2109, yy2arr2109 const yyr2109 bool = false yyq2109[0] = x.Kind != "" yyq2109[1] = x.APIVersion != "" yyq2109[2] = true yyq2109[4] = len(x.ImagePullSecrets) != 0 var yynn2109 int if yyr2109 || yy2arr2109 { r.EncodeArrayStart(5) } else { yynn2109 = 1 for _, b := range yyq2109 { if b { yynn2109++ } } r.EncodeMapStart(yynn2109) yynn2109 = 0 } if yyr2109 || yy2arr2109 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2109[0] { yym2111 := z.EncBinary() _ = yym2111 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2109[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2112 := z.EncBinary() _ = yym2112 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2109 || yy2arr2109 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2109[1] { yym2114 := z.EncBinary() _ = yym2114 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2109[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2115 := z.EncBinary() _ = yym2115 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2109 || yy2arr2109 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2109[2] { yy2117 := &x.ObjectMeta yy2117.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2109[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2118 := &x.ObjectMeta yy2118.CodecEncodeSelf(e) } } if yyr2109 || yy2arr2109 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2120 := z.EncBinary() _ = yym2120 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 { yym2121 := z.EncBinary() _ = yym2121 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2109 || yy2arr2109 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2109[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2123 := z.EncBinary() _ = yym2123 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2109[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2124 := z.EncBinary() _ = yym2124 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2109 || yy2arr2109 { 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 yym2125 := z.DecBinary() _ = yym2125 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2126 := r.ContainerType() if yyct2126 == codecSelferValueTypeMap1234 { yyl2126 := r.ReadMapStart() if yyl2126 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2126, d) } } else if yyct2126 == codecSelferValueTypeArray1234 { yyl2126 := r.ReadArrayStart() if yyl2126 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2126, 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 yys2127Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2127Slc var yyhl2127 bool = l >= 0 for yyj2127 := 0; ; yyj2127++ { if yyhl2127 { if yyj2127 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2127Slc = r.DecodeBytes(yys2127Slc, true, true) yys2127 := string(yys2127Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2127 { 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 { yyv2130 := &x.ObjectMeta yyv2130.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2131 := &x.Secrets yym2132 := z.DecBinary() _ = yym2132 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2131), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2133 := &x.ImagePullSecrets yym2134 := z.DecBinary() _ = yym2134 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2133), d) } } default: z.DecStructFieldNotFound(-1, yys2127) } // end switch yys2127 } // end for yyj2127 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 yyj2135 int var yyb2135 bool var yyhl2135 bool = l >= 0 yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2138 := &x.ObjectMeta yyv2138.CodecDecodeSelf(d) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2139 := &x.Secrets yym2140 := z.DecBinary() _ = yym2140 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2139), d) } } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2141 := &x.ImagePullSecrets yym2142 := z.DecBinary() _ = yym2142 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2141), d) } } for { yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2135-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 { yym2143 := z.EncBinary() _ = yym2143 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2144 := !z.EncBinary() yy2arr2144 := z.EncBasicHandle().StructToArray var yyq2144 [4]bool _, _, _ = yysep2144, yyq2144, yy2arr2144 const yyr2144 bool = false yyq2144[0] = x.Kind != "" yyq2144[1] = x.APIVersion != "" yyq2144[2] = true var yynn2144 int if yyr2144 || yy2arr2144 { r.EncodeArrayStart(4) } else { yynn2144 = 1 for _, b := range yyq2144 { if b { yynn2144++ } } r.EncodeMapStart(yynn2144) yynn2144 = 0 } if yyr2144 || yy2arr2144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2144[0] { yym2146 := z.EncBinary() _ = yym2146 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2144[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2147 := z.EncBinary() _ = yym2147 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2144 || yy2arr2144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2144[1] { yym2149 := z.EncBinary() _ = yym2149 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2144[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2150 := z.EncBinary() _ = yym2150 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2144 || yy2arr2144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2144[2] { yy2152 := &x.ListMeta yym2153 := z.EncBinary() _ = yym2153 if false { } else if z.HasExtensions() && z.EncExt(yy2152) { } else { z.EncFallback(yy2152) } } else { r.EncodeNil() } } else { if yyq2144[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2154 := &x.ListMeta yym2155 := z.EncBinary() _ = yym2155 if false { } else if z.HasExtensions() && z.EncExt(yy2154) { } else { z.EncFallback(yy2154) } } } if yyr2144 || yy2arr2144 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2157 := z.EncBinary() _ = yym2157 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 { yym2158 := z.EncBinary() _ = yym2158 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2144 || yy2arr2144 { 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 yym2159 := z.DecBinary() _ = yym2159 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2160 := r.ContainerType() if yyct2160 == codecSelferValueTypeMap1234 { yyl2160 := r.ReadMapStart() if yyl2160 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2160, d) } } else if yyct2160 == codecSelferValueTypeArray1234 { yyl2160 := r.ReadArrayStart() if yyl2160 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2160, 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 yys2161Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2161Slc var yyhl2161 bool = l >= 0 for yyj2161 := 0; ; yyj2161++ { if yyhl2161 { if yyj2161 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2161Slc = r.DecodeBytes(yys2161Slc, true, true) yys2161 := string(yys2161Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2161 { 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 { yyv2164 := &x.ListMeta yym2165 := z.DecBinary() _ = yym2165 if false { } else if z.HasExtensions() && z.DecExt(yyv2164) { } else { z.DecFallback(yyv2164, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2166 := &x.Items yym2167 := z.DecBinary() _ = yym2167 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2166), d) } } default: z.DecStructFieldNotFound(-1, yys2161) } // end switch yys2161 } // end for yyj2161 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 yyj2168 int var yyb2168 bool var yyhl2168 bool = l >= 0 yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2171 := &x.ListMeta yym2172 := z.DecBinary() _ = yym2172 if false { } else if z.HasExtensions() && z.DecExt(yyv2171) { } else { z.DecFallback(yyv2171, false) } } yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2173 := &x.Items yym2174 := z.DecBinary() _ = yym2174 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2173), d) } } for { yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2168-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 { yym2175 := z.EncBinary() _ = yym2175 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2176 := !z.EncBinary() yy2arr2176 := z.EncBasicHandle().StructToArray var yyq2176 [4]bool _, _, _ = yysep2176, yyq2176, yy2arr2176 const yyr2176 bool = false yyq2176[0] = x.Kind != "" yyq2176[1] = x.APIVersion != "" yyq2176[2] = true var yynn2176 int if yyr2176 || yy2arr2176 { r.EncodeArrayStart(4) } else { yynn2176 = 1 for _, b := range yyq2176 { if b { yynn2176++ } } r.EncodeMapStart(yynn2176) yynn2176 = 0 } if yyr2176 || yy2arr2176 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2176[0] { yym2178 := z.EncBinary() _ = yym2178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2176[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2179 := z.EncBinary() _ = yym2179 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2176 || yy2arr2176 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2176[1] { yym2181 := z.EncBinary() _ = yym2181 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2176[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2182 := z.EncBinary() _ = yym2182 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2176 || yy2arr2176 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2176[2] { yy2184 := &x.ObjectMeta yy2184.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2176[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2185 := &x.ObjectMeta yy2185.CodecEncodeSelf(e) } } if yyr2176 || yy2arr2176 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2187 := z.EncBinary() _ = yym2187 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 { yym2188 := z.EncBinary() _ = yym2188 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2176 || yy2arr2176 { 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 yym2189 := z.DecBinary() _ = yym2189 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2190 := r.ContainerType() if yyct2190 == codecSelferValueTypeMap1234 { yyl2190 := r.ReadMapStart() if yyl2190 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2190, d) } } else if yyct2190 == codecSelferValueTypeArray1234 { yyl2190 := r.ReadArrayStart() if yyl2190 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2190, 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 yys2191Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2191Slc var yyhl2191 bool = l >= 0 for yyj2191 := 0; ; yyj2191++ { if yyhl2191 { if yyj2191 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2191Slc = r.DecodeBytes(yys2191Slc, true, true) yys2191 := string(yys2191Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2191 { 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 { yyv2194 := &x.ObjectMeta yyv2194.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2195 := &x.Subsets yym2196 := z.DecBinary() _ = yym2196 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2195), d) } } default: z.DecStructFieldNotFound(-1, yys2191) } // end switch yys2191 } // end for yyj2191 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 yyj2197 int var yyb2197 bool var yyhl2197 bool = l >= 0 yyj2197++ if yyhl2197 { yyb2197 = yyj2197 > l } else { yyb2197 = r.CheckBreak() } if yyb2197 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2197++ if yyhl2197 { yyb2197 = yyj2197 > l } else { yyb2197 = r.CheckBreak() } if yyb2197 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2197++ if yyhl2197 { yyb2197 = yyj2197 > l } else { yyb2197 = r.CheckBreak() } if yyb2197 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2200 := &x.ObjectMeta yyv2200.CodecDecodeSelf(d) } yyj2197++ if yyhl2197 { yyb2197 = yyj2197 > l } else { yyb2197 = r.CheckBreak() } if yyb2197 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2201 := &x.Subsets yym2202 := z.DecBinary() _ = yym2202 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2201), d) } } for { yyj2197++ if yyhl2197 { yyb2197 = yyj2197 > l } else { yyb2197 = r.CheckBreak() } if yyb2197 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2197-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 { yym2203 := z.EncBinary() _ = yym2203 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2204 := !z.EncBinary() yy2arr2204 := z.EncBasicHandle().StructToArray var yyq2204 [3]bool _, _, _ = yysep2204, yyq2204, yy2arr2204 const yyr2204 bool = false var yynn2204 int if yyr2204 || yy2arr2204 { r.EncodeArrayStart(3) } else { yynn2204 = 3 for _, b := range yyq2204 { if b { yynn2204++ } } r.EncodeMapStart(yynn2204) yynn2204 = 0 } if yyr2204 || yy2arr2204 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2206 := z.EncBinary() _ = yym2206 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 { yym2207 := z.EncBinary() _ = yym2207 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2204 || yy2arr2204 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2209 := z.EncBinary() _ = yym2209 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 { yym2210 := z.EncBinary() _ = yym2210 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2204 || yy2arr2204 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2212 := z.EncBinary() _ = yym2212 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 { yym2213 := z.EncBinary() _ = yym2213 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2204 || yy2arr2204 { 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 yym2214 := z.DecBinary() _ = yym2214 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2215 := r.ContainerType() if yyct2215 == codecSelferValueTypeMap1234 { yyl2215 := r.ReadMapStart() if yyl2215 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2215, d) } } else if yyct2215 == codecSelferValueTypeArray1234 { yyl2215 := r.ReadArrayStart() if yyl2215 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2215, 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 yys2216Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2216Slc var yyhl2216 bool = l >= 0 for yyj2216 := 0; ; yyj2216++ { if yyhl2216 { if yyj2216 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2216Slc = r.DecodeBytes(yys2216Slc, true, true) yys2216 := string(yys2216Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2216 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2217 := &x.Addresses yym2218 := z.DecBinary() _ = yym2218 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2217), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2219 := &x.NotReadyAddresses yym2220 := z.DecBinary() _ = yym2220 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2219), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2221 := &x.Ports yym2222 := z.DecBinary() _ = yym2222 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2221), d) } } default: z.DecStructFieldNotFound(-1, yys2216) } // end switch yys2216 } // end for yyj2216 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 yyj2223 int var yyb2223 bool var yyhl2223 bool = l >= 0 yyj2223++ if yyhl2223 { yyb2223 = yyj2223 > l } else { yyb2223 = r.CheckBreak() } if yyb2223 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2224 := &x.Addresses yym2225 := z.DecBinary() _ = yym2225 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2224), d) } } yyj2223++ if yyhl2223 { yyb2223 = yyj2223 > l } else { yyb2223 = r.CheckBreak() } if yyb2223 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2226 := &x.NotReadyAddresses yym2227 := z.DecBinary() _ = yym2227 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2226), d) } } yyj2223++ if yyhl2223 { yyb2223 = yyj2223 > l } else { yyb2223 = r.CheckBreak() } if yyb2223 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2228 := &x.Ports yym2229 := z.DecBinary() _ = yym2229 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2228), d) } } for { yyj2223++ if yyhl2223 { yyb2223 = yyj2223 > l } else { yyb2223 = r.CheckBreak() } if yyb2223 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2223-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 { yym2230 := z.EncBinary() _ = yym2230 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2231 := !z.EncBinary() yy2arr2231 := z.EncBasicHandle().StructToArray var yyq2231 [2]bool _, _, _ = yysep2231, yyq2231, yy2arr2231 const yyr2231 bool = false var yynn2231 int if yyr2231 || yy2arr2231 { r.EncodeArrayStart(2) } else { yynn2231 = 2 for _, b := range yyq2231 { if b { yynn2231++ } } r.EncodeMapStart(yynn2231) yynn2231 = 0 } if yyr2231 || yy2arr2231 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2233 := z.EncBinary() _ = yym2233 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) yym2234 := z.EncBinary() _ = yym2234 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2231 || yy2arr2231 { 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 yyr2231 || yy2arr2231 { 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 yym2236 := z.DecBinary() _ = yym2236 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2237 := r.ContainerType() if yyct2237 == codecSelferValueTypeMap1234 { yyl2237 := r.ReadMapStart() if yyl2237 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2237, d) } } else if yyct2237 == codecSelferValueTypeArray1234 { yyl2237 := r.ReadArrayStart() if yyl2237 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2237, 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 yys2238Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2238Slc var yyhl2238 bool = l >= 0 for yyj2238 := 0; ; yyj2238++ { if yyhl2238 { if yyj2238 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2238Slc = r.DecodeBytes(yys2238Slc, true, true) yys2238 := string(yys2238Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2238 { 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, yys2238) } // end switch yys2238 } // end for yyj2238 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 yyj2241 int var yyb2241 bool var yyhl2241 bool = l >= 0 yyj2241++ if yyhl2241 { yyb2241 = yyj2241 > l } else { yyb2241 = r.CheckBreak() } if yyb2241 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2241++ if yyhl2241 { yyb2241 = yyj2241 > l } else { yyb2241 = r.CheckBreak() } if yyb2241 { 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 { yyj2241++ if yyhl2241 { yyb2241 = yyj2241 > l } else { yyb2241 = r.CheckBreak() } if yyb2241 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2241-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 { yym2244 := z.EncBinary() _ = yym2244 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2245 := !z.EncBinary() yy2arr2245 := z.EncBasicHandle().StructToArray var yyq2245 [3]bool _, _, _ = yysep2245, yyq2245, yy2arr2245 const yyr2245 bool = false var yynn2245 int if yyr2245 || yy2arr2245 { r.EncodeArrayStart(3) } else { yynn2245 = 3 for _, b := range yyq2245 { if b { yynn2245++ } } r.EncodeMapStart(yynn2245) yynn2245 = 0 } if yyr2245 || yy2arr2245 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2247 := z.EncBinary() _ = yym2247 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) yym2248 := z.EncBinary() _ = yym2248 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2245 || yy2arr2245 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2250 := z.EncBinary() _ = yym2250 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2251 := z.EncBinary() _ = yym2251 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2245 || yy2arr2245 { 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 yyr2245 || yy2arr2245 { 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 yym2253 := z.DecBinary() _ = yym2253 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2254 := r.ContainerType() if yyct2254 == codecSelferValueTypeMap1234 { yyl2254 := r.ReadMapStart() if yyl2254 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2254, d) } } else if yyct2254 == codecSelferValueTypeArray1234 { yyl2254 := r.ReadArrayStart() if yyl2254 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2254, 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 yys2255Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2255Slc var yyhl2255 bool = l >= 0 for yyj2255 := 0; ; yyj2255++ { if yyhl2255 { if yyj2255 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2255Slc = r.DecodeBytes(yys2255Slc, true, true) yys2255 := string(yys2255Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2255 { 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, yys2255) } // end switch yys2255 } // end for yyj2255 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 yyj2259 int var yyb2259 bool var yyhl2259 bool = l >= 0 yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2259++ if yyhl2259 { yyb2259 = yyj2259 > l } else { yyb2259 = r.CheckBreak() } if yyb2259 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2259-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2263 := z.EncBinary() _ = yym2263 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2264 := !z.EncBinary() yy2arr2264 := z.EncBasicHandle().StructToArray var yyq2264 [4]bool _, _, _ = yysep2264, yyq2264, yy2arr2264 const yyr2264 bool = false yyq2264[0] = x.Kind != "" yyq2264[1] = x.APIVersion != "" yyq2264[2] = true var yynn2264 int if yyr2264 || yy2arr2264 { r.EncodeArrayStart(4) } else { yynn2264 = 1 for _, b := range yyq2264 { if b { yynn2264++ } } r.EncodeMapStart(yynn2264) yynn2264 = 0 } if yyr2264 || yy2arr2264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2264[0] { yym2266 := z.EncBinary() _ = yym2266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2264[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2267 := z.EncBinary() _ = yym2267 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2264 || yy2arr2264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2264[1] { yym2269 := z.EncBinary() _ = yym2269 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2264[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2270 := z.EncBinary() _ = yym2270 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2264 || yy2arr2264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2264[2] { yy2272 := &x.ListMeta yym2273 := z.EncBinary() _ = yym2273 if false { } else if z.HasExtensions() && z.EncExt(yy2272) { } else { z.EncFallback(yy2272) } } else { r.EncodeNil() } } else { if yyq2264[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2274 := &x.ListMeta yym2275 := z.EncBinary() _ = yym2275 if false { } else if z.HasExtensions() && z.EncExt(yy2274) { } else { z.EncFallback(yy2274) } } } if yyr2264 || yy2arr2264 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2277 := z.EncBinary() _ = yym2277 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 { yym2278 := z.EncBinary() _ = yym2278 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2264 || yy2arr2264 { 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 yym2279 := z.DecBinary() _ = yym2279 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2280 := r.ContainerType() if yyct2280 == codecSelferValueTypeMap1234 { yyl2280 := r.ReadMapStart() if yyl2280 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2280, d) } } else if yyct2280 == codecSelferValueTypeArray1234 { yyl2280 := r.ReadArrayStart() if yyl2280 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2280, 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 yys2281Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2281Slc var yyhl2281 bool = l >= 0 for yyj2281 := 0; ; yyj2281++ { if yyhl2281 { if yyj2281 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2281Slc = r.DecodeBytes(yys2281Slc, true, true) yys2281 := string(yys2281Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2281 { 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 { yyv2284 := &x.ListMeta yym2285 := z.DecBinary() _ = yym2285 if false { } else if z.HasExtensions() && z.DecExt(yyv2284) { } else { z.DecFallback(yyv2284, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2286 := &x.Items yym2287 := z.DecBinary() _ = yym2287 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2286), d) } } default: z.DecStructFieldNotFound(-1, yys2281) } // end switch yys2281 } // end for yyj2281 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 yyj2288 int var yyb2288 bool var yyhl2288 bool = l >= 0 yyj2288++ if yyhl2288 { yyb2288 = yyj2288 > l } else { yyb2288 = r.CheckBreak() } if yyb2288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2288++ if yyhl2288 { yyb2288 = yyj2288 > l } else { yyb2288 = r.CheckBreak() } if yyb2288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2288++ if yyhl2288 { yyb2288 = yyj2288 > l } else { yyb2288 = r.CheckBreak() } if yyb2288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2291 := &x.ListMeta yym2292 := z.DecBinary() _ = yym2292 if false { } else if z.HasExtensions() && z.DecExt(yyv2291) { } else { z.DecFallback(yyv2291, false) } } yyj2288++ if yyhl2288 { yyb2288 = yyj2288 > l } else { yyb2288 = r.CheckBreak() } if yyb2288 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2293 := &x.Items yym2294 := z.DecBinary() _ = yym2294 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2293), d) } } for { yyj2288++ if yyhl2288 { yyb2288 = yyj2288 > l } else { yyb2288 = r.CheckBreak() } if yyb2288 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2288-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 { yym2295 := z.EncBinary() _ = yym2295 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2296 := !z.EncBinary() yy2arr2296 := z.EncBasicHandle().StructToArray var yyq2296 [4]bool _, _, _ = yysep2296, yyq2296, yy2arr2296 const yyr2296 bool = false yyq2296[0] = x.PodCIDR != "" yyq2296[1] = x.ExternalID != "" yyq2296[2] = x.ProviderID != "" yyq2296[3] = x.Unschedulable != false var yynn2296 int if yyr2296 || yy2arr2296 { r.EncodeArrayStart(4) } else { yynn2296 = 0 for _, b := range yyq2296 { if b { yynn2296++ } } r.EncodeMapStart(yynn2296) yynn2296 = 0 } if yyr2296 || yy2arr2296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2296[0] { yym2298 := z.EncBinary() _ = yym2298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2296[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2299 := z.EncBinary() _ = yym2299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2296 || yy2arr2296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2296[1] { yym2301 := z.EncBinary() _ = yym2301 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2296[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2302 := z.EncBinary() _ = yym2302 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2296 || yy2arr2296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2296[2] { yym2304 := z.EncBinary() _ = yym2304 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2296[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2305 := z.EncBinary() _ = yym2305 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2296 || yy2arr2296 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2296[3] { yym2307 := z.EncBinary() _ = yym2307 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2296[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2308 := z.EncBinary() _ = yym2308 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2296 || yy2arr2296 { 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 yym2309 := z.DecBinary() _ = yym2309 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2310 := r.ContainerType() if yyct2310 == codecSelferValueTypeMap1234 { yyl2310 := r.ReadMapStart() if yyl2310 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2310, d) } } else if yyct2310 == codecSelferValueTypeArray1234 { yyl2310 := r.ReadArrayStart() if yyl2310 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2310, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2311Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2311Slc var yyhl2311 bool = l >= 0 for yyj2311 := 0; ; yyj2311++ { if yyhl2311 { if yyj2311 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2311Slc = r.DecodeBytes(yys2311Slc, true, true) yys2311 := string(yys2311Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2311 { case "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, yys2311) } // end switch yys2311 } // end for yyj2311 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 yyj2316 int var yyb2316 bool var yyhl2316 bool = l >= 0 yyj2316++ if yyhl2316 { yyb2316 = yyj2316 > l } else { yyb2316 = r.CheckBreak() } if yyb2316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2316++ if yyhl2316 { yyb2316 = yyj2316 > l } else { yyb2316 = r.CheckBreak() } if yyb2316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2316++ if yyhl2316 { yyb2316 = yyj2316 > l } else { yyb2316 = r.CheckBreak() } if yyb2316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2316++ if yyhl2316 { yyb2316 = yyj2316 > l } else { yyb2316 = r.CheckBreak() } if yyb2316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2316++ if yyhl2316 { yyb2316 = yyj2316 > l } else { yyb2316 = r.CheckBreak() } if yyb2316 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2316-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 { yym2321 := z.EncBinary() _ = yym2321 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2322 := !z.EncBinary() yy2arr2322 := z.EncBasicHandle().StructToArray var yyq2322 [1]bool _, _, _ = yysep2322, yyq2322, yy2arr2322 const yyr2322 bool = false var yynn2322 int if yyr2322 || yy2arr2322 { r.EncodeArrayStart(1) } else { yynn2322 = 1 for _, b := range yyq2322 { if b { yynn2322++ } } r.EncodeMapStart(yynn2322) yynn2322 = 0 } if yyr2322 || yy2arr2322 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2324 := z.EncBinary() _ = yym2324 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2325 := z.EncBinary() _ = yym2325 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2322 || yy2arr2322 { 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 yym2326 := z.DecBinary() _ = yym2326 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2327 := r.ContainerType() if yyct2327 == codecSelferValueTypeMap1234 { yyl2327 := r.ReadMapStart() if yyl2327 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2327, d) } } else if yyct2327 == codecSelferValueTypeArray1234 { yyl2327 := r.ReadArrayStart() if yyl2327 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2327, 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 yys2328Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2328Slc var yyhl2328 bool = l >= 0 for yyj2328 := 0; ; yyj2328++ { if yyhl2328 { if yyj2328 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2328Slc = r.DecodeBytes(yys2328Slc, true, true) yys2328 := string(yys2328Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2328 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2328) } // end switch yys2328 } // end for yyj2328 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 yyj2330 int var yyb2330 bool var yyhl2330 bool = l >= 0 yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2330-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 { yym2332 := z.EncBinary() _ = yym2332 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2333 := !z.EncBinary() yy2arr2333 := z.EncBasicHandle().StructToArray var yyq2333 [1]bool _, _, _ = yysep2333, yyq2333, yy2arr2333 const yyr2333 bool = false yyq2333[0] = true var yynn2333 int if yyr2333 || yy2arr2333 { r.EncodeArrayStart(1) } else { yynn2333 = 0 for _, b := range yyq2333 { if b { yynn2333++ } } r.EncodeMapStart(yynn2333) yynn2333 = 0 } if yyr2333 || yy2arr2333 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2333[0] { yy2335 := &x.KubeletEndpoint yy2335.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2333[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2336 := &x.KubeletEndpoint yy2336.CodecEncodeSelf(e) } } if yyr2333 || yy2arr2333 { 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 yym2337 := z.DecBinary() _ = yym2337 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2338 := r.ContainerType() if yyct2338 == codecSelferValueTypeMap1234 { yyl2338 := r.ReadMapStart() if yyl2338 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2338, d) } } else if yyct2338 == codecSelferValueTypeArray1234 { yyl2338 := r.ReadArrayStart() if yyl2338 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2338, 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 yys2339Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2339Slc var yyhl2339 bool = l >= 0 for yyj2339 := 0; ; yyj2339++ { if yyhl2339 { if yyj2339 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2339Slc = r.DecodeBytes(yys2339Slc, true, true) yys2339 := string(yys2339Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2339 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2340 := &x.KubeletEndpoint yyv2340.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2339) } // end switch yys2339 } // end for yyj2339 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 yyj2341 int var yyb2341 bool var yyhl2341 bool = l >= 0 yyj2341++ if yyhl2341 { yyb2341 = yyj2341 > l } else { yyb2341 = r.CheckBreak() } if yyb2341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2342 := &x.KubeletEndpoint yyv2342.CodecDecodeSelf(d) } for { yyj2341++ if yyhl2341 { yyb2341 = yyj2341 > l } else { yyb2341 = r.CheckBreak() } if yyb2341 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2341-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2343 := z.EncBinary() _ = yym2343 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2344 := !z.EncBinary() yy2arr2344 := z.EncBasicHandle().StructToArray var yyq2344 [8]bool _, _, _ = yysep2344, yyq2344, yy2arr2344 const yyr2344 bool = false var yynn2344 int if yyr2344 || yy2arr2344 { r.EncodeArrayStart(8) } else { yynn2344 = 8 for _, b := range yyq2344 { if b { yynn2344++ } } r.EncodeMapStart(yynn2344) yynn2344 = 0 } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2346 := z.EncBinary() _ = yym2346 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) yym2347 := z.EncBinary() _ = yym2347 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2349 := z.EncBinary() _ = yym2349 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) yym2350 := z.EncBinary() _ = yym2350 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2352 := z.EncBinary() _ = yym2352 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) yym2353 := z.EncBinary() _ = yym2353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2355 := z.EncBinary() _ = yym2355 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) yym2356 := z.EncBinary() _ = yym2356 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2358 := z.EncBinary() _ = yym2358 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) yym2359 := z.EncBinary() _ = yym2359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2361 := z.EncBinary() _ = yym2361 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) yym2362 := z.EncBinary() _ = yym2362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2364 := z.EncBinary() _ = yym2364 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) yym2365 := z.EncBinary() _ = yym2365 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2344 || yy2arr2344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2367 := z.EncBinary() _ = yym2367 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) yym2368 := z.EncBinary() _ = yym2368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2344 || yy2arr2344 { 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 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 *NodeSystemInfo) 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 "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, yys2371) } // end switch yys2371 } // end for yyj2371 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 yyj2380 int var yyb2380 bool var yyhl2380 bool = l >= 0 yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OSImage = "" } else { x.OSImage = string(r.DecodeString()) } yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } for { yyj2380++ if yyhl2380 { yyb2380 = yyj2380 > l } else { yyb2380 = r.CheckBreak() } if yyb2380 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2380-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 { yym2389 := z.EncBinary() _ = yym2389 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2390 := !z.EncBinary() yy2arr2390 := z.EncBasicHandle().StructToArray var yyq2390 [8]bool _, _, _ = yysep2390, yyq2390, yy2arr2390 const yyr2390 bool = false yyq2390[0] = len(x.Capacity) != 0 yyq2390[1] = len(x.Allocatable) != 0 yyq2390[2] = x.Phase != "" yyq2390[3] = len(x.Conditions) != 0 yyq2390[4] = len(x.Addresses) != 0 yyq2390[5] = true yyq2390[6] = true var yynn2390 int if yyr2390 || yy2arr2390 { r.EncodeArrayStart(8) } else { yynn2390 = 1 for _, b := range yyq2390 { if b { yynn2390++ } } r.EncodeMapStart(yynn2390) yynn2390 = 0 } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2390[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[1] { if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2390[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 yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2390[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[3] { if x.Conditions == nil { r.EncodeNil() } else { yym2395 := z.EncBinary() _ = yym2395 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2390[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2396 := z.EncBinary() _ = yym2396 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[4] { if x.Addresses == nil { r.EncodeNil() } else { yym2398 := z.EncBinary() _ = yym2398 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq2390[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2399 := z.EncBinary() _ = yym2399 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[5] { yy2401 := &x.DaemonEndpoints yy2401.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2390[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2402 := &x.DaemonEndpoints yy2402.CodecEncodeSelf(e) } } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[6] { yy2404 := &x.NodeInfo yy2404.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2390[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2405 := &x.NodeInfo yy2405.CodecEncodeSelf(e) } } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Images == nil { r.EncodeNil() } else { yym2407 := z.EncBinary() _ = yym2407 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 { yym2408 := z.EncBinary() _ = yym2408 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } if yyr2390 || yy2arr2390 { 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 yym2409 := z.DecBinary() _ = yym2409 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2410 := r.ContainerType() if yyct2410 == codecSelferValueTypeMap1234 { yyl2410 := r.ReadMapStart() if yyl2410 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2410, d) } } else if yyct2410 == codecSelferValueTypeArray1234 { yyl2410 := r.ReadArrayStart() if yyl2410 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2410, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2411Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2411Slc var yyhl2411 bool = l >= 0 for yyj2411 := 0; ; yyj2411++ { if yyhl2411 { if yyj2411 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2411Slc = r.DecodeBytes(yys2411Slc, true, true) yys2411 := string(yys2411Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2411 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2412 := &x.Capacity yyv2412.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2413 := &x.Allocatable yyv2413.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2415 := &x.Conditions yym2416 := z.DecBinary() _ = yym2416 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2415), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2417 := &x.Addresses yym2418 := z.DecBinary() _ = yym2418 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2417), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2419 := &x.DaemonEndpoints yyv2419.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2420 := &x.NodeInfo yyv2420.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { yyv2421 := &x.Images yym2422 := z.DecBinary() _ = yym2422 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2421), d) } } default: z.DecStructFieldNotFound(-1, yys2411) } // end switch yys2411 } // end for yyj2411 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 yyj2423 int var yyb2423 bool var yyhl2423 bool = l >= 0 yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2424 := &x.Capacity yyv2424.CodecDecodeSelf(d) } yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv2425 := &x.Allocatable yyv2425.CodecDecodeSelf(d) } yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2427 := &x.Conditions yym2428 := z.DecBinary() _ = yym2428 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2427), d) } } yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2429 := &x.Addresses yym2430 := z.DecBinary() _ = yym2430 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2429), d) } } yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2431 := &x.DaemonEndpoints yyv2431.CodecDecodeSelf(d) } yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2432 := &x.NodeInfo yyv2432.CodecDecodeSelf(d) } yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Images = nil } else { yyv2433 := &x.Images yym2434 := z.DecBinary() _ = yym2434 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv2433), d) } } for { yyj2423++ if yyhl2423 { yyb2423 = yyj2423 > l } else { yyb2423 = r.CheckBreak() } if yyb2423 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2423-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 { yym2435 := z.EncBinary() _ = yym2435 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2436 := !z.EncBinary() yy2arr2436 := z.EncBasicHandle().StructToArray var yyq2436 [2]bool _, _, _ = yysep2436, yyq2436, yy2arr2436 const yyr2436 bool = false yyq2436[1] = x.Size != 0 var yynn2436 int if yyr2436 || yy2arr2436 { r.EncodeArrayStart(2) } else { yynn2436 = 1 for _, b := range yyq2436 { if b { yynn2436++ } } r.EncodeMapStart(yynn2436) yynn2436 = 0 } if yyr2436 || yy2arr2436 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.RepoTags == nil { r.EncodeNil() } else { yym2438 := z.EncBinary() _ = yym2438 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 { yym2439 := z.EncBinary() _ = yym2439 if false { } else { z.F.EncSliceStringV(x.RepoTags, false, e) } } } if yyr2436 || yy2arr2436 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2436[1] { yym2441 := z.EncBinary() _ = yym2441 if false { } else { r.EncodeInt(int64(x.Size)) } } else { r.EncodeInt(0) } } else { if yyq2436[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("size")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2442 := z.EncBinary() _ = yym2442 if false { } else { r.EncodeInt(int64(x.Size)) } } } if yyr2436 || yy2arr2436 { 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 yym2443 := z.DecBinary() _ = yym2443 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2444 := r.ContainerType() if yyct2444 == codecSelferValueTypeMap1234 { yyl2444 := r.ReadMapStart() if yyl2444 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2444, d) } } else if yyct2444 == codecSelferValueTypeArray1234 { yyl2444 := r.ReadArrayStart() if yyl2444 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2444, 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 yys2445Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2445Slc var yyhl2445 bool = l >= 0 for yyj2445 := 0; ; yyj2445++ { if yyhl2445 { if yyj2445 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2445Slc = r.DecodeBytes(yys2445Slc, true, true) yys2445 := string(yys2445Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2445 { case "repoTags": if r.TryDecodeAsNil() { x.RepoTags = nil } else { yyv2446 := &x.RepoTags yym2447 := z.DecBinary() _ = yym2447 if false { } else { z.F.DecSliceStringX(yyv2446, false, d) } } case "size": if r.TryDecodeAsNil() { x.Size = 0 } else { x.Size = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys2445) } // end switch yys2445 } // end for yyj2445 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 yyj2449 int var yyb2449 bool var yyhl2449 bool = l >= 0 yyj2449++ if yyhl2449 { yyb2449 = yyj2449 > l } else { yyb2449 = r.CheckBreak() } if yyb2449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RepoTags = nil } else { yyv2450 := &x.RepoTags yym2451 := z.DecBinary() _ = yym2451 if false { } else { z.F.DecSliceStringX(yyv2450, false, d) } } yyj2449++ if yyhl2449 { yyb2449 = yyj2449 > l } else { yyb2449 = r.CheckBreak() } if yyb2449 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Size = 0 } else { x.Size = int64(r.DecodeInt(64)) } for { yyj2449++ if yyhl2449 { yyb2449 = yyj2449 > l } else { yyb2449 = r.CheckBreak() } if yyb2449 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2449-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2453 := z.EncBinary() _ = yym2453 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 yym2454 := z.DecBinary() _ = yym2454 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 yym2455 := z.EncBinary() _ = yym2455 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 yym2456 := z.DecBinary() _ = yym2456 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 { yym2457 := z.EncBinary() _ = yym2457 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2458 := !z.EncBinary() yy2arr2458 := z.EncBasicHandle().StructToArray var yyq2458 [6]bool _, _, _ = yysep2458, yyq2458, yy2arr2458 const yyr2458 bool = false yyq2458[2] = true yyq2458[3] = true yyq2458[4] = x.Reason != "" yyq2458[5] = x.Message != "" var yynn2458 int if yyr2458 || yy2arr2458 { r.EncodeArrayStart(6) } else { yynn2458 = 2 for _, b := range yyq2458 { if b { yynn2458++ } } r.EncodeMapStart(yynn2458) yynn2458 = 0 } if yyr2458 || yy2arr2458 { 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 yyr2458 || yy2arr2458 { 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 yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2458[2] { yy2462 := &x.LastHeartbeatTime yym2463 := z.EncBinary() _ = yym2463 if false { } else if z.HasExtensions() && z.EncExt(yy2462) { } else if yym2463 { z.EncBinaryMarshal(yy2462) } else if !yym2463 && z.IsJSONHandle() { z.EncJSONMarshal(yy2462) } else { z.EncFallback(yy2462) } } else { r.EncodeNil() } } else { if yyq2458[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2464 := &x.LastHeartbeatTime yym2465 := z.EncBinary() _ = yym2465 if false { } else if z.HasExtensions() && z.EncExt(yy2464) { } else if yym2465 { z.EncBinaryMarshal(yy2464) } else if !yym2465 && z.IsJSONHandle() { z.EncJSONMarshal(yy2464) } else { z.EncFallback(yy2464) } } } if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2458[3] { yy2467 := &x.LastTransitionTime yym2468 := z.EncBinary() _ = yym2468 if false { } else if z.HasExtensions() && z.EncExt(yy2467) { } else if yym2468 { z.EncBinaryMarshal(yy2467) } else if !yym2468 && z.IsJSONHandle() { z.EncJSONMarshal(yy2467) } else { z.EncFallback(yy2467) } } else { r.EncodeNil() } } else { if yyq2458[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2469 := &x.LastTransitionTime yym2470 := z.EncBinary() _ = yym2470 if false { } else if z.HasExtensions() && z.EncExt(yy2469) { } else if yym2470 { z.EncBinaryMarshal(yy2469) } else if !yym2470 && z.IsJSONHandle() { z.EncJSONMarshal(yy2469) } else { z.EncFallback(yy2469) } } } if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2458[4] { yym2472 := z.EncBinary() _ = yym2472 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2458[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2473 := z.EncBinary() _ = yym2473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2458 || yy2arr2458 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2458[5] { yym2475 := z.EncBinary() _ = yym2475 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2458[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2476 := z.EncBinary() _ = yym2476 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2458 || yy2arr2458 { 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 yym2477 := z.DecBinary() _ = yym2477 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2478 := r.ContainerType() if yyct2478 == codecSelferValueTypeMap1234 { yyl2478 := r.ReadMapStart() if yyl2478 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2478, d) } } else if yyct2478 == codecSelferValueTypeArray1234 { yyl2478 := r.ReadArrayStart() if yyl2478 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2478, 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 yys2479Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2479Slc var yyhl2479 bool = l >= 0 for yyj2479 := 0; ; yyj2479++ { if yyhl2479 { if yyj2479 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2479Slc = r.DecodeBytes(yys2479Slc, true, true) yys2479 := string(yys2479Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2479 { 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 { yyv2482 := &x.LastHeartbeatTime yym2483 := z.DecBinary() _ = yym2483 if false { } else if z.HasExtensions() && z.DecExt(yyv2482) { } else if yym2483 { z.DecBinaryUnmarshal(yyv2482) } else if !yym2483 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2482) } else { z.DecFallback(yyv2482, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2484 := &x.LastTransitionTime yym2485 := z.DecBinary() _ = yym2485 if false { } else if z.HasExtensions() && z.DecExt(yyv2484) { } else if yym2485 { z.DecBinaryUnmarshal(yyv2484) } else if !yym2485 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2484) } else { z.DecFallback(yyv2484, 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, yys2479) } // end switch yys2479 } // end for yyj2479 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 yyj2488 int var yyb2488 bool var yyhl2488 bool = l >= 0 yyj2488++ if yyhl2488 { yyb2488 = yyj2488 > l } else { yyb2488 = r.CheckBreak() } if yyb2488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj2488++ if yyhl2488 { yyb2488 = yyj2488 > l } else { yyb2488 = r.CheckBreak() } if yyb2488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj2488++ if yyhl2488 { yyb2488 = yyj2488 > l } else { yyb2488 = r.CheckBreak() } if yyb2488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv2491 := &x.LastHeartbeatTime yym2492 := z.DecBinary() _ = yym2492 if false { } else if z.HasExtensions() && z.DecExt(yyv2491) { } else if yym2492 { z.DecBinaryUnmarshal(yyv2491) } else if !yym2492 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2491) } else { z.DecFallback(yyv2491, false) } } yyj2488++ if yyhl2488 { yyb2488 = yyj2488 > l } else { yyb2488 = r.CheckBreak() } if yyb2488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2493 := &x.LastTransitionTime yym2494 := z.DecBinary() _ = yym2494 if false { } else if z.HasExtensions() && z.DecExt(yyv2493) { } else if yym2494 { z.DecBinaryUnmarshal(yyv2493) } else if !yym2494 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2493) } else { z.DecFallback(yyv2493, false) } } yyj2488++ if yyhl2488 { yyb2488 = yyj2488 > l } else { yyb2488 = r.CheckBreak() } if yyb2488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2488++ if yyhl2488 { yyb2488 = yyj2488 > l } else { yyb2488 = r.CheckBreak() } if yyb2488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj2488++ if yyhl2488 { yyb2488 = yyj2488 > l } else { yyb2488 = r.CheckBreak() } if yyb2488 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2488-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2497 := z.EncBinary() _ = yym2497 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 yym2498 := z.DecBinary() _ = yym2498 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 { yym2499 := z.EncBinary() _ = yym2499 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2500 := !z.EncBinary() yy2arr2500 := z.EncBasicHandle().StructToArray var yyq2500 [2]bool _, _, _ = yysep2500, yyq2500, yy2arr2500 const yyr2500 bool = false var yynn2500 int if yyr2500 || yy2arr2500 { r.EncodeArrayStart(2) } else { yynn2500 = 2 for _, b := range yyq2500 { if b { yynn2500++ } } r.EncodeMapStart(yynn2500) yynn2500 = 0 } if yyr2500 || yy2arr2500 { 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 yyr2500 || yy2arr2500 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2503 := z.EncBinary() _ = yym2503 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) yym2504 := z.EncBinary() _ = yym2504 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr2500 || yy2arr2500 { 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 yym2505 := z.DecBinary() _ = yym2505 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2506 := r.ContainerType() if yyct2506 == codecSelferValueTypeMap1234 { yyl2506 := r.ReadMapStart() if yyl2506 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2506, d) } } else if yyct2506 == codecSelferValueTypeArray1234 { yyl2506 := r.ReadArrayStart() if yyl2506 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2506, 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 yys2507Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2507Slc var yyhl2507 bool = l >= 0 for yyj2507 := 0; ; yyj2507++ { if yyhl2507 { if yyj2507 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2507Slc = r.DecodeBytes(yys2507Slc, true, true) yys2507 := string(yys2507Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2507 { 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, yys2507) } // end switch yys2507 } // end for yyj2507 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 yyj2510 int var yyb2510 bool var yyhl2510 bool = l >= 0 yyj2510++ if yyhl2510 { yyb2510 = yyj2510 > l } else { yyb2510 = r.CheckBreak() } if yyb2510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj2510++ if yyhl2510 { yyb2510 = yyj2510 > l } else { yyb2510 = r.CheckBreak() } if yyb2510 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj2510++ if yyhl2510 { yyb2510 = yyj2510 > l } else { yyb2510 = r.CheckBreak() } if yyb2510 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2510-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 { yym2513 := z.EncBinary() _ = yym2513 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2514 := !z.EncBinary() yy2arr2514 := z.EncBasicHandle().StructToArray var yyq2514 [1]bool _, _, _ = yysep2514, yyq2514, yy2arr2514 const yyr2514 bool = false yyq2514[0] = len(x.Capacity) != 0 var yynn2514 int if yyr2514 || yy2arr2514 { r.EncodeArrayStart(1) } else { yynn2514 = 0 for _, b := range yyq2514 { if b { yynn2514++ } } r.EncodeMapStart(yynn2514) yynn2514 = 0 } if yyr2514 || yy2arr2514 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2514[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2514[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 yyr2514 || yy2arr2514 { 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 yym2516 := z.DecBinary() _ = yym2516 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2517 := r.ContainerType() if yyct2517 == codecSelferValueTypeMap1234 { yyl2517 := r.ReadMapStart() if yyl2517 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2517, d) } } else if yyct2517 == codecSelferValueTypeArray1234 { yyl2517 := r.ReadArrayStart() if yyl2517 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2517, 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 yys2518Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2518Slc var yyhl2518 bool = l >= 0 for yyj2518 := 0; ; yyj2518++ { if yyhl2518 { if yyj2518 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2518Slc = r.DecodeBytes(yys2518Slc, true, true) yys2518 := string(yys2518Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2518 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2519 := &x.Capacity yyv2519.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2518) } // end switch yys2518 } // end for yyj2518 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 yyj2520 int var yyb2520 bool var yyhl2520 bool = l >= 0 yyj2520++ if yyhl2520 { yyb2520 = yyj2520 > l } else { yyb2520 = r.CheckBreak() } if yyb2520 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2521 := &x.Capacity yyv2521.CodecDecodeSelf(d) } for { yyj2520++ if yyhl2520 { yyb2520 = yyj2520 > l } else { yyb2520 = r.CheckBreak() } if yyb2520 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2520-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2522 := z.EncBinary() _ = yym2522 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 yym2523 := z.DecBinary() _ = yym2523 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 { yym2524 := z.EncBinary() _ = yym2524 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 yym2525 := z.DecBinary() _ = yym2525 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 { yym2526 := z.EncBinary() _ = yym2526 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2527 := !z.EncBinary() yy2arr2527 := z.EncBasicHandle().StructToArray var yyq2527 [5]bool _, _, _ = yysep2527, yyq2527, yy2arr2527 const yyr2527 bool = false yyq2527[0] = x.Kind != "" yyq2527[1] = x.APIVersion != "" yyq2527[2] = true yyq2527[3] = true yyq2527[4] = true var yynn2527 int if yyr2527 || yy2arr2527 { r.EncodeArrayStart(5) } else { yynn2527 = 0 for _, b := range yyq2527 { if b { yynn2527++ } } r.EncodeMapStart(yynn2527) yynn2527 = 0 } if yyr2527 || yy2arr2527 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2527[0] { yym2529 := z.EncBinary() _ = yym2529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2527[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2530 := z.EncBinary() _ = yym2530 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2527 || yy2arr2527 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2527[1] { yym2532 := z.EncBinary() _ = yym2532 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2527[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2533 := z.EncBinary() _ = yym2533 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2527 || yy2arr2527 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2527[2] { yy2535 := &x.ObjectMeta yy2535.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2527[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2536 := &x.ObjectMeta yy2536.CodecEncodeSelf(e) } } if yyr2527 || yy2arr2527 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2527[3] { yy2538 := &x.Spec yy2538.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2527[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2539 := &x.Spec yy2539.CodecEncodeSelf(e) } } if yyr2527 || yy2arr2527 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2527[4] { yy2541 := &x.Status yy2541.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2527[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2542 := &x.Status yy2542.CodecEncodeSelf(e) } } if yyr2527 || yy2arr2527 { 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 yym2543 := z.DecBinary() _ = yym2543 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2544 := r.ContainerType() if yyct2544 == codecSelferValueTypeMap1234 { yyl2544 := r.ReadMapStart() if yyl2544 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2544, d) } } else if yyct2544 == codecSelferValueTypeArray1234 { yyl2544 := r.ReadArrayStart() if yyl2544 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2544, 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 yys2545Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2545Slc var yyhl2545 bool = l >= 0 for yyj2545 := 0; ; yyj2545++ { if yyhl2545 { if yyj2545 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2545Slc = r.DecodeBytes(yys2545Slc, true, true) yys2545 := string(yys2545Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2545 { 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 { yyv2548 := &x.ObjectMeta yyv2548.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2549 := &x.Spec yyv2549.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2550 := &x.Status yyv2550.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2545) } // end switch yys2545 } // end for yyj2545 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 yyj2551 int var yyb2551 bool var yyhl2551 bool = l >= 0 yyj2551++ if yyhl2551 { yyb2551 = yyj2551 > l } else { yyb2551 = r.CheckBreak() } if yyb2551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2551++ if yyhl2551 { yyb2551 = yyj2551 > l } else { yyb2551 = r.CheckBreak() } if yyb2551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2551++ if yyhl2551 { yyb2551 = yyj2551 > l } else { yyb2551 = r.CheckBreak() } if yyb2551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2554 := &x.ObjectMeta yyv2554.CodecDecodeSelf(d) } yyj2551++ if yyhl2551 { yyb2551 = yyj2551 > l } else { yyb2551 = r.CheckBreak() } if yyb2551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2555 := &x.Spec yyv2555.CodecDecodeSelf(d) } yyj2551++ if yyhl2551 { yyb2551 = yyj2551 > l } else { yyb2551 = r.CheckBreak() } if yyb2551 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2556 := &x.Status yyv2556.CodecDecodeSelf(d) } for { yyj2551++ if yyhl2551 { yyb2551 = yyj2551 > l } else { yyb2551 = r.CheckBreak() } if yyb2551 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2551-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 { yym2557 := z.EncBinary() _ = yym2557 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2558 := !z.EncBinary() yy2arr2558 := z.EncBasicHandle().StructToArray var yyq2558 [4]bool _, _, _ = yysep2558, yyq2558, yy2arr2558 const yyr2558 bool = false yyq2558[0] = x.Kind != "" yyq2558[1] = x.APIVersion != "" yyq2558[2] = true var yynn2558 int if yyr2558 || yy2arr2558 { r.EncodeArrayStart(4) } else { yynn2558 = 1 for _, b := range yyq2558 { if b { yynn2558++ } } r.EncodeMapStart(yynn2558) yynn2558 = 0 } if yyr2558 || yy2arr2558 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2558[0] { yym2560 := z.EncBinary() _ = yym2560 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2558[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2561 := z.EncBinary() _ = yym2561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2558 || yy2arr2558 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2558[1] { yym2563 := z.EncBinary() _ = yym2563 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2558[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2564 := z.EncBinary() _ = yym2564 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2558 || yy2arr2558 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2558[2] { yy2566 := &x.ListMeta yym2567 := z.EncBinary() _ = yym2567 if false { } else if z.HasExtensions() && z.EncExt(yy2566) { } else { z.EncFallback(yy2566) } } else { r.EncodeNil() } } else { if yyq2558[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2568 := &x.ListMeta yym2569 := z.EncBinary() _ = yym2569 if false { } else if z.HasExtensions() && z.EncExt(yy2568) { } else { z.EncFallback(yy2568) } } } if yyr2558 || yy2arr2558 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2571 := z.EncBinary() _ = yym2571 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 { yym2572 := z.EncBinary() _ = yym2572 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr2558 || yy2arr2558 { 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 yym2573 := z.DecBinary() _ = yym2573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2574 := r.ContainerType() if yyct2574 == codecSelferValueTypeMap1234 { yyl2574 := r.ReadMapStart() if yyl2574 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2574, d) } } else if yyct2574 == codecSelferValueTypeArray1234 { yyl2574 := r.ReadArrayStart() if yyl2574 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2574, 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 yys2575Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2575Slc var yyhl2575 bool = l >= 0 for yyj2575 := 0; ; yyj2575++ { if yyhl2575 { if yyj2575 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2575Slc = r.DecodeBytes(yys2575Slc, true, true) yys2575 := string(yys2575Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2575 { 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 { yyv2578 := &x.ListMeta yym2579 := z.DecBinary() _ = yym2579 if false { } else if z.HasExtensions() && z.DecExt(yyv2578) { } else { z.DecFallback(yyv2578, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2580 := &x.Items yym2581 := z.DecBinary() _ = yym2581 if false { } else { h.decSliceNode((*[]Node)(yyv2580), d) } } default: z.DecStructFieldNotFound(-1, yys2575) } // end switch yys2575 } // end for yyj2575 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 yyj2582 int var yyb2582 bool var yyhl2582 bool = l >= 0 yyj2582++ if yyhl2582 { yyb2582 = yyj2582 > l } else { yyb2582 = r.CheckBreak() } if yyb2582 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2582++ if yyhl2582 { yyb2582 = yyj2582 > l } else { yyb2582 = r.CheckBreak() } if yyb2582 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2582++ if yyhl2582 { yyb2582 = yyj2582 > l } else { yyb2582 = r.CheckBreak() } if yyb2582 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2585 := &x.ListMeta yym2586 := z.DecBinary() _ = yym2586 if false { } else if z.HasExtensions() && z.DecExt(yyv2585) { } else { z.DecFallback(yyv2585, false) } } yyj2582++ if yyhl2582 { yyb2582 = yyj2582 > l } else { yyb2582 = r.CheckBreak() } if yyb2582 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2587 := &x.Items yym2588 := z.DecBinary() _ = yym2588 if false { } else { h.decSliceNode((*[]Node)(yyv2587), d) } } for { yyj2582++ if yyhl2582 { yyb2582 = yyj2582 > l } else { yyb2582 = r.CheckBreak() } if yyb2582 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2582-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 { yym2589 := z.EncBinary() _ = yym2589 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2590 := !z.EncBinary() yy2arr2590 := z.EncBasicHandle().StructToArray var yyq2590 [1]bool _, _, _ = yysep2590, yyq2590, yy2arr2590 const yyr2590 bool = false var yynn2590 int if yyr2590 || yy2arr2590 { r.EncodeArrayStart(1) } else { yynn2590 = 1 for _, b := range yyq2590 { if b { yynn2590++ } } r.EncodeMapStart(yynn2590) yynn2590 = 0 } if yyr2590 || yy2arr2590 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym2592 := z.EncBinary() _ = yym2592 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 { yym2593 := z.EncBinary() _ = yym2593 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr2590 || yy2arr2590 { 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 yym2594 := z.DecBinary() _ = yym2594 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2595 := r.ContainerType() if yyct2595 == codecSelferValueTypeMap1234 { yyl2595 := r.ReadMapStart() if yyl2595 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2595, d) } } else if yyct2595 == codecSelferValueTypeArray1234 { yyl2595 := r.ReadArrayStart() if yyl2595 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2595, 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 yys2596Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2596Slc var yyhl2596 bool = l >= 0 for yyj2596 := 0; ; yyj2596++ { if yyhl2596 { if yyj2596 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2596Slc = r.DecodeBytes(yys2596Slc, true, true) yys2596 := string(yys2596Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2596 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2597 := &x.Finalizers yym2598 := z.DecBinary() _ = yym2598 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2597), d) } } default: z.DecStructFieldNotFound(-1, yys2596) } // end switch yys2596 } // end for yyj2596 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 yyj2599 int var yyb2599 bool var yyhl2599 bool = l >= 0 yyj2599++ if yyhl2599 { yyb2599 = yyj2599 > l } else { yyb2599 = r.CheckBreak() } if yyb2599 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2600 := &x.Finalizers yym2601 := z.DecBinary() _ = yym2601 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2600), d) } } for { yyj2599++ if yyhl2599 { yyb2599 = yyj2599 > l } else { yyb2599 = r.CheckBreak() } if yyb2599 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2599-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2602 := z.EncBinary() _ = yym2602 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2603 := z.DecBinary() _ = yym2603 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2604 := z.EncBinary() _ = yym2604 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2605 := !z.EncBinary() yy2arr2605 := z.EncBasicHandle().StructToArray var yyq2605 [1]bool _, _, _ = yysep2605, yyq2605, yy2arr2605 const yyr2605 bool = false yyq2605[0] = x.Phase != "" var yynn2605 int if yyr2605 || yy2arr2605 { r.EncodeArrayStart(1) } else { yynn2605 = 0 for _, b := range yyq2605 { if b { yynn2605++ } } r.EncodeMapStart(yynn2605) yynn2605 = 0 } if yyr2605 || yy2arr2605 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2605[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2605[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2605 || yy2arr2605 { 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 yym2607 := z.DecBinary() _ = yym2607 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2608 := r.ContainerType() if yyct2608 == codecSelferValueTypeMap1234 { yyl2608 := r.ReadMapStart() if yyl2608 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2608, d) } } else if yyct2608 == codecSelferValueTypeArray1234 { yyl2608 := r.ReadArrayStart() if yyl2608 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2608, 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 yys2609Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2609Slc var yyhl2609 bool = l >= 0 for yyj2609 := 0; ; yyj2609++ { if yyhl2609 { if yyj2609 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2609Slc = r.DecodeBytes(yys2609Slc, true, true) yys2609 := string(yys2609Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2609 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2609) } // end switch yys2609 } // end for yyj2609 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 yyj2611 int var yyb2611 bool var yyhl2611 bool = l >= 0 yyj2611++ if yyhl2611 { yyb2611 = yyj2611 > l } else { yyb2611 = r.CheckBreak() } if yyb2611 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj2611++ if yyhl2611 { yyb2611 = yyj2611 > l } else { yyb2611 = r.CheckBreak() } if yyb2611 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2611-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) 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 *NamespacePhase) 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 *Namespace) 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 [5]bool _, _, _ = yysep2616, yyq2616, yy2arr2616 const yyr2616 bool = false yyq2616[0] = x.Kind != "" yyq2616[1] = x.APIVersion != "" yyq2616[2] = true yyq2616[3] = true yyq2616[4] = true var yynn2616 int if yyr2616 || yy2arr2616 { r.EncodeArrayStart(5) } else { yynn2616 = 0 for _, b := range yyq2616 { if b { yynn2616++ } } r.EncodeMapStart(yynn2616) yynn2616 = 0 } if yyr2616 || yy2arr2616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2616[0] { yym2618 := z.EncBinary() _ = yym2618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2616[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2619 := z.EncBinary() _ = yym2619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2616 || yy2arr2616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2616[1] { yym2621 := z.EncBinary() _ = yym2621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2616[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2622 := z.EncBinary() _ = yym2622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2616 || yy2arr2616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2616[2] { yy2624 := &x.ObjectMeta yy2624.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2616[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2625 := &x.ObjectMeta yy2625.CodecEncodeSelf(e) } } if yyr2616 || yy2arr2616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2616[3] { yy2627 := &x.Spec yy2627.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2616[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2628 := &x.Spec yy2628.CodecEncodeSelf(e) } } if yyr2616 || yy2arr2616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2616[4] { yy2630 := &x.Status yy2630.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2616[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2631 := &x.Status yy2631.CodecEncodeSelf(e) } } if yyr2616 || yy2arr2616 { 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 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 *Namespace) 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 "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 { yyv2637 := &x.ObjectMeta yyv2637.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2638 := &x.Spec yyv2638.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2639 := &x.Status yyv2639.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2634) } // end switch yys2634 } // end for yyj2634 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 yyj2640 int var yyb2640 bool var yyhl2640 bool = l >= 0 yyj2640++ if yyhl2640 { yyb2640 = yyj2640 > l } else { yyb2640 = r.CheckBreak() } if yyb2640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2640++ if yyhl2640 { yyb2640 = yyj2640 > l } else { yyb2640 = r.CheckBreak() } if yyb2640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2640++ if yyhl2640 { yyb2640 = yyj2640 > l } else { yyb2640 = r.CheckBreak() } if yyb2640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2643 := &x.ObjectMeta yyv2643.CodecDecodeSelf(d) } yyj2640++ if yyhl2640 { yyb2640 = yyj2640 > l } else { yyb2640 = r.CheckBreak() } if yyb2640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2644 := &x.Spec yyv2644.CodecDecodeSelf(d) } yyj2640++ if yyhl2640 { yyb2640 = yyj2640 > l } else { yyb2640 = r.CheckBreak() } if yyb2640 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2645 := &x.Status yyv2645.CodecDecodeSelf(d) } for { yyj2640++ if yyhl2640 { yyb2640 = yyj2640 > l } else { yyb2640 = r.CheckBreak() } if yyb2640 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2640-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 { yym2646 := z.EncBinary() _ = yym2646 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2647 := !z.EncBinary() yy2arr2647 := z.EncBasicHandle().StructToArray var yyq2647 [4]bool _, _, _ = yysep2647, yyq2647, yy2arr2647 const yyr2647 bool = false yyq2647[0] = x.Kind != "" yyq2647[1] = x.APIVersion != "" yyq2647[2] = true var yynn2647 int if yyr2647 || yy2arr2647 { r.EncodeArrayStart(4) } else { yynn2647 = 1 for _, b := range yyq2647 { if b { yynn2647++ } } r.EncodeMapStart(yynn2647) yynn2647 = 0 } if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2647[0] { yym2649 := z.EncBinary() _ = yym2649 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2647[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2650 := z.EncBinary() _ = yym2650 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2647[1] { yym2652 := z.EncBinary() _ = yym2652 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2647[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2653 := z.EncBinary() _ = yym2653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2647[2] { yy2655 := &x.ListMeta yym2656 := z.EncBinary() _ = yym2656 if false { } else if z.HasExtensions() && z.EncExt(yy2655) { } else { z.EncFallback(yy2655) } } else { r.EncodeNil() } } else { if yyq2647[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2657 := &x.ListMeta yym2658 := z.EncBinary() _ = yym2658 if false { } else if z.HasExtensions() && z.EncExt(yy2657) { } else { z.EncFallback(yy2657) } } } if yyr2647 || yy2arr2647 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2660 := z.EncBinary() _ = yym2660 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 { yym2661 := z.EncBinary() _ = yym2661 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr2647 || yy2arr2647 { 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 yym2662 := z.DecBinary() _ = yym2662 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2663 := r.ContainerType() if yyct2663 == codecSelferValueTypeMap1234 { yyl2663 := r.ReadMapStart() if yyl2663 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2663, d) } } else if yyct2663 == codecSelferValueTypeArray1234 { yyl2663 := r.ReadArrayStart() if yyl2663 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2663, 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 yys2664Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2664Slc var yyhl2664 bool = l >= 0 for yyj2664 := 0; ; yyj2664++ { if yyhl2664 { if yyj2664 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2664Slc = r.DecodeBytes(yys2664Slc, true, true) yys2664 := string(yys2664Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2664 { 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 { yyv2667 := &x.ListMeta yym2668 := z.DecBinary() _ = yym2668 if false { } else if z.HasExtensions() && z.DecExt(yyv2667) { } else { z.DecFallback(yyv2667, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2669 := &x.Items yym2670 := z.DecBinary() _ = yym2670 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2669), d) } } default: z.DecStructFieldNotFound(-1, yys2664) } // end switch yys2664 } // end for yyj2664 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 yyj2671 int var yyb2671 bool var yyhl2671 bool = l >= 0 yyj2671++ if yyhl2671 { yyb2671 = yyj2671 > l } else { yyb2671 = r.CheckBreak() } if yyb2671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2671++ if yyhl2671 { yyb2671 = yyj2671 > l } else { yyb2671 = r.CheckBreak() } if yyb2671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2671++ if yyhl2671 { yyb2671 = yyj2671 > l } else { yyb2671 = r.CheckBreak() } if yyb2671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2674 := &x.ListMeta yym2675 := z.DecBinary() _ = yym2675 if false { } else if z.HasExtensions() && z.DecExt(yyv2674) { } else { z.DecFallback(yyv2674, false) } } yyj2671++ if yyhl2671 { yyb2671 = yyj2671 > l } else { yyb2671 = r.CheckBreak() } if yyb2671 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2676 := &x.Items yym2677 := z.DecBinary() _ = yym2677 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2676), d) } } for { yyj2671++ if yyhl2671 { yyb2671 = yyj2671 > l } else { yyb2671 = r.CheckBreak() } if yyb2671 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2671-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 { yym2678 := z.EncBinary() _ = yym2678 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2679 := !z.EncBinary() yy2arr2679 := z.EncBasicHandle().StructToArray var yyq2679 [4]bool _, _, _ = yysep2679, yyq2679, yy2arr2679 const yyr2679 bool = false yyq2679[0] = x.Kind != "" yyq2679[1] = x.APIVersion != "" yyq2679[2] = true var yynn2679 int if yyr2679 || yy2arr2679 { r.EncodeArrayStart(4) } else { yynn2679 = 1 for _, b := range yyq2679 { if b { yynn2679++ } } r.EncodeMapStart(yynn2679) yynn2679 = 0 } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2679[0] { yym2681 := z.EncBinary() _ = yym2681 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2679[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2682 := z.EncBinary() _ = yym2682 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2679[1] { yym2684 := z.EncBinary() _ = yym2684 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2679[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2685 := z.EncBinary() _ = yym2685 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2679[2] { yy2687 := &x.ObjectMeta yy2687.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2679[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2688 := &x.ObjectMeta yy2688.CodecEncodeSelf(e) } } if yyr2679 || yy2arr2679 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2690 := &x.Target yy2690.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2691 := &x.Target yy2691.CodecEncodeSelf(e) } if yyr2679 || yy2arr2679 { 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 yym2692 := z.DecBinary() _ = yym2692 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2693 := r.ContainerType() if yyct2693 == codecSelferValueTypeMap1234 { yyl2693 := r.ReadMapStart() if yyl2693 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2693, d) } } else if yyct2693 == codecSelferValueTypeArray1234 { yyl2693 := r.ReadArrayStart() if yyl2693 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2693, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2694Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2694Slc var yyhl2694 bool = l >= 0 for yyj2694 := 0; ; yyj2694++ { if yyhl2694 { if yyj2694 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2694Slc = r.DecodeBytes(yys2694Slc, true, true) yys2694 := string(yys2694Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2694 { case "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 { yyv2697 := &x.ObjectMeta yyv2697.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2698 := &x.Target yyv2698.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2694) } // end switch yys2694 } // end for yyj2694 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 yyj2699 int var yyb2699 bool var yyhl2699 bool = l >= 0 yyj2699++ if yyhl2699 { yyb2699 = yyj2699 > l } else { yyb2699 = r.CheckBreak() } if yyb2699 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2699++ if yyhl2699 { yyb2699 = yyj2699 > l } else { yyb2699 = r.CheckBreak() } if yyb2699 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2699++ if yyhl2699 { yyb2699 = yyj2699 > l } else { yyb2699 = r.CheckBreak() } if yyb2699 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2702 := &x.ObjectMeta yyv2702.CodecDecodeSelf(d) } yyj2699++ if yyhl2699 { yyb2699 = yyj2699 > l } else { yyb2699 = r.CheckBreak() } if yyb2699 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2703 := &x.Target yyv2703.CodecDecodeSelf(d) } for { yyj2699++ if yyhl2699 { yyb2699 = yyj2699 > l } else { yyb2699 = r.CheckBreak() } if yyb2699 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2699-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 { yym2704 := z.EncBinary() _ = yym2704 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2705 := !z.EncBinary() yy2arr2705 := z.EncBasicHandle().StructToArray var yyq2705 [3]bool _, _, _ = yysep2705, yyq2705, yy2arr2705 const yyr2705 bool = false yyq2705[0] = x.Kind != "" yyq2705[1] = x.APIVersion != "" var yynn2705 int if yyr2705 || yy2arr2705 { r.EncodeArrayStart(3) } else { yynn2705 = 1 for _, b := range yyq2705 { if b { yynn2705++ } } r.EncodeMapStart(yynn2705) yynn2705 = 0 } if yyr2705 || yy2arr2705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2705[0] { yym2707 := z.EncBinary() _ = yym2707 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2705[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2708 := z.EncBinary() _ = yym2708 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2705 || yy2arr2705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2705[1] { yym2710 := z.EncBinary() _ = yym2710 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2705[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2711 := z.EncBinary() _ = yym2711 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2705 || yy2arr2705 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2713 := *x.GracePeriodSeconds yym2714 := z.EncBinary() _ = yym2714 if false { } else { r.EncodeInt(int64(yy2713)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2715 := *x.GracePeriodSeconds yym2716 := z.EncBinary() _ = yym2716 if false { } else { r.EncodeInt(int64(yy2715)) } } } if yyr2705 || yy2arr2705 { 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 yym2717 := z.DecBinary() _ = yym2717 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2718 := r.ContainerType() if yyct2718 == codecSelferValueTypeMap1234 { yyl2718 := r.ReadMapStart() if yyl2718 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2718, d) } } else if yyct2718 == codecSelferValueTypeArray1234 { yyl2718 := r.ReadArrayStart() if yyl2718 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2718, 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 yys2719Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2719Slc var yyhl2719 bool = l >= 0 for yyj2719 := 0; ; yyj2719++ { if yyhl2719 { if yyj2719 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2719Slc = r.DecodeBytes(yys2719Slc, true, true) yys2719 := string(yys2719Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2719 { 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) } yym2723 := z.DecBinary() _ = yym2723 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2719) } // end switch yys2719 } // end for yyj2719 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 yyj2724 int var yyb2724 bool var yyhl2724 bool = l >= 0 yyj2724++ if yyhl2724 { yyb2724 = yyj2724 > l } else { yyb2724 = r.CheckBreak() } if yyb2724 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2724++ if yyhl2724 { yyb2724 = yyj2724 > l } else { yyb2724 = r.CheckBreak() } if yyb2724 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2724++ if yyhl2724 { yyb2724 = yyj2724 > l } else { yyb2724 = r.CheckBreak() } if yyb2724 { 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) } yym2728 := z.DecBinary() _ = yym2728 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } for { yyj2724++ if yyhl2724 { yyb2724 = yyj2724 > l } else { yyb2724 = r.CheckBreak() } if yyb2724 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2724-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 { yym2729 := z.EncBinary() _ = yym2729 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2730 := !z.EncBinary() yy2arr2730 := z.EncBasicHandle().StructToArray var yyq2730 [4]bool _, _, _ = yysep2730, yyq2730, yy2arr2730 const yyr2730 bool = false yyq2730[0] = x.Kind != "" yyq2730[1] = x.APIVersion != "" var yynn2730 int if yyr2730 || yy2arr2730 { r.EncodeArrayStart(4) } else { yynn2730 = 2 for _, b := range yyq2730 { if b { yynn2730++ } } r.EncodeMapStart(yynn2730) yynn2730 = 0 } if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2730[0] { yym2732 := z.EncBinary() _ = yym2732 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2730[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2733 := z.EncBinary() _ = yym2733 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2730[1] { yym2735 := z.EncBinary() _ = yym2735 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2730[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2736 := z.EncBinary() _ = yym2736 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2738 := z.EncBinary() _ = yym2738 if false { } else { r.EncodeBool(bool(x.Export)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2739 := z.EncBinary() _ = yym2739 if false { } else { r.EncodeBool(bool(x.Export)) } } if yyr2730 || yy2arr2730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2741 := z.EncBinary() _ = yym2741 if false { } else { r.EncodeBool(bool(x.Exact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2742 := z.EncBinary() _ = yym2742 if false { } else { r.EncodeBool(bool(x.Exact)) } } if yyr2730 || yy2arr2730 { 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 yym2743 := z.DecBinary() _ = yym2743 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2744 := r.ContainerType() if yyct2744 == codecSelferValueTypeMap1234 { yyl2744 := r.ReadMapStart() if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2744, d) } } else if yyct2744 == codecSelferValueTypeArray1234 { yyl2744 := r.ReadArrayStart() if yyl2744 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2744, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2745Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2745Slc var yyhl2745 bool = l >= 0 for yyj2745 := 0; ; yyj2745++ { if yyhl2745 { if yyj2745 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2745Slc = r.DecodeBytes(yys2745Slc, true, true) yys2745 := string(yys2745Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2745 { case "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, yys2745) } // end switch yys2745 } // end for yyj2745 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 yyj2750 int var yyb2750 bool var yyhl2750 bool = l >= 0 yyj2750++ if yyhl2750 { yyb2750 = yyj2750 > l } else { yyb2750 = r.CheckBreak() } if yyb2750 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2750++ if yyhl2750 { yyb2750 = yyj2750 > l } else { yyb2750 = r.CheckBreak() } if yyb2750 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2750++ if yyhl2750 { yyb2750 = yyj2750 > l } else { yyb2750 = r.CheckBreak() } if yyb2750 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } yyj2750++ if yyhl2750 { yyb2750 = yyj2750 > l } else { yyb2750 = r.CheckBreak() } if yyb2750 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } for { yyj2750++ if yyhl2750 { yyb2750 = yyj2750 > l } else { yyb2750 = r.CheckBreak() } if yyb2750 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2750-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 { yym2755 := z.EncBinary() _ = yym2755 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2756 := !z.EncBinary() yy2arr2756 := z.EncBasicHandle().StructToArray var yyq2756 [7]bool _, _, _ = yysep2756, yyq2756, yy2arr2756 const yyr2756 bool = false yyq2756[0] = x.Kind != "" yyq2756[1] = x.APIVersion != "" var yynn2756 int if yyr2756 || yy2arr2756 { r.EncodeArrayStart(7) } else { yynn2756 = 5 for _, b := range yyq2756 { if b { yynn2756++ } } r.EncodeMapStart(yynn2756) yynn2756 = 0 } if yyr2756 || yy2arr2756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2756[0] { yym2758 := z.EncBinary() _ = yym2758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2756[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2759 := z.EncBinary() _ = yym2759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2756 || yy2arr2756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2756[1] { yym2761 := z.EncBinary() _ = yym2761 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2756[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2762 := z.EncBinary() _ = yym2762 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2756 || yy2arr2756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym2764 := z.EncBinary() _ = yym2764 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 { yym2765 := z.EncBinary() _ = yym2765 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } if yyr2756 || yy2arr2756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym2767 := z.EncBinary() _ = yym2767 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 { yym2768 := z.EncBinary() _ = yym2768 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } if yyr2756 || yy2arr2756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2770 := z.EncBinary() _ = yym2770 if false { } else { r.EncodeBool(bool(x.Watch)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2771 := z.EncBinary() _ = yym2771 if false { } else { r.EncodeBool(bool(x.Watch)) } } if yyr2756 || yy2arr2756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2773 := z.EncBinary() _ = yym2773 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) yym2774 := z.EncBinary() _ = yym2774 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } if yyr2756 || yy2arr2756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2776 := *x.TimeoutSeconds yym2777 := z.EncBinary() _ = yym2777 if false { } else { r.EncodeInt(int64(yy2776)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2778 := *x.TimeoutSeconds yym2779 := z.EncBinary() _ = yym2779 if false { } else { r.EncodeInt(int64(yy2778)) } } } if yyr2756 || yy2arr2756 { 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 yym2780 := z.DecBinary() _ = yym2780 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2781 := r.ContainerType() if yyct2781 == codecSelferValueTypeMap1234 { yyl2781 := r.ReadMapStart() if yyl2781 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2781, d) } } else if yyct2781 == codecSelferValueTypeArray1234 { yyl2781 := r.ReadArrayStart() if yyl2781 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2781, 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 yys2782Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2782Slc var yyhl2782 bool = l >= 0 for yyj2782 := 0; ; yyj2782++ { if yyhl2782 { if yyj2782 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2782Slc = r.DecodeBytes(yys2782Slc, true, true) yys2782 := string(yys2782Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2782 { 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 { yyv2785 := &x.LabelSelector yym2786 := z.DecBinary() _ = yym2786 if false { } else if z.HasExtensions() && z.DecExt(yyv2785) { } else { z.DecFallback(yyv2785, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2787 := &x.FieldSelector yym2788 := z.DecBinary() _ = yym2788 if false { } else if z.HasExtensions() && z.DecExt(yyv2787) { } else { z.DecFallback(yyv2787, 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) } yym2792 := z.DecBinary() _ = yym2792 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2782) } // end switch yys2782 } // end for yyj2782 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 yyj2793 int var yyb2793 bool var yyhl2793 bool = l >= 0 yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv2796 := &x.LabelSelector yym2797 := z.DecBinary() _ = yym2797 if false { } else if z.HasExtensions() && z.DecExt(yyv2796) { } else { z.DecFallback(yyv2796, true) } } yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2798 := &x.FieldSelector yym2799 := z.DecBinary() _ = yym2799 if false { } else if z.HasExtensions() && z.DecExt(yyv2798) { } else { z.DecFallback(yyv2798, true) } } yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { 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) } yym2803 := z.DecBinary() _ = yym2803 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { yyj2793++ if yyhl2793 { yyb2793 = yyj2793 > l } else { yyb2793 = r.CheckBreak() } if yyb2793 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2793-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 { yym2804 := z.EncBinary() _ = yym2804 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2805 := !z.EncBinary() yy2arr2805 := z.EncBasicHandle().StructToArray var yyq2805 [10]bool _, _, _ = yysep2805, yyq2805, yy2arr2805 const yyr2805 bool = false yyq2805[0] = x.Kind != "" yyq2805[1] = x.APIVersion != "" var yynn2805 int if yyr2805 || yy2arr2805 { r.EncodeArrayStart(10) } else { yynn2805 = 8 for _, b := range yyq2805 { if b { yynn2805++ } } r.EncodeMapStart(yynn2805) yynn2805 = 0 } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2805[0] { yym2807 := z.EncBinary() _ = yym2807 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2805[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2808 := z.EncBinary() _ = yym2808 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2805[1] { yym2810 := z.EncBinary() _ = yym2810 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2805[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2811 := z.EncBinary() _ = yym2811 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2813 := z.EncBinary() _ = yym2813 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) yym2814 := z.EncBinary() _ = yym2814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2816 := z.EncBinary() _ = yym2816 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2817 := z.EncBinary() _ = yym2817 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2819 := z.EncBinary() _ = yym2819 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2820 := z.EncBinary() _ = yym2820 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2822 := *x.SinceSeconds yym2823 := z.EncBinary() _ = yym2823 if false { } else { r.EncodeInt(int64(yy2822)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2824 := *x.SinceSeconds yym2825 := z.EncBinary() _ = yym2825 if false { } else { r.EncodeInt(int64(yy2824)) } } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym2827 := z.EncBinary() _ = yym2827 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2827 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2827 && 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 { yym2828 := z.EncBinary() _ = yym2828 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2828 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2828 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2830 := z.EncBinary() _ = yym2830 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2831 := z.EncBinary() _ = yym2831 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy2833 := *x.TailLines yym2834 := z.EncBinary() _ = yym2834 if false { } else { r.EncodeInt(int64(yy2833)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy2835 := *x.TailLines yym2836 := z.EncBinary() _ = yym2836 if false { } else { r.EncodeInt(int64(yy2835)) } } } if yyr2805 || yy2arr2805 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2838 := *x.LimitBytes yym2839 := z.EncBinary() _ = yym2839 if false { } else { r.EncodeInt(int64(yy2838)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2840 := *x.LimitBytes yym2841 := z.EncBinary() _ = yym2841 if false { } else { r.EncodeInt(int64(yy2840)) } } } if yyr2805 || yy2arr2805 { 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 yym2842 := z.DecBinary() _ = yym2842 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2843 := r.ContainerType() if yyct2843 == codecSelferValueTypeMap1234 { yyl2843 := r.ReadMapStart() if yyl2843 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2843, d) } } else if yyct2843 == codecSelferValueTypeArray1234 { yyl2843 := r.ReadArrayStart() if yyl2843 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2843, 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 yys2844Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2844Slc var yyhl2844 bool = l >= 0 for yyj2844 := 0; ; yyj2844++ { if yyhl2844 { if yyj2844 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2844Slc = r.DecodeBytes(yys2844Slc, true, true) yys2844 := string(yys2844Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2844 { 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) } yym2851 := z.DecBinary() _ = yym2851 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) } yym2853 := z.DecBinary() _ = yym2853 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2853 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2853 && 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) } yym2856 := z.DecBinary() _ = yym2856 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) } yym2858 := z.DecBinary() _ = yym2858 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2844) } // end switch yys2844 } // end for yyj2844 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 yyj2859 int var yyb2859 bool var yyhl2859 bool = l >= 0 yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { 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) } yym2866 := z.DecBinary() _ = yym2866 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { 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) } yym2868 := z.DecBinary() _ = yym2868 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2868 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2868 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { 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) } yym2871 := z.DecBinary() _ = yym2871 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { 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) } yym2873 := z.DecBinary() _ = yym2873 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { yyj2859++ if yyhl2859 { yyb2859 = yyj2859 > l } else { yyb2859 = r.CheckBreak() } if yyb2859 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2859-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 { yym2874 := z.EncBinary() _ = yym2874 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2875 := !z.EncBinary() yy2arr2875 := z.EncBasicHandle().StructToArray var yyq2875 [7]bool _, _, _ = yysep2875, yyq2875, yy2arr2875 const yyr2875 bool = false yyq2875[0] = x.Kind != "" yyq2875[1] = x.APIVersion != "" yyq2875[2] = x.Stdin != false yyq2875[3] = x.Stdout != false yyq2875[4] = x.Stderr != false yyq2875[5] = x.TTY != false yyq2875[6] = x.Container != "" var yynn2875 int if yyr2875 || yy2arr2875 { r.EncodeArrayStart(7) } else { yynn2875 = 0 for _, b := range yyq2875 { if b { yynn2875++ } } r.EncodeMapStart(yynn2875) yynn2875 = 0 } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[0] { yym2877 := z.EncBinary() _ = yym2877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2878 := z.EncBinary() _ = yym2878 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[1] { yym2880 := z.EncBinary() _ = yym2880 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2881 := z.EncBinary() _ = yym2881 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[2] { yym2883 := z.EncBinary() _ = yym2883 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq2875[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2884 := z.EncBinary() _ = yym2884 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[3] { yym2886 := z.EncBinary() _ = yym2886 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq2875[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2887 := z.EncBinary() _ = yym2887 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[4] { yym2889 := z.EncBinary() _ = yym2889 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq2875[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2890 := z.EncBinary() _ = yym2890 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[5] { yym2892 := z.EncBinary() _ = yym2892 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq2875[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2893 := z.EncBinary() _ = yym2893 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr2875 || yy2arr2875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2875[6] { yym2895 := z.EncBinary() _ = yym2895 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2875[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2896 := z.EncBinary() _ = yym2896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr2875 || yy2arr2875 { 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 yym2897 := z.DecBinary() _ = yym2897 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2898 := r.ContainerType() if yyct2898 == codecSelferValueTypeMap1234 { yyl2898 := r.ReadMapStart() if yyl2898 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2898, d) } } else if yyct2898 == codecSelferValueTypeArray1234 { yyl2898 := r.ReadArrayStart() if yyl2898 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2898, 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 yys2899Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2899Slc var yyhl2899 bool = l >= 0 for yyj2899 := 0; ; yyj2899++ { if yyhl2899 { if yyj2899 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2899Slc = r.DecodeBytes(yys2899Slc, true, true) yys2899 := string(yys2899Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2899 { 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, yys2899) } // end switch yys2899 } // end for yyj2899 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 yyj2907 int var yyb2907 bool var yyhl2907 bool = l >= 0 yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } for { yyj2907++ if yyhl2907 { yyb2907 = yyj2907 > l } else { yyb2907 = r.CheckBreak() } if yyb2907 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2907-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2915 := z.EncBinary() _ = yym2915 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2916 := !z.EncBinary() yy2arr2916 := z.EncBasicHandle().StructToArray var yyq2916 [8]bool _, _, _ = yysep2916, yyq2916, yy2arr2916 const yyr2916 bool = false yyq2916[0] = x.Kind != "" yyq2916[1] = x.APIVersion != "" var yynn2916 int if yyr2916 || yy2arr2916 { r.EncodeArrayStart(8) } else { yynn2916 = 6 for _, b := range yyq2916 { if b { yynn2916++ } } r.EncodeMapStart(yynn2916) yynn2916 = 0 } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2916[0] { yym2918 := z.EncBinary() _ = yym2918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2916[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2919 := z.EncBinary() _ = yym2919 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2916[1] { yym2921 := z.EncBinary() _ = yym2921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2916[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2922 := z.EncBinary() _ = yym2922 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2924 := z.EncBinary() _ = yym2924 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2925 := z.EncBinary() _ = yym2925 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2927 := z.EncBinary() _ = yym2927 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2928 := z.EncBinary() _ = yym2928 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2930 := z.EncBinary() _ = yym2930 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2931 := z.EncBinary() _ = yym2931 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2933 := z.EncBinary() _ = yym2933 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2934 := z.EncBinary() _ = yym2934 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2936 := z.EncBinary() _ = yym2936 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) yym2937 := z.EncBinary() _ = yym2937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2916 || yy2arr2916 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym2939 := z.EncBinary() _ = yym2939 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 { yym2940 := z.EncBinary() _ = yym2940 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr2916 || yy2arr2916 { 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 yym2941 := z.DecBinary() _ = yym2941 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2942 := r.ContainerType() if yyct2942 == codecSelferValueTypeMap1234 { yyl2942 := r.ReadMapStart() if yyl2942 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2942, d) } } else if yyct2942 == codecSelferValueTypeArray1234 { yyl2942 := r.ReadArrayStart() if yyl2942 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2942, 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 yys2943Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2943Slc var yyhl2943 bool = l >= 0 for yyj2943 := 0; ; yyj2943++ { if yyhl2943 { if yyj2943 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2943Slc = r.DecodeBytes(yys2943Slc, true, true) yys2943 := string(yys2943Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2943 { 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 { yyv2951 := &x.Command yym2952 := z.DecBinary() _ = yym2952 if false { } else { z.F.DecSliceStringX(yyv2951, false, d) } } default: z.DecStructFieldNotFound(-1, yys2943) } // end switch yys2943 } // end for yyj2943 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 yyj2953 int var yyb2953 bool var yyhl2953 bool = l >= 0 yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv2961 := &x.Command yym2962 := z.DecBinary() _ = yym2962 if false { } else { z.F.DecSliceStringX(yyv2961, false, d) } } for { yyj2953++ if yyhl2953 { yyb2953 = yyj2953 > l } else { yyb2953 = r.CheckBreak() } if yyb2953 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2953-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 { yym2963 := z.EncBinary() _ = yym2963 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2964 := !z.EncBinary() yy2arr2964 := z.EncBasicHandle().StructToArray var yyq2964 [3]bool _, _, _ = yysep2964, yyq2964, yy2arr2964 const yyr2964 bool = false yyq2964[0] = x.Kind != "" yyq2964[1] = x.APIVersion != "" var yynn2964 int if yyr2964 || yy2arr2964 { r.EncodeArrayStart(3) } else { yynn2964 = 1 for _, b := range yyq2964 { if b { yynn2964++ } } r.EncodeMapStart(yynn2964) yynn2964 = 0 } if yyr2964 || yy2arr2964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2964[0] { yym2966 := z.EncBinary() _ = yym2966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2964[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2967 := z.EncBinary() _ = yym2967 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2964 || yy2arr2964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2964[1] { yym2969 := z.EncBinary() _ = yym2969 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2964[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2970 := z.EncBinary() _ = yym2970 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2964 || yy2arr2964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2972 := z.EncBinary() _ = yym2972 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) yym2973 := z.EncBinary() _ = yym2973 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr2964 || yy2arr2964 { 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 yym2974 := z.DecBinary() _ = yym2974 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2975 := r.ContainerType() if yyct2975 == codecSelferValueTypeMap1234 { yyl2975 := r.ReadMapStart() if yyl2975 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2975, d) } } else if yyct2975 == codecSelferValueTypeArray1234 { yyl2975 := r.ReadArrayStart() if yyl2975 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2975, 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 yys2976Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2976Slc var yyhl2976 bool = l >= 0 for yyj2976 := 0; ; yyj2976++ { if yyhl2976 { if yyj2976 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2976Slc = r.DecodeBytes(yys2976Slc, true, true) yys2976 := string(yys2976Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2976 { 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, yys2976) } // end switch yys2976 } // end for yyj2976 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 yyj2980 int var yyb2980 bool var yyhl2980 bool = l >= 0 yyj2980++ if yyhl2980 { yyb2980 = yyj2980 > l } else { yyb2980 = r.CheckBreak() } if yyb2980 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2980++ if yyhl2980 { yyb2980 = yyj2980 > l } else { yyb2980 = r.CheckBreak() } if yyb2980 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2980++ if yyhl2980 { yyb2980 = yyj2980 > l } else { yyb2980 = r.CheckBreak() } if yyb2980 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj2980++ if yyhl2980 { yyb2980 = yyj2980 > l } else { yyb2980 = r.CheckBreak() } if yyb2980 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2980-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 { yym2984 := z.EncBinary() _ = yym2984 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2985 := !z.EncBinary() yy2arr2985 := z.EncBasicHandle().StructToArray var yyq2985 [7]bool _, _, _ = yysep2985, yyq2985, yy2arr2985 const yyr2985 bool = false yyq2985[0] = x.Kind != "" yyq2985[1] = x.Namespace != "" yyq2985[2] = x.Name != "" yyq2985[3] = x.UID != "" yyq2985[4] = x.APIVersion != "" yyq2985[5] = x.ResourceVersion != "" yyq2985[6] = x.FieldPath != "" var yynn2985 int if yyr2985 || yy2arr2985 { r.EncodeArrayStart(7) } else { yynn2985 = 0 for _, b := range yyq2985 { if b { yynn2985++ } } r.EncodeMapStart(yynn2985) yynn2985 = 0 } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[0] { yym2987 := z.EncBinary() _ = yym2987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2988 := z.EncBinary() _ = yym2988 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[1] { yym2990 := z.EncBinary() _ = yym2990 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2991 := z.EncBinary() _ = yym2991 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[2] { yym2993 := z.EncBinary() _ = yym2993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2994 := z.EncBinary() _ = yym2994 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[3] { yym2996 := z.EncBinary() _ = yym2996 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 yyq2985[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2997 := z.EncBinary() _ = yym2997 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[4] { yym2999 := z.EncBinary() _ = yym2999 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3000 := z.EncBinary() _ = yym3000 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[5] { yym3002 := z.EncBinary() _ = yym3002 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3003 := z.EncBinary() _ = yym3003 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr2985 || yy2arr2985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2985[6] { yym3005 := z.EncBinary() _ = yym3005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2985[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3006 := z.EncBinary() _ = yym3006 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr2985 || yy2arr2985 { 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 yym3007 := z.DecBinary() _ = yym3007 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3008 := r.ContainerType() if yyct3008 == codecSelferValueTypeMap1234 { yyl3008 := r.ReadMapStart() if yyl3008 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3008, d) } } else if yyct3008 == codecSelferValueTypeArray1234 { yyl3008 := r.ReadArrayStart() if yyl3008 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3008, 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 yys3009Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3009Slc var yyhl3009 bool = l >= 0 for yyj3009 := 0; ; yyj3009++ { if yyhl3009 { if yyj3009 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3009Slc = r.DecodeBytes(yys3009Slc, true, true) yys3009 := string(yys3009Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3009 { 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, yys3009) } // end switch yys3009 } // end for yyj3009 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 yyj3017 int var yyb3017 bool var yyhl3017 bool = l >= 0 yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj3017++ if yyhl3017 { yyb3017 = yyj3017 > l } else { yyb3017 = r.CheckBreak() } if yyb3017 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3017-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 { yym3025 := z.EncBinary() _ = yym3025 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3026 := !z.EncBinary() yy2arr3026 := z.EncBasicHandle().StructToArray var yyq3026 [1]bool _, _, _ = yysep3026, yyq3026, yy2arr3026 const yyr3026 bool = false var yynn3026 int if yyr3026 || yy2arr3026 { r.EncodeArrayStart(1) } else { yynn3026 = 1 for _, b := range yyq3026 { if b { yynn3026++ } } r.EncodeMapStart(yynn3026) yynn3026 = 0 } if yyr3026 || yy2arr3026 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3028 := z.EncBinary() _ = yym3028 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) yym3029 := z.EncBinary() _ = yym3029 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3026 || yy2arr3026 { 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 yym3030 := z.DecBinary() _ = yym3030 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3031 := r.ContainerType() if yyct3031 == codecSelferValueTypeMap1234 { yyl3031 := r.ReadMapStart() if yyl3031 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3031, d) } } else if yyct3031 == codecSelferValueTypeArray1234 { yyl3031 := r.ReadArrayStart() if yyl3031 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3031, 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 yys3032Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3032Slc var yyhl3032 bool = l >= 0 for yyj3032 := 0; ; yyj3032++ { if yyhl3032 { if yyj3032 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3032Slc = r.DecodeBytes(yys3032Slc, true, true) yys3032 := string(yys3032Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3032 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3032) } // end switch yys3032 } // end for yyj3032 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 yyj3034 int var yyb3034 bool var yyhl3034 bool = l >= 0 yyj3034++ if yyhl3034 { yyb3034 = yyj3034 > l } else { yyb3034 = r.CheckBreak() } if yyb3034 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj3034++ if yyhl3034 { yyb3034 = yyj3034 > l } else { yyb3034 = r.CheckBreak() } if yyb3034 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3034-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 { yym3036 := z.EncBinary() _ = yym3036 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3037 := !z.EncBinary() yy2arr3037 := z.EncBasicHandle().StructToArray var yyq3037 [3]bool _, _, _ = yysep3037, yyq3037, yy2arr3037 const yyr3037 bool = false yyq3037[0] = x.Kind != "" yyq3037[1] = x.APIVersion != "" yyq3037[2] = true var yynn3037 int if yyr3037 || yy2arr3037 { r.EncodeArrayStart(3) } else { yynn3037 = 0 for _, b := range yyq3037 { if b { yynn3037++ } } r.EncodeMapStart(yynn3037) yynn3037 = 0 } if yyr3037 || yy2arr3037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3037[0] { yym3039 := z.EncBinary() _ = yym3039 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3037[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3040 := z.EncBinary() _ = yym3040 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3037 || yy2arr3037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3037[1] { yym3042 := z.EncBinary() _ = yym3042 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3037[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3043 := z.EncBinary() _ = yym3043 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3037 || yy2arr3037 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3037[2] { yy3045 := &x.Reference yy3045.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3037[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3046 := &x.Reference yy3046.CodecEncodeSelf(e) } } if yyr3037 || yy2arr3037 { 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 yym3047 := z.DecBinary() _ = yym3047 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3048 := r.ContainerType() if yyct3048 == codecSelferValueTypeMap1234 { yyl3048 := r.ReadMapStart() if yyl3048 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3048, d) } } else if yyct3048 == codecSelferValueTypeArray1234 { yyl3048 := r.ReadArrayStart() if yyl3048 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3048, 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 yys3049Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3049Slc var yyhl3049 bool = l >= 0 for yyj3049 := 0; ; yyj3049++ { if yyhl3049 { if yyj3049 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3049Slc = r.DecodeBytes(yys3049Slc, true, true) yys3049 := string(yys3049Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3049 { 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 { yyv3052 := &x.Reference yyv3052.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3049) } // end switch yys3049 } // end for yyj3049 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 yyj3053 int var yyb3053 bool var yyhl3053 bool = l >= 0 yyj3053++ if yyhl3053 { yyb3053 = yyj3053 > l } else { yyb3053 = r.CheckBreak() } if yyb3053 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3053++ if yyhl3053 { yyb3053 = yyj3053 > l } else { yyb3053 = r.CheckBreak() } if yyb3053 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3053++ if yyhl3053 { yyb3053 = yyj3053 > l } else { yyb3053 = r.CheckBreak() } if yyb3053 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3056 := &x.Reference yyv3056.CodecDecodeSelf(d) } for { yyj3053++ if yyhl3053 { yyb3053 = yyj3053 > l } else { yyb3053 = r.CheckBreak() } if yyb3053 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3053-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 { yym3057 := z.EncBinary() _ = yym3057 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3058 := !z.EncBinary() yy2arr3058 := z.EncBasicHandle().StructToArray var yyq3058 [2]bool _, _, _ = yysep3058, yyq3058, yy2arr3058 const yyr3058 bool = false yyq3058[0] = x.Component != "" yyq3058[1] = x.Host != "" var yynn3058 int if yyr3058 || yy2arr3058 { r.EncodeArrayStart(2) } else { yynn3058 = 0 for _, b := range yyq3058 { if b { yynn3058++ } } r.EncodeMapStart(yynn3058) yynn3058 = 0 } if yyr3058 || yy2arr3058 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3058[0] { yym3060 := z.EncBinary() _ = yym3060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3058[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3061 := z.EncBinary() _ = yym3061 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr3058 || yy2arr3058 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3058[1] { yym3063 := z.EncBinary() _ = yym3063 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3058[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3064 := z.EncBinary() _ = yym3064 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr3058 || yy2arr3058 { 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 yym3065 := z.DecBinary() _ = yym3065 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3066 := r.ContainerType() if yyct3066 == codecSelferValueTypeMap1234 { yyl3066 := r.ReadMapStart() if yyl3066 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3066, d) } } else if yyct3066 == codecSelferValueTypeArray1234 { yyl3066 := r.ReadArrayStart() if yyl3066 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3066, 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 yys3067Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3067Slc var yyhl3067 bool = l >= 0 for yyj3067 := 0; ; yyj3067++ { if yyhl3067 { if yyj3067 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3067Slc = r.DecodeBytes(yys3067Slc, true, true) yys3067 := string(yys3067Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3067 { 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, yys3067) } // end switch yys3067 } // end for yyj3067 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 yyj3070 int var yyb3070 bool var yyhl3070 bool = l >= 0 yyj3070++ if yyhl3070 { yyb3070 = yyj3070 > l } else { yyb3070 = r.CheckBreak() } if yyb3070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj3070++ if yyhl3070 { yyb3070 = yyj3070 > l } else { yyb3070 = r.CheckBreak() } if yyb3070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj3070++ if yyhl3070 { yyb3070 = yyj3070 > l } else { yyb3070 = r.CheckBreak() } if yyb3070 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3070-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 { yym3073 := z.EncBinary() _ = yym3073 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3074 := !z.EncBinary() yy2arr3074 := z.EncBasicHandle().StructToArray var yyq3074 [11]bool _, _, _ = yysep3074, yyq3074, yy2arr3074 const yyr3074 bool = false yyq3074[0] = x.Kind != "" yyq3074[1] = x.APIVersion != "" yyq3074[2] = true yyq3074[3] = true yyq3074[4] = x.Reason != "" yyq3074[5] = x.Message != "" yyq3074[6] = true yyq3074[7] = true yyq3074[8] = true yyq3074[9] = x.Count != 0 yyq3074[10] = x.Type != "" var yynn3074 int if yyr3074 || yy2arr3074 { r.EncodeArrayStart(11) } else { yynn3074 = 0 for _, b := range yyq3074 { if b { yynn3074++ } } r.EncodeMapStart(yynn3074) yynn3074 = 0 } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[0] { yym3076 := z.EncBinary() _ = yym3076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3074[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3077 := z.EncBinary() _ = yym3077 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[1] { yym3079 := z.EncBinary() _ = yym3079 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3074[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3080 := z.EncBinary() _ = yym3080 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[2] { yy3082 := &x.ObjectMeta yy3082.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3074[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3083 := &x.ObjectMeta yy3083.CodecEncodeSelf(e) } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[3] { yy3085 := &x.InvolvedObject yy3085.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3074[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3086 := &x.InvolvedObject yy3086.CodecEncodeSelf(e) } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[4] { yym3088 := z.EncBinary() _ = yym3088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3074[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3089 := z.EncBinary() _ = yym3089 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[5] { yym3091 := z.EncBinary() _ = yym3091 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3074[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3092 := z.EncBinary() _ = yym3092 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[6] { yy3094 := &x.Source yy3094.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3074[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3095 := &x.Source yy3095.CodecEncodeSelf(e) } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[7] { yy3097 := &x.FirstTimestamp yym3098 := z.EncBinary() _ = yym3098 if false { } else if z.HasExtensions() && z.EncExt(yy3097) { } else if yym3098 { z.EncBinaryMarshal(yy3097) } else if !yym3098 && z.IsJSONHandle() { z.EncJSONMarshal(yy3097) } else { z.EncFallback(yy3097) } } else { r.EncodeNil() } } else { if yyq3074[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3099 := &x.FirstTimestamp yym3100 := z.EncBinary() _ = yym3100 if false { } else if z.HasExtensions() && z.EncExt(yy3099) { } else if yym3100 { z.EncBinaryMarshal(yy3099) } else if !yym3100 && z.IsJSONHandle() { z.EncJSONMarshal(yy3099) } else { z.EncFallback(yy3099) } } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[8] { yy3102 := &x.LastTimestamp yym3103 := z.EncBinary() _ = yym3103 if false { } else if z.HasExtensions() && z.EncExt(yy3102) { } else if yym3103 { z.EncBinaryMarshal(yy3102) } else if !yym3103 && z.IsJSONHandle() { z.EncJSONMarshal(yy3102) } else { z.EncFallback(yy3102) } } else { r.EncodeNil() } } else { if yyq3074[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3104 := &x.LastTimestamp yym3105 := z.EncBinary() _ = yym3105 if false { } else if z.HasExtensions() && z.EncExt(yy3104) { } else if yym3105 { z.EncBinaryMarshal(yy3104) } else if !yym3105 && z.IsJSONHandle() { z.EncJSONMarshal(yy3104) } else { z.EncFallback(yy3104) } } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[9] { yym3107 := z.EncBinary() _ = yym3107 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq3074[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3108 := z.EncBinary() _ = yym3108 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr3074 || yy2arr3074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3074[10] { yym3110 := z.EncBinary() _ = yym3110 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3074[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3111 := z.EncBinary() _ = yym3111 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3074 || yy2arr3074 { 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 yym3112 := z.DecBinary() _ = yym3112 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3113 := r.ContainerType() if yyct3113 == codecSelferValueTypeMap1234 { yyl3113 := r.ReadMapStart() if yyl3113 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3113, d) } } else if yyct3113 == codecSelferValueTypeArray1234 { yyl3113 := r.ReadArrayStart() if yyl3113 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3113, 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 yys3114Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3114Slc var yyhl3114 bool = l >= 0 for yyj3114 := 0; ; yyj3114++ { if yyhl3114 { if yyj3114 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3114Slc = r.DecodeBytes(yys3114Slc, true, true) yys3114 := string(yys3114Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3114 { 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 { yyv3117 := &x.ObjectMeta yyv3117.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3118 := &x.InvolvedObject yyv3118.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 { yyv3121 := &x.Source yyv3121.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3122 := &x.FirstTimestamp yym3123 := z.DecBinary() _ = yym3123 if false { } else if z.HasExtensions() && z.DecExt(yyv3122) { } else if yym3123 { z.DecBinaryUnmarshal(yyv3122) } else if !yym3123 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3122) } else { z.DecFallback(yyv3122, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3124 := &x.LastTimestamp yym3125 := z.DecBinary() _ = yym3125 if false { } else if z.HasExtensions() && z.DecExt(yyv3124) { } else if yym3125 { z.DecBinaryUnmarshal(yyv3124) } else if !yym3125 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3124) } else { z.DecFallback(yyv3124, 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, yys3114) } // end switch yys3114 } // end for yyj3114 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 yyj3128 int var yyb3128 bool var yyhl3128 bool = l >= 0 yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3131 := &x.ObjectMeta yyv3131.CodecDecodeSelf(d) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3132 := &x.InvolvedObject yyv3132.CodecDecodeSelf(d) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv3135 := &x.Source yyv3135.CodecDecodeSelf(d) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3136 := &x.FirstTimestamp yym3137 := z.DecBinary() _ = yym3137 if false { } else if z.HasExtensions() && z.DecExt(yyv3136) { } else if yym3137 { z.DecBinaryUnmarshal(yyv3136) } else if !yym3137 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3136) } else { z.DecFallback(yyv3136, false) } } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3138 := &x.LastTimestamp yym3139 := z.DecBinary() _ = yym3139 if false { } else if z.HasExtensions() && z.DecExt(yyv3138) { } else if yym3139 { z.DecBinaryUnmarshal(yyv3138) } else if !yym3139 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3138) } else { z.DecFallback(yyv3138, false) } } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int(r.DecodeInt(codecSelferBitsize1234)) } yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } for { yyj3128++ if yyhl3128 { yyb3128 = yyj3128 > l } else { yyb3128 = r.CheckBreak() } if yyb3128 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3128-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 { yym3142 := z.EncBinary() _ = yym3142 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3143 := !z.EncBinary() yy2arr3143 := z.EncBasicHandle().StructToArray var yyq3143 [4]bool _, _, _ = yysep3143, yyq3143, yy2arr3143 const yyr3143 bool = false yyq3143[0] = x.Kind != "" yyq3143[1] = x.APIVersion != "" yyq3143[2] = true var yynn3143 int if yyr3143 || yy2arr3143 { r.EncodeArrayStart(4) } else { yynn3143 = 1 for _, b := range yyq3143 { if b { yynn3143++ } } r.EncodeMapStart(yynn3143) yynn3143 = 0 } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[0] { yym3145 := z.EncBinary() _ = yym3145 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3143[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3146 := z.EncBinary() _ = yym3146 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[1] { yym3148 := z.EncBinary() _ = yym3148 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3143[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3149 := z.EncBinary() _ = yym3149 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3143[2] { yy3151 := &x.ListMeta yym3152 := z.EncBinary() _ = yym3152 if false { } else if z.HasExtensions() && z.EncExt(yy3151) { } else { z.EncFallback(yy3151) } } else { r.EncodeNil() } } else { if yyq3143[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3153 := &x.ListMeta yym3154 := z.EncBinary() _ = yym3154 if false { } else if z.HasExtensions() && z.EncExt(yy3153) { } else { z.EncFallback(yy3153) } } } if yyr3143 || yy2arr3143 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3156 := z.EncBinary() _ = yym3156 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 { yym3157 := z.EncBinary() _ = yym3157 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr3143 || yy2arr3143 { 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 yym3158 := z.DecBinary() _ = yym3158 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3159 := r.ContainerType() if yyct3159 == codecSelferValueTypeMap1234 { yyl3159 := r.ReadMapStart() if yyl3159 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3159, d) } } else if yyct3159 == codecSelferValueTypeArray1234 { yyl3159 := r.ReadArrayStart() if yyl3159 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3159, 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 yys3160Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3160Slc var yyhl3160 bool = l >= 0 for yyj3160 := 0; ; yyj3160++ { if yyhl3160 { if yyj3160 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3160Slc = r.DecodeBytes(yys3160Slc, true, true) yys3160 := string(yys3160Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3160 { 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 { yyv3163 := &x.ListMeta yym3164 := z.DecBinary() _ = yym3164 if false { } else if z.HasExtensions() && z.DecExt(yyv3163) { } else { z.DecFallback(yyv3163, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3165 := &x.Items yym3166 := z.DecBinary() _ = yym3166 if false { } else { h.decSliceEvent((*[]Event)(yyv3165), d) } } default: z.DecStructFieldNotFound(-1, yys3160) } // end switch yys3160 } // end for yyj3160 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 yyj3167 int var yyb3167 bool var yyhl3167 bool = l >= 0 yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3170 := &x.ListMeta yym3171 := z.DecBinary() _ = yym3171 if false { } else if z.HasExtensions() && z.DecExt(yyv3170) { } else { z.DecFallback(yyv3170, false) } } yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3172 := &x.Items yym3173 := z.DecBinary() _ = yym3173 if false { } else { h.decSliceEvent((*[]Event)(yyv3172), d) } } for { yyj3167++ if yyhl3167 { yyb3167 = yyj3167 > l } else { yyb3167 = r.CheckBreak() } if yyb3167 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3167-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *List) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3174 := z.EncBinary() _ = yym3174 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3175 := !z.EncBinary() yy2arr3175 := z.EncBasicHandle().StructToArray var yyq3175 [4]bool _, _, _ = yysep3175, yyq3175, yy2arr3175 const yyr3175 bool = false yyq3175[0] = x.Kind != "" yyq3175[1] = x.APIVersion != "" yyq3175[2] = true var yynn3175 int if yyr3175 || yy2arr3175 { r.EncodeArrayStart(4) } else { yynn3175 = 1 for _, b := range yyq3175 { if b { yynn3175++ } } r.EncodeMapStart(yynn3175) yynn3175 = 0 } if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3175[0] { yym3177 := z.EncBinary() _ = yym3177 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3175[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3178 := z.EncBinary() _ = yym3178 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3175[1] { yym3180 := z.EncBinary() _ = yym3180 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3175[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3181 := z.EncBinary() _ = yym3181 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3175[2] { yy3183 := &x.ListMeta yym3184 := z.EncBinary() _ = yym3184 if false { } else if z.HasExtensions() && z.EncExt(yy3183) { } else { z.EncFallback(yy3183) } } else { r.EncodeNil() } } else { if yyq3175[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3185 := &x.ListMeta yym3186 := z.EncBinary() _ = yym3186 if false { } else if z.HasExtensions() && z.EncExt(yy3185) { } else { z.EncFallback(yy3185) } } } if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3188 := z.EncBinary() _ = yym3188 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 { yym3189 := z.EncBinary() _ = yym3189 if false { } else { h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e) } } } if yyr3175 || yy2arr3175 { 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 yym3190 := z.DecBinary() _ = yym3190 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3191 := r.ContainerType() if yyct3191 == codecSelferValueTypeMap1234 { yyl3191 := r.ReadMapStart() if yyl3191 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3191, d) } } else if yyct3191 == codecSelferValueTypeArray1234 { yyl3191 := r.ReadArrayStart() if yyl3191 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3191, 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 yys3192Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3192Slc var yyhl3192 bool = l >= 0 for yyj3192 := 0; ; yyj3192++ { if yyhl3192 { if yyj3192 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3192Slc = r.DecodeBytes(yys3192Slc, true, true) yys3192 := string(yys3192Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3192 { 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 { yyv3195 := &x.ListMeta yym3196 := z.DecBinary() _ = yym3196 if false { } else if z.HasExtensions() && z.DecExt(yyv3195) { } else { z.DecFallback(yyv3195, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3197 := &x.Items yym3198 := z.DecBinary() _ = yym3198 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3197), d) } } default: z.DecStructFieldNotFound(-1, yys3192) } // end switch yys3192 } // end for yyj3192 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 yyj3199 int var yyb3199 bool var yyhl3199 bool = l >= 0 yyj3199++ if yyhl3199 { yyb3199 = yyj3199 > l } else { yyb3199 = r.CheckBreak() } if yyb3199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3199++ if yyhl3199 { yyb3199 = yyj3199 > l } else { yyb3199 = r.CheckBreak() } if yyb3199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3199++ if yyhl3199 { yyb3199 = yyj3199 > l } else { yyb3199 = r.CheckBreak() } if yyb3199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3202 := &x.ListMeta yym3203 := z.DecBinary() _ = yym3203 if false { } else if z.HasExtensions() && z.DecExt(yyv3202) { } else { z.DecFallback(yyv3202, false) } } yyj3199++ if yyhl3199 { yyb3199 = yyj3199 > l } else { yyb3199 = r.CheckBreak() } if yyb3199 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3204 := &x.Items yym3205 := z.DecBinary() _ = yym3205 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3204), d) } } for { yyj3199++ if yyhl3199 { yyb3199 = yyj3199 > l } else { yyb3199 = r.CheckBreak() } if yyb3199 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3199-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3206 := z.EncBinary() _ = yym3206 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 yym3207 := z.DecBinary() _ = yym3207 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 { yym3208 := z.EncBinary() _ = yym3208 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3209 := !z.EncBinary() yy2arr3209 := z.EncBasicHandle().StructToArray var yyq3209 [6]bool _, _, _ = yysep3209, yyq3209, yy2arr3209 const yyr3209 bool = false yyq3209[0] = x.Type != "" yyq3209[1] = len(x.Max) != 0 yyq3209[2] = len(x.Min) != 0 yyq3209[3] = len(x.Default) != 0 yyq3209[4] = len(x.DefaultRequest) != 0 yyq3209[5] = len(x.MaxLimitRequestRatio) != 0 var yynn3209 int if yyr3209 || yy2arr3209 { r.EncodeArrayStart(6) } else { yynn3209 = 0 for _, b := range yyq3209 { if b { yynn3209++ } } r.EncodeMapStart(yynn3209) yynn3209 = 0 } if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3209[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3209[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3209[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3209[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 yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3209[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3209[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 yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3209[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3209[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 yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3209[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3209[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 yyr3209 || yy2arr3209 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3209[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3209[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 yyr3209 || yy2arr3209 { 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 yym3216 := z.DecBinary() _ = yym3216 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3217 := r.ContainerType() if yyct3217 == codecSelferValueTypeMap1234 { yyl3217 := r.ReadMapStart() if yyl3217 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3217, d) } } else if yyct3217 == codecSelferValueTypeArray1234 { yyl3217 := r.ReadArrayStart() if yyl3217 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3217, 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 yys3218Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3218Slc var yyhl3218 bool = l >= 0 for yyj3218 := 0; ; yyj3218++ { if yyhl3218 { if yyj3218 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3218Slc = r.DecodeBytes(yys3218Slc, true, true) yys3218 := string(yys3218Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3218 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv3220 := &x.Max yyv3220.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv3221 := &x.Min yyv3221.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv3222 := &x.Default yyv3222.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3223 := &x.DefaultRequest yyv3223.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3224 := &x.MaxLimitRequestRatio yyv3224.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3218) } // end switch yys3218 } // end for yyj3218 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 yyj3225 int var yyb3225 bool var yyhl3225 bool = l >= 0 yyj3225++ if yyhl3225 { yyb3225 = yyj3225 > l } else { yyb3225 = r.CheckBreak() } if yyb3225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj3225++ if yyhl3225 { yyb3225 = yyj3225 > l } else { yyb3225 = r.CheckBreak() } if yyb3225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv3227 := &x.Max yyv3227.CodecDecodeSelf(d) } yyj3225++ if yyhl3225 { yyb3225 = yyj3225 > l } else { yyb3225 = r.CheckBreak() } if yyb3225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv3228 := &x.Min yyv3228.CodecDecodeSelf(d) } yyj3225++ if yyhl3225 { yyb3225 = yyj3225 > l } else { yyb3225 = r.CheckBreak() } if yyb3225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv3229 := &x.Default yyv3229.CodecDecodeSelf(d) } yyj3225++ if yyhl3225 { yyb3225 = yyj3225 > l } else { yyb3225 = r.CheckBreak() } if yyb3225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3230 := &x.DefaultRequest yyv3230.CodecDecodeSelf(d) } yyj3225++ if yyhl3225 { yyb3225 = yyj3225 > l } else { yyb3225 = r.CheckBreak() } if yyb3225 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3231 := &x.MaxLimitRequestRatio yyv3231.CodecDecodeSelf(d) } for { yyj3225++ if yyhl3225 { yyb3225 = yyj3225 > l } else { yyb3225 = r.CheckBreak() } if yyb3225 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3225-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 { yym3232 := z.EncBinary() _ = yym3232 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3233 := !z.EncBinary() yy2arr3233 := z.EncBasicHandle().StructToArray var yyq3233 [1]bool _, _, _ = yysep3233, yyq3233, yy2arr3233 const yyr3233 bool = false var yynn3233 int if yyr3233 || yy2arr3233 { r.EncodeArrayStart(1) } else { yynn3233 = 1 for _, b := range yyq3233 { if b { yynn3233++ } } r.EncodeMapStart(yynn3233) yynn3233 = 0 } if yyr3233 || yy2arr3233 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym3235 := z.EncBinary() _ = yym3235 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 { yym3236 := z.EncBinary() _ = yym3236 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr3233 || yy2arr3233 { 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 yym3237 := z.DecBinary() _ = yym3237 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3238 := r.ContainerType() if yyct3238 == codecSelferValueTypeMap1234 { yyl3238 := r.ReadMapStart() if yyl3238 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3238, d) } } else if yyct3238 == codecSelferValueTypeArray1234 { yyl3238 := r.ReadArrayStart() if yyl3238 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3238, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LimitRangeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3239Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3239Slc var yyhl3239 bool = l >= 0 for yyj3239 := 0; ; yyj3239++ { if yyhl3239 { if yyj3239 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3239Slc = r.DecodeBytes(yys3239Slc, true, true) yys3239 := string(yys3239Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3239 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3240 := &x.Limits yym3241 := z.DecBinary() _ = yym3241 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3240), d) } } default: z.DecStructFieldNotFound(-1, yys3239) } // end switch yys3239 } // end for yyj3239 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 yyj3242 int var yyb3242 bool var yyhl3242 bool = l >= 0 yyj3242++ if yyhl3242 { yyb3242 = yyj3242 > l } else { yyb3242 = r.CheckBreak() } if yyb3242 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3243 := &x.Limits yym3244 := z.DecBinary() _ = yym3244 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3243), d) } } for { yyj3242++ if yyhl3242 { yyb3242 = yyj3242 > l } else { yyb3242 = r.CheckBreak() } if yyb3242 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3242-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 { yym3245 := z.EncBinary() _ = yym3245 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3246 := !z.EncBinary() yy2arr3246 := z.EncBasicHandle().StructToArray var yyq3246 [4]bool _, _, _ = yysep3246, yyq3246, yy2arr3246 const yyr3246 bool = false yyq3246[0] = x.Kind != "" yyq3246[1] = x.APIVersion != "" yyq3246[2] = true yyq3246[3] = true var yynn3246 int if yyr3246 || yy2arr3246 { r.EncodeArrayStart(4) } else { yynn3246 = 0 for _, b := range yyq3246 { if b { yynn3246++ } } r.EncodeMapStart(yynn3246) yynn3246 = 0 } if yyr3246 || yy2arr3246 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3246[0] { yym3248 := z.EncBinary() _ = yym3248 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3246[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3249 := z.EncBinary() _ = yym3249 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3246 || yy2arr3246 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3246[1] { yym3251 := z.EncBinary() _ = yym3251 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3246[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3252 := z.EncBinary() _ = yym3252 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3246 || yy2arr3246 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3246[2] { yy3254 := &x.ObjectMeta yy3254.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3246[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3255 := &x.ObjectMeta yy3255.CodecEncodeSelf(e) } } if yyr3246 || yy2arr3246 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3246[3] { yy3257 := &x.Spec yy3257.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3246[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3258 := &x.Spec yy3258.CodecEncodeSelf(e) } } if yyr3246 || yy2arr3246 { 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 yym3259 := z.DecBinary() _ = yym3259 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3260 := r.ContainerType() if yyct3260 == codecSelferValueTypeMap1234 { yyl3260 := r.ReadMapStart() if yyl3260 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3260, d) } } else if yyct3260 == codecSelferValueTypeArray1234 { yyl3260 := r.ReadArrayStart() if yyl3260 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3260, 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 yys3261Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3261Slc var yyhl3261 bool = l >= 0 for yyj3261 := 0; ; yyj3261++ { if yyhl3261 { if yyj3261 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3261Slc = r.DecodeBytes(yys3261Slc, true, true) yys3261 := string(yys3261Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3261 { 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 { yyv3264 := &x.ObjectMeta yyv3264.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3265 := &x.Spec yyv3265.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3261) } // end switch yys3261 } // end for yyj3261 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 yyj3266 int var yyb3266 bool var yyhl3266 bool = l >= 0 yyj3266++ if yyhl3266 { yyb3266 = yyj3266 > l } else { yyb3266 = r.CheckBreak() } if yyb3266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3266++ if yyhl3266 { yyb3266 = yyj3266 > l } else { yyb3266 = r.CheckBreak() } if yyb3266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3266++ if yyhl3266 { yyb3266 = yyj3266 > l } else { yyb3266 = r.CheckBreak() } if yyb3266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3269 := &x.ObjectMeta yyv3269.CodecDecodeSelf(d) } yyj3266++ if yyhl3266 { yyb3266 = yyj3266 > l } else { yyb3266 = r.CheckBreak() } if yyb3266 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3270 := &x.Spec yyv3270.CodecDecodeSelf(d) } for { yyj3266++ if yyhl3266 { yyb3266 = yyj3266 > l } else { yyb3266 = r.CheckBreak() } if yyb3266 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3266-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 { yym3271 := z.EncBinary() _ = yym3271 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3272 := !z.EncBinary() yy2arr3272 := z.EncBasicHandle().StructToArray var yyq3272 [4]bool _, _, _ = yysep3272, yyq3272, yy2arr3272 const yyr3272 bool = false yyq3272[0] = x.Kind != "" yyq3272[1] = x.APIVersion != "" yyq3272[2] = true var yynn3272 int if yyr3272 || yy2arr3272 { r.EncodeArrayStart(4) } else { yynn3272 = 1 for _, b := range yyq3272 { if b { yynn3272++ } } r.EncodeMapStart(yynn3272) yynn3272 = 0 } if yyr3272 || yy2arr3272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3272[0] { yym3274 := z.EncBinary() _ = yym3274 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3272[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3275 := z.EncBinary() _ = yym3275 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3272 || yy2arr3272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3272[1] { yym3277 := z.EncBinary() _ = yym3277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3272[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3278 := z.EncBinary() _ = yym3278 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3272 || yy2arr3272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3272[2] { yy3280 := &x.ListMeta yym3281 := z.EncBinary() _ = yym3281 if false { } else if z.HasExtensions() && z.EncExt(yy3280) { } else { z.EncFallback(yy3280) } } else { r.EncodeNil() } } else { if yyq3272[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3282 := &x.ListMeta yym3283 := z.EncBinary() _ = yym3283 if false { } else if z.HasExtensions() && z.EncExt(yy3282) { } else { z.EncFallback(yy3282) } } } if yyr3272 || yy2arr3272 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3285 := z.EncBinary() _ = yym3285 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 { yym3286 := z.EncBinary() _ = yym3286 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr3272 || yy2arr3272 { 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 yym3287 := z.DecBinary() _ = yym3287 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3288 := r.ContainerType() if yyct3288 == codecSelferValueTypeMap1234 { yyl3288 := r.ReadMapStart() if yyl3288 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3288, d) } } else if yyct3288 == codecSelferValueTypeArray1234 { yyl3288 := r.ReadArrayStart() if yyl3288 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3288, 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 yys3289Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3289Slc var yyhl3289 bool = l >= 0 for yyj3289 := 0; ; yyj3289++ { if yyhl3289 { if yyj3289 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3289Slc = r.DecodeBytes(yys3289Slc, true, true) yys3289 := string(yys3289Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3289 { 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 { yyv3292 := &x.ListMeta yym3293 := z.DecBinary() _ = yym3293 if false { } else if z.HasExtensions() && z.DecExt(yyv3292) { } else { z.DecFallback(yyv3292, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3294 := &x.Items yym3295 := z.DecBinary() _ = yym3295 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3294), d) } } default: z.DecStructFieldNotFound(-1, yys3289) } // end switch yys3289 } // end for yyj3289 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 yyj3296 int var yyb3296 bool var yyhl3296 bool = l >= 0 yyj3296++ if yyhl3296 { yyb3296 = yyj3296 > l } else { yyb3296 = r.CheckBreak() } if yyb3296 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3296++ if yyhl3296 { yyb3296 = yyj3296 > l } else { yyb3296 = r.CheckBreak() } if yyb3296 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3296++ if yyhl3296 { yyb3296 = yyj3296 > l } else { yyb3296 = r.CheckBreak() } if yyb3296 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3299 := &x.ListMeta yym3300 := z.DecBinary() _ = yym3300 if false { } else if z.HasExtensions() && z.DecExt(yyv3299) { } else { z.DecFallback(yyv3299, false) } } yyj3296++ if yyhl3296 { yyb3296 = yyj3296 > l } else { yyb3296 = r.CheckBreak() } if yyb3296 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3301 := &x.Items yym3302 := z.DecBinary() _ = yym3302 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3301), d) } } for { yyj3296++ if yyhl3296 { yyb3296 = yyj3296 > l } else { yyb3296 = r.CheckBreak() } if yyb3296 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3296-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 { yym3303 := z.EncBinary() _ = yym3303 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3304 := !z.EncBinary() yy2arr3304 := z.EncBasicHandle().StructToArray var yyq3304 [1]bool _, _, _ = yysep3304, yyq3304, yy2arr3304 const yyr3304 bool = false yyq3304[0] = len(x.Hard) != 0 var yynn3304 int if yyr3304 || yy2arr3304 { r.EncodeArrayStart(1) } else { yynn3304 = 0 for _, b := range yyq3304 { if b { yynn3304++ } } r.EncodeMapStart(yynn3304) yynn3304 = 0 } if yyr3304 || yy2arr3304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3304[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3304[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 yyr3304 || yy2arr3304 { 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 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 *ResourceQuotaSpec) 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 "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3309 := &x.Hard yyv3309.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3308) } // end switch yys3308 } // end for yyj3308 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 yyj3310 int var yyb3310 bool var yyhl3310 bool = l >= 0 yyj3310++ if yyhl3310 { yyb3310 = yyj3310 > l } else { yyb3310 = r.CheckBreak() } if yyb3310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3311 := &x.Hard yyv3311.CodecDecodeSelf(d) } for { yyj3310++ if yyhl3310 { yyb3310 = yyj3310 > l } else { yyb3310 = r.CheckBreak() } if yyb3310 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3310-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 { yym3312 := z.EncBinary() _ = yym3312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3313 := !z.EncBinary() yy2arr3313 := z.EncBasicHandle().StructToArray var yyq3313 [2]bool _, _, _ = yysep3313, yyq3313, yy2arr3313 const yyr3313 bool = false yyq3313[0] = len(x.Hard) != 0 yyq3313[1] = len(x.Used) != 0 var yynn3313 int if yyr3313 || yy2arr3313 { r.EncodeArrayStart(2) } else { yynn3313 = 0 for _, b := range yyq3313 { if b { yynn3313++ } } r.EncodeMapStart(yynn3313) yynn3313 = 0 } if yyr3313 || yy2arr3313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3313[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3313[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 yyr3313 || yy2arr3313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3313[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3313[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 yyr3313 || yy2arr3313 { 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 yym3316 := z.DecBinary() _ = yym3316 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3317 := r.ContainerType() if yyct3317 == codecSelferValueTypeMap1234 { yyl3317 := r.ReadMapStart() if yyl3317 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3317, d) } } else if yyct3317 == codecSelferValueTypeArray1234 { yyl3317 := r.ReadArrayStart() if yyl3317 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3317, 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 yys3318Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3318Slc var yyhl3318 bool = l >= 0 for yyj3318 := 0; ; yyj3318++ { if yyhl3318 { if yyj3318 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3318Slc = r.DecodeBytes(yys3318Slc, true, true) yys3318 := string(yys3318Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3318 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3319 := &x.Hard yyv3319.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv3320 := &x.Used yyv3320.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3318) } // end switch yys3318 } // end for yyj3318 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 yyj3321 int var yyb3321 bool var yyhl3321 bool = l >= 0 yyj3321++ if yyhl3321 { yyb3321 = yyj3321 > l } else { yyb3321 = r.CheckBreak() } if yyb3321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3322 := &x.Hard yyv3322.CodecDecodeSelf(d) } yyj3321++ if yyhl3321 { yyb3321 = yyj3321 > l } else { yyb3321 = r.CheckBreak() } if yyb3321 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv3323 := &x.Used yyv3323.CodecDecodeSelf(d) } for { yyj3321++ if yyhl3321 { yyb3321 = yyj3321 > l } else { yyb3321 = r.CheckBreak() } if yyb3321 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3321-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 { yym3324 := z.EncBinary() _ = yym3324 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3325 := !z.EncBinary() yy2arr3325 := z.EncBasicHandle().StructToArray var yyq3325 [5]bool _, _, _ = yysep3325, yyq3325, yy2arr3325 const yyr3325 bool = false yyq3325[0] = x.Kind != "" yyq3325[1] = x.APIVersion != "" yyq3325[2] = true yyq3325[3] = true yyq3325[4] = true var yynn3325 int if yyr3325 || yy2arr3325 { r.EncodeArrayStart(5) } 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] { yym3327 := z.EncBinary() _ = yym3327 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3325[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3328 := z.EncBinary() _ = yym3328 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[1] { yym3330 := z.EncBinary() _ = yym3330 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3325[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3331 := z.EncBinary() _ = yym3331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[2] { yy3333 := &x.ObjectMeta yy3333.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3325[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3334 := &x.ObjectMeta yy3334.CodecEncodeSelf(e) } } if yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[3] { yy3336 := &x.Spec yy3336.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3325[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3337 := &x.Spec yy3337.CodecEncodeSelf(e) } } if yyr3325 || yy2arr3325 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3325[4] { yy3339 := &x.Status yy3339.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3325[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3340 := &x.Status yy3340.CodecEncodeSelf(e) } } if yyr3325 || yy2arr3325 { 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 yym3341 := z.DecBinary() _ = yym3341 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3342 := r.ContainerType() if yyct3342 == codecSelferValueTypeMap1234 { yyl3342 := r.ReadMapStart() if yyl3342 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3342, d) } } else if yyct3342 == codecSelferValueTypeArray1234 { yyl3342 := r.ReadArrayStart() if yyl3342 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3342, 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 yys3343Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3343Slc var yyhl3343 bool = l >= 0 for yyj3343 := 0; ; yyj3343++ { if yyhl3343 { if yyj3343 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3343Slc = r.DecodeBytes(yys3343Slc, true, true) yys3343 := string(yys3343Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3343 { 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 { yyv3346 := &x.ObjectMeta yyv3346.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3347 := &x.Spec yyv3347.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3348 := &x.Status yyv3348.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3343) } // end switch yys3343 } // end for yyj3343 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 yyj3349 int var yyb3349 bool var yyhl3349 bool = l >= 0 yyj3349++ if yyhl3349 { yyb3349 = yyj3349 > l } else { yyb3349 = r.CheckBreak() } if yyb3349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3349++ if yyhl3349 { yyb3349 = yyj3349 > l } else { yyb3349 = r.CheckBreak() } if yyb3349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3349++ if yyhl3349 { yyb3349 = yyj3349 > l } else { yyb3349 = r.CheckBreak() } if yyb3349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3352 := &x.ObjectMeta yyv3352.CodecDecodeSelf(d) } yyj3349++ if yyhl3349 { yyb3349 = yyj3349 > l } else { yyb3349 = r.CheckBreak() } if yyb3349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3353 := &x.Spec yyv3353.CodecDecodeSelf(d) } yyj3349++ if yyhl3349 { yyb3349 = yyj3349 > l } else { yyb3349 = r.CheckBreak() } if yyb3349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3354 := &x.Status yyv3354.CodecDecodeSelf(d) } for { yyj3349++ if yyhl3349 { yyb3349 = yyj3349 > l } else { yyb3349 = r.CheckBreak() } if yyb3349 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3349-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 { yym3355 := z.EncBinary() _ = yym3355 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3356 := !z.EncBinary() yy2arr3356 := z.EncBasicHandle().StructToArray var yyq3356 [4]bool _, _, _ = yysep3356, yyq3356, yy2arr3356 const yyr3356 bool = false yyq3356[0] = x.Kind != "" yyq3356[1] = x.APIVersion != "" yyq3356[2] = true var yynn3356 int if yyr3356 || yy2arr3356 { r.EncodeArrayStart(4) } else { yynn3356 = 1 for _, b := range yyq3356 { if b { yynn3356++ } } r.EncodeMapStart(yynn3356) yynn3356 = 0 } if yyr3356 || yy2arr3356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3356[0] { yym3358 := z.EncBinary() _ = yym3358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3356[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3359 := z.EncBinary() _ = yym3359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3356 || yy2arr3356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3356[1] { yym3361 := z.EncBinary() _ = yym3361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3356[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3362 := z.EncBinary() _ = yym3362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3356 || yy2arr3356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3356[2] { yy3364 := &x.ListMeta yym3365 := z.EncBinary() _ = yym3365 if false { } else if z.HasExtensions() && z.EncExt(yy3364) { } else { z.EncFallback(yy3364) } } else { r.EncodeNil() } } else { if yyq3356[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3366 := &x.ListMeta yym3367 := z.EncBinary() _ = yym3367 if false { } else if z.HasExtensions() && z.EncExt(yy3366) { } else { z.EncFallback(yy3366) } } } if yyr3356 || yy2arr3356 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3369 := z.EncBinary() _ = yym3369 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 { yym3370 := z.EncBinary() _ = yym3370 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr3356 || yy2arr3356 { 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 yym3371 := z.DecBinary() _ = yym3371 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3372 := r.ContainerType() if yyct3372 == codecSelferValueTypeMap1234 { yyl3372 := r.ReadMapStart() if yyl3372 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3372, d) } } else if yyct3372 == codecSelferValueTypeArray1234 { yyl3372 := r.ReadArrayStart() if yyl3372 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3372, 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 yys3373Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3373Slc var yyhl3373 bool = l >= 0 for yyj3373 := 0; ; yyj3373++ { if yyhl3373 { if yyj3373 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3373Slc = r.DecodeBytes(yys3373Slc, true, true) yys3373 := string(yys3373Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3373 { 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 { yyv3376 := &x.ListMeta yym3377 := z.DecBinary() _ = yym3377 if false { } else if z.HasExtensions() && z.DecExt(yyv3376) { } else { z.DecFallback(yyv3376, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3378 := &x.Items yym3379 := z.DecBinary() _ = yym3379 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3378), d) } } default: z.DecStructFieldNotFound(-1, yys3373) } // end switch yys3373 } // end for yyj3373 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 yyj3380 int var yyb3380 bool var yyhl3380 bool = l >= 0 yyj3380++ if yyhl3380 { yyb3380 = yyj3380 > l } else { yyb3380 = r.CheckBreak() } if yyb3380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3380++ if yyhl3380 { yyb3380 = yyj3380 > l } else { yyb3380 = r.CheckBreak() } if yyb3380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3380++ if yyhl3380 { yyb3380 = yyj3380 > l } else { yyb3380 = r.CheckBreak() } if yyb3380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3383 := &x.ListMeta yym3384 := z.DecBinary() _ = yym3384 if false { } else if z.HasExtensions() && z.DecExt(yyv3383) { } else { z.DecFallback(yyv3383, false) } } yyj3380++ if yyhl3380 { yyb3380 = yyj3380 > l } else { yyb3380 = r.CheckBreak() } if yyb3380 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3385 := &x.Items yym3386 := z.DecBinary() _ = yym3386 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3385), d) } } for { yyj3380++ if yyhl3380 { yyb3380 = yyj3380 > l } else { yyb3380 = r.CheckBreak() } if yyb3380 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3380-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 { yym3387 := z.EncBinary() _ = yym3387 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3388 := !z.EncBinary() yy2arr3388 := z.EncBasicHandle().StructToArray var yyq3388 [5]bool _, _, _ = yysep3388, yyq3388, yy2arr3388 const yyr3388 bool = false yyq3388[0] = x.Kind != "" yyq3388[1] = x.APIVersion != "" yyq3388[2] = true yyq3388[3] = len(x.Data) != 0 yyq3388[4] = x.Type != "" var yynn3388 int if yyr3388 || yy2arr3388 { r.EncodeArrayStart(5) } else { yynn3388 = 0 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.ObjectMeta yy3396.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3388[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3397 := &x.ObjectMeta yy3397.CodecEncodeSelf(e) } } if yyr3388 || yy2arr3388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3388[3] { if x.Data == nil { r.EncodeNil() } else { yym3399 := z.EncBinary() _ = yym3399 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq3388[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3400 := z.EncBinary() _ = yym3400 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr3388 || yy2arr3388 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3388[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3388[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3388 || yy2arr3388 { 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 yym3402 := z.DecBinary() _ = yym3402 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3403 := r.ContainerType() if yyct3403 == codecSelferValueTypeMap1234 { yyl3403 := r.ReadMapStart() if yyl3403 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3403, d) } } else if yyct3403 == codecSelferValueTypeArray1234 { yyl3403 := r.ReadArrayStart() if yyl3403 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3403, 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 yys3404Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3404Slc var yyhl3404 bool = l >= 0 for yyj3404 := 0; ; yyj3404++ { if yyhl3404 { if yyj3404 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3404Slc = r.DecodeBytes(yys3404Slc, true, true) yys3404 := string(yys3404Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3404 { 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 { yyv3407 := &x.ObjectMeta yyv3407.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3408 := &x.Data yym3409 := z.DecBinary() _ = yym3409 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3408), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3404) } // end switch yys3404 } // end for yyj3404 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 yyj3411 int var yyb3411 bool var yyhl3411 bool = l >= 0 yyj3411++ if yyhl3411 { yyb3411 = yyj3411 > l } else { yyb3411 = r.CheckBreak() } if yyb3411 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3411++ if yyhl3411 { yyb3411 = yyj3411 > l } else { yyb3411 = r.CheckBreak() } if yyb3411 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3411++ if yyhl3411 { yyb3411 = yyj3411 > l } else { yyb3411 = r.CheckBreak() } if yyb3411 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3414 := &x.ObjectMeta yyv3414.CodecDecodeSelf(d) } yyj3411++ if yyhl3411 { yyb3411 = yyj3411 > l } else { yyb3411 = r.CheckBreak() } if yyb3411 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3415 := &x.Data yym3416 := z.DecBinary() _ = yym3416 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3415), d) } } yyj3411++ if yyhl3411 { yyb3411 = yyj3411 > l } else { yyb3411 = r.CheckBreak() } if yyb3411 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } for { yyj3411++ if yyhl3411 { yyb3411 = yyj3411 > l } else { yyb3411 = r.CheckBreak() } if yyb3411 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3411-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3418 := z.EncBinary() _ = yym3418 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 yym3419 := z.DecBinary() _ = yym3419 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 { yym3420 := z.EncBinary() _ = yym3420 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3421 := !z.EncBinary() yy2arr3421 := z.EncBasicHandle().StructToArray var yyq3421 [4]bool _, _, _ = yysep3421, yyq3421, yy2arr3421 const yyr3421 bool = false yyq3421[0] = x.Kind != "" yyq3421[1] = x.APIVersion != "" yyq3421[2] = true var yynn3421 int if yyr3421 || yy2arr3421 { r.EncodeArrayStart(4) } else { yynn3421 = 1 for _, b := range yyq3421 { if b { yynn3421++ } } r.EncodeMapStart(yynn3421) yynn3421 = 0 } if yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3421[0] { yym3423 := z.EncBinary() _ = yym3423 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3421[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3424 := z.EncBinary() _ = yym3424 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3421[1] { yym3426 := z.EncBinary() _ = yym3426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3421[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3427 := z.EncBinary() _ = yym3427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3421[2] { yy3429 := &x.ListMeta yym3430 := z.EncBinary() _ = yym3430 if false { } else if z.HasExtensions() && z.EncExt(yy3429) { } else { z.EncFallback(yy3429) } } else { r.EncodeNil() } } else { if yyq3421[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3431 := &x.ListMeta yym3432 := z.EncBinary() _ = yym3432 if false { } else if z.HasExtensions() && z.EncExt(yy3431) { } else { z.EncFallback(yy3431) } } } if yyr3421 || yy2arr3421 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3434 := z.EncBinary() _ = yym3434 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 { yym3435 := z.EncBinary() _ = yym3435 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr3421 || yy2arr3421 { 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 yym3436 := z.DecBinary() _ = yym3436 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3437 := r.ContainerType() if yyct3437 == codecSelferValueTypeMap1234 { yyl3437 := r.ReadMapStart() if yyl3437 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3437, d) } } else if yyct3437 == codecSelferValueTypeArray1234 { yyl3437 := r.ReadArrayStart() if yyl3437 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3437, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3438Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3438Slc var yyhl3438 bool = l >= 0 for yyj3438 := 0; ; yyj3438++ { if yyhl3438 { if yyj3438 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3438Slc = r.DecodeBytes(yys3438Slc, true, true) yys3438 := string(yys3438Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3438 { case "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 { yyv3441 := &x.ListMeta yym3442 := z.DecBinary() _ = yym3442 if false { } else if z.HasExtensions() && z.DecExt(yyv3441) { } else { z.DecFallback(yyv3441, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3443 := &x.Items yym3444 := z.DecBinary() _ = yym3444 if false { } else { h.decSliceSecret((*[]Secret)(yyv3443), d) } } default: z.DecStructFieldNotFound(-1, yys3438) } // end switch yys3438 } // end for yyj3438 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 yyj3445 int var yyb3445 bool var yyhl3445 bool = l >= 0 yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3448 := &x.ListMeta yym3449 := z.DecBinary() _ = yym3449 if false { } else if z.HasExtensions() && z.DecExt(yyv3448) { } else { z.DecFallback(yyv3448, false) } } yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3450 := &x.Items yym3451 := z.DecBinary() _ = yym3451 if false { } else { h.decSliceSecret((*[]Secret)(yyv3450), d) } } for { yyj3445++ if yyhl3445 { yyb3445 = yyj3445 > l } else { yyb3445 = r.CheckBreak() } if yyb3445 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3445-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3452 := z.EncBinary() _ = yym3452 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3453 := !z.EncBinary() yy2arr3453 := z.EncBasicHandle().StructToArray var yyq3453 [4]bool _, _, _ = yysep3453, yyq3453, yy2arr3453 const yyr3453 bool = false yyq3453[0] = x.Kind != "" yyq3453[1] = x.APIVersion != "" yyq3453[2] = true yyq3453[3] = len(x.Data) != 0 var yynn3453 int if yyr3453 || yy2arr3453 { r.EncodeArrayStart(4) } else { yynn3453 = 0 for _, b := range yyq3453 { if b { yynn3453++ } } r.EncodeMapStart(yynn3453) yynn3453 = 0 } if yyr3453 || yy2arr3453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3453[0] { yym3455 := z.EncBinary() _ = yym3455 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3453[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3456 := z.EncBinary() _ = yym3456 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3453 || yy2arr3453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3453[1] { yym3458 := z.EncBinary() _ = yym3458 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3453[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3459 := z.EncBinary() _ = yym3459 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3453 || yy2arr3453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3453[2] { yy3461 := &x.ObjectMeta yy3461.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3453[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3462 := &x.ObjectMeta yy3462.CodecEncodeSelf(e) } } if yyr3453 || yy2arr3453 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3453[3] { if x.Data == nil { r.EncodeNil() } else { yym3464 := z.EncBinary() _ = yym3464 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } else { r.EncodeNil() } } else { if yyq3453[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3465 := z.EncBinary() _ = yym3465 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } } if yyr3453 || yy2arr3453 { 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 yym3466 := z.DecBinary() _ = yym3466 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3467 := r.ContainerType() if yyct3467 == codecSelferValueTypeMap1234 { yyl3467 := r.ReadMapStart() if yyl3467 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3467, d) } } else if yyct3467 == codecSelferValueTypeArray1234 { yyl3467 := r.ReadArrayStart() if yyl3467 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3467, 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 yys3468Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3468Slc var yyhl3468 bool = l >= 0 for yyj3468 := 0; ; yyj3468++ { if yyhl3468 { if yyj3468 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3468Slc = r.DecodeBytes(yys3468Slc, true, true) yys3468 := string(yys3468Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3468 { 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 { yyv3471 := &x.ObjectMeta yyv3471.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3472 := &x.Data yym3473 := z.DecBinary() _ = yym3473 if false { } else { z.F.DecMapStringStringX(yyv3472, false, d) } } default: z.DecStructFieldNotFound(-1, yys3468) } // end switch yys3468 } // end for yyj3468 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 yyj3474 int var yyb3474 bool var yyhl3474 bool = l >= 0 yyj3474++ if yyhl3474 { yyb3474 = yyj3474 > l } else { yyb3474 = r.CheckBreak() } if yyb3474 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3474++ if yyhl3474 { yyb3474 = yyj3474 > l } else { yyb3474 = r.CheckBreak() } if yyb3474 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3474++ if yyhl3474 { yyb3474 = yyj3474 > l } else { yyb3474 = r.CheckBreak() } if yyb3474 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3477 := &x.ObjectMeta yyv3477.CodecDecodeSelf(d) } yyj3474++ if yyhl3474 { yyb3474 = yyj3474 > l } else { yyb3474 = r.CheckBreak() } if yyb3474 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3478 := &x.Data yym3479 := z.DecBinary() _ = yym3479 if false { } else { z.F.DecMapStringStringX(yyv3478, false, d) } } for { yyj3474++ if yyhl3474 { yyb3474 = yyj3474 > l } else { yyb3474 = r.CheckBreak() } if yyb3474 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3474-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 { yym3480 := z.EncBinary() _ = yym3480 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3481 := !z.EncBinary() yy2arr3481 := z.EncBasicHandle().StructToArray var yyq3481 [4]bool _, _, _ = yysep3481, yyq3481, yy2arr3481 const yyr3481 bool = false yyq3481[0] = x.Kind != "" yyq3481[1] = x.APIVersion != "" yyq3481[2] = true yyq3481[3] = len(x.Items) != 0 var yynn3481 int if yyr3481 || yy2arr3481 { r.EncodeArrayStart(4) } else { yynn3481 = 0 for _, b := range yyq3481 { if b { yynn3481++ } } r.EncodeMapStart(yynn3481) yynn3481 = 0 } if yyr3481 || yy2arr3481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3481[0] { yym3483 := z.EncBinary() _ = yym3483 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3481[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3484 := z.EncBinary() _ = yym3484 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3481 || yy2arr3481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3481[1] { yym3486 := z.EncBinary() _ = yym3486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3481[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3487 := z.EncBinary() _ = yym3487 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3481 || yy2arr3481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3481[2] { yy3489 := &x.ListMeta yym3490 := z.EncBinary() _ = yym3490 if false { } else if z.HasExtensions() && z.EncExt(yy3489) { } else { z.EncFallback(yy3489) } } else { r.EncodeNil() } } else { if yyq3481[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3491 := &x.ListMeta yym3492 := z.EncBinary() _ = yym3492 if false { } else if z.HasExtensions() && z.EncExt(yy3491) { } else { z.EncFallback(yy3491) } } } if yyr3481 || yy2arr3481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3481[3] { if x.Items == nil { r.EncodeNil() } else { yym3494 := z.EncBinary() _ = yym3494 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq3481[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym3495 := z.EncBinary() _ = yym3495 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } } if yyr3481 || yy2arr3481 { 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 yym3496 := z.DecBinary() _ = yym3496 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3497 := r.ContainerType() if yyct3497 == codecSelferValueTypeMap1234 { yyl3497 := r.ReadMapStart() if yyl3497 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3497, d) } } else if yyct3497 == codecSelferValueTypeArray1234 { yyl3497 := r.ReadArrayStart() if yyl3497 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3497, 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 yys3498Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3498Slc var yyhl3498 bool = l >= 0 for yyj3498 := 0; ; yyj3498++ { if yyhl3498 { if yyj3498 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3498Slc = r.DecodeBytes(yys3498Slc, true, true) yys3498 := string(yys3498Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3498 { 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 { yyv3501 := &x.ListMeta yym3502 := z.DecBinary() _ = yym3502 if false { } else if z.HasExtensions() && z.DecExt(yyv3501) { } else { z.DecFallback(yyv3501, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3503 := &x.Items yym3504 := z.DecBinary() _ = yym3504 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv3503), d) } } default: z.DecStructFieldNotFound(-1, yys3498) } // end switch yys3498 } // end for yyj3498 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 yyj3505 int var yyb3505 bool var yyhl3505 bool = l >= 0 yyj3505++ if yyhl3505 { yyb3505 = yyj3505 > l } else { yyb3505 = r.CheckBreak() } if yyb3505 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3505++ if yyhl3505 { yyb3505 = yyj3505 > l } else { yyb3505 = r.CheckBreak() } if yyb3505 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3505++ if yyhl3505 { yyb3505 = yyj3505 > l } else { yyb3505 = r.CheckBreak() } if yyb3505 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3508 := &x.ListMeta yym3509 := z.DecBinary() _ = yym3509 if false { } else if z.HasExtensions() && z.DecExt(yyv3508) { } else { z.DecFallback(yyv3508, false) } } yyj3505++ if yyhl3505 { yyb3505 = yyj3505 > l } else { yyb3505 = r.CheckBreak() } if yyb3505 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3510 := &x.Items yym3511 := z.DecBinary() _ = yym3511 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv3510), d) } } for { yyj3505++ if yyhl3505 { yyb3505 = yyj3505 > l } else { yyb3505 = r.CheckBreak() } if yyb3505 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3505-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3512 := z.EncBinary() _ = yym3512 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 yym3513 := z.DecBinary() _ = yym3513 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 yym3514 := z.EncBinary() _ = yym3514 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 yym3515 := z.DecBinary() _ = yym3515 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 { yym3516 := z.EncBinary() _ = yym3516 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3517 := !z.EncBinary() yy2arr3517 := z.EncBasicHandle().StructToArray var yyq3517 [4]bool _, _, _ = yysep3517, yyq3517, yy2arr3517 const yyr3517 bool = false yyq3517[2] = x.Message != "" yyq3517[3] = x.Error != "" var yynn3517 int if yyr3517 || yy2arr3517 { r.EncodeArrayStart(4) } else { yynn3517 = 2 for _, b := range yyq3517 { if b { yynn3517++ } } r.EncodeMapStart(yynn3517) yynn3517 = 0 } if yyr3517 || yy2arr3517 { 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 yyr3517 || yy2arr3517 { 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 yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3517[2] { yym3521 := z.EncBinary() _ = yym3521 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3517[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3522 := z.EncBinary() _ = yym3522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3517 || yy2arr3517 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3517[3] { yym3524 := z.EncBinary() _ = yym3524 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3517[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3525 := z.EncBinary() _ = yym3525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr3517 || yy2arr3517 { 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 yym3526 := z.DecBinary() _ = yym3526 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3527 := r.ContainerType() if yyct3527 == codecSelferValueTypeMap1234 { yyl3527 := r.ReadMapStart() if yyl3527 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3527, d) } } else if yyct3527 == codecSelferValueTypeArray1234 { yyl3527 := r.ReadArrayStart() if yyl3527 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3527, 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 yys3528Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3528Slc var yyhl3528 bool = l >= 0 for yyj3528 := 0; ; yyj3528++ { if yyhl3528 { if yyj3528 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3528Slc = r.DecodeBytes(yys3528Slc, true, true) yys3528 := string(yys3528Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3528 { 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, yys3528) } // end switch yys3528 } // end for yyj3528 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 yyj3533 int var yyb3533 bool var yyhl3533 bool = l >= 0 yyj3533++ if yyhl3533 { yyb3533 = yyj3533 > l } else { yyb3533 = r.CheckBreak() } if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj3533++ if yyhl3533 { yyb3533 = yyj3533 > l } else { yyb3533 = r.CheckBreak() } if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3533++ if yyhl3533 { yyb3533 = yyj3533 > l } else { yyb3533 = r.CheckBreak() } if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3533++ if yyhl3533 { yyb3533 = yyj3533 > l } else { yyb3533 = r.CheckBreak() } if yyb3533 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj3533++ if yyhl3533 { yyb3533 = yyj3533 > l } else { yyb3533 = r.CheckBreak() } if yyb3533 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3533-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 { yym3538 := z.EncBinary() _ = yym3538 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3539 := !z.EncBinary() yy2arr3539 := z.EncBasicHandle().StructToArray var yyq3539 [4]bool _, _, _ = yysep3539, yyq3539, yy2arr3539 const yyr3539 bool = false yyq3539[0] = x.Kind != "" yyq3539[1] = x.APIVersion != "" yyq3539[2] = true yyq3539[3] = len(x.Conditions) != 0 var yynn3539 int if yyr3539 || yy2arr3539 { r.EncodeArrayStart(4) } else { yynn3539 = 0 for _, b := range yyq3539 { if b { yynn3539++ } } r.EncodeMapStart(yynn3539) yynn3539 = 0 } if yyr3539 || yy2arr3539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3539[0] { yym3541 := z.EncBinary() _ = yym3541 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3539[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3542 := z.EncBinary() _ = yym3542 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3539 || yy2arr3539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3539[1] { yym3544 := z.EncBinary() _ = yym3544 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3539[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3545 := z.EncBinary() _ = yym3545 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3539 || yy2arr3539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3539[2] { yy3547 := &x.ObjectMeta yy3547.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3539[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3548 := &x.ObjectMeta yy3548.CodecEncodeSelf(e) } } if yyr3539 || yy2arr3539 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3539[3] { if x.Conditions == nil { r.EncodeNil() } else { yym3550 := z.EncBinary() _ = yym3550 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq3539[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym3551 := z.EncBinary() _ = yym3551 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr3539 || yy2arr3539 { 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 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 *ComponentStatus) 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.ObjectMeta = ObjectMeta{} } else { yyv3557 := &x.ObjectMeta yyv3557.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3558 := &x.Conditions yym3559 := z.DecBinary() _ = yym3559 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3558), d) } } default: z.DecStructFieldNotFound(-1, yys3554) } // end switch yys3554 } // end for yyj3554 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 yyj3560 int var yyb3560 bool var yyhl3560 bool = l >= 0 yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3563 := &x.ObjectMeta yyv3563.CodecDecodeSelf(d) } yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3564 := &x.Conditions yym3565 := z.DecBinary() _ = yym3565 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3564), d) } } for { yyj3560++ if yyhl3560 { yyb3560 = yyj3560 > l } else { yyb3560 = r.CheckBreak() } if yyb3560 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3560-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ComponentStatusList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3566 := z.EncBinary() _ = yym3566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3567 := !z.EncBinary() yy2arr3567 := z.EncBasicHandle().StructToArray var yyq3567 [4]bool _, _, _ = yysep3567, yyq3567, yy2arr3567 const yyr3567 bool = false yyq3567[0] = x.Kind != "" yyq3567[1] = x.APIVersion != "" yyq3567[2] = true var yynn3567 int if yyr3567 || yy2arr3567 { r.EncodeArrayStart(4) } else { yynn3567 = 1 for _, b := range yyq3567 { if b { yynn3567++ } } r.EncodeMapStart(yynn3567) yynn3567 = 0 } if yyr3567 || yy2arr3567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3567[0] { yym3569 := z.EncBinary() _ = yym3569 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3570 := z.EncBinary() _ = yym3570 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3567 || yy2arr3567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3567[1] { yym3572 := z.EncBinary() _ = yym3572 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3567[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3573 := z.EncBinary() _ = yym3573 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3567 || yy2arr3567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3567[2] { yy3575 := &x.ListMeta yym3576 := z.EncBinary() _ = yym3576 if false { } else if z.HasExtensions() && z.EncExt(yy3575) { } else { z.EncFallback(yy3575) } } else { r.EncodeNil() } } else { if yyq3567[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3577 := &x.ListMeta yym3578 := z.EncBinary() _ = yym3578 if false { } else if z.HasExtensions() && z.EncExt(yy3577) { } else { z.EncFallback(yy3577) } } } if yyr3567 || yy2arr3567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3580 := z.EncBinary() _ = yym3580 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 { yym3581 := z.EncBinary() _ = yym3581 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr3567 || yy2arr3567 { 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 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 *ComponentStatusList) 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.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3587 := &x.ListMeta yym3588 := z.DecBinary() _ = yym3588 if false { } else if z.HasExtensions() && z.DecExt(yyv3587) { } else { z.DecFallback(yyv3587, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3589 := &x.Items yym3590 := z.DecBinary() _ = yym3590 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3589), d) } } default: z.DecStructFieldNotFound(-1, yys3584) } // end switch yys3584 } // end for yyj3584 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 yyj3591 int var yyb3591 bool var yyhl3591 bool = l >= 0 yyj3591++ if yyhl3591 { yyb3591 = yyj3591 > l } else { yyb3591 = r.CheckBreak() } if yyb3591 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3591++ if yyhl3591 { yyb3591 = yyj3591 > l } else { yyb3591 = r.CheckBreak() } if yyb3591 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3591++ if yyhl3591 { yyb3591 = yyj3591 > l } else { yyb3591 = r.CheckBreak() } if yyb3591 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3594 := &x.ListMeta yym3595 := z.DecBinary() _ = yym3595 if false { } else if z.HasExtensions() && z.DecExt(yyv3594) { } else { z.DecFallback(yyv3594, false) } } yyj3591++ if yyhl3591 { yyb3591 = yyj3591 > l } else { yyb3591 = r.CheckBreak() } if yyb3591 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3596 := &x.Items yym3597 := z.DecBinary() _ = yym3597 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3596), d) } } for { yyj3591++ if yyhl3591 { yyb3591 = yyj3591 > l } else { yyb3591 = r.CheckBreak() } if yyb3591 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3591-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 { yym3598 := z.EncBinary() _ = yym3598 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3599 := !z.EncBinary() yy2arr3599 := z.EncBasicHandle().StructToArray var yyq3599 [5]bool _, _, _ = yysep3599, yyq3599, yy2arr3599 const yyr3599 bool = false yyq3599[0] = x.Capabilities != nil yyq3599[1] = x.Privileged != nil yyq3599[2] = x.SELinuxOptions != nil yyq3599[3] = x.RunAsUser != nil yyq3599[4] = x.RunAsNonRoot != nil var yynn3599 int if yyr3599 || yy2arr3599 { r.EncodeArrayStart(5) } else { yynn3599 = 0 for _, b := range yyq3599 { if b { yynn3599++ } } r.EncodeMapStart(yynn3599) yynn3599 = 0 } if yyr3599 || yy2arr3599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3599[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3599[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 yyr3599 || yy2arr3599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3599[1] { if x.Privileged == nil { r.EncodeNil() } else { yy3602 := *x.Privileged yym3603 := z.EncBinary() _ = yym3603 if false { } else { r.EncodeBool(bool(yy3602)) } } } else { r.EncodeNil() } } else { if yyq3599[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy3604 := *x.Privileged yym3605 := z.EncBinary() _ = yym3605 if false { } else { r.EncodeBool(bool(yy3604)) } } } } if yyr3599 || yy2arr3599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3599[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3599[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 yyr3599 || yy2arr3599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3599[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy3608 := *x.RunAsUser yym3609 := z.EncBinary() _ = yym3609 if false { } else { r.EncodeInt(int64(yy3608)) } } } else { r.EncodeNil() } } else { if yyq3599[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy3610 := *x.RunAsUser yym3611 := z.EncBinary() _ = yym3611 if false { } else { r.EncodeInt(int64(yy3610)) } } } } if yyr3599 || yy2arr3599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3599[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3613 := *x.RunAsNonRoot yym3614 := z.EncBinary() _ = yym3614 if false { } else { r.EncodeBool(bool(yy3613)) } } } else { r.EncodeNil() } } else { if yyq3599[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3615 := *x.RunAsNonRoot yym3616 := z.EncBinary() _ = yym3616 if false { } else { r.EncodeBool(bool(yy3615)) } } } } if yyr3599 || yy2arr3599 { 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 yym3617 := z.DecBinary() _ = yym3617 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3618 := r.ContainerType() if yyct3618 == codecSelferValueTypeMap1234 { yyl3618 := r.ReadMapStart() if yyl3618 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3618, d) } } else if yyct3618 == codecSelferValueTypeArray1234 { yyl3618 := r.ReadArrayStart() if yyl3618 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3618, 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 yys3619Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3619Slc var yyhl3619 bool = l >= 0 for yyj3619 := 0; ; yyj3619++ { if yyhl3619 { if yyj3619 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3619Slc = r.DecodeBytes(yys3619Slc, true, true) yys3619 := string(yys3619Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3619 { 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) } yym3622 := z.DecBinary() _ = yym3622 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) } yym3625 := z.DecBinary() _ = yym3625 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) } yym3627 := z.DecBinary() _ = yym3627 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3619) } // end switch yys3619 } // end for yyj3619 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 yyj3628 int var yyb3628 bool var yyhl3628 bool = l >= 0 yyj3628++ if yyhl3628 { yyb3628 = yyj3628 > l } else { yyb3628 = r.CheckBreak() } if yyb3628 { 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) } yyj3628++ if yyhl3628 { yyb3628 = yyj3628 > l } else { yyb3628 = r.CheckBreak() } if yyb3628 { 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) } yym3631 := z.DecBinary() _ = yym3631 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj3628++ if yyhl3628 { yyb3628 = yyj3628 > l } else { yyb3628 = r.CheckBreak() } if yyb3628 { 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) } yyj3628++ if yyhl3628 { yyb3628 = yyj3628 > l } else { yyb3628 = r.CheckBreak() } if yyb3628 { 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) } yym3634 := z.DecBinary() _ = yym3634 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj3628++ if yyhl3628 { yyb3628 = yyj3628 > l } else { yyb3628 = r.CheckBreak() } if yyb3628 { 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) } yym3636 := z.DecBinary() _ = yym3636 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } for { yyj3628++ if yyhl3628 { yyb3628 = yyj3628 > l } else { yyb3628 = r.CheckBreak() } if yyb3628 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3628-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 { yym3637 := z.EncBinary() _ = yym3637 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3638 := !z.EncBinary() yy2arr3638 := z.EncBasicHandle().StructToArray var yyq3638 [4]bool _, _, _ = yysep3638, yyq3638, yy2arr3638 const yyr3638 bool = false yyq3638[0] = x.User != "" yyq3638[1] = x.Role != "" yyq3638[2] = x.Type != "" yyq3638[3] = x.Level != "" var yynn3638 int if yyr3638 || yy2arr3638 { r.EncodeArrayStart(4) } else { yynn3638 = 0 for _, b := range yyq3638 { if b { yynn3638++ } } r.EncodeMapStart(yynn3638) yynn3638 = 0 } if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3638[0] { yym3640 := z.EncBinary() _ = yym3640 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3638[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3641 := z.EncBinary() _ = yym3641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3638[1] { yym3643 := z.EncBinary() _ = yym3643 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3638[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3644 := z.EncBinary() _ = yym3644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3638[2] { yym3646 := z.EncBinary() _ = yym3646 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3638[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3647 := z.EncBinary() _ = yym3647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3638 || yy2arr3638 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3638[3] { yym3649 := z.EncBinary() _ = yym3649 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3638[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3650 := z.EncBinary() _ = yym3650 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr3638 || yy2arr3638 { 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 yym3651 := z.DecBinary() _ = yym3651 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3652 := r.ContainerType() if yyct3652 == codecSelferValueTypeMap1234 { yyl3652 := r.ReadMapStart() if yyl3652 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3652, d) } } else if yyct3652 == codecSelferValueTypeArray1234 { yyl3652 := r.ReadArrayStart() if yyl3652 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3652, 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 yys3653Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3653Slc var yyhl3653 bool = l >= 0 for yyj3653 := 0; ; yyj3653++ { if yyhl3653 { if yyj3653 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3653Slc = r.DecodeBytes(yys3653Slc, true, true) yys3653 := string(yys3653Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3653 { 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, yys3653) } // end switch yys3653 } // end for yyj3653 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 yyj3658 int var yyb3658 bool var yyhl3658 bool = l >= 0 yyj3658++ if yyhl3658 { yyb3658 = yyj3658 > l } else { yyb3658 = r.CheckBreak() } if yyb3658 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj3658++ if yyhl3658 { yyb3658 = yyj3658 > l } else { yyb3658 = r.CheckBreak() } if yyb3658 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj3658++ if yyhl3658 { yyb3658 = yyj3658 > l } else { yyb3658 = r.CheckBreak() } if yyb3658 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj3658++ if yyhl3658 { yyb3658 = yyj3658 > l } else { yyb3658 = r.CheckBreak() } if yyb3658 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj3658++ if yyhl3658 { yyb3658 = yyj3658 > l } else { yyb3658 = r.CheckBreak() } if yyb3658 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3658-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 { yym3663 := z.EncBinary() _ = yym3663 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3664 := !z.EncBinary() yy2arr3664 := z.EncBasicHandle().StructToArray var yyq3664 [5]bool _, _, _ = yysep3664, yyq3664, yy2arr3664 const yyr3664 bool = false yyq3664[0] = x.Kind != "" yyq3664[1] = x.APIVersion != "" yyq3664[2] = true var yynn3664 int if yyr3664 || yy2arr3664 { r.EncodeArrayStart(5) } else { yynn3664 = 2 for _, b := range yyq3664 { if b { yynn3664++ } } r.EncodeMapStart(yynn3664) yynn3664 = 0 } if yyr3664 || yy2arr3664 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3664[0] { yym3666 := z.EncBinary() _ = yym3666 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3664[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3667 := z.EncBinary() _ = yym3667 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3664 || yy2arr3664 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3664[1] { yym3669 := z.EncBinary() _ = yym3669 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3664[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3670 := z.EncBinary() _ = yym3670 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3664 || yy2arr3664 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3664[2] { yy3672 := &x.ObjectMeta yy3672.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3664[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3673 := &x.ObjectMeta yy3673.CodecEncodeSelf(e) } } if yyr3664 || yy2arr3664 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3675 := z.EncBinary() _ = yym3675 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) yym3676 := z.EncBinary() _ = yym3676 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr3664 || yy2arr3664 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym3678 := z.EncBinary() _ = yym3678 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 { yym3679 := z.EncBinary() _ = yym3679 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr3664 || yy2arr3664 { 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 yym3680 := z.DecBinary() _ = yym3680 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3681 := r.ContainerType() if yyct3681 == codecSelferValueTypeMap1234 { yyl3681 := r.ReadMapStart() if yyl3681 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3681, d) } } else if yyct3681 == codecSelferValueTypeArray1234 { yyl3681 := r.ReadArrayStart() if yyl3681 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3681, 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 yys3682Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3682Slc var yyhl3682 bool = l >= 0 for yyj3682 := 0; ; yyj3682++ { if yyhl3682 { if yyj3682 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3682Slc = r.DecodeBytes(yys3682Slc, true, true) yys3682 := string(yys3682Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3682 { 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 { yyv3685 := &x.ObjectMeta yyv3685.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3687 := &x.Data yym3688 := z.DecBinary() _ = yym3688 if false { } else { *yyv3687 = r.DecodeBytes(*(*[]byte)(yyv3687), false, false) } } default: z.DecStructFieldNotFound(-1, yys3682) } // end switch yys3682 } // end for yyj3682 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 yyj3689 int var yyb3689 bool var yyhl3689 bool = l >= 0 yyj3689++ if yyhl3689 { yyb3689 = yyj3689 > l } else { yyb3689 = r.CheckBreak() } if yyb3689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3689++ if yyhl3689 { yyb3689 = yyj3689 > l } else { yyb3689 = r.CheckBreak() } if yyb3689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3689++ if yyhl3689 { yyb3689 = yyj3689 > l } else { yyb3689 = r.CheckBreak() } if yyb3689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3692 := &x.ObjectMeta yyv3692.CodecDecodeSelf(d) } yyj3689++ if yyhl3689 { yyb3689 = yyj3689 > l } else { yyb3689 = r.CheckBreak() } if yyb3689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj3689++ if yyhl3689 { yyb3689 = yyj3689 > l } else { yyb3689 = r.CheckBreak() } if yyb3689 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3694 := &x.Data yym3695 := z.DecBinary() _ = yym3695 if false { } else { *yyv3694 = r.DecodeBytes(*(*[]byte)(yyv3694), false, false) } } for { yyj3689++ if yyhl3689 { yyb3689 = yyj3689 > l } else { yyb3689 = r.CheckBreak() } if yyb3689 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3689-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 _, yyv3696 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3696.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 yyv3697 := *v yyh3697, yyl3697 := z.DecSliceHelperStart() var yyc3697 bool if yyl3697 == 0 { if yyv3697 == nil { yyv3697 = []PersistentVolumeAccessMode{} yyc3697 = true } else if len(yyv3697) != 0 { yyv3697 = yyv3697[:0] yyc3697 = true } } else if yyl3697 > 0 { var yyrr3697, yyrl3697 int var yyrt3697 bool if yyl3697 > cap(yyv3697) { yyrl3697, yyrt3697 = z.DecInferLen(yyl3697, z.DecBasicHandle().MaxInitLen, 16) if yyrt3697 { if yyrl3697 <= cap(yyv3697) { yyv3697 = yyv3697[:yyrl3697] } else { yyv3697 = make([]PersistentVolumeAccessMode, yyrl3697) } } else { yyv3697 = make([]PersistentVolumeAccessMode, yyrl3697) } yyc3697 = true yyrr3697 = len(yyv3697) } else if yyl3697 != len(yyv3697) { yyv3697 = yyv3697[:yyl3697] yyc3697 = true } yyj3697 := 0 for ; yyj3697 < yyrr3697; yyj3697++ { yyh3697.ElemContainerState(yyj3697) if r.TryDecodeAsNil() { yyv3697[yyj3697] = "" } else { yyv3697[yyj3697] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt3697 { for ; yyj3697 < yyl3697; yyj3697++ { yyv3697 = append(yyv3697, "") yyh3697.ElemContainerState(yyj3697) if r.TryDecodeAsNil() { yyv3697[yyj3697] = "" } else { yyv3697[yyj3697] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj3697 := 0 for ; !r.CheckBreak(); yyj3697++ { if yyj3697 >= len(yyv3697) { yyv3697 = append(yyv3697, "") // var yyz3697 PersistentVolumeAccessMode yyc3697 = true } yyh3697.ElemContainerState(yyj3697) if yyj3697 < len(yyv3697) { if r.TryDecodeAsNil() { yyv3697[yyj3697] = "" } else { yyv3697[yyj3697] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3697 < len(yyv3697) { yyv3697 = yyv3697[:yyj3697] yyc3697 = true } else if yyj3697 == 0 && yyv3697 == nil { yyv3697 = []PersistentVolumeAccessMode{} yyc3697 = true } } yyh3697.End() if yyc3697 { *v = yyv3697 } } 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 _, yyv3701 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3702 := &yyv3701 yy3702.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 yyv3703 := *v yyh3703, yyl3703 := z.DecSliceHelperStart() var yyc3703 bool if yyl3703 == 0 { if yyv3703 == nil { yyv3703 = []PersistentVolume{} yyc3703 = true } else if len(yyv3703) != 0 { yyv3703 = yyv3703[:0] yyc3703 = true } } else if yyl3703 > 0 { var yyrr3703, yyrl3703 int var yyrt3703 bool if yyl3703 > cap(yyv3703) { yyrg3703 := len(yyv3703) > 0 yyv23703 := yyv3703 yyrl3703, yyrt3703 = z.DecInferLen(yyl3703, z.DecBasicHandle().MaxInitLen, 392) if yyrt3703 { if yyrl3703 <= cap(yyv3703) { yyv3703 = yyv3703[:yyrl3703] } else { yyv3703 = make([]PersistentVolume, yyrl3703) } } else { yyv3703 = make([]PersistentVolume, yyrl3703) } yyc3703 = true yyrr3703 = len(yyv3703) if yyrg3703 { copy(yyv3703, yyv23703) } } else if yyl3703 != len(yyv3703) { yyv3703 = yyv3703[:yyl3703] yyc3703 = true } yyj3703 := 0 for ; yyj3703 < yyrr3703; yyj3703++ { yyh3703.ElemContainerState(yyj3703) if r.TryDecodeAsNil() { yyv3703[yyj3703] = PersistentVolume{} } else { yyv3704 := &yyv3703[yyj3703] yyv3704.CodecDecodeSelf(d) } } if yyrt3703 { for ; yyj3703 < yyl3703; yyj3703++ { yyv3703 = append(yyv3703, PersistentVolume{}) yyh3703.ElemContainerState(yyj3703) if r.TryDecodeAsNil() { yyv3703[yyj3703] = PersistentVolume{} } else { yyv3705 := &yyv3703[yyj3703] yyv3705.CodecDecodeSelf(d) } } } } else { yyj3703 := 0 for ; !r.CheckBreak(); yyj3703++ { if yyj3703 >= len(yyv3703) { yyv3703 = append(yyv3703, PersistentVolume{}) // var yyz3703 PersistentVolume yyc3703 = true } yyh3703.ElemContainerState(yyj3703) if yyj3703 < len(yyv3703) { if r.TryDecodeAsNil() { yyv3703[yyj3703] = PersistentVolume{} } else { yyv3706 := &yyv3703[yyj3703] yyv3706.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3703 < len(yyv3703) { yyv3703 = yyv3703[:yyj3703] yyc3703 = true } else if yyj3703 == 0 && yyv3703 == nil { yyv3703 = []PersistentVolume{} yyc3703 = true } } yyh3703.End() if yyc3703 { *v = yyv3703 } } 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 _, yyv3707 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3708 := &yyv3707 yy3708.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 yyv3709 := *v yyh3709, yyl3709 := z.DecSliceHelperStart() var yyc3709 bool if yyl3709 == 0 { if yyv3709 == nil { yyv3709 = []PersistentVolumeClaim{} yyc3709 = true } else if len(yyv3709) != 0 { yyv3709 = yyv3709[:0] yyc3709 = true } } else if yyl3709 > 0 { var yyrr3709, yyrl3709 int var yyrt3709 bool if yyl3709 > cap(yyv3709) { yyrg3709 := len(yyv3709) > 0 yyv23709 := yyv3709 yyrl3709, yyrt3709 = z.DecInferLen(yyl3709, z.DecBasicHandle().MaxInitLen, 296) if yyrt3709 { if yyrl3709 <= cap(yyv3709) { yyv3709 = yyv3709[:yyrl3709] } else { yyv3709 = make([]PersistentVolumeClaim, yyrl3709) } } else { yyv3709 = make([]PersistentVolumeClaim, yyrl3709) } yyc3709 = true yyrr3709 = len(yyv3709) if yyrg3709 { copy(yyv3709, yyv23709) } } else if yyl3709 != len(yyv3709) { yyv3709 = yyv3709[:yyl3709] yyc3709 = true } yyj3709 := 0 for ; yyj3709 < yyrr3709; yyj3709++ { yyh3709.ElemContainerState(yyj3709) if r.TryDecodeAsNil() { yyv3709[yyj3709] = PersistentVolumeClaim{} } else { yyv3710 := &yyv3709[yyj3709] yyv3710.CodecDecodeSelf(d) } } if yyrt3709 { for ; yyj3709 < yyl3709; yyj3709++ { yyv3709 = append(yyv3709, PersistentVolumeClaim{}) yyh3709.ElemContainerState(yyj3709) if r.TryDecodeAsNil() { yyv3709[yyj3709] = PersistentVolumeClaim{} } else { yyv3711 := &yyv3709[yyj3709] yyv3711.CodecDecodeSelf(d) } } } } else { yyj3709 := 0 for ; !r.CheckBreak(); yyj3709++ { if yyj3709 >= len(yyv3709) { yyv3709 = append(yyv3709, PersistentVolumeClaim{}) // var yyz3709 PersistentVolumeClaim yyc3709 = true } yyh3709.ElemContainerState(yyj3709) if yyj3709 < len(yyv3709) { if r.TryDecodeAsNil() { yyv3709[yyj3709] = PersistentVolumeClaim{} } else { yyv3712 := &yyv3709[yyj3709] yyv3712.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3709 < len(yyv3709) { yyv3709 = yyv3709[:yyj3709] yyc3709 = true } else if yyj3709 == 0 && yyv3709 == nil { yyv3709 = []PersistentVolumeClaim{} yyc3709 = true } } yyh3709.End() if yyc3709 { *v = yyv3709 } } 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 _, yyv3713 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3714 := &yyv3713 yy3714.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 yyv3715 := *v yyh3715, yyl3715 := z.DecSliceHelperStart() var yyc3715 bool if yyl3715 == 0 { if yyv3715 == nil { yyv3715 = []DownwardAPIVolumeFile{} yyc3715 = true } else if len(yyv3715) != 0 { yyv3715 = yyv3715[:0] yyc3715 = true } } else if yyl3715 > 0 { var yyrr3715, yyrl3715 int var yyrt3715 bool if yyl3715 > cap(yyv3715) { yyrg3715 := len(yyv3715) > 0 yyv23715 := yyv3715 yyrl3715, yyrt3715 = z.DecInferLen(yyl3715, z.DecBasicHandle().MaxInitLen, 48) if yyrt3715 { if yyrl3715 <= cap(yyv3715) { yyv3715 = yyv3715[:yyrl3715] } else { yyv3715 = make([]DownwardAPIVolumeFile, yyrl3715) } } else { yyv3715 = make([]DownwardAPIVolumeFile, yyrl3715) } yyc3715 = true yyrr3715 = len(yyv3715) if yyrg3715 { copy(yyv3715, yyv23715) } } else if yyl3715 != len(yyv3715) { yyv3715 = yyv3715[:yyl3715] yyc3715 = true } yyj3715 := 0 for ; yyj3715 < yyrr3715; yyj3715++ { yyh3715.ElemContainerState(yyj3715) if r.TryDecodeAsNil() { yyv3715[yyj3715] = DownwardAPIVolumeFile{} } else { yyv3716 := &yyv3715[yyj3715] yyv3716.CodecDecodeSelf(d) } } if yyrt3715 { for ; yyj3715 < yyl3715; yyj3715++ { yyv3715 = append(yyv3715, DownwardAPIVolumeFile{}) yyh3715.ElemContainerState(yyj3715) if r.TryDecodeAsNil() { yyv3715[yyj3715] = DownwardAPIVolumeFile{} } else { yyv3717 := &yyv3715[yyj3715] yyv3717.CodecDecodeSelf(d) } } } } else { yyj3715 := 0 for ; !r.CheckBreak(); yyj3715++ { if yyj3715 >= len(yyv3715) { yyv3715 = append(yyv3715, DownwardAPIVolumeFile{}) // var yyz3715 DownwardAPIVolumeFile yyc3715 = true } yyh3715.ElemContainerState(yyj3715) if yyj3715 < len(yyv3715) { if r.TryDecodeAsNil() { yyv3715[yyj3715] = DownwardAPIVolumeFile{} } else { yyv3718 := &yyv3715[yyj3715] yyv3718.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3715 < len(yyv3715) { yyv3715 = yyv3715[:yyj3715] yyc3715 = true } else if yyj3715 == 0 && yyv3715 == nil { yyv3715 = []DownwardAPIVolumeFile{} yyc3715 = true } } yyh3715.End() if yyc3715 { *v = yyv3715 } } 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 _, yyv3719 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3719.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 yyv3720 := *v yyh3720, yyl3720 := z.DecSliceHelperStart() var yyc3720 bool if yyl3720 == 0 { if yyv3720 == nil { yyv3720 = []Capability{} yyc3720 = true } else if len(yyv3720) != 0 { yyv3720 = yyv3720[:0] yyc3720 = true } } else if yyl3720 > 0 { var yyrr3720, yyrl3720 int var yyrt3720 bool if yyl3720 > cap(yyv3720) { yyrl3720, yyrt3720 = z.DecInferLen(yyl3720, z.DecBasicHandle().MaxInitLen, 16) if yyrt3720 { if yyrl3720 <= cap(yyv3720) { yyv3720 = yyv3720[:yyrl3720] } else { yyv3720 = make([]Capability, yyrl3720) } } else { yyv3720 = make([]Capability, yyrl3720) } yyc3720 = true yyrr3720 = len(yyv3720) } else if yyl3720 != len(yyv3720) { yyv3720 = yyv3720[:yyl3720] yyc3720 = true } yyj3720 := 0 for ; yyj3720 < yyrr3720; yyj3720++ { yyh3720.ElemContainerState(yyj3720) if r.TryDecodeAsNil() { yyv3720[yyj3720] = "" } else { yyv3720[yyj3720] = Capability(r.DecodeString()) } } if yyrt3720 { for ; yyj3720 < yyl3720; yyj3720++ { yyv3720 = append(yyv3720, "") yyh3720.ElemContainerState(yyj3720) if r.TryDecodeAsNil() { yyv3720[yyj3720] = "" } else { yyv3720[yyj3720] = Capability(r.DecodeString()) } } } } else { yyj3720 := 0 for ; !r.CheckBreak(); yyj3720++ { if yyj3720 >= len(yyv3720) { yyv3720 = append(yyv3720, "") // var yyz3720 Capability yyc3720 = true } yyh3720.ElemContainerState(yyj3720) if yyj3720 < len(yyv3720) { if r.TryDecodeAsNil() { yyv3720[yyj3720] = "" } else { yyv3720[yyj3720] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3720 < len(yyv3720) { yyv3720 = yyv3720[:yyj3720] yyc3720 = true } else if yyj3720 == 0 && yyv3720 == nil { yyv3720 = []Capability{} yyc3720 = true } } yyh3720.End() if yyc3720 { *v = yyv3720 } } 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 _, yyv3724 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3725 := &yyv3724 yy3725.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 yyv3726 := *v yyh3726, yyl3726 := z.DecSliceHelperStart() var yyc3726 bool if yyl3726 == 0 { if yyv3726 == nil { yyv3726 = []ContainerPort{} yyc3726 = true } else if len(yyv3726) != 0 { yyv3726 = yyv3726[:0] yyc3726 = true } } else if yyl3726 > 0 { var yyrr3726, yyrl3726 int var yyrt3726 bool if yyl3726 > cap(yyv3726) { yyrg3726 := len(yyv3726) > 0 yyv23726 := yyv3726 yyrl3726, yyrt3726 = z.DecInferLen(yyl3726, z.DecBasicHandle().MaxInitLen, 64) if yyrt3726 { if yyrl3726 <= cap(yyv3726) { yyv3726 = yyv3726[:yyrl3726] } else { yyv3726 = make([]ContainerPort, yyrl3726) } } else { yyv3726 = make([]ContainerPort, yyrl3726) } yyc3726 = true yyrr3726 = len(yyv3726) if yyrg3726 { copy(yyv3726, yyv23726) } } else if yyl3726 != len(yyv3726) { yyv3726 = yyv3726[:yyl3726] yyc3726 = true } yyj3726 := 0 for ; yyj3726 < yyrr3726; yyj3726++ { yyh3726.ElemContainerState(yyj3726) if r.TryDecodeAsNil() { yyv3726[yyj3726] = ContainerPort{} } else { yyv3727 := &yyv3726[yyj3726] yyv3727.CodecDecodeSelf(d) } } if yyrt3726 { for ; yyj3726 < yyl3726; yyj3726++ { yyv3726 = append(yyv3726, ContainerPort{}) yyh3726.ElemContainerState(yyj3726) if r.TryDecodeAsNil() { yyv3726[yyj3726] = ContainerPort{} } else { yyv3728 := &yyv3726[yyj3726] yyv3728.CodecDecodeSelf(d) } } } } else { yyj3726 := 0 for ; !r.CheckBreak(); yyj3726++ { if yyj3726 >= len(yyv3726) { yyv3726 = append(yyv3726, ContainerPort{}) // var yyz3726 ContainerPort yyc3726 = true } yyh3726.ElemContainerState(yyj3726) if yyj3726 < len(yyv3726) { if r.TryDecodeAsNil() { yyv3726[yyj3726] = ContainerPort{} } else { yyv3729 := &yyv3726[yyj3726] yyv3729.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3726 < len(yyv3726) { yyv3726 = yyv3726[:yyj3726] yyc3726 = true } else if yyj3726 == 0 && yyv3726 == nil { yyv3726 = []ContainerPort{} yyc3726 = true } } yyh3726.End() if yyc3726 { *v = yyv3726 } } 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 _, yyv3730 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3731 := &yyv3730 yy3731.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 yyv3732 := *v yyh3732, yyl3732 := z.DecSliceHelperStart() var yyc3732 bool if yyl3732 == 0 { if yyv3732 == nil { yyv3732 = []EnvVar{} yyc3732 = true } else if len(yyv3732) != 0 { yyv3732 = yyv3732[:0] yyc3732 = true } } else if yyl3732 > 0 { var yyrr3732, yyrl3732 int var yyrt3732 bool if yyl3732 > cap(yyv3732) { yyrg3732 := len(yyv3732) > 0 yyv23732 := yyv3732 yyrl3732, yyrt3732 = z.DecInferLen(yyl3732, z.DecBasicHandle().MaxInitLen, 40) if yyrt3732 { if yyrl3732 <= cap(yyv3732) { yyv3732 = yyv3732[:yyrl3732] } else { yyv3732 = make([]EnvVar, yyrl3732) } } else { yyv3732 = make([]EnvVar, yyrl3732) } yyc3732 = true yyrr3732 = len(yyv3732) if yyrg3732 { copy(yyv3732, yyv23732) } } else if yyl3732 != len(yyv3732) { yyv3732 = yyv3732[:yyl3732] yyc3732 = true } yyj3732 := 0 for ; yyj3732 < yyrr3732; yyj3732++ { yyh3732.ElemContainerState(yyj3732) if r.TryDecodeAsNil() { yyv3732[yyj3732] = EnvVar{} } else { yyv3733 := &yyv3732[yyj3732] yyv3733.CodecDecodeSelf(d) } } if yyrt3732 { for ; yyj3732 < yyl3732; yyj3732++ { yyv3732 = append(yyv3732, EnvVar{}) yyh3732.ElemContainerState(yyj3732) if r.TryDecodeAsNil() { yyv3732[yyj3732] = EnvVar{} } else { yyv3734 := &yyv3732[yyj3732] yyv3734.CodecDecodeSelf(d) } } } } else { yyj3732 := 0 for ; !r.CheckBreak(); yyj3732++ { if yyj3732 >= len(yyv3732) { yyv3732 = append(yyv3732, EnvVar{}) // var yyz3732 EnvVar yyc3732 = true } yyh3732.ElemContainerState(yyj3732) if yyj3732 < len(yyv3732) { if r.TryDecodeAsNil() { yyv3732[yyj3732] = EnvVar{} } else { yyv3735 := &yyv3732[yyj3732] yyv3735.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3732 < len(yyv3732) { yyv3732 = yyv3732[:yyj3732] yyc3732 = true } else if yyj3732 == 0 && yyv3732 == nil { yyv3732 = []EnvVar{} yyc3732 = true } } yyh3732.End() if yyc3732 { *v = yyv3732 } } 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 _, yyv3736 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3737 := &yyv3736 yy3737.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 yyv3738 := *v yyh3738, yyl3738 := z.DecSliceHelperStart() var yyc3738 bool if yyl3738 == 0 { if yyv3738 == nil { yyv3738 = []VolumeMount{} yyc3738 = true } else if len(yyv3738) != 0 { yyv3738 = yyv3738[:0] yyc3738 = true } } else if yyl3738 > 0 { var yyrr3738, yyrl3738 int var yyrt3738 bool if yyl3738 > cap(yyv3738) { yyrg3738 := len(yyv3738) > 0 yyv23738 := yyv3738 yyrl3738, yyrt3738 = z.DecInferLen(yyl3738, z.DecBasicHandle().MaxInitLen, 40) if yyrt3738 { if yyrl3738 <= cap(yyv3738) { yyv3738 = yyv3738[:yyrl3738] } else { yyv3738 = make([]VolumeMount, yyrl3738) } } else { yyv3738 = make([]VolumeMount, yyrl3738) } yyc3738 = true yyrr3738 = len(yyv3738) if yyrg3738 { copy(yyv3738, yyv23738) } } else if yyl3738 != len(yyv3738) { yyv3738 = yyv3738[:yyl3738] yyc3738 = true } yyj3738 := 0 for ; yyj3738 < yyrr3738; yyj3738++ { yyh3738.ElemContainerState(yyj3738) if r.TryDecodeAsNil() { yyv3738[yyj3738] = VolumeMount{} } else { yyv3739 := &yyv3738[yyj3738] yyv3739.CodecDecodeSelf(d) } } if yyrt3738 { for ; yyj3738 < yyl3738; yyj3738++ { yyv3738 = append(yyv3738, VolumeMount{}) yyh3738.ElemContainerState(yyj3738) if r.TryDecodeAsNil() { yyv3738[yyj3738] = VolumeMount{} } else { yyv3740 := &yyv3738[yyj3738] yyv3740.CodecDecodeSelf(d) } } } } else { yyj3738 := 0 for ; !r.CheckBreak(); yyj3738++ { if yyj3738 >= len(yyv3738) { yyv3738 = append(yyv3738, VolumeMount{}) // var yyz3738 VolumeMount yyc3738 = true } yyh3738.ElemContainerState(yyj3738) if yyj3738 < len(yyv3738) { if r.TryDecodeAsNil() { yyv3738[yyj3738] = VolumeMount{} } else { yyv3741 := &yyv3738[yyj3738] yyv3741.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3738 < len(yyv3738) { yyv3738 = yyv3738[:yyj3738] yyc3738 = true } else if yyj3738 == 0 && yyv3738 == nil { yyv3738 = []VolumeMount{} yyc3738 = true } } yyh3738.End() if yyc3738 { *v = yyv3738 } } 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 _, yyv3742 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3743 := &yyv3742 yy3743.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 yyv3744 := *v yyh3744, yyl3744 := z.DecSliceHelperStart() var yyc3744 bool if yyl3744 == 0 { if yyv3744 == nil { yyv3744 = []Pod{} yyc3744 = true } else if len(yyv3744) != 0 { yyv3744 = yyv3744[:0] yyc3744 = true } } else if yyl3744 > 0 { var yyrr3744, yyrl3744 int var yyrt3744 bool if yyl3744 > cap(yyv3744) { yyrg3744 := len(yyv3744) > 0 yyv23744 := yyv3744 yyrl3744, yyrt3744 = z.DecInferLen(yyl3744, z.DecBasicHandle().MaxInitLen, 496) if yyrt3744 { if yyrl3744 <= cap(yyv3744) { yyv3744 = yyv3744[:yyrl3744] } else { yyv3744 = make([]Pod, yyrl3744) } } else { yyv3744 = make([]Pod, yyrl3744) } yyc3744 = true yyrr3744 = len(yyv3744) if yyrg3744 { copy(yyv3744, yyv23744) } } else if yyl3744 != len(yyv3744) { yyv3744 = yyv3744[:yyl3744] yyc3744 = true } yyj3744 := 0 for ; yyj3744 < yyrr3744; yyj3744++ { yyh3744.ElemContainerState(yyj3744) if r.TryDecodeAsNil() { yyv3744[yyj3744] = Pod{} } else { yyv3745 := &yyv3744[yyj3744] yyv3745.CodecDecodeSelf(d) } } if yyrt3744 { for ; yyj3744 < yyl3744; yyj3744++ { yyv3744 = append(yyv3744, Pod{}) yyh3744.ElemContainerState(yyj3744) if r.TryDecodeAsNil() { yyv3744[yyj3744] = Pod{} } else { yyv3746 := &yyv3744[yyj3744] yyv3746.CodecDecodeSelf(d) } } } } else { yyj3744 := 0 for ; !r.CheckBreak(); yyj3744++ { if yyj3744 >= len(yyv3744) { yyv3744 = append(yyv3744, Pod{}) // var yyz3744 Pod yyc3744 = true } yyh3744.ElemContainerState(yyj3744) if yyj3744 < len(yyv3744) { if r.TryDecodeAsNil() { yyv3744[yyj3744] = Pod{} } else { yyv3747 := &yyv3744[yyj3744] yyv3747.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3744 < len(yyv3744) { yyv3744 = yyv3744[:yyj3744] yyc3744 = true } else if yyj3744 == 0 && yyv3744 == nil { yyv3744 = []Pod{} yyc3744 = true } } yyh3744.End() if yyc3744 { *v = yyv3744 } } 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 _, yyv3748 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3749 := &yyv3748 yy3749.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 yyv3750 := *v yyh3750, yyl3750 := z.DecSliceHelperStart() var yyc3750 bool if yyl3750 == 0 { if yyv3750 == nil { yyv3750 = []Volume{} yyc3750 = true } else if len(yyv3750) != 0 { yyv3750 = yyv3750[:0] yyc3750 = true } } else if yyl3750 > 0 { var yyrr3750, yyrl3750 int var yyrt3750 bool if yyl3750 > cap(yyv3750) { yyrg3750 := len(yyv3750) > 0 yyv23750 := yyv3750 yyrl3750, yyrt3750 = z.DecInferLen(yyl3750, z.DecBasicHandle().MaxInitLen, 152) if yyrt3750 { if yyrl3750 <= cap(yyv3750) { yyv3750 = yyv3750[:yyrl3750] } else { yyv3750 = make([]Volume, yyrl3750) } } else { yyv3750 = make([]Volume, yyrl3750) } yyc3750 = true yyrr3750 = len(yyv3750) if yyrg3750 { copy(yyv3750, yyv23750) } } else if yyl3750 != len(yyv3750) { yyv3750 = yyv3750[:yyl3750] yyc3750 = true } yyj3750 := 0 for ; yyj3750 < yyrr3750; yyj3750++ { yyh3750.ElemContainerState(yyj3750) if r.TryDecodeAsNil() { yyv3750[yyj3750] = Volume{} } else { yyv3751 := &yyv3750[yyj3750] yyv3751.CodecDecodeSelf(d) } } if yyrt3750 { for ; yyj3750 < yyl3750; yyj3750++ { yyv3750 = append(yyv3750, Volume{}) yyh3750.ElemContainerState(yyj3750) if r.TryDecodeAsNil() { yyv3750[yyj3750] = Volume{} } else { yyv3752 := &yyv3750[yyj3750] yyv3752.CodecDecodeSelf(d) } } } } else { yyj3750 := 0 for ; !r.CheckBreak(); yyj3750++ { if yyj3750 >= len(yyv3750) { yyv3750 = append(yyv3750, Volume{}) // var yyz3750 Volume yyc3750 = true } yyh3750.ElemContainerState(yyj3750) if yyj3750 < len(yyv3750) { if r.TryDecodeAsNil() { yyv3750[yyj3750] = Volume{} } else { yyv3753 := &yyv3750[yyj3750] yyv3753.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3750 < len(yyv3750) { yyv3750 = yyv3750[:yyj3750] yyc3750 = true } else if yyj3750 == 0 && yyv3750 == nil { yyv3750 = []Volume{} yyc3750 = true } } yyh3750.End() if yyc3750 { *v = yyv3750 } } 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 _, yyv3754 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3755 := &yyv3754 yy3755.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 yyv3756 := *v yyh3756, yyl3756 := z.DecSliceHelperStart() var yyc3756 bool if yyl3756 == 0 { if yyv3756 == nil { yyv3756 = []Container{} yyc3756 = true } else if len(yyv3756) != 0 { yyv3756 = yyv3756[:0] yyc3756 = true } } else if yyl3756 > 0 { var yyrr3756, yyrl3756 int var yyrt3756 bool if yyl3756 > cap(yyv3756) { yyrg3756 := len(yyv3756) > 0 yyv23756 := yyv3756 yyrl3756, yyrt3756 = z.DecInferLen(yyl3756, z.DecBasicHandle().MaxInitLen, 256) if yyrt3756 { if yyrl3756 <= cap(yyv3756) { yyv3756 = yyv3756[:yyrl3756] } else { yyv3756 = make([]Container, yyrl3756) } } else { yyv3756 = make([]Container, yyrl3756) } yyc3756 = true yyrr3756 = len(yyv3756) if yyrg3756 { copy(yyv3756, yyv23756) } } else if yyl3756 != len(yyv3756) { yyv3756 = yyv3756[:yyl3756] yyc3756 = true } yyj3756 := 0 for ; yyj3756 < yyrr3756; yyj3756++ { yyh3756.ElemContainerState(yyj3756) if r.TryDecodeAsNil() { yyv3756[yyj3756] = Container{} } else { yyv3757 := &yyv3756[yyj3756] yyv3757.CodecDecodeSelf(d) } } if yyrt3756 { for ; yyj3756 < yyl3756; yyj3756++ { yyv3756 = append(yyv3756, Container{}) yyh3756.ElemContainerState(yyj3756) if r.TryDecodeAsNil() { yyv3756[yyj3756] = Container{} } else { yyv3758 := &yyv3756[yyj3756] yyv3758.CodecDecodeSelf(d) } } } } else { yyj3756 := 0 for ; !r.CheckBreak(); yyj3756++ { if yyj3756 >= len(yyv3756) { yyv3756 = append(yyv3756, Container{}) // var yyz3756 Container yyc3756 = true } yyh3756.ElemContainerState(yyj3756) if yyj3756 < len(yyv3756) { if r.TryDecodeAsNil() { yyv3756[yyj3756] = Container{} } else { yyv3759 := &yyv3756[yyj3756] yyv3759.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3756 < len(yyv3756) { yyv3756 = yyv3756[:yyj3756] yyc3756 = true } else if yyj3756 == 0 && yyv3756 == nil { yyv3756 = []Container{} yyc3756 = true } } yyh3756.End() if yyc3756 { *v = yyv3756 } } 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 _, yyv3760 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3761 := &yyv3760 yy3761.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 yyv3762 := *v yyh3762, yyl3762 := z.DecSliceHelperStart() var yyc3762 bool if yyl3762 == 0 { if yyv3762 == nil { yyv3762 = []LocalObjectReference{} yyc3762 = true } else if len(yyv3762) != 0 { yyv3762 = yyv3762[:0] yyc3762 = true } } else if yyl3762 > 0 { var yyrr3762, yyrl3762 int var yyrt3762 bool if yyl3762 > cap(yyv3762) { yyrg3762 := len(yyv3762) > 0 yyv23762 := yyv3762 yyrl3762, yyrt3762 = z.DecInferLen(yyl3762, z.DecBasicHandle().MaxInitLen, 16) if yyrt3762 { if yyrl3762 <= cap(yyv3762) { yyv3762 = yyv3762[:yyrl3762] } else { yyv3762 = make([]LocalObjectReference, yyrl3762) } } else { yyv3762 = make([]LocalObjectReference, yyrl3762) } yyc3762 = true yyrr3762 = len(yyv3762) if yyrg3762 { copy(yyv3762, yyv23762) } } else if yyl3762 != len(yyv3762) { yyv3762 = yyv3762[:yyl3762] yyc3762 = true } yyj3762 := 0 for ; yyj3762 < yyrr3762; yyj3762++ { yyh3762.ElemContainerState(yyj3762) if r.TryDecodeAsNil() { yyv3762[yyj3762] = LocalObjectReference{} } else { yyv3763 := &yyv3762[yyj3762] yyv3763.CodecDecodeSelf(d) } } if yyrt3762 { for ; yyj3762 < yyl3762; yyj3762++ { yyv3762 = append(yyv3762, LocalObjectReference{}) yyh3762.ElemContainerState(yyj3762) if r.TryDecodeAsNil() { yyv3762[yyj3762] = LocalObjectReference{} } else { yyv3764 := &yyv3762[yyj3762] yyv3764.CodecDecodeSelf(d) } } } } else { yyj3762 := 0 for ; !r.CheckBreak(); yyj3762++ { if yyj3762 >= len(yyv3762) { yyv3762 = append(yyv3762, LocalObjectReference{}) // var yyz3762 LocalObjectReference yyc3762 = true } yyh3762.ElemContainerState(yyj3762) if yyj3762 < len(yyv3762) { if r.TryDecodeAsNil() { yyv3762[yyj3762] = LocalObjectReference{} } else { yyv3765 := &yyv3762[yyj3762] yyv3765.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3762 < len(yyv3762) { yyv3762 = yyv3762[:yyj3762] yyc3762 = true } else if yyj3762 == 0 && yyv3762 == nil { yyv3762 = []LocalObjectReference{} yyc3762 = true } } yyh3762.End() if yyc3762 { *v = yyv3762 } } 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 _, yyv3766 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3767 := &yyv3766 yy3767.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 yyv3768 := *v yyh3768, yyl3768 := z.DecSliceHelperStart() var yyc3768 bool if yyl3768 == 0 { if yyv3768 == nil { yyv3768 = []PodCondition{} yyc3768 = true } else if len(yyv3768) != 0 { yyv3768 = yyv3768[:0] yyc3768 = true } } else if yyl3768 > 0 { var yyrr3768, yyrl3768 int var yyrt3768 bool if yyl3768 > cap(yyv3768) { yyrg3768 := len(yyv3768) > 0 yyv23768 := yyv3768 yyrl3768, yyrt3768 = z.DecInferLen(yyl3768, z.DecBasicHandle().MaxInitLen, 112) if yyrt3768 { if yyrl3768 <= cap(yyv3768) { yyv3768 = yyv3768[:yyrl3768] } else { yyv3768 = make([]PodCondition, yyrl3768) } } else { yyv3768 = make([]PodCondition, yyrl3768) } yyc3768 = true yyrr3768 = len(yyv3768) if yyrg3768 { copy(yyv3768, yyv23768) } } else if yyl3768 != len(yyv3768) { yyv3768 = yyv3768[:yyl3768] yyc3768 = true } yyj3768 := 0 for ; yyj3768 < yyrr3768; yyj3768++ { yyh3768.ElemContainerState(yyj3768) if r.TryDecodeAsNil() { yyv3768[yyj3768] = PodCondition{} } else { yyv3769 := &yyv3768[yyj3768] yyv3769.CodecDecodeSelf(d) } } if yyrt3768 { for ; yyj3768 < yyl3768; yyj3768++ { yyv3768 = append(yyv3768, PodCondition{}) yyh3768.ElemContainerState(yyj3768) if r.TryDecodeAsNil() { yyv3768[yyj3768] = PodCondition{} } else { yyv3770 := &yyv3768[yyj3768] yyv3770.CodecDecodeSelf(d) } } } } else { yyj3768 := 0 for ; !r.CheckBreak(); yyj3768++ { if yyj3768 >= len(yyv3768) { yyv3768 = append(yyv3768, PodCondition{}) // var yyz3768 PodCondition yyc3768 = true } yyh3768.ElemContainerState(yyj3768) if yyj3768 < len(yyv3768) { if r.TryDecodeAsNil() { yyv3768[yyj3768] = PodCondition{} } else { yyv3771 := &yyv3768[yyj3768] yyv3771.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3768 < len(yyv3768) { yyv3768 = yyv3768[:yyj3768] yyc3768 = true } else if yyj3768 == 0 && yyv3768 == nil { yyv3768 = []PodCondition{} yyc3768 = true } } yyh3768.End() if yyc3768 { *v = yyv3768 } } 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 _, yyv3772 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3773 := &yyv3772 yy3773.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 yyv3774 := *v yyh3774, yyl3774 := z.DecSliceHelperStart() var yyc3774 bool if yyl3774 == 0 { if yyv3774 == nil { yyv3774 = []ContainerStatus{} yyc3774 = true } else if len(yyv3774) != 0 { yyv3774 = yyv3774[:0] yyc3774 = true } } else if yyl3774 > 0 { var yyrr3774, yyrl3774 int var yyrt3774 bool if yyl3774 > cap(yyv3774) { yyrg3774 := len(yyv3774) > 0 yyv23774 := yyv3774 yyrl3774, yyrt3774 = z.DecInferLen(yyl3774, z.DecBasicHandle().MaxInitLen, 128) if yyrt3774 { if yyrl3774 <= cap(yyv3774) { yyv3774 = yyv3774[:yyrl3774] } else { yyv3774 = make([]ContainerStatus, yyrl3774) } } else { yyv3774 = make([]ContainerStatus, yyrl3774) } yyc3774 = true yyrr3774 = len(yyv3774) if yyrg3774 { copy(yyv3774, yyv23774) } } else if yyl3774 != len(yyv3774) { yyv3774 = yyv3774[:yyl3774] yyc3774 = true } yyj3774 := 0 for ; yyj3774 < yyrr3774; yyj3774++ { yyh3774.ElemContainerState(yyj3774) if r.TryDecodeAsNil() { yyv3774[yyj3774] = ContainerStatus{} } else { yyv3775 := &yyv3774[yyj3774] yyv3775.CodecDecodeSelf(d) } } if yyrt3774 { for ; yyj3774 < yyl3774; yyj3774++ { yyv3774 = append(yyv3774, ContainerStatus{}) yyh3774.ElemContainerState(yyj3774) if r.TryDecodeAsNil() { yyv3774[yyj3774] = ContainerStatus{} } else { yyv3776 := &yyv3774[yyj3774] yyv3776.CodecDecodeSelf(d) } } } } else { yyj3774 := 0 for ; !r.CheckBreak(); yyj3774++ { if yyj3774 >= len(yyv3774) { yyv3774 = append(yyv3774, ContainerStatus{}) // var yyz3774 ContainerStatus yyc3774 = true } yyh3774.ElemContainerState(yyj3774) if yyj3774 < len(yyv3774) { if r.TryDecodeAsNil() { yyv3774[yyj3774] = ContainerStatus{} } else { yyv3777 := &yyv3774[yyj3774] yyv3777.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3774 < len(yyv3774) { yyv3774 = yyv3774[:yyj3774] yyc3774 = true } else if yyj3774 == 0 && yyv3774 == nil { yyv3774 = []ContainerStatus{} yyc3774 = true } } yyh3774.End() if yyc3774 { *v = yyv3774 } } 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 _, yyv3778 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3779 := &yyv3778 yy3779.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 yyv3780 := *v yyh3780, yyl3780 := z.DecSliceHelperStart() var yyc3780 bool if yyl3780 == 0 { if yyv3780 == nil { yyv3780 = []PodTemplate{} yyc3780 = true } else if len(yyv3780) != 0 { yyv3780 = yyv3780[:0] yyc3780 = true } } else if yyl3780 > 0 { var yyrr3780, yyrl3780 int var yyrt3780 bool if yyl3780 > cap(yyv3780) { yyrg3780 := len(yyv3780) > 0 yyv23780 := yyv3780 yyrl3780, yyrt3780 = z.DecInferLen(yyl3780, z.DecBasicHandle().MaxInitLen, 520) if yyrt3780 { if yyrl3780 <= cap(yyv3780) { yyv3780 = yyv3780[:yyrl3780] } else { yyv3780 = make([]PodTemplate, yyrl3780) } } else { yyv3780 = make([]PodTemplate, yyrl3780) } yyc3780 = true yyrr3780 = len(yyv3780) if yyrg3780 { copy(yyv3780, yyv23780) } } else if yyl3780 != len(yyv3780) { yyv3780 = yyv3780[:yyl3780] yyc3780 = true } yyj3780 := 0 for ; yyj3780 < yyrr3780; yyj3780++ { yyh3780.ElemContainerState(yyj3780) if r.TryDecodeAsNil() { yyv3780[yyj3780] = PodTemplate{} } else { yyv3781 := &yyv3780[yyj3780] yyv3781.CodecDecodeSelf(d) } } if yyrt3780 { for ; yyj3780 < yyl3780; yyj3780++ { yyv3780 = append(yyv3780, PodTemplate{}) yyh3780.ElemContainerState(yyj3780) if r.TryDecodeAsNil() { yyv3780[yyj3780] = PodTemplate{} } else { yyv3782 := &yyv3780[yyj3780] yyv3782.CodecDecodeSelf(d) } } } } else { yyj3780 := 0 for ; !r.CheckBreak(); yyj3780++ { if yyj3780 >= len(yyv3780) { yyv3780 = append(yyv3780, PodTemplate{}) // var yyz3780 PodTemplate yyc3780 = true } yyh3780.ElemContainerState(yyj3780) if yyj3780 < len(yyv3780) { if r.TryDecodeAsNil() { yyv3780[yyj3780] = PodTemplate{} } else { yyv3783 := &yyv3780[yyj3780] yyv3783.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3780 < len(yyv3780) { yyv3780 = yyv3780[:yyj3780] yyc3780 = true } else if yyj3780 == 0 && yyv3780 == nil { yyv3780 = []PodTemplate{} yyc3780 = true } } yyh3780.End() if yyc3780 { *v = yyv3780 } } 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 _, yyv3784 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3785 := &yyv3784 yy3785.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 yyv3786 := *v yyh3786, yyl3786 := z.DecSliceHelperStart() var yyc3786 bool if yyl3786 == 0 { if yyv3786 == nil { yyv3786 = []ReplicationController{} yyc3786 = true } else if len(yyv3786) != 0 { yyv3786 = yyv3786[:0] yyc3786 = true } } else if yyl3786 > 0 { var yyrr3786, yyrl3786 int var yyrt3786 bool if yyl3786 > cap(yyv3786) { yyrg3786 := len(yyv3786) > 0 yyv23786 := yyv3786 yyrl3786, yyrt3786 = z.DecInferLen(yyl3786, z.DecBasicHandle().MaxInitLen, 232) if yyrt3786 { if yyrl3786 <= cap(yyv3786) { yyv3786 = yyv3786[:yyrl3786] } else { yyv3786 = make([]ReplicationController, yyrl3786) } } else { yyv3786 = make([]ReplicationController, yyrl3786) } yyc3786 = true yyrr3786 = len(yyv3786) if yyrg3786 { copy(yyv3786, yyv23786) } } else if yyl3786 != len(yyv3786) { yyv3786 = yyv3786[:yyl3786] yyc3786 = true } yyj3786 := 0 for ; yyj3786 < yyrr3786; yyj3786++ { yyh3786.ElemContainerState(yyj3786) if r.TryDecodeAsNil() { yyv3786[yyj3786] = ReplicationController{} } else { yyv3787 := &yyv3786[yyj3786] yyv3787.CodecDecodeSelf(d) } } if yyrt3786 { for ; yyj3786 < yyl3786; yyj3786++ { yyv3786 = append(yyv3786, ReplicationController{}) yyh3786.ElemContainerState(yyj3786) if r.TryDecodeAsNil() { yyv3786[yyj3786] = ReplicationController{} } else { yyv3788 := &yyv3786[yyj3786] yyv3788.CodecDecodeSelf(d) } } } } else { yyj3786 := 0 for ; !r.CheckBreak(); yyj3786++ { if yyj3786 >= len(yyv3786) { yyv3786 = append(yyv3786, ReplicationController{}) // var yyz3786 ReplicationController yyc3786 = true } yyh3786.ElemContainerState(yyj3786) if yyj3786 < len(yyv3786) { if r.TryDecodeAsNil() { yyv3786[yyj3786] = ReplicationController{} } else { yyv3789 := &yyv3786[yyj3786] yyv3789.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3786 < len(yyv3786) { yyv3786 = yyv3786[:yyj3786] yyc3786 = true } else if yyj3786 == 0 && yyv3786 == nil { yyv3786 = []ReplicationController{} yyc3786 = true } } yyh3786.End() if yyc3786 { *v = yyv3786 } } 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 _, yyv3790 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3791 := &yyv3790 yy3791.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 yyv3792 := *v yyh3792, yyl3792 := z.DecSliceHelperStart() var yyc3792 bool if yyl3792 == 0 { if yyv3792 == nil { yyv3792 = []Service{} yyc3792 = true } else if len(yyv3792) != 0 { yyv3792 = yyv3792[:0] yyc3792 = true } } else if yyl3792 > 0 { var yyrr3792, yyrl3792 int var yyrt3792 bool if yyl3792 > cap(yyv3792) { yyrg3792 := len(yyv3792) > 0 yyv23792 := yyv3792 yyrl3792, yyrt3792 = z.DecInferLen(yyl3792, z.DecBasicHandle().MaxInitLen, 336) if yyrt3792 { if yyrl3792 <= cap(yyv3792) { yyv3792 = yyv3792[:yyrl3792] } else { yyv3792 = make([]Service, yyrl3792) } } else { yyv3792 = make([]Service, yyrl3792) } yyc3792 = true yyrr3792 = len(yyv3792) if yyrg3792 { copy(yyv3792, yyv23792) } } else if yyl3792 != len(yyv3792) { yyv3792 = yyv3792[:yyl3792] yyc3792 = true } yyj3792 := 0 for ; yyj3792 < yyrr3792; yyj3792++ { yyh3792.ElemContainerState(yyj3792) if r.TryDecodeAsNil() { yyv3792[yyj3792] = Service{} } else { yyv3793 := &yyv3792[yyj3792] yyv3793.CodecDecodeSelf(d) } } if yyrt3792 { for ; yyj3792 < yyl3792; yyj3792++ { yyv3792 = append(yyv3792, Service{}) yyh3792.ElemContainerState(yyj3792) if r.TryDecodeAsNil() { yyv3792[yyj3792] = Service{} } else { yyv3794 := &yyv3792[yyj3792] yyv3794.CodecDecodeSelf(d) } } } } else { yyj3792 := 0 for ; !r.CheckBreak(); yyj3792++ { if yyj3792 >= len(yyv3792) { yyv3792 = append(yyv3792, Service{}) // var yyz3792 Service yyc3792 = true } yyh3792.ElemContainerState(yyj3792) if yyj3792 < len(yyv3792) { if r.TryDecodeAsNil() { yyv3792[yyj3792] = Service{} } else { yyv3795 := &yyv3792[yyj3792] yyv3795.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3792 < len(yyv3792) { yyv3792 = yyv3792[:yyj3792] yyc3792 = true } else if yyj3792 == 0 && yyv3792 == nil { yyv3792 = []Service{} yyc3792 = true } } yyh3792.End() if yyc3792 { *v = yyv3792 } } 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 _, yyv3796 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3797 := &yyv3796 yy3797.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 yyv3798 := *v yyh3798, yyl3798 := z.DecSliceHelperStart() var yyc3798 bool if yyl3798 == 0 { if yyv3798 == nil { yyv3798 = []LoadBalancerIngress{} yyc3798 = true } else if len(yyv3798) != 0 { yyv3798 = yyv3798[:0] yyc3798 = true } } else if yyl3798 > 0 { var yyrr3798, yyrl3798 int var yyrt3798 bool if yyl3798 > cap(yyv3798) { yyrg3798 := len(yyv3798) > 0 yyv23798 := yyv3798 yyrl3798, yyrt3798 = z.DecInferLen(yyl3798, z.DecBasicHandle().MaxInitLen, 32) if yyrt3798 { if yyrl3798 <= cap(yyv3798) { yyv3798 = yyv3798[:yyrl3798] } else { yyv3798 = make([]LoadBalancerIngress, yyrl3798) } } else { yyv3798 = make([]LoadBalancerIngress, yyrl3798) } yyc3798 = true yyrr3798 = len(yyv3798) if yyrg3798 { copy(yyv3798, yyv23798) } } else if yyl3798 != len(yyv3798) { yyv3798 = yyv3798[:yyl3798] yyc3798 = true } yyj3798 := 0 for ; yyj3798 < yyrr3798; yyj3798++ { yyh3798.ElemContainerState(yyj3798) if r.TryDecodeAsNil() { yyv3798[yyj3798] = LoadBalancerIngress{} } else { yyv3799 := &yyv3798[yyj3798] yyv3799.CodecDecodeSelf(d) } } if yyrt3798 { for ; yyj3798 < yyl3798; yyj3798++ { yyv3798 = append(yyv3798, LoadBalancerIngress{}) yyh3798.ElemContainerState(yyj3798) if r.TryDecodeAsNil() { yyv3798[yyj3798] = LoadBalancerIngress{} } else { yyv3800 := &yyv3798[yyj3798] yyv3800.CodecDecodeSelf(d) } } } } else { yyj3798 := 0 for ; !r.CheckBreak(); yyj3798++ { if yyj3798 >= len(yyv3798) { yyv3798 = append(yyv3798, LoadBalancerIngress{}) // var yyz3798 LoadBalancerIngress yyc3798 = true } yyh3798.ElemContainerState(yyj3798) if yyj3798 < len(yyv3798) { if r.TryDecodeAsNil() { yyv3798[yyj3798] = LoadBalancerIngress{} } else { yyv3801 := &yyv3798[yyj3798] yyv3801.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3798 < len(yyv3798) { yyv3798 = yyv3798[:yyj3798] yyc3798 = true } else if yyj3798 == 0 && yyv3798 == nil { yyv3798 = []LoadBalancerIngress{} yyc3798 = true } } yyh3798.End() if yyc3798 { *v = yyv3798 } } 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 _, yyv3802 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3803 := &yyv3802 yy3803.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 yyv3804 := *v yyh3804, yyl3804 := z.DecSliceHelperStart() var yyc3804 bool if yyl3804 == 0 { if yyv3804 == nil { yyv3804 = []ServicePort{} yyc3804 = true } else if len(yyv3804) != 0 { yyv3804 = yyv3804[:0] yyc3804 = true } } else if yyl3804 > 0 { var yyrr3804, yyrl3804 int var yyrt3804 bool if yyl3804 > cap(yyv3804) { yyrg3804 := len(yyv3804) > 0 yyv23804 := yyv3804 yyrl3804, yyrt3804 = z.DecInferLen(yyl3804, z.DecBasicHandle().MaxInitLen, 80) if yyrt3804 { if yyrl3804 <= cap(yyv3804) { yyv3804 = yyv3804[:yyrl3804] } else { yyv3804 = make([]ServicePort, yyrl3804) } } else { yyv3804 = make([]ServicePort, yyrl3804) } yyc3804 = true yyrr3804 = len(yyv3804) if yyrg3804 { copy(yyv3804, yyv23804) } } else if yyl3804 != len(yyv3804) { yyv3804 = yyv3804[:yyl3804] yyc3804 = true } yyj3804 := 0 for ; yyj3804 < yyrr3804; yyj3804++ { yyh3804.ElemContainerState(yyj3804) if r.TryDecodeAsNil() { yyv3804[yyj3804] = ServicePort{} } else { yyv3805 := &yyv3804[yyj3804] yyv3805.CodecDecodeSelf(d) } } if yyrt3804 { for ; yyj3804 < yyl3804; yyj3804++ { yyv3804 = append(yyv3804, ServicePort{}) yyh3804.ElemContainerState(yyj3804) if r.TryDecodeAsNil() { yyv3804[yyj3804] = ServicePort{} } else { yyv3806 := &yyv3804[yyj3804] yyv3806.CodecDecodeSelf(d) } } } } else { yyj3804 := 0 for ; !r.CheckBreak(); yyj3804++ { if yyj3804 >= len(yyv3804) { yyv3804 = append(yyv3804, ServicePort{}) // var yyz3804 ServicePort yyc3804 = true } yyh3804.ElemContainerState(yyj3804) if yyj3804 < len(yyv3804) { if r.TryDecodeAsNil() { yyv3804[yyj3804] = ServicePort{} } else { yyv3807 := &yyv3804[yyj3804] yyv3807.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3804 < len(yyv3804) { yyv3804 = yyv3804[:yyj3804] yyc3804 = true } else if yyj3804 == 0 && yyv3804 == nil { yyv3804 = []ServicePort{} yyc3804 = true } } yyh3804.End() if yyc3804 { *v = yyv3804 } } 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 _, yyv3808 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3809 := &yyv3808 yy3809.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 yyv3810 := *v yyh3810, yyl3810 := z.DecSliceHelperStart() var yyc3810 bool if yyl3810 == 0 { if yyv3810 == nil { yyv3810 = []ObjectReference{} yyc3810 = true } else if len(yyv3810) != 0 { yyv3810 = yyv3810[:0] yyc3810 = true } } else if yyl3810 > 0 { var yyrr3810, yyrl3810 int var yyrt3810 bool if yyl3810 > cap(yyv3810) { yyrg3810 := len(yyv3810) > 0 yyv23810 := yyv3810 yyrl3810, yyrt3810 = z.DecInferLen(yyl3810, z.DecBasicHandle().MaxInitLen, 112) if yyrt3810 { if yyrl3810 <= cap(yyv3810) { yyv3810 = yyv3810[:yyrl3810] } else { yyv3810 = make([]ObjectReference, yyrl3810) } } else { yyv3810 = make([]ObjectReference, yyrl3810) } yyc3810 = true yyrr3810 = len(yyv3810) if yyrg3810 { copy(yyv3810, yyv23810) } } else if yyl3810 != len(yyv3810) { yyv3810 = yyv3810[:yyl3810] yyc3810 = true } yyj3810 := 0 for ; yyj3810 < yyrr3810; yyj3810++ { yyh3810.ElemContainerState(yyj3810) if r.TryDecodeAsNil() { yyv3810[yyj3810] = ObjectReference{} } else { yyv3811 := &yyv3810[yyj3810] yyv3811.CodecDecodeSelf(d) } } if yyrt3810 { for ; yyj3810 < yyl3810; yyj3810++ { yyv3810 = append(yyv3810, ObjectReference{}) yyh3810.ElemContainerState(yyj3810) if r.TryDecodeAsNil() { yyv3810[yyj3810] = ObjectReference{} } else { yyv3812 := &yyv3810[yyj3810] yyv3812.CodecDecodeSelf(d) } } } } else { yyj3810 := 0 for ; !r.CheckBreak(); yyj3810++ { if yyj3810 >= len(yyv3810) { yyv3810 = append(yyv3810, ObjectReference{}) // var yyz3810 ObjectReference yyc3810 = true } yyh3810.ElemContainerState(yyj3810) if yyj3810 < len(yyv3810) { if r.TryDecodeAsNil() { yyv3810[yyj3810] = ObjectReference{} } else { yyv3813 := &yyv3810[yyj3810] yyv3813.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3810 < len(yyv3810) { yyv3810 = yyv3810[:yyj3810] yyc3810 = true } else if yyj3810 == 0 && yyv3810 == nil { yyv3810 = []ObjectReference{} yyc3810 = true } } yyh3810.End() if yyc3810 { *v = yyv3810 } } 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 _, yyv3814 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3815 := &yyv3814 yy3815.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 yyv3816 := *v yyh3816, yyl3816 := z.DecSliceHelperStart() var yyc3816 bool if yyl3816 == 0 { if yyv3816 == nil { yyv3816 = []ServiceAccount{} yyc3816 = true } else if len(yyv3816) != 0 { yyv3816 = yyv3816[:0] yyc3816 = true } } else if yyl3816 > 0 { var yyrr3816, yyrl3816 int var yyrt3816 bool if yyl3816 > cap(yyv3816) { yyrg3816 := len(yyv3816) > 0 yyv23816 := yyv3816 yyrl3816, yyrt3816 = z.DecInferLen(yyl3816, z.DecBasicHandle().MaxInitLen, 240) if yyrt3816 { if yyrl3816 <= cap(yyv3816) { yyv3816 = yyv3816[:yyrl3816] } else { yyv3816 = make([]ServiceAccount, yyrl3816) } } else { yyv3816 = make([]ServiceAccount, yyrl3816) } yyc3816 = true yyrr3816 = len(yyv3816) if yyrg3816 { copy(yyv3816, yyv23816) } } else if yyl3816 != len(yyv3816) { yyv3816 = yyv3816[:yyl3816] yyc3816 = true } yyj3816 := 0 for ; yyj3816 < yyrr3816; yyj3816++ { yyh3816.ElemContainerState(yyj3816) if r.TryDecodeAsNil() { yyv3816[yyj3816] = ServiceAccount{} } else { yyv3817 := &yyv3816[yyj3816] yyv3817.CodecDecodeSelf(d) } } if yyrt3816 { for ; yyj3816 < yyl3816; yyj3816++ { yyv3816 = append(yyv3816, ServiceAccount{}) yyh3816.ElemContainerState(yyj3816) if r.TryDecodeAsNil() { yyv3816[yyj3816] = ServiceAccount{} } else { yyv3818 := &yyv3816[yyj3816] yyv3818.CodecDecodeSelf(d) } } } } else { yyj3816 := 0 for ; !r.CheckBreak(); yyj3816++ { if yyj3816 >= len(yyv3816) { yyv3816 = append(yyv3816, ServiceAccount{}) // var yyz3816 ServiceAccount yyc3816 = true } yyh3816.ElemContainerState(yyj3816) if yyj3816 < len(yyv3816) { if r.TryDecodeAsNil() { yyv3816[yyj3816] = ServiceAccount{} } else { yyv3819 := &yyv3816[yyj3816] yyv3819.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3816 < len(yyv3816) { yyv3816 = yyv3816[:yyj3816] yyc3816 = true } else if yyj3816 == 0 && yyv3816 == nil { yyv3816 = []ServiceAccount{} yyc3816 = true } } yyh3816.End() if yyc3816 { *v = yyv3816 } } 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 _, yyv3820 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3821 := &yyv3820 yy3821.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 yyv3822 := *v yyh3822, yyl3822 := z.DecSliceHelperStart() var yyc3822 bool if yyl3822 == 0 { if yyv3822 == nil { yyv3822 = []EndpointSubset{} yyc3822 = true } else if len(yyv3822) != 0 { yyv3822 = yyv3822[:0] yyc3822 = true } } else if yyl3822 > 0 { var yyrr3822, yyrl3822 int var yyrt3822 bool if yyl3822 > cap(yyv3822) { yyrg3822 := len(yyv3822) > 0 yyv23822 := yyv3822 yyrl3822, yyrt3822 = z.DecInferLen(yyl3822, z.DecBasicHandle().MaxInitLen, 72) if yyrt3822 { if yyrl3822 <= cap(yyv3822) { yyv3822 = yyv3822[:yyrl3822] } else { yyv3822 = make([]EndpointSubset, yyrl3822) } } else { yyv3822 = make([]EndpointSubset, yyrl3822) } yyc3822 = true yyrr3822 = len(yyv3822) if yyrg3822 { copy(yyv3822, yyv23822) } } else if yyl3822 != len(yyv3822) { yyv3822 = yyv3822[:yyl3822] yyc3822 = true } yyj3822 := 0 for ; yyj3822 < yyrr3822; yyj3822++ { yyh3822.ElemContainerState(yyj3822) if r.TryDecodeAsNil() { yyv3822[yyj3822] = EndpointSubset{} } else { yyv3823 := &yyv3822[yyj3822] yyv3823.CodecDecodeSelf(d) } } if yyrt3822 { for ; yyj3822 < yyl3822; yyj3822++ { yyv3822 = append(yyv3822, EndpointSubset{}) yyh3822.ElemContainerState(yyj3822) if r.TryDecodeAsNil() { yyv3822[yyj3822] = EndpointSubset{} } else { yyv3824 := &yyv3822[yyj3822] yyv3824.CodecDecodeSelf(d) } } } } else { yyj3822 := 0 for ; !r.CheckBreak(); yyj3822++ { if yyj3822 >= len(yyv3822) { yyv3822 = append(yyv3822, EndpointSubset{}) // var yyz3822 EndpointSubset yyc3822 = true } yyh3822.ElemContainerState(yyj3822) if yyj3822 < len(yyv3822) { if r.TryDecodeAsNil() { yyv3822[yyj3822] = EndpointSubset{} } else { yyv3825 := &yyv3822[yyj3822] yyv3825.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3822 < len(yyv3822) { yyv3822 = yyv3822[:yyj3822] yyc3822 = true } else if yyj3822 == 0 && yyv3822 == nil { yyv3822 = []EndpointSubset{} yyc3822 = true } } yyh3822.End() if yyc3822 { *v = yyv3822 } } 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 _, yyv3826 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3827 := &yyv3826 yy3827.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 yyv3828 := *v yyh3828, yyl3828 := z.DecSliceHelperStart() var yyc3828 bool if yyl3828 == 0 { if yyv3828 == nil { yyv3828 = []EndpointAddress{} yyc3828 = true } else if len(yyv3828) != 0 { yyv3828 = yyv3828[:0] yyc3828 = true } } else if yyl3828 > 0 { var yyrr3828, yyrl3828 int var yyrt3828 bool if yyl3828 > cap(yyv3828) { yyrg3828 := len(yyv3828) > 0 yyv23828 := yyv3828 yyrl3828, yyrt3828 = z.DecInferLen(yyl3828, z.DecBasicHandle().MaxInitLen, 24) if yyrt3828 { if yyrl3828 <= cap(yyv3828) { yyv3828 = yyv3828[:yyrl3828] } else { yyv3828 = make([]EndpointAddress, yyrl3828) } } else { yyv3828 = make([]EndpointAddress, yyrl3828) } yyc3828 = true yyrr3828 = len(yyv3828) if yyrg3828 { copy(yyv3828, yyv23828) } } else if yyl3828 != len(yyv3828) { yyv3828 = yyv3828[:yyl3828] yyc3828 = true } yyj3828 := 0 for ; yyj3828 < yyrr3828; yyj3828++ { yyh3828.ElemContainerState(yyj3828) if r.TryDecodeAsNil() { yyv3828[yyj3828] = EndpointAddress{} } else { yyv3829 := &yyv3828[yyj3828] yyv3829.CodecDecodeSelf(d) } } if yyrt3828 { for ; yyj3828 < yyl3828; yyj3828++ { yyv3828 = append(yyv3828, EndpointAddress{}) yyh3828.ElemContainerState(yyj3828) if r.TryDecodeAsNil() { yyv3828[yyj3828] = EndpointAddress{} } else { yyv3830 := &yyv3828[yyj3828] yyv3830.CodecDecodeSelf(d) } } } } else { yyj3828 := 0 for ; !r.CheckBreak(); yyj3828++ { if yyj3828 >= len(yyv3828) { yyv3828 = append(yyv3828, EndpointAddress{}) // var yyz3828 EndpointAddress yyc3828 = true } yyh3828.ElemContainerState(yyj3828) if yyj3828 < len(yyv3828) { if r.TryDecodeAsNil() { yyv3828[yyj3828] = EndpointAddress{} } else { yyv3831 := &yyv3828[yyj3828] yyv3831.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3828 < len(yyv3828) { yyv3828 = yyv3828[:yyj3828] yyc3828 = true } else if yyj3828 == 0 && yyv3828 == nil { yyv3828 = []EndpointAddress{} yyc3828 = true } } yyh3828.End() if yyc3828 { *v = yyv3828 } } 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 _, yyv3832 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3833 := &yyv3832 yy3833.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 yyv3834 := *v yyh3834, yyl3834 := z.DecSliceHelperStart() var yyc3834 bool if yyl3834 == 0 { if yyv3834 == nil { yyv3834 = []EndpointPort{} yyc3834 = true } else if len(yyv3834) != 0 { yyv3834 = yyv3834[:0] yyc3834 = true } } else if yyl3834 > 0 { var yyrr3834, yyrl3834 int var yyrt3834 bool if yyl3834 > cap(yyv3834) { yyrg3834 := len(yyv3834) > 0 yyv23834 := yyv3834 yyrl3834, yyrt3834 = z.DecInferLen(yyl3834, z.DecBasicHandle().MaxInitLen, 40) if yyrt3834 { if yyrl3834 <= cap(yyv3834) { yyv3834 = yyv3834[:yyrl3834] } else { yyv3834 = make([]EndpointPort, yyrl3834) } } else { yyv3834 = make([]EndpointPort, yyrl3834) } yyc3834 = true yyrr3834 = len(yyv3834) if yyrg3834 { copy(yyv3834, yyv23834) } } else if yyl3834 != len(yyv3834) { yyv3834 = yyv3834[:yyl3834] yyc3834 = true } yyj3834 := 0 for ; yyj3834 < yyrr3834; yyj3834++ { yyh3834.ElemContainerState(yyj3834) if r.TryDecodeAsNil() { yyv3834[yyj3834] = EndpointPort{} } else { yyv3835 := &yyv3834[yyj3834] yyv3835.CodecDecodeSelf(d) } } if yyrt3834 { for ; yyj3834 < yyl3834; yyj3834++ { yyv3834 = append(yyv3834, EndpointPort{}) yyh3834.ElemContainerState(yyj3834) if r.TryDecodeAsNil() { yyv3834[yyj3834] = EndpointPort{} } else { yyv3836 := &yyv3834[yyj3834] yyv3836.CodecDecodeSelf(d) } } } } else { yyj3834 := 0 for ; !r.CheckBreak(); yyj3834++ { if yyj3834 >= len(yyv3834) { yyv3834 = append(yyv3834, EndpointPort{}) // var yyz3834 EndpointPort yyc3834 = true } yyh3834.ElemContainerState(yyj3834) if yyj3834 < len(yyv3834) { if r.TryDecodeAsNil() { yyv3834[yyj3834] = EndpointPort{} } else { yyv3837 := &yyv3834[yyj3834] yyv3837.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3834 < len(yyv3834) { yyv3834 = yyv3834[:yyj3834] yyc3834 = true } else if yyj3834 == 0 && yyv3834 == nil { yyv3834 = []EndpointPort{} yyc3834 = true } } yyh3834.End() if yyc3834 { *v = yyv3834 } } 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 _, yyv3838 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3839 := &yyv3838 yy3839.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 yyv3840 := *v yyh3840, yyl3840 := z.DecSliceHelperStart() var yyc3840 bool if yyl3840 == 0 { if yyv3840 == nil { yyv3840 = []Endpoints{} yyc3840 = true } else if len(yyv3840) != 0 { yyv3840 = yyv3840[:0] yyc3840 = true } } else if yyl3840 > 0 { var yyrr3840, yyrl3840 int var yyrt3840 bool if yyl3840 > cap(yyv3840) { yyrg3840 := len(yyv3840) > 0 yyv23840 := yyv3840 yyrl3840, yyrt3840 = z.DecInferLen(yyl3840, z.DecBasicHandle().MaxInitLen, 216) if yyrt3840 { if yyrl3840 <= cap(yyv3840) { yyv3840 = yyv3840[:yyrl3840] } else { yyv3840 = make([]Endpoints, yyrl3840) } } else { yyv3840 = make([]Endpoints, yyrl3840) } yyc3840 = true yyrr3840 = len(yyv3840) if yyrg3840 { copy(yyv3840, yyv23840) } } else if yyl3840 != len(yyv3840) { yyv3840 = yyv3840[:yyl3840] yyc3840 = true } yyj3840 := 0 for ; yyj3840 < yyrr3840; yyj3840++ { yyh3840.ElemContainerState(yyj3840) if r.TryDecodeAsNil() { yyv3840[yyj3840] = Endpoints{} } else { yyv3841 := &yyv3840[yyj3840] yyv3841.CodecDecodeSelf(d) } } if yyrt3840 { for ; yyj3840 < yyl3840; yyj3840++ { yyv3840 = append(yyv3840, Endpoints{}) yyh3840.ElemContainerState(yyj3840) if r.TryDecodeAsNil() { yyv3840[yyj3840] = Endpoints{} } else { yyv3842 := &yyv3840[yyj3840] yyv3842.CodecDecodeSelf(d) } } } } else { yyj3840 := 0 for ; !r.CheckBreak(); yyj3840++ { if yyj3840 >= len(yyv3840) { yyv3840 = append(yyv3840, Endpoints{}) // var yyz3840 Endpoints yyc3840 = true } yyh3840.ElemContainerState(yyj3840) if yyj3840 < len(yyv3840) { if r.TryDecodeAsNil() { yyv3840[yyj3840] = Endpoints{} } else { yyv3843 := &yyv3840[yyj3840] yyv3843.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3840 < len(yyv3840) { yyv3840 = yyv3840[:yyj3840] yyc3840 = true } else if yyj3840 == 0 && yyv3840 == nil { yyv3840 = []Endpoints{} yyc3840 = true } } yyh3840.End() if yyc3840 { *v = yyv3840 } } 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 _, yyv3844 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3845 := &yyv3844 yy3845.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 yyv3846 := *v yyh3846, yyl3846 := z.DecSliceHelperStart() var yyc3846 bool if yyl3846 == 0 { if yyv3846 == nil { yyv3846 = []NodeCondition{} yyc3846 = true } else if len(yyv3846) != 0 { yyv3846 = yyv3846[:0] yyc3846 = true } } else if yyl3846 > 0 { var yyrr3846, yyrl3846 int var yyrt3846 bool if yyl3846 > cap(yyv3846) { yyrg3846 := len(yyv3846) > 0 yyv23846 := yyv3846 yyrl3846, yyrt3846 = z.DecInferLen(yyl3846, z.DecBasicHandle().MaxInitLen, 112) if yyrt3846 { if yyrl3846 <= cap(yyv3846) { yyv3846 = yyv3846[:yyrl3846] } else { yyv3846 = make([]NodeCondition, yyrl3846) } } else { yyv3846 = make([]NodeCondition, yyrl3846) } yyc3846 = true yyrr3846 = len(yyv3846) if yyrg3846 { copy(yyv3846, yyv23846) } } else if yyl3846 != len(yyv3846) { yyv3846 = yyv3846[:yyl3846] yyc3846 = true } yyj3846 := 0 for ; yyj3846 < yyrr3846; yyj3846++ { yyh3846.ElemContainerState(yyj3846) if r.TryDecodeAsNil() { yyv3846[yyj3846] = NodeCondition{} } else { yyv3847 := &yyv3846[yyj3846] yyv3847.CodecDecodeSelf(d) } } if yyrt3846 { for ; yyj3846 < yyl3846; yyj3846++ { yyv3846 = append(yyv3846, NodeCondition{}) yyh3846.ElemContainerState(yyj3846) if r.TryDecodeAsNil() { yyv3846[yyj3846] = NodeCondition{} } else { yyv3848 := &yyv3846[yyj3846] yyv3848.CodecDecodeSelf(d) } } } } else { yyj3846 := 0 for ; !r.CheckBreak(); yyj3846++ { if yyj3846 >= len(yyv3846) { yyv3846 = append(yyv3846, NodeCondition{}) // var yyz3846 NodeCondition yyc3846 = true } yyh3846.ElemContainerState(yyj3846) if yyj3846 < len(yyv3846) { if r.TryDecodeAsNil() { yyv3846[yyj3846] = NodeCondition{} } else { yyv3849 := &yyv3846[yyj3846] yyv3849.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3846 < len(yyv3846) { yyv3846 = yyv3846[:yyj3846] yyc3846 = true } else if yyj3846 == 0 && yyv3846 == nil { yyv3846 = []NodeCondition{} yyc3846 = true } } yyh3846.End() if yyc3846 { *v = yyv3846 } } 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 _, yyv3850 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3851 := &yyv3850 yy3851.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 yyv3852 := *v yyh3852, yyl3852 := z.DecSliceHelperStart() var yyc3852 bool if yyl3852 == 0 { if yyv3852 == nil { yyv3852 = []NodeAddress{} yyc3852 = true } else if len(yyv3852) != 0 { yyv3852 = yyv3852[:0] yyc3852 = true } } else if yyl3852 > 0 { var yyrr3852, yyrl3852 int var yyrt3852 bool if yyl3852 > cap(yyv3852) { yyrg3852 := len(yyv3852) > 0 yyv23852 := yyv3852 yyrl3852, yyrt3852 = z.DecInferLen(yyl3852, z.DecBasicHandle().MaxInitLen, 32) if yyrt3852 { if yyrl3852 <= cap(yyv3852) { yyv3852 = yyv3852[:yyrl3852] } else { yyv3852 = make([]NodeAddress, yyrl3852) } } else { yyv3852 = make([]NodeAddress, yyrl3852) } yyc3852 = true yyrr3852 = len(yyv3852) if yyrg3852 { copy(yyv3852, yyv23852) } } else if yyl3852 != len(yyv3852) { yyv3852 = yyv3852[:yyl3852] yyc3852 = true } yyj3852 := 0 for ; yyj3852 < yyrr3852; yyj3852++ { yyh3852.ElemContainerState(yyj3852) if r.TryDecodeAsNil() { yyv3852[yyj3852] = NodeAddress{} } else { yyv3853 := &yyv3852[yyj3852] yyv3853.CodecDecodeSelf(d) } } if yyrt3852 { for ; yyj3852 < yyl3852; yyj3852++ { yyv3852 = append(yyv3852, NodeAddress{}) yyh3852.ElemContainerState(yyj3852) if r.TryDecodeAsNil() { yyv3852[yyj3852] = NodeAddress{} } else { yyv3854 := &yyv3852[yyj3852] yyv3854.CodecDecodeSelf(d) } } } } else { yyj3852 := 0 for ; !r.CheckBreak(); yyj3852++ { if yyj3852 >= len(yyv3852) { yyv3852 = append(yyv3852, NodeAddress{}) // var yyz3852 NodeAddress yyc3852 = true } yyh3852.ElemContainerState(yyj3852) if yyj3852 < len(yyv3852) { if r.TryDecodeAsNil() { yyv3852[yyj3852] = NodeAddress{} } else { yyv3855 := &yyv3852[yyj3852] yyv3855.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3852 < len(yyv3852) { yyv3852 = yyv3852[:yyj3852] yyc3852 = true } else if yyj3852 == 0 && yyv3852 == nil { yyv3852 = []NodeAddress{} yyc3852 = true } } yyh3852.End() if yyc3852 { *v = yyv3852 } } 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 _, yyv3856 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3857 := &yyv3856 yy3857.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 yyv3858 := *v yyh3858, yyl3858 := z.DecSliceHelperStart() var yyc3858 bool if yyl3858 == 0 { if yyv3858 == nil { yyv3858 = []ContainerImage{} yyc3858 = true } else if len(yyv3858) != 0 { yyv3858 = yyv3858[:0] yyc3858 = true } } else if yyl3858 > 0 { var yyrr3858, yyrl3858 int var yyrt3858 bool if yyl3858 > cap(yyv3858) { yyrg3858 := len(yyv3858) > 0 yyv23858 := yyv3858 yyrl3858, yyrt3858 = z.DecInferLen(yyl3858, z.DecBasicHandle().MaxInitLen, 32) if yyrt3858 { if yyrl3858 <= cap(yyv3858) { yyv3858 = yyv3858[:yyrl3858] } else { yyv3858 = make([]ContainerImage, yyrl3858) } } else { yyv3858 = make([]ContainerImage, yyrl3858) } yyc3858 = true yyrr3858 = len(yyv3858) if yyrg3858 { copy(yyv3858, yyv23858) } } else if yyl3858 != len(yyv3858) { yyv3858 = yyv3858[:yyl3858] yyc3858 = true } yyj3858 := 0 for ; yyj3858 < yyrr3858; yyj3858++ { yyh3858.ElemContainerState(yyj3858) if r.TryDecodeAsNil() { yyv3858[yyj3858] = ContainerImage{} } else { yyv3859 := &yyv3858[yyj3858] yyv3859.CodecDecodeSelf(d) } } if yyrt3858 { for ; yyj3858 < yyl3858; yyj3858++ { yyv3858 = append(yyv3858, ContainerImage{}) yyh3858.ElemContainerState(yyj3858) if r.TryDecodeAsNil() { yyv3858[yyj3858] = ContainerImage{} } else { yyv3860 := &yyv3858[yyj3858] yyv3860.CodecDecodeSelf(d) } } } } else { yyj3858 := 0 for ; !r.CheckBreak(); yyj3858++ { if yyj3858 >= len(yyv3858) { yyv3858 = append(yyv3858, ContainerImage{}) // var yyz3858 ContainerImage yyc3858 = true } yyh3858.ElemContainerState(yyj3858) if yyj3858 < len(yyv3858) { if r.TryDecodeAsNil() { yyv3858[yyj3858] = ContainerImage{} } else { yyv3861 := &yyv3858[yyj3858] yyv3861.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3858 < len(yyv3858) { yyv3858 = yyv3858[:yyj3858] yyc3858 = true } else if yyj3858 == 0 && yyv3858 == nil { yyv3858 = []ContainerImage{} yyc3858 = true } } yyh3858.End() if yyc3858 { *v = yyv3858 } } 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 yyk3862, yyv3862 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk3862.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3863 := &yyv3862 yym3864 := z.EncBinary() _ = yym3864 if false { } else if z.HasExtensions() && z.EncExt(yy3863) { } else if !yym3864 && z.IsJSONHandle() { z.EncJSONMarshal(yy3863) } else { z.EncFallback(yy3863) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3865 := *v yyl3865 := r.ReadMapStart() yybh3865 := z.DecBasicHandle() if yyv3865 == nil { yyrl3865, _ := z.DecInferLen(yyl3865, yybh3865.MaxInitLen, 40) yyv3865 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3865) *v = yyv3865 } var yymk3865 ResourceName var yymv3865 pkg3_resource.Quantity var yymg3865 bool if yybh3865.MapValueReset { yymg3865 = true } if yyl3865 > 0 { for yyj3865 := 0; yyj3865 < yyl3865; yyj3865++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3865 = "" } else { yymk3865 = ResourceName(r.DecodeString()) } if yymg3865 { yymv3865 = yyv3865[yymk3865] } else { yymv3865 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3865 = pkg3_resource.Quantity{} } else { yyv3867 := &yymv3865 yym3868 := z.DecBinary() _ = yym3868 if false { } else if z.HasExtensions() && z.DecExt(yyv3867) { } else if !yym3868 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3867) } else { z.DecFallback(yyv3867, false) } } if yyv3865 != nil { yyv3865[yymk3865] = yymv3865 } } } else if yyl3865 < 0 { for yyj3865 := 0; !r.CheckBreak(); yyj3865++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3865 = "" } else { yymk3865 = ResourceName(r.DecodeString()) } if yymg3865 { yymv3865 = yyv3865[yymk3865] } else { yymv3865 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3865 = pkg3_resource.Quantity{} } else { yyv3870 := &yymv3865 yym3871 := z.DecBinary() _ = yym3871 if false { } else if z.HasExtensions() && z.DecExt(yyv3870) { } else if !yym3871 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3870) } else { z.DecFallback(yyv3870, false) } } if yyv3865 != nil { yyv3865[yymk3865] = yymv3865 } } } // 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 _, yyv3872 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3873 := &yyv3872 yy3873.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 yyv3874 := *v yyh3874, yyl3874 := z.DecSliceHelperStart() var yyc3874 bool if yyl3874 == 0 { if yyv3874 == nil { yyv3874 = []Node{} yyc3874 = true } else if len(yyv3874) != 0 { yyv3874 = yyv3874[:0] yyc3874 = true } } else if yyl3874 > 0 { var yyrr3874, yyrl3874 int var yyrt3874 bool if yyl3874 > cap(yyv3874) { yyrg3874 := len(yyv3874) > 0 yyv23874 := yyv3874 yyrl3874, yyrt3874 = z.DecInferLen(yyl3874, z.DecBasicHandle().MaxInitLen, 488) if yyrt3874 { if yyrl3874 <= cap(yyv3874) { yyv3874 = yyv3874[:yyrl3874] } else { yyv3874 = make([]Node, yyrl3874) } } else { yyv3874 = make([]Node, yyrl3874) } yyc3874 = true yyrr3874 = len(yyv3874) if yyrg3874 { copy(yyv3874, yyv23874) } } else if yyl3874 != len(yyv3874) { yyv3874 = yyv3874[:yyl3874] yyc3874 = true } yyj3874 := 0 for ; yyj3874 < yyrr3874; yyj3874++ { yyh3874.ElemContainerState(yyj3874) if r.TryDecodeAsNil() { yyv3874[yyj3874] = Node{} } else { yyv3875 := &yyv3874[yyj3874] yyv3875.CodecDecodeSelf(d) } } if yyrt3874 { for ; yyj3874 < yyl3874; yyj3874++ { yyv3874 = append(yyv3874, Node{}) yyh3874.ElemContainerState(yyj3874) if r.TryDecodeAsNil() { yyv3874[yyj3874] = Node{} } else { yyv3876 := &yyv3874[yyj3874] yyv3876.CodecDecodeSelf(d) } } } } else { yyj3874 := 0 for ; !r.CheckBreak(); yyj3874++ { if yyj3874 >= len(yyv3874) { yyv3874 = append(yyv3874, Node{}) // var yyz3874 Node yyc3874 = true } yyh3874.ElemContainerState(yyj3874) if yyj3874 < len(yyv3874) { if r.TryDecodeAsNil() { yyv3874[yyj3874] = Node{} } else { yyv3877 := &yyv3874[yyj3874] yyv3877.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3874 < len(yyv3874) { yyv3874 = yyv3874[:yyj3874] yyc3874 = true } else if yyj3874 == 0 && yyv3874 == nil { yyv3874 = []Node{} yyc3874 = true } } yyh3874.End() if yyc3874 { *v = yyv3874 } } 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 _, yyv3878 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3878.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 yyv3879 := *v yyh3879, yyl3879 := z.DecSliceHelperStart() var yyc3879 bool if yyl3879 == 0 { if yyv3879 == nil { yyv3879 = []FinalizerName{} yyc3879 = true } else if len(yyv3879) != 0 { yyv3879 = yyv3879[:0] yyc3879 = true } } else if yyl3879 > 0 { var yyrr3879, yyrl3879 int var yyrt3879 bool if yyl3879 > cap(yyv3879) { yyrl3879, yyrt3879 = z.DecInferLen(yyl3879, z.DecBasicHandle().MaxInitLen, 16) if yyrt3879 { if yyrl3879 <= cap(yyv3879) { yyv3879 = yyv3879[:yyrl3879] } else { yyv3879 = make([]FinalizerName, yyrl3879) } } else { yyv3879 = make([]FinalizerName, yyrl3879) } yyc3879 = true yyrr3879 = len(yyv3879) } else if yyl3879 != len(yyv3879) { yyv3879 = yyv3879[:yyl3879] yyc3879 = true } yyj3879 := 0 for ; yyj3879 < yyrr3879; yyj3879++ { yyh3879.ElemContainerState(yyj3879) if r.TryDecodeAsNil() { yyv3879[yyj3879] = "" } else { yyv3879[yyj3879] = FinalizerName(r.DecodeString()) } } if yyrt3879 { for ; yyj3879 < yyl3879; yyj3879++ { yyv3879 = append(yyv3879, "") yyh3879.ElemContainerState(yyj3879) if r.TryDecodeAsNil() { yyv3879[yyj3879] = "" } else { yyv3879[yyj3879] = FinalizerName(r.DecodeString()) } } } } else { yyj3879 := 0 for ; !r.CheckBreak(); yyj3879++ { if yyj3879 >= len(yyv3879) { yyv3879 = append(yyv3879, "") // var yyz3879 FinalizerName yyc3879 = true } yyh3879.ElemContainerState(yyj3879) if yyj3879 < len(yyv3879) { if r.TryDecodeAsNil() { yyv3879[yyj3879] = "" } else { yyv3879[yyj3879] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3879 < len(yyv3879) { yyv3879 = yyv3879[:yyj3879] yyc3879 = true } else if yyj3879 == 0 && yyv3879 == nil { yyv3879 = []FinalizerName{} yyc3879 = true } } yyh3879.End() if yyc3879 { *v = yyv3879 } } 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 _, yyv3883 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3884 := &yyv3883 yy3884.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 yyv3885 := *v yyh3885, yyl3885 := z.DecSliceHelperStart() var yyc3885 bool if yyl3885 == 0 { if yyv3885 == nil { yyv3885 = []Namespace{} yyc3885 = true } else if len(yyv3885) != 0 { yyv3885 = yyv3885[:0] yyc3885 = true } } else if yyl3885 > 0 { var yyrr3885, yyrl3885 int var yyrt3885 bool if yyl3885 > cap(yyv3885) { yyrg3885 := len(yyv3885) > 0 yyv23885 := yyv3885 yyrl3885, yyrt3885 = z.DecInferLen(yyl3885, z.DecBasicHandle().MaxInitLen, 232) if yyrt3885 { if yyrl3885 <= cap(yyv3885) { yyv3885 = yyv3885[:yyrl3885] } else { yyv3885 = make([]Namespace, yyrl3885) } } else { yyv3885 = make([]Namespace, yyrl3885) } yyc3885 = true yyrr3885 = len(yyv3885) if yyrg3885 { copy(yyv3885, yyv23885) } } else if yyl3885 != len(yyv3885) { yyv3885 = yyv3885[:yyl3885] yyc3885 = true } yyj3885 := 0 for ; yyj3885 < yyrr3885; yyj3885++ { yyh3885.ElemContainerState(yyj3885) if r.TryDecodeAsNil() { yyv3885[yyj3885] = Namespace{} } else { yyv3886 := &yyv3885[yyj3885] yyv3886.CodecDecodeSelf(d) } } if yyrt3885 { for ; yyj3885 < yyl3885; yyj3885++ { yyv3885 = append(yyv3885, Namespace{}) yyh3885.ElemContainerState(yyj3885) if r.TryDecodeAsNil() { yyv3885[yyj3885] = Namespace{} } else { yyv3887 := &yyv3885[yyj3885] yyv3887.CodecDecodeSelf(d) } } } } else { yyj3885 := 0 for ; !r.CheckBreak(); yyj3885++ { if yyj3885 >= len(yyv3885) { yyv3885 = append(yyv3885, Namespace{}) // var yyz3885 Namespace yyc3885 = true } yyh3885.ElemContainerState(yyj3885) if yyj3885 < len(yyv3885) { if r.TryDecodeAsNil() { yyv3885[yyj3885] = Namespace{} } else { yyv3888 := &yyv3885[yyj3885] yyv3888.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3885 < len(yyv3885) { yyv3885 = yyv3885[:yyj3885] yyc3885 = true } else if yyj3885 == 0 && yyv3885 == nil { yyv3885 = []Namespace{} yyc3885 = true } } yyh3885.End() if yyc3885 { *v = yyv3885 } } 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 _, yyv3889 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3890 := &yyv3889 yy3890.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 yyv3891 := *v yyh3891, yyl3891 := z.DecSliceHelperStart() var yyc3891 bool if yyl3891 == 0 { if yyv3891 == nil { yyv3891 = []Event{} yyc3891 = true } else if len(yyv3891) != 0 { yyv3891 = yyv3891[:0] yyc3891 = true } } else if yyl3891 > 0 { var yyrr3891, yyrl3891 int var yyrt3891 bool if yyl3891 > cap(yyv3891) { yyrg3891 := len(yyv3891) > 0 yyv23891 := yyv3891 yyrl3891, yyrt3891 = z.DecInferLen(yyl3891, z.DecBasicHandle().MaxInitLen, 440) if yyrt3891 { if yyrl3891 <= cap(yyv3891) { yyv3891 = yyv3891[:yyrl3891] } else { yyv3891 = make([]Event, yyrl3891) } } else { yyv3891 = make([]Event, yyrl3891) } yyc3891 = true yyrr3891 = len(yyv3891) if yyrg3891 { copy(yyv3891, yyv23891) } } else if yyl3891 != len(yyv3891) { yyv3891 = yyv3891[:yyl3891] yyc3891 = true } yyj3891 := 0 for ; yyj3891 < yyrr3891; yyj3891++ { yyh3891.ElemContainerState(yyj3891) if r.TryDecodeAsNil() { yyv3891[yyj3891] = Event{} } else { yyv3892 := &yyv3891[yyj3891] yyv3892.CodecDecodeSelf(d) } } if yyrt3891 { for ; yyj3891 < yyl3891; yyj3891++ { yyv3891 = append(yyv3891, Event{}) yyh3891.ElemContainerState(yyj3891) if r.TryDecodeAsNil() { yyv3891[yyj3891] = Event{} } else { yyv3893 := &yyv3891[yyj3891] yyv3893.CodecDecodeSelf(d) } } } } else { yyj3891 := 0 for ; !r.CheckBreak(); yyj3891++ { if yyj3891 >= len(yyv3891) { yyv3891 = append(yyv3891, Event{}) // var yyz3891 Event yyc3891 = true } yyh3891.ElemContainerState(yyj3891) if yyj3891 < len(yyv3891) { if r.TryDecodeAsNil() { yyv3891[yyj3891] = Event{} } else { yyv3894 := &yyv3891[yyj3891] yyv3894.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3891 < len(yyv3891) { yyv3891 = yyv3891[:yyj3891] yyc3891 = true } else if yyj3891 == 0 && yyv3891 == nil { yyv3891 = []Event{} yyc3891 = true } } yyh3891.End() if yyc3891 { *v = yyv3891 } } 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 _, yyv3895 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv3895 == nil { r.EncodeNil() } else { yym3896 := z.EncBinary() _ = yym3896 if false { } else if z.HasExtensions() && z.EncExt(yyv3895) { } else { z.EncFallback(yyv3895) } } } 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 yyv3897 := *v yyh3897, yyl3897 := z.DecSliceHelperStart() var yyc3897 bool if yyl3897 == 0 { if yyv3897 == nil { yyv3897 = []pkg8_runtime.Object{} yyc3897 = true } else if len(yyv3897) != 0 { yyv3897 = yyv3897[:0] yyc3897 = true } } else if yyl3897 > 0 { var yyrr3897, yyrl3897 int var yyrt3897 bool if yyl3897 > cap(yyv3897) { yyrg3897 := len(yyv3897) > 0 yyv23897 := yyv3897 yyrl3897, yyrt3897 = z.DecInferLen(yyl3897, z.DecBasicHandle().MaxInitLen, 16) if yyrt3897 { if yyrl3897 <= cap(yyv3897) { yyv3897 = yyv3897[:yyrl3897] } else { yyv3897 = make([]pkg8_runtime.Object, yyrl3897) } } else { yyv3897 = make([]pkg8_runtime.Object, yyrl3897) } yyc3897 = true yyrr3897 = len(yyv3897) if yyrg3897 { copy(yyv3897, yyv23897) } } else if yyl3897 != len(yyv3897) { yyv3897 = yyv3897[:yyl3897] yyc3897 = true } yyj3897 := 0 for ; yyj3897 < yyrr3897; yyj3897++ { yyh3897.ElemContainerState(yyj3897) if r.TryDecodeAsNil() { yyv3897[yyj3897] = nil } else { yyv3898 := &yyv3897[yyj3897] yym3899 := z.DecBinary() _ = yym3899 if false { } else if z.HasExtensions() && z.DecExt(yyv3898) { } else { z.DecFallback(yyv3898, true) } } } if yyrt3897 { for ; yyj3897 < yyl3897; yyj3897++ { yyv3897 = append(yyv3897, nil) yyh3897.ElemContainerState(yyj3897) if r.TryDecodeAsNil() { yyv3897[yyj3897] = nil } else { yyv3900 := &yyv3897[yyj3897] yym3901 := z.DecBinary() _ = yym3901 if false { } else if z.HasExtensions() && z.DecExt(yyv3900) { } else { z.DecFallback(yyv3900, true) } } } } } else { yyj3897 := 0 for ; !r.CheckBreak(); yyj3897++ { if yyj3897 >= len(yyv3897) { yyv3897 = append(yyv3897, nil) // var yyz3897 pkg8_runtime.Object yyc3897 = true } yyh3897.ElemContainerState(yyj3897) if yyj3897 < len(yyv3897) { if r.TryDecodeAsNil() { yyv3897[yyj3897] = nil } else { yyv3902 := &yyv3897[yyj3897] yym3903 := z.DecBinary() _ = yym3903 if false { } else if z.HasExtensions() && z.DecExt(yyv3902) { } else { z.DecFallback(yyv3902, true) } } } else { z.DecSwallow() } } if yyj3897 < len(yyv3897) { yyv3897 = yyv3897[:yyj3897] yyc3897 = true } else if yyj3897 == 0 && yyv3897 == nil { yyv3897 = []pkg8_runtime.Object{} yyc3897 = true } } yyh3897.End() if yyc3897 { *v = yyv3897 } } 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 _, yyv3904 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3905 := &yyv3904 yy3905.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 yyv3906 := *v yyh3906, yyl3906 := z.DecSliceHelperStart() var yyc3906 bool if yyl3906 == 0 { if yyv3906 == nil { yyv3906 = []LimitRangeItem{} yyc3906 = true } else if len(yyv3906) != 0 { yyv3906 = yyv3906[:0] yyc3906 = true } } else if yyl3906 > 0 { var yyrr3906, yyrl3906 int var yyrt3906 bool if yyl3906 > cap(yyv3906) { yyrg3906 := len(yyv3906) > 0 yyv23906 := yyv3906 yyrl3906, yyrt3906 = z.DecInferLen(yyl3906, z.DecBasicHandle().MaxInitLen, 56) if yyrt3906 { if yyrl3906 <= cap(yyv3906) { yyv3906 = yyv3906[:yyrl3906] } else { yyv3906 = make([]LimitRangeItem, yyrl3906) } } else { yyv3906 = make([]LimitRangeItem, yyrl3906) } yyc3906 = true yyrr3906 = len(yyv3906) if yyrg3906 { copy(yyv3906, yyv23906) } } else if yyl3906 != len(yyv3906) { yyv3906 = yyv3906[:yyl3906] yyc3906 = true } yyj3906 := 0 for ; yyj3906 < yyrr3906; yyj3906++ { yyh3906.ElemContainerState(yyj3906) if r.TryDecodeAsNil() { yyv3906[yyj3906] = LimitRangeItem{} } else { yyv3907 := &yyv3906[yyj3906] yyv3907.CodecDecodeSelf(d) } } if yyrt3906 { for ; yyj3906 < yyl3906; yyj3906++ { yyv3906 = append(yyv3906, LimitRangeItem{}) yyh3906.ElemContainerState(yyj3906) if r.TryDecodeAsNil() { yyv3906[yyj3906] = LimitRangeItem{} } else { yyv3908 := &yyv3906[yyj3906] yyv3908.CodecDecodeSelf(d) } } } } else { yyj3906 := 0 for ; !r.CheckBreak(); yyj3906++ { if yyj3906 >= len(yyv3906) { yyv3906 = append(yyv3906, LimitRangeItem{}) // var yyz3906 LimitRangeItem yyc3906 = true } yyh3906.ElemContainerState(yyj3906) if yyj3906 < len(yyv3906) { if r.TryDecodeAsNil() { yyv3906[yyj3906] = LimitRangeItem{} } else { yyv3909 := &yyv3906[yyj3906] yyv3909.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3906 < len(yyv3906) { yyv3906 = yyv3906[:yyj3906] yyc3906 = true } else if yyj3906 == 0 && yyv3906 == nil { yyv3906 = []LimitRangeItem{} yyc3906 = true } } yyh3906.End() if yyc3906 { *v = yyv3906 } } 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 _, yyv3910 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3911 := &yyv3910 yy3911.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 yyv3912 := *v yyh3912, yyl3912 := z.DecSliceHelperStart() var yyc3912 bool if yyl3912 == 0 { if yyv3912 == nil { yyv3912 = []LimitRange{} yyc3912 = true } else if len(yyv3912) != 0 { yyv3912 = yyv3912[:0] yyc3912 = true } } else if yyl3912 > 0 { var yyrr3912, yyrl3912 int var yyrt3912 bool if yyl3912 > cap(yyv3912) { yyrg3912 := len(yyv3912) > 0 yyv23912 := yyv3912 yyrl3912, yyrt3912 = z.DecInferLen(yyl3912, z.DecBasicHandle().MaxInitLen, 216) if yyrt3912 { if yyrl3912 <= cap(yyv3912) { yyv3912 = yyv3912[:yyrl3912] } else { yyv3912 = make([]LimitRange, yyrl3912) } } else { yyv3912 = make([]LimitRange, yyrl3912) } yyc3912 = true yyrr3912 = len(yyv3912) if yyrg3912 { copy(yyv3912, yyv23912) } } else if yyl3912 != len(yyv3912) { yyv3912 = yyv3912[:yyl3912] yyc3912 = true } yyj3912 := 0 for ; yyj3912 < yyrr3912; yyj3912++ { yyh3912.ElemContainerState(yyj3912) if r.TryDecodeAsNil() { yyv3912[yyj3912] = LimitRange{} } else { yyv3913 := &yyv3912[yyj3912] yyv3913.CodecDecodeSelf(d) } } if yyrt3912 { for ; yyj3912 < yyl3912; yyj3912++ { yyv3912 = append(yyv3912, LimitRange{}) yyh3912.ElemContainerState(yyj3912) if r.TryDecodeAsNil() { yyv3912[yyj3912] = LimitRange{} } else { yyv3914 := &yyv3912[yyj3912] yyv3914.CodecDecodeSelf(d) } } } } else { yyj3912 := 0 for ; !r.CheckBreak(); yyj3912++ { if yyj3912 >= len(yyv3912) { yyv3912 = append(yyv3912, LimitRange{}) // var yyz3912 LimitRange yyc3912 = true } yyh3912.ElemContainerState(yyj3912) if yyj3912 < len(yyv3912) { if r.TryDecodeAsNil() { yyv3912[yyj3912] = LimitRange{} } else { yyv3915 := &yyv3912[yyj3912] yyv3915.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3912 < len(yyv3912) { yyv3912 = yyv3912[:yyj3912] yyc3912 = true } else if yyj3912 == 0 && yyv3912 == nil { yyv3912 = []LimitRange{} yyc3912 = true } } yyh3912.End() if yyc3912 { *v = yyv3912 } } 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 _, yyv3916 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3917 := &yyv3916 yy3917.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 yyv3918 := *v yyh3918, yyl3918 := z.DecSliceHelperStart() var yyc3918 bool if yyl3918 == 0 { if yyv3918 == nil { yyv3918 = []ResourceQuota{} yyc3918 = true } else if len(yyv3918) != 0 { yyv3918 = yyv3918[:0] yyc3918 = true } } else if yyl3918 > 0 { var yyrr3918, yyrl3918 int var yyrt3918 bool if yyl3918 > cap(yyv3918) { yyrg3918 := len(yyv3918) > 0 yyv23918 := yyv3918 yyrl3918, yyrt3918 = z.DecInferLen(yyl3918, z.DecBasicHandle().MaxInitLen, 216) if yyrt3918 { if yyrl3918 <= cap(yyv3918) { yyv3918 = yyv3918[:yyrl3918] } else { yyv3918 = make([]ResourceQuota, yyrl3918) } } else { yyv3918 = make([]ResourceQuota, yyrl3918) } yyc3918 = true yyrr3918 = len(yyv3918) if yyrg3918 { copy(yyv3918, yyv23918) } } else if yyl3918 != len(yyv3918) { yyv3918 = yyv3918[:yyl3918] yyc3918 = true } yyj3918 := 0 for ; yyj3918 < yyrr3918; yyj3918++ { yyh3918.ElemContainerState(yyj3918) if r.TryDecodeAsNil() { yyv3918[yyj3918] = ResourceQuota{} } else { yyv3919 := &yyv3918[yyj3918] yyv3919.CodecDecodeSelf(d) } } if yyrt3918 { for ; yyj3918 < yyl3918; yyj3918++ { yyv3918 = append(yyv3918, ResourceQuota{}) yyh3918.ElemContainerState(yyj3918) if r.TryDecodeAsNil() { yyv3918[yyj3918] = ResourceQuota{} } else { yyv3920 := &yyv3918[yyj3918] yyv3920.CodecDecodeSelf(d) } } } } else { yyj3918 := 0 for ; !r.CheckBreak(); yyj3918++ { if yyj3918 >= len(yyv3918) { yyv3918 = append(yyv3918, ResourceQuota{}) // var yyz3918 ResourceQuota yyc3918 = true } yyh3918.ElemContainerState(yyj3918) if yyj3918 < len(yyv3918) { if r.TryDecodeAsNil() { yyv3918[yyj3918] = ResourceQuota{} } else { yyv3921 := &yyv3918[yyj3918] yyv3921.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3918 < len(yyv3918) { yyv3918 = yyv3918[:yyj3918] yyc3918 = true } else if yyj3918 == 0 && yyv3918 == nil { yyv3918 = []ResourceQuota{} yyc3918 = true } } yyh3918.End() if yyc3918 { *v = yyv3918 } } 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 yyk3922, yyv3922 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym3923 := z.EncBinary() _ = yym3923 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk3922)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv3922 == nil { r.EncodeNil() } else { yym3924 := z.EncBinary() _ = yym3924 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv3922)) } } } 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 yyv3925 := *v yyl3925 := r.ReadMapStart() yybh3925 := z.DecBasicHandle() if yyv3925 == nil { yyrl3925, _ := z.DecInferLen(yyl3925, yybh3925.MaxInitLen, 40) yyv3925 = make(map[string][]uint8, yyrl3925) *v = yyv3925 } var yymk3925 string var yymv3925 []uint8 var yymg3925 bool if yybh3925.MapValueReset { yymg3925 = true } if yyl3925 > 0 { for yyj3925 := 0; yyj3925 < yyl3925; yyj3925++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3925 = "" } else { yymk3925 = string(r.DecodeString()) } if yymg3925 { yymv3925 = yyv3925[yymk3925] } else { yymv3925 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3925 = nil } else { yyv3927 := &yymv3925 yym3928 := z.DecBinary() _ = yym3928 if false { } else { *yyv3927 = r.DecodeBytes(*(*[]byte)(yyv3927), false, false) } } if yyv3925 != nil { yyv3925[yymk3925] = yymv3925 } } } else if yyl3925 < 0 { for yyj3925 := 0; !r.CheckBreak(); yyj3925++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3925 = "" } else { yymk3925 = string(r.DecodeString()) } if yymg3925 { yymv3925 = yyv3925[yymk3925] } else { yymv3925 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3925 = nil } else { yyv3930 := &yymv3925 yym3931 := z.DecBinary() _ = yym3931 if false { } else { *yyv3930 = r.DecodeBytes(*(*[]byte)(yyv3930), false, false) } } if yyv3925 != nil { yyv3925[yymk3925] = yymv3925 } } } // 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 _, yyv3932 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3933 := &yyv3932 yy3933.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 yyv3934 := *v yyh3934, yyl3934 := z.DecSliceHelperStart() var yyc3934 bool if yyl3934 == 0 { if yyv3934 == nil { yyv3934 = []Secret{} yyc3934 = true } else if len(yyv3934) != 0 { yyv3934 = yyv3934[:0] yyc3934 = true } } else if yyl3934 > 0 { var yyrr3934, yyrl3934 int var yyrt3934 bool if yyl3934 > cap(yyv3934) { yyrg3934 := len(yyv3934) > 0 yyv23934 := yyv3934 yyrl3934, yyrt3934 = z.DecInferLen(yyl3934, z.DecBasicHandle().MaxInitLen, 216) if yyrt3934 { if yyrl3934 <= cap(yyv3934) { yyv3934 = yyv3934[:yyrl3934] } else { yyv3934 = make([]Secret, yyrl3934) } } else { yyv3934 = make([]Secret, yyrl3934) } yyc3934 = true yyrr3934 = len(yyv3934) if yyrg3934 { copy(yyv3934, yyv23934) } } else if yyl3934 != len(yyv3934) { yyv3934 = yyv3934[:yyl3934] yyc3934 = true } yyj3934 := 0 for ; yyj3934 < yyrr3934; yyj3934++ { yyh3934.ElemContainerState(yyj3934) if r.TryDecodeAsNil() { yyv3934[yyj3934] = Secret{} } else { yyv3935 := &yyv3934[yyj3934] yyv3935.CodecDecodeSelf(d) } } if yyrt3934 { for ; yyj3934 < yyl3934; yyj3934++ { yyv3934 = append(yyv3934, Secret{}) yyh3934.ElemContainerState(yyj3934) if r.TryDecodeAsNil() { yyv3934[yyj3934] = Secret{} } else { yyv3936 := &yyv3934[yyj3934] yyv3936.CodecDecodeSelf(d) } } } } else { yyj3934 := 0 for ; !r.CheckBreak(); yyj3934++ { if yyj3934 >= len(yyv3934) { yyv3934 = append(yyv3934, Secret{}) // var yyz3934 Secret yyc3934 = true } yyh3934.ElemContainerState(yyj3934) if yyj3934 < len(yyv3934) { if r.TryDecodeAsNil() { yyv3934[yyj3934] = Secret{} } else { yyv3937 := &yyv3934[yyj3934] yyv3937.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3934 < len(yyv3934) { yyv3934 = yyv3934[:yyj3934] yyc3934 = true } else if yyj3934 == 0 && yyv3934 == nil { yyv3934 = []Secret{} yyc3934 = true } } yyh3934.End() if yyc3934 { *v = yyv3934 } } 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 _, yyv3938 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3939 := &yyv3938 yy3939.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 yyv3940 := *v yyh3940, yyl3940 := z.DecSliceHelperStart() var yyc3940 bool if yyl3940 == 0 { if yyv3940 == nil { yyv3940 = []ConfigMap{} yyc3940 = true } else if len(yyv3940) != 0 { yyv3940 = yyv3940[:0] yyc3940 = true } } else if yyl3940 > 0 { var yyrr3940, yyrl3940 int var yyrt3940 bool if yyl3940 > cap(yyv3940) { yyrg3940 := len(yyv3940) > 0 yyv23940 := yyv3940 yyrl3940, yyrt3940 = z.DecInferLen(yyl3940, z.DecBasicHandle().MaxInitLen, 200) if yyrt3940 { if yyrl3940 <= cap(yyv3940) { yyv3940 = yyv3940[:yyrl3940] } else { yyv3940 = make([]ConfigMap, yyrl3940) } } else { yyv3940 = make([]ConfigMap, yyrl3940) } yyc3940 = true yyrr3940 = len(yyv3940) if yyrg3940 { copy(yyv3940, yyv23940) } } else if yyl3940 != len(yyv3940) { yyv3940 = yyv3940[:yyl3940] yyc3940 = true } yyj3940 := 0 for ; yyj3940 < yyrr3940; yyj3940++ { yyh3940.ElemContainerState(yyj3940) if r.TryDecodeAsNil() { yyv3940[yyj3940] = ConfigMap{} } else { yyv3941 := &yyv3940[yyj3940] yyv3941.CodecDecodeSelf(d) } } if yyrt3940 { for ; yyj3940 < yyl3940; yyj3940++ { yyv3940 = append(yyv3940, ConfigMap{}) yyh3940.ElemContainerState(yyj3940) if r.TryDecodeAsNil() { yyv3940[yyj3940] = ConfigMap{} } else { yyv3942 := &yyv3940[yyj3940] yyv3942.CodecDecodeSelf(d) } } } } else { yyj3940 := 0 for ; !r.CheckBreak(); yyj3940++ { if yyj3940 >= len(yyv3940) { yyv3940 = append(yyv3940, ConfigMap{}) // var yyz3940 ConfigMap yyc3940 = true } yyh3940.ElemContainerState(yyj3940) if yyj3940 < len(yyv3940) { if r.TryDecodeAsNil() { yyv3940[yyj3940] = ConfigMap{} } else { yyv3943 := &yyv3940[yyj3940] yyv3943.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3940 < len(yyv3940) { yyv3940 = yyv3940[:yyj3940] yyc3940 = true } else if yyj3940 == 0 && yyv3940 == nil { yyv3940 = []ConfigMap{} yyc3940 = true } } yyh3940.End() if yyc3940 { *v = yyv3940 } } 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 _, yyv3944 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3945 := &yyv3944 yy3945.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 yyv3946 := *v yyh3946, yyl3946 := z.DecSliceHelperStart() var yyc3946 bool if yyl3946 == 0 { if yyv3946 == nil { yyv3946 = []ComponentCondition{} yyc3946 = true } else if len(yyv3946) != 0 { yyv3946 = yyv3946[:0] yyc3946 = true } } else if yyl3946 > 0 { var yyrr3946, yyrl3946 int var yyrt3946 bool if yyl3946 > cap(yyv3946) { yyrg3946 := len(yyv3946) > 0 yyv23946 := yyv3946 yyrl3946, yyrt3946 = z.DecInferLen(yyl3946, z.DecBasicHandle().MaxInitLen, 64) if yyrt3946 { if yyrl3946 <= cap(yyv3946) { yyv3946 = yyv3946[:yyrl3946] } else { yyv3946 = make([]ComponentCondition, yyrl3946) } } else { yyv3946 = make([]ComponentCondition, yyrl3946) } yyc3946 = true yyrr3946 = len(yyv3946) if yyrg3946 { copy(yyv3946, yyv23946) } } else if yyl3946 != len(yyv3946) { yyv3946 = yyv3946[:yyl3946] yyc3946 = true } yyj3946 := 0 for ; yyj3946 < yyrr3946; yyj3946++ { yyh3946.ElemContainerState(yyj3946) if r.TryDecodeAsNil() { yyv3946[yyj3946] = ComponentCondition{} } else { yyv3947 := &yyv3946[yyj3946] yyv3947.CodecDecodeSelf(d) } } if yyrt3946 { for ; yyj3946 < yyl3946; yyj3946++ { yyv3946 = append(yyv3946, ComponentCondition{}) yyh3946.ElemContainerState(yyj3946) if r.TryDecodeAsNil() { yyv3946[yyj3946] = ComponentCondition{} } else { yyv3948 := &yyv3946[yyj3946] yyv3948.CodecDecodeSelf(d) } } } } else { yyj3946 := 0 for ; !r.CheckBreak(); yyj3946++ { if yyj3946 >= len(yyv3946) { yyv3946 = append(yyv3946, ComponentCondition{}) // var yyz3946 ComponentCondition yyc3946 = true } yyh3946.ElemContainerState(yyj3946) if yyj3946 < len(yyv3946) { if r.TryDecodeAsNil() { yyv3946[yyj3946] = ComponentCondition{} } else { yyv3949 := &yyv3946[yyj3946] yyv3949.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3946 < len(yyv3946) { yyv3946 = yyv3946[:yyj3946] yyc3946 = true } else if yyj3946 == 0 && yyv3946 == nil { yyv3946 = []ComponentCondition{} yyc3946 = true } } yyh3946.End() if yyc3946 { *v = yyv3946 } } 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 _, yyv3950 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3951 := &yyv3950 yy3951.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 yyv3952 := *v yyh3952, yyl3952 := z.DecSliceHelperStart() var yyc3952 bool if yyl3952 == 0 { if yyv3952 == nil { yyv3952 = []ComponentStatus{} yyc3952 = true } else if len(yyv3952) != 0 { yyv3952 = yyv3952[:0] yyc3952 = true } } else if yyl3952 > 0 { var yyrr3952, yyrl3952 int var yyrt3952 bool if yyl3952 > cap(yyv3952) { yyrg3952 := len(yyv3952) > 0 yyv23952 := yyv3952 yyrl3952, yyrt3952 = z.DecInferLen(yyl3952, z.DecBasicHandle().MaxInitLen, 216) if yyrt3952 { if yyrl3952 <= cap(yyv3952) { yyv3952 = yyv3952[:yyrl3952] } else { yyv3952 = make([]ComponentStatus, yyrl3952) } } else { yyv3952 = make([]ComponentStatus, yyrl3952) } yyc3952 = true yyrr3952 = len(yyv3952) if yyrg3952 { copy(yyv3952, yyv23952) } } else if yyl3952 != len(yyv3952) { yyv3952 = yyv3952[:yyl3952] yyc3952 = true } yyj3952 := 0 for ; yyj3952 < yyrr3952; yyj3952++ { yyh3952.ElemContainerState(yyj3952) if r.TryDecodeAsNil() { yyv3952[yyj3952] = ComponentStatus{} } else { yyv3953 := &yyv3952[yyj3952] yyv3953.CodecDecodeSelf(d) } } if yyrt3952 { for ; yyj3952 < yyl3952; yyj3952++ { yyv3952 = append(yyv3952, ComponentStatus{}) yyh3952.ElemContainerState(yyj3952) if r.TryDecodeAsNil() { yyv3952[yyj3952] = ComponentStatus{} } else { yyv3954 := &yyv3952[yyj3952] yyv3954.CodecDecodeSelf(d) } } } } else { yyj3952 := 0 for ; !r.CheckBreak(); yyj3952++ { if yyj3952 >= len(yyv3952) { yyv3952 = append(yyv3952, ComponentStatus{}) // var yyz3952 ComponentStatus yyc3952 = true } yyh3952.ElemContainerState(yyj3952) if yyj3952 < len(yyv3952) { if r.TryDecodeAsNil() { yyv3952[yyj3952] = ComponentStatus{} } else { yyv3955 := &yyv3952[yyj3952] yyv3955.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3952 < len(yyv3952) { yyv3952 = yyv3952[:yyj3952] yyc3952 = true } else if yyj3952 == 0 && yyv3952 == nil { yyv3952 = []ComponentStatus{} yyc3952 = true } } yyh3952.End() if yyc3952 { *v = yyv3952 } }