/* 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 [17]bool _, _, _ = yysep82, yyq82, yy2arr82 const yyr82 bool = false yyq82[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil yyq82[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil yyq82[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq82[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq82[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil yyq82[6] = x.VolumeSource.Secret != nil && x.Secret != nil yyq82[7] = x.VolumeSource.NFS != nil && x.NFS != nil yyq82[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil yyq82[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq82[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil yyq82[11] = x.VolumeSource.RBD != nil && x.RBD != nil yyq82[12] = x.VolumeSource.Cinder != nil && x.Cinder != nil yyq82[13] = x.VolumeSource.CephFS != nil && x.CephFS != nil yyq82[14] = x.VolumeSource.Flocker != nil && x.Flocker != nil yyq82[15] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil yyq82[16] = x.VolumeSource.FC != nil && x.FC != nil var yynn82 int if yyr82 || yy2arr82 { r.EncodeArrayStart(17) } else { yynn82 = 1 for _, b := range yyq82 { if b { yynn82++ } } r.EncodeMapStart(yynn82) yynn82 = 0 } if yyr82 || yy2arr82 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym84 := z.EncBinary() _ = yym84 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym85 := z.EncBinary() _ = yym85 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } var yyn86 bool if x.VolumeSource.HostPath == nil { yyn86 = true goto LABEL86 } LABEL86: if yyr82 || yy2arr82 { if yyn86 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[1] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn86 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn87 bool if x.VolumeSource.EmptyDir == nil { yyn87 = true goto LABEL87 } LABEL87: if yyr82 || yy2arr82 { if yyn87 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[2] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn87 { r.EncodeNil() } else { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } } } var yyn88 bool if x.VolumeSource.GCEPersistentDisk == nil { yyn88 = true goto LABEL88 } LABEL88: if yyr82 || yy2arr82 { if yyn88 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[3] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn88 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn89 bool if x.VolumeSource.AWSElasticBlockStore == nil { yyn89 = true goto LABEL89 } LABEL89: if yyr82 || yy2arr82 { if yyn89 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[4] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn89 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn90 bool if x.VolumeSource.GitRepo == nil { yyn90 = true goto LABEL90 } LABEL90: if yyr82 || yy2arr82 { if yyn90 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[5] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn90 { r.EncodeNil() } else { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } } } var yyn91 bool if x.VolumeSource.Secret == nil { yyn91 = true goto LABEL91 } LABEL91: if yyr82 || yy2arr82 { if yyn91 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[6] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn91 { r.EncodeNil() } else { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } } } var yyn92 bool if x.VolumeSource.NFS == nil { yyn92 = true goto LABEL92 } LABEL92: if yyr82 || yy2arr82 { if yyn92 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[7] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn92 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn93 bool if x.VolumeSource.ISCSI == nil { yyn93 = true goto LABEL93 } LABEL93: if yyr82 || yy2arr82 { if yyn93 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[8] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn93 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn94 bool if x.VolumeSource.Glusterfs == nil { yyn94 = true goto LABEL94 } LABEL94: if yyr82 || yy2arr82 { if yyn94 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[9] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn94 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn95 bool if x.VolumeSource.PersistentVolumeClaim == nil { yyn95 = true goto LABEL95 } LABEL95: if yyr82 || yy2arr82 { if yyn95 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[10] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn95 { r.EncodeNil() } else { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } } var yyn96 bool if x.VolumeSource.RBD == nil { yyn96 = true goto LABEL96 } LABEL96: if yyr82 || yy2arr82 { if yyn96 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[11] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn96 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn97 bool if x.VolumeSource.Cinder == nil { yyn97 = true goto LABEL97 } LABEL97: if yyr82 || yy2arr82 { if yyn97 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[12] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn97 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn98 bool if x.VolumeSource.CephFS == nil { yyn98 = true goto LABEL98 } LABEL98: if yyr82 || yy2arr82 { if yyn98 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[13] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn98 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn99 bool if x.VolumeSource.Flocker == nil { yyn99 = true goto LABEL99 } LABEL99: if yyr82 || yy2arr82 { if yyn99 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[14] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn99 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn100 bool if x.VolumeSource.DownwardAPI == nil { yyn100 = true goto LABEL100 } LABEL100: if yyr82 || yy2arr82 { if yyn100 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[15] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn100 { r.EncodeNil() } else { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } } var yyn101 bool if x.VolumeSource.FC == nil { yyn101 = true goto LABEL101 } LABEL101: if yyr82 || yy2arr82 { if yyn101 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq82[16] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq82[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn101 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } if yyr82 || yy2arr82 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym102 := z.DecBinary() _ = yym102 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct103 := r.ContainerType() if yyct103 == codecSelferValueTypeMap1234 { yyl103 := r.ReadMapStart() if yyl103 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl103, d) } } else if yyct103 == codecSelferValueTypeArray1234 { yyl103 := r.ReadArrayStart() if yyl103 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl103, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys104Slc = z.DecScratchBuffer() // default slice to decode into _ = yys104Slc var yyhl104 bool = l >= 0 for yyj104 := 0; ; yyj104++ { if yyhl104 { if yyj104 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys104Slc = r.DecodeBytes(yys104Slc, true, true) yys104 := string(yys104Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys104 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "hostPath": if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "emptyDir": if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "gitRepo": if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } case "secret": if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } case "nfs": if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "iscsi": if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "glusterfs": if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "persistentVolumeClaim": if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } case "rbd": if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "cinder": if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys104) } // end switch yys104 } // end for yyj104 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj122 int var yyb122 bool var yyhl122 bool = l >= 0 yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } if x.VolumeSource.HostPath == nil { x.VolumeSource.HostPath = new(HostPathVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } if x.VolumeSource.EmptyDir == nil { x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } if x.VolumeSource.GCEPersistentDisk == nil { x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } if x.VolumeSource.AWSElasticBlockStore == nil { x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } if x.VolumeSource.GitRepo == nil { x.VolumeSource.GitRepo = new(GitRepoVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } if x.VolumeSource.Secret == nil { x.VolumeSource.Secret = new(SecretVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } if x.VolumeSource.NFS == nil { x.VolumeSource.NFS = new(NFSVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } if x.VolumeSource.ISCSI == nil { x.VolumeSource.ISCSI = new(ISCSIVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } if x.VolumeSource.Glusterfs == nil { x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } if x.VolumeSource.PersistentVolumeClaim == nil { x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } if x.VolumeSource.RBD == nil { x.VolumeSource.RBD = new(RBDVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } for { yyj122++ if yyhl122 { yyb122 = yyj122 > l } else { yyb122 = r.CheckBreak() } if yyb122 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj122-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym140 := z.EncBinary() _ = yym140 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep141 := !z.EncBinary() yy2arr141 := z.EncBasicHandle().StructToArray var yyq141 [16]bool _, _, _ = yysep141, yyq141, yy2arr141 const yyr141 bool = false yyq141[0] = x.HostPath != nil yyq141[1] = x.EmptyDir != nil yyq141[2] = x.GCEPersistentDisk != nil yyq141[3] = x.AWSElasticBlockStore != nil yyq141[4] = x.GitRepo != nil yyq141[5] = x.Secret != nil yyq141[6] = x.NFS != nil yyq141[7] = x.ISCSI != nil yyq141[8] = x.Glusterfs != nil yyq141[9] = x.PersistentVolumeClaim != nil yyq141[10] = x.RBD != nil yyq141[11] = x.Cinder != nil yyq141[12] = x.CephFS != nil yyq141[13] = x.Flocker != nil yyq141[14] = x.DownwardAPI != nil yyq141[15] = x.FC != nil var yynn141 int if yyr141 || yy2arr141 { r.EncodeArrayStart(16) } else { yynn141 = 0 for _, b := range yyq141 { if b { yynn141++ } } r.EncodeMapStart(yynn141) yynn141 = 0 } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[0] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[1] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[4] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[5] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[6] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[8] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[10] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[11] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[12] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[13] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[14] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq141[15] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq141[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } if yyr141 || yy2arr141 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym158 := z.DecBinary() _ = yym158 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct159 := r.ContainerType() if yyct159 == codecSelferValueTypeMap1234 { yyl159 := r.ReadMapStart() if yyl159 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl159, d) } } else if yyct159 == codecSelferValueTypeArray1234 { yyl159 := r.ReadArrayStart() if yyl159 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl159, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys160Slc = z.DecScratchBuffer() // default slice to decode into _ = yys160Slc var yyhl160 bool = l >= 0 for yyj160 := 0; ; yyj160++ { if yyhl160 { if yyj160 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys160Slc = r.DecodeBytes(yys160Slc, true, true) yys160 := string(yys160Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys160 { case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "emptyDir": if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "gitRepo": if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } case "secret": if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } case "nfs": if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "glusterfs": if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "persistentVolumeClaim": if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } case "rbd": if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys160) } // end switch yys160 } // end for yyj160 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj177 int var yyb177 bool var yyhl177 bool = l >= 0 yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.EmptyDir != nil { x.EmptyDir = nil } } else { if x.EmptyDir == nil { x.EmptyDir = new(EmptyDirVolumeSource) } x.EmptyDir.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GitRepo != nil { x.GitRepo = nil } } else { if x.GitRepo == nil { x.GitRepo = new(GitRepoVolumeSource) } x.GitRepo.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Secret != nil { x.Secret = nil } } else { if x.Secret == nil { x.Secret = new(SecretVolumeSource) } x.Secret.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PersistentVolumeClaim != nil { x.PersistentVolumeClaim = nil } } else { if x.PersistentVolumeClaim == nil { x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource) } x.PersistentVolumeClaim.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } for { yyj177++ if yyhl177 { yyb177 = yyj177 > l } else { yyb177 = r.CheckBreak() } if yyb177 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj177-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym194 := z.EncBinary() _ = yym194 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep195 := !z.EncBinary() yy2arr195 := z.EncBasicHandle().StructToArray var yyq195 [11]bool _, _, _ = yysep195, yyq195, yy2arr195 const yyr195 bool = false yyq195[0] = x.GCEPersistentDisk != nil yyq195[1] = x.AWSElasticBlockStore != nil yyq195[2] = x.HostPath != nil yyq195[3] = x.Glusterfs != nil yyq195[4] = x.NFS != nil yyq195[5] = x.RBD != nil yyq195[6] = x.ISCSI != nil yyq195[7] = x.Cinder != nil yyq195[8] = x.CephFS != nil yyq195[9] = x.FC != nil yyq195[10] = x.Flocker != nil var yynn195 int if yyr195 || yy2arr195 { r.EncodeArrayStart(11) } else { yynn195 = 0 for _, b := range yyq195 { if b { yynn195++ } } r.EncodeMapStart(yynn195) yynn195 = 0 } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[0] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[2] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[3] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[4] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[5] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[6] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[7] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[8] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[9] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq195[10] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq195[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } if yyr195 || yy2arr195 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym207 := z.DecBinary() _ = yym207 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct208 := r.ContainerType() if yyct208 == codecSelferValueTypeMap1234 { yyl208 := r.ReadMapStart() if yyl208 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl208, d) } } else if yyct208 == codecSelferValueTypeArray1234 { yyl208 := r.ReadArrayStart() if yyl208 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl208, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys209Slc = z.DecScratchBuffer() // default slice to decode into _ = yys209Slc var yyhl209 bool = l >= 0 for yyj209 := 0; ; yyj209++ { if yyhl209 { if yyj209 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys209Slc = r.DecodeBytes(yys209Slc, true, true) yys209 := string(yys209Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys209 { case "gcePersistentDisk": if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "hostPath": if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "glusterfs": if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "nfs": if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "rbd": if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys209) } // end switch yys209 } // end for yyj209 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj221 int var yyb221 bool var yyhl221 bool = l >= 0 yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } for { yyj221++ if yyhl221 { yyb221 = yyj221 > l } else { yyb221 = r.CheckBreak() } if yyb221 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj221-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym233 := z.EncBinary() _ = yym233 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep234 := !z.EncBinary() yy2arr234 := z.EncBasicHandle().StructToArray var yyq234 [2]bool _, _, _ = yysep234, yyq234, yy2arr234 const yyr234 bool = false yyq234[1] = x.ReadOnly != false var yynn234 int if yyr234 || yy2arr234 { r.EncodeArrayStart(2) } else { yynn234 = 1 for _, b := range yyq234 { if b { yynn234++ } } r.EncodeMapStart(yynn234) yynn234 = 0 } if yyr234 || yy2arr234 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym236 := z.EncBinary() _ = yym236 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym237 := z.EncBinary() _ = yym237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } if yyr234 || yy2arr234 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq234[1] { yym239 := z.EncBinary() _ = yym239 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq234[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym240 := z.EncBinary() _ = yym240 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr234 || yy2arr234 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym241 := z.DecBinary() _ = yym241 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct242 := r.ContainerType() if yyct242 == codecSelferValueTypeMap1234 { yyl242 := r.ReadMapStart() if yyl242 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl242, d) } } else if yyct242 == codecSelferValueTypeArray1234 { yyl242 := r.ReadArrayStart() if yyl242 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl242, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys243Slc = z.DecScratchBuffer() // default slice to decode into _ = yys243Slc var yyhl243 bool = l >= 0 for yyj243 := 0; ; yyj243++ { if yyhl243 { if yyj243 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys243Slc = r.DecodeBytes(yys243Slc, true, true) yys243 := string(yys243Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys243 { case "claimName": if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys243) } // end switch yys243 } // end for yyj243 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj246 int var yyb246 bool var yyhl246 bool = l >= 0 yyj246++ if yyhl246 { yyb246 = yyj246 > l } else { yyb246 = r.CheckBreak() } if yyb246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } yyj246++ if yyhl246 { yyb246 = yyj246 > l } else { yyb246 = r.CheckBreak() } if yyb246 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj246++ if yyhl246 { yyb246 = yyj246 > l } else { yyb246 = r.CheckBreak() } if yyb246 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj246-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym249 := z.EncBinary() _ = yym249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep250 := !z.EncBinary() yy2arr250 := z.EncBasicHandle().StructToArray var yyq250 [5]bool _, _, _ = yysep250, yyq250, yy2arr250 const yyr250 bool = false yyq250[0] = x.Kind != "" yyq250[1] = x.APIVersion != "" yyq250[2] = true yyq250[3] = true yyq250[4] = true var yynn250 int if yyr250 || yy2arr250 { r.EncodeArrayStart(5) } else { yynn250 = 0 for _, b := range yyq250 { if b { yynn250++ } } r.EncodeMapStart(yynn250) yynn250 = 0 } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[0] { yym252 := z.EncBinary() _ = yym252 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq250[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym253 := z.EncBinary() _ = yym253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[1] { yym255 := z.EncBinary() _ = yym255 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq250[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym256 := z.EncBinary() _ = yym256 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[2] { yy258 := &x.ObjectMeta yy258.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq250[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy259 := &x.ObjectMeta yy259.CodecEncodeSelf(e) } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[3] { yy261 := &x.Spec yy261.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq250[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy262 := &x.Spec yy262.CodecEncodeSelf(e) } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[4] { yy264 := &x.Status yy264.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq250[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy265 := &x.Status yy265.CodecEncodeSelf(e) } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym266 := z.DecBinary() _ = yym266 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct267 := r.ContainerType() if yyct267 == codecSelferValueTypeMap1234 { yyl267 := r.ReadMapStart() if yyl267 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl267, d) } } else if yyct267 == codecSelferValueTypeArray1234 { yyl267 := r.ReadArrayStart() if yyl267 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl267, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys268Slc = z.DecScratchBuffer() // default slice to decode into _ = yys268Slc var yyhl268 bool = l >= 0 for yyj268 := 0; ; yyj268++ { if yyhl268 { if yyj268 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys268Slc = r.DecodeBytes(yys268Slc, true, true) yys268 := string(yys268Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys268 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv271 := &x.ObjectMeta yyv271.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv272 := &x.Spec yyv272.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv273 := &x.Status yyv273.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys268) } // end switch yys268 } // end for yyj268 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj274 int var yyb274 bool var yyhl274 bool = l >= 0 yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv277 := &x.ObjectMeta yyv277.CodecDecodeSelf(d) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv278 := &x.Spec yyv278.CodecDecodeSelf(d) } yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv279 := &x.Status yyv279.CodecDecodeSelf(d) } for { yyj274++ if yyhl274 { yyb274 = yyj274 > l } else { yyb274 = r.CheckBreak() } if yyb274 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj274-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym280 := z.EncBinary() _ = yym280 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep281 := !z.EncBinary() yy2arr281 := z.EncBasicHandle().StructToArray var yyq281 [15]bool _, _, _ = yysep281, yyq281, yy2arr281 const yyr281 bool = false yyq281[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq281[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq281[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil yyq281[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq281[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil yyq281[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil yyq281[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil yyq281[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil yyq281[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil yyq281[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil yyq281[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil yyq281[12] = len(x.AccessModes) != 0 yyq281[13] = x.ClaimRef != nil yyq281[14] = x.PersistentVolumeReclaimPolicy != "" var yynn281 int if yyr281 || yy2arr281 { r.EncodeArrayStart(15) } else { yynn281 = 1 for _, b := range yyq281 { if b { yynn281++ } } r.EncodeMapStart(yynn281) yynn281 = 0 } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } var yyn283 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn283 = true goto LABEL283 } LABEL283: if yyr281 || yy2arr281 { if yyn283 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn283 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn284 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn284 = true goto LABEL284 } LABEL284: if yyr281 || yy2arr281 { if yyn284 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn284 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn285 bool if x.PersistentVolumeSource.HostPath == nil { yyn285 = true goto LABEL285 } LABEL285: if yyr281 || yy2arr281 { if yyn285 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[3] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn285 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn286 bool if x.PersistentVolumeSource.Glusterfs == nil { yyn286 = true goto LABEL286 } LABEL286: if yyr281 || yy2arr281 { if yyn286 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[4] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn286 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn287 bool if x.PersistentVolumeSource.NFS == nil { yyn287 = true goto LABEL287 } LABEL287: if yyr281 || yy2arr281 { if yyn287 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[5] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn287 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn288 bool if x.PersistentVolumeSource.RBD == nil { yyn288 = true goto LABEL288 } LABEL288: if yyr281 || yy2arr281 { if yyn288 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[6] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn288 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn289 bool if x.PersistentVolumeSource.ISCSI == nil { yyn289 = true goto LABEL289 } LABEL289: if yyr281 || yy2arr281 { if yyn289 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn289 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn290 bool if x.PersistentVolumeSource.Cinder == nil { yyn290 = true goto LABEL290 } LABEL290: if yyr281 || yy2arr281 { if yyn290 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[8] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn290 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn291 bool if x.PersistentVolumeSource.CephFS == nil { yyn291 = true goto LABEL291 } LABEL291: if yyr281 || yy2arr281 { if yyn291 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[9] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn291 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn292 bool if x.PersistentVolumeSource.FC == nil { yyn292 = true goto LABEL292 } LABEL292: if yyr281 || yy2arr281 { if yyn292 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[10] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn292 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn293 bool if x.PersistentVolumeSource.Flocker == nil { yyn293 = true goto LABEL293 } LABEL293: if yyr281 || yy2arr281 { if yyn293 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[11] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq281[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn293 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[12] { if x.AccessModes == nil { r.EncodeNil() } else { yym295 := z.EncBinary() _ = yym295 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq281[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym296 := z.EncBinary() _ = yym296 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[13] { if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq281[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("claimRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq281[14] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq281[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } if yyr281 || yy2arr281 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym299 := z.DecBinary() _ = yym299 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct300 := r.ContainerType() if yyct300 == codecSelferValueTypeMap1234 { yyl300 := r.ReadMapStart() if yyl300 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl300, d) } } else if yyct300 == codecSelferValueTypeArray1234 { yyl300 := r.ReadArrayStart() if yyl300 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl300, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys301Slc = z.DecScratchBuffer() // default slice to decode into _ = yys301Slc var yyhl301 bool = l >= 0 for yyj301 := 0; ; yyj301++ { if yyhl301 { if yyj301 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys301Slc = r.DecodeBytes(yys301Slc, true, true) yys301 := string(yys301Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys301 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv302 := &x.Capacity yyv302.CodecDecodeSelf(d) } case "gcePersistentDisk": if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } case "awsElasticBlockStore": if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } case "hostPath": if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } case "glusterfs": if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } case "nfs": if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } case "rbd": if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } case "iscsi": if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "cinder": if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv314 := &x.AccessModes yym315 := z.DecBinary() _ = yym315 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv314), d) } } case "claimRef": if r.TryDecodeAsNil() { if x.ClaimRef != nil { x.ClaimRef = nil } } else { if x.ClaimRef == nil { x.ClaimRef = new(ObjectReference) } x.ClaimRef.CodecDecodeSelf(d) } case "persistentVolumeReclaimPolicy": if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys301) } // end switch yys301 } // end for yyj301 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj318 int var yyb318 bool var yyhl318 bool = l >= 0 yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv319 := &x.Capacity yyv319.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GCEPersistentDisk != nil { x.GCEPersistentDisk = nil } } else { if x.GCEPersistentDisk == nil { x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } x.GCEPersistentDisk.CodecDecodeSelf(d) } if x.PersistentVolumeSource.AWSElasticBlockStore == nil { x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AWSElasticBlockStore != nil { x.AWSElasticBlockStore = nil } } else { if x.AWSElasticBlockStore == nil { x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource) } x.AWSElasticBlockStore.CodecDecodeSelf(d) } if x.PersistentVolumeSource.HostPath == nil { x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HostPath != nil { x.HostPath = nil } } else { if x.HostPath == nil { x.HostPath = new(HostPathVolumeSource) } x.HostPath.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Glusterfs == nil { x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Glusterfs != nil { x.Glusterfs = nil } } else { if x.Glusterfs == nil { x.Glusterfs = new(GlusterfsVolumeSource) } x.Glusterfs.CodecDecodeSelf(d) } if x.PersistentVolumeSource.NFS == nil { x.PersistentVolumeSource.NFS = new(NFSVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NFS != nil { x.NFS = nil } } else { if x.NFS == nil { x.NFS = new(NFSVolumeSource) } x.NFS.CodecDecodeSelf(d) } if x.PersistentVolumeSource.RBD == nil { x.PersistentVolumeSource.RBD = new(RBDVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RBD != nil { x.RBD = nil } } else { if x.RBD == nil { x.RBD = new(RBDVolumeSource) } x.RBD.CodecDecodeSelf(d) } if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv331 := &x.AccessModes yym332 := z.DecBinary() _ = yym332 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv331), d) } } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ClaimRef != nil { x.ClaimRef = nil } } else { if x.ClaimRef == nil { x.ClaimRef = new(ObjectReference) } x.ClaimRef.CodecDecodeSelf(d) } yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { yyj318++ if yyhl318 { yyb318 = yyj318 > l } else { yyb318 = r.CheckBreak() } if yyb318 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj318-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym335 := z.EncBinary() _ = yym335 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym336 := z.DecBinary() _ = yym336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym337 := z.EncBinary() _ = yym337 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep338 := !z.EncBinary() yy2arr338 := z.EncBasicHandle().StructToArray var yyq338 [3]bool _, _, _ = yysep338, yyq338, yy2arr338 const yyr338 bool = false yyq338[0] = x.Phase != "" yyq338[1] = x.Message != "" yyq338[2] = x.Reason != "" var yynn338 int if yyr338 || yy2arr338 { r.EncodeArrayStart(3) } else { yynn338 = 0 for _, b := range yyq338 { if b { yynn338++ } } r.EncodeMapStart(yynn338) yynn338 = 0 } if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq338[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq338[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq338[1] { yym341 := z.EncBinary() _ = yym341 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq338[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym342 := z.EncBinary() _ = yym342 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq338[2] { yym344 := z.EncBinary() _ = yym344 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq338[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym345 := z.EncBinary() _ = yym345 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr338 || yy2arr338 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym346 := z.DecBinary() _ = yym346 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct347 := r.ContainerType() if yyct347 == codecSelferValueTypeMap1234 { yyl347 := r.ReadMapStart() if yyl347 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl347, d) } } else if yyct347 == codecSelferValueTypeArray1234 { yyl347 := r.ReadArrayStart() if yyl347 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl347, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys348Slc = z.DecScratchBuffer() // default slice to decode into _ = yys348Slc var yyhl348 bool = l >= 0 for yyj348 := 0; ; yyj348++ { if yyhl348 { if yyj348 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys348Slc = r.DecodeBytes(yys348Slc, true, true) yys348 := string(yys348Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys348 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys348) } // end switch yys348 } // end for yyj348 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj352 int var yyb352 bool var yyhl352 bool = l >= 0 yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } for { yyj352++ if yyhl352 { yyb352 = yyj352 > l } else { yyb352 = r.CheckBreak() } if yyb352 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj352-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym356 := z.EncBinary() _ = yym356 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep357 := !z.EncBinary() yy2arr357 := z.EncBasicHandle().StructToArray var yyq357 [4]bool _, _, _ = yysep357, yyq357, yy2arr357 const yyr357 bool = false yyq357[0] = x.Kind != "" yyq357[1] = x.APIVersion != "" yyq357[2] = true var yynn357 int if yyr357 || yy2arr357 { r.EncodeArrayStart(4) } else { yynn357 = 1 for _, b := range yyq357 { if b { yynn357++ } } r.EncodeMapStart(yynn357) yynn357 = 0 } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq357[0] { yym359 := z.EncBinary() _ = yym359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq357[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym360 := z.EncBinary() _ = yym360 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq357[1] { yym362 := z.EncBinary() _ = yym362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq357[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym363 := z.EncBinary() _ = yym363 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq357[2] { yy365 := &x.ListMeta yym366 := z.EncBinary() _ = yym366 if false { } else if z.HasExtensions() && z.EncExt(yy365) { } else { z.EncFallback(yy365) } } else { r.EncodeNil() } } else { if yyq357[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy367 := &x.ListMeta yym368 := z.EncBinary() _ = yym368 if false { } else if z.HasExtensions() && z.EncExt(yy367) { } else { z.EncFallback(yy367) } } } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym370 := z.EncBinary() _ = yym370 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym371 := z.EncBinary() _ = yym371 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } if yyr357 || yy2arr357 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym372 := z.DecBinary() _ = yym372 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct373 := r.ContainerType() if yyct373 == codecSelferValueTypeMap1234 { yyl373 := r.ReadMapStart() if yyl373 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl373, d) } } else if yyct373 == codecSelferValueTypeArray1234 { yyl373 := r.ReadArrayStart() if yyl373 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl373, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys374Slc = z.DecScratchBuffer() // default slice to decode into _ = yys374Slc var yyhl374 bool = l >= 0 for yyj374 := 0; ; yyj374++ { if yyhl374 { if yyj374 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys374Slc = r.DecodeBytes(yys374Slc, true, true) yys374 := string(yys374Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys374 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv377 := &x.ListMeta yym378 := z.DecBinary() _ = yym378 if false { } else if z.HasExtensions() && z.DecExt(yyv377) { } else { z.DecFallback(yyv377, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv379 := &x.Items yym380 := z.DecBinary() _ = yym380 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv379), d) } } default: z.DecStructFieldNotFound(-1, yys374) } // end switch yys374 } // end for yyj374 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj381 int var yyb381 bool var yyhl381 bool = l >= 0 yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv384 := &x.ListMeta yym385 := z.DecBinary() _ = yym385 if false { } else if z.HasExtensions() && z.DecExt(yyv384) { } else { z.DecFallback(yyv384, false) } } yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv386 := &x.Items yym387 := z.DecBinary() _ = yym387 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv386), d) } } for { yyj381++ if yyhl381 { yyb381 = yyj381 > l } else { yyb381 = r.CheckBreak() } if yyb381 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj381-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym388 := z.EncBinary() _ = yym388 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep389 := !z.EncBinary() yy2arr389 := z.EncBasicHandle().StructToArray var yyq389 [5]bool _, _, _ = yysep389, yyq389, yy2arr389 const yyr389 bool = false yyq389[0] = x.Kind != "" yyq389[1] = x.APIVersion != "" yyq389[2] = true yyq389[3] = true yyq389[4] = true var yynn389 int if yyr389 || yy2arr389 { r.EncodeArrayStart(5) } else { yynn389 = 0 for _, b := range yyq389 { if b { yynn389++ } } r.EncodeMapStart(yynn389) yynn389 = 0 } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[0] { yym391 := z.EncBinary() _ = yym391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq389[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym392 := z.EncBinary() _ = yym392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[1] { yym394 := z.EncBinary() _ = yym394 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq389[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym395 := z.EncBinary() _ = yym395 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[2] { yy397 := &x.ObjectMeta yy397.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq389[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy398 := &x.ObjectMeta yy398.CodecEncodeSelf(e) } } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[3] { yy400 := &x.Spec yy400.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq389[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy401 := &x.Spec yy401.CodecEncodeSelf(e) } } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq389[4] { yy403 := &x.Status yy403.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq389[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy404 := &x.Status yy404.CodecEncodeSelf(e) } } if yyr389 || yy2arr389 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym405 := z.DecBinary() _ = yym405 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct406 := r.ContainerType() if yyct406 == codecSelferValueTypeMap1234 { yyl406 := r.ReadMapStart() if yyl406 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl406, d) } } else if yyct406 == codecSelferValueTypeArray1234 { yyl406 := r.ReadArrayStart() if yyl406 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl406, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys407Slc = z.DecScratchBuffer() // default slice to decode into _ = yys407Slc var yyhl407 bool = l >= 0 for yyj407 := 0; ; yyj407++ { if yyhl407 { if yyj407 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys407Slc = r.DecodeBytes(yys407Slc, true, true) yys407 := string(yys407Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys407 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv410 := &x.ObjectMeta yyv410.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv411 := &x.Spec yyv411.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv412 := &x.Status yyv412.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys407) } // end switch yys407 } // end for yyj407 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj413 int var yyb413 bool var yyhl413 bool = l >= 0 yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv416 := &x.ObjectMeta yyv416.CodecDecodeSelf(d) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv417 := &x.Spec yyv417.CodecDecodeSelf(d) } yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv418 := &x.Status yyv418.CodecDecodeSelf(d) } for { yyj413++ if yyhl413 { yyb413 = yyj413 > l } else { yyb413 = r.CheckBreak() } if yyb413 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj413-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym419 := z.EncBinary() _ = yym419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep420 := !z.EncBinary() yy2arr420 := z.EncBasicHandle().StructToArray var yyq420 [4]bool _, _, _ = yysep420, yyq420, yy2arr420 const yyr420 bool = false yyq420[0] = x.Kind != "" yyq420[1] = x.APIVersion != "" yyq420[2] = true var yynn420 int if yyr420 || yy2arr420 { r.EncodeArrayStart(4) } else { yynn420 = 1 for _, b := range yyq420 { if b { yynn420++ } } r.EncodeMapStart(yynn420) yynn420 = 0 } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq420[0] { yym422 := z.EncBinary() _ = yym422 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq420[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym423 := z.EncBinary() _ = yym423 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq420[1] { yym425 := z.EncBinary() _ = yym425 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq420[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym426 := z.EncBinary() _ = yym426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq420[2] { yy428 := &x.ListMeta yym429 := z.EncBinary() _ = yym429 if false { } else if z.HasExtensions() && z.EncExt(yy428) { } else { z.EncFallback(yy428) } } else { r.EncodeNil() } } else { if yyq420[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy430 := &x.ListMeta yym431 := z.EncBinary() _ = yym431 if false { } else if z.HasExtensions() && z.EncExt(yy430) { } else { z.EncFallback(yy430) } } } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym433 := z.EncBinary() _ = yym433 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym434 := z.EncBinary() _ = yym434 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } if yyr420 || yy2arr420 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym435 := z.DecBinary() _ = yym435 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct436 := r.ContainerType() if yyct436 == codecSelferValueTypeMap1234 { yyl436 := r.ReadMapStart() if yyl436 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl436, d) } } else if yyct436 == codecSelferValueTypeArray1234 { yyl436 := r.ReadArrayStart() if yyl436 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl436, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys437Slc = z.DecScratchBuffer() // default slice to decode into _ = yys437Slc var yyhl437 bool = l >= 0 for yyj437 := 0; ; yyj437++ { if yyhl437 { if yyj437 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys437Slc = r.DecodeBytes(yys437Slc, true, true) yys437 := string(yys437Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys437 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv440 := &x.ListMeta yym441 := z.DecBinary() _ = yym441 if false { } else if z.HasExtensions() && z.DecExt(yyv440) { } else { z.DecFallback(yyv440, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv442 := &x.Items yym443 := z.DecBinary() _ = yym443 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv442), d) } } default: z.DecStructFieldNotFound(-1, yys437) } // end switch yys437 } // end for yyj437 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj444 int var yyb444 bool var yyhl444 bool = l >= 0 yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv447 := &x.ListMeta yym448 := z.DecBinary() _ = yym448 if false { } else if z.HasExtensions() && z.DecExt(yyv447) { } else { z.DecFallback(yyv447, false) } } yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv449 := &x.Items yym450 := z.DecBinary() _ = yym450 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv449), d) } } for { yyj444++ if yyhl444 { yyb444 = yyj444 > l } else { yyb444 = r.CheckBreak() } if yyb444 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj444-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym451 := z.EncBinary() _ = yym451 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep452 := !z.EncBinary() yy2arr452 := z.EncBasicHandle().StructToArray var yyq452 [3]bool _, _, _ = yysep452, yyq452, yy2arr452 const yyr452 bool = false yyq452[0] = len(x.AccessModes) != 0 yyq452[1] = true yyq452[2] = x.VolumeName != "" var yynn452 int if yyr452 || yy2arr452 { r.EncodeArrayStart(3) } else { yynn452 = 0 for _, b := range yyq452 { if b { yynn452++ } } r.EncodeMapStart(yynn452) yynn452 = 0 } if yyr452 || yy2arr452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq452[0] { if x.AccessModes == nil { r.EncodeNil() } else { yym454 := z.EncBinary() _ = yym454 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq452[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym455 := z.EncBinary() _ = yym455 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr452 || yy2arr452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq452[1] { yy457 := &x.Resources yy457.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq452[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy458 := &x.Resources yy458.CodecEncodeSelf(e) } } if yyr452 || yy2arr452 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq452[2] { yym460 := z.EncBinary() _ = yym460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq452[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym461 := z.EncBinary() _ = yym461 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } if yyr452 || yy2arr452 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym462 := z.DecBinary() _ = yym462 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct463 := r.ContainerType() if yyct463 == codecSelferValueTypeMap1234 { yyl463 := r.ReadMapStart() if yyl463 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl463, d) } } else if yyct463 == codecSelferValueTypeArray1234 { yyl463 := r.ReadArrayStart() if yyl463 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl463, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys464Slc = z.DecScratchBuffer() // default slice to decode into _ = yys464Slc var yyhl464 bool = l >= 0 for yyj464 := 0; ; yyj464++ { if yyhl464 { if yyj464 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys464Slc = r.DecodeBytes(yys464Slc, true, true) yys464 := string(yys464Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys464 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv465 := &x.AccessModes yym466 := z.DecBinary() _ = yym466 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv465), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv467 := &x.Resources yyv467.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys464) } // end switch yys464 } // end for yyj464 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj469 int var yyb469 bool var yyhl469 bool = l >= 0 yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv470 := &x.AccessModes yym471 := z.DecBinary() _ = yym471 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv470), d) } } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv472 := &x.Resources yyv472.CodecDecodeSelf(d) } yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } for { yyj469++ if yyhl469 { yyb469 = yyj469 > l } else { yyb469 = r.CheckBreak() } if yyb469 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj469-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym474 := z.EncBinary() _ = yym474 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep475 := !z.EncBinary() yy2arr475 := z.EncBasicHandle().StructToArray var yyq475 [3]bool _, _, _ = yysep475, yyq475, yy2arr475 const yyr475 bool = false yyq475[0] = x.Phase != "" yyq475[1] = len(x.AccessModes) != 0 yyq475[2] = len(x.Capacity) != 0 var yynn475 int if yyr475 || yy2arr475 { r.EncodeArrayStart(3) } else { yynn475 = 0 for _, b := range yyq475 { if b { yynn475++ } } r.EncodeMapStart(yynn475) yynn475 = 0 } if yyr475 || yy2arr475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq475[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq475[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr475 || yy2arr475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq475[1] { if x.AccessModes == nil { r.EncodeNil() } else { yym478 := z.EncBinary() _ = yym478 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq475[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym479 := z.EncBinary() _ = yym479 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr475 || yy2arr475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq475[2] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq475[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } } if yyr475 || yy2arr475 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym481 := z.DecBinary() _ = yym481 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct482 := r.ContainerType() if yyct482 == codecSelferValueTypeMap1234 { yyl482 := r.ReadMapStart() if yyl482 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl482, d) } } else if yyct482 == codecSelferValueTypeArray1234 { yyl482 := r.ReadArrayStart() if yyl482 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl482, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys483Slc = z.DecScratchBuffer() // default slice to decode into _ = yys483Slc var yyhl483 bool = l >= 0 for yyj483 := 0; ; yyj483++ { if yyhl483 { if yyj483 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys483Slc = r.DecodeBytes(yys483Slc, true, true) yys483 := string(yys483Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys483 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv485 := &x.AccessModes yym486 := z.DecBinary() _ = yym486 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv485), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv487 := &x.Capacity yyv487.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys483) } // end switch yys483 } // end for yyj483 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj488 int var yyb488 bool var yyhl488 bool = l >= 0 yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv490 := &x.AccessModes yym491 := z.DecBinary() _ = yym491 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv490), d) } } yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv492 := &x.Capacity yyv492.CodecDecodeSelf(d) } for { yyj488++ if yyhl488 { yyb488 = yyj488 > l } else { yyb488 = r.CheckBreak() } if yyb488 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj488-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym493 := z.EncBinary() _ = yym493 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym494 := z.DecBinary() _ = yym494 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym495 := z.EncBinary() _ = yym495 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym496 := z.DecBinary() _ = yym496 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym497 := z.EncBinary() _ = yym497 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym498 := z.DecBinary() _ = yym498 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym499 := z.EncBinary() _ = yym499 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep500 := !z.EncBinary() yy2arr500 := z.EncBasicHandle().StructToArray var yyq500 [1]bool _, _, _ = yysep500, yyq500, yy2arr500 const yyr500 bool = false var yynn500 int if yyr500 || yy2arr500 { r.EncodeArrayStart(1) } else { yynn500 = 1 for _, b := range yyq500 { if b { yynn500++ } } r.EncodeMapStart(yynn500) yynn500 = 0 } if yyr500 || yy2arr500 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym502 := z.EncBinary() _ = yym502 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym503 := z.EncBinary() _ = yym503 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr500 || yy2arr500 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym504 := z.DecBinary() _ = yym504 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct505 := r.ContainerType() if yyct505 == codecSelferValueTypeMap1234 { yyl505 := r.ReadMapStart() if yyl505 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl505, d) } } else if yyct505 == codecSelferValueTypeArray1234 { yyl505 := r.ReadArrayStart() if yyl505 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl505, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys506Slc = z.DecScratchBuffer() // default slice to decode into _ = yys506Slc var yyhl506 bool = l >= 0 for yyj506 := 0; ; yyj506++ { if yyhl506 { if yyj506 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys506Slc = r.DecodeBytes(yys506Slc, true, true) yys506 := string(yys506Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys506 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys506) } // end switch yys506 } // end for yyj506 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj508 int var yyb508 bool var yyhl508 bool = l >= 0 yyj508++ if yyhl508 { yyb508 = yyj508 > l } else { yyb508 = r.CheckBreak() } if yyb508 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj508++ if yyhl508 { yyb508 = yyj508 > l } else { yyb508 = r.CheckBreak() } if yyb508 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj508-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym510 := z.EncBinary() _ = yym510 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep511 := !z.EncBinary() yy2arr511 := z.EncBasicHandle().StructToArray var yyq511 [1]bool _, _, _ = yysep511, yyq511, yy2arr511 const yyr511 bool = false var yynn511 int if yyr511 || yy2arr511 { r.EncodeArrayStart(1) } else { yynn511 = 1 for _, b := range yyq511 { if b { yynn511++ } } r.EncodeMapStart(yynn511) yynn511 = 0 } if yyr511 || yy2arr511 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Medium.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } if yyr511 || yy2arr511 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym513 := z.DecBinary() _ = yym513 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct514 := r.ContainerType() if yyct514 == codecSelferValueTypeMap1234 { yyl514 := r.ReadMapStart() if yyl514 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl514, d) } } else if yyct514 == codecSelferValueTypeArray1234 { yyl514 := r.ReadArrayStart() if yyl514 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl514, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys515Slc = z.DecScratchBuffer() // default slice to decode into _ = yys515Slc var yyhl515 bool = l >= 0 for yyj515 := 0; ; yyj515++ { if yyhl515 { if yyj515 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys515Slc = r.DecodeBytes(yys515Slc, true, true) yys515 := string(yys515Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys515 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys515) } // end switch yys515 } // end for yyj515 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj517 int var yyb517 bool var yyhl517 bool = l >= 0 yyj517++ if yyhl517 { yyb517 = yyj517 > l } else { yyb517 = r.CheckBreak() } if yyb517 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } for { yyj517++ if yyhl517 { yyb517 = yyj517 > l } else { yyb517 = r.CheckBreak() } if yyb517 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj517-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym519 := z.EncBinary() _ = yym519 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym520 := z.DecBinary() _ = yym520 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym521 := z.EncBinary() _ = yym521 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym522 := z.DecBinary() _ = yym522 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym523 := z.EncBinary() _ = yym523 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep524 := !z.EncBinary() yy2arr524 := z.EncBasicHandle().StructToArray var yyq524 [4]bool _, _, _ = yysep524, yyq524, yy2arr524 const yyr524 bool = false yyq524[1] = x.FSType != "" yyq524[2] = x.Partition != 0 yyq524[3] = x.ReadOnly != false var yynn524 int if yyr524 || yy2arr524 { r.EncodeArrayStart(4) } else { yynn524 = 1 for _, b := range yyq524 { if b { yynn524++ } } r.EncodeMapStart(yynn524) yynn524 = 0 } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym526 := z.EncBinary() _ = yym526 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pdName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym527 := z.EncBinary() _ = yym527 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq524[1] { yym529 := z.EncBinary() _ = yym529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq524[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym530 := z.EncBinary() _ = yym530 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq524[2] { yym532 := z.EncBinary() _ = yym532 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq524[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym533 := z.EncBinary() _ = yym533 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq524[3] { yym535 := z.EncBinary() _ = yym535 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq524[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym536 := z.EncBinary() _ = yym536 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr524 || yy2arr524 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym537 := z.DecBinary() _ = yym537 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct538 := r.ContainerType() if yyct538 == codecSelferValueTypeMap1234 { yyl538 := r.ReadMapStart() if yyl538 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl538, d) } } else if yyct538 == codecSelferValueTypeArray1234 { yyl538 := r.ReadArrayStart() if yyl538 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl538, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys539Slc = z.DecScratchBuffer() // default slice to decode into _ = yys539Slc var yyhl539 bool = l >= 0 for yyj539 := 0; ; yyj539++ { if yyhl539 { if yyj539 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys539Slc = r.DecodeBytes(yys539Slc, true, true) yys539 := string(yys539Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys539 { case "pdName": if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "partition": if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys539) } // end switch yys539 } // end for yyj539 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj544 int var yyb544 bool var yyhl544 bool = l >= 0 yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj544++ if yyhl544 { yyb544 = yyj544 > l } else { yyb544 = r.CheckBreak() } if yyb544 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj544-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym549 := z.EncBinary() _ = yym549 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep550 := !z.EncBinary() yy2arr550 := z.EncBasicHandle().StructToArray var yyq550 [5]bool _, _, _ = yysep550, yyq550, yy2arr550 const yyr550 bool = false yyq550[0] = x.TargetPortal != "" yyq550[1] = x.IQN != "" yyq550[2] = x.Lun != 0 yyq550[3] = x.FSType != "" yyq550[4] = x.ReadOnly != false var yynn550 int if yyr550 || yy2arr550 { r.EncodeArrayStart(5) } else { yynn550 = 0 for _, b := range yyq550 { if b { yynn550++ } } r.EncodeMapStart(yynn550) yynn550 = 0 } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[0] { yym552 := z.EncBinary() _ = yym552 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq550[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym553 := z.EncBinary() _ = yym553 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[1] { yym555 := z.EncBinary() _ = yym555 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq550[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym556 := z.EncBinary() _ = yym556 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[2] { yym558 := z.EncBinary() _ = yym558 if false { } else { r.EncodeInt(int64(x.Lun)) } } else { r.EncodeInt(0) } } else { if yyq550[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym559 := z.EncBinary() _ = yym559 if false { } else { r.EncodeInt(int64(x.Lun)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[3] { yym561 := z.EncBinary() _ = yym561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq550[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym562 := z.EncBinary() _ = yym562 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq550[4] { yym564 := z.EncBinary() _ = yym564 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq550[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym565 := z.EncBinary() _ = yym565 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr550 || yy2arr550 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym566 := z.DecBinary() _ = yym566 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct567 := r.ContainerType() if yyct567 == codecSelferValueTypeMap1234 { yyl567 := r.ReadMapStart() if yyl567 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl567, d) } } else if yyct567 == codecSelferValueTypeArray1234 { yyl567 := r.ReadArrayStart() if yyl567 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl567, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys568Slc = z.DecScratchBuffer() // default slice to decode into _ = yys568Slc var yyhl568 bool = l >= 0 for yyj568 := 0; ; yyj568++ { if yyhl568 { if yyj568 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys568Slc = r.DecodeBytes(yys568Slc, true, true) yys568 := string(yys568Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys568 { case "targetPortal": if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } case "iqn": if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } case "lun": if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int(r.DecodeInt(codecSelferBitsize1234)) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys568) } // end switch yys568 } // end for yyj568 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj574 int var yyb574 bool var yyhl574 bool = l >= 0 yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int(r.DecodeInt(codecSelferBitsize1234)) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj574++ if yyhl574 { yyb574 = yyj574 > l } else { yyb574 = r.CheckBreak() } if yyb574 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj574-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym580 := z.EncBinary() _ = yym580 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep581 := !z.EncBinary() yy2arr581 := z.EncBasicHandle().StructToArray var yyq581 [4]bool _, _, _ = yysep581, yyq581, yy2arr581 const yyr581 bool = false yyq581[3] = x.ReadOnly != false var yynn581 int if yyr581 || yy2arr581 { r.EncodeArrayStart(4) } else { yynn581 = 3 for _, b := range yyq581 { if b { yynn581++ } } r.EncodeMapStart(yynn581) yynn581 = 0 } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym583 := z.EncBinary() _ = yym583 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetWWNs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym584 := z.EncBinary() _ = yym584 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { yy586 := *x.Lun yym587 := z.EncBinary() _ = yym587 if false { } else { r.EncodeInt(int64(yy586)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lun == nil { r.EncodeNil() } else { yy588 := *x.Lun yym589 := z.EncBinary() _ = yym589 if false { } else { r.EncodeInt(int64(yy588)) } } } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym591 := z.EncBinary() _ = yym591 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym592 := z.EncBinary() _ = yym592 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq581[3] { yym594 := z.EncBinary() _ = yym594 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq581[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym595 := z.EncBinary() _ = yym595 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr581 || yy2arr581 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym596 := z.DecBinary() _ = yym596 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct597 := r.ContainerType() if yyct597 == codecSelferValueTypeMap1234 { yyl597 := r.ReadMapStart() if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl597, d) } } else if yyct597 == codecSelferValueTypeArray1234 { yyl597 := r.ReadArrayStart() if yyl597 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl597, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys598Slc = z.DecScratchBuffer() // default slice to decode into _ = yys598Slc var yyhl598 bool = l >= 0 for yyj598 := 0; ; yyj598++ { if yyhl598 { if yyj598 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys598Slc = r.DecodeBytes(yys598Slc, true, true) yys598 := string(yys598Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys598 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv599 := &x.TargetWWNs yym600 := z.DecBinary() _ = yym600 if false { } else { z.F.DecSliceStringX(yyv599, false, d) } } case "lun": if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int) } yym602 := z.DecBinary() _ = yym602 if false { } else { *((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234)) } } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys598) } // end switch yys598 } // end for yyj598 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj605 int var yyb605 bool var yyhl605 bool = l >= 0 yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv606 := &x.TargetWWNs yym607 := z.DecBinary() _ = yym607 if false { } else { z.F.DecSliceStringX(yyv606, false, d) } } yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int) } yym609 := z.DecBinary() _ = yym609 if false { } else { *((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234)) } } yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj605++ if yyhl605 { yyb605 = yyj605 > l } else { yyb605 = r.CheckBreak() } if yyb605 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj605-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym612 := z.EncBinary() _ = yym612 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep613 := !z.EncBinary() yy2arr613 := z.EncBasicHandle().StructToArray var yyq613 [4]bool _, _, _ = yysep613, yyq613, yy2arr613 const yyr613 bool = false yyq613[1] = x.FSType != "" yyq613[2] = x.Partition != 0 yyq613[3] = x.ReadOnly != false var yynn613 int if yyr613 || yy2arr613 { r.EncodeArrayStart(4) } else { yynn613 = 1 for _, b := range yyq613 { if b { yynn613++ } } r.EncodeMapStart(yynn613) yynn613 = 0 } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym615 := z.EncBinary() _ = yym615 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym616 := z.EncBinary() _ = yym616 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[1] { yym618 := z.EncBinary() _ = yym618 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq613[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym619 := z.EncBinary() _ = yym619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[2] { yym621 := z.EncBinary() _ = yym621 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq613[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym622 := z.EncBinary() _ = yym622 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq613[3] { yym624 := z.EncBinary() _ = yym624 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq613[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym625 := z.EncBinary() _ = yym625 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr613 || yy2arr613 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym626 := z.DecBinary() _ = yym626 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct627 := r.ContainerType() if yyct627 == codecSelferValueTypeMap1234 { yyl627 := r.ReadMapStart() if yyl627 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl627, d) } } else if yyct627 == codecSelferValueTypeArray1234 { yyl627 := r.ReadArrayStart() if yyl627 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl627, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys628Slc = z.DecScratchBuffer() // default slice to decode into _ = yys628Slc var yyhl628 bool = l >= 0 for yyj628 := 0; ; yyj628++ { if yyhl628 { if yyj628 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys628Slc = r.DecodeBytes(yys628Slc, true, true) yys628 := string(yys628Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys628 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "partition": if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys628) } // end switch yys628 } // end for yyj628 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj633 int var yyb633 bool var yyhl633 bool = l >= 0 yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int(r.DecodeInt(codecSelferBitsize1234)) } yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj633++ if yyhl633 { yyb633 = yyj633 > l } else { yyb633 = r.CheckBreak() } if yyb633 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj633-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym638 := z.EncBinary() _ = yym638 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep639 := !z.EncBinary() yy2arr639 := z.EncBasicHandle().StructToArray var yyq639 [2]bool _, _, _ = yysep639, yyq639, yy2arr639 const yyr639 bool = false var yynn639 int if yyr639 || yy2arr639 { r.EncodeArrayStart(2) } else { yynn639 = 2 for _, b := range yyq639 { if b { yynn639++ } } r.EncodeMapStart(yynn639) yynn639 = 0 } if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym641 := z.EncBinary() _ = yym641 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("repository")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym642 := z.EncBinary() _ = yym642 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym644 := z.EncBinary() _ = yym644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym645 := z.EncBinary() _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } if yyr639 || yy2arr639 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym646 := z.DecBinary() _ = yym646 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct647 := r.ContainerType() if yyct647 == codecSelferValueTypeMap1234 { yyl647 := r.ReadMapStart() if yyl647 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl647, d) } } else if yyct647 == codecSelferValueTypeArray1234 { yyl647 := r.ReadArrayStart() if yyl647 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl647, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys648Slc = z.DecScratchBuffer() // default slice to decode into _ = yys648Slc var yyhl648 bool = l >= 0 for yyj648 := 0; ; yyj648++ { if yyhl648 { if yyj648 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys648Slc = r.DecodeBytes(yys648Slc, true, true) yys648 := string(yys648Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys648 { case "repository": if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } case "revision": if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys648) } // end switch yys648 } // end for yyj648 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj651 int var yyb651 bool var yyhl651 bool = l >= 0 yyj651++ if yyhl651 { yyb651 = yyj651 > l } else { yyb651 = r.CheckBreak() } if yyb651 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } yyj651++ if yyhl651 { yyb651 = yyj651 > l } else { yyb651 = r.CheckBreak() } if yyb651 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } for { yyj651++ if yyhl651 { yyb651 = yyj651 > l } else { yyb651 = r.CheckBreak() } if yyb651 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj651-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym654 := z.EncBinary() _ = yym654 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep655 := !z.EncBinary() yy2arr655 := z.EncBasicHandle().StructToArray var yyq655 [1]bool _, _, _ = yysep655, yyq655, yy2arr655 const yyr655 bool = false var yynn655 int if yyr655 || yy2arr655 { r.EncodeArrayStart(1) } else { yynn655 = 1 for _, b := range yyq655 { if b { yynn655++ } } r.EncodeMapStart(yynn655) yynn655 = 0 } if yyr655 || yy2arr655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym657 := z.EncBinary() _ = yym657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym658 := z.EncBinary() _ = yym658 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } if yyr655 || yy2arr655 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym659 := z.DecBinary() _ = yym659 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct660 := r.ContainerType() if yyct660 == codecSelferValueTypeMap1234 { yyl660 := r.ReadMapStart() if yyl660 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl660, d) } } else if yyct660 == codecSelferValueTypeArray1234 { yyl660 := r.ReadArrayStart() if yyl660 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl660, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys661Slc = z.DecScratchBuffer() // default slice to decode into _ = yys661Slc var yyhl661 bool = l >= 0 for yyj661 := 0; ; yyj661++ { if yyhl661 { if yyj661 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys661Slc = r.DecodeBytes(yys661Slc, true, true) yys661 := string(yys661Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys661 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys661) } // end switch yys661 } // end for yyj661 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj663 int var yyb663 bool var yyhl663 bool = l >= 0 yyj663++ if yyhl663 { yyb663 = yyj663 > l } else { yyb663 = r.CheckBreak() } if yyb663 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } for { yyj663++ if yyhl663 { yyb663 = yyj663 > l } else { yyb663 = r.CheckBreak() } if yyb663 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj663-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym665 := z.EncBinary() _ = yym665 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep666 := !z.EncBinary() yy2arr666 := z.EncBasicHandle().StructToArray var yyq666 [3]bool _, _, _ = yysep666, yyq666, yy2arr666 const yyr666 bool = false yyq666[2] = x.ReadOnly != false var yynn666 int if yyr666 || yy2arr666 { r.EncodeArrayStart(3) } else { yynn666 = 2 for _, b := range yyq666 { if b { yynn666++ } } r.EncodeMapStart(yynn666) yynn666 = 0 } if yyr666 || yy2arr666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym668 := z.EncBinary() _ = yym668 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("server")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym669 := z.EncBinary() _ = yym669 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } if yyr666 || yy2arr666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym671 := z.EncBinary() _ = yym671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym672 := z.EncBinary() _ = yym672 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr666 || yy2arr666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq666[2] { yym674 := z.EncBinary() _ = yym674 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq666[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym675 := z.EncBinary() _ = yym675 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr666 || yy2arr666 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym676 := z.DecBinary() _ = yym676 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct677 := r.ContainerType() if yyct677 == codecSelferValueTypeMap1234 { yyl677 := r.ReadMapStart() if yyl677 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl677, d) } } else if yyct677 == codecSelferValueTypeArray1234 { yyl677 := r.ReadArrayStart() if yyl677 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl677, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys678Slc = z.DecScratchBuffer() // default slice to decode into _ = yys678Slc var yyhl678 bool = l >= 0 for yyj678 := 0; ; yyj678++ { if yyhl678 { if yyj678 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys678Slc = r.DecodeBytes(yys678Slc, true, true) yys678 := string(yys678Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys678 { case "server": if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys678) } // end switch yys678 } // end for yyj678 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj682 int var yyb682 bool var yyhl682 bool = l >= 0 yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj682++ if yyhl682 { yyb682 = yyj682 > l } else { yyb682 = r.CheckBreak() } if yyb682 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj682-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym686 := z.EncBinary() _ = yym686 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep687 := !z.EncBinary() yy2arr687 := z.EncBasicHandle().StructToArray var yyq687 [3]bool _, _, _ = yysep687, yyq687, yy2arr687 const yyr687 bool = false yyq687[2] = x.ReadOnly != false var yynn687 int if yyr687 || yy2arr687 { r.EncodeArrayStart(3) } else { yynn687 = 2 for _, b := range yyq687 { if b { yynn687++ } } r.EncodeMapStart(yynn687) yynn687 = 0 } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym689 := z.EncBinary() _ = yym689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("endpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym690 := z.EncBinary() _ = yym690 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym692 := z.EncBinary() _ = yym692 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym693 := z.EncBinary() _ = yym693 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq687[2] { yym695 := z.EncBinary() _ = yym695 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq687[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym696 := z.EncBinary() _ = yym696 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr687 || yy2arr687 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym697 := z.DecBinary() _ = yym697 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct698 := r.ContainerType() if yyct698 == codecSelferValueTypeMap1234 { yyl698 := r.ReadMapStart() if yyl698 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl698, d) } } else if yyct698 == codecSelferValueTypeArray1234 { yyl698 := r.ReadArrayStart() if yyl698 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl698, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys699Slc = z.DecScratchBuffer() // default slice to decode into _ = yys699Slc var yyhl699 bool = l >= 0 for yyj699 := 0; ; yyj699++ { if yyhl699 { if yyj699 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys699Slc = r.DecodeBytes(yys699Slc, true, true) yys699 := string(yys699Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys699 { case "endpoints": if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys699) } // end switch yys699 } // end for yyj699 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj703 int var yyb703 bool var yyhl703 bool = l >= 0 yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj703++ if yyhl703 { yyb703 = yyj703 > l } else { yyb703 = r.CheckBreak() } if yyb703 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj703-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym707 := z.EncBinary() _ = yym707 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep708 := !z.EncBinary() yy2arr708 := z.EncBasicHandle().StructToArray var yyq708 [8]bool _, _, _ = yysep708, yyq708, yy2arr708 const yyr708 bool = false yyq708[2] = x.FSType != "" yyq708[7] = x.ReadOnly != false var yynn708 int if yyr708 || yy2arr708 { r.EncodeArrayStart(8) } else { yynn708 = 6 for _, b := range yyq708 { if b { yynn708++ } } r.EncodeMapStart(yynn708) yynn708 = 0 } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym710 := z.EncBinary() _ = yym710 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("monitors")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym711 := z.EncBinary() _ = yym711 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym713 := z.EncBinary() _ = yym713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym714 := z.EncBinary() _ = yym714 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq708[2] { yym716 := z.EncBinary() _ = yym716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq708[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym717 := z.EncBinary() _ = yym717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym719 := z.EncBinary() _ = yym719 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym720 := z.EncBinary() _ = yym720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym722 := z.EncBinary() _ = yym722 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym723 := z.EncBinary() _ = yym723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym725 := z.EncBinary() _ = yym725 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym726 := z.EncBinary() _ = yym726 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq708[7] { yym729 := z.EncBinary() _ = yym729 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq708[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym730 := z.EncBinary() _ = yym730 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr708 || yy2arr708 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym731 := z.DecBinary() _ = yym731 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct732 := r.ContainerType() if yyct732 == codecSelferValueTypeMap1234 { yyl732 := r.ReadMapStart() if yyl732 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl732, d) } } else if yyct732 == codecSelferValueTypeArray1234 { yyl732 := r.ReadArrayStart() if yyl732 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl732, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys733Slc = z.DecScratchBuffer() // default slice to decode into _ = yys733Slc var yyhl733 bool = l >= 0 for yyj733 := 0; ; yyj733++ { if yyhl733 { if yyj733 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys733Slc = r.DecodeBytes(yys733Slc, true, true) yys733 := string(yys733Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys733 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv734 := &x.CephMonitors yym735 := z.DecBinary() _ = yym735 if false { } else { z.F.DecSliceStringX(yyv734, false, d) } } case "image": if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "pool": if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } case "user": if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } case "keyring": if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys733) } // end switch yys733 } // end for yyj733 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj743 int var yyb743 bool var yyhl743 bool = l >= 0 yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv744 := &x.CephMonitors yym745 := z.DecBinary() _ = yym745 if false { } else { z.F.DecSliceStringX(yyv744, false, d) } } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj743++ if yyhl743 { yyb743 = yyj743 > l } else { yyb743 = r.CheckBreak() } if yyb743 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj743-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym753 := z.EncBinary() _ = yym753 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep754 := !z.EncBinary() yy2arr754 := z.EncBasicHandle().StructToArray var yyq754 [3]bool _, _, _ = yysep754, yyq754, yy2arr754 const yyr754 bool = false yyq754[1] = x.FSType != "" yyq754[2] = x.ReadOnly != false var yynn754 int if yyr754 || yy2arr754 { r.EncodeArrayStart(3) } else { yynn754 = 1 for _, b := range yyq754 { if b { yynn754++ } } r.EncodeMapStart(yynn754) yynn754 = 0 } if yyr754 || yy2arr754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym756 := z.EncBinary() _ = yym756 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym757 := z.EncBinary() _ = yym757 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr754 || yy2arr754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq754[1] { yym759 := z.EncBinary() _ = yym759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq754[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym760 := z.EncBinary() _ = yym760 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr754 || yy2arr754 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq754[2] { yym762 := z.EncBinary() _ = yym762 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq754[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym763 := z.EncBinary() _ = yym763 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr754 || yy2arr754 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym764 := z.DecBinary() _ = yym764 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct765 := r.ContainerType() if yyct765 == codecSelferValueTypeMap1234 { yyl765 := r.ReadMapStart() if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl765, d) } } else if yyct765 == codecSelferValueTypeArray1234 { yyl765 := r.ReadArrayStart() if yyl765 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl765, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys766Slc = z.DecScratchBuffer() // default slice to decode into _ = yys766Slc var yyhl766 bool = l >= 0 for yyj766 := 0; ; yyj766++ { if yyhl766 { if yyj766 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys766Slc = r.DecodeBytes(yys766Slc, true, true) yys766 := string(yys766Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys766 { case "volumeID": if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys766) } // end switch yys766 } // end for yyj766 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj770 int var yyb770 bool var yyhl770 bool = l >= 0 yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj770++ if yyhl770 { yyb770 = yyj770 > l } else { yyb770 = r.CheckBreak() } if yyb770 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj770-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym774 := z.EncBinary() _ = yym774 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep775 := !z.EncBinary() yy2arr775 := z.EncBasicHandle().StructToArray var yyq775 [5]bool _, _, _ = yysep775, yyq775, yy2arr775 const yyr775 bool = false yyq775[1] = x.User != "" yyq775[2] = x.SecretFile != "" yyq775[3] = x.SecretRef != nil yyq775[4] = x.ReadOnly != false var yynn775 int if yyr775 || yy2arr775 { r.EncodeArrayStart(5) } else { yynn775 = 1 for _, b := range yyq775 { if b { yynn775++ } } r.EncodeMapStart(yynn775) yynn775 = 0 } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { yym777 := z.EncBinary() _ = yym777 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("monitors")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Monitors == nil { r.EncodeNil() } else { yym778 := z.EncBinary() _ = yym778 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[1] { yym780 := z.EncBinary() _ = yym780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq775[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym781 := z.EncBinary() _ = yym781 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[2] { yym783 := z.EncBinary() _ = yym783 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq775[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym784 := z.EncBinary() _ = yym784 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[3] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq775[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq775[4] { yym787 := z.EncBinary() _ = yym787 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq775[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym788 := z.EncBinary() _ = yym788 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr775 || yy2arr775 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym789 := z.DecBinary() _ = yym789 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct790 := r.ContainerType() if yyct790 == codecSelferValueTypeMap1234 { yyl790 := r.ReadMapStart() if yyl790 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl790, d) } } else if yyct790 == codecSelferValueTypeArray1234 { yyl790 := r.ReadArrayStart() if yyl790 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl790, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys791Slc = z.DecScratchBuffer() // default slice to decode into _ = yys791Slc var yyhl791 bool = l >= 0 for yyj791 := 0; ; yyj791++ { if yyhl791 { if yyj791 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys791Slc = r.DecodeBytes(yys791Slc, true, true) yys791 := string(yys791Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys791 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv792 := &x.Monitors yym793 := z.DecBinary() _ = yym793 if false { } else { z.F.DecSliceStringX(yyv792, false, d) } } case "user": if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } case "secretFile": if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys791) } // end switch yys791 } // end for yyj791 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj798 int var yyb798 bool var yyhl798 bool = l >= 0 yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv799 := &x.Monitors yym800 := z.DecBinary() _ = yym800 if false { } else { z.F.DecSliceStringX(yyv799, false, d) } } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj798++ if yyhl798 { yyb798 = yyj798 > l } else { yyb798 = r.CheckBreak() } if yyb798 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj798-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym805 := z.EncBinary() _ = yym805 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep806 := !z.EncBinary() yy2arr806 := z.EncBasicHandle().StructToArray var yyq806 [1]bool _, _, _ = yysep806, yyq806, yy2arr806 const yyr806 bool = false var yynn806 int if yyr806 || yy2arr806 { r.EncodeArrayStart(1) } else { yynn806 = 1 for _, b := range yyq806 { if b { yynn806++ } } r.EncodeMapStart(yynn806) yynn806 = 0 } if yyr806 || yy2arr806 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym808 := z.EncBinary() _ = yym808 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("datasetName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym809 := z.EncBinary() _ = yym809 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } if yyr806 || yy2arr806 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym810 := z.DecBinary() _ = yym810 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct811 := r.ContainerType() if yyct811 == codecSelferValueTypeMap1234 { yyl811 := r.ReadMapStart() if yyl811 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl811, d) } } else if yyct811 == codecSelferValueTypeArray1234 { yyl811 := r.ReadArrayStart() if yyl811 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl811, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys812Slc = z.DecScratchBuffer() // default slice to decode into _ = yys812Slc var yyhl812 bool = l >= 0 for yyj812 := 0; ; yyj812++ { if yyhl812 { if yyj812 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys812Slc = r.DecodeBytes(yys812Slc, true, true) yys812 := string(yys812Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys812 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys812) } // end switch yys812 } // end for yyj812 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj814 int var yyb814 bool var yyhl814 bool = l >= 0 yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } for { yyj814++ if yyhl814 { yyb814 = yyj814 > l } else { yyb814 = r.CheckBreak() } if yyb814 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj814-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym816 := z.EncBinary() _ = yym816 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep817 := !z.EncBinary() yy2arr817 := z.EncBasicHandle().StructToArray var yyq817 [1]bool _, _, _ = yysep817, yyq817, yy2arr817 const yyr817 bool = false yyq817[0] = len(x.Items) != 0 var yynn817 int if yyr817 || yy2arr817 { r.EncodeArrayStart(1) } else { yynn817 = 0 for _, b := range yyq817 { if b { yynn817++ } } r.EncodeMapStart(yynn817) yynn817 = 0 } if yyr817 || yy2arr817 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq817[0] { if x.Items == nil { r.EncodeNil() } else { yym819 := z.EncBinary() _ = yym819 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq817[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym820 := z.EncBinary() _ = yym820 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } } if yyr817 || yy2arr817 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym821 := z.DecBinary() _ = yym821 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct822 := r.ContainerType() if yyct822 == codecSelferValueTypeMap1234 { yyl822 := r.ReadMapStart() if yyl822 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl822, d) } } else if yyct822 == codecSelferValueTypeArray1234 { yyl822 := r.ReadArrayStart() if yyl822 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl822, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys823Slc = z.DecScratchBuffer() // default slice to decode into _ = yys823Slc var yyhl823 bool = l >= 0 for yyj823 := 0; ; yyj823++ { if yyhl823 { if yyj823 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys823Slc = r.DecodeBytes(yys823Slc, true, true) yys823 := string(yys823Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys823 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv824 := &x.Items yym825 := z.DecBinary() _ = yym825 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv824), d) } } default: z.DecStructFieldNotFound(-1, yys823) } // end switch yys823 } // end for yyj823 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj826 int var yyb826 bool var yyhl826 bool = l >= 0 yyj826++ if yyhl826 { yyb826 = yyj826 > l } else { yyb826 = r.CheckBreak() } if yyb826 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv827 := &x.Items yym828 := z.DecBinary() _ = yym828 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv827), d) } } for { yyj826++ if yyhl826 { yyb826 = yyj826 > l } else { yyb826 = r.CheckBreak() } if yyb826 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj826-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym829 := z.EncBinary() _ = yym829 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep830 := !z.EncBinary() yy2arr830 := z.EncBasicHandle().StructToArray var yyq830 [2]bool _, _, _ = yysep830, yyq830, yy2arr830 const yyr830 bool = false var yynn830 int if yyr830 || yy2arr830 { r.EncodeArrayStart(2) } else { yynn830 = 2 for _, b := range yyq830 { if b { yynn830++ } } r.EncodeMapStart(yynn830) yynn830 = 0 } if yyr830 || yy2arr830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym832 := z.EncBinary() _ = yym832 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym833 := z.EncBinary() _ = yym833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr830 || yy2arr830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy835 := &x.FieldRef yy835.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy836 := &x.FieldRef yy836.CodecEncodeSelf(e) } if yyr830 || yy2arr830 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym837 := z.DecBinary() _ = yym837 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct838 := r.ContainerType() if yyct838 == codecSelferValueTypeMap1234 { yyl838 := r.ReadMapStart() if yyl838 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl838, d) } } else if yyct838 == codecSelferValueTypeArray1234 { yyl838 := r.ReadArrayStart() if yyl838 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl838, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys839Slc = z.DecScratchBuffer() // default slice to decode into _ = yys839Slc var yyhl839 bool = l >= 0 for yyj839 := 0; ; yyj839++ { if yyhl839 { if yyj839 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys839Slc = r.DecodeBytes(yys839Slc, true, true) yys839 := string(yys839Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys839 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "fieldRef": if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv841 := &x.FieldRef yyv841.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys839) } // end switch yys839 } // end for yyj839 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj842 int var yyb842 bool var yyhl842 bool = l >= 0 yyj842++ if yyhl842 { yyb842 = yyj842 > l } else { yyb842 = r.CheckBreak() } if yyb842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj842++ if yyhl842 { yyb842 = yyj842 > l } else { yyb842 = r.CheckBreak() } if yyb842 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldRef = ObjectFieldSelector{} } else { yyv844 := &x.FieldRef yyv844.CodecDecodeSelf(d) } for { yyj842++ if yyhl842 { yyb842 = yyj842 > l } else { yyb842 = r.CheckBreak() } if yyb842 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj842-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym845 := z.EncBinary() _ = yym845 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep846 := !z.EncBinary() yy2arr846 := z.EncBasicHandle().StructToArray var yyq846 [5]bool _, _, _ = yysep846, yyq846, yy2arr846 const yyr846 bool = false yyq846[0] = x.Name != "" yyq846[1] = x.HostPort != 0 yyq846[3] = x.Protocol != "" yyq846[4] = x.HostIP != "" var yynn846 int if yyr846 || yy2arr846 { r.EncodeArrayStart(5) } else { yynn846 = 1 for _, b := range yyq846 { if b { yynn846++ } } r.EncodeMapStart(yynn846) yynn846 = 0 } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[0] { yym848 := z.EncBinary() _ = yym848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq846[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym849 := z.EncBinary() _ = yym849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[1] { yym851 := z.EncBinary() _ = yym851 if false { } else { r.EncodeInt(int64(x.HostPort)) } } else { r.EncodeInt(0) } } else { if yyq846[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym852 := z.EncBinary() _ = yym852 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym854 := z.EncBinary() _ = yym854 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym855 := z.EncBinary() _ = yym855 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq846[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq846[4] { yym858 := z.EncBinary() _ = yym858 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq846[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym859 := z.EncBinary() _ = yym859 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr846 || yy2arr846 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym860 := z.DecBinary() _ = yym860 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct861 := r.ContainerType() if yyct861 == codecSelferValueTypeMap1234 { yyl861 := r.ReadMapStart() if yyl861 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl861, d) } } else if yyct861 == codecSelferValueTypeArray1234 { yyl861 := r.ReadArrayStart() if yyl861 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl861, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys862Slc = z.DecScratchBuffer() // default slice to decode into _ = yys862Slc var yyhl862 bool = l >= 0 for yyj862 := 0; ; yyj862++ { if yyhl862 { if yyj862 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys862Slc = r.DecodeBytes(yys862Slc, true, true) yys862 := string(yys862Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys862 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "hostPort": if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int(r.DecodeInt(codecSelferBitsize1234)) } case "containerPort": if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234)) } case "protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } case "hostIP": if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys862) } // end switch yys862 } // end for yyj862 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj868 int var yyb868 bool var yyhl868 bool = l >= 0 yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234)) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } for { yyj868++ if yyhl868 { yyb868 = yyj868 > l } else { yyb868 = r.CheckBreak() } if yyb868 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj868-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym874 := z.EncBinary() _ = yym874 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep875 := !z.EncBinary() yy2arr875 := z.EncBasicHandle().StructToArray var yyq875 [3]bool _, _, _ = yysep875, yyq875, yy2arr875 const yyr875 bool = false yyq875[1] = x.ReadOnly != false var yynn875 int if yyr875 || yy2arr875 { r.EncodeArrayStart(3) } else { yynn875 = 2 for _, b := range yyq875 { if b { yynn875++ } } r.EncodeMapStart(yynn875) yynn875 = 0 } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym877 := z.EncBinary() _ = yym877 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym878 := z.EncBinary() _ = yym878 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq875[1] { yym880 := z.EncBinary() _ = yym880 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq875[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym881 := z.EncBinary() _ = yym881 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym883 := z.EncBinary() _ = yym883 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mountPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym884 := z.EncBinary() _ = yym884 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } if yyr875 || yy2arr875 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym885 := z.DecBinary() _ = yym885 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct886 := r.ContainerType() if yyct886 == codecSelferValueTypeMap1234 { yyl886 := r.ReadMapStart() if yyl886 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl886, d) } } else if yyct886 == codecSelferValueTypeArray1234 { yyl886 := r.ReadArrayStart() if yyl886 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl886, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys887Slc = z.DecScratchBuffer() // default slice to decode into _ = yys887Slc var yyhl887 bool = l >= 0 for yyj887 := 0; ; yyj887++ { if yyhl887 { if yyj887 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys887Slc = r.DecodeBytes(yys887Slc, true, true) yys887 := string(yys887Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys887 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } case "mountPath": if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys887) } // end switch yys887 } // end for yyj887 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj891 int var yyb891 bool var yyhl891 bool = l >= 0 yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } for { yyj891++ if yyhl891 { yyb891 = yyj891 > l } else { yyb891 = r.CheckBreak() } if yyb891 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj891-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym895 := z.EncBinary() _ = yym895 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep896 := !z.EncBinary() yy2arr896 := z.EncBasicHandle().StructToArray var yyq896 [3]bool _, _, _ = yysep896, yyq896, yy2arr896 const yyr896 bool = false yyq896[1] = x.Value != "" yyq896[2] = x.ValueFrom != nil var yynn896 int if yyr896 || yy2arr896 { r.EncodeArrayStart(3) } else { yynn896 = 1 for _, b := range yyq896 { if b { yynn896++ } } r.EncodeMapStart(yynn896) yynn896 = 0 } if yyr896 || yy2arr896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym898 := z.EncBinary() _ = yym898 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym899 := z.EncBinary() _ = yym899 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr896 || yy2arr896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq896[1] { yym901 := z.EncBinary() _ = yym901 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq896[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym902 := z.EncBinary() _ = yym902 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr896 || yy2arr896 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq896[2] { if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq896[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("valueFrom")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } } if yyr896 || yy2arr896 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym904 := z.DecBinary() _ = yym904 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct905 := r.ContainerType() if yyct905 == codecSelferValueTypeMap1234 { yyl905 := r.ReadMapStart() if yyl905 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl905, d) } } else if yyct905 == codecSelferValueTypeArray1234 { yyl905 := r.ReadArrayStart() if yyl905 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl905, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys906Slc = z.DecScratchBuffer() // default slice to decode into _ = yys906Slc var yyhl906 bool = l >= 0 for yyj906 := 0; ; yyj906++ { if yyhl906 { if yyj906 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys906Slc = r.DecodeBytes(yys906Slc, true, true) yys906 := string(yys906Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys906 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } case "valueFrom": if r.TryDecodeAsNil() { if x.ValueFrom != nil { x.ValueFrom = nil } } else { if x.ValueFrom == nil { x.ValueFrom = new(EnvVarSource) } x.ValueFrom.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys906) } // end switch yys906 } // end for yyj906 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj910 int var yyb910 bool var yyhl910 bool = l >= 0 yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ValueFrom != nil { x.ValueFrom = nil } } else { if x.ValueFrom == nil { x.ValueFrom = new(EnvVarSource) } x.ValueFrom.CodecDecodeSelf(d) } for { yyj910++ if yyhl910 { yyb910 = yyj910 > l } else { yyb910 = r.CheckBreak() } if yyb910 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj910-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym914 := z.EncBinary() _ = yym914 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep915 := !z.EncBinary() yy2arr915 := z.EncBasicHandle().StructToArray var yyq915 [1]bool _, _, _ = yysep915, yyq915, yy2arr915 const yyr915 bool = false var yynn915 int if yyr915 || yy2arr915 { r.EncodeArrayStart(1) } else { yynn915 = 1 for _, b := range yyq915 { if b { yynn915++ } } r.EncodeMapStart(yynn915) yynn915 = 0 } if yyr915 || yy2arr915 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } if yyr915 || yy2arr915 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym917 := z.DecBinary() _ = yym917 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct918 := r.ContainerType() if yyct918 == codecSelferValueTypeMap1234 { yyl918 := r.ReadMapStart() if yyl918 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl918, d) } } else if yyct918 == codecSelferValueTypeArray1234 { yyl918 := r.ReadArrayStart() if yyl918 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl918, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys919Slc = z.DecScratchBuffer() // default slice to decode into _ = yys919Slc var yyhl919 bool = l >= 0 for yyj919 := 0; ; yyj919++ { if yyhl919 { if yyj919 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys919Slc = r.DecodeBytes(yys919Slc, true, true) yys919 := string(yys919Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys919 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys919) } // end switch yys919 } // end for yyj919 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj921 int var yyb921 bool var yyhl921 bool = l >= 0 yyj921++ if yyhl921 { yyb921 = yyj921 > l } else { yyb921 = r.CheckBreak() } if yyb921 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } for { yyj921++ if yyhl921 { yyb921 = yyj921 > l } else { yyb921 = r.CheckBreak() } if yyb921 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj921-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym923 := z.EncBinary() _ = yym923 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep924 := !z.EncBinary() yy2arr924 := z.EncBasicHandle().StructToArray var yyq924 [2]bool _, _, _ = yysep924, yyq924, yy2arr924 const yyr924 bool = false var yynn924 int if yyr924 || yy2arr924 { r.EncodeArrayStart(2) } else { yynn924 = 2 for _, b := range yyq924 { if b { yynn924++ } } r.EncodeMapStart(yynn924) yynn924 = 0 } if yyr924 || yy2arr924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym926 := z.EncBinary() _ = yym926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym927 := z.EncBinary() _ = yym927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr924 || yy2arr924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym929 := z.EncBinary() _ = yym929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym930 := z.EncBinary() _ = yym930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } if yyr924 || yy2arr924 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym931 := z.DecBinary() _ = yym931 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct932 := r.ContainerType() if yyct932 == codecSelferValueTypeMap1234 { yyl932 := r.ReadMapStart() if yyl932 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl932, d) } } else if yyct932 == codecSelferValueTypeArray1234 { yyl932 := r.ReadArrayStart() if yyl932 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl932, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys933Slc = z.DecScratchBuffer() // default slice to decode into _ = yys933Slc var yyhl933 bool = l >= 0 for yyj933 := 0; ; yyj933++ { if yyhl933 { if yyj933 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys933Slc = r.DecodeBytes(yys933Slc, true, true) yys933 := string(yys933Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys933 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "fieldPath": if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys933) } // end switch yys933 } // end for yyj933 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj936 int var yyb936 bool var yyhl936 bool = l >= 0 yyj936++ if yyhl936 { yyb936 = yyj936 > l } else { yyb936 = r.CheckBreak() } if yyb936 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj936++ if yyhl936 { yyb936 = yyj936 > l } else { yyb936 = r.CheckBreak() } if yyb936 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj936++ if yyhl936 { yyb936 = yyj936 > l } else { yyb936 = r.CheckBreak() } if yyb936 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj936-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym939 := z.EncBinary() _ = yym939 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep940 := !z.EncBinary() yy2arr940 := z.EncBasicHandle().StructToArray var yyq940 [4]bool _, _, _ = yysep940, yyq940, yy2arr940 const yyr940 bool = false yyq940[0] = x.Path != "" yyq940[1] = true yyq940[2] = x.Host != "" yyq940[3] = x.Scheme != "" var yynn940 int if yyr940 || yy2arr940 { r.EncodeArrayStart(4) } else { yynn940 = 0 for _, b := range yyq940 { if b { yynn940++ } } r.EncodeMapStart(yynn940) yynn940 = 0 } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[0] { yym942 := z.EncBinary() _ = yym942 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq940[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym943 := z.EncBinary() _ = yym943 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[1] { yy945 := &x.Port yym946 := z.EncBinary() _ = yym946 if false { } else if z.HasExtensions() && z.EncExt(yy945) { } else if !yym946 && z.IsJSONHandle() { z.EncJSONMarshal(yy945) } else { z.EncFallback(yy945) } } else { r.EncodeNil() } } else { if yyq940[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy947 := &x.Port yym948 := z.EncBinary() _ = yym948 if false { } else if z.HasExtensions() && z.EncExt(yy947) { } else if !yym948 && z.IsJSONHandle() { z.EncJSONMarshal(yy947) } else { z.EncFallback(yy947) } } } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[2] { yym950 := z.EncBinary() _ = yym950 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq940[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym951 := z.EncBinary() _ = yym951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq940[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq940[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr940 || yy2arr940 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym953 := z.DecBinary() _ = yym953 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct954 := r.ContainerType() if yyct954 == codecSelferValueTypeMap1234 { yyl954 := r.ReadMapStart() if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl954, d) } } else if yyct954 == codecSelferValueTypeArray1234 { yyl954 := r.ReadArrayStart() if yyl954 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl954, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys955Slc = z.DecScratchBuffer() // default slice to decode into _ = yys955Slc var yyhl955 bool = l >= 0 for yyj955 := 0; ; yyj955++ { if yyhl955 { if yyj955 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys955Slc = r.DecodeBytes(yys955Slc, true, true) yys955 := string(yys955Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys955 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv957 := &x.Port yym958 := z.DecBinary() _ = yym958 if false { } else if z.HasExtensions() && z.DecExt(yyv957) { } else if !yym958 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv957) } else { z.DecFallback(yyv957, false) } } case "host": if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } case "scheme": if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys955) } // end switch yys955 } // end for yyj955 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj961 int var yyb961 bool var yyhl961 bool = l >= 0 yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv963 := &x.Port yym964 := z.DecBinary() _ = yym964 if false { } else if z.HasExtensions() && z.DecExt(yyv963) { } else if !yym964 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv963) } else { z.DecFallback(yyv963, false) } } yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } for { yyj961++ if yyhl961 { yyb961 = yyj961 > l } else { yyb961 = r.CheckBreak() } if yyb961 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj961-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym967 := z.EncBinary() _ = yym967 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym968 := z.DecBinary() _ = yym968 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym969 := z.EncBinary() _ = yym969 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep970 := !z.EncBinary() yy2arr970 := z.EncBasicHandle().StructToArray var yyq970 [1]bool _, _, _ = yysep970, yyq970, yy2arr970 const yyr970 bool = false yyq970[0] = true var yynn970 int if yyr970 || yy2arr970 { r.EncodeArrayStart(1) } else { yynn970 = 0 for _, b := range yyq970 { if b { yynn970++ } } r.EncodeMapStart(yynn970) yynn970 = 0 } if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq970[0] { yy972 := &x.Port yym973 := z.EncBinary() _ = yym973 if false { } else if z.HasExtensions() && z.EncExt(yy972) { } else if !yym973 && z.IsJSONHandle() { z.EncJSONMarshal(yy972) } else { z.EncFallback(yy972) } } else { r.EncodeNil() } } else { if yyq970[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy974 := &x.Port yym975 := z.EncBinary() _ = yym975 if false { } else if z.HasExtensions() && z.EncExt(yy974) { } else if !yym975 && z.IsJSONHandle() { z.EncJSONMarshal(yy974) } else { z.EncFallback(yy974) } } } if yyr970 || yy2arr970 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym976 := z.DecBinary() _ = yym976 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct977 := r.ContainerType() if yyct977 == codecSelferValueTypeMap1234 { yyl977 := r.ReadMapStart() if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl977, d) } } else if yyct977 == codecSelferValueTypeArray1234 { yyl977 := r.ReadArrayStart() if yyl977 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl977, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys978Slc = z.DecScratchBuffer() // default slice to decode into _ = yys978Slc var yyhl978 bool = l >= 0 for yyj978 := 0; ; yyj978++ { if yyhl978 { if yyj978 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys978Slc = r.DecodeBytes(yys978Slc, true, true) yys978 := string(yys978Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys978 { case "port": if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv979 := &x.Port yym980 := z.DecBinary() _ = yym980 if false { } else if z.HasExtensions() && z.DecExt(yyv979) { } else if !yym980 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv979) } else { z.DecFallback(yyv979, false) } } default: z.DecStructFieldNotFound(-1, yys978) } // end switch yys978 } // end for yyj978 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj981 int var yyb981 bool var yyhl981 bool = l >= 0 yyj981++ if yyhl981 { yyb981 = yyj981 > l } else { yyb981 = r.CheckBreak() } if yyb981 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg5_intstr.IntOrString{} } else { yyv982 := &x.Port yym983 := z.DecBinary() _ = yym983 if false { } else if z.HasExtensions() && z.DecExt(yyv982) { } else if !yym983 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv982) } else { z.DecFallback(yyv982, false) } } for { yyj981++ if yyhl981 { yyb981 = yyj981 > l } else { yyb981 = r.CheckBreak() } if yyb981 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj981-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym984 := z.EncBinary() _ = yym984 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep985 := !z.EncBinary() yy2arr985 := z.EncBasicHandle().StructToArray var yyq985 [1]bool _, _, _ = yysep985, yyq985, yy2arr985 const yyr985 bool = false yyq985[0] = len(x.Command) != 0 var yynn985 int if yyr985 || yy2arr985 { r.EncodeArrayStart(1) } else { yynn985 = 0 for _, b := range yyq985 { if b { yynn985++ } } r.EncodeMapStart(yynn985) yynn985 = 0 } if yyr985 || yy2arr985 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq985[0] { if x.Command == nil { r.EncodeNil() } else { yym987 := z.EncBinary() _ = yym987 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq985[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym988 := z.EncBinary() _ = yym988 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr985 || yy2arr985 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym989 := z.DecBinary() _ = yym989 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct990 := r.ContainerType() if yyct990 == codecSelferValueTypeMap1234 { yyl990 := r.ReadMapStart() if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl990, d) } } else if yyct990 == codecSelferValueTypeArray1234 { yyl990 := r.ReadArrayStart() if yyl990 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl990, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys991Slc = z.DecScratchBuffer() // default slice to decode into _ = yys991Slc var yyhl991 bool = l >= 0 for yyj991 := 0; ; yyj991++ { if yyhl991 { if yyj991 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys991Slc = r.DecodeBytes(yys991Slc, true, true) yys991 := string(yys991Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys991 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv992 := &x.Command yym993 := z.DecBinary() _ = yym993 if false { } else { z.F.DecSliceStringX(yyv992, false, d) } } default: z.DecStructFieldNotFound(-1, yys991) } // end switch yys991 } // end for yyj991 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj994 int var yyb994 bool var yyhl994 bool = l >= 0 yyj994++ if yyhl994 { yyb994 = yyj994 > l } else { yyb994 = r.CheckBreak() } if yyb994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv995 := &x.Command yym996 := z.DecBinary() _ = yym996 if false { } else { z.F.DecSliceStringX(yyv995, false, d) } } for { yyj994++ if yyhl994 { yyb994 = yyj994 > l } else { yyb994 = r.CheckBreak() } if yyb994 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj994-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym997 := z.EncBinary() _ = yym997 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep998 := !z.EncBinary() yy2arr998 := z.EncBasicHandle().StructToArray var yyq998 [8]bool _, _, _ = yysep998, yyq998, yy2arr998 const yyr998 bool = false yyq998[0] = x.Handler.Exec != nil && x.Exec != nil yyq998[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq998[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil yyq998[3] = x.InitialDelaySeconds != 0 yyq998[4] = x.TimeoutSeconds != 0 yyq998[5] = x.PeriodSeconds != 0 yyq998[6] = x.SuccessThreshold != 0 yyq998[7] = x.FailureThreshold != 0 var yynn998 int if yyr998 || yy2arr998 { r.EncodeArrayStart(8) } else { yynn998 = 0 for _, b := range yyq998 { if b { yynn998++ } } r.EncodeMapStart(yynn998) yynn998 = 0 } var yyn999 bool if x.Handler.Exec == nil { yyn999 = true goto LABEL999 } LABEL999: if yyr998 || yy2arr998 { if yyn999 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq998[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn999 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1000 bool if x.Handler.HTTPGet == nil { yyn1000 = true goto LABEL1000 } LABEL1000: if yyr998 || yy2arr998 { if yyn1000 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq998[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1000 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1001 bool if x.Handler.TCPSocket == nil { yyn1001 = true goto LABEL1001 } LABEL1001: if yyr998 || yy2arr998 { if yyn1001 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq998[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1001 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[3] { yym1003 := z.EncBinary() _ = yym1003 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq998[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1004 := z.EncBinary() _ = yym1004 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[4] { yym1006 := z.EncBinary() _ = yym1006 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq998[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1007 := z.EncBinary() _ = yym1007 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[5] { yym1009 := z.EncBinary() _ = yym1009 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq998[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1010 := z.EncBinary() _ = yym1010 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[6] { yym1012 := z.EncBinary() _ = yym1012 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq998[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1013 := z.EncBinary() _ = yym1013 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq998[7] { yym1015 := z.EncBinary() _ = yym1015 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq998[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1016 := z.EncBinary() _ = yym1016 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } if yyr998 || yy2arr998 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1017 := z.DecBinary() _ = yym1017 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1018 := r.ContainerType() if yyct1018 == codecSelferValueTypeMap1234 { yyl1018 := r.ReadMapStart() if yyl1018 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1018, d) } } else if yyct1018 == codecSelferValueTypeArray1234 { yyl1018 := r.ReadArrayStart() if yyl1018 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1018, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1019Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1019Slc var yyhl1019 bool = l >= 0 for yyj1019 := 0; ; yyj1019++ { if yyhl1019 { if yyj1019 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1019Slc = r.DecodeBytes(yys1019Slc, true, true) yys1019 := string(yys1019Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1019 { case "exec": if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } case "httpGet": if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } case "tcpSocket": if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } case "initialDelaySeconds": if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int64(r.DecodeInt(64)) } case "timeoutSeconds": if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int64(r.DecodeInt(64)) } case "periodSeconds": if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int64(r.DecodeInt(64)) } case "successThreshold": if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } case "failureThreshold": if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys1019) } // end switch yys1019 } // end for yyj1019 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1028 int var yyb1028 bool var yyhl1028 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } if x.Handler.HTTPGet == nil { x.Handler.HTTPGet = new(HTTPGetAction) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } if x.Handler.TCPSocket == nil { x.Handler.TCPSocket = new(TCPSocketAction) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int64(r.DecodeInt(64)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int64(r.DecodeInt(64)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int64(r.DecodeInt(64)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj1028++ if yyhl1028 { yyb1028 = yyj1028 > l } else { yyb1028 = r.CheckBreak() } if yyb1028 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1028-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1037 := z.EncBinary() _ = yym1037 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1038 := z.DecBinary() _ = yym1038 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1039 := z.EncBinary() _ = yym1039 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1040 := z.DecBinary() _ = yym1040 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1041 := z.EncBinary() _ = yym1041 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1042 := !z.EncBinary() yy2arr1042 := z.EncBasicHandle().StructToArray var yyq1042 [2]bool _, _, _ = yysep1042, yyq1042, yy2arr1042 const yyr1042 bool = false yyq1042[0] = len(x.Add) != 0 yyq1042[1] = len(x.Drop) != 0 var yynn1042 int if yyr1042 || yy2arr1042 { r.EncodeArrayStart(2) } else { yynn1042 = 0 for _, b := range yyq1042 { if b { yynn1042++ } } r.EncodeMapStart(yynn1042) yynn1042 = 0 } if yyr1042 || yy2arr1042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1042[0] { if x.Add == nil { r.EncodeNil() } else { yym1044 := z.EncBinary() _ = yym1044 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1042[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1045 := z.EncBinary() _ = yym1045 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1042 || yy2arr1042 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1042[1] { if x.Drop == nil { r.EncodeNil() } else { yym1047 := z.EncBinary() _ = yym1047 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1042[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1048 := z.EncBinary() _ = yym1048 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1042 || yy2arr1042 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1049 := z.DecBinary() _ = yym1049 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1050 := r.ContainerType() if yyct1050 == codecSelferValueTypeMap1234 { yyl1050 := r.ReadMapStart() if yyl1050 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1050, d) } } else if yyct1050 == codecSelferValueTypeArray1234 { yyl1050 := r.ReadArrayStart() if yyl1050 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1050, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1051Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1051Slc var yyhl1051 bool = l >= 0 for yyj1051 := 0; ; yyj1051++ { if yyhl1051 { if yyj1051 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1051Slc = r.DecodeBytes(yys1051Slc, true, true) yys1051 := string(yys1051Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1051 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1052 := &x.Add yym1053 := z.DecBinary() _ = yym1053 if false { } else { h.decSliceCapability((*[]Capability)(yyv1052), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1054 := &x.Drop yym1055 := z.DecBinary() _ = yym1055 if false { } else { h.decSliceCapability((*[]Capability)(yyv1054), d) } } default: z.DecStructFieldNotFound(-1, yys1051) } // end switch yys1051 } // end for yyj1051 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1056 int var yyb1056 bool var yyhl1056 bool = l >= 0 yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1057 := &x.Add yym1058 := z.DecBinary() _ = yym1058 if false { } else { h.decSliceCapability((*[]Capability)(yyv1057), d) } } yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1059 := &x.Drop yym1060 := z.DecBinary() _ = yym1060 if false { } else { h.decSliceCapability((*[]Capability)(yyv1059), d) } } for { yyj1056++ if yyhl1056 { yyb1056 = yyj1056 > l } else { yyb1056 = r.CheckBreak() } if yyb1056 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1056-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1061 := z.EncBinary() _ = yym1061 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1062 := !z.EncBinary() yy2arr1062 := z.EncBasicHandle().StructToArray var yyq1062 [2]bool _, _, _ = yysep1062, yyq1062, yy2arr1062 const yyr1062 bool = false yyq1062[0] = len(x.Limits) != 0 yyq1062[1] = len(x.Requests) != 0 var yynn1062 int if yyr1062 || yy2arr1062 { r.EncodeArrayStart(2) } else { yynn1062 = 0 for _, b := range yyq1062 { if b { yynn1062++ } } r.EncodeMapStart(yynn1062) yynn1062 = 0 } if yyr1062 || yy2arr1062 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1062[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1062[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("limits")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } } if yyr1062 || yy2arr1062 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1062[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1062[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requests")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } } if yyr1062 || yy2arr1062 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1065 := z.DecBinary() _ = yym1065 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1066 := r.ContainerType() if yyct1066 == codecSelferValueTypeMap1234 { yyl1066 := r.ReadMapStart() if yyl1066 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1066, d) } } else if yyct1066 == codecSelferValueTypeArray1234 { yyl1066 := r.ReadArrayStart() if yyl1066 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1066, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1067Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1067Slc var yyhl1067 bool = l >= 0 for yyj1067 := 0; ; yyj1067++ { if yyhl1067 { if yyj1067 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1067Slc = r.DecodeBytes(yys1067Slc, true, true) yys1067 := string(yys1067Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1067 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1068 := &x.Limits yyv1068.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1069 := &x.Requests yyv1069.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1067) } // end switch yys1067 } // end for yyj1067 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1070 int var yyb1070 bool var yyhl1070 bool = l >= 0 yyj1070++ if yyhl1070 { yyb1070 = yyj1070 > l } else { yyb1070 = r.CheckBreak() } if yyb1070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1071 := &x.Limits yyv1071.CodecDecodeSelf(d) } yyj1070++ if yyhl1070 { yyb1070 = yyj1070 > l } else { yyb1070 = r.CheckBreak() } if yyb1070 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1072 := &x.Requests yyv1072.CodecDecodeSelf(d) } for { yyj1070++ if yyhl1070 { yyb1070 = yyj1070 > l } else { yyb1070 = r.CheckBreak() } if yyb1070 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1070-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1073 := z.EncBinary() _ = yym1073 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1074 := !z.EncBinary() yy2arr1074 := z.EncBasicHandle().StructToArray var yyq1074 [18]bool _, _, _ = yysep1074, yyq1074, yy2arr1074 const yyr1074 bool = false yyq1074[2] = len(x.Command) != 0 yyq1074[3] = len(x.Args) != 0 yyq1074[4] = x.WorkingDir != "" yyq1074[5] = len(x.Ports) != 0 yyq1074[6] = len(x.Env) != 0 yyq1074[7] = true yyq1074[8] = len(x.VolumeMounts) != 0 yyq1074[9] = x.LivenessProbe != nil yyq1074[10] = x.ReadinessProbe != nil yyq1074[11] = x.Lifecycle != nil yyq1074[12] = x.TerminationMessagePath != "" yyq1074[14] = x.SecurityContext != nil yyq1074[15] = x.Stdin != false yyq1074[16] = x.StdinOnce != false yyq1074[17] = x.TTY != false var yynn1074 int if yyr1074 || yy2arr1074 { r.EncodeArrayStart(18) } else { yynn1074 = 3 for _, b := range yyq1074 { if b { yynn1074++ } } r.EncodeMapStart(yynn1074) yynn1074 = 0 } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1076 := z.EncBinary() _ = yym1076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1077 := z.EncBinary() _ = yym1077 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1079 := z.EncBinary() _ = yym1079 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1080 := z.EncBinary() _ = yym1080 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[2] { if x.Command == nil { r.EncodeNil() } else { yym1082 := z.EncBinary() _ = yym1082 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1074[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1083 := z.EncBinary() _ = yym1083 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[3] { if x.Args == nil { r.EncodeNil() } else { yym1085 := z.EncBinary() _ = yym1085 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1074[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1086 := z.EncBinary() _ = yym1086 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[4] { yym1088 := z.EncBinary() _ = yym1088 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1074[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1089 := z.EncBinary() _ = yym1089 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[5] { if x.Ports == nil { r.EncodeNil() } else { yym1091 := z.EncBinary() _ = yym1091 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1074[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1092 := z.EncBinary() _ = yym1092 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[6] { if x.Env == nil { r.EncodeNil() } else { yym1094 := z.EncBinary() _ = yym1094 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1074[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1095 := z.EncBinary() _ = yym1095 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[7] { yy1097 := &x.Resources yy1097.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1074[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1098 := &x.Resources yy1098.CodecEncodeSelf(e) } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1100 := z.EncBinary() _ = yym1100 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1074[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1101 := z.EncBinary() _ = yym1101 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("livenessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readinessProbe")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lifecycle")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[12] { yym1106 := z.EncBinary() _ = yym1106 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1074[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1107 := z.EncBinary() _ = yym1107 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.ImagePullPolicy.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.ImagePullPolicy.CodecEncodeSelf(e) } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1074[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[15] { yym1111 := z.EncBinary() _ = yym1111 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1074[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1112 := z.EncBinary() _ = yym1112 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[16] { yym1114 := z.EncBinary() _ = yym1114 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1074[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1115 := z.EncBinary() _ = yym1115 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1074[17] { yym1117 := z.EncBinary() _ = yym1117 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1074[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1118 := z.EncBinary() _ = yym1118 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1074 || yy2arr1074 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1119 := z.DecBinary() _ = yym1119 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1120 := r.ContainerType() if yyct1120 == codecSelferValueTypeMap1234 { yyl1120 := r.ReadMapStart() if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1120, d) } } else if yyct1120 == codecSelferValueTypeArray1234 { yyl1120 := r.ReadArrayStart() if yyl1120 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1120, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1121Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1121Slc var yyhl1121 bool = l >= 0 for yyj1121 := 0; ; yyj1121++ { if yyhl1121 { if yyj1121 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1121Slc = r.DecodeBytes(yys1121Slc, true, true) yys1121 := string(yys1121Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1121 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "image": if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1124 := &x.Command yym1125 := z.DecBinary() _ = yym1125 if false { } else { z.F.DecSliceStringX(yyv1124, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1126 := &x.Args yym1127 := z.DecBinary() _ = yym1127 if false { } else { z.F.DecSliceStringX(yyv1126, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1129 := &x.Ports yym1130 := z.DecBinary() _ = yym1130 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1129), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1131 := &x.Env yym1132 := z.DecBinary() _ = yym1132 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1131), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1133 := &x.Resources yyv1133.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1134 := &x.VolumeMounts yym1135 := z.DecBinary() _ = yym1135 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1134), d) } } case "livenessProbe": if r.TryDecodeAsNil() { if x.LivenessProbe != nil { x.LivenessProbe = nil } } else { if x.LivenessProbe == nil { x.LivenessProbe = new(Probe) } x.LivenessProbe.CodecDecodeSelf(d) } case "readinessProbe": if r.TryDecodeAsNil() { if x.ReadinessProbe != nil { x.ReadinessProbe = nil } } else { if x.ReadinessProbe == nil { x.ReadinessProbe = new(Probe) } x.ReadinessProbe.CodecDecodeSelf(d) } case "lifecycle": if r.TryDecodeAsNil() { if x.Lifecycle != nil { x.Lifecycle = nil } } else { if x.Lifecycle == nil { x.Lifecycle = new(Lifecycle) } x.Lifecycle.CodecDecodeSelf(d) } case "terminationMessagePath": if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } case "imagePullPolicy": if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } case "securityContext": if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(SecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } case "stdin": if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } case "stdinOnce": if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } case "tty": if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys1121) } // end switch yys1121 } // end for yyj1121 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1145 int var yyb1145 bool var yyhl1145 bool = l >= 0 yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1148 := &x.Command yym1149 := z.DecBinary() _ = yym1149 if false { } else { z.F.DecSliceStringX(yyv1148, false, d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1150 := &x.Args yym1151 := z.DecBinary() _ = yym1151 if false { } else { z.F.DecSliceStringX(yyv1150, false, d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1153 := &x.Ports yym1154 := z.DecBinary() _ = yym1154 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1153), d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1155 := &x.Env yym1156 := z.DecBinary() _ = yym1156 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1155), d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1157 := &x.Resources yyv1157.CodecDecodeSelf(d) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1158 := &x.VolumeMounts yym1159 := z.DecBinary() _ = yym1159 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1158), d) } } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.LivenessProbe != nil { x.LivenessProbe = nil } } else { if x.LivenessProbe == nil { x.LivenessProbe = new(Probe) } x.LivenessProbe.CodecDecodeSelf(d) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ReadinessProbe != nil { x.ReadinessProbe = nil } } else { if x.ReadinessProbe == nil { x.ReadinessProbe = new(Probe) } x.ReadinessProbe.CodecDecodeSelf(d) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Lifecycle != nil { x.Lifecycle = nil } } else { if x.Lifecycle == nil { x.Lifecycle = new(Lifecycle) } x.Lifecycle.CodecDecodeSelf(d) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(SecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1145++ if yyhl1145 { yyb1145 = yyj1145 > l } else { yyb1145 = r.CheckBreak() } if yyb1145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1169 := z.EncBinary() _ = yym1169 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1170 := !z.EncBinary() yy2arr1170 := z.EncBasicHandle().StructToArray var yyq1170 [3]bool _, _, _ = yysep1170, yyq1170, yy2arr1170 const yyr1170 bool = false yyq1170[0] = x.Exec != nil yyq1170[1] = x.HTTPGet != nil yyq1170[2] = x.TCPSocket != nil var yynn1170 int if yyr1170 || yy2arr1170 { r.EncodeArrayStart(3) } else { yynn1170 = 0 for _, b := range yyq1170 { if b { yynn1170++ } } r.EncodeMapStart(yynn1170) yynn1170 = 0 } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1170[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1170[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } if yyr1170 || yy2arr1170 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1174 := z.DecBinary() _ = yym1174 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1175 := r.ContainerType() if yyct1175 == codecSelferValueTypeMap1234 { yyl1175 := r.ReadMapStart() if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1175, d) } } else if yyct1175 == codecSelferValueTypeArray1234 { yyl1175 := r.ReadArrayStart() if yyl1175 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1175, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1176Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1176Slc var yyhl1176 bool = l >= 0 for yyj1176 := 0; ; yyj1176++ { if yyhl1176 { if yyj1176 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1176Slc = r.DecodeBytes(yys1176Slc, true, true) yys1176 := string(yys1176Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1176 { case "exec": if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } case "httpGet": if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } case "tcpSocket": if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1176) } // end switch yys1176 } // end for yyj1176 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1180 int var yyb1180 bool var yyhl1180 bool = l >= 0 yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.HTTPGet != nil { x.HTTPGet = nil } } else { if x.HTTPGet == nil { x.HTTPGet = new(HTTPGetAction) } x.HTTPGet.CodecDecodeSelf(d) } yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TCPSocket != nil { x.TCPSocket = nil } } else { if x.TCPSocket == nil { x.TCPSocket = new(TCPSocketAction) } x.TCPSocket.CodecDecodeSelf(d) } for { yyj1180++ if yyhl1180 { yyb1180 = yyj1180 > l } else { yyb1180 = r.CheckBreak() } if yyb1180 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1180-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1184 := z.EncBinary() _ = yym1184 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1185 := !z.EncBinary() yy2arr1185 := z.EncBasicHandle().StructToArray var yyq1185 [2]bool _, _, _ = yysep1185, yyq1185, yy2arr1185 const yyr1185 bool = false yyq1185[0] = x.PostStart != nil yyq1185[1] = x.PreStop != nil var yynn1185 int if yyr1185 || yy2arr1185 { r.EncodeArrayStart(2) } else { yynn1185 = 0 for _, b := range yyq1185 { if b { yynn1185++ } } r.EncodeMapStart(yynn1185) yynn1185 = 0 } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1185[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("postStart")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1185[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preStop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1188 := z.DecBinary() _ = yym1188 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1189 := r.ContainerType() if yyct1189 == codecSelferValueTypeMap1234 { yyl1189 := r.ReadMapStart() if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1189, d) } } else if yyct1189 == codecSelferValueTypeArray1234 { yyl1189 := r.ReadArrayStart() if yyl1189 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1189, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1190Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1190Slc var yyhl1190 bool = l >= 0 for yyj1190 := 0; ; yyj1190++ { if yyhl1190 { if yyj1190 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1190Slc = r.DecodeBytes(yys1190Slc, true, true) yys1190 := string(yys1190Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1190 { case "postStart": if r.TryDecodeAsNil() { if x.PostStart != nil { x.PostStart = nil } } else { if x.PostStart == nil { x.PostStart = new(Handler) } x.PostStart.CodecDecodeSelf(d) } case "preStop": if r.TryDecodeAsNil() { if x.PreStop != nil { x.PreStop = nil } } else { if x.PreStop == nil { x.PreStop = new(Handler) } x.PreStop.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1190) } // end switch yys1190 } // end for yyj1190 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1193 int var yyb1193 bool var yyhl1193 bool = l >= 0 yyj1193++ if yyhl1193 { yyb1193 = yyj1193 > l } else { yyb1193 = r.CheckBreak() } if yyb1193 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PostStart != nil { x.PostStart = nil } } else { if x.PostStart == nil { x.PostStart = new(Handler) } x.PostStart.CodecDecodeSelf(d) } yyj1193++ if yyhl1193 { yyb1193 = yyj1193 > l } else { yyb1193 = r.CheckBreak() } if yyb1193 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PreStop != nil { x.PreStop = nil } } else { if x.PreStop == nil { x.PreStop = new(Handler) } x.PreStop.CodecDecodeSelf(d) } for { yyj1193++ if yyhl1193 { yyb1193 = yyj1193 > l } else { yyb1193 = r.CheckBreak() } if yyb1193 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1193-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1196 := z.EncBinary() _ = yym1196 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1197 := z.DecBinary() _ = yym1197 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1198 := z.EncBinary() _ = yym1198 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1199 := !z.EncBinary() yy2arr1199 := z.EncBasicHandle().StructToArray var yyq1199 [2]bool _, _, _ = yysep1199, yyq1199, yy2arr1199 const yyr1199 bool = false yyq1199[0] = x.Reason != "" yyq1199[1] = x.Message != "" var yynn1199 int if yyr1199 || yy2arr1199 { r.EncodeArrayStart(2) } else { yynn1199 = 0 for _, b := range yyq1199 { if b { yynn1199++ } } r.EncodeMapStart(yynn1199) yynn1199 = 0 } if yyr1199 || yy2arr1199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1199[0] { yym1201 := z.EncBinary() _ = yym1201 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1199[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1202 := z.EncBinary() _ = yym1202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1199 || yy2arr1199 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1199[1] { yym1204 := z.EncBinary() _ = yym1204 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1199[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1205 := z.EncBinary() _ = yym1205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1199 || yy2arr1199 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1206 := z.DecBinary() _ = yym1206 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1207 := r.ContainerType() if yyct1207 == codecSelferValueTypeMap1234 { yyl1207 := r.ReadMapStart() if yyl1207 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1207, d) } } else if yyct1207 == codecSelferValueTypeArray1234 { yyl1207 := r.ReadArrayStart() if yyl1207 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1207, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1208Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1208Slc var yyhl1208 bool = l >= 0 for yyj1208 := 0; ; yyj1208++ { if yyhl1208 { if yyj1208 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1208Slc = r.DecodeBytes(yys1208Slc, true, true) yys1208 := string(yys1208Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1208 { case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1208) } // end switch yys1208 } // end for yyj1208 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1211 int var yyb1211 bool var yyhl1211 bool = l >= 0 yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1211++ if yyhl1211 { yyb1211 = yyj1211 > l } else { yyb1211 = r.CheckBreak() } if yyb1211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1214 := z.EncBinary() _ = yym1214 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1215 := !z.EncBinary() yy2arr1215 := z.EncBasicHandle().StructToArray var yyq1215 [1]bool _, _, _ = yysep1215, yyq1215, yy2arr1215 const yyr1215 bool = false yyq1215[0] = true var yynn1215 int if yyr1215 || yy2arr1215 { r.EncodeArrayStart(1) } else { yynn1215 = 0 for _, b := range yyq1215 { if b { yynn1215++ } } r.EncodeMapStart(yynn1215) yynn1215 = 0 } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1215[0] { yy1217 := &x.StartedAt yym1218 := z.EncBinary() _ = yym1218 if false { } else if z.HasExtensions() && z.EncExt(yy1217) { } else if yym1218 { z.EncBinaryMarshal(yy1217) } else if !yym1218 && z.IsJSONHandle() { z.EncJSONMarshal(yy1217) } else { z.EncFallback(yy1217) } } else { r.EncodeNil() } } else { if yyq1215[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1219 := &x.StartedAt yym1220 := z.EncBinary() _ = yym1220 if false { } else if z.HasExtensions() && z.EncExt(yy1219) { } else if yym1220 { z.EncBinaryMarshal(yy1219) } else if !yym1220 && z.IsJSONHandle() { z.EncJSONMarshal(yy1219) } else { z.EncFallback(yy1219) } } } if yyr1215 || yy2arr1215 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1221 := z.DecBinary() _ = yym1221 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1222 := r.ContainerType() if yyct1222 == codecSelferValueTypeMap1234 { yyl1222 := r.ReadMapStart() if yyl1222 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1222, d) } } else if yyct1222 == codecSelferValueTypeArray1234 { yyl1222 := r.ReadArrayStart() if yyl1222 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1222, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1223Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1223Slc var yyhl1223 bool = l >= 0 for yyj1223 := 0; ; yyj1223++ { if yyhl1223 { if yyj1223 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1223Slc = r.DecodeBytes(yys1223Slc, true, true) yys1223 := string(yys1223Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1223 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1224 := &x.StartedAt yym1225 := z.DecBinary() _ = yym1225 if false { } else if z.HasExtensions() && z.DecExt(yyv1224) { } else if yym1225 { z.DecBinaryUnmarshal(yyv1224) } else if !yym1225 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1224) } else { z.DecFallback(yyv1224, false) } } default: z.DecStructFieldNotFound(-1, yys1223) } // end switch yys1223 } // end for yyj1223 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1226 int var yyb1226 bool var yyhl1226 bool = l >= 0 yyj1226++ if yyhl1226 { yyb1226 = yyj1226 > l } else { yyb1226 = r.CheckBreak() } if yyb1226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1227 := &x.StartedAt yym1228 := z.DecBinary() _ = yym1228 if false { } else if z.HasExtensions() && z.DecExt(yyv1227) { } else if yym1228 { z.DecBinaryUnmarshal(yyv1227) } else if !yym1228 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1227) } else { z.DecFallback(yyv1227, false) } } for { yyj1226++ if yyhl1226 { yyb1226 = yyj1226 > l } else { yyb1226 = r.CheckBreak() } if yyb1226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1226-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1229 := z.EncBinary() _ = yym1229 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1230 := !z.EncBinary() yy2arr1230 := z.EncBasicHandle().StructToArray var yyq1230 [7]bool _, _, _ = yysep1230, yyq1230, yy2arr1230 const yyr1230 bool = false yyq1230[1] = x.Signal != 0 yyq1230[2] = x.Reason != "" yyq1230[3] = x.Message != "" yyq1230[4] = true yyq1230[5] = true yyq1230[6] = x.ContainerID != "" var yynn1230 int if yyr1230 || yy2arr1230 { r.EncodeArrayStart(7) } else { yynn1230 = 1 for _, b := range yyq1230 { if b { yynn1230++ } } r.EncodeMapStart(yynn1230) yynn1230 = 0 } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1232 := z.EncBinary() _ = yym1232 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1233 := z.EncBinary() _ = yym1233 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[1] { yym1235 := z.EncBinary() _ = yym1235 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1230[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1236 := z.EncBinary() _ = yym1236 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[2] { yym1238 := z.EncBinary() _ = yym1238 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1230[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1239 := z.EncBinary() _ = yym1239 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[3] { yym1241 := z.EncBinary() _ = yym1241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1230[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1242 := z.EncBinary() _ = yym1242 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[4] { yy1244 := &x.StartedAt yym1245 := z.EncBinary() _ = yym1245 if false { } else if z.HasExtensions() && z.EncExt(yy1244) { } else if yym1245 { z.EncBinaryMarshal(yy1244) } else if !yym1245 && z.IsJSONHandle() { z.EncJSONMarshal(yy1244) } else { z.EncFallback(yy1244) } } else { r.EncodeNil() } } else { if yyq1230[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1246 := &x.StartedAt yym1247 := z.EncBinary() _ = yym1247 if false { } else if z.HasExtensions() && z.EncExt(yy1246) { } else if yym1247 { z.EncBinaryMarshal(yy1246) } else if !yym1247 && z.IsJSONHandle() { z.EncJSONMarshal(yy1246) } else { z.EncFallback(yy1246) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[5] { yy1249 := &x.FinishedAt yym1250 := z.EncBinary() _ = yym1250 if false { } else if z.HasExtensions() && z.EncExt(yy1249) { } else if yym1250 { z.EncBinaryMarshal(yy1249) } else if !yym1250 && z.IsJSONHandle() { z.EncJSONMarshal(yy1249) } else { z.EncFallback(yy1249) } } else { r.EncodeNil() } } else { if yyq1230[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1251 := &x.FinishedAt yym1252 := z.EncBinary() _ = yym1252 if false { } else if z.HasExtensions() && z.EncExt(yy1251) { } else if yym1252 { z.EncBinaryMarshal(yy1251) } else if !yym1252 && z.IsJSONHandle() { z.EncJSONMarshal(yy1251) } else { z.EncFallback(yy1251) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1230[6] { yym1254 := z.EncBinary() _ = yym1254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1230[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1255 := z.EncBinary() _ = yym1255 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1230 || yy2arr1230 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1256 := z.DecBinary() _ = yym1256 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1257 := r.ContainerType() if yyct1257 == codecSelferValueTypeMap1234 { yyl1257 := r.ReadMapStart() if yyl1257 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1257, d) } } else if yyct1257 == codecSelferValueTypeArray1234 { yyl1257 := r.ReadArrayStart() if yyl1257 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1257, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1258Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1258Slc var yyhl1258 bool = l >= 0 for yyj1258 := 0; ; yyj1258++ { if yyhl1258 { if yyj1258 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1258Slc = r.DecodeBytes(yys1258Slc, true, true) yys1258 := string(yys1258Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1258 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234)) } case "signal": if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int(r.DecodeInt(codecSelferBitsize1234)) } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1263 := &x.StartedAt yym1264 := z.DecBinary() _ = yym1264 if false { } else if z.HasExtensions() && z.DecExt(yyv1263) { } else if yym1264 { z.DecBinaryUnmarshal(yyv1263) } else if !yym1264 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1263) } else { z.DecFallback(yyv1263, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1265 := &x.FinishedAt yym1266 := z.DecBinary() _ = yym1266 if false { } else if z.HasExtensions() && z.DecExt(yyv1265) { } else if yym1266 { z.DecBinaryUnmarshal(yyv1265) } else if !yym1266 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1265) } else { z.DecFallback(yyv1265, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1258) } // end switch yys1258 } // end for yyj1258 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1268 int var yyb1268 bool var yyhl1268 bool = l >= 0 yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1273 := &x.StartedAt yym1274 := z.DecBinary() _ = yym1274 if false { } else if z.HasExtensions() && z.DecExt(yyv1273) { } else if yym1274 { z.DecBinaryUnmarshal(yyv1273) } else if !yym1274 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1273) } else { z.DecFallback(yyv1273, false) } } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1275 := &x.FinishedAt yym1276 := z.DecBinary() _ = yym1276 if false { } else if z.HasExtensions() && z.DecExt(yyv1275) { } else if yym1276 { z.DecBinaryUnmarshal(yyv1275) } else if !yym1276 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1275) } else { z.DecFallback(yyv1275, false) } } yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1268++ if yyhl1268 { yyb1268 = yyj1268 > l } else { yyb1268 = r.CheckBreak() } if yyb1268 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1268-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1278 := z.EncBinary() _ = yym1278 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1279 := !z.EncBinary() yy2arr1279 := z.EncBasicHandle().StructToArray var yyq1279 [3]bool _, _, _ = yysep1279, yyq1279, yy2arr1279 const yyr1279 bool = false yyq1279[0] = x.Waiting != nil yyq1279[1] = x.Running != nil yyq1279[2] = x.Terminated != nil var yynn1279 int if yyr1279 || yy2arr1279 { r.EncodeArrayStart(3) } else { yynn1279 = 0 for _, b := range yyq1279 { if b { yynn1279++ } } r.EncodeMapStart(yynn1279) yynn1279 = 0 } if yyr1279 || yy2arr1279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1279[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1279[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("waiting")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } } if yyr1279 || yy2arr1279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1279[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1279[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("running")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } } if yyr1279 || yy2arr1279 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1279[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1279[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminated")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } } if yyr1279 || yy2arr1279 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1283 := z.DecBinary() _ = yym1283 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1284 := r.ContainerType() if yyct1284 == codecSelferValueTypeMap1234 { yyl1284 := r.ReadMapStart() if yyl1284 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1284, d) } } else if yyct1284 == codecSelferValueTypeArray1234 { yyl1284 := r.ReadArrayStart() if yyl1284 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1284, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1285Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1285Slc var yyhl1285 bool = l >= 0 for yyj1285 := 0; ; yyj1285++ { if yyhl1285 { if yyj1285 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1285Slc = r.DecodeBytes(yys1285Slc, true, true) yys1285 := string(yys1285Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1285 { case "waiting": if r.TryDecodeAsNil() { if x.Waiting != nil { x.Waiting = nil } } else { if x.Waiting == nil { x.Waiting = new(ContainerStateWaiting) } x.Waiting.CodecDecodeSelf(d) } case "running": if r.TryDecodeAsNil() { if x.Running != nil { x.Running = nil } } else { if x.Running == nil { x.Running = new(ContainerStateRunning) } x.Running.CodecDecodeSelf(d) } case "terminated": if r.TryDecodeAsNil() { if x.Terminated != nil { x.Terminated = nil } } else { if x.Terminated == nil { x.Terminated = new(ContainerStateTerminated) } x.Terminated.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1285) } // end switch yys1285 } // end for yyj1285 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1289 int var yyb1289 bool var yyhl1289 bool = l >= 0 yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Waiting != nil { x.Waiting = nil } } else { if x.Waiting == nil { x.Waiting = new(ContainerStateWaiting) } x.Waiting.CodecDecodeSelf(d) } yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Running != nil { x.Running = nil } } else { if x.Running == nil { x.Running = new(ContainerStateRunning) } x.Running.CodecDecodeSelf(d) } yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Terminated != nil { x.Terminated = nil } } else { if x.Terminated == nil { x.Terminated = new(ContainerStateTerminated) } x.Terminated.CodecDecodeSelf(d) } for { yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1289-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1293 := z.EncBinary() _ = yym1293 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1294 := !z.EncBinary() yy2arr1294 := z.EncBasicHandle().StructToArray var yyq1294 [8]bool _, _, _ = yysep1294, yyq1294, yy2arr1294 const yyr1294 bool = false yyq1294[1] = true yyq1294[2] = true yyq1294[7] = x.ContainerID != "" var yynn1294 int if yyr1294 || yy2arr1294 { r.EncodeArrayStart(8) } else { yynn1294 = 5 for _, b := range yyq1294 { if b { yynn1294++ } } r.EncodeMapStart(yynn1294) yynn1294 = 0 } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1296 := z.EncBinary() _ = yym1296 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1297 := z.EncBinary() _ = yym1297 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1294[1] { yy1299 := &x.State yy1299.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1294[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1300 := &x.State yy1300.CodecEncodeSelf(e) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1294[2] { yy1302 := &x.LastTerminationState yy1302.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1294[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1303 := &x.LastTerminationState yy1303.CodecEncodeSelf(e) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1305 := z.EncBinary() _ = yym1305 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1306 := z.EncBinary() _ = yym1306 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1308 := z.EncBinary() _ = yym1308 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1309 := z.EncBinary() _ = yym1309 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1311 := z.EncBinary() _ = yym1311 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("image")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1312 := z.EncBinary() _ = yym1312 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1314 := z.EncBinary() _ = yym1314 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imageID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1315 := z.EncBinary() _ = yym1315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1294[7] { yym1317 := z.EncBinary() _ = yym1317 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1294[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1318 := z.EncBinary() _ = yym1318 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1294 || yy2arr1294 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1319 := z.DecBinary() _ = yym1319 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1320 := r.ContainerType() if yyct1320 == codecSelferValueTypeMap1234 { yyl1320 := r.ReadMapStart() if yyl1320 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1320, d) } } else if yyct1320 == codecSelferValueTypeArray1234 { yyl1320 := r.ReadArrayStart() if yyl1320 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1320, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1321Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1321Slc var yyhl1321 bool = l >= 0 for yyj1321 := 0; ; yyj1321++ { if yyhl1321 { if yyj1321 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1321Slc = r.DecodeBytes(yys1321Slc, true, true) yys1321 := string(yys1321Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1321 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1323 := &x.State yyv1323.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1324 := &x.LastTerminationState yyv1324.CodecDecodeSelf(d) } case "ready": if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } case "restartCount": if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234)) } case "image": if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } case "imageID": if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1321) } // end switch yys1321 } // end for yyj1321 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1330 int var yyb1330 bool var yyhl1330 bool = l >= 0 yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1332 := &x.State yyv1332.CodecDecodeSelf(d) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1333 := &x.LastTerminationState yyv1333.CodecDecodeSelf(d) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ready = false } else { x.Ready = bool(r.DecodeBool()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartCount = 0 } else { x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1330++ if yyhl1330 { yyb1330 = yyj1330 > l } else { yyb1330 = r.CheckBreak() } if yyb1330 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1330-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1339 := z.EncBinary() _ = yym1339 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1340 := z.DecBinary() _ = yym1340 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1341 := z.EncBinary() _ = yym1341 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1342 := z.DecBinary() _ = yym1342 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1343 := z.EncBinary() _ = yym1343 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1344 := !z.EncBinary() yy2arr1344 := z.EncBasicHandle().StructToArray var yyq1344 [6]bool _, _, _ = yysep1344, yyq1344, yy2arr1344 const yyr1344 bool = false yyq1344[2] = true yyq1344[3] = true yyq1344[4] = x.Reason != "" yyq1344[5] = x.Message != "" var yynn1344 int if yyr1344 || yy2arr1344 { r.EncodeArrayStart(6) } else { yynn1344 = 2 for _, b := range yyq1344 { if b { yynn1344++ } } r.EncodeMapStart(yynn1344) yynn1344 = 0 } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[2] { yy1348 := &x.LastProbeTime yym1349 := z.EncBinary() _ = yym1349 if false { } else if z.HasExtensions() && z.EncExt(yy1348) { } else if yym1349 { z.EncBinaryMarshal(yy1348) } else if !yym1349 && z.IsJSONHandle() { z.EncJSONMarshal(yy1348) } else { z.EncFallback(yy1348) } } else { r.EncodeNil() } } else { if yyq1344[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1350 := &x.LastProbeTime yym1351 := z.EncBinary() _ = yym1351 if false { } else if z.HasExtensions() && z.EncExt(yy1350) { } else if yym1351 { z.EncBinaryMarshal(yy1350) } else if !yym1351 && z.IsJSONHandle() { z.EncJSONMarshal(yy1350) } else { z.EncFallback(yy1350) } } } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[3] { yy1353 := &x.LastTransitionTime yym1354 := z.EncBinary() _ = yym1354 if false { } else if z.HasExtensions() && z.EncExt(yy1353) { } else if yym1354 { z.EncBinaryMarshal(yy1353) } else if !yym1354 && z.IsJSONHandle() { z.EncJSONMarshal(yy1353) } else { z.EncFallback(yy1353) } } else { r.EncodeNil() } } else { if yyq1344[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1355 := &x.LastTransitionTime yym1356 := z.EncBinary() _ = yym1356 if false { } else if z.HasExtensions() && z.EncExt(yy1355) { } else if yym1356 { z.EncBinaryMarshal(yy1355) } else if !yym1356 && z.IsJSONHandle() { z.EncJSONMarshal(yy1355) } else { z.EncFallback(yy1355) } } } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[4] { yym1358 := z.EncBinary() _ = yym1358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1344[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1359 := z.EncBinary() _ = yym1359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1344[5] { yym1361 := z.EncBinary() _ = yym1361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1344[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1362 := z.EncBinary() _ = yym1362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1344 || yy2arr1344 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1363 := z.DecBinary() _ = yym1363 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1364 := r.ContainerType() if yyct1364 == codecSelferValueTypeMap1234 { yyl1364 := r.ReadMapStart() if yyl1364 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1364, d) } } else if yyct1364 == codecSelferValueTypeArray1234 { yyl1364 := r.ReadArrayStart() if yyl1364 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1364, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1365Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1365Slc var yyhl1365 bool = l >= 0 for yyj1365 := 0; ; yyj1365++ { if yyhl1365 { if yyj1365 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1365Slc = r.DecodeBytes(yys1365Slc, true, true) yys1365 := string(yys1365Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1365 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } case "status": if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } case "lastProbeTime": if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1368 := &x.LastProbeTime yym1369 := z.DecBinary() _ = yym1369 if false { } else if z.HasExtensions() && z.DecExt(yyv1368) { } else if yym1369 { z.DecBinaryUnmarshal(yyv1368) } else if !yym1369 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1368) } else { z.DecFallback(yyv1368, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1370 := &x.LastTransitionTime yym1371 := z.DecBinary() _ = yym1371 if false { } else if z.HasExtensions() && z.DecExt(yyv1370) { } else if yym1371 { z.DecBinaryUnmarshal(yyv1370) } else if !yym1371 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1370) } else { z.DecFallback(yyv1370, false) } } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1365) } // end switch yys1365 } // end for yyj1365 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1374 int var yyb1374 bool var yyhl1374 bool = l >= 0 yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1377 := &x.LastProbeTime yym1378 := z.DecBinary() _ = yym1378 if false { } else if z.HasExtensions() && z.DecExt(yyv1377) { } else if yym1378 { z.DecBinaryUnmarshal(yyv1377) } else if !yym1378 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1377) } else { z.DecFallback(yyv1377, false) } } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1379 := &x.LastTransitionTime yym1380 := z.DecBinary() _ = yym1380 if false { } else if z.HasExtensions() && z.DecExt(yyv1379) { } else if yym1380 { z.DecBinaryUnmarshal(yyv1379) } else if !yym1380 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1379) } else { z.DecFallback(yyv1379, false) } } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1374++ if yyhl1374 { yyb1374 = yyj1374 > l } else { yyb1374 = r.CheckBreak() } if yyb1374 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1374-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1383 := z.EncBinary() _ = yym1383 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1384 := z.DecBinary() _ = yym1384 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1385 := z.EncBinary() _ = yym1385 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1386 := !z.EncBinary() yy2arr1386 := z.EncBasicHandle().StructToArray var yyq1386 [4]bool _, _, _ = yysep1386, yyq1386, yy2arr1386 const yyr1386 bool = false yyq1386[0] = x.Kind != "" yyq1386[1] = x.APIVersion != "" yyq1386[2] = true var yynn1386 int if yyr1386 || yy2arr1386 { r.EncodeArrayStart(4) } else { yynn1386 = 1 for _, b := range yyq1386 { if b { yynn1386++ } } r.EncodeMapStart(yynn1386) yynn1386 = 0 } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1386[0] { yym1388 := z.EncBinary() _ = yym1388 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1386[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1389 := z.EncBinary() _ = yym1389 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1386[1] { yym1391 := z.EncBinary() _ = yym1391 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1386[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1392 := z.EncBinary() _ = yym1392 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1386[2] { yy1394 := &x.ListMeta yym1395 := z.EncBinary() _ = yym1395 if false { } else if z.HasExtensions() && z.EncExt(yy1394) { } else { z.EncFallback(yy1394) } } else { r.EncodeNil() } } else { if yyq1386[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1396 := &x.ListMeta yym1397 := z.EncBinary() _ = yym1397 if false { } else if z.HasExtensions() && z.EncExt(yy1396) { } else { z.EncFallback(yy1396) } } } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1399 := z.EncBinary() _ = yym1399 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1400 := z.EncBinary() _ = yym1400 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1386 || yy2arr1386 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1401 := z.DecBinary() _ = yym1401 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1402 := r.ContainerType() if yyct1402 == codecSelferValueTypeMap1234 { yyl1402 := r.ReadMapStart() if yyl1402 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1402, d) } } else if yyct1402 == codecSelferValueTypeArray1234 { yyl1402 := r.ReadArrayStart() if yyl1402 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1402, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1403Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1403Slc var yyhl1403 bool = l >= 0 for yyj1403 := 0; ; yyj1403++ { if yyhl1403 { if yyj1403 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1403Slc = r.DecodeBytes(yys1403Slc, true, true) yys1403 := string(yys1403Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1403 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1406 := &x.ListMeta yym1407 := z.DecBinary() _ = yym1407 if false { } else if z.HasExtensions() && z.DecExt(yyv1406) { } else { z.DecFallback(yyv1406, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1408 := &x.Items yym1409 := z.DecBinary() _ = yym1409 if false { } else { h.decSlicePod((*[]Pod)(yyv1408), d) } } default: z.DecStructFieldNotFound(-1, yys1403) } // end switch yys1403 } // end for yyj1403 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1410 int var yyb1410 bool var yyhl1410 bool = l >= 0 yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1413 := &x.ListMeta yym1414 := z.DecBinary() _ = yym1414 if false { } else if z.HasExtensions() && z.DecExt(yyv1413) { } else { z.DecFallback(yyv1413, false) } } yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1415 := &x.Items yym1416 := z.DecBinary() _ = yym1416 if false { } else { h.decSlicePod((*[]Pod)(yyv1415), d) } } for { yyj1410++ if yyhl1410 { yyb1410 = yyj1410 > l } else { yyb1410 = r.CheckBreak() } if yyb1410 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1410-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1417 := z.EncBinary() _ = yym1417 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1418 := z.DecBinary() _ = yym1418 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1419 := z.EncBinary() _ = yym1419 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1420 := !z.EncBinary() yy2arr1420 := z.EncBasicHandle().StructToArray var yyq1420 [11]bool _, _, _ = yysep1420, yyq1420, yy2arr1420 const yyr1420 bool = false yyq1420[2] = x.RestartPolicy != "" yyq1420[3] = x.TerminationGracePeriodSeconds != nil yyq1420[4] = x.ActiveDeadlineSeconds != nil yyq1420[5] = x.DNSPolicy != "" yyq1420[6] = len(x.NodeSelector) != 0 yyq1420[8] = x.NodeName != "" yyq1420[9] = x.SecurityContext != nil yyq1420[10] = len(x.ImagePullSecrets) != 0 var yynn1420 int if yyr1420 || yy2arr1420 { r.EncodeArrayStart(11) } else { yynn1420 = 3 for _, b := range yyq1420 { if b { yynn1420++ } } r.EncodeMapStart(yynn1420) yynn1420 = 0 } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym1422 := z.EncBinary() _ = yym1422 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Volumes == nil { r.EncodeNil() } else { yym1423 := z.EncBinary() _ = yym1423 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym1425 := z.EncBinary() _ = yym1425 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Containers == nil { r.EncodeNil() } else { yym1426 := z.EncBinary() _ = yym1426 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1420[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1429 := *x.TerminationGracePeriodSeconds yym1430 := z.EncBinary() _ = yym1430 if false { } else { r.EncodeInt(int64(yy1429)) } } } else { r.EncodeNil() } } else { if yyq1420[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy1431 := *x.TerminationGracePeriodSeconds yym1432 := z.EncBinary() _ = yym1432 if false { } else { r.EncodeInt(int64(yy1431)) } } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1434 := *x.ActiveDeadlineSeconds yym1435 := z.EncBinary() _ = yym1435 if false { } else { r.EncodeInt(int64(yy1434)) } } } else { r.EncodeNil() } } else { if yyq1420[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy1436 := *x.ActiveDeadlineSeconds yym1437 := z.EncBinary() _ = yym1437 if false { } else { r.EncodeInt(int64(yy1436)) } } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1420[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym1440 := z.EncBinary() _ = yym1440 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq1420[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym1441 := z.EncBinary() _ = yym1441 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1443 := z.EncBinary() _ = yym1443 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("serviceAccountName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1444 := z.EncBinary() _ = yym1444 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[8] { yym1446 := z.EncBinary() _ = yym1446 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1420[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1447 := z.EncBinary() _ = yym1447 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1420[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("securityContext")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1420[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1450 := z.EncBinary() _ = yym1450 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq1420[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym1451 := z.EncBinary() _ = yym1451 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr1420 || yy2arr1420 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1452 := z.DecBinary() _ = yym1452 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1453 := r.ContainerType() if yyct1453 == codecSelferValueTypeMap1234 { yyl1453 := r.ReadMapStart() if yyl1453 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1453, d) } } else if yyct1453 == codecSelferValueTypeArray1234 { yyl1453 := r.ReadArrayStart() if yyl1453 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1453, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1454Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1454Slc var yyhl1454 bool = l >= 0 for yyj1454 := 0; ; yyj1454++ { if yyhl1454 { if yyj1454 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1454Slc = r.DecodeBytes(yys1454Slc, true, true) yys1454 := string(yys1454Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1454 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1455 := &x.Volumes yym1456 := z.DecBinary() _ = yym1456 if false { } else { h.decSliceVolume((*[]Volume)(yyv1455), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1457 := &x.Containers yym1458 := z.DecBinary() _ = yym1458 if false { } else { h.decSliceContainer((*[]Container)(yyv1457), d) } } case "restartPolicy": if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } case "terminationGracePeriodSeconds": if r.TryDecodeAsNil() { if x.TerminationGracePeriodSeconds != nil { x.TerminationGracePeriodSeconds = nil } } else { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } yym1461 := z.DecBinary() _ = yym1461 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "activeDeadlineSeconds": if r.TryDecodeAsNil() { if x.ActiveDeadlineSeconds != nil { x.ActiveDeadlineSeconds = nil } } else { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } yym1463 := z.DecBinary() _ = yym1463 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } case "dnsPolicy": if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } case "nodeSelector": if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv1465 := &x.NodeSelector yym1466 := z.DecBinary() _ = yym1466 if false { } else { z.F.DecMapStringStringX(yyv1465, false, d) } } case "serviceAccountName": if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } case "nodeName": if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } case "securityContext": if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(PodSecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv1470 := &x.ImagePullSecrets yym1471 := z.DecBinary() _ = yym1471 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1470), d) } } default: z.DecStructFieldNotFound(-1, yys1454) } // end switch yys1454 } // end for yyj1454 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1472 int var yyb1472 bool var yyhl1472 bool = l >= 0 yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv1473 := &x.Volumes yym1474 := z.DecBinary() _ = yym1474 if false { } else { h.decSliceVolume((*[]Volume)(yyv1473), d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv1475 := &x.Containers yym1476 := z.DecBinary() _ = yym1476 if false { } else { h.decSliceContainer((*[]Container)(yyv1475), d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TerminationGracePeriodSeconds != nil { x.TerminationGracePeriodSeconds = nil } } else { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } yym1479 := z.DecBinary() _ = yym1479 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ActiveDeadlineSeconds != nil { x.ActiveDeadlineSeconds = nil } } else { if x.ActiveDeadlineSeconds == nil { x.ActiveDeadlineSeconds = new(int64) } yym1481 := z.DecBinary() _ = yym1481 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv1483 := &x.NodeSelector yym1484 := z.DecBinary() _ = yym1484 if false { } else { z.F.DecMapStringStringX(yyv1483, false, d) } } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(PodSecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv1488 := &x.ImagePullSecrets yym1489 := z.DecBinary() _ = yym1489 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1488), d) } } for { yyj1472++ if yyhl1472 { yyb1472 = yyj1472 > l } else { yyb1472 = r.CheckBreak() } if yyb1472 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1472-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1490 := z.EncBinary() _ = yym1490 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1491 := !z.EncBinary() yy2arr1491 := z.EncBasicHandle().StructToArray var yyq1491 [8]bool _, _, _ = yysep1491, yyq1491, yy2arr1491 const yyr1491 bool = false yyq1491[0] = x.HostNetwork != false yyq1491[1] = x.HostPID != false yyq1491[2] = x.HostIPC != false yyq1491[3] = x.SELinuxOptions != nil yyq1491[4] = x.RunAsUser != nil yyq1491[5] = x.RunAsNonRoot != nil yyq1491[6] = len(x.SupplementalGroups) != 0 yyq1491[7] = x.FSGroup != nil var yynn1491 int if yyr1491 || yy2arr1491 { r.EncodeArrayStart(8) } else { yynn1491 = 0 for _, b := range yyq1491 { if b { yynn1491++ } } r.EncodeMapStart(yynn1491) yynn1491 = 0 } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[0] { yym1493 := z.EncBinary() _ = yym1493 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq1491[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1494 := z.EncBinary() _ = yym1494 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[1] { yym1496 := z.EncBinary() _ = yym1496 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq1491[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1497 := z.EncBinary() _ = yym1497 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[2] { yym1499 := z.EncBinary() _ = yym1499 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq1491[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1500 := z.EncBinary() _ = yym1500 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1491[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("seLinuxOptions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy1503 := *x.RunAsUser yym1504 := z.EncBinary() _ = yym1504 if false { } else { r.EncodeInt(int64(yy1503)) } } } else { r.EncodeNil() } } else { if yyq1491[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy1505 := *x.RunAsUser yym1506 := z.EncBinary() _ = yym1506 if false { } else { r.EncodeInt(int64(yy1505)) } } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1508 := *x.RunAsNonRoot yym1509 := z.EncBinary() _ = yym1509 if false { } else { r.EncodeBool(bool(yy1508)) } } } else { r.EncodeNil() } } else { if yyq1491[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy1510 := *x.RunAsNonRoot yym1511 := z.EncBinary() _ = yym1511 if false { } else { r.EncodeBool(bool(yy1510)) } } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1513 := z.EncBinary() _ = yym1513 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq1491[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym1514 := z.EncBinary() _ = yym1514 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1491[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy1516 := *x.FSGroup yym1517 := z.EncBinary() _ = yym1517 if false { } else { r.EncodeInt(int64(yy1516)) } } } else { r.EncodeNil() } } else { if yyq1491[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy1518 := *x.FSGroup yym1519 := z.EncBinary() _ = yym1519 if false { } else { r.EncodeInt(int64(yy1518)) } } } } if yyr1491 || yy2arr1491 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodSecurityContext) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1520 := z.DecBinary() _ = yym1520 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1521 := r.ContainerType() if yyct1521 == codecSelferValueTypeMap1234 { yyl1521 := r.ReadMapStart() if yyl1521 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1521, d) } } else if yyct1521 == codecSelferValueTypeArray1234 { yyl1521 := r.ReadArrayStart() if yyl1521 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1521, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodSecurityContext) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1522Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1522Slc var yyhl1522 bool = l >= 0 for yyj1522 := 0; ; yyj1522++ { if yyhl1522 { if yyj1522 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1522Slc = r.DecodeBytes(yys1522Slc, true, true) yys1522 := string(yys1522Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1522 { case "hostNetwork": if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } case "hostPID": if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } case "hostIPC": if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } case "seLinuxOptions": if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { x.SELinuxOptions = nil } } else { if x.SELinuxOptions == nil { x.SELinuxOptions = new(SELinuxOptions) } x.SELinuxOptions.CodecDecodeSelf(d) } case "runAsUser": if r.TryDecodeAsNil() { if x.RunAsUser != nil { x.RunAsUser = nil } } else { if x.RunAsUser == nil { x.RunAsUser = new(int64) } yym1528 := z.DecBinary() _ = yym1528 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } case "runAsNonRoot": if r.TryDecodeAsNil() { if x.RunAsNonRoot != nil { x.RunAsNonRoot = nil } } else { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } yym1530 := z.DecBinary() _ = yym1530 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1531 := &x.SupplementalGroups yym1532 := z.DecBinary() _ = yym1532 if false { } else { z.F.DecSliceInt64X(yyv1531, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym1534 := z.DecBinary() _ = yym1534 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys1522) } // end switch yys1522 } // end for yyj1522 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodSecurityContext) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1535 int var yyb1535 bool var yyhl1535 bool = l >= 0 yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SELinuxOptions != nil { x.SELinuxOptions = nil } } else { if x.SELinuxOptions == nil { x.SELinuxOptions = new(SELinuxOptions) } x.SELinuxOptions.CodecDecodeSelf(d) } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RunAsUser != nil { x.RunAsUser = nil } } else { if x.RunAsUser == nil { x.RunAsUser = new(int64) } yym1541 := z.DecBinary() _ = yym1541 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RunAsNonRoot != nil { x.RunAsNonRoot = nil } } else { if x.RunAsNonRoot == nil { x.RunAsNonRoot = new(bool) } yym1543 := z.DecBinary() _ = yym1543 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv1544 := &x.SupplementalGroups yym1545 := z.DecBinary() _ = yym1545 if false { } else { z.F.DecSliceInt64X(yyv1544, false, d) } } yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym1547 := z.DecBinary() _ = yym1547 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { yyj1535++ if yyhl1535 { yyb1535 = yyj1535 > l } else { yyb1535 = r.CheckBreak() } if yyb1535 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1535-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1548 := z.EncBinary() _ = yym1548 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1549 := !z.EncBinary() yy2arr1549 := z.EncBasicHandle().StructToArray var yyq1549 [8]bool _, _, _ = yysep1549, yyq1549, yy2arr1549 const yyr1549 bool = false yyq1549[0] = x.Phase != "" yyq1549[1] = len(x.Conditions) != 0 yyq1549[2] = x.Message != "" yyq1549[3] = x.Reason != "" yyq1549[4] = x.HostIP != "" yyq1549[5] = x.PodIP != "" yyq1549[6] = x.StartTime != nil yyq1549[7] = len(x.ContainerStatuses) != 0 var yynn1549 int if yyr1549 || yy2arr1549 { r.EncodeArrayStart(8) } else { yynn1549 = 0 for _, b := range yyq1549 { if b { yynn1549++ } } r.EncodeMapStart(yynn1549) yynn1549 = 0 } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[1] { if x.Conditions == nil { r.EncodeNil() } else { yym1552 := z.EncBinary() _ = yym1552 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq1549[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym1553 := z.EncBinary() _ = yym1553 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[2] { yym1555 := z.EncBinary() _ = yym1555 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1556 := z.EncBinary() _ = yym1556 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[3] { yym1558 := z.EncBinary() _ = yym1558 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1559 := z.EncBinary() _ = yym1559 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[4] { yym1561 := z.EncBinary() _ = yym1561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1562 := z.EncBinary() _ = yym1562 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[5] { yym1564 := z.EncBinary() _ = yym1564 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1549[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1565 := z.EncBinary() _ = yym1565 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[6] { if x.StartTime == nil { r.EncodeNil() } else { yym1567 := z.EncBinary() _ = yym1567 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1567 { z.EncBinaryMarshal(x.StartTime) } else if !yym1567 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq1549[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym1568 := z.EncBinary() _ = yym1568 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym1568 { z.EncBinaryMarshal(x.StartTime) } else if !yym1568 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1549[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1570 := z.EncBinary() _ = yym1570 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq1549[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym1571 := z.EncBinary() _ = yym1571 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr1549 || yy2arr1549 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1572 := z.DecBinary() _ = yym1572 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1573 := r.ContainerType() if yyct1573 == codecSelferValueTypeMap1234 { yyl1573 := r.ReadMapStart() if yyl1573 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1573, d) } } else if yyct1573 == codecSelferValueTypeArray1234 { yyl1573 := r.ReadArrayStart() if yyl1573 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1573, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1574Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1574Slc var yyhl1574 bool = l >= 0 for yyj1574 := 0; ; yyj1574++ { if yyhl1574 { if yyj1574 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1574Slc = r.DecodeBytes(yys1574Slc, true, true) yys1574 := string(yys1574Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1574 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1576 := &x.Conditions yym1577 := z.DecBinary() _ = yym1577 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1576), d) } } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "hostIP": if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } case "podIP": if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } case "startTime": if r.TryDecodeAsNil() { if x.StartTime != nil { x.StartTime = nil } } else { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } yym1583 := z.DecBinary() _ = yym1583 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1583 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1583 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1584 := &x.ContainerStatuses yym1585 := z.DecBinary() _ = yym1585 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1584), d) } } default: z.DecStructFieldNotFound(-1, yys1574) } // end switch yys1574 } // end for yyj1574 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1586 int var yyb1586 bool var yyhl1586 bool = l >= 0 yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv1588 := &x.Conditions yym1589 := z.DecBinary() _ = yym1589 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv1588), d) } } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.StartTime != nil { x.StartTime = nil } } else { if x.StartTime == nil { x.StartTime = new(pkg2_unversioned.Time) } yym1595 := z.DecBinary() _ = yym1595 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym1595 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym1595 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv1596 := &x.ContainerStatuses yym1597 := z.DecBinary() _ = yym1597 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv1596), d) } } for { yyj1586++ if yyhl1586 { yyb1586 = yyj1586 > l } else { yyb1586 = r.CheckBreak() } if yyb1586 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1586-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1598 := z.EncBinary() _ = yym1598 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1599 := !z.EncBinary() yy2arr1599 := z.EncBasicHandle().StructToArray var yyq1599 [4]bool _, _, _ = yysep1599, yyq1599, yy2arr1599 const yyr1599 bool = false yyq1599[0] = x.Kind != "" yyq1599[1] = x.APIVersion != "" yyq1599[2] = true yyq1599[3] = true var yynn1599 int if yyr1599 || yy2arr1599 { r.EncodeArrayStart(4) } else { yynn1599 = 0 for _, b := range yyq1599 { if b { yynn1599++ } } r.EncodeMapStart(yynn1599) yynn1599 = 0 } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[0] { yym1601 := z.EncBinary() _ = yym1601 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1599[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1602 := z.EncBinary() _ = yym1602 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[1] { yym1604 := z.EncBinary() _ = yym1604 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1599[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1605 := z.EncBinary() _ = yym1605 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[2] { yy1607 := &x.ObjectMeta yy1607.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1599[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1608 := &x.ObjectMeta yy1608.CodecEncodeSelf(e) } } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1599[3] { yy1610 := &x.Status yy1610.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1599[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1611 := &x.Status yy1611.CodecEncodeSelf(e) } } if yyr1599 || yy2arr1599 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodStatusResult) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1612 := z.DecBinary() _ = yym1612 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1613 := r.ContainerType() if yyct1613 == codecSelferValueTypeMap1234 { yyl1613 := r.ReadMapStart() if yyl1613 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1613, d) } } else if yyct1613 == codecSelferValueTypeArray1234 { yyl1613 := r.ReadArrayStart() if yyl1613 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1613, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1614Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1614Slc var yyhl1614 bool = l >= 0 for yyj1614 := 0; ; yyj1614++ { if yyhl1614 { if yyj1614 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1614Slc = r.DecodeBytes(yys1614Slc, true, true) yys1614 := string(yys1614Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1614 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1617 := &x.ObjectMeta yyv1617.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1618 := &x.Status yyv1618.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1614) } // end switch yys1614 } // end for yyj1614 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodStatusResult) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1619 int var yyb1619 bool var yyhl1619 bool = l >= 0 yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1622 := &x.ObjectMeta yyv1622.CodecDecodeSelf(d) } yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1623 := &x.Status yyv1623.CodecDecodeSelf(d) } for { yyj1619++ if yyhl1619 { yyb1619 = yyj1619 > l } else { yyb1619 = r.CheckBreak() } if yyb1619 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1619-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Pod) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1624 := z.EncBinary() _ = yym1624 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1625 := !z.EncBinary() yy2arr1625 := z.EncBasicHandle().StructToArray var yyq1625 [5]bool _, _, _ = yysep1625, yyq1625, yy2arr1625 const yyr1625 bool = false yyq1625[0] = x.Kind != "" yyq1625[1] = x.APIVersion != "" yyq1625[2] = true yyq1625[3] = true yyq1625[4] = true var yynn1625 int if yyr1625 || yy2arr1625 { r.EncodeArrayStart(5) } else { yynn1625 = 0 for _, b := range yyq1625 { if b { yynn1625++ } } r.EncodeMapStart(yynn1625) yynn1625 = 0 } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[0] { yym1627 := z.EncBinary() _ = yym1627 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1625[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1628 := z.EncBinary() _ = yym1628 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[1] { yym1630 := z.EncBinary() _ = yym1630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1625[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1631 := z.EncBinary() _ = yym1631 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[2] { yy1633 := &x.ObjectMeta yy1633.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1625[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1634 := &x.ObjectMeta yy1634.CodecEncodeSelf(e) } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[3] { yy1636 := &x.Spec yy1636.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1625[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1637 := &x.Spec yy1637.CodecEncodeSelf(e) } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1625[4] { yy1639 := &x.Status yy1639.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1625[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1640 := &x.Status yy1640.CodecEncodeSelf(e) } } if yyr1625 || yy2arr1625 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Pod) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1641 := z.DecBinary() _ = yym1641 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1642 := r.ContainerType() if yyct1642 == codecSelferValueTypeMap1234 { yyl1642 := r.ReadMapStart() if yyl1642 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1642, d) } } else if yyct1642 == codecSelferValueTypeArray1234 { yyl1642 := r.ReadArrayStart() if yyl1642 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1642, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1643Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1643Slc var yyhl1643 bool = l >= 0 for yyj1643 := 0; ; yyj1643++ { if yyhl1643 { if yyj1643 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1643Slc = r.DecodeBytes(yys1643Slc, true, true) yys1643 := string(yys1643Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1643 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1646 := &x.ObjectMeta yyv1646.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1647 := &x.Spec yyv1647.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1648 := &x.Status yyv1648.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1643) } // end switch yys1643 } // end for yyj1643 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Pod) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1649 int var yyb1649 bool var yyhl1649 bool = l >= 0 yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1652 := &x.ObjectMeta yyv1652.CodecDecodeSelf(d) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1653 := &x.Spec yyv1653.CodecDecodeSelf(d) } yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv1654 := &x.Status yyv1654.CodecDecodeSelf(d) } for { yyj1649++ if yyhl1649 { yyb1649 = yyj1649 > l } else { yyb1649 = r.CheckBreak() } if yyb1649 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1649-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1655 := z.EncBinary() _ = yym1655 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1656 := !z.EncBinary() yy2arr1656 := z.EncBasicHandle().StructToArray var yyq1656 [2]bool _, _, _ = yysep1656, yyq1656, yy2arr1656 const yyr1656 bool = false yyq1656[0] = true yyq1656[1] = true var yynn1656 int if yyr1656 || yy2arr1656 { r.EncodeArrayStart(2) } else { yynn1656 = 0 for _, b := range yyq1656 { if b { yynn1656++ } } r.EncodeMapStart(yynn1656) yynn1656 = 0 } if yyr1656 || yy2arr1656 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1656[0] { yy1658 := &x.ObjectMeta yy1658.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1656[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1659 := &x.ObjectMeta yy1659.CodecEncodeSelf(e) } } if yyr1656 || yy2arr1656 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1656[1] { yy1661 := &x.Spec yy1661.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1656[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1662 := &x.Spec yy1662.CodecEncodeSelf(e) } } if yyr1656 || yy2arr1656 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodTemplateSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1663 := z.DecBinary() _ = yym1663 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1664 := r.ContainerType() if yyct1664 == codecSelferValueTypeMap1234 { yyl1664 := r.ReadMapStart() if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1664, d) } } else if yyct1664 == codecSelferValueTypeArray1234 { yyl1664 := r.ReadArrayStart() if yyl1664 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1664, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodTemplateSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1665Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1665Slc var yyhl1665 bool = l >= 0 for yyj1665 := 0; ; yyj1665++ { if yyhl1665 { if yyj1665 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1665Slc = r.DecodeBytes(yys1665Slc, true, true) yys1665 := string(yys1665Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1665 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1666 := &x.ObjectMeta yyv1666.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1667 := &x.Spec yyv1667.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1665) } // end switch yys1665 } // end for yyj1665 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodTemplateSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1668 int var yyb1668 bool var yyhl1668 bool = l >= 0 yyj1668++ if yyhl1668 { yyb1668 = yyj1668 > l } else { yyb1668 = r.CheckBreak() } if yyb1668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1669 := &x.ObjectMeta yyv1669.CodecDecodeSelf(d) } yyj1668++ if yyhl1668 { yyb1668 = yyj1668 > l } else { yyb1668 = r.CheckBreak() } if yyb1668 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv1670 := &x.Spec yyv1670.CodecDecodeSelf(d) } for { yyj1668++ if yyhl1668 { yyb1668 = yyj1668 > l } else { yyb1668 = r.CheckBreak() } if yyb1668 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1668-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplate) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1671 := z.EncBinary() _ = yym1671 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1672 := !z.EncBinary() yy2arr1672 := z.EncBasicHandle().StructToArray var yyq1672 [4]bool _, _, _ = yysep1672, yyq1672, yy2arr1672 const yyr1672 bool = false yyq1672[0] = x.Kind != "" yyq1672[1] = x.APIVersion != "" yyq1672[2] = true yyq1672[3] = true var yynn1672 int if yyr1672 || yy2arr1672 { r.EncodeArrayStart(4) } else { yynn1672 = 0 for _, b := range yyq1672 { if b { yynn1672++ } } r.EncodeMapStart(yynn1672) yynn1672 = 0 } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[0] { yym1674 := z.EncBinary() _ = yym1674 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1672[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1675 := z.EncBinary() _ = yym1675 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[1] { yym1677 := z.EncBinary() _ = yym1677 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1672[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1678 := z.EncBinary() _ = yym1678 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[2] { yy1680 := &x.ObjectMeta yy1680.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1672[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1681 := &x.ObjectMeta yy1681.CodecEncodeSelf(e) } } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1672[3] { yy1683 := &x.Template yy1683.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1672[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1684 := &x.Template yy1684.CodecEncodeSelf(e) } } if yyr1672 || yy2arr1672 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodTemplate) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1685 := z.DecBinary() _ = yym1685 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1686 := r.ContainerType() if yyct1686 == codecSelferValueTypeMap1234 { yyl1686 := r.ReadMapStart() if yyl1686 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1686, d) } } else if yyct1686 == codecSelferValueTypeArray1234 { yyl1686 := r.ReadArrayStart() if yyl1686 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1686, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodTemplate) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1687Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1687Slc var yyhl1687 bool = l >= 0 for yyj1687 := 0; ; yyj1687++ { if yyhl1687 { if yyj1687 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1687Slc = r.DecodeBytes(yys1687Slc, true, true) yys1687 := string(yys1687Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1687 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1690 := &x.ObjectMeta yyv1690.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1691 := &x.Template yyv1691.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1687) } // end switch yys1687 } // end for yyj1687 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodTemplate) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1692 int var yyb1692 bool var yyhl1692 bool = l >= 0 yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1695 := &x.ObjectMeta yyv1695.CodecDecodeSelf(d) } yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv1696 := &x.Template yyv1696.CodecDecodeSelf(d) } for { yyj1692++ if yyhl1692 { yyb1692 = yyj1692 > l } else { yyb1692 = r.CheckBreak() } if yyb1692 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1692-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1697 := z.EncBinary() _ = yym1697 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1698 := !z.EncBinary() yy2arr1698 := z.EncBasicHandle().StructToArray var yyq1698 [4]bool _, _, _ = yysep1698, yyq1698, yy2arr1698 const yyr1698 bool = false yyq1698[0] = x.Kind != "" yyq1698[1] = x.APIVersion != "" yyq1698[2] = true var yynn1698 int if yyr1698 || yy2arr1698 { r.EncodeArrayStart(4) } else { yynn1698 = 1 for _, b := range yyq1698 { if b { yynn1698++ } } r.EncodeMapStart(yynn1698) yynn1698 = 0 } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1698[0] { yym1700 := z.EncBinary() _ = yym1700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1698[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1701 := z.EncBinary() _ = yym1701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1698[1] { yym1703 := z.EncBinary() _ = yym1703 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1698[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1704 := z.EncBinary() _ = yym1704 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1698[2] { yy1706 := &x.ListMeta yym1707 := z.EncBinary() _ = yym1707 if false { } else if z.HasExtensions() && z.EncExt(yy1706) { } else { z.EncFallback(yy1706) } } else { r.EncodeNil() } } else { if yyq1698[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1708 := &x.ListMeta yym1709 := z.EncBinary() _ = yym1709 if false { } else if z.HasExtensions() && z.EncExt(yy1708) { } else { z.EncFallback(yy1708) } } } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1711 := z.EncBinary() _ = yym1711 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1712 := z.EncBinary() _ = yym1712 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr1698 || yy2arr1698 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodTemplateList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1713 := z.DecBinary() _ = yym1713 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1714 := r.ContainerType() if yyct1714 == codecSelferValueTypeMap1234 { yyl1714 := r.ReadMapStart() if yyl1714 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1714, d) } } else if yyct1714 == codecSelferValueTypeArray1234 { yyl1714 := r.ReadArrayStart() if yyl1714 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1714, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodTemplateList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1715Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1715Slc var yyhl1715 bool = l >= 0 for yyj1715 := 0; ; yyj1715++ { if yyhl1715 { if yyj1715 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1715Slc = r.DecodeBytes(yys1715Slc, true, true) yys1715 := string(yys1715Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1715 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1718 := &x.ListMeta yym1719 := z.DecBinary() _ = yym1719 if false { } else if z.HasExtensions() && z.DecExt(yyv1718) { } else { z.DecFallback(yyv1718, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1720 := &x.Items yym1721 := z.DecBinary() _ = yym1721 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1720), d) } } default: z.DecStructFieldNotFound(-1, yys1715) } // end switch yys1715 } // end for yyj1715 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodTemplateList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1722 int var yyb1722 bool var yyhl1722 bool = l >= 0 yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1725 := &x.ListMeta yym1726 := z.DecBinary() _ = yym1726 if false { } else if z.HasExtensions() && z.DecExt(yyv1725) { } else { z.DecFallback(yyv1725, false) } } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1727 := &x.Items yym1728 := z.DecBinary() _ = yym1728 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv1727), d) } } for { yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1722-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationControllerSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1729 := z.EncBinary() _ = yym1729 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1730 := !z.EncBinary() yy2arr1730 := z.EncBasicHandle().StructToArray var yyq1730 [3]bool _, _, _ = yysep1730, yyq1730, yy2arr1730 const yyr1730 bool = false yyq1730[2] = x.Template != nil var yynn1730 int if yyr1730 || yy2arr1730 { r.EncodeArrayStart(3) } else { yynn1730 = 2 for _, b := range yyq1730 { if b { yynn1730++ } } r.EncodeMapStart(yynn1730) yynn1730 = 0 } if yyr1730 || yy2arr1730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1732 := z.EncBinary() _ = yym1732 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1733 := z.EncBinary() _ = yym1733 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1730 || yy2arr1730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym1735 := z.EncBinary() _ = yym1735 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { yym1736 := z.EncBinary() _ = yym1736 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr1730 || yy2arr1730 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1730[2] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1730[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } } if yyr1730 || yy2arr1730 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationControllerSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1738 := z.DecBinary() _ = yym1738 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1739 := r.ContainerType() if yyct1739 == codecSelferValueTypeMap1234 { yyl1739 := r.ReadMapStart() if yyl1739 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1739, d) } } else if yyct1739 == codecSelferValueTypeArray1234 { yyl1739 := r.ReadArrayStart() if yyl1739 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1739, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1740Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1740Slc var yyhl1740 bool = l >= 0 for yyj1740 := 0; ; yyj1740++ { if yyhl1740 { if yyj1740 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1740Slc = r.DecodeBytes(yys1740Slc, true, true) yys1740 := string(yys1740Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1740 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1742 := &x.Selector yym1743 := z.DecBinary() _ = yym1743 if false { } else { z.F.DecMapStringStringX(yyv1742, false, d) } } case "template": if r.TryDecodeAsNil() { if x.Template != nil { x.Template = nil } } else { if x.Template == nil { x.Template = new(PodTemplateSpec) } x.Template.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1740) } // end switch yys1740 } // end for yyj1740 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationControllerSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1745 int var yyb1745 bool var yyhl1745 bool = l >= 0 yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1747 := &x.Selector yym1748 := z.DecBinary() _ = yym1748 if false { } else { z.F.DecMapStringStringX(yyv1747, false, d) } } yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Template != nil { x.Template = nil } } else { if x.Template == nil { x.Template = new(PodTemplateSpec) } x.Template.CodecDecodeSelf(d) } for { yyj1745++ if yyhl1745 { yyb1745 = yyj1745 > l } else { yyb1745 = r.CheckBreak() } if yyb1745 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1745-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1750 := z.EncBinary() _ = yym1750 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1751 := !z.EncBinary() yy2arr1751 := z.EncBasicHandle().StructToArray var yyq1751 [2]bool _, _, _ = yysep1751, yyq1751, yy2arr1751 const yyr1751 bool = false yyq1751[1] = x.ObservedGeneration != 0 var yynn1751 int if yyr1751 || yy2arr1751 { r.EncodeArrayStart(2) } else { yynn1751 = 1 for _, b := range yyq1751 { if b { yynn1751++ } } r.EncodeMapStart(yynn1751) yynn1751 = 0 } if yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1753 := z.EncBinary() _ = yym1753 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1754 := z.EncBinary() _ = yym1754 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1751[1] { yym1756 := z.EncBinary() _ = yym1756 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq1751[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1757 := z.EncBinary() _ = yym1757 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr1751 || yy2arr1751 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationControllerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1758 := z.DecBinary() _ = yym1758 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1759 := r.ContainerType() if yyct1759 == codecSelferValueTypeMap1234 { yyl1759 := r.ReadMapStart() if yyl1759 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1759, d) } } else if yyct1759 == codecSelferValueTypeArray1234 { yyl1759 := r.ReadArrayStart() if yyl1759 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1759, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1760Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1760Slc var yyhl1760 bool = l >= 0 for yyj1760 := 0; ; yyj1760++ { if yyhl1760 { if yyj1760 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1760Slc = r.DecodeBytes(yys1760Slc, true, true) yys1760 := string(yys1760Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1760 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys1760) } // end switch yys1760 } // end for yyj1760 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationControllerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1763 int var yyb1763 bool var yyhl1763 bool = l >= 0 yyj1763++ if yyhl1763 { yyb1763 = yyj1763 > l } else { yyb1763 = r.CheckBreak() } if yyb1763 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1763++ if yyhl1763 { yyb1763 = yyj1763 > l } else { yyb1763 = r.CheckBreak() } if yyb1763 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } for { yyj1763++ if yyhl1763 { yyb1763 = yyj1763 > l } else { yyb1763 = r.CheckBreak() } if yyb1763 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1763-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1766 := z.EncBinary() _ = yym1766 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1767 := !z.EncBinary() yy2arr1767 := z.EncBasicHandle().StructToArray var yyq1767 [5]bool _, _, _ = yysep1767, yyq1767, yy2arr1767 const yyr1767 bool = false yyq1767[0] = x.Kind != "" yyq1767[1] = x.APIVersion != "" yyq1767[2] = true yyq1767[3] = true yyq1767[4] = true var yynn1767 int if yyr1767 || yy2arr1767 { r.EncodeArrayStart(5) } else { yynn1767 = 0 for _, b := range yyq1767 { if b { yynn1767++ } } r.EncodeMapStart(yynn1767) yynn1767 = 0 } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[0] { yym1769 := z.EncBinary() _ = yym1769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1767[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1770 := z.EncBinary() _ = yym1770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[1] { yym1772 := z.EncBinary() _ = yym1772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1767[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1773 := z.EncBinary() _ = yym1773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[2] { yy1775 := &x.ObjectMeta yy1775.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1767[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1776 := &x.ObjectMeta yy1776.CodecEncodeSelf(e) } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[3] { yy1778 := &x.Spec yy1778.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1767[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1779 := &x.Spec yy1779.CodecEncodeSelf(e) } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1767[4] { yy1781 := &x.Status yy1781.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1767[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1782 := &x.Status yy1782.CodecEncodeSelf(e) } } if yyr1767 || yy2arr1767 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationController) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1783 := z.DecBinary() _ = yym1783 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1784 := r.ContainerType() if yyct1784 == codecSelferValueTypeMap1234 { yyl1784 := r.ReadMapStart() if yyl1784 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1784, d) } } else if yyct1784 == codecSelferValueTypeArray1234 { yyl1784 := r.ReadArrayStart() if yyl1784 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1784, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationController) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1785Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1785Slc var yyhl1785 bool = l >= 0 for yyj1785 := 0; ; yyj1785++ { if yyhl1785 { if yyj1785 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1785Slc = r.DecodeBytes(yys1785Slc, true, true) yys1785 := string(yys1785Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1785 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1788 := &x.ObjectMeta yyv1788.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv1789 := &x.Spec yyv1789.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv1790 := &x.Status yyv1790.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1785) } // end switch yys1785 } // end for yyj1785 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationController) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1791 int var yyb1791 bool var yyhl1791 bool = l >= 0 yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv1794 := &x.ObjectMeta yyv1794.CodecDecodeSelf(d) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv1795 := &x.Spec yyv1795.CodecDecodeSelf(d) } yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv1796 := &x.Status yyv1796.CodecDecodeSelf(d) } for { yyj1791++ if yyhl1791 { yyb1791 = yyj1791 > l } else { yyb1791 = r.CheckBreak() } if yyb1791 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1791-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1797 := z.EncBinary() _ = yym1797 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1798 := !z.EncBinary() yy2arr1798 := z.EncBasicHandle().StructToArray var yyq1798 [4]bool _, _, _ = yysep1798, yyq1798, yy2arr1798 const yyr1798 bool = false yyq1798[0] = x.Kind != "" yyq1798[1] = x.APIVersion != "" yyq1798[2] = true var yynn1798 int if yyr1798 || yy2arr1798 { r.EncodeArrayStart(4) } else { yynn1798 = 1 for _, b := range yyq1798 { if b { yynn1798++ } } r.EncodeMapStart(yynn1798) yynn1798 = 0 } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1798[0] { yym1800 := z.EncBinary() _ = yym1800 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1798[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1801 := z.EncBinary() _ = yym1801 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1798[1] { yym1803 := z.EncBinary() _ = yym1803 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1798[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1804 := z.EncBinary() _ = yym1804 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1798[2] { yy1806 := &x.ListMeta yym1807 := z.EncBinary() _ = yym1807 if false { } else if z.HasExtensions() && z.EncExt(yy1806) { } else { z.EncFallback(yy1806) } } else { r.EncodeNil() } } else { if yyq1798[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1808 := &x.ListMeta yym1809 := z.EncBinary() _ = yym1809 if false { } else if z.HasExtensions() && z.EncExt(yy1808) { } else { z.EncFallback(yy1808) } } } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1811 := z.EncBinary() _ = yym1811 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1812 := z.EncBinary() _ = yym1812 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr1798 || yy2arr1798 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ReplicationControllerList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1813 := z.DecBinary() _ = yym1813 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1814 := r.ContainerType() if yyct1814 == codecSelferValueTypeMap1234 { yyl1814 := r.ReadMapStart() if yyl1814 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1814, d) } } else if yyct1814 == codecSelferValueTypeArray1234 { yyl1814 := r.ReadArrayStart() if yyl1814 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1814, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1815Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1815Slc var yyhl1815 bool = l >= 0 for yyj1815 := 0; ; yyj1815++ { if yyhl1815 { if yyj1815 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1815Slc = r.DecodeBytes(yys1815Slc, true, true) yys1815 := string(yys1815Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1815 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1818 := &x.ListMeta yym1819 := z.DecBinary() _ = yym1819 if false { } else if z.HasExtensions() && z.DecExt(yyv1818) { } else { z.DecFallback(yyv1818, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1820 := &x.Items yym1821 := z.DecBinary() _ = yym1821 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv1820), d) } } default: z.DecStructFieldNotFound(-1, yys1815) } // end switch yys1815 } // end for yyj1815 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ReplicationControllerList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1822 int var yyb1822 bool var yyhl1822 bool = l >= 0 yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1825 := &x.ListMeta yym1826 := z.DecBinary() _ = yym1826 if false { } else if z.HasExtensions() && z.DecExt(yyv1825) { } else { z.DecFallback(yyv1825, false) } } yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1827 := &x.Items yym1828 := z.DecBinary() _ = yym1828 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv1827), d) } } for { yyj1822++ if yyhl1822 { yyb1822 = yyj1822 > l } else { yyb1822 = r.CheckBreak() } if yyb1822 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1822-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1829 := z.EncBinary() _ = yym1829 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1830 := !z.EncBinary() yy2arr1830 := z.EncBasicHandle().StructToArray var yyq1830 [4]bool _, _, _ = yysep1830, yyq1830, yy2arr1830 const yyr1830 bool = false yyq1830[0] = x.Kind != "" yyq1830[1] = x.APIVersion != "" yyq1830[2] = true var yynn1830 int if yyr1830 || yy2arr1830 { r.EncodeArrayStart(4) } else { yynn1830 = 1 for _, b := range yyq1830 { if b { yynn1830++ } } r.EncodeMapStart(yynn1830) yynn1830 = 0 } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1830[0] { yym1832 := z.EncBinary() _ = yym1832 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1830[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1833 := z.EncBinary() _ = yym1833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1830[1] { yym1835 := z.EncBinary() _ = yym1835 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1830[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1836 := z.EncBinary() _ = yym1836 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1830[2] { yy1838 := &x.ListMeta yym1839 := z.EncBinary() _ = yym1839 if false { } else if z.HasExtensions() && z.EncExt(yy1838) { } else { z.EncFallback(yy1838) } } else { r.EncodeNil() } } else { if yyq1830[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1840 := &x.ListMeta yym1841 := z.EncBinary() _ = yym1841 if false { } else if z.HasExtensions() && z.EncExt(yy1840) { } else { z.EncFallback(yy1840) } } } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1843 := z.EncBinary() _ = yym1843 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1844 := z.EncBinary() _ = yym1844 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr1830 || yy2arr1830 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1845 := z.DecBinary() _ = yym1845 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1846 := r.ContainerType() if yyct1846 == codecSelferValueTypeMap1234 { yyl1846 := r.ReadMapStart() if yyl1846 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1846, d) } } else if yyct1846 == codecSelferValueTypeArray1234 { yyl1846 := r.ReadArrayStart() if yyl1846 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1846, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1847Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1847Slc var yyhl1847 bool = l >= 0 for yyj1847 := 0; ; yyj1847++ { if yyhl1847 { if yyj1847 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1847Slc = r.DecodeBytes(yys1847Slc, true, true) yys1847 := string(yys1847Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1847 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1850 := &x.ListMeta yym1851 := z.DecBinary() _ = yym1851 if false { } else if z.HasExtensions() && z.DecExt(yyv1850) { } else { z.DecFallback(yyv1850, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1852 := &x.Items yym1853 := z.DecBinary() _ = yym1853 if false { } else { h.decSliceService((*[]Service)(yyv1852), d) } } default: z.DecStructFieldNotFound(-1, yys1847) } // end switch yys1847 } // end for yyj1847 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1854 int var yyb1854 bool var yyhl1854 bool = l >= 0 yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1857 := &x.ListMeta yym1858 := z.DecBinary() _ = yym1858 if false { } else if z.HasExtensions() && z.DecExt(yyv1857) { } else { z.DecFallback(yyv1857, false) } } yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1859 := &x.Items yym1860 := z.DecBinary() _ = yym1860 if false { } else { h.decSliceService((*[]Service)(yyv1859), d) } } for { yyj1854++ if yyhl1854 { yyb1854 = yyj1854 > l } else { yyb1854 = r.CheckBreak() } if yyb1854 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1854-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1861 := z.EncBinary() _ = yym1861 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ServiceAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1862 := z.DecBinary() _ = yym1862 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x ServiceType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1863 := z.EncBinary() _ = yym1863 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ServiceType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1864 := z.DecBinary() _ = yym1864 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *ServiceStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1865 := z.EncBinary() _ = yym1865 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1866 := !z.EncBinary() yy2arr1866 := z.EncBasicHandle().StructToArray var yyq1866 [1]bool _, _, _ = yysep1866, yyq1866, yy2arr1866 const yyr1866 bool = false yyq1866[0] = true var yynn1866 int if yyr1866 || yy2arr1866 { r.EncodeArrayStart(1) } else { yynn1866 = 0 for _, b := range yyq1866 { if b { yynn1866++ } } r.EncodeMapStart(yynn1866) yynn1866 = 0 } if yyr1866 || yy2arr1866 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1866[0] { yy1868 := &x.LoadBalancer yy1868.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1866[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1869 := &x.LoadBalancer yy1869.CodecEncodeSelf(e) } } if yyr1866 || yy2arr1866 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1870 := z.DecBinary() _ = yym1870 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1871 := r.ContainerType() if yyct1871 == codecSelferValueTypeMap1234 { yyl1871 := r.ReadMapStart() if yyl1871 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1871, d) } } else if yyct1871 == codecSelferValueTypeArray1234 { yyl1871 := r.ReadArrayStart() if yyl1871 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1871, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1872Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1872Slc var yyhl1872 bool = l >= 0 for yyj1872 := 0; ; yyj1872++ { if yyhl1872 { if yyj1872 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1872Slc = r.DecodeBytes(yys1872Slc, true, true) yys1872 := string(yys1872Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1872 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv1873 := &x.LoadBalancer yyv1873.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1872) } // end switch yys1872 } // end for yyj1872 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1874 int var yyb1874 bool var yyhl1874 bool = l >= 0 yyj1874++ if yyhl1874 { yyb1874 = yyj1874 > l } else { yyb1874 = r.CheckBreak() } if yyb1874 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv1875 := &x.LoadBalancer yyv1875.CodecDecodeSelf(d) } for { yyj1874++ if yyhl1874 { yyb1874 = yyj1874 > l } else { yyb1874 = r.CheckBreak() } if yyb1874 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1874-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1876 := z.EncBinary() _ = yym1876 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1877 := !z.EncBinary() yy2arr1877 := z.EncBasicHandle().StructToArray var yyq1877 [1]bool _, _, _ = yysep1877, yyq1877, yy2arr1877 const yyr1877 bool = false yyq1877[0] = len(x.Ingress) != 0 var yynn1877 int if yyr1877 || yy2arr1877 { r.EncodeArrayStart(1) } else { yynn1877 = 0 for _, b := range yyq1877 { if b { yynn1877++ } } r.EncodeMapStart(yynn1877) yynn1877 = 0 } if yyr1877 || yy2arr1877 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1877[0] { if x.Ingress == nil { r.EncodeNil() } else { yym1879 := z.EncBinary() _ = yym1879 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq1877[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym1880 := z.EncBinary() _ = yym1880 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr1877 || yy2arr1877 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LoadBalancerStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1881 := z.DecBinary() _ = yym1881 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1882 := r.ContainerType() if yyct1882 == codecSelferValueTypeMap1234 { yyl1882 := r.ReadMapStart() if yyl1882 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1882, d) } } else if yyct1882 == codecSelferValueTypeArray1234 { yyl1882 := r.ReadArrayStart() if yyl1882 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1882, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LoadBalancerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1883Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1883Slc var yyhl1883 bool = l >= 0 for yyj1883 := 0; ; yyj1883++ { if yyhl1883 { if yyj1883 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1883Slc = r.DecodeBytes(yys1883Slc, true, true) yys1883 := string(yys1883Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1883 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv1884 := &x.Ingress yym1885 := z.DecBinary() _ = yym1885 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1884), d) } } default: z.DecStructFieldNotFound(-1, yys1883) } // end switch yys1883 } // end for yyj1883 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LoadBalancerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1886 int var yyb1886 bool var yyhl1886 bool = l >= 0 yyj1886++ if yyhl1886 { yyb1886 = yyj1886 > l } else { yyb1886 = r.CheckBreak() } if yyb1886 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv1887 := &x.Ingress yym1888 := z.DecBinary() _ = yym1888 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1887), d) } } for { yyj1886++ if yyhl1886 { yyb1886 = yyj1886 > l } else { yyb1886 = r.CheckBreak() } if yyb1886 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1886-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *LoadBalancerIngress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1889 := z.EncBinary() _ = yym1889 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1890 := !z.EncBinary() yy2arr1890 := z.EncBasicHandle().StructToArray var yyq1890 [2]bool _, _, _ = yysep1890, yyq1890, yy2arr1890 const yyr1890 bool = false yyq1890[0] = x.IP != "" yyq1890[1] = x.Hostname != "" var yynn1890 int if yyr1890 || yy2arr1890 { r.EncodeArrayStart(2) } else { yynn1890 = 0 for _, b := range yyq1890 { if b { yynn1890++ } } r.EncodeMapStart(yynn1890) yynn1890 = 0 } if yyr1890 || yy2arr1890 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1890[0] { yym1892 := z.EncBinary() _ = yym1892 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1890[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1893 := z.EncBinary() _ = yym1893 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr1890 || yy2arr1890 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1890[1] { yym1895 := z.EncBinary() _ = yym1895 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1890[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1896 := z.EncBinary() _ = yym1896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr1890 || yy2arr1890 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *LoadBalancerIngress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1897 := z.DecBinary() _ = yym1897 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1898 := r.ContainerType() if yyct1898 == codecSelferValueTypeMap1234 { yyl1898 := r.ReadMapStart() if yyl1898 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1898, d) } } else if yyct1898 == codecSelferValueTypeArray1234 { yyl1898 := r.ReadArrayStart() if yyl1898 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1898, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *LoadBalancerIngress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1899Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1899Slc var yyhl1899 bool = l >= 0 for yyj1899 := 0; ; yyj1899++ { if yyhl1899 { if yyj1899 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1899Slc = r.DecodeBytes(yys1899Slc, true, true) yys1899 := string(yys1899Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1899 { case "ip": if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } case "hostname": if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1899) } // end switch yys1899 } // end for yyj1899 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *LoadBalancerIngress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1902 int var yyb1902 bool var yyhl1902 bool = l >= 0 yyj1902++ if yyhl1902 { yyb1902 = yyj1902 > l } else { yyb1902 = r.CheckBreak() } if yyb1902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj1902++ if yyhl1902 { yyb1902 = yyj1902 > l } else { yyb1902 = r.CheckBreak() } if yyb1902 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj1902++ if yyhl1902 { yyb1902 = yyj1902 > l } else { yyb1902 = r.CheckBreak() } if yyb1902 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1902-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1905 := z.EncBinary() _ = yym1905 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1906 := !z.EncBinary() yy2arr1906 := z.EncBasicHandle().StructToArray var yyq1906 [7]bool _, _, _ = yysep1906, yyq1906, yy2arr1906 const yyr1906 bool = false yyq1906[0] = x.Type != "" yyq1906[3] = x.ClusterIP != "" yyq1906[4] = len(x.ExternalIPs) != 0 yyq1906[5] = x.LoadBalancerIP != "" yyq1906[6] = x.SessionAffinity != "" var yynn1906 int if yyr1906 || yy2arr1906 { r.EncodeArrayStart(7) } else { yynn1906 = 2 for _, b := range yyq1906 { if b { yynn1906++ } } r.EncodeMapStart(yynn1906) yynn1906 = 0 } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym1909 := z.EncBinary() _ = yym1909 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1910 := z.EncBinary() _ = yym1910 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym1912 := z.EncBinary() _ = yym1912 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { yym1913 := z.EncBinary() _ = yym1913 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[3] { yym1915 := z.EncBinary() _ = yym1915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1916 := z.EncBinary() _ = yym1916 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[4] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym1918 := z.EncBinary() _ = yym1918 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq1906[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym1919 := z.EncBinary() _ = yym1919 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[5] { yym1921 := z.EncBinary() _ = yym1921 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1922 := z.EncBinary() _ = yym1922 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1906[6] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1906[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr1906 || yy2arr1906 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1924 := z.DecBinary() _ = yym1924 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1925 := r.ContainerType() if yyct1925 == codecSelferValueTypeMap1234 { yyl1925 := r.ReadMapStart() if yyl1925 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1925, d) } } else if yyct1925 == codecSelferValueTypeArray1234 { yyl1925 := r.ReadArrayStart() if yyl1925 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1925, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1926Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1926Slc var yyhl1926 bool = l >= 0 for yyj1926 := 0; ; yyj1926++ { if yyhl1926 { if yyj1926 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1926Slc = r.DecodeBytes(yys1926Slc, true, true) yys1926 := string(yys1926Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1926 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1928 := &x.Ports yym1929 := z.DecBinary() _ = yym1929 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv1928), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1930 := &x.Selector yym1931 := z.DecBinary() _ = yym1931 if false { } else { z.F.DecMapStringStringX(yyv1930, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv1933 := &x.ExternalIPs yym1934 := z.DecBinary() _ = yym1934 if false { } else { z.F.DecSliceStringX(yyv1933, false, d) } } case "loadBalancerIP": if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } case "sessionAffinity": if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1926) } // end switch yys1926 } // end for yyj1926 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1937 int var yyb1937 bool var yyhl1937 bool = l >= 0 yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1939 := &x.Ports yym1940 := z.DecBinary() _ = yym1940 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv1939), d) } } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv1941 := &x.Selector yym1942 := z.DecBinary() _ = yym1942 if false { } else { z.F.DecMapStringStringX(yyv1941, false, d) } } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv1944 := &x.ExternalIPs yym1945 := z.DecBinary() _ = yym1945 if false { } else { z.F.DecSliceStringX(yyv1944, false, d) } } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } for { yyj1937++ if yyhl1937 { yyb1937 = yyj1937 > l } else { yyb1937 = r.CheckBreak() } if yyb1937 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1937-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1948 := z.EncBinary() _ = yym1948 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1949 := !z.EncBinary() yy2arr1949 := z.EncBasicHandle().StructToArray var yyq1949 [5]bool _, _, _ = yysep1949, yyq1949, yy2arr1949 const yyr1949 bool = false var yynn1949 int if yyr1949 || yy2arr1949 { r.EncodeArrayStart(5) } else { yynn1949 = 5 for _, b := range yyq1949 { if b { yynn1949++ } } r.EncodeMapStart(yynn1949) yynn1949 = 0 } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1951 := z.EncBinary() _ = yym1951 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1952 := z.EncBinary() _ = yym1952 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1955 := z.EncBinary() _ = yym1955 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1956 := z.EncBinary() _ = yym1956 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1958 := &x.TargetPort yym1959 := z.EncBinary() _ = yym1959 if false { } else if z.HasExtensions() && z.EncExt(yy1958) { } else if !yym1959 && z.IsJSONHandle() { z.EncJSONMarshal(yy1958) } else { z.EncFallback(yy1958) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1960 := &x.TargetPort yym1961 := z.EncBinary() _ = yym1961 if false { } else if z.HasExtensions() && z.EncExt(yy1960) { } else if !yym1961 && z.IsJSONHandle() { z.EncJSONMarshal(yy1960) } else { z.EncFallback(yy1960) } } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1963 := z.EncBinary() _ = yym1963 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1964 := z.EncBinary() _ = yym1964 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr1949 || yy2arr1949 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServicePort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1965 := z.DecBinary() _ = yym1965 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1966 := r.ContainerType() if yyct1966 == codecSelferValueTypeMap1234 { yyl1966 := r.ReadMapStart() if yyl1966 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1966, d) } } else if yyct1966 == codecSelferValueTypeArray1234 { yyl1966 := r.ReadArrayStart() if yyl1966 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1966, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServicePort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1967Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1967Slc var yyhl1967 bool = l >= 0 for yyj1967 := 0; ; yyj1967++ { if yyhl1967 { if yyj1967 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1967Slc = r.DecodeBytes(yys1967Slc, true, true) yys1967 := string(yys1967Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1967 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } case "targetPort": if r.TryDecodeAsNil() { x.TargetPort = pkg5_intstr.IntOrString{} } else { yyv1971 := &x.TargetPort yym1972 := z.DecBinary() _ = yym1972 if false { } else if z.HasExtensions() && z.DecExt(yyv1971) { } else if !yym1972 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1971) } else { z.DecFallback(yyv1971, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys1967) } // end switch yys1967 } // end for yyj1967 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServicePort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1974 int var yyb1974 bool var yyhl1974 bool = l >= 0 yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg5_intstr.IntOrString{} } else { yyv1978 := &x.TargetPort yym1979 := z.DecBinary() _ = yym1979 if false { } else if z.HasExtensions() && z.DecExt(yyv1978) { } else if !yym1979 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1978) } else { z.DecFallback(yyv1978, false) } } yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj1974++ if yyhl1974 { yyb1974 = yyj1974 > l } else { yyb1974 = r.CheckBreak() } if yyb1974 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1974-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1981 := z.EncBinary() _ = yym1981 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1982 := !z.EncBinary() yy2arr1982 := z.EncBasicHandle().StructToArray var yyq1982 [5]bool _, _, _ = yysep1982, yyq1982, yy2arr1982 const yyr1982 bool = false yyq1982[0] = x.Kind != "" yyq1982[1] = x.APIVersion != "" yyq1982[2] = true yyq1982[3] = true yyq1982[4] = true var yynn1982 int if yyr1982 || yy2arr1982 { r.EncodeArrayStart(5) } else { yynn1982 = 0 for _, b := range yyq1982 { if b { yynn1982++ } } r.EncodeMapStart(yynn1982) yynn1982 = 0 } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[0] { yym1984 := z.EncBinary() _ = yym1984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1982[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1985 := z.EncBinary() _ = yym1985 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[1] { yym1987 := z.EncBinary() _ = yym1987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1982[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1988 := z.EncBinary() _ = yym1988 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[2] { yy1990 := &x.ObjectMeta yy1990.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1982[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1991 := &x.ObjectMeta yy1991.CodecEncodeSelf(e) } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[3] { yy1993 := &x.Spec yy1993.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1982[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1994 := &x.Spec yy1994.CodecEncodeSelf(e) } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1982[4] { yy1996 := &x.Status yy1996.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1982[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1997 := &x.Status yy1997.CodecEncodeSelf(e) } } if yyr1982 || yy2arr1982 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Service) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1998 := z.DecBinary() _ = yym1998 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1999 := r.ContainerType() if yyct1999 == codecSelferValueTypeMap1234 { yyl1999 := r.ReadMapStart() if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1999, d) } } else if yyct1999 == codecSelferValueTypeArray1234 { yyl1999 := r.ReadArrayStart() if yyl1999 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1999, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Service) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2000Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2000Slc var yyhl2000 bool = l >= 0 for yyj2000 := 0; ; yyj2000++ { if yyhl2000 { if yyj2000 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2000Slc = r.DecodeBytes(yys2000Slc, true, true) yys2000 := string(yys2000Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2000 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2003 := &x.ObjectMeta yyv2003.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2004 := &x.Spec yyv2004.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2005 := &x.Status yyv2005.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2000) } // end switch yys2000 } // end for yyj2000 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Service) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2006 int var yyb2006 bool var yyhl2006 bool = l >= 0 yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2009 := &x.ObjectMeta yyv2009.CodecDecodeSelf(d) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2010 := &x.Spec yyv2010.CodecDecodeSelf(d) } yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2011 := &x.Status yyv2011.CodecDecodeSelf(d) } for { yyj2006++ if yyhl2006 { yyb2006 = yyj2006 > l } else { yyb2006 = r.CheckBreak() } if yyb2006 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2006-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceAccount) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2012 := z.EncBinary() _ = yym2012 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2013 := !z.EncBinary() yy2arr2013 := z.EncBasicHandle().StructToArray var yyq2013 [5]bool _, _, _ = yysep2013, yyq2013, yy2arr2013 const yyr2013 bool = false yyq2013[0] = x.Kind != "" yyq2013[1] = x.APIVersion != "" yyq2013[2] = true yyq2013[4] = len(x.ImagePullSecrets) != 0 var yynn2013 int if yyr2013 || yy2arr2013 { r.EncodeArrayStart(5) } else { yynn2013 = 1 for _, b := range yyq2013 { if b { yynn2013++ } } r.EncodeMapStart(yynn2013) yynn2013 = 0 } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[0] { yym2015 := z.EncBinary() _ = yym2015 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2013[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2016 := z.EncBinary() _ = yym2016 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[1] { yym2018 := z.EncBinary() _ = yym2018 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2013[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2019 := z.EncBinary() _ = yym2019 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[2] { yy2021 := &x.ObjectMeta yy2021.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2013[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2022 := &x.ObjectMeta yy2022.CodecEncodeSelf(e) } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2024 := z.EncBinary() _ = yym2024 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Secrets == nil { r.EncodeNil() } else { yym2025 := z.EncBinary() _ = yym2025 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2013[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2027 := z.EncBinary() _ = yym2027 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2013[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2028 := z.EncBinary() _ = yym2028 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2013 || yy2arr2013 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceAccount) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2029 := z.DecBinary() _ = yym2029 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2030 := r.ContainerType() if yyct2030 == codecSelferValueTypeMap1234 { yyl2030 := r.ReadMapStart() if yyl2030 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2030, d) } } else if yyct2030 == codecSelferValueTypeArray1234 { yyl2030 := r.ReadArrayStart() if yyl2030 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2030, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2031Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2031Slc var yyhl2031 bool = l >= 0 for yyj2031 := 0; ; yyj2031++ { if yyhl2031 { if yyj2031 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2031Slc = r.DecodeBytes(yys2031Slc, true, true) yys2031 := string(yys2031Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2031 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2034 := &x.ObjectMeta yyv2034.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2035 := &x.Secrets yym2036 := z.DecBinary() _ = yym2036 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2035), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2037 := &x.ImagePullSecrets yym2038 := z.DecBinary() _ = yym2038 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2037), d) } } default: z.DecStructFieldNotFound(-1, yys2031) } // end switch yys2031 } // end for yyj2031 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceAccount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2039 int var yyb2039 bool var yyhl2039 bool = l >= 0 yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2042 := &x.ObjectMeta yyv2042.CodecDecodeSelf(d) } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2043 := &x.Secrets yym2044 := z.DecBinary() _ = yym2044 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2043), d) } } yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2045 := &x.ImagePullSecrets yym2046 := z.DecBinary() _ = yym2046 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2045), d) } } for { yyj2039++ if yyhl2039 { yyb2039 = yyj2039 > l } else { yyb2039 = r.CheckBreak() } if yyb2039 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2039-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceAccountList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2047 := z.EncBinary() _ = yym2047 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2048 := !z.EncBinary() yy2arr2048 := z.EncBasicHandle().StructToArray var yyq2048 [4]bool _, _, _ = yysep2048, yyq2048, yy2arr2048 const yyr2048 bool = false yyq2048[0] = x.Kind != "" yyq2048[1] = x.APIVersion != "" yyq2048[2] = true var yynn2048 int if yyr2048 || yy2arr2048 { r.EncodeArrayStart(4) } else { yynn2048 = 1 for _, b := range yyq2048 { if b { yynn2048++ } } r.EncodeMapStart(yynn2048) yynn2048 = 0 } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2048[0] { yym2050 := z.EncBinary() _ = yym2050 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2048[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2051 := z.EncBinary() _ = yym2051 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2048[1] { yym2053 := z.EncBinary() _ = yym2053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2048[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2054 := z.EncBinary() _ = yym2054 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2048[2] { yy2056 := &x.ListMeta yym2057 := z.EncBinary() _ = yym2057 if false { } else if z.HasExtensions() && z.EncExt(yy2056) { } else { z.EncFallback(yy2056) } } else { r.EncodeNil() } } else { if yyq2048[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2058 := &x.ListMeta yym2059 := z.EncBinary() _ = yym2059 if false { } else if z.HasExtensions() && z.EncExt(yy2058) { } else { z.EncFallback(yy2058) } } } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2061 := z.EncBinary() _ = yym2061 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2062 := z.EncBinary() _ = yym2062 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2048 || yy2arr2048 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceAccountList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2063 := z.DecBinary() _ = yym2063 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2064 := r.ContainerType() if yyct2064 == codecSelferValueTypeMap1234 { yyl2064 := r.ReadMapStart() if yyl2064 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2064, d) } } else if yyct2064 == codecSelferValueTypeArray1234 { yyl2064 := r.ReadArrayStart() if yyl2064 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2064, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2065Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2065Slc var yyhl2065 bool = l >= 0 for yyj2065 := 0; ; yyj2065++ { if yyhl2065 { if yyj2065 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2065Slc = r.DecodeBytes(yys2065Slc, true, true) yys2065 := string(yys2065Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2065 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2068 := &x.ListMeta yym2069 := z.DecBinary() _ = yym2069 if false { } else if z.HasExtensions() && z.DecExt(yyv2068) { } else { z.DecFallback(yyv2068, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2070 := &x.Items yym2071 := z.DecBinary() _ = yym2071 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2070), d) } } default: z.DecStructFieldNotFound(-1, yys2065) } // end switch yys2065 } // end for yyj2065 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceAccountList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2072 int var yyb2072 bool var yyhl2072 bool = l >= 0 yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2075 := &x.ListMeta yym2076 := z.DecBinary() _ = yym2076 if false { } else if z.HasExtensions() && z.DecExt(yyv2075) { } else { z.DecFallback(yyv2075, false) } } yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2077 := &x.Items yym2078 := z.DecBinary() _ = yym2078 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2077), d) } } for { yyj2072++ if yyhl2072 { yyb2072 = yyj2072 > l } else { yyb2072 = r.CheckBreak() } if yyb2072 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2072-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Endpoints) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2079 := z.EncBinary() _ = yym2079 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2080 := !z.EncBinary() yy2arr2080 := z.EncBasicHandle().StructToArray var yyq2080 [4]bool _, _, _ = yysep2080, yyq2080, yy2arr2080 const yyr2080 bool = false yyq2080[0] = x.Kind != "" yyq2080[1] = x.APIVersion != "" yyq2080[2] = true var yynn2080 int if yyr2080 || yy2arr2080 { r.EncodeArrayStart(4) } else { yynn2080 = 1 for _, b := range yyq2080 { if b { yynn2080++ } } r.EncodeMapStart(yynn2080) yynn2080 = 0 } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2080[0] { yym2082 := z.EncBinary() _ = yym2082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2080[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2083 := z.EncBinary() _ = yym2083 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2080[1] { yym2085 := z.EncBinary() _ = yym2085 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2080[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2086 := z.EncBinary() _ = yym2086 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2080[2] { yy2088 := &x.ObjectMeta yy2088.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2080[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2089 := &x.ObjectMeta yy2089.CodecEncodeSelf(e) } } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2091 := z.EncBinary() _ = yym2091 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Subsets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Subsets == nil { r.EncodeNil() } else { yym2092 := z.EncBinary() _ = yym2092 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2080 || yy2arr2080 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Endpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2093 := z.DecBinary() _ = yym2093 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2094 := r.ContainerType() if yyct2094 == codecSelferValueTypeMap1234 { yyl2094 := r.ReadMapStart() if yyl2094 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2094, d) } } else if yyct2094 == codecSelferValueTypeArray1234 { yyl2094 := r.ReadArrayStart() if yyl2094 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2094, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2095Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2095Slc var yyhl2095 bool = l >= 0 for yyj2095 := 0; ; yyj2095++ { if yyhl2095 { if yyj2095 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2095Slc = r.DecodeBytes(yys2095Slc, true, true) yys2095 := string(yys2095Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2095 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2098 := &x.ObjectMeta yyv2098.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2099 := &x.Subsets yym2100 := z.DecBinary() _ = yym2100 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2099), d) } } default: z.DecStructFieldNotFound(-1, yys2095) } // end switch yys2095 } // end for yyj2095 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Endpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2101 int var yyb2101 bool var yyhl2101 bool = l >= 0 yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2104 := &x.ObjectMeta yyv2104.CodecDecodeSelf(d) } yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2105 := &x.Subsets yym2106 := z.DecBinary() _ = yym2106 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2105), d) } } for { yyj2101++ if yyhl2101 { yyb2101 = yyj2101 > l } else { yyb2101 = r.CheckBreak() } if yyb2101 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2101-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2107 := z.EncBinary() _ = yym2107 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2108 := !z.EncBinary() yy2arr2108 := z.EncBasicHandle().StructToArray var yyq2108 [3]bool _, _, _ = yysep2108, yyq2108, yy2arr2108 const yyr2108 bool = false var yynn2108 int if yyr2108 || yy2arr2108 { r.EncodeArrayStart(3) } else { yynn2108 = 3 for _, b := range yyq2108 { if b { yynn2108++ } } r.EncodeMapStart(yynn2108) yynn2108 = 0 } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2110 := z.EncBinary() _ = yym2110 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2111 := z.EncBinary() _ = yym2111 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2113 := z.EncBinary() _ = yym2113 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("NotReadyAddresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2114 := z.EncBinary() _ = yym2114 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2116 := z.EncBinary() _ = yym2116 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym2117 := z.EncBinary() _ = yym2117 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2108 || yy2arr2108 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointSubset) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2118 := z.DecBinary() _ = yym2118 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2119 := r.ContainerType() if yyct2119 == codecSelferValueTypeMap1234 { yyl2119 := r.ReadMapStart() if yyl2119 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2119, d) } } else if yyct2119 == codecSelferValueTypeArray1234 { yyl2119 := r.ReadArrayStart() if yyl2119 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2119, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2120Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2120Slc var yyhl2120 bool = l >= 0 for yyj2120 := 0; ; yyj2120++ { if yyhl2120 { if yyj2120 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2120Slc = r.DecodeBytes(yys2120Slc, true, true) yys2120 := string(yys2120Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2120 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2121 := &x.Addresses yym2122 := z.DecBinary() _ = yym2122 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2121), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2123 := &x.NotReadyAddresses yym2124 := z.DecBinary() _ = yym2124 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2123), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2125 := &x.Ports yym2126 := z.DecBinary() _ = yym2126 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2125), d) } } default: z.DecStructFieldNotFound(-1, yys2120) } // end switch yys2120 } // end for yyj2120 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointSubset) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2127 int var yyb2127 bool var yyhl2127 bool = l >= 0 yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2128 := &x.Addresses yym2129 := z.DecBinary() _ = yym2129 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2128), d) } } yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2130 := &x.NotReadyAddresses yym2131 := z.DecBinary() _ = yym2131 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2130), d) } } yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2132 := &x.Ports yym2133 := z.DecBinary() _ = yym2133 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2132), d) } } for { yyj2127++ if yyhl2127 { yyb2127 = yyj2127 > l } else { yyb2127 = r.CheckBreak() } if yyb2127 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2127-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2134 := z.EncBinary() _ = yym2134 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2135 := !z.EncBinary() yy2arr2135 := z.EncBasicHandle().StructToArray var yyq2135 [2]bool _, _, _ = yysep2135, yyq2135, yy2arr2135 const yyr2135 bool = false var yynn2135 int if yyr2135 || yy2arr2135 { r.EncodeArrayStart(2) } else { yynn2135 = 2 for _, b := range yyq2135 { if b { yynn2135++ } } r.EncodeMapStart(yynn2135) yynn2135 = 0 } if yyr2135 || yy2arr2135 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2137 := z.EncBinary() _ = yym2137 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("IP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2138 := z.EncBinary() _ = yym2138 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2135 || yy2arr2135 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetRef == nil { r.EncodeNil() } else { x.TargetRef.CodecEncodeSelf(e) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TargetRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TargetRef == nil { r.EncodeNil() } else { x.TargetRef.CodecEncodeSelf(e) } } if yyr2135 || yy2arr2135 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2140 := z.DecBinary() _ = yym2140 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2141 := r.ContainerType() if yyct2141 == codecSelferValueTypeMap1234 { yyl2141 := r.ReadMapStart() if yyl2141 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2141, d) } } else if yyct2141 == codecSelferValueTypeArray1234 { yyl2141 := r.ReadArrayStart() if yyl2141 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2141, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2142Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2142Slc var yyhl2142 bool = l >= 0 for yyj2142 := 0; ; yyj2142++ { if yyhl2142 { if yyj2142 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2142Slc = r.DecodeBytes(yys2142Slc, true, true) yys2142 := string(yys2142Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2142 { case "IP": if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } case "TargetRef": if r.TryDecodeAsNil() { if x.TargetRef != nil { x.TargetRef = nil } } else { if x.TargetRef == nil { x.TargetRef = new(ObjectReference) } x.TargetRef.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2142) } // end switch yys2142 } // end for yyj2142 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2145 int var yyb2145 bool var yyhl2145 bool = l >= 0 yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TargetRef != nil { x.TargetRef = nil } } else { if x.TargetRef == nil { x.TargetRef = new(ObjectReference) } x.TargetRef.CodecDecodeSelf(d) } for { yyj2145++ if yyhl2145 { yyb2145 = yyj2145 > l } else { yyb2145 = r.CheckBreak() } if yyb2145 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2145-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointPort) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2148 := z.EncBinary() _ = yym2148 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2149 := !z.EncBinary() yy2arr2149 := z.EncBasicHandle().StructToArray var yyq2149 [3]bool _, _, _ = yysep2149, yyq2149, yy2arr2149 const yyr2149 bool = false var yynn2149 int if yyr2149 || yy2arr2149 { r.EncodeArrayStart(3) } else { yynn2149 = 3 for _, b := range yyq2149 { if b { yynn2149++ } } r.EncodeMapStart(yynn2149) yynn2149 = 0 } if yyr2149 || yy2arr2149 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2151 := z.EncBinary() _ = yym2151 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2152 := z.EncBinary() _ = yym2152 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2149 || yy2arr2149 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2154 := z.EncBinary() _ = yym2154 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2155 := z.EncBinary() _ = yym2155 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2149 || yy2arr2149 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Protocol.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } if yyr2149 || yy2arr2149 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointPort) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2157 := z.DecBinary() _ = yym2157 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2158 := r.ContainerType() if yyct2158 == codecSelferValueTypeMap1234 { yyl2158 := r.ReadMapStart() if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2158, d) } } else if yyct2158 == codecSelferValueTypeArray1234 { yyl2158 := r.ReadArrayStart() if yyl2158 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2158, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2159Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2159Slc var yyhl2159 bool = l >= 0 for yyj2159 := 0; ; yyj2159++ { if yyhl2159 { if yyj2159 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2159Slc = r.DecodeBytes(yys2159Slc, true, true) yys2159 := string(yys2159Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2159 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } case "Protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2159) } // end switch yys2159 } // end for yyj2159 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2163 int var yyb2163 bool var yyhl2163 bool = l >= 0 yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2163++ if yyhl2163 { yyb2163 = yyj2163 > l } else { yyb2163 = r.CheckBreak() } if yyb2163 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2163-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2167 := z.EncBinary() _ = yym2167 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2168 := !z.EncBinary() yy2arr2168 := z.EncBasicHandle().StructToArray var yyq2168 [4]bool _, _, _ = yysep2168, yyq2168, yy2arr2168 const yyr2168 bool = false yyq2168[0] = x.Kind != "" yyq2168[1] = x.APIVersion != "" yyq2168[2] = true var yynn2168 int if yyr2168 || yy2arr2168 { r.EncodeArrayStart(4) } else { yynn2168 = 1 for _, b := range yyq2168 { if b { yynn2168++ } } r.EncodeMapStart(yynn2168) yynn2168 = 0 } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2168[0] { yym2170 := z.EncBinary() _ = yym2170 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2168[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2171 := z.EncBinary() _ = yym2171 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2168[1] { yym2173 := z.EncBinary() _ = yym2173 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2168[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2174 := z.EncBinary() _ = yym2174 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2168[2] { yy2176 := &x.ListMeta yym2177 := z.EncBinary() _ = yym2177 if false { } else if z.HasExtensions() && z.EncExt(yy2176) { } else { z.EncFallback(yy2176) } } else { r.EncodeNil() } } else { if yyq2168[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2178 := &x.ListMeta yym2179 := z.EncBinary() _ = yym2179 if false { } else if z.HasExtensions() && z.EncExt(yy2178) { } else { z.EncFallback(yy2178) } } } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2181 := z.EncBinary() _ = yym2181 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2182 := z.EncBinary() _ = yym2182 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2168 || yy2arr2168 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *EndpointsList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2183 := z.DecBinary() _ = yym2183 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2184 := r.ContainerType() if yyct2184 == codecSelferValueTypeMap1234 { yyl2184 := r.ReadMapStart() if yyl2184 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2184, d) } } else if yyct2184 == codecSelferValueTypeArray1234 { yyl2184 := r.ReadArrayStart() if yyl2184 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2184, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointsList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2185Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2185Slc var yyhl2185 bool = l >= 0 for yyj2185 := 0; ; yyj2185++ { if yyhl2185 { if yyj2185 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2185Slc = r.DecodeBytes(yys2185Slc, true, true) yys2185 := string(yys2185Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2185 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2188 := &x.ListMeta yym2189 := z.DecBinary() _ = yym2189 if false { } else if z.HasExtensions() && z.DecExt(yyv2188) { } else { z.DecFallback(yyv2188, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2190 := &x.Items yym2191 := z.DecBinary() _ = yym2191 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2190), d) } } default: z.DecStructFieldNotFound(-1, yys2185) } // end switch yys2185 } // end for yyj2185 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *EndpointsList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2192 int var yyb2192 bool var yyhl2192 bool = l >= 0 yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2195 := &x.ListMeta yym2196 := z.DecBinary() _ = yym2196 if false { } else if z.HasExtensions() && z.DecExt(yyv2195) { } else { z.DecFallback(yyv2195, false) } } yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2197 := &x.Items yym2198 := z.DecBinary() _ = yym2198 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2197), d) } } for { yyj2192++ if yyhl2192 { yyb2192 = yyj2192 > l } else { yyb2192 = r.CheckBreak() } if yyb2192 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2192-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2199 := z.EncBinary() _ = yym2199 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2200 := !z.EncBinary() yy2arr2200 := z.EncBasicHandle().StructToArray var yyq2200 [4]bool _, _, _ = yysep2200, yyq2200, yy2arr2200 const yyr2200 bool = false yyq2200[0] = x.PodCIDR != "" yyq2200[1] = x.ExternalID != "" yyq2200[2] = x.ProviderID != "" yyq2200[3] = x.Unschedulable != false var yynn2200 int if yyr2200 || yy2arr2200 { r.EncodeArrayStart(4) } else { yynn2200 = 0 for _, b := range yyq2200 { if b { yynn2200++ } } r.EncodeMapStart(yynn2200) yynn2200 = 0 } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[0] { yym2202 := z.EncBinary() _ = yym2202 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2200[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2203 := z.EncBinary() _ = yym2203 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[1] { yym2205 := z.EncBinary() _ = yym2205 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2200[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2206 := z.EncBinary() _ = yym2206 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[2] { yym2208 := z.EncBinary() _ = yym2208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2200[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2209 := z.EncBinary() _ = yym2209 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2200[3] { yym2211 := z.EncBinary() _ = yym2211 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2200[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2212 := z.EncBinary() _ = yym2212 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2200 || yy2arr2200 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2213 := z.DecBinary() _ = yym2213 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2214 := r.ContainerType() if yyct2214 == codecSelferValueTypeMap1234 { yyl2214 := r.ReadMapStart() if yyl2214 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2214, d) } } else if yyct2214 == codecSelferValueTypeArray1234 { yyl2214 := r.ReadArrayStart() if yyl2214 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2214, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2215Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2215Slc var yyhl2215 bool = l >= 0 for yyj2215 := 0; ; yyj2215++ { if yyhl2215 { if yyj2215 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2215Slc = r.DecodeBytes(yys2215Slc, true, true) yys2215 := string(yys2215Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2215 { case "podCIDR": if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } case "externalID": if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } case "providerID": if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } case "unschedulable": if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys2215) } // end switch yys2215 } // end for yyj2215 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2220 int var yyb2220 bool var yyhl2220 bool = l >= 0 yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2220++ if yyhl2220 { yyb2220 = yyj2220 > l } else { yyb2220 = r.CheckBreak() } if yyb2220 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2220-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DaemonEndpoint) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2225 := z.EncBinary() _ = yym2225 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2226 := !z.EncBinary() yy2arr2226 := z.EncBasicHandle().StructToArray var yyq2226 [1]bool _, _, _ = yysep2226, yyq2226, yy2arr2226 const yyr2226 bool = false var yynn2226 int if yyr2226 || yy2arr2226 { r.EncodeArrayStart(1) } else { yynn2226 = 1 for _, b := range yyq2226 { if b { yynn2226++ } } r.EncodeMapStart(yynn2226) yynn2226 = 0 } if yyr2226 || yy2arr2226 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2228 := z.EncBinary() _ = yym2228 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2229 := z.EncBinary() _ = yym2229 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2226 || yy2arr2226 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DaemonEndpoint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2230 := z.DecBinary() _ = yym2230 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2231 := r.ContainerType() if yyct2231 == codecSelferValueTypeMap1234 { yyl2231 := r.ReadMapStart() if yyl2231 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2231, d) } } else if yyct2231 == codecSelferValueTypeArray1234 { yyl2231 := r.ReadArrayStart() if yyl2231 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2231, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2232Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2232Slc var yyhl2232 bool = l >= 0 for yyj2232 := 0; ; yyj2232++ { if yyhl2232 { if yyj2232 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2232Slc = r.DecodeBytes(yys2232Slc, true, true) yys2232 := string(yys2232Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2232 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } default: z.DecStructFieldNotFound(-1, yys2232) } // end switch yys2232 } // end for yyj2232 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DaemonEndpoint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2234 int var yyb2234 bool var yyhl2234 bool = l >= 0 yyj2234++ if yyhl2234 { yyb2234 = yyj2234 > l } else { yyb2234 = r.CheckBreak() } if yyb2234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int(r.DecodeInt(codecSelferBitsize1234)) } for { yyj2234++ if yyhl2234 { yyb2234 = yyj2234 > l } else { yyb2234 = r.CheckBreak() } if yyb2234 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2234-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2236 := z.EncBinary() _ = yym2236 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2237 := !z.EncBinary() yy2arr2237 := z.EncBasicHandle().StructToArray var yyq2237 [1]bool _, _, _ = yysep2237, yyq2237, yy2arr2237 const yyr2237 bool = false yyq2237[0] = true var yynn2237 int if yyr2237 || yy2arr2237 { r.EncodeArrayStart(1) } else { yynn2237 = 0 for _, b := range yyq2237 { if b { yynn2237++ } } r.EncodeMapStart(yynn2237) yynn2237 = 0 } if yyr2237 || yy2arr2237 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2237[0] { yy2239 := &x.KubeletEndpoint yy2239.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2237[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2240 := &x.KubeletEndpoint yy2240.CodecEncodeSelf(e) } } if yyr2237 || yy2arr2237 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeDaemonEndpoints) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2241 := z.DecBinary() _ = yym2241 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2242 := r.ContainerType() if yyct2242 == codecSelferValueTypeMap1234 { yyl2242 := r.ReadMapStart() if yyl2242 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2242, d) } } else if yyct2242 == codecSelferValueTypeArray1234 { yyl2242 := r.ReadArrayStart() if yyl2242 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2242, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeDaemonEndpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2243Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2243Slc var yyhl2243 bool = l >= 0 for yyj2243 := 0; ; yyj2243++ { if yyhl2243 { if yyj2243 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2243Slc = r.DecodeBytes(yys2243Slc, true, true) yys2243 := string(yys2243Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2243 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2244 := &x.KubeletEndpoint yyv2244.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2243) } // end switch yys2243 } // end for yyj2243 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeDaemonEndpoints) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2245 int var yyb2245 bool var yyhl2245 bool = l >= 0 yyj2245++ if yyhl2245 { yyb2245 = yyj2245 > l } else { yyb2245 = r.CheckBreak() } if yyb2245 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2246 := &x.KubeletEndpoint yyv2246.CodecDecodeSelf(d) } for { yyj2245++ if yyhl2245 { yyb2245 = yyj2245 > l } else { yyb2245 = r.CheckBreak() } if yyb2245 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2245-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2247 := z.EncBinary() _ = yym2247 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2248 := !z.EncBinary() yy2arr2248 := z.EncBasicHandle().StructToArray var yyq2248 [8]bool _, _, _ = yysep2248, yyq2248, yy2arr2248 const yyr2248 bool = false var yynn2248 int if yyr2248 || yy2arr2248 { r.EncodeArrayStart(8) } else { yynn2248 = 8 for _, b := range yyq2248 { if b { yynn2248++ } } r.EncodeMapStart(yynn2248) yynn2248 = 0 } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2250 := z.EncBinary() _ = yym2250 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("machineID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2251 := z.EncBinary() _ = yym2251 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2253 := z.EncBinary() _ = yym2253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("systemUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2254 := z.EncBinary() _ = yym2254 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2256 := z.EncBinary() _ = yym2256 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("bootID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2257 := z.EncBinary() _ = yym2257 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2259 := z.EncBinary() _ = yym2259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kernelVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2260 := z.EncBinary() _ = yym2260 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2262 := z.EncBinary() _ = yym2262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OsImage)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("osImage")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2263 := z.EncBinary() _ = yym2263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OsImage)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2265 := z.EncBinary() _ = yym2265 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerRuntimeVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2266 := z.EncBinary() _ = yym2266 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2268 := z.EncBinary() _ = yym2268 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2269 := z.EncBinary() _ = yym2269 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2271 := z.EncBinary() _ = yym2271 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeProxyVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2272 := z.EncBinary() _ = yym2272 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2248 || yy2arr2248 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSystemInfo) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2273 := z.DecBinary() _ = yym2273 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2274 := r.ContainerType() if yyct2274 == codecSelferValueTypeMap1234 { yyl2274 := r.ReadMapStart() if yyl2274 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2274, d) } } else if yyct2274 == codecSelferValueTypeArray1234 { yyl2274 := r.ReadArrayStart() if yyl2274 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2274, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSystemInfo) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2275Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2275Slc var yyhl2275 bool = l >= 0 for yyj2275 := 0; ; yyj2275++ { if yyhl2275 { if yyj2275 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2275Slc = r.DecodeBytes(yys2275Slc, true, true) yys2275 := string(yys2275Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2275 { case "machineID": if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } case "systemUUID": if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } case "bootID": if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } case "kernelVersion": if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } case "osImage": if r.TryDecodeAsNil() { x.OsImage = "" } else { x.OsImage = string(r.DecodeString()) } case "containerRuntimeVersion": if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } case "kubeletVersion": if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } case "kubeProxyVersion": if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2275) } // end switch yys2275 } // end for yyj2275 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSystemInfo) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2284 int var yyb2284 bool var yyhl2284 bool = l >= 0 yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OsImage = "" } else { x.OsImage = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } for { yyj2284++ if yyhl2284 { yyb2284 = yyj2284 > l } else { yyb2284 = r.CheckBreak() } if yyb2284 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2284-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2293 := z.EncBinary() _ = yym2293 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2294 := !z.EncBinary() yy2arr2294 := z.EncBasicHandle().StructToArray var yyq2294 [6]bool _, _, _ = yysep2294, yyq2294, yy2arr2294 const yyr2294 bool = false yyq2294[0] = len(x.Capacity) != 0 yyq2294[1] = x.Phase != "" yyq2294[2] = len(x.Conditions) != 0 yyq2294[3] = len(x.Addresses) != 0 yyq2294[4] = true yyq2294[5] = true var yynn2294 int if yyr2294 || yy2arr2294 { r.EncodeArrayStart(6) } else { yynn2294 = 0 for _, b := range yyq2294 { if b { yynn2294++ } } r.EncodeMapStart(yynn2294) yynn2294 = 0 } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2294[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[1] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2294[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[2] { if x.Conditions == nil { r.EncodeNil() } else { yym2298 := z.EncBinary() _ = yym2298 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2294[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2299 := z.EncBinary() _ = yym2299 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[3] { if x.Addresses == nil { r.EncodeNil() } else { yym2301 := z.EncBinary() _ = yym2301 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq2294[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym2302 := z.EncBinary() _ = yym2302 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[4] { yy2304 := &x.DaemonEndpoints yy2304.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2294[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2305 := &x.DaemonEndpoints yy2305.CodecEncodeSelf(e) } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2294[5] { yy2307 := &x.NodeInfo yy2307.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2294[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2308 := &x.NodeInfo yy2308.CodecEncodeSelf(e) } } if yyr2294 || yy2arr2294 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2309 := z.DecBinary() _ = yym2309 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2310 := r.ContainerType() if yyct2310 == codecSelferValueTypeMap1234 { yyl2310 := r.ReadMapStart() if yyl2310 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2310, d) } } else if yyct2310 == codecSelferValueTypeArray1234 { yyl2310 := r.ReadArrayStart() if yyl2310 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2310, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2311Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2311Slc var yyhl2311 bool = l >= 0 for yyj2311 := 0; ; yyj2311++ { if yyhl2311 { if yyj2311 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2311Slc = r.DecodeBytes(yys2311Slc, true, true) yys2311 := string(yys2311Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2311 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2312 := &x.Capacity yyv2312.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2314 := &x.Conditions yym2315 := z.DecBinary() _ = yym2315 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2314), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2316 := &x.Addresses yym2317 := z.DecBinary() _ = yym2317 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2316), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2318 := &x.DaemonEndpoints yyv2318.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2319 := &x.NodeInfo yyv2319.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2311) } // end switch yys2311 } // end for yyj2311 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2320 int var yyb2320 bool var yyhl2320 bool = l >= 0 yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2321 := &x.Capacity yyv2321.CodecDecodeSelf(d) } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2323 := &x.Conditions yym2324 := z.DecBinary() _ = yym2324 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv2323), d) } } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2325 := &x.Addresses yym2326 := z.DecBinary() _ = yym2326 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv2325), d) } } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv2327 := &x.DaemonEndpoints yyv2327.CodecDecodeSelf(d) } yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv2328 := &x.NodeInfo yyv2328.CodecDecodeSelf(d) } for { yyj2320++ if yyhl2320 { yyb2320 = yyj2320 > l } else { yyb2320 = r.CheckBreak() } if yyb2320 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2320-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2329 := z.EncBinary() _ = yym2329 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2330 := z.DecBinary() _ = yym2330 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x NodeConditionType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2331 := z.EncBinary() _ = yym2331 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodeConditionType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2332 := z.DecBinary() _ = yym2332 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NodeCondition) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2333 := z.EncBinary() _ = yym2333 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2334 := !z.EncBinary() yy2arr2334 := z.EncBasicHandle().StructToArray var yyq2334 [6]bool _, _, _ = yysep2334, yyq2334, yy2arr2334 const yyr2334 bool = false yyq2334[2] = true yyq2334[3] = true yyq2334[4] = x.Reason != "" yyq2334[5] = x.Message != "" var yynn2334 int if yyr2334 || yy2arr2334 { r.EncodeArrayStart(6) } else { yynn2334 = 2 for _, b := range yyq2334 { if b { yynn2334++ } } r.EncodeMapStart(yynn2334) yynn2334 = 0 } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Status.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Status.CodecEncodeSelf(e) } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[2] { yy2338 := &x.LastHeartbeatTime yym2339 := z.EncBinary() _ = yym2339 if false { } else if z.HasExtensions() && z.EncExt(yy2338) { } else if yym2339 { z.EncBinaryMarshal(yy2338) } else if !yym2339 && z.IsJSONHandle() { z.EncJSONMarshal(yy2338) } else { z.EncFallback(yy2338) } } else { r.EncodeNil() } } else { if yyq2334[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2340 := &x.LastHeartbeatTime yym2341 := z.EncBinary() _ = yym2341 if false { } else if z.HasExtensions() && z.EncExt(yy2340) { } else if yym2341 { z.EncBinaryMarshal(yy2340) } else if !yym2341 && z.IsJSONHandle() { z.EncJSONMarshal(yy2340) } else { z.EncFallback(yy2340) } } } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[3] { yy2343 := &x.LastTransitionTime yym2344 := z.EncBinary() _ = yym2344 if false { } else if z.HasExtensions() && z.EncExt(yy2343) { } else if yym2344 { z.EncBinaryMarshal(yy2343) } else if !yym2344 && z.IsJSONHandle() { z.EncJSONMarshal(yy2343) } else { z.EncFallback(yy2343) } } else { r.EncodeNil() } } else { if yyq2334[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2345 := &x.LastTransitionTime yym2346 := z.EncBinary() _ = yym2346 if false { } else if z.HasExtensions() && z.EncExt(yy2345) { } else if yym2346 { z.EncBinaryMarshal(yy2345) } else if !yym2346 && z.IsJSONHandle() { z.EncJSONMarshal(yy2345) } else { z.EncFallback(yy2345) } } } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[4] { yym2348 := z.EncBinary() _ = yym2348 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2334[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2349 := z.EncBinary() _ = yym2349 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2334[5] { yym2351 := z.EncBinary() _ = yym2351 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2334[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2352 := z.EncBinary() _ = yym2352 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2334 || yy2arr2334 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeCondition) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2353 := z.DecBinary() _ = yym2353 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2354 := r.ContainerType() if yyct2354 == codecSelferValueTypeMap1234 { yyl2354 := r.ReadMapStart() if yyl2354 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2354, d) } } else if yyct2354 == codecSelferValueTypeArray1234 { yyl2354 := r.ReadArrayStart() if yyl2354 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2354, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2355Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2355Slc var yyhl2355 bool = l >= 0 for yyj2355 := 0; ; yyj2355++ { if yyhl2355 { if yyj2355 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2355Slc = r.DecodeBytes(yys2355Slc, true, true) yys2355 := string(yys2355Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2355 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } case "status": if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } case "lastHeartbeatTime": if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv2358 := &x.LastHeartbeatTime yym2359 := z.DecBinary() _ = yym2359 if false { } else if z.HasExtensions() && z.DecExt(yyv2358) { } else if yym2359 { z.DecBinaryUnmarshal(yyv2358) } else if !yym2359 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2358) } else { z.DecFallback(yyv2358, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2360 := &x.LastTransitionTime yym2361 := z.DecBinary() _ = yym2361 if false { } else if z.HasExtensions() && z.DecExt(yyv2360) { } else if yym2361 { z.DecBinaryUnmarshal(yyv2360) } else if !yym2361 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2360) } else { z.DecFallback(yyv2360, false) } } case "reason": if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } case "message": if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2355) } // end switch yys2355 } // end for yyj2355 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2364 int var yyb2364 bool var yyhl2364 bool = l >= 0 yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv2367 := &x.LastHeartbeatTime yym2368 := z.DecBinary() _ = yym2368 if false { } else if z.HasExtensions() && z.DecExt(yyv2367) { } else if yym2368 { z.DecBinaryUnmarshal(yyv2367) } else if !yym2368 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2367) } else { z.DecFallback(yyv2367, false) } } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv2369 := &x.LastTransitionTime yym2370 := z.DecBinary() _ = yym2370 if false { } else if z.HasExtensions() && z.DecExt(yyv2369) { } else if yym2370 { z.DecBinaryUnmarshal(yyv2369) } else if !yym2370 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2369) } else { z.DecFallback(yyv2369, false) } } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj2364++ if yyhl2364 { yyb2364 = yyj2364 > l } else { yyb2364 = r.CheckBreak() } if yyb2364 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2364-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2373 := z.EncBinary() _ = yym2373 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodeAddressType) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2374 := z.DecBinary() _ = yym2374 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NodeAddress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2375 := z.EncBinary() _ = yym2375 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2376 := !z.EncBinary() yy2arr2376 := z.EncBasicHandle().StructToArray var yyq2376 [2]bool _, _, _ = yysep2376, yyq2376, yy2arr2376 const yyr2376 bool = false var yynn2376 int if yyr2376 || yy2arr2376 { r.EncodeArrayStart(2) } else { yynn2376 = 2 for _, b := range yyq2376 { if b { yynn2376++ } } r.EncodeMapStart(yynn2376) yynn2376 = 0 } if yyr2376 || yy2arr2376 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Type.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } if yyr2376 || yy2arr2376 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2379 := z.EncBinary() _ = yym2379 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("address")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2380 := z.EncBinary() _ = yym2380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr2376 || yy2arr2376 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeAddress) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2381 := z.DecBinary() _ = yym2381 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2382 := r.ContainerType() if yyct2382 == codecSelferValueTypeMap1234 { yyl2382 := r.ReadMapStart() if yyl2382 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2382, d) } } else if yyct2382 == codecSelferValueTypeArray1234 { yyl2382 := r.ReadArrayStart() if yyl2382 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2382, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2383Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2383Slc var yyhl2383 bool = l >= 0 for yyj2383 := 0; ; yyj2383++ { if yyhl2383 { if yyj2383 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2383Slc = r.DecodeBytes(yys2383Slc, true, true) yys2383 := string(yys2383Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2383 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } case "address": if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2383) } // end switch yys2383 } // end for yyj2383 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeAddress) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2386 int var yyb2386 bool var yyhl2386 bool = l >= 0 yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj2386++ if yyhl2386 { yyb2386 = yyj2386 > l } else { yyb2386 = r.CheckBreak() } if yyb2386 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2386-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeResources) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2389 := z.EncBinary() _ = yym2389 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2390 := !z.EncBinary() yy2arr2390 := z.EncBasicHandle().StructToArray var yyq2390 [1]bool _, _, _ = yysep2390, yyq2390, yy2arr2390 const yyr2390 bool = false yyq2390[0] = len(x.Capacity) != 0 var yynn2390 int if yyr2390 || yy2arr2390 { r.EncodeArrayStart(1) } else { yynn2390 = 0 for _, b := range yyq2390 { if b { yynn2390++ } } r.EncodeMapStart(yynn2390) yynn2390 = 0 } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2390[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2390[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("capacity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } } if yyr2390 || yy2arr2390 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeResources) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2392 := z.DecBinary() _ = yym2392 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2393 := r.ContainerType() if yyct2393 == codecSelferValueTypeMap1234 { yyl2393 := r.ReadMapStart() if yyl2393 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2393, d) } } else if yyct2393 == codecSelferValueTypeArray1234 { yyl2393 := r.ReadArrayStart() if yyl2393 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2393, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2394Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2394Slc var yyhl2394 bool = l >= 0 for yyj2394 := 0; ; yyj2394++ { if yyhl2394 { if yyj2394 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2394Slc = r.DecodeBytes(yys2394Slc, true, true) yys2394 := string(yys2394Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2394 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2395 := &x.Capacity yyv2395.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2394) } // end switch yys2394 } // end for yyj2394 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeResources) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2396 int var yyb2396 bool var yyhl2396 bool = l >= 0 yyj2396++ if yyhl2396 { yyb2396 = yyj2396 > l } else { yyb2396 = r.CheckBreak() } if yyb2396 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv2397 := &x.Capacity yyv2397.CodecDecodeSelf(d) } for { yyj2396++ if yyhl2396 { yyb2396 = yyj2396 > l } else { yyb2396 = r.CheckBreak() } if yyb2396 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2396-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2398 := z.EncBinary() _ = yym2398 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ResourceName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2399 := z.DecBinary() _ = yym2399 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x ResourceList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2400 := z.EncBinary() _ = yym2400 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { h.encResourceList((ResourceList)(x), e) } } } func (x *ResourceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2401 := z.DecBinary() _ = yym2401 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { h.decResourceList((*ResourceList)(x), d) } } func (x *Node) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2402 := z.EncBinary() _ = yym2402 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2403 := !z.EncBinary() yy2arr2403 := z.EncBasicHandle().StructToArray var yyq2403 [5]bool _, _, _ = yysep2403, yyq2403, yy2arr2403 const yyr2403 bool = false yyq2403[0] = x.Kind != "" yyq2403[1] = x.APIVersion != "" yyq2403[2] = true yyq2403[3] = true yyq2403[4] = true var yynn2403 int if yyr2403 || yy2arr2403 { r.EncodeArrayStart(5) } else { yynn2403 = 0 for _, b := range yyq2403 { if b { yynn2403++ } } r.EncodeMapStart(yynn2403) yynn2403 = 0 } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[0] { yym2405 := z.EncBinary() _ = yym2405 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2403[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2406 := z.EncBinary() _ = yym2406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[1] { yym2408 := z.EncBinary() _ = yym2408 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2403[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2409 := z.EncBinary() _ = yym2409 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[2] { yy2411 := &x.ObjectMeta yy2411.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2403[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2412 := &x.ObjectMeta yy2412.CodecEncodeSelf(e) } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[3] { yy2414 := &x.Spec yy2414.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2403[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2415 := &x.Spec yy2415.CodecEncodeSelf(e) } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2403[4] { yy2417 := &x.Status yy2417.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2403[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2418 := &x.Status yy2418.CodecEncodeSelf(e) } } if yyr2403 || yy2arr2403 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Node) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2419 := z.DecBinary() _ = yym2419 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2420 := r.ContainerType() if yyct2420 == codecSelferValueTypeMap1234 { yyl2420 := r.ReadMapStart() if yyl2420 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2420, d) } } else if yyct2420 == codecSelferValueTypeArray1234 { yyl2420 := r.ReadArrayStart() if yyl2420 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2420, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Node) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2421Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2421Slc var yyhl2421 bool = l >= 0 for yyj2421 := 0; ; yyj2421++ { if yyhl2421 { if yyj2421 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2421Slc = r.DecodeBytes(yys2421Slc, true, true) yys2421 := string(yys2421Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2421 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2424 := &x.ObjectMeta yyv2424.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2425 := &x.Spec yyv2425.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2426 := &x.Status yyv2426.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2421) } // end switch yys2421 } // end for yyj2421 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Node) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2427 int var yyb2427 bool var yyhl2427 bool = l >= 0 yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2430 := &x.ObjectMeta yyv2430.CodecDecodeSelf(d) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv2431 := &x.Spec yyv2431.CodecDecodeSelf(d) } yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv2432 := &x.Status yyv2432.CodecDecodeSelf(d) } for { yyj2427++ if yyhl2427 { yyb2427 = yyj2427 > l } else { yyb2427 = r.CheckBreak() } if yyb2427 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2427-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2433 := z.EncBinary() _ = yym2433 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2434 := !z.EncBinary() yy2arr2434 := z.EncBasicHandle().StructToArray var yyq2434 [4]bool _, _, _ = yysep2434, yyq2434, yy2arr2434 const yyr2434 bool = false yyq2434[0] = x.Kind != "" yyq2434[1] = x.APIVersion != "" yyq2434[2] = true var yynn2434 int if yyr2434 || yy2arr2434 { r.EncodeArrayStart(4) } else { yynn2434 = 1 for _, b := range yyq2434 { if b { yynn2434++ } } r.EncodeMapStart(yynn2434) yynn2434 = 0 } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2434[0] { yym2436 := z.EncBinary() _ = yym2436 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2434[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2437 := z.EncBinary() _ = yym2437 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2434[1] { yym2439 := z.EncBinary() _ = yym2439 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2434[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2440 := z.EncBinary() _ = yym2440 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2434[2] { yy2442 := &x.ListMeta yym2443 := z.EncBinary() _ = yym2443 if false { } else if z.HasExtensions() && z.EncExt(yy2442) { } else { z.EncFallback(yy2442) } } else { r.EncodeNil() } } else { if yyq2434[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2444 := &x.ListMeta yym2445 := z.EncBinary() _ = yym2445 if false { } else if z.HasExtensions() && z.EncExt(yy2444) { } else { z.EncFallback(yy2444) } } } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2447 := z.EncBinary() _ = yym2447 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2448 := z.EncBinary() _ = yym2448 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr2434 || yy2arr2434 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2449 := z.DecBinary() _ = yym2449 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2450 := r.ContainerType() if yyct2450 == codecSelferValueTypeMap1234 { yyl2450 := r.ReadMapStart() if yyl2450 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2450, d) } } else if yyct2450 == codecSelferValueTypeArray1234 { yyl2450 := r.ReadArrayStart() if yyl2450 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2450, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2451Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2451Slc var yyhl2451 bool = l >= 0 for yyj2451 := 0; ; yyj2451++ { if yyhl2451 { if yyj2451 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2451Slc = r.DecodeBytes(yys2451Slc, true, true) yys2451 := string(yys2451Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2451 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2454 := &x.ListMeta yym2455 := z.DecBinary() _ = yym2455 if false { } else if z.HasExtensions() && z.DecExt(yyv2454) { } else { z.DecFallback(yyv2454, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2456 := &x.Items yym2457 := z.DecBinary() _ = yym2457 if false { } else { h.decSliceNode((*[]Node)(yyv2456), d) } } default: z.DecStructFieldNotFound(-1, yys2451) } // end switch yys2451 } // end for yyj2451 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2458 int var yyb2458 bool var yyhl2458 bool = l >= 0 yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2461 := &x.ListMeta yym2462 := z.DecBinary() _ = yym2462 if false { } else if z.HasExtensions() && z.DecExt(yyv2461) { } else { z.DecFallback(yyv2461, false) } } yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2463 := &x.Items yym2464 := z.DecBinary() _ = yym2464 if false { } else { h.decSliceNode((*[]Node)(yyv2463), d) } } for { yyj2458++ if yyhl2458 { yyb2458 = yyj2458 > l } else { yyb2458 = r.CheckBreak() } if yyb2458 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2458-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NamespaceSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2465 := z.EncBinary() _ = yym2465 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2466 := !z.EncBinary() yy2arr2466 := z.EncBasicHandle().StructToArray var yyq2466 [1]bool _, _, _ = yysep2466, yyq2466, yy2arr2466 const yyr2466 bool = false var yynn2466 int if yyr2466 || yy2arr2466 { r.EncodeArrayStart(1) } else { yynn2466 = 1 for _, b := range yyq2466 { if b { yynn2466++ } } r.EncodeMapStart(yynn2466) yynn2466 = 0 } if yyr2466 || yy2arr2466 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym2468 := z.EncBinary() _ = yym2468 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { yym2469 := z.EncBinary() _ = yym2469 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr2466 || yy2arr2466 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NamespaceSpec) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2470 := z.DecBinary() _ = yym2470 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2471 := r.ContainerType() if yyct2471 == codecSelferValueTypeMap1234 { yyl2471 := r.ReadMapStart() if yyl2471 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2471, d) } } else if yyct2471 == codecSelferValueTypeArray1234 { yyl2471 := r.ReadArrayStart() if yyl2471 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2471, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2472Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2472Slc var yyhl2472 bool = l >= 0 for yyj2472 := 0; ; yyj2472++ { if yyhl2472 { if yyj2472 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2472Slc = r.DecodeBytes(yys2472Slc, true, true) yys2472 := string(yys2472Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2472 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2473 := &x.Finalizers yym2474 := z.DecBinary() _ = yym2474 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2473), d) } } default: z.DecStructFieldNotFound(-1, yys2472) } // end switch yys2472 } // end for yyj2472 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NamespaceSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2475 int var yyb2475 bool var yyhl2475 bool = l >= 0 yyj2475++ if yyhl2475 { yyb2475 = yyj2475 > l } else { yyb2475 = r.CheckBreak() } if yyb2475 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv2476 := &x.Finalizers yym2477 := z.DecBinary() _ = yym2477 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv2476), d) } } for { yyj2475++ if yyhl2475 { yyb2475 = yyj2475 > l } else { yyb2475 = r.CheckBreak() } if yyb2475 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2475-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2478 := z.EncBinary() _ = yym2478 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *FinalizerName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2479 := z.DecBinary() _ = yym2479 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NamespaceStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2480 := z.EncBinary() _ = yym2480 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2481 := !z.EncBinary() yy2arr2481 := z.EncBasicHandle().StructToArray var yyq2481 [1]bool _, _, _ = yysep2481, yyq2481, yy2arr2481 const yyr2481 bool = false yyq2481[0] = x.Phase != "" var yynn2481 int if yyr2481 || yy2arr2481 { r.EncodeArrayStart(1) } else { yynn2481 = 0 for _, b := range yyq2481 { if b { yynn2481++ } } r.EncodeMapStart(yynn2481) yynn2481 = 0 } if yyr2481 || yy2arr2481 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2481[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2481[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2481 || yy2arr2481 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NamespaceStatus) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2483 := z.DecBinary() _ = yym2483 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2484 := r.ContainerType() if yyct2484 == codecSelferValueTypeMap1234 { yyl2484 := r.ReadMapStart() if yyl2484 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2484, d) } } else if yyct2484 == codecSelferValueTypeArray1234 { yyl2484 := r.ReadArrayStart() if yyl2484 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2484, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2485Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2485Slc var yyhl2485 bool = l >= 0 for yyj2485 := 0; ; yyj2485++ { if yyhl2485 { if yyj2485 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2485Slc = r.DecodeBytes(yys2485Slc, true, true) yys2485 := string(yys2485Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2485 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2485) } // end switch yys2485 } // end for yyj2485 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NamespaceStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2487 int var yyb2487 bool var yyhl2487 bool = l >= 0 yyj2487++ if yyhl2487 { yyb2487 = yyj2487 > l } else { yyb2487 = r.CheckBreak() } if yyb2487 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj2487++ if yyhl2487 { yyb2487 = yyj2487 > l } else { yyb2487 = r.CheckBreak() } if yyb2487 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2487-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2489 := z.EncBinary() _ = yym2489 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NamespacePhase) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2490 := z.DecBinary() _ = yym2490 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Namespace) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2491 := z.EncBinary() _ = yym2491 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2492 := !z.EncBinary() yy2arr2492 := z.EncBasicHandle().StructToArray var yyq2492 [5]bool _, _, _ = yysep2492, yyq2492, yy2arr2492 const yyr2492 bool = false yyq2492[0] = x.Kind != "" yyq2492[1] = x.APIVersion != "" yyq2492[2] = true yyq2492[3] = true yyq2492[4] = true var yynn2492 int if yyr2492 || yy2arr2492 { r.EncodeArrayStart(5) } else { yynn2492 = 0 for _, b := range yyq2492 { if b { yynn2492++ } } r.EncodeMapStart(yynn2492) yynn2492 = 0 } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[0] { yym2494 := z.EncBinary() _ = yym2494 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2492[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2495 := z.EncBinary() _ = yym2495 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[1] { yym2497 := z.EncBinary() _ = yym2497 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2492[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2498 := z.EncBinary() _ = yym2498 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[2] { yy2500 := &x.ObjectMeta yy2500.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2492[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2501 := &x.ObjectMeta yy2501.CodecEncodeSelf(e) } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[3] { yy2503 := &x.Spec yy2503.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2492[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2504 := &x.Spec yy2504.CodecEncodeSelf(e) } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2492[4] { yy2506 := &x.Status yy2506.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2492[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2507 := &x.Status yy2507.CodecEncodeSelf(e) } } if yyr2492 || yy2arr2492 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2508 := z.DecBinary() _ = yym2508 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2509 := r.ContainerType() if yyct2509 == codecSelferValueTypeMap1234 { yyl2509 := r.ReadMapStart() if yyl2509 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2509, d) } } else if yyct2509 == codecSelferValueTypeArray1234 { yyl2509 := r.ReadArrayStart() if yyl2509 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2509, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2510Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2510Slc var yyhl2510 bool = l >= 0 for yyj2510 := 0; ; yyj2510++ { if yyhl2510 { if yyj2510 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2510Slc = r.DecodeBytes(yys2510Slc, true, true) yys2510 := string(yys2510Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2510 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2513 := &x.ObjectMeta yyv2513.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2514 := &x.Spec yyv2514.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2515 := &x.Status yyv2515.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2510) } // end switch yys2510 } // end for yyj2510 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Namespace) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2516 int var yyb2516 bool var yyhl2516 bool = l >= 0 yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2519 := &x.ObjectMeta yyv2519.CodecDecodeSelf(d) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv2520 := &x.Spec yyv2520.CodecDecodeSelf(d) } yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv2521 := &x.Status yyv2521.CodecDecodeSelf(d) } for { yyj2516++ if yyhl2516 { yyb2516 = yyj2516 > l } else { yyb2516 = r.CheckBreak() } if yyb2516 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2516-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2522 := z.EncBinary() _ = yym2522 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2523 := !z.EncBinary() yy2arr2523 := z.EncBasicHandle().StructToArray var yyq2523 [4]bool _, _, _ = yysep2523, yyq2523, yy2arr2523 const yyr2523 bool = false yyq2523[0] = x.Kind != "" yyq2523[1] = x.APIVersion != "" yyq2523[2] = true var yynn2523 int if yyr2523 || yy2arr2523 { r.EncodeArrayStart(4) } else { yynn2523 = 1 for _, b := range yyq2523 { if b { yynn2523++ } } r.EncodeMapStart(yynn2523) yynn2523 = 0 } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2523[0] { yym2525 := z.EncBinary() _ = yym2525 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2523[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2526 := z.EncBinary() _ = yym2526 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2523[1] { yym2528 := z.EncBinary() _ = yym2528 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2523[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2529 := z.EncBinary() _ = yym2529 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2523[2] { yy2531 := &x.ListMeta yym2532 := z.EncBinary() _ = yym2532 if false { } else if z.HasExtensions() && z.EncExt(yy2531) { } else { z.EncFallback(yy2531) } } else { r.EncodeNil() } } else { if yyq2523[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2533 := &x.ListMeta yym2534 := z.EncBinary() _ = yym2534 if false { } else if z.HasExtensions() && z.EncExt(yy2533) { } else { z.EncFallback(yy2533) } } } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2536 := z.EncBinary() _ = yym2536 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym2537 := z.EncBinary() _ = yym2537 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr2523 || yy2arr2523 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NamespaceList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2538 := z.DecBinary() _ = yym2538 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2539 := r.ContainerType() if yyct2539 == codecSelferValueTypeMap1234 { yyl2539 := r.ReadMapStart() if yyl2539 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2539, d) } } else if yyct2539 == codecSelferValueTypeArray1234 { yyl2539 := r.ReadArrayStart() if yyl2539 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2539, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2540Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2540Slc var yyhl2540 bool = l >= 0 for yyj2540 := 0; ; yyj2540++ { if yyhl2540 { if yyj2540 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2540Slc = r.DecodeBytes(yys2540Slc, true, true) yys2540 := string(yys2540Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2540 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2543 := &x.ListMeta yym2544 := z.DecBinary() _ = yym2544 if false { } else if z.HasExtensions() && z.DecExt(yyv2543) { } else { z.DecFallback(yyv2543, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2545 := &x.Items yym2546 := z.DecBinary() _ = yym2546 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2545), d) } } default: z.DecStructFieldNotFound(-1, yys2540) } // end switch yys2540 } // end for yyj2540 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NamespaceList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2547 int var yyb2547 bool var yyhl2547 bool = l >= 0 yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2550 := &x.ListMeta yym2551 := z.DecBinary() _ = yym2551 if false { } else if z.HasExtensions() && z.DecExt(yyv2550) { } else { z.DecFallback(yyv2550, false) } } yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2552 := &x.Items yym2553 := z.DecBinary() _ = yym2553 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv2552), d) } } for { yyj2547++ if yyhl2547 { yyb2547 = yyj2547 > l } else { yyb2547 = r.CheckBreak() } if yyb2547 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2547-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2554 := z.EncBinary() _ = yym2554 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2555 := !z.EncBinary() yy2arr2555 := z.EncBasicHandle().StructToArray var yyq2555 [4]bool _, _, _ = yysep2555, yyq2555, yy2arr2555 const yyr2555 bool = false yyq2555[0] = x.Kind != "" yyq2555[1] = x.APIVersion != "" yyq2555[2] = true var yynn2555 int if yyr2555 || yy2arr2555 { r.EncodeArrayStart(4) } else { yynn2555 = 1 for _, b := range yyq2555 { if b { yynn2555++ } } r.EncodeMapStart(yynn2555) yynn2555 = 0 } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2555[0] { yym2557 := z.EncBinary() _ = yym2557 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2555[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2558 := z.EncBinary() _ = yym2558 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2555[1] { yym2560 := z.EncBinary() _ = yym2560 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2555[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2561 := z.EncBinary() _ = yym2561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2555[2] { yy2563 := &x.ObjectMeta yy2563.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2555[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2564 := &x.ObjectMeta yy2564.CodecEncodeSelf(e) } } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2566 := &x.Target yy2566.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2567 := &x.Target yy2567.CodecEncodeSelf(e) } if yyr2555 || yy2arr2555 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Binding) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2568 := z.DecBinary() _ = yym2568 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2569 := r.ContainerType() if yyct2569 == codecSelferValueTypeMap1234 { yyl2569 := r.ReadMapStart() if yyl2569 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2569, d) } } else if yyct2569 == codecSelferValueTypeArray1234 { yyl2569 := r.ReadArrayStart() if yyl2569 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2569, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2570Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2570Slc var yyhl2570 bool = l >= 0 for yyj2570 := 0; ; yyj2570++ { if yyhl2570 { if yyj2570 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2570Slc = r.DecodeBytes(yys2570Slc, true, true) yys2570 := string(yys2570Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2570 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2573 := &x.ObjectMeta yyv2573.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2574 := &x.Target yyv2574.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2570) } // end switch yys2570 } // end for yyj2570 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Binding) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2575 int var yyb2575 bool var yyhl2575 bool = l >= 0 yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2578 := &x.ObjectMeta yyv2578.CodecDecodeSelf(d) } yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv2579 := &x.Target yyv2579.CodecDecodeSelf(d) } for { yyj2575++ if yyhl2575 { yyb2575 = yyj2575 > l } else { yyb2575 = r.CheckBreak() } if yyb2575 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2575-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2580 := z.EncBinary() _ = yym2580 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2581 := !z.EncBinary() yy2arr2581 := z.EncBasicHandle().StructToArray var yyq2581 [3]bool _, _, _ = yysep2581, yyq2581, yy2arr2581 const yyr2581 bool = false yyq2581[0] = x.Kind != "" yyq2581[1] = x.APIVersion != "" var yynn2581 int if yyr2581 || yy2arr2581 { r.EncodeArrayStart(3) } else { yynn2581 = 1 for _, b := range yyq2581 { if b { yynn2581++ } } r.EncodeMapStart(yynn2581) yynn2581 = 0 } if yyr2581 || yy2arr2581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2581[0] { yym2583 := z.EncBinary() _ = yym2583 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2581[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2584 := z.EncBinary() _ = yym2584 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2581 || yy2arr2581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2581[1] { yym2586 := z.EncBinary() _ = yym2586 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2581[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2587 := z.EncBinary() _ = yym2587 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2581 || yy2arr2581 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2589 := *x.GracePeriodSeconds yym2590 := z.EncBinary() _ = yym2590 if false { } else { r.EncodeInt(int64(yy2589)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy2591 := *x.GracePeriodSeconds yym2592 := z.EncBinary() _ = yym2592 if false { } else { r.EncodeInt(int64(yy2591)) } } } if yyr2581 || yy2arr2581 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *DeleteOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2593 := z.DecBinary() _ = yym2593 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2594 := r.ContainerType() if yyct2594 == codecSelferValueTypeMap1234 { yyl2594 := r.ReadMapStart() if yyl2594 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2594, d) } } else if yyct2594 == codecSelferValueTypeArray1234 { yyl2594 := r.ReadArrayStart() if yyl2594 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2594, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2595Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2595Slc var yyhl2595 bool = l >= 0 for yyj2595 := 0; ; yyj2595++ { if yyhl2595 { if yyj2595 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2595Slc = r.DecodeBytes(yys2595Slc, true, true) yys2595 := string(yys2595Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2595 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "gracePeriodSeconds": if r.TryDecodeAsNil() { if x.GracePeriodSeconds != nil { x.GracePeriodSeconds = nil } } else { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } yym2599 := z.DecBinary() _ = yym2599 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2595) } // end switch yys2595 } // end for yyj2595 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *DeleteOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2600 int var yyb2600 bool var yyhl2600 bool = l >= 0 yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.GracePeriodSeconds != nil { x.GracePeriodSeconds = nil } } else { if x.GracePeriodSeconds == nil { x.GracePeriodSeconds = new(int64) } yym2604 := z.DecBinary() _ = yym2604 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } for { yyj2600++ if yyhl2600 { yyb2600 = yyj2600 > l } else { yyb2600 = r.CheckBreak() } if yyb2600 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2600-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2605 := z.EncBinary() _ = yym2605 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2606 := !z.EncBinary() yy2arr2606 := z.EncBasicHandle().StructToArray var yyq2606 [7]bool _, _, _ = yysep2606, yyq2606, yy2arr2606 const yyr2606 bool = false yyq2606[0] = x.Kind != "" yyq2606[1] = x.APIVersion != "" var yynn2606 int if yyr2606 || yy2arr2606 { r.EncodeArrayStart(7) } else { yynn2606 = 5 for _, b := range yyq2606 { if b { yynn2606++ } } r.EncodeMapStart(yynn2606) yynn2606 = 0 } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2606[0] { yym2608 := z.EncBinary() _ = yym2608 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2606[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2609 := z.EncBinary() _ = yym2609 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2606[1] { yym2611 := z.EncBinary() _ = yym2611 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2606[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2612 := z.EncBinary() _ = yym2612 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym2614 := z.EncBinary() _ = yym2614 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 { yym2615 := z.EncBinary() _ = yym2615 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym2617 := z.EncBinary() _ = yym2617 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 { yym2618 := z.EncBinary() _ = yym2618 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2620 := z.EncBinary() _ = yym2620 if false { } else { r.EncodeBool(bool(x.Watch)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2621 := z.EncBinary() _ = yym2621 if false { } else { r.EncodeBool(bool(x.Watch)) } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2623 := z.EncBinary() _ = yym2623 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) yym2624 := z.EncBinary() _ = yym2624 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } if yyr2606 || yy2arr2606 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2626 := *x.TimeoutSeconds yym2627 := z.EncBinary() _ = yym2627 if false { } else { r.EncodeInt(int64(yy2626)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy2628 := *x.TimeoutSeconds yym2629 := z.EncBinary() _ = yym2629 if false { } else { r.EncodeInt(int64(yy2628)) } } } if yyr2606 || yy2arr2606 { 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 yym2630 := z.DecBinary() _ = yym2630 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2631 := r.ContainerType() if yyct2631 == codecSelferValueTypeMap1234 { yyl2631 := r.ReadMapStart() if yyl2631 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2631, d) } } else if yyct2631 == codecSelferValueTypeArray1234 { yyl2631 := r.ReadArrayStart() if yyl2631 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2631, 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 yys2632Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2632Slc var yyhl2632 bool = l >= 0 for yyj2632 := 0; ; yyj2632++ { if yyhl2632 { if yyj2632 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2632Slc = r.DecodeBytes(yys2632Slc, true, true) yys2632 := string(yys2632Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2632 { 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 { yyv2635 := &x.LabelSelector yym2636 := z.DecBinary() _ = yym2636 if false { } else if z.HasExtensions() && z.DecExt(yyv2635) { } else { z.DecFallback(yyv2635, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2637 := &x.FieldSelector yym2638 := z.DecBinary() _ = yym2638 if false { } else if z.HasExtensions() && z.DecExt(yyv2637) { } else { z.DecFallback(yyv2637, 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) } yym2642 := z.DecBinary() _ = yym2642 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2632) } // end switch yys2632 } // end for yyj2632 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 yyj2643 int var yyb2643 bool var yyhl2643 bool = l >= 0 yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv2646 := &x.LabelSelector yym2647 := z.DecBinary() _ = yym2647 if false { } else if z.HasExtensions() && z.DecExt(yyv2646) { } else { z.DecFallback(yyv2646, true) } } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv2648 := &x.FieldSelector yym2649 := z.DecBinary() _ = yym2649 if false { } else if z.HasExtensions() && z.DecExt(yyv2648) { } else { z.DecFallback(yyv2648, true) } } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { 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) } yym2653 := z.DecBinary() _ = yym2653 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { yyj2643++ if yyhl2643 { yyb2643 = yyj2643 > l } else { yyb2643 = r.CheckBreak() } if yyb2643 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2643-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 { yym2654 := z.EncBinary() _ = yym2654 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2655 := !z.EncBinary() yy2arr2655 := z.EncBasicHandle().StructToArray var yyq2655 [10]bool _, _, _ = yysep2655, yyq2655, yy2arr2655 const yyr2655 bool = false yyq2655[0] = x.Kind != "" yyq2655[1] = x.APIVersion != "" var yynn2655 int if yyr2655 || yy2arr2655 { r.EncodeArrayStart(10) } else { yynn2655 = 8 for _, b := range yyq2655 { if b { yynn2655++ } } r.EncodeMapStart(yynn2655) yynn2655 = 0 } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2655[0] { yym2657 := z.EncBinary() _ = yym2657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2655[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2658 := z.EncBinary() _ = yym2658 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2655[1] { yym2660 := z.EncBinary() _ = yym2660 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2655[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2661 := z.EncBinary() _ = yym2661 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2663 := z.EncBinary() _ = yym2663 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) yym2664 := z.EncBinary() _ = yym2664 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2666 := z.EncBinary() _ = yym2666 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2667 := z.EncBinary() _ = yym2667 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2669 := z.EncBinary() _ = yym2669 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2670 := z.EncBinary() _ = yym2670 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2672 := *x.SinceSeconds yym2673 := z.EncBinary() _ = yym2673 if false { } else { r.EncodeInt(int64(yy2672)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy2674 := *x.SinceSeconds yym2675 := z.EncBinary() _ = yym2675 if false { } else { r.EncodeInt(int64(yy2674)) } } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym2677 := z.EncBinary() _ = yym2677 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2677 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2677 && 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 { yym2678 := z.EncBinary() _ = yym2678 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym2678 { z.EncBinaryMarshal(x.SinceTime) } else if !yym2678 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2680 := z.EncBinary() _ = yym2680 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2681 := z.EncBinary() _ = yym2681 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy2683 := *x.TailLines yym2684 := z.EncBinary() _ = yym2684 if false { } else { r.EncodeInt(int64(yy2683)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy2685 := *x.TailLines yym2686 := z.EncBinary() _ = yym2686 if false { } else { r.EncodeInt(int64(yy2685)) } } } if yyr2655 || yy2arr2655 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2688 := *x.LimitBytes yym2689 := z.EncBinary() _ = yym2689 if false { } else { r.EncodeInt(int64(yy2688)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy2690 := *x.LimitBytes yym2691 := z.EncBinary() _ = yym2691 if false { } else { r.EncodeInt(int64(yy2690)) } } } if yyr2655 || yy2arr2655 { 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 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 *PodLogOptions) 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 "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) } yym2701 := z.DecBinary() _ = yym2701 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) } yym2703 := z.DecBinary() _ = yym2703 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2703 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2703 && 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) } yym2706 := z.DecBinary() _ = yym2706 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) } yym2708 := z.DecBinary() _ = yym2708 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2694) } // end switch yys2694 } // end for yyj2694 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 yyj2709 int var yyb2709 bool var yyhl2709 bool = l >= 0 yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { 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) } yym2716 := z.DecBinary() _ = yym2716 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { 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) } yym2718 := z.DecBinary() _ = yym2718 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym2718 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym2718 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { 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) } yym2721 := z.DecBinary() _ = yym2721 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { 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) } yym2723 := z.DecBinary() _ = yym2723 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { yyj2709++ if yyhl2709 { yyb2709 = yyj2709 > l } else { yyb2709 = r.CheckBreak() } if yyb2709 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2709-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 { yym2724 := z.EncBinary() _ = yym2724 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2725 := !z.EncBinary() yy2arr2725 := z.EncBasicHandle().StructToArray var yyq2725 [7]bool _, _, _ = yysep2725, yyq2725, yy2arr2725 const yyr2725 bool = false yyq2725[0] = x.Kind != "" yyq2725[1] = x.APIVersion != "" yyq2725[2] = x.Stdin != false yyq2725[3] = x.Stdout != false yyq2725[4] = x.Stderr != false yyq2725[5] = x.TTY != false yyq2725[6] = x.Container != "" var yynn2725 int if yyr2725 || yy2arr2725 { r.EncodeArrayStart(7) } else { yynn2725 = 0 for _, b := range yyq2725 { if b { yynn2725++ } } r.EncodeMapStart(yynn2725) yynn2725 = 0 } if yyr2725 || yy2arr2725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2725[0] { yym2727 := z.EncBinary() _ = yym2727 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2725[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2728 := z.EncBinary() _ = yym2728 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2725 || yy2arr2725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2725[1] { yym2730 := z.EncBinary() _ = yym2730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2725[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2731 := z.EncBinary() _ = yym2731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2725 || yy2arr2725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2725[2] { yym2733 := z.EncBinary() _ = yym2733 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq2725[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2734 := z.EncBinary() _ = yym2734 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr2725 || yy2arr2725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2725[3] { yym2736 := z.EncBinary() _ = yym2736 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq2725[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2737 := z.EncBinary() _ = yym2737 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr2725 || yy2arr2725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2725[4] { yym2739 := z.EncBinary() _ = yym2739 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq2725[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2740 := z.EncBinary() _ = yym2740 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr2725 || yy2arr2725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2725[5] { yym2742 := z.EncBinary() _ = yym2742 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq2725[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2743 := z.EncBinary() _ = yym2743 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr2725 || yy2arr2725 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2725[6] { yym2745 := z.EncBinary() _ = yym2745 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2725[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2746 := z.EncBinary() _ = yym2746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr2725 || yy2arr2725 { 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 yym2747 := z.DecBinary() _ = yym2747 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2748 := r.ContainerType() if yyct2748 == codecSelferValueTypeMap1234 { yyl2748 := r.ReadMapStart() if yyl2748 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2748, d) } } else if yyct2748 == codecSelferValueTypeArray1234 { yyl2748 := r.ReadArrayStart() if yyl2748 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2748, 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 yys2749Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2749Slc var yyhl2749 bool = l >= 0 for yyj2749 := 0; ; yyj2749++ { if yyhl2749 { if yyj2749 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2749Slc = r.DecodeBytes(yys2749Slc, true, true) yys2749 := string(yys2749Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2749 { 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, yys2749) } // end switch yys2749 } // end for yyj2749 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 yyj2757 int var yyb2757 bool var yyhl2757 bool = l >= 0 yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } for { yyj2757++ if yyhl2757 { yyb2757 = yyj2757 > l } else { yyb2757 = r.CheckBreak() } if yyb2757 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2757-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 { yym2765 := z.EncBinary() _ = yym2765 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2766 := !z.EncBinary() yy2arr2766 := z.EncBasicHandle().StructToArray var yyq2766 [8]bool _, _, _ = yysep2766, yyq2766, yy2arr2766 const yyr2766 bool = false yyq2766[0] = x.Kind != "" yyq2766[1] = x.APIVersion != "" var yynn2766 int if yyr2766 || yy2arr2766 { r.EncodeArrayStart(8) } else { yynn2766 = 6 for _, b := range yyq2766 { if b { yynn2766++ } } r.EncodeMapStart(yynn2766) yynn2766 = 0 } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2766[0] { yym2768 := z.EncBinary() _ = yym2768 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2766[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2769 := z.EncBinary() _ = yym2769 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2766[1] { yym2771 := z.EncBinary() _ = yym2771 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2766[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2772 := z.EncBinary() _ = yym2772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2774 := z.EncBinary() _ = yym2774 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2775 := z.EncBinary() _ = yym2775 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2777 := z.EncBinary() _ = yym2777 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2778 := z.EncBinary() _ = yym2778 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2780 := z.EncBinary() _ = yym2780 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2781 := z.EncBinary() _ = yym2781 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2783 := z.EncBinary() _ = yym2783 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2784 := z.EncBinary() _ = yym2784 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2786 := z.EncBinary() _ = yym2786 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) yym2787 := z.EncBinary() _ = yym2787 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr2766 || yy2arr2766 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym2789 := z.EncBinary() _ = yym2789 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 { yym2790 := z.EncBinary() _ = yym2790 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr2766 || yy2arr2766 { 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 yym2791 := z.DecBinary() _ = yym2791 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2792 := r.ContainerType() if yyct2792 == codecSelferValueTypeMap1234 { yyl2792 := r.ReadMapStart() if yyl2792 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2792, d) } } else if yyct2792 == codecSelferValueTypeArray1234 { yyl2792 := r.ReadArrayStart() if yyl2792 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2792, 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 yys2793Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2793Slc var yyhl2793 bool = l >= 0 for yyj2793 := 0; ; yyj2793++ { if yyhl2793 { if yyj2793 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2793Slc = r.DecodeBytes(yys2793Slc, true, true) yys2793 := string(yys2793Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2793 { 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 { yyv2801 := &x.Command yym2802 := z.DecBinary() _ = yym2802 if false { } else { z.F.DecSliceStringX(yyv2801, false, d) } } default: z.DecStructFieldNotFound(-1, yys2793) } // end switch yys2793 } // end for yyj2793 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 yyj2803 int var yyb2803 bool var yyhl2803 bool = l >= 0 yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv2811 := &x.Command yym2812 := z.DecBinary() _ = yym2812 if false { } else { z.F.DecSliceStringX(yyv2811, false, d) } } for { yyj2803++ if yyhl2803 { yyb2803 = yyj2803 > l } else { yyb2803 = r.CheckBreak() } if yyb2803 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2803-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 { yym2813 := z.EncBinary() _ = yym2813 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2814 := !z.EncBinary() yy2arr2814 := z.EncBasicHandle().StructToArray var yyq2814 [3]bool _, _, _ = yysep2814, yyq2814, yy2arr2814 const yyr2814 bool = false yyq2814[0] = x.Kind != "" yyq2814[1] = x.APIVersion != "" var yynn2814 int if yyr2814 || yy2arr2814 { r.EncodeArrayStart(3) } else { yynn2814 = 1 for _, b := range yyq2814 { if b { yynn2814++ } } r.EncodeMapStart(yynn2814) yynn2814 = 0 } if yyr2814 || yy2arr2814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2814[0] { yym2816 := z.EncBinary() _ = yym2816 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2814[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2817 := z.EncBinary() _ = yym2817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2814 || yy2arr2814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2814[1] { yym2819 := z.EncBinary() _ = yym2819 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2814[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2820 := z.EncBinary() _ = yym2820 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2814 || yy2arr2814 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2822 := z.EncBinary() _ = yym2822 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) yym2823 := z.EncBinary() _ = yym2823 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr2814 || yy2arr2814 { 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 yym2824 := z.DecBinary() _ = yym2824 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2825 := r.ContainerType() if yyct2825 == codecSelferValueTypeMap1234 { yyl2825 := r.ReadMapStart() if yyl2825 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2825, d) } } else if yyct2825 == codecSelferValueTypeArray1234 { yyl2825 := r.ReadArrayStart() if yyl2825 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2825, 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 yys2826Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2826Slc var yyhl2826 bool = l >= 0 for yyj2826 := 0; ; yyj2826++ { if yyhl2826 { if yyj2826 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2826Slc = r.DecodeBytes(yys2826Slc, true, true) yys2826 := string(yys2826Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2826 { 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, yys2826) } // end switch yys2826 } // end for yyj2826 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 yyj2830 int var yyb2830 bool var yyhl2830 bool = l >= 0 yyj2830++ if yyhl2830 { yyb2830 = yyj2830 > l } else { yyb2830 = r.CheckBreak() } if yyb2830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2830++ if yyhl2830 { yyb2830 = yyj2830 > l } else { yyb2830 = r.CheckBreak() } if yyb2830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2830++ if yyhl2830 { yyb2830 = yyj2830 > l } else { yyb2830 = r.CheckBreak() } if yyb2830 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj2830++ if yyhl2830 { yyb2830 = yyj2830 > l } else { yyb2830 = r.CheckBreak() } if yyb2830 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2830-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 { yym2834 := z.EncBinary() _ = yym2834 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2835 := !z.EncBinary() yy2arr2835 := z.EncBasicHandle().StructToArray var yyq2835 [7]bool _, _, _ = yysep2835, yyq2835, yy2arr2835 const yyr2835 bool = false yyq2835[0] = x.Kind != "" yyq2835[1] = x.Namespace != "" yyq2835[2] = x.Name != "" yyq2835[3] = x.UID != "" yyq2835[4] = x.APIVersion != "" yyq2835[5] = x.ResourceVersion != "" yyq2835[6] = x.FieldPath != "" var yynn2835 int if yyr2835 || yy2arr2835 { r.EncodeArrayStart(7) } else { yynn2835 = 0 for _, b := range yyq2835 { if b { yynn2835++ } } r.EncodeMapStart(yynn2835) yynn2835 = 0 } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[0] { yym2837 := z.EncBinary() _ = yym2837 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2835[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2838 := z.EncBinary() _ = yym2838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[1] { yym2840 := z.EncBinary() _ = yym2840 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2835[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2841 := z.EncBinary() _ = yym2841 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[2] { yym2843 := z.EncBinary() _ = yym2843 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2835[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2844 := z.EncBinary() _ = yym2844 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[3] { yym2846 := z.EncBinary() _ = yym2846 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 yyq2835[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2847 := z.EncBinary() _ = yym2847 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[4] { yym2849 := z.EncBinary() _ = yym2849 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2835[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2850 := z.EncBinary() _ = yym2850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[5] { yym2852 := z.EncBinary() _ = yym2852 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2835[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2853 := z.EncBinary() _ = yym2853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr2835 || yy2arr2835 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2835[6] { yym2855 := z.EncBinary() _ = yym2855 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2835[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2856 := z.EncBinary() _ = yym2856 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr2835 || yy2arr2835 { 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 yym2857 := z.DecBinary() _ = yym2857 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2858 := r.ContainerType() if yyct2858 == codecSelferValueTypeMap1234 { yyl2858 := r.ReadMapStart() if yyl2858 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2858, d) } } else if yyct2858 == codecSelferValueTypeArray1234 { yyl2858 := r.ReadArrayStart() if yyl2858 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2858, 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 yys2859Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2859Slc var yyhl2859 bool = l >= 0 for yyj2859 := 0; ; yyj2859++ { if yyhl2859 { if yyj2859 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2859Slc = r.DecodeBytes(yys2859Slc, true, true) yys2859 := string(yys2859Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2859 { 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, yys2859) } // end switch yys2859 } // end for yyj2859 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 yyj2867 int var yyb2867 bool var yyhl2867 bool = l >= 0 yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj2867++ if yyhl2867 { yyb2867 = yyj2867 > l } else { yyb2867 = r.CheckBreak() } if yyb2867 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2867-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 { yym2875 := z.EncBinary() _ = yym2875 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2876 := !z.EncBinary() yy2arr2876 := z.EncBasicHandle().StructToArray var yyq2876 [1]bool _, _, _ = yysep2876, yyq2876, yy2arr2876 const yyr2876 bool = false var yynn2876 int if yyr2876 || yy2arr2876 { r.EncodeArrayStart(1) } else { yynn2876 = 1 for _, b := range yyq2876 { if b { yynn2876++ } } r.EncodeMapStart(yynn2876) yynn2876 = 0 } if yyr2876 || yy2arr2876 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2878 := z.EncBinary() _ = yym2878 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) yym2879 := z.EncBinary() _ = yym2879 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2876 || yy2arr2876 { 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 yym2880 := z.DecBinary() _ = yym2880 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2881 := r.ContainerType() if yyct2881 == codecSelferValueTypeMap1234 { yyl2881 := r.ReadMapStart() if yyl2881 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2881, d) } } else if yyct2881 == codecSelferValueTypeArray1234 { yyl2881 := r.ReadArrayStart() if yyl2881 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2881, 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 yys2882Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2882Slc var yyhl2882 bool = l >= 0 for yyj2882 := 0; ; yyj2882++ { if yyhl2882 { if yyj2882 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2882Slc = r.DecodeBytes(yys2882Slc, true, true) yys2882 := string(yys2882Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2882 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2882) } // end switch yys2882 } // end for yyj2882 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 yyj2884 int var yyb2884 bool var yyhl2884 bool = l >= 0 yyj2884++ if yyhl2884 { yyb2884 = yyj2884 > l } else { yyb2884 = r.CheckBreak() } if yyb2884 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj2884++ if yyhl2884 { yyb2884 = yyj2884 > l } else { yyb2884 = r.CheckBreak() } if yyb2884 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2884-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 { yym2886 := z.EncBinary() _ = yym2886 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2887 := !z.EncBinary() yy2arr2887 := z.EncBasicHandle().StructToArray var yyq2887 [3]bool _, _, _ = yysep2887, yyq2887, yy2arr2887 const yyr2887 bool = false yyq2887[0] = x.Kind != "" yyq2887[1] = x.APIVersion != "" yyq2887[2] = true var yynn2887 int if yyr2887 || yy2arr2887 { r.EncodeArrayStart(3) } else { yynn2887 = 0 for _, b := range yyq2887 { if b { yynn2887++ } } r.EncodeMapStart(yynn2887) yynn2887 = 0 } if yyr2887 || yy2arr2887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2887[0] { yym2889 := z.EncBinary() _ = yym2889 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2887[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2890 := z.EncBinary() _ = yym2890 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2887 || yy2arr2887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2887[1] { yym2892 := z.EncBinary() _ = yym2892 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2887[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2893 := z.EncBinary() _ = yym2893 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2887 || yy2arr2887 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2887[2] { yy2895 := &x.Reference yy2895.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2887[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2896 := &x.Reference yy2896.CodecEncodeSelf(e) } } if yyr2887 || yy2arr2887 { 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 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 *SerializedReference) 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 "reference": if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv2902 := &x.Reference yyv2902.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2899) } // end switch yys2899 } // end for yyj2899 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 yyj2903 int var yyb2903 bool var yyhl2903 bool = l >= 0 yyj2903++ if yyhl2903 { yyb2903 = yyj2903 > l } else { yyb2903 = r.CheckBreak() } if yyb2903 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2903++ if yyhl2903 { yyb2903 = yyj2903 > l } else { yyb2903 = r.CheckBreak() } if yyb2903 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2903++ if yyhl2903 { yyb2903 = yyj2903 > l } else { yyb2903 = r.CheckBreak() } if yyb2903 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv2906 := &x.Reference yyv2906.CodecDecodeSelf(d) } for { yyj2903++ if yyhl2903 { yyb2903 = yyj2903 > l } else { yyb2903 = r.CheckBreak() } if yyb2903 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2903-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 { yym2907 := z.EncBinary() _ = yym2907 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2908 := !z.EncBinary() yy2arr2908 := z.EncBasicHandle().StructToArray var yyq2908 [2]bool _, _, _ = yysep2908, yyq2908, yy2arr2908 const yyr2908 bool = false yyq2908[0] = x.Component != "" yyq2908[1] = x.Host != "" var yynn2908 int if yyr2908 || yy2arr2908 { r.EncodeArrayStart(2) } else { yynn2908 = 0 for _, b := range yyq2908 { if b { yynn2908++ } } r.EncodeMapStart(yynn2908) yynn2908 = 0 } if yyr2908 || yy2arr2908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2908[0] { yym2910 := z.EncBinary() _ = yym2910 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2908[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2911 := z.EncBinary() _ = yym2911 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr2908 || yy2arr2908 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2908[1] { yym2913 := z.EncBinary() _ = yym2913 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2908[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2914 := z.EncBinary() _ = yym2914 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr2908 || yy2arr2908 { 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 yym2915 := z.DecBinary() _ = yym2915 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2916 := r.ContainerType() if yyct2916 == codecSelferValueTypeMap1234 { yyl2916 := r.ReadMapStart() if yyl2916 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2916, d) } } else if yyct2916 == codecSelferValueTypeArray1234 { yyl2916 := r.ReadArrayStart() if yyl2916 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2916, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2917Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2917Slc var yyhl2917 bool = l >= 0 for yyj2917 := 0; ; yyj2917++ { if yyhl2917 { if yyj2917 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2917Slc = r.DecodeBytes(yys2917Slc, true, true) yys2917 := string(yys2917Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2917 { case "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, yys2917) } // end switch yys2917 } // end for yyj2917 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 yyj2920 int var yyb2920 bool var yyhl2920 bool = l >= 0 yyj2920++ if yyhl2920 { yyb2920 = yyj2920 > l } else { yyb2920 = r.CheckBreak() } if yyb2920 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj2920++ if yyhl2920 { yyb2920 = yyj2920 > l } else { yyb2920 = r.CheckBreak() } if yyb2920 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj2920++ if yyhl2920 { yyb2920 = yyj2920 > l } else { yyb2920 = r.CheckBreak() } if yyb2920 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2920-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2923 := z.EncBinary() _ = yym2923 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2924 := !z.EncBinary() yy2arr2924 := z.EncBasicHandle().StructToArray var yyq2924 [11]bool _, _, _ = yysep2924, yyq2924, yy2arr2924 const yyr2924 bool = false yyq2924[0] = x.Kind != "" yyq2924[1] = x.APIVersion != "" yyq2924[2] = true yyq2924[3] = true yyq2924[4] = x.Reason != "" yyq2924[5] = x.Message != "" yyq2924[6] = true yyq2924[7] = true yyq2924[8] = true yyq2924[9] = x.Count != 0 yyq2924[10] = x.Type != "" var yynn2924 int if yyr2924 || yy2arr2924 { r.EncodeArrayStart(11) } else { yynn2924 = 0 for _, b := range yyq2924 { if b { yynn2924++ } } r.EncodeMapStart(yynn2924) yynn2924 = 0 } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[0] { yym2926 := z.EncBinary() _ = yym2926 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2924[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2927 := z.EncBinary() _ = yym2927 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[1] { yym2929 := z.EncBinary() _ = yym2929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2924[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2930 := z.EncBinary() _ = yym2930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[2] { yy2932 := &x.ObjectMeta yy2932.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2924[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2933 := &x.ObjectMeta yy2933.CodecEncodeSelf(e) } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[3] { yy2935 := &x.InvolvedObject yy2935.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2924[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2936 := &x.InvolvedObject yy2936.CodecEncodeSelf(e) } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[4] { yym2938 := z.EncBinary() _ = yym2938 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2924[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2939 := z.EncBinary() _ = yym2939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[5] { yym2941 := z.EncBinary() _ = yym2941 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2924[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2942 := z.EncBinary() _ = yym2942 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[6] { yy2944 := &x.Source yy2944.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2924[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2945 := &x.Source yy2945.CodecEncodeSelf(e) } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[7] { yy2947 := &x.FirstTimestamp yym2948 := z.EncBinary() _ = yym2948 if false { } else if z.HasExtensions() && z.EncExt(yy2947) { } else if yym2948 { z.EncBinaryMarshal(yy2947) } else if !yym2948 && z.IsJSONHandle() { z.EncJSONMarshal(yy2947) } else { z.EncFallback(yy2947) } } else { r.EncodeNil() } } else { if yyq2924[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2949 := &x.FirstTimestamp yym2950 := z.EncBinary() _ = yym2950 if false { } else if z.HasExtensions() && z.EncExt(yy2949) { } else if yym2950 { z.EncBinaryMarshal(yy2949) } else if !yym2950 && z.IsJSONHandle() { z.EncJSONMarshal(yy2949) } else { z.EncFallback(yy2949) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[8] { yy2952 := &x.LastTimestamp yym2953 := z.EncBinary() _ = yym2953 if false { } else if z.HasExtensions() && z.EncExt(yy2952) { } else if yym2953 { z.EncBinaryMarshal(yy2952) } else if !yym2953 && z.IsJSONHandle() { z.EncJSONMarshal(yy2952) } else { z.EncFallback(yy2952) } } else { r.EncodeNil() } } else { if yyq2924[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2954 := &x.LastTimestamp yym2955 := z.EncBinary() _ = yym2955 if false { } else if z.HasExtensions() && z.EncExt(yy2954) { } else if yym2955 { z.EncBinaryMarshal(yy2954) } else if !yym2955 && z.IsJSONHandle() { z.EncJSONMarshal(yy2954) } else { z.EncFallback(yy2954) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[9] { yym2957 := z.EncBinary() _ = yym2957 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq2924[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2958 := z.EncBinary() _ = yym2958 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr2924 || yy2arr2924 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2924[10] { yym2960 := z.EncBinary() _ = yym2960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2924[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2961 := z.EncBinary() _ = yym2961 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr2924 || yy2arr2924 { 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 yym2962 := z.DecBinary() _ = yym2962 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2963 := r.ContainerType() if yyct2963 == codecSelferValueTypeMap1234 { yyl2963 := r.ReadMapStart() if yyl2963 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2963, d) } } else if yyct2963 == codecSelferValueTypeArray1234 { yyl2963 := r.ReadArrayStart() if yyl2963 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2963, 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 yys2964Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2964Slc var yyhl2964 bool = l >= 0 for yyj2964 := 0; ; yyj2964++ { if yyhl2964 { if yyj2964 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2964Slc = r.DecodeBytes(yys2964Slc, true, true) yys2964 := string(yys2964Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2964 { 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 { yyv2967 := &x.ObjectMeta yyv2967.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv2968 := &x.InvolvedObject yyv2968.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 { yyv2971 := &x.Source yyv2971.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv2972 := &x.FirstTimestamp yym2973 := z.DecBinary() _ = yym2973 if false { } else if z.HasExtensions() && z.DecExt(yyv2972) { } else if yym2973 { z.DecBinaryUnmarshal(yyv2972) } else if !yym2973 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2972) } else { z.DecFallback(yyv2972, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv2974 := &x.LastTimestamp yym2975 := z.DecBinary() _ = yym2975 if false { } else if z.HasExtensions() && z.DecExt(yyv2974) { } else if yym2975 { z.DecBinaryUnmarshal(yyv2974) } else if !yym2975 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2974) } else { z.DecFallback(yyv2974, 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, yys2964) } // end switch yys2964 } // end for yyj2964 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 yyj2978 int var yyb2978 bool var yyhl2978 bool = l >= 0 yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2981 := &x.ObjectMeta yyv2981.CodecDecodeSelf(d) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv2982 := &x.InvolvedObject yyv2982.CodecDecodeSelf(d) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv2985 := &x.Source yyv2985.CodecDecodeSelf(d) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv2986 := &x.FirstTimestamp yym2987 := z.DecBinary() _ = yym2987 if false { } else if z.HasExtensions() && z.DecExt(yyv2986) { } else if yym2987 { z.DecBinaryUnmarshal(yyv2986) } else if !yym2987 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2986) } else { z.DecFallback(yyv2986, false) } } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv2988 := &x.LastTimestamp yym2989 := z.DecBinary() _ = yym2989 if false { } else if z.HasExtensions() && z.DecExt(yyv2988) { } else if yym2989 { z.DecBinaryUnmarshal(yyv2988) } else if !yym2989 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2988) } else { z.DecFallback(yyv2988, false) } } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int(r.DecodeInt(codecSelferBitsize1234)) } yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } for { yyj2978++ if yyhl2978 { yyb2978 = yyj2978 > l } else { yyb2978 = r.CheckBreak() } if yyb2978 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2978-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 { yym2992 := z.EncBinary() _ = yym2992 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2993 := !z.EncBinary() yy2arr2993 := z.EncBasicHandle().StructToArray var yyq2993 [4]bool _, _, _ = yysep2993, yyq2993, yy2arr2993 const yyr2993 bool = false yyq2993[0] = x.Kind != "" yyq2993[1] = x.APIVersion != "" yyq2993[2] = true var yynn2993 int if yyr2993 || yy2arr2993 { r.EncodeArrayStart(4) } else { yynn2993 = 1 for _, b := range yyq2993 { if b { yynn2993++ } } r.EncodeMapStart(yynn2993) yynn2993 = 0 } if yyr2993 || yy2arr2993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2993[0] { yym2995 := z.EncBinary() _ = yym2995 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2993[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2996 := z.EncBinary() _ = yym2996 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2993 || yy2arr2993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2993[1] { yym2998 := z.EncBinary() _ = yym2998 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2993[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2999 := z.EncBinary() _ = yym2999 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2993 || yy2arr2993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2993[2] { yy3001 := &x.ListMeta yym3002 := z.EncBinary() _ = yym3002 if false { } else if z.HasExtensions() && z.EncExt(yy3001) { } else { z.EncFallback(yy3001) } } else { r.EncodeNil() } } else { if yyq2993[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3003 := &x.ListMeta yym3004 := z.EncBinary() _ = yym3004 if false { } else if z.HasExtensions() && z.EncExt(yy3003) { } else { z.EncFallback(yy3003) } } } if yyr2993 || yy2arr2993 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3006 := z.EncBinary() _ = yym3006 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 { yym3007 := z.EncBinary() _ = yym3007 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr2993 || yy2arr2993 { 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 yym3008 := z.DecBinary() _ = yym3008 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3009 := r.ContainerType() if yyct3009 == codecSelferValueTypeMap1234 { yyl3009 := r.ReadMapStart() if yyl3009 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3009, d) } } else if yyct3009 == codecSelferValueTypeArray1234 { yyl3009 := r.ReadArrayStart() if yyl3009 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3009, 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 yys3010Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3010Slc var yyhl3010 bool = l >= 0 for yyj3010 := 0; ; yyj3010++ { if yyhl3010 { if yyj3010 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3010Slc = r.DecodeBytes(yys3010Slc, true, true) yys3010 := string(yys3010Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3010 { 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 { yyv3013 := &x.ListMeta yym3014 := z.DecBinary() _ = yym3014 if false { } else if z.HasExtensions() && z.DecExt(yyv3013) { } else { z.DecFallback(yyv3013, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3015 := &x.Items yym3016 := z.DecBinary() _ = yym3016 if false { } else { h.decSliceEvent((*[]Event)(yyv3015), d) } } default: z.DecStructFieldNotFound(-1, yys3010) } // end switch yys3010 } // end for yyj3010 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 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.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.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3020 := &x.ListMeta yym3021 := z.DecBinary() _ = yym3021 if false { } else if z.HasExtensions() && z.DecExt(yyv3020) { } else { z.DecFallback(yyv3020, false) } } 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.Items = nil } else { yyv3022 := &x.Items yym3023 := z.DecBinary() _ = yym3023 if false { } else { h.decSliceEvent((*[]Event)(yyv3022), d) } } 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 *List) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3024 := z.EncBinary() _ = yym3024 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3025 := !z.EncBinary() yy2arr3025 := z.EncBasicHandle().StructToArray var yyq3025 [4]bool _, _, _ = yysep3025, yyq3025, yy2arr3025 const yyr3025 bool = false yyq3025[0] = x.Kind != "" yyq3025[1] = x.APIVersion != "" yyq3025[2] = true var yynn3025 int if yyr3025 || yy2arr3025 { r.EncodeArrayStart(4) } else { yynn3025 = 1 for _, b := range yyq3025 { if b { yynn3025++ } } r.EncodeMapStart(yynn3025) yynn3025 = 0 } if yyr3025 || yy2arr3025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3025[0] { yym3027 := z.EncBinary() _ = yym3027 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3025[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3028 := z.EncBinary() _ = yym3028 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3025 || yy2arr3025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3025[1] { yym3030 := z.EncBinary() _ = yym3030 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3025[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3031 := z.EncBinary() _ = yym3031 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3025 || yy2arr3025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3025[2] { yy3033 := &x.ListMeta yym3034 := z.EncBinary() _ = yym3034 if false { } else if z.HasExtensions() && z.EncExt(yy3033) { } else { z.EncFallback(yy3033) } } else { r.EncodeNil() } } else { if yyq3025[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3035 := &x.ListMeta yym3036 := z.EncBinary() _ = yym3036 if false { } else if z.HasExtensions() && z.EncExt(yy3035) { } else { z.EncFallback(yy3035) } } } if yyr3025 || yy2arr3025 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3038 := z.EncBinary() _ = yym3038 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 { yym3039 := z.EncBinary() _ = yym3039 if false { } else { h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e) } } } if yyr3025 || yy2arr3025 { 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 yym3040 := z.DecBinary() _ = yym3040 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3041 := r.ContainerType() if yyct3041 == codecSelferValueTypeMap1234 { yyl3041 := r.ReadMapStart() if yyl3041 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3041, d) } } else if yyct3041 == codecSelferValueTypeArray1234 { yyl3041 := r.ReadArrayStart() if yyl3041 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3041, 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 yys3042Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3042Slc var yyhl3042 bool = l >= 0 for yyj3042 := 0; ; yyj3042++ { if yyhl3042 { if yyj3042 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3042Slc = r.DecodeBytes(yys3042Slc, true, true) yys3042 := string(yys3042Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3042 { 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 { yyv3045 := &x.ListMeta yym3046 := z.DecBinary() _ = yym3046 if false { } else if z.HasExtensions() && z.DecExt(yyv3045) { } else { z.DecFallback(yyv3045, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3047 := &x.Items yym3048 := z.DecBinary() _ = yym3048 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3047), d) } } default: z.DecStructFieldNotFound(-1, yys3042) } // end switch yys3042 } // end for yyj3042 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 yyj3049 int var yyb3049 bool var yyhl3049 bool = l >= 0 yyj3049++ if yyhl3049 { yyb3049 = yyj3049 > l } else { yyb3049 = r.CheckBreak() } if yyb3049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3049++ if yyhl3049 { yyb3049 = yyj3049 > l } else { yyb3049 = r.CheckBreak() } if yyb3049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3049++ if yyhl3049 { yyb3049 = yyj3049 > l } else { yyb3049 = r.CheckBreak() } if yyb3049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3052 := &x.ListMeta yym3053 := z.DecBinary() _ = yym3053 if false { } else if z.HasExtensions() && z.DecExt(yyv3052) { } else { z.DecFallback(yyv3052, false) } } yyj3049++ if yyhl3049 { yyb3049 = yyj3049 > l } else { yyb3049 = r.CheckBreak() } if yyb3049 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3054 := &x.Items yym3055 := z.DecBinary() _ = yym3055 if false { } else { h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3054), d) } } for { yyj3049++ if yyhl3049 { yyb3049 = yyj3049 > l } else { yyb3049 = r.CheckBreak() } if yyb3049 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3049-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3056 := z.EncBinary() _ = yym3056 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 yym3057 := z.DecBinary() _ = yym3057 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 { yym3058 := z.EncBinary() _ = yym3058 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3059 := !z.EncBinary() yy2arr3059 := z.EncBasicHandle().StructToArray var yyq3059 [6]bool _, _, _ = yysep3059, yyq3059, yy2arr3059 const yyr3059 bool = false yyq3059[0] = x.Type != "" yyq3059[1] = len(x.Max) != 0 yyq3059[2] = len(x.Min) != 0 yyq3059[3] = len(x.Default) != 0 yyq3059[4] = len(x.DefaultRequest) != 0 yyq3059[5] = len(x.MaxLimitRequestRatio) != 0 var yynn3059 int if yyr3059 || yy2arr3059 { r.EncodeArrayStart(6) } else { yynn3059 = 0 for _, b := range yyq3059 { if b { yynn3059++ } } r.EncodeMapStart(yynn3059) yynn3059 = 0 } if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3059[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3059[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3059[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3059[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 yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3059[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3059[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 yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3059[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3059[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 yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3059[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3059[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 yyr3059 || yy2arr3059 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3059[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3059[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 yyr3059 || yy2arr3059 { 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 yym3066 := z.DecBinary() _ = yym3066 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3067 := r.ContainerType() if yyct3067 == codecSelferValueTypeMap1234 { yyl3067 := r.ReadMapStart() if yyl3067 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3067, d) } } else if yyct3067 == codecSelferValueTypeArray1234 { yyl3067 := r.ReadArrayStart() if yyl3067 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3067, 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 yys3068Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3068Slc var yyhl3068 bool = l >= 0 for yyj3068 := 0; ; yyj3068++ { if yyhl3068 { if yyj3068 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3068Slc = r.DecodeBytes(yys3068Slc, true, true) yys3068 := string(yys3068Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3068 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv3070 := &x.Max yyv3070.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv3071 := &x.Min yyv3071.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv3072 := &x.Default yyv3072.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3073 := &x.DefaultRequest yyv3073.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3074 := &x.MaxLimitRequestRatio yyv3074.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3068) } // end switch yys3068 } // end for yyj3068 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 yyj3075 int var yyb3075 bool var yyhl3075 bool = l >= 0 yyj3075++ if yyhl3075 { yyb3075 = yyj3075 > l } else { yyb3075 = r.CheckBreak() } if yyb3075 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj3075++ if yyhl3075 { yyb3075 = yyj3075 > l } else { yyb3075 = r.CheckBreak() } if yyb3075 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv3077 := &x.Max yyv3077.CodecDecodeSelf(d) } yyj3075++ if yyhl3075 { yyb3075 = yyj3075 > l } else { yyb3075 = r.CheckBreak() } if yyb3075 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv3078 := &x.Min yyv3078.CodecDecodeSelf(d) } yyj3075++ if yyhl3075 { yyb3075 = yyj3075 > l } else { yyb3075 = r.CheckBreak() } if yyb3075 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv3079 := &x.Default yyv3079.CodecDecodeSelf(d) } yyj3075++ if yyhl3075 { yyb3075 = yyj3075 > l } else { yyb3075 = r.CheckBreak() } if yyb3075 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv3080 := &x.DefaultRequest yyv3080.CodecDecodeSelf(d) } yyj3075++ if yyhl3075 { yyb3075 = yyj3075 > l } else { yyb3075 = r.CheckBreak() } if yyb3075 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv3081 := &x.MaxLimitRequestRatio yyv3081.CodecDecodeSelf(d) } for { yyj3075++ if yyhl3075 { yyb3075 = yyj3075 > l } else { yyb3075 = r.CheckBreak() } if yyb3075 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3075-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 { yym3082 := z.EncBinary() _ = yym3082 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3083 := !z.EncBinary() yy2arr3083 := z.EncBasicHandle().StructToArray var yyq3083 [1]bool _, _, _ = yysep3083, yyq3083, yy2arr3083 const yyr3083 bool = false var yynn3083 int if yyr3083 || yy2arr3083 { r.EncodeArrayStart(1) } else { yynn3083 = 1 for _, b := range yyq3083 { if b { yynn3083++ } } r.EncodeMapStart(yynn3083) yynn3083 = 0 } if yyr3083 || yy2arr3083 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym3085 := z.EncBinary() _ = yym3085 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 { yym3086 := z.EncBinary() _ = yym3086 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr3083 || yy2arr3083 { 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 yym3087 := z.DecBinary() _ = yym3087 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3088 := r.ContainerType() if yyct3088 == codecSelferValueTypeMap1234 { yyl3088 := r.ReadMapStart() if yyl3088 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3088, d) } } else if yyct3088 == codecSelferValueTypeArray1234 { yyl3088 := r.ReadArrayStart() if yyl3088 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3088, 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 yys3089Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3089Slc var yyhl3089 bool = l >= 0 for yyj3089 := 0; ; yyj3089++ { if yyhl3089 { if yyj3089 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3089Slc = r.DecodeBytes(yys3089Slc, true, true) yys3089 := string(yys3089Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3089 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3090 := &x.Limits yym3091 := z.DecBinary() _ = yym3091 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3090), d) } } default: z.DecStructFieldNotFound(-1, yys3089) } // end switch yys3089 } // end for yyj3089 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 yyj3092 int var yyb3092 bool var yyhl3092 bool = l >= 0 yyj3092++ if yyhl3092 { yyb3092 = yyj3092 > l } else { yyb3092 = r.CheckBreak() } if yyb3092 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv3093 := &x.Limits yym3094 := z.DecBinary() _ = yym3094 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3093), d) } } for { yyj3092++ if yyhl3092 { yyb3092 = yyj3092 > l } else { yyb3092 = r.CheckBreak() } if yyb3092 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3092-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 { yym3095 := z.EncBinary() _ = yym3095 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3096 := !z.EncBinary() yy2arr3096 := z.EncBasicHandle().StructToArray var yyq3096 [4]bool _, _, _ = yysep3096, yyq3096, yy2arr3096 const yyr3096 bool = false yyq3096[0] = x.Kind != "" yyq3096[1] = x.APIVersion != "" yyq3096[2] = true yyq3096[3] = true var yynn3096 int if yyr3096 || yy2arr3096 { r.EncodeArrayStart(4) } else { yynn3096 = 0 for _, b := range yyq3096 { if b { yynn3096++ } } r.EncodeMapStart(yynn3096) yynn3096 = 0 } if yyr3096 || yy2arr3096 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3096[0] { yym3098 := z.EncBinary() _ = yym3098 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3096[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3099 := z.EncBinary() _ = yym3099 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3096 || yy2arr3096 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3096[1] { yym3101 := z.EncBinary() _ = yym3101 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3096[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3102 := z.EncBinary() _ = yym3102 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3096 || yy2arr3096 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3096[2] { yy3104 := &x.ObjectMeta yy3104.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3096[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3105 := &x.ObjectMeta yy3105.CodecEncodeSelf(e) } } if yyr3096 || yy2arr3096 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3096[3] { yy3107 := &x.Spec yy3107.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3096[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3108 := &x.Spec yy3108.CodecEncodeSelf(e) } } if yyr3096 || yy2arr3096 { 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 yym3109 := z.DecBinary() _ = yym3109 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3110 := r.ContainerType() if yyct3110 == codecSelferValueTypeMap1234 { yyl3110 := r.ReadMapStart() if yyl3110 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3110, d) } } else if yyct3110 == codecSelferValueTypeArray1234 { yyl3110 := r.ReadArrayStart() if yyl3110 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3110, 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 yys3111Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3111Slc var yyhl3111 bool = l >= 0 for yyj3111 := 0; ; yyj3111++ { if yyhl3111 { if yyj3111 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3111Slc = r.DecodeBytes(yys3111Slc, true, true) yys3111 := string(yys3111Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3111 { 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 { yyv3114 := &x.ObjectMeta yyv3114.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3115 := &x.Spec yyv3115.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3111) } // end switch yys3111 } // end for yyj3111 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 yyj3116 int var yyb3116 bool var yyhl3116 bool = l >= 0 yyj3116++ if yyhl3116 { yyb3116 = yyj3116 > l } else { yyb3116 = r.CheckBreak() } if yyb3116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3116++ if yyhl3116 { yyb3116 = yyj3116 > l } else { yyb3116 = r.CheckBreak() } if yyb3116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3116++ if yyhl3116 { yyb3116 = yyj3116 > l } else { yyb3116 = r.CheckBreak() } if yyb3116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3119 := &x.ObjectMeta yyv3119.CodecDecodeSelf(d) } yyj3116++ if yyhl3116 { yyb3116 = yyj3116 > l } else { yyb3116 = r.CheckBreak() } if yyb3116 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv3120 := &x.Spec yyv3120.CodecDecodeSelf(d) } for { yyj3116++ if yyhl3116 { yyb3116 = yyj3116 > l } else { yyb3116 = r.CheckBreak() } if yyb3116 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3116-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 { yym3121 := z.EncBinary() _ = yym3121 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3122 := !z.EncBinary() yy2arr3122 := z.EncBasicHandle().StructToArray var yyq3122 [4]bool _, _, _ = yysep3122, yyq3122, yy2arr3122 const yyr3122 bool = false yyq3122[0] = x.Kind != "" yyq3122[1] = x.APIVersion != "" yyq3122[2] = true var yynn3122 int if yyr3122 || yy2arr3122 { r.EncodeArrayStart(4) } else { yynn3122 = 1 for _, b := range yyq3122 { if b { yynn3122++ } } r.EncodeMapStart(yynn3122) yynn3122 = 0 } if yyr3122 || yy2arr3122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3122[0] { yym3124 := z.EncBinary() _ = yym3124 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3122[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3125 := z.EncBinary() _ = yym3125 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3122 || yy2arr3122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3122[1] { yym3127 := z.EncBinary() _ = yym3127 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3122[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3128 := z.EncBinary() _ = yym3128 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3122 || yy2arr3122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3122[2] { yy3130 := &x.ListMeta yym3131 := z.EncBinary() _ = yym3131 if false { } else if z.HasExtensions() && z.EncExt(yy3130) { } else { z.EncFallback(yy3130) } } else { r.EncodeNil() } } else { if yyq3122[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3132 := &x.ListMeta yym3133 := z.EncBinary() _ = yym3133 if false { } else if z.HasExtensions() && z.EncExt(yy3132) { } else { z.EncFallback(yy3132) } } } if yyr3122 || yy2arr3122 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3135 := z.EncBinary() _ = yym3135 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 { yym3136 := z.EncBinary() _ = yym3136 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr3122 || yy2arr3122 { 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 yym3137 := z.DecBinary() _ = yym3137 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3138 := r.ContainerType() if yyct3138 == codecSelferValueTypeMap1234 { yyl3138 := r.ReadMapStart() if yyl3138 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3138, d) } } else if yyct3138 == codecSelferValueTypeArray1234 { yyl3138 := r.ReadArrayStart() if yyl3138 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3138, 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 yys3139Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3139Slc var yyhl3139 bool = l >= 0 for yyj3139 := 0; ; yyj3139++ { if yyhl3139 { if yyj3139 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3139Slc = r.DecodeBytes(yys3139Slc, true, true) yys3139 := string(yys3139Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3139 { 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 { yyv3142 := &x.ListMeta yym3143 := z.DecBinary() _ = yym3143 if false { } else if z.HasExtensions() && z.DecExt(yyv3142) { } else { z.DecFallback(yyv3142, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3144 := &x.Items yym3145 := z.DecBinary() _ = yym3145 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3144), d) } } default: z.DecStructFieldNotFound(-1, yys3139) } // end switch yys3139 } // end for yyj3139 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 yyj3146 int var yyb3146 bool var yyhl3146 bool = l >= 0 yyj3146++ if yyhl3146 { yyb3146 = yyj3146 > l } else { yyb3146 = r.CheckBreak() } if yyb3146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3146++ if yyhl3146 { yyb3146 = yyj3146 > l } else { yyb3146 = r.CheckBreak() } if yyb3146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3146++ if yyhl3146 { yyb3146 = yyj3146 > l } else { yyb3146 = r.CheckBreak() } if yyb3146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3149 := &x.ListMeta yym3150 := z.DecBinary() _ = yym3150 if false { } else if z.HasExtensions() && z.DecExt(yyv3149) { } else { z.DecFallback(yyv3149, false) } } yyj3146++ if yyhl3146 { yyb3146 = yyj3146 > l } else { yyb3146 = r.CheckBreak() } if yyb3146 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3151 := &x.Items yym3152 := z.DecBinary() _ = yym3152 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv3151), d) } } for { yyj3146++ if yyhl3146 { yyb3146 = yyj3146 > l } else { yyb3146 = r.CheckBreak() } if yyb3146 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3146-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 { yym3153 := z.EncBinary() _ = yym3153 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3154 := !z.EncBinary() yy2arr3154 := z.EncBasicHandle().StructToArray var yyq3154 [1]bool _, _, _ = yysep3154, yyq3154, yy2arr3154 const yyr3154 bool = false yyq3154[0] = len(x.Hard) != 0 var yynn3154 int if yyr3154 || yy2arr3154 { r.EncodeArrayStart(1) } else { yynn3154 = 0 for _, b := range yyq3154 { if b { yynn3154++ } } r.EncodeMapStart(yynn3154) yynn3154 = 0 } if yyr3154 || yy2arr3154 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3154[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3154[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 yyr3154 || yy2arr3154 { 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 yym3156 := z.DecBinary() _ = yym3156 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3157 := r.ContainerType() if yyct3157 == codecSelferValueTypeMap1234 { yyl3157 := r.ReadMapStart() if yyl3157 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3157, d) } } else if yyct3157 == codecSelferValueTypeArray1234 { yyl3157 := r.ReadArrayStart() if yyl3157 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3157, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3158Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3158Slc var yyhl3158 bool = l >= 0 for yyj3158 := 0; ; yyj3158++ { if yyhl3158 { if yyj3158 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3158Slc = r.DecodeBytes(yys3158Slc, true, true) yys3158 := string(yys3158Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3158 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3159 := &x.Hard yyv3159.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3158) } // end switch yys3158 } // end for yyj3158 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 yyj3160 int var yyb3160 bool var yyhl3160 bool = l >= 0 yyj3160++ if yyhl3160 { yyb3160 = yyj3160 > l } else { yyb3160 = r.CheckBreak() } if yyb3160 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3161 := &x.Hard yyv3161.CodecDecodeSelf(d) } for { yyj3160++ if yyhl3160 { yyb3160 = yyj3160 > l } else { yyb3160 = r.CheckBreak() } if yyb3160 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3160-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 { yym3162 := z.EncBinary() _ = yym3162 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3163 := !z.EncBinary() yy2arr3163 := z.EncBasicHandle().StructToArray var yyq3163 [2]bool _, _, _ = yysep3163, yyq3163, yy2arr3163 const yyr3163 bool = false yyq3163[0] = len(x.Hard) != 0 yyq3163[1] = len(x.Used) != 0 var yynn3163 int if yyr3163 || yy2arr3163 { r.EncodeArrayStart(2) } else { yynn3163 = 0 for _, b := range yyq3163 { if b { yynn3163++ } } r.EncodeMapStart(yynn3163) yynn3163 = 0 } if yyr3163 || yy2arr3163 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3163[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3163[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 yyr3163 || yy2arr3163 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3163[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3163[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 yyr3163 || yy2arr3163 { 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 yym3166 := z.DecBinary() _ = yym3166 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3167 := r.ContainerType() if yyct3167 == codecSelferValueTypeMap1234 { yyl3167 := r.ReadMapStart() if yyl3167 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3167, d) } } else if yyct3167 == codecSelferValueTypeArray1234 { yyl3167 := r.ReadArrayStart() if yyl3167 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3167, 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 yys3168Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3168Slc var yyhl3168 bool = l >= 0 for yyj3168 := 0; ; yyj3168++ { if yyhl3168 { if yyj3168 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3168Slc = r.DecodeBytes(yys3168Slc, true, true) yys3168 := string(yys3168Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3168 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3169 := &x.Hard yyv3169.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv3170 := &x.Used yyv3170.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3168) } // end switch yys3168 } // end for yyj3168 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 yyj3171 int var yyb3171 bool var yyhl3171 bool = l >= 0 yyj3171++ if yyhl3171 { yyb3171 = yyj3171 > l } else { yyb3171 = r.CheckBreak() } if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv3172 := &x.Hard yyv3172.CodecDecodeSelf(d) } yyj3171++ if yyhl3171 { yyb3171 = yyj3171 > l } else { yyb3171 = r.CheckBreak() } if yyb3171 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv3173 := &x.Used yyv3173.CodecDecodeSelf(d) } for { yyj3171++ if yyhl3171 { yyb3171 = yyj3171 > l } else { yyb3171 = r.CheckBreak() } if yyb3171 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3171-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 { yym3174 := z.EncBinary() _ = yym3174 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3175 := !z.EncBinary() yy2arr3175 := z.EncBasicHandle().StructToArray var yyq3175 [5]bool _, _, _ = yysep3175, yyq3175, yy2arr3175 const yyr3175 bool = false yyq3175[0] = x.Kind != "" yyq3175[1] = x.APIVersion != "" yyq3175[2] = true yyq3175[3] = true yyq3175[4] = true var yynn3175 int if yyr3175 || yy2arr3175 { r.EncodeArrayStart(5) } else { yynn3175 = 0 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.ObjectMeta yy3183.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3175[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3184 := &x.ObjectMeta yy3184.CodecEncodeSelf(e) } } if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3175[3] { yy3186 := &x.Spec yy3186.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3175[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3187 := &x.Spec yy3187.CodecEncodeSelf(e) } } if yyr3175 || yy2arr3175 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3175[4] { yy3189 := &x.Status yy3189.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3175[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3190 := &x.Status yy3190.CodecEncodeSelf(e) } } if yyr3175 || yy2arr3175 { 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 yym3191 := z.DecBinary() _ = yym3191 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3192 := r.ContainerType() if yyct3192 == codecSelferValueTypeMap1234 { yyl3192 := r.ReadMapStart() if yyl3192 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3192, d) } } else if yyct3192 == codecSelferValueTypeArray1234 { yyl3192 := r.ReadArrayStart() if yyl3192 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3192, 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 yys3193Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3193Slc var yyhl3193 bool = l >= 0 for yyj3193 := 0; ; yyj3193++ { if yyhl3193 { if yyj3193 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3193Slc = r.DecodeBytes(yys3193Slc, true, true) yys3193 := string(yys3193Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3193 { 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 { yyv3196 := &x.ObjectMeta yyv3196.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv3197 := &x.Spec yyv3197.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv3198 := &x.Status yyv3198.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3193) } // end switch yys3193 } // end for yyj3193 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 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.ObjectMeta = ObjectMeta{} } else { yyv3202 := &x.ObjectMeta yyv3202.CodecDecodeSelf(d) } 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.Spec = ResourceQuotaSpec{} } else { yyv3203 := &x.Spec yyv3203.CodecDecodeSelf(d) } 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.Status = ResourceQuotaStatus{} } else { yyv3204 := &x.Status yyv3204.CodecDecodeSelf(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 *ResourceQuotaList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3205 := z.EncBinary() _ = yym3205 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3206 := !z.EncBinary() yy2arr3206 := z.EncBasicHandle().StructToArray var yyq3206 [4]bool _, _, _ = yysep3206, yyq3206, yy2arr3206 const yyr3206 bool = false yyq3206[0] = x.Kind != "" yyq3206[1] = x.APIVersion != "" yyq3206[2] = true var yynn3206 int if yyr3206 || yy2arr3206 { r.EncodeArrayStart(4) } else { yynn3206 = 1 for _, b := range yyq3206 { if b { yynn3206++ } } r.EncodeMapStart(yynn3206) yynn3206 = 0 } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3206[0] { yym3208 := z.EncBinary() _ = yym3208 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3206[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3209 := z.EncBinary() _ = yym3209 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3206[1] { yym3211 := z.EncBinary() _ = yym3211 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3206[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3212 := z.EncBinary() _ = yym3212 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3206[2] { yy3214 := &x.ListMeta yym3215 := z.EncBinary() _ = yym3215 if false { } else if z.HasExtensions() && z.EncExt(yy3214) { } else { z.EncFallback(yy3214) } } else { r.EncodeNil() } } else { if yyq3206[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3216 := &x.ListMeta yym3217 := z.EncBinary() _ = yym3217 if false { } else if z.HasExtensions() && z.EncExt(yy3216) { } else { z.EncFallback(yy3216) } } } if yyr3206 || yy2arr3206 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3219 := z.EncBinary() _ = yym3219 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 { yym3220 := z.EncBinary() _ = yym3220 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr3206 || yy2arr3206 { 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 yym3221 := z.DecBinary() _ = yym3221 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3222 := r.ContainerType() if yyct3222 == codecSelferValueTypeMap1234 { yyl3222 := r.ReadMapStart() if yyl3222 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3222, d) } } else if yyct3222 == codecSelferValueTypeArray1234 { yyl3222 := r.ReadArrayStart() if yyl3222 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3222, 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 yys3223Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3223Slc var yyhl3223 bool = l >= 0 for yyj3223 := 0; ; yyj3223++ { if yyhl3223 { if yyj3223 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3223Slc = r.DecodeBytes(yys3223Slc, true, true) yys3223 := string(yys3223Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3223 { 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 { yyv3226 := &x.ListMeta yym3227 := z.DecBinary() _ = yym3227 if false { } else if z.HasExtensions() && z.DecExt(yyv3226) { } else { z.DecFallback(yyv3226, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3228 := &x.Items yym3229 := z.DecBinary() _ = yym3229 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3228), d) } } default: z.DecStructFieldNotFound(-1, yys3223) } // end switch yys3223 } // end for yyj3223 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 yyj3230 int var yyb3230 bool var yyhl3230 bool = l >= 0 yyj3230++ if yyhl3230 { yyb3230 = yyj3230 > l } else { yyb3230 = r.CheckBreak() } if yyb3230 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3230++ if yyhl3230 { yyb3230 = yyj3230 > l } else { yyb3230 = r.CheckBreak() } if yyb3230 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3230++ if yyhl3230 { yyb3230 = yyj3230 > l } else { yyb3230 = r.CheckBreak() } if yyb3230 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3233 := &x.ListMeta yym3234 := z.DecBinary() _ = yym3234 if false { } else if z.HasExtensions() && z.DecExt(yyv3233) { } else { z.DecFallback(yyv3233, false) } } yyj3230++ if yyhl3230 { yyb3230 = yyj3230 > l } else { yyb3230 = r.CheckBreak() } if yyb3230 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3235 := &x.Items yym3236 := z.DecBinary() _ = yym3236 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv3235), d) } } for { yyj3230++ if yyhl3230 { yyb3230 = yyj3230 > l } else { yyb3230 = r.CheckBreak() } if yyb3230 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3230-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 { yym3237 := z.EncBinary() _ = yym3237 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3238 := !z.EncBinary() yy2arr3238 := z.EncBasicHandle().StructToArray var yyq3238 [5]bool _, _, _ = yysep3238, yyq3238, yy2arr3238 const yyr3238 bool = false yyq3238[0] = x.Kind != "" yyq3238[1] = x.APIVersion != "" yyq3238[2] = true yyq3238[3] = len(x.Data) != 0 yyq3238[4] = x.Type != "" var yynn3238 int if yyr3238 || yy2arr3238 { r.EncodeArrayStart(5) } else { yynn3238 = 0 for _, b := range yyq3238 { if b { yynn3238++ } } r.EncodeMapStart(yynn3238) yynn3238 = 0 } if yyr3238 || yy2arr3238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3238[0] { yym3240 := z.EncBinary() _ = yym3240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3238[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3241 := z.EncBinary() _ = yym3241 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3238 || yy2arr3238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3238[1] { yym3243 := z.EncBinary() _ = yym3243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3238[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3244 := z.EncBinary() _ = yym3244 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3238 || yy2arr3238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3238[2] { yy3246 := &x.ObjectMeta yy3246.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3238[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3247 := &x.ObjectMeta yy3247.CodecEncodeSelf(e) } } if yyr3238 || yy2arr3238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3238[3] { if x.Data == nil { r.EncodeNil() } else { yym3249 := z.EncBinary() _ = yym3249 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq3238[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym3250 := z.EncBinary() _ = yym3250 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr3238 || yy2arr3238 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3238[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3238[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr3238 || yy2arr3238 { 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 yym3252 := z.DecBinary() _ = yym3252 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3253 := r.ContainerType() if yyct3253 == codecSelferValueTypeMap1234 { yyl3253 := r.ReadMapStart() if yyl3253 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3253, d) } } else if yyct3253 == codecSelferValueTypeArray1234 { yyl3253 := r.ReadArrayStart() if yyl3253 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3253, 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 yys3254Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3254Slc var yyhl3254 bool = l >= 0 for yyj3254 := 0; ; yyj3254++ { if yyhl3254 { if yyj3254 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3254Slc = r.DecodeBytes(yys3254Slc, true, true) yys3254 := string(yys3254Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3254 { 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 { yyv3257 := &x.ObjectMeta yyv3257.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3258 := &x.Data yym3259 := z.DecBinary() _ = yym3259 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3258), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3254) } // end switch yys3254 } // end for yyj3254 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 yyj3261 int var yyb3261 bool var yyhl3261 bool = l >= 0 yyj3261++ if yyhl3261 { yyb3261 = yyj3261 > l } else { yyb3261 = r.CheckBreak() } if yyb3261 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3261++ if yyhl3261 { yyb3261 = yyj3261 > l } else { yyb3261 = r.CheckBreak() } if yyb3261 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3261++ if yyhl3261 { yyb3261 = yyj3261 > l } else { yyb3261 = r.CheckBreak() } if yyb3261 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3264 := &x.ObjectMeta yyv3264.CodecDecodeSelf(d) } yyj3261++ if yyhl3261 { yyb3261 = yyj3261 > l } else { yyb3261 = r.CheckBreak() } if yyb3261 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3265 := &x.Data yym3266 := z.DecBinary() _ = yym3266 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv3265), d) } } yyj3261++ if yyhl3261 { yyb3261 = yyj3261 > l } else { yyb3261 = r.CheckBreak() } if yyb3261 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } for { yyj3261++ if yyhl3261 { yyb3261 = yyj3261 > l } else { yyb3261 = r.CheckBreak() } if yyb3261 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3261-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3268 := z.EncBinary() _ = yym3268 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 yym3269 := z.DecBinary() _ = yym3269 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 { yym3270 := z.EncBinary() _ = yym3270 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3271 := !z.EncBinary() yy2arr3271 := z.EncBasicHandle().StructToArray var yyq3271 [4]bool _, _, _ = yysep3271, yyq3271, yy2arr3271 const yyr3271 bool = false yyq3271[0] = x.Kind != "" yyq3271[1] = x.APIVersion != "" yyq3271[2] = true var yynn3271 int if yyr3271 || yy2arr3271 { r.EncodeArrayStart(4) } else { yynn3271 = 1 for _, b := range yyq3271 { if b { yynn3271++ } } r.EncodeMapStart(yynn3271) yynn3271 = 0 } if yyr3271 || yy2arr3271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3271[0] { yym3273 := z.EncBinary() _ = yym3273 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3271[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3274 := z.EncBinary() _ = yym3274 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3271 || yy2arr3271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3271[1] { yym3276 := z.EncBinary() _ = yym3276 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3271[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3277 := z.EncBinary() _ = yym3277 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3271 || yy2arr3271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3271[2] { yy3279 := &x.ListMeta yym3280 := z.EncBinary() _ = yym3280 if false { } else if z.HasExtensions() && z.EncExt(yy3279) { } else { z.EncFallback(yy3279) } } else { r.EncodeNil() } } else { if yyq3271[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3281 := &x.ListMeta yym3282 := z.EncBinary() _ = yym3282 if false { } else if z.HasExtensions() && z.EncExt(yy3281) { } else { z.EncFallback(yy3281) } } } if yyr3271 || yy2arr3271 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3284 := z.EncBinary() _ = yym3284 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 { yym3285 := z.EncBinary() _ = yym3285 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr3271 || yy2arr3271 { 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 yym3286 := z.DecBinary() _ = yym3286 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3287 := r.ContainerType() if yyct3287 == codecSelferValueTypeMap1234 { yyl3287 := r.ReadMapStart() if yyl3287 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3287, d) } } else if yyct3287 == codecSelferValueTypeArray1234 { yyl3287 := r.ReadArrayStart() if yyl3287 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3287, 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 yys3288Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3288Slc var yyhl3288 bool = l >= 0 for yyj3288 := 0; ; yyj3288++ { if yyhl3288 { if yyj3288 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3288Slc = r.DecodeBytes(yys3288Slc, true, true) yys3288 := string(yys3288Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3288 { 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 { yyv3291 := &x.ListMeta yym3292 := z.DecBinary() _ = yym3292 if false { } else if z.HasExtensions() && z.DecExt(yyv3291) { } else { z.DecFallback(yyv3291, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3293 := &x.Items yym3294 := z.DecBinary() _ = yym3294 if false { } else { h.decSliceSecret((*[]Secret)(yyv3293), d) } } default: z.DecStructFieldNotFound(-1, yys3288) } // end switch yys3288 } // end for yyj3288 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 yyj3295 int var yyb3295 bool var yyhl3295 bool = l >= 0 yyj3295++ if yyhl3295 { yyb3295 = yyj3295 > l } else { yyb3295 = r.CheckBreak() } if yyb3295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3295++ if yyhl3295 { yyb3295 = yyj3295 > l } else { yyb3295 = r.CheckBreak() } if yyb3295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3295++ if yyhl3295 { yyb3295 = yyj3295 > l } else { yyb3295 = r.CheckBreak() } if yyb3295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3298 := &x.ListMeta yym3299 := z.DecBinary() _ = yym3299 if false { } else if z.HasExtensions() && z.DecExt(yyv3298) { } else { z.DecFallback(yyv3298, false) } } yyj3295++ if yyhl3295 { yyb3295 = yyj3295 > l } else { yyb3295 = r.CheckBreak() } if yyb3295 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3300 := &x.Items yym3301 := z.DecBinary() _ = yym3301 if false { } else { h.decSliceSecret((*[]Secret)(yyv3300), d) } } for { yyj3295++ if yyhl3295 { yyb3295 = yyj3295 > l } else { yyb3295 = r.CheckBreak() } if yyb3295 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3295-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3302 := z.EncBinary() _ = yym3302 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 yym3303 := z.DecBinary() _ = yym3303 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 yym3304 := z.EncBinary() _ = yym3304 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 yym3305 := z.DecBinary() _ = yym3305 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 { yym3306 := z.EncBinary() _ = yym3306 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3307 := !z.EncBinary() yy2arr3307 := z.EncBasicHandle().StructToArray var yyq3307 [4]bool _, _, _ = yysep3307, yyq3307, yy2arr3307 const yyr3307 bool = false yyq3307[2] = x.Message != "" yyq3307[3] = x.Error != "" var yynn3307 int if yyr3307 || yy2arr3307 { r.EncodeArrayStart(4) } else { yynn3307 = 2 for _, b := range yyq3307 { if b { yynn3307++ } } r.EncodeMapStart(yynn3307) yynn3307 = 0 } if yyr3307 || yy2arr3307 { 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 yyr3307 || yy2arr3307 { 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 yyr3307 || yy2arr3307 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3307[2] { yym3311 := z.EncBinary() _ = yym3311 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3307[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3312 := z.EncBinary() _ = yym3312 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3307 || yy2arr3307 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3307[3] { yym3314 := z.EncBinary() _ = yym3314 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3307[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3315 := z.EncBinary() _ = yym3315 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr3307 || yy2arr3307 { 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 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 *ComponentCondition) 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 "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, yys3318) } // end switch yys3318 } // end for yyj3318 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 yyj3323 int var yyb3323 bool var yyhl3323 bool = l >= 0 yyj3323++ if yyhl3323 { yyb3323 = yyj3323 > l } else { yyb3323 = r.CheckBreak() } if yyb3323 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj3323++ if yyhl3323 { yyb3323 = yyj3323 > l } else { yyb3323 = r.CheckBreak() } if yyb3323 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3323++ if yyhl3323 { yyb3323 = yyj3323 > l } else { yyb3323 = r.CheckBreak() } if yyb3323 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3323++ if yyhl3323 { yyb3323 = yyj3323 > l } else { yyb3323 = r.CheckBreak() } if yyb3323 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj3323++ if yyhl3323 { yyb3323 = yyj3323 > l } else { yyb3323 = r.CheckBreak() } if yyb3323 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3323-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 { yym3328 := z.EncBinary() _ = yym3328 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3329 := !z.EncBinary() yy2arr3329 := z.EncBasicHandle().StructToArray var yyq3329 [4]bool _, _, _ = yysep3329, yyq3329, yy2arr3329 const yyr3329 bool = false yyq3329[0] = x.Kind != "" yyq3329[1] = x.APIVersion != "" yyq3329[2] = true yyq3329[3] = len(x.Conditions) != 0 var yynn3329 int if yyr3329 || yy2arr3329 { r.EncodeArrayStart(4) } else { yynn3329 = 0 for _, b := range yyq3329 { if b { yynn3329++ } } r.EncodeMapStart(yynn3329) yynn3329 = 0 } if yyr3329 || yy2arr3329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3329[0] { yym3331 := z.EncBinary() _ = yym3331 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3329[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3332 := z.EncBinary() _ = yym3332 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3329 || yy2arr3329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3329[1] { yym3334 := z.EncBinary() _ = yym3334 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3329[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3335 := z.EncBinary() _ = yym3335 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3329 || yy2arr3329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3329[2] { yy3337 := &x.ObjectMeta yy3337.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3329[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3338 := &x.ObjectMeta yy3338.CodecEncodeSelf(e) } } if yyr3329 || yy2arr3329 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3329[3] { if x.Conditions == nil { r.EncodeNil() } else { yym3340 := z.EncBinary() _ = yym3340 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq3329[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym3341 := z.EncBinary() _ = yym3341 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr3329 || yy2arr3329 { 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 yym3342 := z.DecBinary() _ = yym3342 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3343 := r.ContainerType() if yyct3343 == codecSelferValueTypeMap1234 { yyl3343 := r.ReadMapStart() if yyl3343 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3343, d) } } else if yyct3343 == codecSelferValueTypeArray1234 { yyl3343 := r.ReadArrayStart() if yyl3343 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3343, 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 yys3344Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3344Slc var yyhl3344 bool = l >= 0 for yyj3344 := 0; ; yyj3344++ { if yyhl3344 { if yyj3344 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3344Slc = r.DecodeBytes(yys3344Slc, true, true) yys3344 := string(yys3344Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3344 { 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 { yyv3347 := &x.ObjectMeta yyv3347.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3348 := &x.Conditions yym3349 := z.DecBinary() _ = yym3349 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3348), d) } } default: z.DecStructFieldNotFound(-1, yys3344) } // end switch yys3344 } // end for yyj3344 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 yyj3350 int var yyb3350 bool var yyhl3350 bool = l >= 0 yyj3350++ if yyhl3350 { yyb3350 = yyj3350 > l } else { yyb3350 = r.CheckBreak() } if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3350++ if yyhl3350 { yyb3350 = yyj3350 > l } else { yyb3350 = r.CheckBreak() } if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3350++ if yyhl3350 { yyb3350 = yyj3350 > l } else { yyb3350 = r.CheckBreak() } if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3353 := &x.ObjectMeta yyv3353.CodecDecodeSelf(d) } yyj3350++ if yyhl3350 { yyb3350 = yyj3350 > l } else { yyb3350 = r.CheckBreak() } if yyb3350 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3354 := &x.Conditions yym3355 := z.DecBinary() _ = yym3355 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv3354), d) } } for { yyj3350++ if yyhl3350 { yyb3350 = yyj3350 > l } else { yyb3350 = r.CheckBreak() } if yyb3350 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3350-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 { yym3356 := z.EncBinary() _ = yym3356 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3357 := !z.EncBinary() yy2arr3357 := z.EncBasicHandle().StructToArray var yyq3357 [4]bool _, _, _ = yysep3357, yyq3357, yy2arr3357 const yyr3357 bool = false yyq3357[0] = x.Kind != "" yyq3357[1] = x.APIVersion != "" yyq3357[2] = true var yynn3357 int if yyr3357 || yy2arr3357 { r.EncodeArrayStart(4) } else { yynn3357 = 1 for _, b := range yyq3357 { if b { yynn3357++ } } r.EncodeMapStart(yynn3357) yynn3357 = 0 } if yyr3357 || yy2arr3357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3357[0] { yym3359 := z.EncBinary() _ = yym3359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3357[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3360 := z.EncBinary() _ = yym3360 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3357 || yy2arr3357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3357[1] { yym3362 := z.EncBinary() _ = yym3362 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3357[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3363 := z.EncBinary() _ = yym3363 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3357 || yy2arr3357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3357[2] { yy3365 := &x.ListMeta yym3366 := z.EncBinary() _ = yym3366 if false { } else if z.HasExtensions() && z.EncExt(yy3365) { } else { z.EncFallback(yy3365) } } else { r.EncodeNil() } } else { if yyq3357[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3367 := &x.ListMeta yym3368 := z.EncBinary() _ = yym3368 if false { } else if z.HasExtensions() && z.EncExt(yy3367) { } else { z.EncFallback(yy3367) } } } if yyr3357 || yy2arr3357 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3370 := z.EncBinary() _ = yym3370 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 { yym3371 := z.EncBinary() _ = yym3371 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr3357 || yy2arr3357 { 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 yym3372 := z.DecBinary() _ = yym3372 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3373 := r.ContainerType() if yyct3373 == codecSelferValueTypeMap1234 { yyl3373 := r.ReadMapStart() if yyl3373 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3373, d) } } else if yyct3373 == codecSelferValueTypeArray1234 { yyl3373 := r.ReadArrayStart() if yyl3373 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3373, 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 yys3374Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3374Slc var yyhl3374 bool = l >= 0 for yyj3374 := 0; ; yyj3374++ { if yyhl3374 { if yyj3374 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3374Slc = r.DecodeBytes(yys3374Slc, true, true) yys3374 := string(yys3374Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3374 { 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 { yyv3377 := &x.ListMeta yym3378 := z.DecBinary() _ = yym3378 if false { } else if z.HasExtensions() && z.DecExt(yyv3377) { } else { z.DecFallback(yyv3377, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3379 := &x.Items yym3380 := z.DecBinary() _ = yym3380 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3379), d) } } default: z.DecStructFieldNotFound(-1, yys3374) } // end switch yys3374 } // end for yyj3374 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 yyj3381 int var yyb3381 bool var yyhl3381 bool = l >= 0 yyj3381++ if yyhl3381 { yyb3381 = yyj3381 > l } else { yyb3381 = r.CheckBreak() } if yyb3381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3381++ if yyhl3381 { yyb3381 = yyj3381 > l } else { yyb3381 = r.CheckBreak() } if yyb3381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3381++ if yyhl3381 { yyb3381 = yyj3381 > l } else { yyb3381 = r.CheckBreak() } if yyb3381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3384 := &x.ListMeta yym3385 := z.DecBinary() _ = yym3385 if false { } else if z.HasExtensions() && z.DecExt(yyv3384) { } else { z.DecFallback(yyv3384, false) } } yyj3381++ if yyhl3381 { yyb3381 = yyj3381 > l } else { yyb3381 = r.CheckBreak() } if yyb3381 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3386 := &x.Items yym3387 := z.DecBinary() _ = yym3387 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv3386), d) } } for { yyj3381++ if yyhl3381 { yyb3381 = yyj3381 > l } else { yyb3381 = r.CheckBreak() } if yyb3381 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3381-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 { yym3388 := z.EncBinary() _ = yym3388 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3389 := !z.EncBinary() yy2arr3389 := z.EncBasicHandle().StructToArray var yyq3389 [5]bool _, _, _ = yysep3389, yyq3389, yy2arr3389 const yyr3389 bool = false yyq3389[0] = x.Capabilities != nil yyq3389[1] = x.Privileged != nil yyq3389[2] = x.SELinuxOptions != nil yyq3389[3] = x.RunAsUser != nil yyq3389[4] = x.RunAsNonRoot != nil var yynn3389 int if yyr3389 || yy2arr3389 { r.EncodeArrayStart(5) } else { yynn3389 = 0 for _, b := range yyq3389 { if b { yynn3389++ } } r.EncodeMapStart(yynn3389) yynn3389 = 0 } if yyr3389 || yy2arr3389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3389[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3389[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 yyr3389 || yy2arr3389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3389[1] { if x.Privileged == nil { r.EncodeNil() } else { yy3392 := *x.Privileged yym3393 := z.EncBinary() _ = yym3393 if false { } else { r.EncodeBool(bool(yy3392)) } } } else { r.EncodeNil() } } else { if yyq3389[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy3394 := *x.Privileged yym3395 := z.EncBinary() _ = yym3395 if false { } else { r.EncodeBool(bool(yy3394)) } } } } if yyr3389 || yy2arr3389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3389[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3389[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 yyr3389 || yy2arr3389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3389[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy3398 := *x.RunAsUser yym3399 := z.EncBinary() _ = yym3399 if false { } else { r.EncodeInt(int64(yy3398)) } } } else { r.EncodeNil() } } else { if yyq3389[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy3400 := *x.RunAsUser yym3401 := z.EncBinary() _ = yym3401 if false { } else { r.EncodeInt(int64(yy3400)) } } } } if yyr3389 || yy2arr3389 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3389[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3403 := *x.RunAsNonRoot yym3404 := z.EncBinary() _ = yym3404 if false { } else { r.EncodeBool(bool(yy3403)) } } } else { r.EncodeNil() } } else { if yyq3389[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy3405 := *x.RunAsNonRoot yym3406 := z.EncBinary() _ = yym3406 if false { } else { r.EncodeBool(bool(yy3405)) } } } } if yyr3389 || yy2arr3389 { 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 yym3407 := z.DecBinary() _ = yym3407 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3408 := r.ContainerType() if yyct3408 == codecSelferValueTypeMap1234 { yyl3408 := r.ReadMapStart() if yyl3408 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3408, d) } } else if yyct3408 == codecSelferValueTypeArray1234 { yyl3408 := r.ReadArrayStart() if yyl3408 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3408, 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 yys3409Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3409Slc var yyhl3409 bool = l >= 0 for yyj3409 := 0; ; yyj3409++ { if yyhl3409 { if yyj3409 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3409Slc = r.DecodeBytes(yys3409Slc, true, true) yys3409 := string(yys3409Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3409 { 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) } yym3412 := z.DecBinary() _ = yym3412 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) } yym3415 := z.DecBinary() _ = yym3415 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) } yym3417 := z.DecBinary() _ = yym3417 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3409) } // end switch yys3409 } // end for yyj3409 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 yyj3418 int var yyb3418 bool var yyhl3418 bool = l >= 0 yyj3418++ if yyhl3418 { yyb3418 = yyj3418 > l } else { yyb3418 = r.CheckBreak() } if yyb3418 { 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) } yyj3418++ if yyhl3418 { yyb3418 = yyj3418 > l } else { yyb3418 = r.CheckBreak() } if yyb3418 { 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) } yym3421 := z.DecBinary() _ = yym3421 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj3418++ if yyhl3418 { yyb3418 = yyj3418 > l } else { yyb3418 = r.CheckBreak() } if yyb3418 { 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) } yyj3418++ if yyhl3418 { yyb3418 = yyj3418 > l } else { yyb3418 = r.CheckBreak() } if yyb3418 { 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) } yym3424 := z.DecBinary() _ = yym3424 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj3418++ if yyhl3418 { yyb3418 = yyj3418 > l } else { yyb3418 = r.CheckBreak() } if yyb3418 { 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) } yym3426 := z.DecBinary() _ = yym3426 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } for { yyj3418++ if yyhl3418 { yyb3418 = yyj3418 > l } else { yyb3418 = r.CheckBreak() } if yyb3418 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3418-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 { yym3427 := z.EncBinary() _ = yym3427 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3428 := !z.EncBinary() yy2arr3428 := z.EncBasicHandle().StructToArray var yyq3428 [4]bool _, _, _ = yysep3428, yyq3428, yy2arr3428 const yyr3428 bool = false yyq3428[0] = x.User != "" yyq3428[1] = x.Role != "" yyq3428[2] = x.Type != "" yyq3428[3] = x.Level != "" var yynn3428 int if yyr3428 || yy2arr3428 { r.EncodeArrayStart(4) } else { yynn3428 = 0 for _, b := range yyq3428 { if b { yynn3428++ } } r.EncodeMapStart(yynn3428) yynn3428 = 0 } if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3428[0] { yym3430 := z.EncBinary() _ = yym3430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3428[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3431 := z.EncBinary() _ = yym3431 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3428[1] { yym3433 := z.EncBinary() _ = yym3433 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3428[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3434 := z.EncBinary() _ = yym3434 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3428[2] { yym3436 := z.EncBinary() _ = yym3436 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3428[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3437 := z.EncBinary() _ = yym3437 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3428[3] { yym3439 := z.EncBinary() _ = yym3439 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3428[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3440 := z.EncBinary() _ = yym3440 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr3428 || yy2arr3428 { 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 yym3441 := z.DecBinary() _ = yym3441 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3442 := r.ContainerType() if yyct3442 == codecSelferValueTypeMap1234 { yyl3442 := r.ReadMapStart() if yyl3442 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3442, d) } } else if yyct3442 == codecSelferValueTypeArray1234 { yyl3442 := r.ReadArrayStart() if yyl3442 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3442, 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 yys3443Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3443Slc var yyhl3443 bool = l >= 0 for yyj3443 := 0; ; yyj3443++ { if yyhl3443 { if yyj3443 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3443Slc = r.DecodeBytes(yys3443Slc, true, true) yys3443 := string(yys3443Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3443 { 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, yys3443) } // end switch yys3443 } // end for yyj3443 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 yyj3448 int var yyb3448 bool var yyhl3448 bool = l >= 0 yyj3448++ if yyhl3448 { yyb3448 = yyj3448 > l } else { yyb3448 = r.CheckBreak() } if yyb3448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj3448++ if yyhl3448 { yyb3448 = yyj3448 > l } else { yyb3448 = r.CheckBreak() } if yyb3448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj3448++ if yyhl3448 { yyb3448 = yyj3448 > l } else { yyb3448 = r.CheckBreak() } if yyb3448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj3448++ if yyhl3448 { yyb3448 = yyj3448 > l } else { yyb3448 = r.CheckBreak() } if yyb3448 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj3448++ if yyhl3448 { yyb3448 = yyj3448 > l } else { yyb3448 = r.CheckBreak() } if yyb3448 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3448-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 { yym3453 := z.EncBinary() _ = yym3453 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3454 := !z.EncBinary() yy2arr3454 := z.EncBasicHandle().StructToArray var yyq3454 [5]bool _, _, _ = yysep3454, yyq3454, yy2arr3454 const yyr3454 bool = false yyq3454[0] = x.Kind != "" yyq3454[1] = x.APIVersion != "" yyq3454[2] = true var yynn3454 int if yyr3454 || yy2arr3454 { r.EncodeArrayStart(5) } else { yynn3454 = 2 for _, b := range yyq3454 { if b { yynn3454++ } } r.EncodeMapStart(yynn3454) yynn3454 = 0 } if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3454[0] { yym3456 := z.EncBinary() _ = yym3456 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3454[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3457 := z.EncBinary() _ = yym3457 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3454[1] { yym3459 := z.EncBinary() _ = yym3459 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3454[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3460 := z.EncBinary() _ = yym3460 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3454[2] { yy3462 := &x.ObjectMeta yy3462.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3454[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3463 := &x.ObjectMeta yy3463.CodecEncodeSelf(e) } } if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3465 := z.EncBinary() _ = yym3465 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) yym3466 := z.EncBinary() _ = yym3466 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr3454 || yy2arr3454 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym3468 := z.EncBinary() _ = yym3468 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 { yym3469 := z.EncBinary() _ = yym3469 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr3454 || yy2arr3454 { 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 yym3470 := z.DecBinary() _ = yym3470 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3471 := r.ContainerType() if yyct3471 == codecSelferValueTypeMap1234 { yyl3471 := r.ReadMapStart() if yyl3471 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3471, d) } } else if yyct3471 == codecSelferValueTypeArray1234 { yyl3471 := r.ReadArrayStart() if yyl3471 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3471, 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 yys3472Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3472Slc var yyhl3472 bool = l >= 0 for yyj3472 := 0; ; yyj3472++ { if yyhl3472 { if yyj3472 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3472Slc = r.DecodeBytes(yys3472Slc, true, true) yys3472 := string(yys3472Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3472 { 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 { yyv3475 := &x.ObjectMeta yyv3475.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv3477 := &x.Data yym3478 := z.DecBinary() _ = yym3478 if false { } else { *yyv3477 = r.DecodeBytes(*(*[]byte)(yyv3477), false, false) } } default: z.DecStructFieldNotFound(-1, yys3472) } // end switch yys3472 } // end for yyj3472 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 yyj3479 int var yyb3479 bool var yyhl3479 bool = l >= 0 yyj3479++ if yyhl3479 { yyb3479 = yyj3479 > l } else { yyb3479 = r.CheckBreak() } if yyb3479 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3479++ if yyhl3479 { yyb3479 = yyj3479 > l } else { yyb3479 = r.CheckBreak() } if yyb3479 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3479++ if yyhl3479 { yyb3479 = yyj3479 > l } else { yyb3479 = r.CheckBreak() } if yyb3479 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3482 := &x.ObjectMeta yyv3482.CodecDecodeSelf(d) } yyj3479++ if yyhl3479 { yyb3479 = yyj3479 > l } else { yyb3479 = r.CheckBreak() } if yyb3479 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj3479++ if yyhl3479 { yyb3479 = yyj3479 > l } else { yyb3479 = r.CheckBreak() } if yyb3479 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv3484 := &x.Data yym3485 := z.DecBinary() _ = yym3485 if false { } else { *yyv3484 = r.DecodeBytes(*(*[]byte)(yyv3484), false, false) } } for { yyj3479++ if yyhl3479 { yyb3479 = yyj3479 > l } else { yyb3479 = r.CheckBreak() } if yyb3479 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3479-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 _, yyv3486 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3486.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 yyv3487 := *v yyh3487, yyl3487 := z.DecSliceHelperStart() var yyc3487 bool if yyl3487 == 0 { if yyv3487 == nil { yyv3487 = []PersistentVolumeAccessMode{} yyc3487 = true } else if len(yyv3487) != 0 { yyv3487 = yyv3487[:0] yyc3487 = true } } else if yyl3487 > 0 { var yyrr3487, yyrl3487 int var yyrt3487 bool if yyl3487 > cap(yyv3487) { yyrl3487, yyrt3487 = z.DecInferLen(yyl3487, z.DecBasicHandle().MaxInitLen, 16) if yyrt3487 { if yyrl3487 <= cap(yyv3487) { yyv3487 = yyv3487[:yyrl3487] } else { yyv3487 = make([]PersistentVolumeAccessMode, yyrl3487) } } else { yyv3487 = make([]PersistentVolumeAccessMode, yyrl3487) } yyc3487 = true yyrr3487 = len(yyv3487) } else if yyl3487 != len(yyv3487) { yyv3487 = yyv3487[:yyl3487] yyc3487 = true } yyj3487 := 0 for ; yyj3487 < yyrr3487; yyj3487++ { yyh3487.ElemContainerState(yyj3487) if r.TryDecodeAsNil() { yyv3487[yyj3487] = "" } else { yyv3487[yyj3487] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt3487 { for ; yyj3487 < yyl3487; yyj3487++ { yyv3487 = append(yyv3487, "") yyh3487.ElemContainerState(yyj3487) if r.TryDecodeAsNil() { yyv3487[yyj3487] = "" } else { yyv3487[yyj3487] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj3487 := 0 for ; !r.CheckBreak(); yyj3487++ { if yyj3487 >= len(yyv3487) { yyv3487 = append(yyv3487, "") // var yyz3487 PersistentVolumeAccessMode yyc3487 = true } yyh3487.ElemContainerState(yyj3487) if yyj3487 < len(yyv3487) { if r.TryDecodeAsNil() { yyv3487[yyj3487] = "" } else { yyv3487[yyj3487] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3487 < len(yyv3487) { yyv3487 = yyv3487[:yyj3487] yyc3487 = true } else if yyj3487 == 0 && yyv3487 == nil { yyv3487 = []PersistentVolumeAccessMode{} yyc3487 = true } } yyh3487.End() if yyc3487 { *v = yyv3487 } } 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 _, yyv3491 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3492 := &yyv3491 yy3492.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 yyv3493 := *v yyh3493, yyl3493 := z.DecSliceHelperStart() var yyc3493 bool if yyl3493 == 0 { if yyv3493 == nil { yyv3493 = []PersistentVolume{} yyc3493 = true } else if len(yyv3493) != 0 { yyv3493 = yyv3493[:0] yyc3493 = true } } else if yyl3493 > 0 { var yyrr3493, yyrl3493 int var yyrt3493 bool if yyl3493 > cap(yyv3493) { yyrg3493 := len(yyv3493) > 0 yyv23493 := yyv3493 yyrl3493, yyrt3493 = z.DecInferLen(yyl3493, z.DecBasicHandle().MaxInitLen, 384) if yyrt3493 { if yyrl3493 <= cap(yyv3493) { yyv3493 = yyv3493[:yyrl3493] } else { yyv3493 = make([]PersistentVolume, yyrl3493) } } else { yyv3493 = make([]PersistentVolume, yyrl3493) } yyc3493 = true yyrr3493 = len(yyv3493) if yyrg3493 { copy(yyv3493, yyv23493) } } else if yyl3493 != len(yyv3493) { yyv3493 = yyv3493[:yyl3493] yyc3493 = true } yyj3493 := 0 for ; yyj3493 < yyrr3493; yyj3493++ { yyh3493.ElemContainerState(yyj3493) if r.TryDecodeAsNil() { yyv3493[yyj3493] = PersistentVolume{} } else { yyv3494 := &yyv3493[yyj3493] yyv3494.CodecDecodeSelf(d) } } if yyrt3493 { for ; yyj3493 < yyl3493; yyj3493++ { yyv3493 = append(yyv3493, PersistentVolume{}) yyh3493.ElemContainerState(yyj3493) if r.TryDecodeAsNil() { yyv3493[yyj3493] = PersistentVolume{} } else { yyv3495 := &yyv3493[yyj3493] yyv3495.CodecDecodeSelf(d) } } } } else { yyj3493 := 0 for ; !r.CheckBreak(); yyj3493++ { if yyj3493 >= len(yyv3493) { yyv3493 = append(yyv3493, PersistentVolume{}) // var yyz3493 PersistentVolume yyc3493 = true } yyh3493.ElemContainerState(yyj3493) if yyj3493 < len(yyv3493) { if r.TryDecodeAsNil() { yyv3493[yyj3493] = PersistentVolume{} } else { yyv3496 := &yyv3493[yyj3493] yyv3496.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3493 < len(yyv3493) { yyv3493 = yyv3493[:yyj3493] yyc3493 = true } else if yyj3493 == 0 && yyv3493 == nil { yyv3493 = []PersistentVolume{} yyc3493 = true } } yyh3493.End() if yyc3493 { *v = yyv3493 } } 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 _, yyv3497 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3498 := &yyv3497 yy3498.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 yyv3499 := *v yyh3499, yyl3499 := z.DecSliceHelperStart() var yyc3499 bool if yyl3499 == 0 { if yyv3499 == nil { yyv3499 = []PersistentVolumeClaim{} yyc3499 = true } else if len(yyv3499) != 0 { yyv3499 = yyv3499[:0] yyc3499 = true } } else if yyl3499 > 0 { var yyrr3499, yyrl3499 int var yyrt3499 bool if yyl3499 > cap(yyv3499) { yyrg3499 := len(yyv3499) > 0 yyv23499 := yyv3499 yyrl3499, yyrt3499 = z.DecInferLen(yyl3499, z.DecBasicHandle().MaxInitLen, 296) if yyrt3499 { if yyrl3499 <= cap(yyv3499) { yyv3499 = yyv3499[:yyrl3499] } else { yyv3499 = make([]PersistentVolumeClaim, yyrl3499) } } else { yyv3499 = make([]PersistentVolumeClaim, yyrl3499) } yyc3499 = true yyrr3499 = len(yyv3499) if yyrg3499 { copy(yyv3499, yyv23499) } } else if yyl3499 != len(yyv3499) { yyv3499 = yyv3499[:yyl3499] yyc3499 = true } yyj3499 := 0 for ; yyj3499 < yyrr3499; yyj3499++ { yyh3499.ElemContainerState(yyj3499) if r.TryDecodeAsNil() { yyv3499[yyj3499] = PersistentVolumeClaim{} } else { yyv3500 := &yyv3499[yyj3499] yyv3500.CodecDecodeSelf(d) } } if yyrt3499 { for ; yyj3499 < yyl3499; yyj3499++ { yyv3499 = append(yyv3499, PersistentVolumeClaim{}) yyh3499.ElemContainerState(yyj3499) if r.TryDecodeAsNil() { yyv3499[yyj3499] = PersistentVolumeClaim{} } else { yyv3501 := &yyv3499[yyj3499] yyv3501.CodecDecodeSelf(d) } } } } else { yyj3499 := 0 for ; !r.CheckBreak(); yyj3499++ { if yyj3499 >= len(yyv3499) { yyv3499 = append(yyv3499, PersistentVolumeClaim{}) // var yyz3499 PersistentVolumeClaim yyc3499 = true } yyh3499.ElemContainerState(yyj3499) if yyj3499 < len(yyv3499) { if r.TryDecodeAsNil() { yyv3499[yyj3499] = PersistentVolumeClaim{} } else { yyv3502 := &yyv3499[yyj3499] yyv3502.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3499 < len(yyv3499) { yyv3499 = yyv3499[:yyj3499] yyc3499 = true } else if yyj3499 == 0 && yyv3499 == nil { yyv3499 = []PersistentVolumeClaim{} yyc3499 = true } } yyh3499.End() if yyc3499 { *v = yyv3499 } } 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 _, yyv3503 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3504 := &yyv3503 yy3504.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 yyv3505 := *v yyh3505, yyl3505 := z.DecSliceHelperStart() var yyc3505 bool if yyl3505 == 0 { if yyv3505 == nil { yyv3505 = []DownwardAPIVolumeFile{} yyc3505 = true } else if len(yyv3505) != 0 { yyv3505 = yyv3505[:0] yyc3505 = true } } else if yyl3505 > 0 { var yyrr3505, yyrl3505 int var yyrt3505 bool if yyl3505 > cap(yyv3505) { yyrg3505 := len(yyv3505) > 0 yyv23505 := yyv3505 yyrl3505, yyrt3505 = z.DecInferLen(yyl3505, z.DecBasicHandle().MaxInitLen, 48) if yyrt3505 { if yyrl3505 <= cap(yyv3505) { yyv3505 = yyv3505[:yyrl3505] } else { yyv3505 = make([]DownwardAPIVolumeFile, yyrl3505) } } else { yyv3505 = make([]DownwardAPIVolumeFile, yyrl3505) } yyc3505 = true yyrr3505 = len(yyv3505) if yyrg3505 { copy(yyv3505, yyv23505) } } else if yyl3505 != len(yyv3505) { yyv3505 = yyv3505[:yyl3505] yyc3505 = true } yyj3505 := 0 for ; yyj3505 < yyrr3505; yyj3505++ { yyh3505.ElemContainerState(yyj3505) if r.TryDecodeAsNil() { yyv3505[yyj3505] = DownwardAPIVolumeFile{} } else { yyv3506 := &yyv3505[yyj3505] yyv3506.CodecDecodeSelf(d) } } if yyrt3505 { for ; yyj3505 < yyl3505; yyj3505++ { yyv3505 = append(yyv3505, DownwardAPIVolumeFile{}) yyh3505.ElemContainerState(yyj3505) if r.TryDecodeAsNil() { yyv3505[yyj3505] = DownwardAPIVolumeFile{} } else { yyv3507 := &yyv3505[yyj3505] yyv3507.CodecDecodeSelf(d) } } } } else { yyj3505 := 0 for ; !r.CheckBreak(); yyj3505++ { if yyj3505 >= len(yyv3505) { yyv3505 = append(yyv3505, DownwardAPIVolumeFile{}) // var yyz3505 DownwardAPIVolumeFile yyc3505 = true } yyh3505.ElemContainerState(yyj3505) if yyj3505 < len(yyv3505) { if r.TryDecodeAsNil() { yyv3505[yyj3505] = DownwardAPIVolumeFile{} } else { yyv3508 := &yyv3505[yyj3505] yyv3508.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3505 < len(yyv3505) { yyv3505 = yyv3505[:yyj3505] yyc3505 = true } else if yyj3505 == 0 && yyv3505 == nil { yyv3505 = []DownwardAPIVolumeFile{} yyc3505 = true } } yyh3505.End() if yyc3505 { *v = yyv3505 } } 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 _, yyv3509 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3509.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 yyv3510 := *v yyh3510, yyl3510 := z.DecSliceHelperStart() var yyc3510 bool if yyl3510 == 0 { if yyv3510 == nil { yyv3510 = []Capability{} yyc3510 = true } else if len(yyv3510) != 0 { yyv3510 = yyv3510[:0] yyc3510 = true } } else if yyl3510 > 0 { var yyrr3510, yyrl3510 int var yyrt3510 bool if yyl3510 > cap(yyv3510) { yyrl3510, yyrt3510 = z.DecInferLen(yyl3510, z.DecBasicHandle().MaxInitLen, 16) if yyrt3510 { if yyrl3510 <= cap(yyv3510) { yyv3510 = yyv3510[:yyrl3510] } else { yyv3510 = make([]Capability, yyrl3510) } } else { yyv3510 = make([]Capability, yyrl3510) } yyc3510 = true yyrr3510 = len(yyv3510) } else if yyl3510 != len(yyv3510) { yyv3510 = yyv3510[:yyl3510] yyc3510 = true } yyj3510 := 0 for ; yyj3510 < yyrr3510; yyj3510++ { yyh3510.ElemContainerState(yyj3510) if r.TryDecodeAsNil() { yyv3510[yyj3510] = "" } else { yyv3510[yyj3510] = Capability(r.DecodeString()) } } if yyrt3510 { for ; yyj3510 < yyl3510; yyj3510++ { yyv3510 = append(yyv3510, "") yyh3510.ElemContainerState(yyj3510) if r.TryDecodeAsNil() { yyv3510[yyj3510] = "" } else { yyv3510[yyj3510] = Capability(r.DecodeString()) } } } } else { yyj3510 := 0 for ; !r.CheckBreak(); yyj3510++ { if yyj3510 >= len(yyv3510) { yyv3510 = append(yyv3510, "") // var yyz3510 Capability yyc3510 = true } yyh3510.ElemContainerState(yyj3510) if yyj3510 < len(yyv3510) { if r.TryDecodeAsNil() { yyv3510[yyj3510] = "" } else { yyv3510[yyj3510] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3510 < len(yyv3510) { yyv3510 = yyv3510[:yyj3510] yyc3510 = true } else if yyj3510 == 0 && yyv3510 == nil { yyv3510 = []Capability{} yyc3510 = true } } yyh3510.End() if yyc3510 { *v = yyv3510 } } 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 _, yyv3514 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3515 := &yyv3514 yy3515.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 yyv3516 := *v yyh3516, yyl3516 := z.DecSliceHelperStart() var yyc3516 bool if yyl3516 == 0 { if yyv3516 == nil { yyv3516 = []ContainerPort{} yyc3516 = true } else if len(yyv3516) != 0 { yyv3516 = yyv3516[:0] yyc3516 = true } } else if yyl3516 > 0 { var yyrr3516, yyrl3516 int var yyrt3516 bool if yyl3516 > cap(yyv3516) { yyrg3516 := len(yyv3516) > 0 yyv23516 := yyv3516 yyrl3516, yyrt3516 = z.DecInferLen(yyl3516, z.DecBasicHandle().MaxInitLen, 64) if yyrt3516 { if yyrl3516 <= cap(yyv3516) { yyv3516 = yyv3516[:yyrl3516] } else { yyv3516 = make([]ContainerPort, yyrl3516) } } else { yyv3516 = make([]ContainerPort, yyrl3516) } yyc3516 = true yyrr3516 = len(yyv3516) if yyrg3516 { copy(yyv3516, yyv23516) } } else if yyl3516 != len(yyv3516) { yyv3516 = yyv3516[:yyl3516] yyc3516 = true } yyj3516 := 0 for ; yyj3516 < yyrr3516; yyj3516++ { yyh3516.ElemContainerState(yyj3516) if r.TryDecodeAsNil() { yyv3516[yyj3516] = ContainerPort{} } else { yyv3517 := &yyv3516[yyj3516] yyv3517.CodecDecodeSelf(d) } } if yyrt3516 { for ; yyj3516 < yyl3516; yyj3516++ { yyv3516 = append(yyv3516, ContainerPort{}) yyh3516.ElemContainerState(yyj3516) if r.TryDecodeAsNil() { yyv3516[yyj3516] = ContainerPort{} } else { yyv3518 := &yyv3516[yyj3516] yyv3518.CodecDecodeSelf(d) } } } } else { yyj3516 := 0 for ; !r.CheckBreak(); yyj3516++ { if yyj3516 >= len(yyv3516) { yyv3516 = append(yyv3516, ContainerPort{}) // var yyz3516 ContainerPort yyc3516 = true } yyh3516.ElemContainerState(yyj3516) if yyj3516 < len(yyv3516) { if r.TryDecodeAsNil() { yyv3516[yyj3516] = ContainerPort{} } else { yyv3519 := &yyv3516[yyj3516] yyv3519.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3516 < len(yyv3516) { yyv3516 = yyv3516[:yyj3516] yyc3516 = true } else if yyj3516 == 0 && yyv3516 == nil { yyv3516 = []ContainerPort{} yyc3516 = true } } yyh3516.End() if yyc3516 { *v = yyv3516 } } 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 _, yyv3520 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3521 := &yyv3520 yy3521.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 yyv3522 := *v yyh3522, yyl3522 := z.DecSliceHelperStart() var yyc3522 bool if yyl3522 == 0 { if yyv3522 == nil { yyv3522 = []EnvVar{} yyc3522 = true } else if len(yyv3522) != 0 { yyv3522 = yyv3522[:0] yyc3522 = true } } else if yyl3522 > 0 { var yyrr3522, yyrl3522 int var yyrt3522 bool if yyl3522 > cap(yyv3522) { yyrg3522 := len(yyv3522) > 0 yyv23522 := yyv3522 yyrl3522, yyrt3522 = z.DecInferLen(yyl3522, z.DecBasicHandle().MaxInitLen, 40) if yyrt3522 { if yyrl3522 <= cap(yyv3522) { yyv3522 = yyv3522[:yyrl3522] } else { yyv3522 = make([]EnvVar, yyrl3522) } } else { yyv3522 = make([]EnvVar, yyrl3522) } yyc3522 = true yyrr3522 = len(yyv3522) if yyrg3522 { copy(yyv3522, yyv23522) } } else if yyl3522 != len(yyv3522) { yyv3522 = yyv3522[:yyl3522] yyc3522 = true } yyj3522 := 0 for ; yyj3522 < yyrr3522; yyj3522++ { yyh3522.ElemContainerState(yyj3522) if r.TryDecodeAsNil() { yyv3522[yyj3522] = EnvVar{} } else { yyv3523 := &yyv3522[yyj3522] yyv3523.CodecDecodeSelf(d) } } if yyrt3522 { for ; yyj3522 < yyl3522; yyj3522++ { yyv3522 = append(yyv3522, EnvVar{}) yyh3522.ElemContainerState(yyj3522) if r.TryDecodeAsNil() { yyv3522[yyj3522] = EnvVar{} } else { yyv3524 := &yyv3522[yyj3522] yyv3524.CodecDecodeSelf(d) } } } } else { yyj3522 := 0 for ; !r.CheckBreak(); yyj3522++ { if yyj3522 >= len(yyv3522) { yyv3522 = append(yyv3522, EnvVar{}) // var yyz3522 EnvVar yyc3522 = true } yyh3522.ElemContainerState(yyj3522) if yyj3522 < len(yyv3522) { if r.TryDecodeAsNil() { yyv3522[yyj3522] = EnvVar{} } else { yyv3525 := &yyv3522[yyj3522] yyv3525.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3522 < len(yyv3522) { yyv3522 = yyv3522[:yyj3522] yyc3522 = true } else if yyj3522 == 0 && yyv3522 == nil { yyv3522 = []EnvVar{} yyc3522 = true } } yyh3522.End() if yyc3522 { *v = yyv3522 } } 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 _, yyv3526 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3527 := &yyv3526 yy3527.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 yyv3528 := *v yyh3528, yyl3528 := z.DecSliceHelperStart() var yyc3528 bool if yyl3528 == 0 { if yyv3528 == nil { yyv3528 = []VolumeMount{} yyc3528 = true } else if len(yyv3528) != 0 { yyv3528 = yyv3528[:0] yyc3528 = true } } else if yyl3528 > 0 { var yyrr3528, yyrl3528 int var yyrt3528 bool if yyl3528 > cap(yyv3528) { yyrg3528 := len(yyv3528) > 0 yyv23528 := yyv3528 yyrl3528, yyrt3528 = z.DecInferLen(yyl3528, z.DecBasicHandle().MaxInitLen, 40) if yyrt3528 { if yyrl3528 <= cap(yyv3528) { yyv3528 = yyv3528[:yyrl3528] } else { yyv3528 = make([]VolumeMount, yyrl3528) } } else { yyv3528 = make([]VolumeMount, yyrl3528) } yyc3528 = true yyrr3528 = len(yyv3528) if yyrg3528 { copy(yyv3528, yyv23528) } } else if yyl3528 != len(yyv3528) { yyv3528 = yyv3528[:yyl3528] yyc3528 = true } yyj3528 := 0 for ; yyj3528 < yyrr3528; yyj3528++ { yyh3528.ElemContainerState(yyj3528) if r.TryDecodeAsNil() { yyv3528[yyj3528] = VolumeMount{} } else { yyv3529 := &yyv3528[yyj3528] yyv3529.CodecDecodeSelf(d) } } if yyrt3528 { for ; yyj3528 < yyl3528; yyj3528++ { yyv3528 = append(yyv3528, VolumeMount{}) yyh3528.ElemContainerState(yyj3528) if r.TryDecodeAsNil() { yyv3528[yyj3528] = VolumeMount{} } else { yyv3530 := &yyv3528[yyj3528] yyv3530.CodecDecodeSelf(d) } } } } else { yyj3528 := 0 for ; !r.CheckBreak(); yyj3528++ { if yyj3528 >= len(yyv3528) { yyv3528 = append(yyv3528, VolumeMount{}) // var yyz3528 VolumeMount yyc3528 = true } yyh3528.ElemContainerState(yyj3528) if yyj3528 < len(yyv3528) { if r.TryDecodeAsNil() { yyv3528[yyj3528] = VolumeMount{} } else { yyv3531 := &yyv3528[yyj3528] yyv3531.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3528 < len(yyv3528) { yyv3528 = yyv3528[:yyj3528] yyc3528 = true } else if yyj3528 == 0 && yyv3528 == nil { yyv3528 = []VolumeMount{} yyc3528 = true } } yyh3528.End() if yyc3528 { *v = yyv3528 } } 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 _, yyv3532 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3533 := &yyv3532 yy3533.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 yyv3534 := *v yyh3534, yyl3534 := z.DecSliceHelperStart() var yyc3534 bool if yyl3534 == 0 { if yyv3534 == nil { yyv3534 = []Pod{} yyc3534 = true } else if len(yyv3534) != 0 { yyv3534 = yyv3534[:0] yyc3534 = true } } else if yyl3534 > 0 { var yyrr3534, yyrl3534 int var yyrt3534 bool if yyl3534 > cap(yyv3534) { yyrg3534 := len(yyv3534) > 0 yyv23534 := yyv3534 yyrl3534, yyrt3534 = z.DecInferLen(yyl3534, z.DecBasicHandle().MaxInitLen, 496) if yyrt3534 { if yyrl3534 <= cap(yyv3534) { yyv3534 = yyv3534[:yyrl3534] } else { yyv3534 = make([]Pod, yyrl3534) } } else { yyv3534 = make([]Pod, yyrl3534) } yyc3534 = true yyrr3534 = len(yyv3534) if yyrg3534 { copy(yyv3534, yyv23534) } } else if yyl3534 != len(yyv3534) { yyv3534 = yyv3534[:yyl3534] yyc3534 = true } yyj3534 := 0 for ; yyj3534 < yyrr3534; yyj3534++ { yyh3534.ElemContainerState(yyj3534) if r.TryDecodeAsNil() { yyv3534[yyj3534] = Pod{} } else { yyv3535 := &yyv3534[yyj3534] yyv3535.CodecDecodeSelf(d) } } if yyrt3534 { for ; yyj3534 < yyl3534; yyj3534++ { yyv3534 = append(yyv3534, Pod{}) yyh3534.ElemContainerState(yyj3534) if r.TryDecodeAsNil() { yyv3534[yyj3534] = Pod{} } else { yyv3536 := &yyv3534[yyj3534] yyv3536.CodecDecodeSelf(d) } } } } else { yyj3534 := 0 for ; !r.CheckBreak(); yyj3534++ { if yyj3534 >= len(yyv3534) { yyv3534 = append(yyv3534, Pod{}) // var yyz3534 Pod yyc3534 = true } yyh3534.ElemContainerState(yyj3534) if yyj3534 < len(yyv3534) { if r.TryDecodeAsNil() { yyv3534[yyj3534] = Pod{} } else { yyv3537 := &yyv3534[yyj3534] yyv3537.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3534 < len(yyv3534) { yyv3534 = yyv3534[:yyj3534] yyc3534 = true } else if yyj3534 == 0 && yyv3534 == nil { yyv3534 = []Pod{} yyc3534 = true } } yyh3534.End() if yyc3534 { *v = yyv3534 } } 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 _, yyv3538 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3539 := &yyv3538 yy3539.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 yyv3540 := *v yyh3540, yyl3540 := z.DecSliceHelperStart() var yyc3540 bool if yyl3540 == 0 { if yyv3540 == nil { yyv3540 = []Volume{} yyc3540 = true } else if len(yyv3540) != 0 { yyv3540 = yyv3540[:0] yyc3540 = true } } else if yyl3540 > 0 { var yyrr3540, yyrl3540 int var yyrt3540 bool if yyl3540 > cap(yyv3540) { yyrg3540 := len(yyv3540) > 0 yyv23540 := yyv3540 yyrl3540, yyrt3540 = z.DecInferLen(yyl3540, z.DecBasicHandle().MaxInitLen, 144) if yyrt3540 { if yyrl3540 <= cap(yyv3540) { yyv3540 = yyv3540[:yyrl3540] } else { yyv3540 = make([]Volume, yyrl3540) } } else { yyv3540 = make([]Volume, yyrl3540) } yyc3540 = true yyrr3540 = len(yyv3540) if yyrg3540 { copy(yyv3540, yyv23540) } } else if yyl3540 != len(yyv3540) { yyv3540 = yyv3540[:yyl3540] yyc3540 = true } yyj3540 := 0 for ; yyj3540 < yyrr3540; yyj3540++ { yyh3540.ElemContainerState(yyj3540) if r.TryDecodeAsNil() { yyv3540[yyj3540] = Volume{} } else { yyv3541 := &yyv3540[yyj3540] yyv3541.CodecDecodeSelf(d) } } if yyrt3540 { for ; yyj3540 < yyl3540; yyj3540++ { yyv3540 = append(yyv3540, Volume{}) yyh3540.ElemContainerState(yyj3540) if r.TryDecodeAsNil() { yyv3540[yyj3540] = Volume{} } else { yyv3542 := &yyv3540[yyj3540] yyv3542.CodecDecodeSelf(d) } } } } else { yyj3540 := 0 for ; !r.CheckBreak(); yyj3540++ { if yyj3540 >= len(yyv3540) { yyv3540 = append(yyv3540, Volume{}) // var yyz3540 Volume yyc3540 = true } yyh3540.ElemContainerState(yyj3540) if yyj3540 < len(yyv3540) { if r.TryDecodeAsNil() { yyv3540[yyj3540] = Volume{} } else { yyv3543 := &yyv3540[yyj3540] yyv3543.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3540 < len(yyv3540) { yyv3540 = yyv3540[:yyj3540] yyc3540 = true } else if yyj3540 == 0 && yyv3540 == nil { yyv3540 = []Volume{} yyc3540 = true } } yyh3540.End() if yyc3540 { *v = yyv3540 } } 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 _, yyv3544 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3545 := &yyv3544 yy3545.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 yyv3546 := *v yyh3546, yyl3546 := z.DecSliceHelperStart() var yyc3546 bool if yyl3546 == 0 { if yyv3546 == nil { yyv3546 = []Container{} yyc3546 = true } else if len(yyv3546) != 0 { yyv3546 = yyv3546[:0] yyc3546 = true } } else if yyl3546 > 0 { var yyrr3546, yyrl3546 int var yyrt3546 bool if yyl3546 > cap(yyv3546) { yyrg3546 := len(yyv3546) > 0 yyv23546 := yyv3546 yyrl3546, yyrt3546 = z.DecInferLen(yyl3546, z.DecBasicHandle().MaxInitLen, 256) if yyrt3546 { if yyrl3546 <= cap(yyv3546) { yyv3546 = yyv3546[:yyrl3546] } else { yyv3546 = make([]Container, yyrl3546) } } else { yyv3546 = make([]Container, yyrl3546) } yyc3546 = true yyrr3546 = len(yyv3546) if yyrg3546 { copy(yyv3546, yyv23546) } } else if yyl3546 != len(yyv3546) { yyv3546 = yyv3546[:yyl3546] yyc3546 = true } yyj3546 := 0 for ; yyj3546 < yyrr3546; yyj3546++ { yyh3546.ElemContainerState(yyj3546) if r.TryDecodeAsNil() { yyv3546[yyj3546] = Container{} } else { yyv3547 := &yyv3546[yyj3546] yyv3547.CodecDecodeSelf(d) } } if yyrt3546 { for ; yyj3546 < yyl3546; yyj3546++ { yyv3546 = append(yyv3546, Container{}) yyh3546.ElemContainerState(yyj3546) if r.TryDecodeAsNil() { yyv3546[yyj3546] = Container{} } else { yyv3548 := &yyv3546[yyj3546] yyv3548.CodecDecodeSelf(d) } } } } else { yyj3546 := 0 for ; !r.CheckBreak(); yyj3546++ { if yyj3546 >= len(yyv3546) { yyv3546 = append(yyv3546, Container{}) // var yyz3546 Container yyc3546 = true } yyh3546.ElemContainerState(yyj3546) if yyj3546 < len(yyv3546) { if r.TryDecodeAsNil() { yyv3546[yyj3546] = Container{} } else { yyv3549 := &yyv3546[yyj3546] yyv3549.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3546 < len(yyv3546) { yyv3546 = yyv3546[:yyj3546] yyc3546 = true } else if yyj3546 == 0 && yyv3546 == nil { yyv3546 = []Container{} yyc3546 = true } } yyh3546.End() if yyc3546 { *v = yyv3546 } } 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 _, yyv3550 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3551 := &yyv3550 yy3551.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 yyv3552 := *v yyh3552, yyl3552 := z.DecSliceHelperStart() var yyc3552 bool if yyl3552 == 0 { if yyv3552 == nil { yyv3552 = []LocalObjectReference{} yyc3552 = true } else if len(yyv3552) != 0 { yyv3552 = yyv3552[:0] yyc3552 = true } } else if yyl3552 > 0 { var yyrr3552, yyrl3552 int var yyrt3552 bool if yyl3552 > cap(yyv3552) { yyrg3552 := len(yyv3552) > 0 yyv23552 := yyv3552 yyrl3552, yyrt3552 = z.DecInferLen(yyl3552, z.DecBasicHandle().MaxInitLen, 16) if yyrt3552 { if yyrl3552 <= cap(yyv3552) { yyv3552 = yyv3552[:yyrl3552] } else { yyv3552 = make([]LocalObjectReference, yyrl3552) } } else { yyv3552 = make([]LocalObjectReference, yyrl3552) } yyc3552 = true yyrr3552 = len(yyv3552) if yyrg3552 { copy(yyv3552, yyv23552) } } else if yyl3552 != len(yyv3552) { yyv3552 = yyv3552[:yyl3552] yyc3552 = true } yyj3552 := 0 for ; yyj3552 < yyrr3552; yyj3552++ { yyh3552.ElemContainerState(yyj3552) if r.TryDecodeAsNil() { yyv3552[yyj3552] = LocalObjectReference{} } else { yyv3553 := &yyv3552[yyj3552] yyv3553.CodecDecodeSelf(d) } } if yyrt3552 { for ; yyj3552 < yyl3552; yyj3552++ { yyv3552 = append(yyv3552, LocalObjectReference{}) yyh3552.ElemContainerState(yyj3552) if r.TryDecodeAsNil() { yyv3552[yyj3552] = LocalObjectReference{} } else { yyv3554 := &yyv3552[yyj3552] yyv3554.CodecDecodeSelf(d) } } } } else { yyj3552 := 0 for ; !r.CheckBreak(); yyj3552++ { if yyj3552 >= len(yyv3552) { yyv3552 = append(yyv3552, LocalObjectReference{}) // var yyz3552 LocalObjectReference yyc3552 = true } yyh3552.ElemContainerState(yyj3552) if yyj3552 < len(yyv3552) { if r.TryDecodeAsNil() { yyv3552[yyj3552] = LocalObjectReference{} } else { yyv3555 := &yyv3552[yyj3552] yyv3555.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3552 < len(yyv3552) { yyv3552 = yyv3552[:yyj3552] yyc3552 = true } else if yyj3552 == 0 && yyv3552 == nil { yyv3552 = []LocalObjectReference{} yyc3552 = true } } yyh3552.End() if yyc3552 { *v = yyv3552 } } 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 _, yyv3556 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3557 := &yyv3556 yy3557.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 yyv3558 := *v yyh3558, yyl3558 := z.DecSliceHelperStart() var yyc3558 bool if yyl3558 == 0 { if yyv3558 == nil { yyv3558 = []PodCondition{} yyc3558 = true } else if len(yyv3558) != 0 { yyv3558 = yyv3558[:0] yyc3558 = true } } else if yyl3558 > 0 { var yyrr3558, yyrl3558 int var yyrt3558 bool if yyl3558 > cap(yyv3558) { yyrg3558 := len(yyv3558) > 0 yyv23558 := yyv3558 yyrl3558, yyrt3558 = z.DecInferLen(yyl3558, z.DecBasicHandle().MaxInitLen, 112) if yyrt3558 { if yyrl3558 <= cap(yyv3558) { yyv3558 = yyv3558[:yyrl3558] } else { yyv3558 = make([]PodCondition, yyrl3558) } } else { yyv3558 = make([]PodCondition, yyrl3558) } yyc3558 = true yyrr3558 = len(yyv3558) if yyrg3558 { copy(yyv3558, yyv23558) } } else if yyl3558 != len(yyv3558) { yyv3558 = yyv3558[:yyl3558] yyc3558 = true } yyj3558 := 0 for ; yyj3558 < yyrr3558; yyj3558++ { yyh3558.ElemContainerState(yyj3558) if r.TryDecodeAsNil() { yyv3558[yyj3558] = PodCondition{} } else { yyv3559 := &yyv3558[yyj3558] yyv3559.CodecDecodeSelf(d) } } if yyrt3558 { for ; yyj3558 < yyl3558; yyj3558++ { yyv3558 = append(yyv3558, PodCondition{}) yyh3558.ElemContainerState(yyj3558) if r.TryDecodeAsNil() { yyv3558[yyj3558] = PodCondition{} } else { yyv3560 := &yyv3558[yyj3558] yyv3560.CodecDecodeSelf(d) } } } } else { yyj3558 := 0 for ; !r.CheckBreak(); yyj3558++ { if yyj3558 >= len(yyv3558) { yyv3558 = append(yyv3558, PodCondition{}) // var yyz3558 PodCondition yyc3558 = true } yyh3558.ElemContainerState(yyj3558) if yyj3558 < len(yyv3558) { if r.TryDecodeAsNil() { yyv3558[yyj3558] = PodCondition{} } else { yyv3561 := &yyv3558[yyj3558] yyv3561.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3558 < len(yyv3558) { yyv3558 = yyv3558[:yyj3558] yyc3558 = true } else if yyj3558 == 0 && yyv3558 == nil { yyv3558 = []PodCondition{} yyc3558 = true } } yyh3558.End() if yyc3558 { *v = yyv3558 } } 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 _, yyv3562 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3563 := &yyv3562 yy3563.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 yyv3564 := *v yyh3564, yyl3564 := z.DecSliceHelperStart() var yyc3564 bool if yyl3564 == 0 { if yyv3564 == nil { yyv3564 = []ContainerStatus{} yyc3564 = true } else if len(yyv3564) != 0 { yyv3564 = yyv3564[:0] yyc3564 = true } } else if yyl3564 > 0 { var yyrr3564, yyrl3564 int var yyrt3564 bool if yyl3564 > cap(yyv3564) { yyrg3564 := len(yyv3564) > 0 yyv23564 := yyv3564 yyrl3564, yyrt3564 = z.DecInferLen(yyl3564, z.DecBasicHandle().MaxInitLen, 128) if yyrt3564 { if yyrl3564 <= cap(yyv3564) { yyv3564 = yyv3564[:yyrl3564] } else { yyv3564 = make([]ContainerStatus, yyrl3564) } } else { yyv3564 = make([]ContainerStatus, yyrl3564) } yyc3564 = true yyrr3564 = len(yyv3564) if yyrg3564 { copy(yyv3564, yyv23564) } } else if yyl3564 != len(yyv3564) { yyv3564 = yyv3564[:yyl3564] yyc3564 = true } yyj3564 := 0 for ; yyj3564 < yyrr3564; yyj3564++ { yyh3564.ElemContainerState(yyj3564) if r.TryDecodeAsNil() { yyv3564[yyj3564] = ContainerStatus{} } else { yyv3565 := &yyv3564[yyj3564] yyv3565.CodecDecodeSelf(d) } } if yyrt3564 { for ; yyj3564 < yyl3564; yyj3564++ { yyv3564 = append(yyv3564, ContainerStatus{}) yyh3564.ElemContainerState(yyj3564) if r.TryDecodeAsNil() { yyv3564[yyj3564] = ContainerStatus{} } else { yyv3566 := &yyv3564[yyj3564] yyv3566.CodecDecodeSelf(d) } } } } else { yyj3564 := 0 for ; !r.CheckBreak(); yyj3564++ { if yyj3564 >= len(yyv3564) { yyv3564 = append(yyv3564, ContainerStatus{}) // var yyz3564 ContainerStatus yyc3564 = true } yyh3564.ElemContainerState(yyj3564) if yyj3564 < len(yyv3564) { if r.TryDecodeAsNil() { yyv3564[yyj3564] = ContainerStatus{} } else { yyv3567 := &yyv3564[yyj3564] yyv3567.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3564 < len(yyv3564) { yyv3564 = yyv3564[:yyj3564] yyc3564 = true } else if yyj3564 == 0 && yyv3564 == nil { yyv3564 = []ContainerStatus{} yyc3564 = true } } yyh3564.End() if yyc3564 { *v = yyv3564 } } 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 _, yyv3568 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3569 := &yyv3568 yy3569.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 yyv3570 := *v yyh3570, yyl3570 := z.DecSliceHelperStart() var yyc3570 bool if yyl3570 == 0 { if yyv3570 == nil { yyv3570 = []PodTemplate{} yyc3570 = true } else if len(yyv3570) != 0 { yyv3570 = yyv3570[:0] yyc3570 = true } } else if yyl3570 > 0 { var yyrr3570, yyrl3570 int var yyrt3570 bool if yyl3570 > cap(yyv3570) { yyrg3570 := len(yyv3570) > 0 yyv23570 := yyv3570 yyrl3570, yyrt3570 = z.DecInferLen(yyl3570, z.DecBasicHandle().MaxInitLen, 520) if yyrt3570 { if yyrl3570 <= cap(yyv3570) { yyv3570 = yyv3570[:yyrl3570] } else { yyv3570 = make([]PodTemplate, yyrl3570) } } else { yyv3570 = make([]PodTemplate, yyrl3570) } yyc3570 = true yyrr3570 = len(yyv3570) if yyrg3570 { copy(yyv3570, yyv23570) } } else if yyl3570 != len(yyv3570) { yyv3570 = yyv3570[:yyl3570] yyc3570 = true } yyj3570 := 0 for ; yyj3570 < yyrr3570; yyj3570++ { yyh3570.ElemContainerState(yyj3570) if r.TryDecodeAsNil() { yyv3570[yyj3570] = PodTemplate{} } else { yyv3571 := &yyv3570[yyj3570] yyv3571.CodecDecodeSelf(d) } } if yyrt3570 { for ; yyj3570 < yyl3570; yyj3570++ { yyv3570 = append(yyv3570, PodTemplate{}) yyh3570.ElemContainerState(yyj3570) if r.TryDecodeAsNil() { yyv3570[yyj3570] = PodTemplate{} } else { yyv3572 := &yyv3570[yyj3570] yyv3572.CodecDecodeSelf(d) } } } } else { yyj3570 := 0 for ; !r.CheckBreak(); yyj3570++ { if yyj3570 >= len(yyv3570) { yyv3570 = append(yyv3570, PodTemplate{}) // var yyz3570 PodTemplate yyc3570 = true } yyh3570.ElemContainerState(yyj3570) if yyj3570 < len(yyv3570) { if r.TryDecodeAsNil() { yyv3570[yyj3570] = PodTemplate{} } else { yyv3573 := &yyv3570[yyj3570] yyv3573.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3570 < len(yyv3570) { yyv3570 = yyv3570[:yyj3570] yyc3570 = true } else if yyj3570 == 0 && yyv3570 == nil { yyv3570 = []PodTemplate{} yyc3570 = true } } yyh3570.End() if yyc3570 { *v = yyv3570 } } 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 _, yyv3574 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3575 := &yyv3574 yy3575.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 yyv3576 := *v yyh3576, yyl3576 := z.DecSliceHelperStart() var yyc3576 bool if yyl3576 == 0 { if yyv3576 == nil { yyv3576 = []ReplicationController{} yyc3576 = true } else if len(yyv3576) != 0 { yyv3576 = yyv3576[:0] yyc3576 = true } } else if yyl3576 > 0 { var yyrr3576, yyrl3576 int var yyrt3576 bool if yyl3576 > cap(yyv3576) { yyrg3576 := len(yyv3576) > 0 yyv23576 := yyv3576 yyrl3576, yyrt3576 = z.DecInferLen(yyl3576, z.DecBasicHandle().MaxInitLen, 232) if yyrt3576 { if yyrl3576 <= cap(yyv3576) { yyv3576 = yyv3576[:yyrl3576] } else { yyv3576 = make([]ReplicationController, yyrl3576) } } else { yyv3576 = make([]ReplicationController, yyrl3576) } yyc3576 = true yyrr3576 = len(yyv3576) if yyrg3576 { copy(yyv3576, yyv23576) } } else if yyl3576 != len(yyv3576) { yyv3576 = yyv3576[:yyl3576] yyc3576 = true } yyj3576 := 0 for ; yyj3576 < yyrr3576; yyj3576++ { yyh3576.ElemContainerState(yyj3576) if r.TryDecodeAsNil() { yyv3576[yyj3576] = ReplicationController{} } else { yyv3577 := &yyv3576[yyj3576] yyv3577.CodecDecodeSelf(d) } } if yyrt3576 { for ; yyj3576 < yyl3576; yyj3576++ { yyv3576 = append(yyv3576, ReplicationController{}) yyh3576.ElemContainerState(yyj3576) if r.TryDecodeAsNil() { yyv3576[yyj3576] = ReplicationController{} } else { yyv3578 := &yyv3576[yyj3576] yyv3578.CodecDecodeSelf(d) } } } } else { yyj3576 := 0 for ; !r.CheckBreak(); yyj3576++ { if yyj3576 >= len(yyv3576) { yyv3576 = append(yyv3576, ReplicationController{}) // var yyz3576 ReplicationController yyc3576 = true } yyh3576.ElemContainerState(yyj3576) if yyj3576 < len(yyv3576) { if r.TryDecodeAsNil() { yyv3576[yyj3576] = ReplicationController{} } else { yyv3579 := &yyv3576[yyj3576] yyv3579.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3576 < len(yyv3576) { yyv3576 = yyv3576[:yyj3576] yyc3576 = true } else if yyj3576 == 0 && yyv3576 == nil { yyv3576 = []ReplicationController{} yyc3576 = true } } yyh3576.End() if yyc3576 { *v = yyv3576 } } 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 _, yyv3580 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3581 := &yyv3580 yy3581.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 yyv3582 := *v yyh3582, yyl3582 := z.DecSliceHelperStart() var yyc3582 bool if yyl3582 == 0 { if yyv3582 == nil { yyv3582 = []Service{} yyc3582 = true } else if len(yyv3582) != 0 { yyv3582 = yyv3582[:0] yyc3582 = true } } else if yyl3582 > 0 { var yyrr3582, yyrl3582 int var yyrt3582 bool if yyl3582 > cap(yyv3582) { yyrg3582 := len(yyv3582) > 0 yyv23582 := yyv3582 yyrl3582, yyrt3582 = z.DecInferLen(yyl3582, z.DecBasicHandle().MaxInitLen, 336) if yyrt3582 { if yyrl3582 <= cap(yyv3582) { yyv3582 = yyv3582[:yyrl3582] } else { yyv3582 = make([]Service, yyrl3582) } } else { yyv3582 = make([]Service, yyrl3582) } yyc3582 = true yyrr3582 = len(yyv3582) if yyrg3582 { copy(yyv3582, yyv23582) } } else if yyl3582 != len(yyv3582) { yyv3582 = yyv3582[:yyl3582] yyc3582 = true } yyj3582 := 0 for ; yyj3582 < yyrr3582; yyj3582++ { yyh3582.ElemContainerState(yyj3582) if r.TryDecodeAsNil() { yyv3582[yyj3582] = Service{} } else { yyv3583 := &yyv3582[yyj3582] yyv3583.CodecDecodeSelf(d) } } if yyrt3582 { for ; yyj3582 < yyl3582; yyj3582++ { yyv3582 = append(yyv3582, Service{}) yyh3582.ElemContainerState(yyj3582) if r.TryDecodeAsNil() { yyv3582[yyj3582] = Service{} } else { yyv3584 := &yyv3582[yyj3582] yyv3584.CodecDecodeSelf(d) } } } } else { yyj3582 := 0 for ; !r.CheckBreak(); yyj3582++ { if yyj3582 >= len(yyv3582) { yyv3582 = append(yyv3582, Service{}) // var yyz3582 Service yyc3582 = true } yyh3582.ElemContainerState(yyj3582) if yyj3582 < len(yyv3582) { if r.TryDecodeAsNil() { yyv3582[yyj3582] = Service{} } else { yyv3585 := &yyv3582[yyj3582] yyv3585.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3582 < len(yyv3582) { yyv3582 = yyv3582[:yyj3582] yyc3582 = true } else if yyj3582 == 0 && yyv3582 == nil { yyv3582 = []Service{} yyc3582 = true } } yyh3582.End() if yyc3582 { *v = yyv3582 } } 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 _, yyv3586 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3587 := &yyv3586 yy3587.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 yyv3588 := *v yyh3588, yyl3588 := z.DecSliceHelperStart() var yyc3588 bool if yyl3588 == 0 { if yyv3588 == nil { yyv3588 = []LoadBalancerIngress{} yyc3588 = true } else if len(yyv3588) != 0 { yyv3588 = yyv3588[:0] yyc3588 = true } } else if yyl3588 > 0 { var yyrr3588, yyrl3588 int var yyrt3588 bool if yyl3588 > cap(yyv3588) { yyrg3588 := len(yyv3588) > 0 yyv23588 := yyv3588 yyrl3588, yyrt3588 = z.DecInferLen(yyl3588, z.DecBasicHandle().MaxInitLen, 32) if yyrt3588 { if yyrl3588 <= cap(yyv3588) { yyv3588 = yyv3588[:yyrl3588] } else { yyv3588 = make([]LoadBalancerIngress, yyrl3588) } } else { yyv3588 = make([]LoadBalancerIngress, yyrl3588) } yyc3588 = true yyrr3588 = len(yyv3588) if yyrg3588 { copy(yyv3588, yyv23588) } } else if yyl3588 != len(yyv3588) { yyv3588 = yyv3588[:yyl3588] yyc3588 = true } yyj3588 := 0 for ; yyj3588 < yyrr3588; yyj3588++ { yyh3588.ElemContainerState(yyj3588) if r.TryDecodeAsNil() { yyv3588[yyj3588] = LoadBalancerIngress{} } else { yyv3589 := &yyv3588[yyj3588] yyv3589.CodecDecodeSelf(d) } } if yyrt3588 { for ; yyj3588 < yyl3588; yyj3588++ { yyv3588 = append(yyv3588, LoadBalancerIngress{}) yyh3588.ElemContainerState(yyj3588) if r.TryDecodeAsNil() { yyv3588[yyj3588] = LoadBalancerIngress{} } else { yyv3590 := &yyv3588[yyj3588] yyv3590.CodecDecodeSelf(d) } } } } else { yyj3588 := 0 for ; !r.CheckBreak(); yyj3588++ { if yyj3588 >= len(yyv3588) { yyv3588 = append(yyv3588, LoadBalancerIngress{}) // var yyz3588 LoadBalancerIngress yyc3588 = true } yyh3588.ElemContainerState(yyj3588) if yyj3588 < len(yyv3588) { if r.TryDecodeAsNil() { yyv3588[yyj3588] = LoadBalancerIngress{} } else { yyv3591 := &yyv3588[yyj3588] yyv3591.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3588 < len(yyv3588) { yyv3588 = yyv3588[:yyj3588] yyc3588 = true } else if yyj3588 == 0 && yyv3588 == nil { yyv3588 = []LoadBalancerIngress{} yyc3588 = true } } yyh3588.End() if yyc3588 { *v = yyv3588 } } 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 _, yyv3592 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3593 := &yyv3592 yy3593.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 yyv3594 := *v yyh3594, yyl3594 := z.DecSliceHelperStart() var yyc3594 bool if yyl3594 == 0 { if yyv3594 == nil { yyv3594 = []ServicePort{} yyc3594 = true } else if len(yyv3594) != 0 { yyv3594 = yyv3594[:0] yyc3594 = true } } else if yyl3594 > 0 { var yyrr3594, yyrl3594 int var yyrt3594 bool if yyl3594 > cap(yyv3594) { yyrg3594 := len(yyv3594) > 0 yyv23594 := yyv3594 yyrl3594, yyrt3594 = z.DecInferLen(yyl3594, z.DecBasicHandle().MaxInitLen, 80) if yyrt3594 { if yyrl3594 <= cap(yyv3594) { yyv3594 = yyv3594[:yyrl3594] } else { yyv3594 = make([]ServicePort, yyrl3594) } } else { yyv3594 = make([]ServicePort, yyrl3594) } yyc3594 = true yyrr3594 = len(yyv3594) if yyrg3594 { copy(yyv3594, yyv23594) } } else if yyl3594 != len(yyv3594) { yyv3594 = yyv3594[:yyl3594] yyc3594 = true } yyj3594 := 0 for ; yyj3594 < yyrr3594; yyj3594++ { yyh3594.ElemContainerState(yyj3594) if r.TryDecodeAsNil() { yyv3594[yyj3594] = ServicePort{} } else { yyv3595 := &yyv3594[yyj3594] yyv3595.CodecDecodeSelf(d) } } if yyrt3594 { for ; yyj3594 < yyl3594; yyj3594++ { yyv3594 = append(yyv3594, ServicePort{}) yyh3594.ElemContainerState(yyj3594) if r.TryDecodeAsNil() { yyv3594[yyj3594] = ServicePort{} } else { yyv3596 := &yyv3594[yyj3594] yyv3596.CodecDecodeSelf(d) } } } } else { yyj3594 := 0 for ; !r.CheckBreak(); yyj3594++ { if yyj3594 >= len(yyv3594) { yyv3594 = append(yyv3594, ServicePort{}) // var yyz3594 ServicePort yyc3594 = true } yyh3594.ElemContainerState(yyj3594) if yyj3594 < len(yyv3594) { if r.TryDecodeAsNil() { yyv3594[yyj3594] = ServicePort{} } else { yyv3597 := &yyv3594[yyj3594] yyv3597.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3594 < len(yyv3594) { yyv3594 = yyv3594[:yyj3594] yyc3594 = true } else if yyj3594 == 0 && yyv3594 == nil { yyv3594 = []ServicePort{} yyc3594 = true } } yyh3594.End() if yyc3594 { *v = yyv3594 } } 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 _, yyv3598 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3599 := &yyv3598 yy3599.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 yyv3600 := *v yyh3600, yyl3600 := z.DecSliceHelperStart() var yyc3600 bool if yyl3600 == 0 { if yyv3600 == nil { yyv3600 = []ObjectReference{} yyc3600 = true } else if len(yyv3600) != 0 { yyv3600 = yyv3600[:0] yyc3600 = true } } else if yyl3600 > 0 { var yyrr3600, yyrl3600 int var yyrt3600 bool if yyl3600 > cap(yyv3600) { yyrg3600 := len(yyv3600) > 0 yyv23600 := yyv3600 yyrl3600, yyrt3600 = z.DecInferLen(yyl3600, z.DecBasicHandle().MaxInitLen, 112) if yyrt3600 { if yyrl3600 <= cap(yyv3600) { yyv3600 = yyv3600[:yyrl3600] } else { yyv3600 = make([]ObjectReference, yyrl3600) } } else { yyv3600 = make([]ObjectReference, yyrl3600) } yyc3600 = true yyrr3600 = len(yyv3600) if yyrg3600 { copy(yyv3600, yyv23600) } } else if yyl3600 != len(yyv3600) { yyv3600 = yyv3600[:yyl3600] yyc3600 = true } yyj3600 := 0 for ; yyj3600 < yyrr3600; yyj3600++ { yyh3600.ElemContainerState(yyj3600) if r.TryDecodeAsNil() { yyv3600[yyj3600] = ObjectReference{} } else { yyv3601 := &yyv3600[yyj3600] yyv3601.CodecDecodeSelf(d) } } if yyrt3600 { for ; yyj3600 < yyl3600; yyj3600++ { yyv3600 = append(yyv3600, ObjectReference{}) yyh3600.ElemContainerState(yyj3600) if r.TryDecodeAsNil() { yyv3600[yyj3600] = ObjectReference{} } else { yyv3602 := &yyv3600[yyj3600] yyv3602.CodecDecodeSelf(d) } } } } else { yyj3600 := 0 for ; !r.CheckBreak(); yyj3600++ { if yyj3600 >= len(yyv3600) { yyv3600 = append(yyv3600, ObjectReference{}) // var yyz3600 ObjectReference yyc3600 = true } yyh3600.ElemContainerState(yyj3600) if yyj3600 < len(yyv3600) { if r.TryDecodeAsNil() { yyv3600[yyj3600] = ObjectReference{} } else { yyv3603 := &yyv3600[yyj3600] yyv3603.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3600 < len(yyv3600) { yyv3600 = yyv3600[:yyj3600] yyc3600 = true } else if yyj3600 == 0 && yyv3600 == nil { yyv3600 = []ObjectReference{} yyc3600 = true } } yyh3600.End() if yyc3600 { *v = yyv3600 } } 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 _, yyv3604 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3605 := &yyv3604 yy3605.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 yyv3606 := *v yyh3606, yyl3606 := z.DecSliceHelperStart() var yyc3606 bool if yyl3606 == 0 { if yyv3606 == nil { yyv3606 = []ServiceAccount{} yyc3606 = true } else if len(yyv3606) != 0 { yyv3606 = yyv3606[:0] yyc3606 = true } } else if yyl3606 > 0 { var yyrr3606, yyrl3606 int var yyrt3606 bool if yyl3606 > cap(yyv3606) { yyrg3606 := len(yyv3606) > 0 yyv23606 := yyv3606 yyrl3606, yyrt3606 = z.DecInferLen(yyl3606, z.DecBasicHandle().MaxInitLen, 240) if yyrt3606 { if yyrl3606 <= cap(yyv3606) { yyv3606 = yyv3606[:yyrl3606] } else { yyv3606 = make([]ServiceAccount, yyrl3606) } } else { yyv3606 = make([]ServiceAccount, yyrl3606) } yyc3606 = true yyrr3606 = len(yyv3606) if yyrg3606 { copy(yyv3606, yyv23606) } } else if yyl3606 != len(yyv3606) { yyv3606 = yyv3606[:yyl3606] yyc3606 = true } yyj3606 := 0 for ; yyj3606 < yyrr3606; yyj3606++ { yyh3606.ElemContainerState(yyj3606) if r.TryDecodeAsNil() { yyv3606[yyj3606] = ServiceAccount{} } else { yyv3607 := &yyv3606[yyj3606] yyv3607.CodecDecodeSelf(d) } } if yyrt3606 { for ; yyj3606 < yyl3606; yyj3606++ { yyv3606 = append(yyv3606, ServiceAccount{}) yyh3606.ElemContainerState(yyj3606) if r.TryDecodeAsNil() { yyv3606[yyj3606] = ServiceAccount{} } else { yyv3608 := &yyv3606[yyj3606] yyv3608.CodecDecodeSelf(d) } } } } else { yyj3606 := 0 for ; !r.CheckBreak(); yyj3606++ { if yyj3606 >= len(yyv3606) { yyv3606 = append(yyv3606, ServiceAccount{}) // var yyz3606 ServiceAccount yyc3606 = true } yyh3606.ElemContainerState(yyj3606) if yyj3606 < len(yyv3606) { if r.TryDecodeAsNil() { yyv3606[yyj3606] = ServiceAccount{} } else { yyv3609 := &yyv3606[yyj3606] yyv3609.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3606 < len(yyv3606) { yyv3606 = yyv3606[:yyj3606] yyc3606 = true } else if yyj3606 == 0 && yyv3606 == nil { yyv3606 = []ServiceAccount{} yyc3606 = true } } yyh3606.End() if yyc3606 { *v = yyv3606 } } 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 _, yyv3610 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3611 := &yyv3610 yy3611.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 yyv3612 := *v yyh3612, yyl3612 := z.DecSliceHelperStart() var yyc3612 bool if yyl3612 == 0 { if yyv3612 == nil { yyv3612 = []EndpointSubset{} yyc3612 = true } else if len(yyv3612) != 0 { yyv3612 = yyv3612[:0] yyc3612 = true } } else if yyl3612 > 0 { var yyrr3612, yyrl3612 int var yyrt3612 bool if yyl3612 > cap(yyv3612) { yyrg3612 := len(yyv3612) > 0 yyv23612 := yyv3612 yyrl3612, yyrt3612 = z.DecInferLen(yyl3612, z.DecBasicHandle().MaxInitLen, 72) if yyrt3612 { if yyrl3612 <= cap(yyv3612) { yyv3612 = yyv3612[:yyrl3612] } else { yyv3612 = make([]EndpointSubset, yyrl3612) } } else { yyv3612 = make([]EndpointSubset, yyrl3612) } yyc3612 = true yyrr3612 = len(yyv3612) if yyrg3612 { copy(yyv3612, yyv23612) } } else if yyl3612 != len(yyv3612) { yyv3612 = yyv3612[:yyl3612] yyc3612 = true } yyj3612 := 0 for ; yyj3612 < yyrr3612; yyj3612++ { yyh3612.ElemContainerState(yyj3612) if r.TryDecodeAsNil() { yyv3612[yyj3612] = EndpointSubset{} } else { yyv3613 := &yyv3612[yyj3612] yyv3613.CodecDecodeSelf(d) } } if yyrt3612 { for ; yyj3612 < yyl3612; yyj3612++ { yyv3612 = append(yyv3612, EndpointSubset{}) yyh3612.ElemContainerState(yyj3612) if r.TryDecodeAsNil() { yyv3612[yyj3612] = EndpointSubset{} } else { yyv3614 := &yyv3612[yyj3612] yyv3614.CodecDecodeSelf(d) } } } } else { yyj3612 := 0 for ; !r.CheckBreak(); yyj3612++ { if yyj3612 >= len(yyv3612) { yyv3612 = append(yyv3612, EndpointSubset{}) // var yyz3612 EndpointSubset yyc3612 = true } yyh3612.ElemContainerState(yyj3612) if yyj3612 < len(yyv3612) { if r.TryDecodeAsNil() { yyv3612[yyj3612] = EndpointSubset{} } else { yyv3615 := &yyv3612[yyj3612] yyv3615.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3612 < len(yyv3612) { yyv3612 = yyv3612[:yyj3612] yyc3612 = true } else if yyj3612 == 0 && yyv3612 == nil { yyv3612 = []EndpointSubset{} yyc3612 = true } } yyh3612.End() if yyc3612 { *v = yyv3612 } } 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 _, yyv3616 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3617 := &yyv3616 yy3617.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 yyv3618 := *v yyh3618, yyl3618 := z.DecSliceHelperStart() var yyc3618 bool if yyl3618 == 0 { if yyv3618 == nil { yyv3618 = []EndpointAddress{} yyc3618 = true } else if len(yyv3618) != 0 { yyv3618 = yyv3618[:0] yyc3618 = true } } else if yyl3618 > 0 { var yyrr3618, yyrl3618 int var yyrt3618 bool if yyl3618 > cap(yyv3618) { yyrg3618 := len(yyv3618) > 0 yyv23618 := yyv3618 yyrl3618, yyrt3618 = z.DecInferLen(yyl3618, z.DecBasicHandle().MaxInitLen, 24) if yyrt3618 { if yyrl3618 <= cap(yyv3618) { yyv3618 = yyv3618[:yyrl3618] } else { yyv3618 = make([]EndpointAddress, yyrl3618) } } else { yyv3618 = make([]EndpointAddress, yyrl3618) } yyc3618 = true yyrr3618 = len(yyv3618) if yyrg3618 { copy(yyv3618, yyv23618) } } else if yyl3618 != len(yyv3618) { yyv3618 = yyv3618[:yyl3618] yyc3618 = true } yyj3618 := 0 for ; yyj3618 < yyrr3618; yyj3618++ { yyh3618.ElemContainerState(yyj3618) if r.TryDecodeAsNil() { yyv3618[yyj3618] = EndpointAddress{} } else { yyv3619 := &yyv3618[yyj3618] yyv3619.CodecDecodeSelf(d) } } if yyrt3618 { for ; yyj3618 < yyl3618; yyj3618++ { yyv3618 = append(yyv3618, EndpointAddress{}) yyh3618.ElemContainerState(yyj3618) if r.TryDecodeAsNil() { yyv3618[yyj3618] = EndpointAddress{} } else { yyv3620 := &yyv3618[yyj3618] yyv3620.CodecDecodeSelf(d) } } } } else { yyj3618 := 0 for ; !r.CheckBreak(); yyj3618++ { if yyj3618 >= len(yyv3618) { yyv3618 = append(yyv3618, EndpointAddress{}) // var yyz3618 EndpointAddress yyc3618 = true } yyh3618.ElemContainerState(yyj3618) if yyj3618 < len(yyv3618) { if r.TryDecodeAsNil() { yyv3618[yyj3618] = EndpointAddress{} } else { yyv3621 := &yyv3618[yyj3618] yyv3621.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3618 < len(yyv3618) { yyv3618 = yyv3618[:yyj3618] yyc3618 = true } else if yyj3618 == 0 && yyv3618 == nil { yyv3618 = []EndpointAddress{} yyc3618 = true } } yyh3618.End() if yyc3618 { *v = yyv3618 } } 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 _, yyv3622 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3623 := &yyv3622 yy3623.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 yyv3624 := *v yyh3624, yyl3624 := z.DecSliceHelperStart() var yyc3624 bool if yyl3624 == 0 { if yyv3624 == nil { yyv3624 = []EndpointPort{} yyc3624 = true } else if len(yyv3624) != 0 { yyv3624 = yyv3624[:0] yyc3624 = true } } else if yyl3624 > 0 { var yyrr3624, yyrl3624 int var yyrt3624 bool if yyl3624 > cap(yyv3624) { yyrg3624 := len(yyv3624) > 0 yyv23624 := yyv3624 yyrl3624, yyrt3624 = z.DecInferLen(yyl3624, z.DecBasicHandle().MaxInitLen, 40) if yyrt3624 { if yyrl3624 <= cap(yyv3624) { yyv3624 = yyv3624[:yyrl3624] } else { yyv3624 = make([]EndpointPort, yyrl3624) } } else { yyv3624 = make([]EndpointPort, yyrl3624) } yyc3624 = true yyrr3624 = len(yyv3624) if yyrg3624 { copy(yyv3624, yyv23624) } } else if yyl3624 != len(yyv3624) { yyv3624 = yyv3624[:yyl3624] yyc3624 = true } yyj3624 := 0 for ; yyj3624 < yyrr3624; yyj3624++ { yyh3624.ElemContainerState(yyj3624) if r.TryDecodeAsNil() { yyv3624[yyj3624] = EndpointPort{} } else { yyv3625 := &yyv3624[yyj3624] yyv3625.CodecDecodeSelf(d) } } if yyrt3624 { for ; yyj3624 < yyl3624; yyj3624++ { yyv3624 = append(yyv3624, EndpointPort{}) yyh3624.ElemContainerState(yyj3624) if r.TryDecodeAsNil() { yyv3624[yyj3624] = EndpointPort{} } else { yyv3626 := &yyv3624[yyj3624] yyv3626.CodecDecodeSelf(d) } } } } else { yyj3624 := 0 for ; !r.CheckBreak(); yyj3624++ { if yyj3624 >= len(yyv3624) { yyv3624 = append(yyv3624, EndpointPort{}) // var yyz3624 EndpointPort yyc3624 = true } yyh3624.ElemContainerState(yyj3624) if yyj3624 < len(yyv3624) { if r.TryDecodeAsNil() { yyv3624[yyj3624] = EndpointPort{} } else { yyv3627 := &yyv3624[yyj3624] yyv3627.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3624 < len(yyv3624) { yyv3624 = yyv3624[:yyj3624] yyc3624 = true } else if yyj3624 == 0 && yyv3624 == nil { yyv3624 = []EndpointPort{} yyc3624 = true } } yyh3624.End() if yyc3624 { *v = yyv3624 } } 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 _, yyv3628 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3629 := &yyv3628 yy3629.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 yyv3630 := *v yyh3630, yyl3630 := z.DecSliceHelperStart() var yyc3630 bool if yyl3630 == 0 { if yyv3630 == nil { yyv3630 = []Endpoints{} yyc3630 = true } else if len(yyv3630) != 0 { yyv3630 = yyv3630[:0] yyc3630 = true } } else if yyl3630 > 0 { var yyrr3630, yyrl3630 int var yyrt3630 bool if yyl3630 > cap(yyv3630) { yyrg3630 := len(yyv3630) > 0 yyv23630 := yyv3630 yyrl3630, yyrt3630 = z.DecInferLen(yyl3630, z.DecBasicHandle().MaxInitLen, 216) if yyrt3630 { if yyrl3630 <= cap(yyv3630) { yyv3630 = yyv3630[:yyrl3630] } else { yyv3630 = make([]Endpoints, yyrl3630) } } else { yyv3630 = make([]Endpoints, yyrl3630) } yyc3630 = true yyrr3630 = len(yyv3630) if yyrg3630 { copy(yyv3630, yyv23630) } } else if yyl3630 != len(yyv3630) { yyv3630 = yyv3630[:yyl3630] yyc3630 = true } yyj3630 := 0 for ; yyj3630 < yyrr3630; yyj3630++ { yyh3630.ElemContainerState(yyj3630) if r.TryDecodeAsNil() { yyv3630[yyj3630] = Endpoints{} } else { yyv3631 := &yyv3630[yyj3630] yyv3631.CodecDecodeSelf(d) } } if yyrt3630 { for ; yyj3630 < yyl3630; yyj3630++ { yyv3630 = append(yyv3630, Endpoints{}) yyh3630.ElemContainerState(yyj3630) if r.TryDecodeAsNil() { yyv3630[yyj3630] = Endpoints{} } else { yyv3632 := &yyv3630[yyj3630] yyv3632.CodecDecodeSelf(d) } } } } else { yyj3630 := 0 for ; !r.CheckBreak(); yyj3630++ { if yyj3630 >= len(yyv3630) { yyv3630 = append(yyv3630, Endpoints{}) // var yyz3630 Endpoints yyc3630 = true } yyh3630.ElemContainerState(yyj3630) if yyj3630 < len(yyv3630) { if r.TryDecodeAsNil() { yyv3630[yyj3630] = Endpoints{} } else { yyv3633 := &yyv3630[yyj3630] yyv3633.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3630 < len(yyv3630) { yyv3630 = yyv3630[:yyj3630] yyc3630 = true } else if yyj3630 == 0 && yyv3630 == nil { yyv3630 = []Endpoints{} yyc3630 = true } } yyh3630.End() if yyc3630 { *v = yyv3630 } } 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 _, yyv3634 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3635 := &yyv3634 yy3635.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 yyv3636 := *v yyh3636, yyl3636 := z.DecSliceHelperStart() var yyc3636 bool if yyl3636 == 0 { if yyv3636 == nil { yyv3636 = []NodeCondition{} yyc3636 = true } else if len(yyv3636) != 0 { yyv3636 = yyv3636[:0] yyc3636 = true } } else if yyl3636 > 0 { var yyrr3636, yyrl3636 int var yyrt3636 bool if yyl3636 > cap(yyv3636) { yyrg3636 := len(yyv3636) > 0 yyv23636 := yyv3636 yyrl3636, yyrt3636 = z.DecInferLen(yyl3636, z.DecBasicHandle().MaxInitLen, 112) if yyrt3636 { if yyrl3636 <= cap(yyv3636) { yyv3636 = yyv3636[:yyrl3636] } else { yyv3636 = make([]NodeCondition, yyrl3636) } } else { yyv3636 = make([]NodeCondition, yyrl3636) } yyc3636 = true yyrr3636 = len(yyv3636) if yyrg3636 { copy(yyv3636, yyv23636) } } else if yyl3636 != len(yyv3636) { yyv3636 = yyv3636[:yyl3636] yyc3636 = true } yyj3636 := 0 for ; yyj3636 < yyrr3636; yyj3636++ { yyh3636.ElemContainerState(yyj3636) if r.TryDecodeAsNil() { yyv3636[yyj3636] = NodeCondition{} } else { yyv3637 := &yyv3636[yyj3636] yyv3637.CodecDecodeSelf(d) } } if yyrt3636 { for ; yyj3636 < yyl3636; yyj3636++ { yyv3636 = append(yyv3636, NodeCondition{}) yyh3636.ElemContainerState(yyj3636) if r.TryDecodeAsNil() { yyv3636[yyj3636] = NodeCondition{} } else { yyv3638 := &yyv3636[yyj3636] yyv3638.CodecDecodeSelf(d) } } } } else { yyj3636 := 0 for ; !r.CheckBreak(); yyj3636++ { if yyj3636 >= len(yyv3636) { yyv3636 = append(yyv3636, NodeCondition{}) // var yyz3636 NodeCondition yyc3636 = true } yyh3636.ElemContainerState(yyj3636) if yyj3636 < len(yyv3636) { if r.TryDecodeAsNil() { yyv3636[yyj3636] = NodeCondition{} } else { yyv3639 := &yyv3636[yyj3636] yyv3639.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3636 < len(yyv3636) { yyv3636 = yyv3636[:yyj3636] yyc3636 = true } else if yyj3636 == 0 && yyv3636 == nil { yyv3636 = []NodeCondition{} yyc3636 = true } } yyh3636.End() if yyc3636 { *v = yyv3636 } } 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 _, yyv3640 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3641 := &yyv3640 yy3641.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 yyv3642 := *v yyh3642, yyl3642 := z.DecSliceHelperStart() var yyc3642 bool if yyl3642 == 0 { if yyv3642 == nil { yyv3642 = []NodeAddress{} yyc3642 = true } else if len(yyv3642) != 0 { yyv3642 = yyv3642[:0] yyc3642 = true } } else if yyl3642 > 0 { var yyrr3642, yyrl3642 int var yyrt3642 bool if yyl3642 > cap(yyv3642) { yyrg3642 := len(yyv3642) > 0 yyv23642 := yyv3642 yyrl3642, yyrt3642 = z.DecInferLen(yyl3642, z.DecBasicHandle().MaxInitLen, 32) if yyrt3642 { if yyrl3642 <= cap(yyv3642) { yyv3642 = yyv3642[:yyrl3642] } else { yyv3642 = make([]NodeAddress, yyrl3642) } } else { yyv3642 = make([]NodeAddress, yyrl3642) } yyc3642 = true yyrr3642 = len(yyv3642) if yyrg3642 { copy(yyv3642, yyv23642) } } else if yyl3642 != len(yyv3642) { yyv3642 = yyv3642[:yyl3642] yyc3642 = true } yyj3642 := 0 for ; yyj3642 < yyrr3642; yyj3642++ { yyh3642.ElemContainerState(yyj3642) if r.TryDecodeAsNil() { yyv3642[yyj3642] = NodeAddress{} } else { yyv3643 := &yyv3642[yyj3642] yyv3643.CodecDecodeSelf(d) } } if yyrt3642 { for ; yyj3642 < yyl3642; yyj3642++ { yyv3642 = append(yyv3642, NodeAddress{}) yyh3642.ElemContainerState(yyj3642) if r.TryDecodeAsNil() { yyv3642[yyj3642] = NodeAddress{} } else { yyv3644 := &yyv3642[yyj3642] yyv3644.CodecDecodeSelf(d) } } } } else { yyj3642 := 0 for ; !r.CheckBreak(); yyj3642++ { if yyj3642 >= len(yyv3642) { yyv3642 = append(yyv3642, NodeAddress{}) // var yyz3642 NodeAddress yyc3642 = true } yyh3642.ElemContainerState(yyj3642) if yyj3642 < len(yyv3642) { if r.TryDecodeAsNil() { yyv3642[yyj3642] = NodeAddress{} } else { yyv3645 := &yyv3642[yyj3642] yyv3645.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3642 < len(yyv3642) { yyv3642 = yyv3642[:yyj3642] yyc3642 = true } else if yyj3642 == 0 && yyv3642 == nil { yyv3642 = []NodeAddress{} yyc3642 = true } } yyh3642.End() if yyc3642 { *v = yyv3642 } } 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 yyk3646, yyv3646 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk3646.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3647 := &yyv3646 yym3648 := z.EncBinary() _ = yym3648 if false { } else if z.HasExtensions() && z.EncExt(yy3647) { } else if !yym3648 && z.IsJSONHandle() { z.EncJSONMarshal(yy3647) } else { z.EncFallback(yy3647) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv3649 := *v yyl3649 := r.ReadMapStart() yybh3649 := z.DecBasicHandle() if yyv3649 == nil { yyrl3649, _ := z.DecInferLen(yyl3649, yybh3649.MaxInitLen, 40) yyv3649 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3649) *v = yyv3649 } var yymk3649 ResourceName var yymv3649 pkg3_resource.Quantity var yymg3649 bool if yybh3649.MapValueReset { yymg3649 = true } if yyl3649 > 0 { for yyj3649 := 0; yyj3649 < yyl3649; yyj3649++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3649 = "" } else { yymk3649 = ResourceName(r.DecodeString()) } if yymg3649 { yymv3649 = yyv3649[yymk3649] } else { yymv3649 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3649 = pkg3_resource.Quantity{} } else { yyv3651 := &yymv3649 yym3652 := z.DecBinary() _ = yym3652 if false { } else if z.HasExtensions() && z.DecExt(yyv3651) { } else if !yym3652 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3651) } else { z.DecFallback(yyv3651, false) } } if yyv3649 != nil { yyv3649[yymk3649] = yymv3649 } } } else if yyl3649 < 0 { for yyj3649 := 0; !r.CheckBreak(); yyj3649++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3649 = "" } else { yymk3649 = ResourceName(r.DecodeString()) } if yymg3649 { yymv3649 = yyv3649[yymk3649] } else { yymv3649 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3649 = pkg3_resource.Quantity{} } else { yyv3654 := &yymv3649 yym3655 := z.DecBinary() _ = yym3655 if false { } else if z.HasExtensions() && z.DecExt(yyv3654) { } else if !yym3655 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3654) } else { z.DecFallback(yyv3654, false) } } if yyv3649 != nil { yyv3649[yymk3649] = yymv3649 } } } // 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 _, yyv3656 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3657 := &yyv3656 yy3657.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 yyv3658 := *v yyh3658, yyl3658 := z.DecSliceHelperStart() var yyc3658 bool if yyl3658 == 0 { if yyv3658 == nil { yyv3658 = []Node{} yyc3658 = true } else if len(yyv3658) != 0 { yyv3658 = yyv3658[:0] yyc3658 = true } } else if yyl3658 > 0 { var yyrr3658, yyrl3658 int var yyrt3658 bool if yyl3658 > cap(yyv3658) { yyrg3658 := len(yyv3658) > 0 yyv23658 := yyv3658 yyrl3658, yyrt3658 = z.DecInferLen(yyl3658, z.DecBasicHandle().MaxInitLen, 456) if yyrt3658 { if yyrl3658 <= cap(yyv3658) { yyv3658 = yyv3658[:yyrl3658] } else { yyv3658 = make([]Node, yyrl3658) } } else { yyv3658 = make([]Node, yyrl3658) } yyc3658 = true yyrr3658 = len(yyv3658) if yyrg3658 { copy(yyv3658, yyv23658) } } else if yyl3658 != len(yyv3658) { yyv3658 = yyv3658[:yyl3658] yyc3658 = true } yyj3658 := 0 for ; yyj3658 < yyrr3658; yyj3658++ { yyh3658.ElemContainerState(yyj3658) if r.TryDecodeAsNil() { yyv3658[yyj3658] = Node{} } else { yyv3659 := &yyv3658[yyj3658] yyv3659.CodecDecodeSelf(d) } } if yyrt3658 { for ; yyj3658 < yyl3658; yyj3658++ { yyv3658 = append(yyv3658, Node{}) yyh3658.ElemContainerState(yyj3658) if r.TryDecodeAsNil() { yyv3658[yyj3658] = Node{} } else { yyv3660 := &yyv3658[yyj3658] yyv3660.CodecDecodeSelf(d) } } } } else { yyj3658 := 0 for ; !r.CheckBreak(); yyj3658++ { if yyj3658 >= len(yyv3658) { yyv3658 = append(yyv3658, Node{}) // var yyz3658 Node yyc3658 = true } yyh3658.ElemContainerState(yyj3658) if yyj3658 < len(yyv3658) { if r.TryDecodeAsNil() { yyv3658[yyj3658] = Node{} } else { yyv3661 := &yyv3658[yyj3658] yyv3661.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3658 < len(yyv3658) { yyv3658 = yyv3658[:yyj3658] yyc3658 = true } else if yyj3658 == 0 && yyv3658 == nil { yyv3658 = []Node{} yyc3658 = true } } yyh3658.End() if yyc3658 { *v = yyv3658 } } 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 _, yyv3662 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv3662.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 yyv3663 := *v yyh3663, yyl3663 := z.DecSliceHelperStart() var yyc3663 bool if yyl3663 == 0 { if yyv3663 == nil { yyv3663 = []FinalizerName{} yyc3663 = true } else if len(yyv3663) != 0 { yyv3663 = yyv3663[:0] yyc3663 = true } } else if yyl3663 > 0 { var yyrr3663, yyrl3663 int var yyrt3663 bool if yyl3663 > cap(yyv3663) { yyrl3663, yyrt3663 = z.DecInferLen(yyl3663, z.DecBasicHandle().MaxInitLen, 16) if yyrt3663 { if yyrl3663 <= cap(yyv3663) { yyv3663 = yyv3663[:yyrl3663] } else { yyv3663 = make([]FinalizerName, yyrl3663) } } else { yyv3663 = make([]FinalizerName, yyrl3663) } yyc3663 = true yyrr3663 = len(yyv3663) } else if yyl3663 != len(yyv3663) { yyv3663 = yyv3663[:yyl3663] yyc3663 = true } yyj3663 := 0 for ; yyj3663 < yyrr3663; yyj3663++ { yyh3663.ElemContainerState(yyj3663) if r.TryDecodeAsNil() { yyv3663[yyj3663] = "" } else { yyv3663[yyj3663] = FinalizerName(r.DecodeString()) } } if yyrt3663 { for ; yyj3663 < yyl3663; yyj3663++ { yyv3663 = append(yyv3663, "") yyh3663.ElemContainerState(yyj3663) if r.TryDecodeAsNil() { yyv3663[yyj3663] = "" } else { yyv3663[yyj3663] = FinalizerName(r.DecodeString()) } } } } else { yyj3663 := 0 for ; !r.CheckBreak(); yyj3663++ { if yyj3663 >= len(yyv3663) { yyv3663 = append(yyv3663, "") // var yyz3663 FinalizerName yyc3663 = true } yyh3663.ElemContainerState(yyj3663) if yyj3663 < len(yyv3663) { if r.TryDecodeAsNil() { yyv3663[yyj3663] = "" } else { yyv3663[yyj3663] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj3663 < len(yyv3663) { yyv3663 = yyv3663[:yyj3663] yyc3663 = true } else if yyj3663 == 0 && yyv3663 == nil { yyv3663 = []FinalizerName{} yyc3663 = true } } yyh3663.End() if yyc3663 { *v = yyv3663 } } 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 _, yyv3667 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3668 := &yyv3667 yy3668.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 yyv3669 := *v yyh3669, yyl3669 := z.DecSliceHelperStart() var yyc3669 bool if yyl3669 == 0 { if yyv3669 == nil { yyv3669 = []Namespace{} yyc3669 = true } else if len(yyv3669) != 0 { yyv3669 = yyv3669[:0] yyc3669 = true } } else if yyl3669 > 0 { var yyrr3669, yyrl3669 int var yyrt3669 bool if yyl3669 > cap(yyv3669) { yyrg3669 := len(yyv3669) > 0 yyv23669 := yyv3669 yyrl3669, yyrt3669 = z.DecInferLen(yyl3669, z.DecBasicHandle().MaxInitLen, 232) if yyrt3669 { if yyrl3669 <= cap(yyv3669) { yyv3669 = yyv3669[:yyrl3669] } else { yyv3669 = make([]Namespace, yyrl3669) } } else { yyv3669 = make([]Namespace, yyrl3669) } yyc3669 = true yyrr3669 = len(yyv3669) if yyrg3669 { copy(yyv3669, yyv23669) } } else if yyl3669 != len(yyv3669) { yyv3669 = yyv3669[:yyl3669] yyc3669 = true } yyj3669 := 0 for ; yyj3669 < yyrr3669; yyj3669++ { yyh3669.ElemContainerState(yyj3669) if r.TryDecodeAsNil() { yyv3669[yyj3669] = Namespace{} } else { yyv3670 := &yyv3669[yyj3669] yyv3670.CodecDecodeSelf(d) } } if yyrt3669 { for ; yyj3669 < yyl3669; yyj3669++ { yyv3669 = append(yyv3669, Namespace{}) yyh3669.ElemContainerState(yyj3669) if r.TryDecodeAsNil() { yyv3669[yyj3669] = Namespace{} } else { yyv3671 := &yyv3669[yyj3669] yyv3671.CodecDecodeSelf(d) } } } } else { yyj3669 := 0 for ; !r.CheckBreak(); yyj3669++ { if yyj3669 >= len(yyv3669) { yyv3669 = append(yyv3669, Namespace{}) // var yyz3669 Namespace yyc3669 = true } yyh3669.ElemContainerState(yyj3669) if yyj3669 < len(yyv3669) { if r.TryDecodeAsNil() { yyv3669[yyj3669] = Namespace{} } else { yyv3672 := &yyv3669[yyj3669] yyv3672.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3669 < len(yyv3669) { yyv3669 = yyv3669[:yyj3669] yyc3669 = true } else if yyj3669 == 0 && yyv3669 == nil { yyv3669 = []Namespace{} yyc3669 = true } } yyh3669.End() if yyc3669 { *v = yyv3669 } } 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 _, yyv3673 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3674 := &yyv3673 yy3674.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 yyv3675 := *v yyh3675, yyl3675 := z.DecSliceHelperStart() var yyc3675 bool if yyl3675 == 0 { if yyv3675 == nil { yyv3675 = []Event{} yyc3675 = true } else if len(yyv3675) != 0 { yyv3675 = yyv3675[:0] yyc3675 = true } } else if yyl3675 > 0 { var yyrr3675, yyrl3675 int var yyrt3675 bool if yyl3675 > cap(yyv3675) { yyrg3675 := len(yyv3675) > 0 yyv23675 := yyv3675 yyrl3675, yyrt3675 = z.DecInferLen(yyl3675, z.DecBasicHandle().MaxInitLen, 440) if yyrt3675 { if yyrl3675 <= cap(yyv3675) { yyv3675 = yyv3675[:yyrl3675] } else { yyv3675 = make([]Event, yyrl3675) } } else { yyv3675 = make([]Event, yyrl3675) } yyc3675 = true yyrr3675 = len(yyv3675) if yyrg3675 { copy(yyv3675, yyv23675) } } else if yyl3675 != len(yyv3675) { yyv3675 = yyv3675[:yyl3675] yyc3675 = true } yyj3675 := 0 for ; yyj3675 < yyrr3675; yyj3675++ { yyh3675.ElemContainerState(yyj3675) if r.TryDecodeAsNil() { yyv3675[yyj3675] = Event{} } else { yyv3676 := &yyv3675[yyj3675] yyv3676.CodecDecodeSelf(d) } } if yyrt3675 { for ; yyj3675 < yyl3675; yyj3675++ { yyv3675 = append(yyv3675, Event{}) yyh3675.ElemContainerState(yyj3675) if r.TryDecodeAsNil() { yyv3675[yyj3675] = Event{} } else { yyv3677 := &yyv3675[yyj3675] yyv3677.CodecDecodeSelf(d) } } } } else { yyj3675 := 0 for ; !r.CheckBreak(); yyj3675++ { if yyj3675 >= len(yyv3675) { yyv3675 = append(yyv3675, Event{}) // var yyz3675 Event yyc3675 = true } yyh3675.ElemContainerState(yyj3675) if yyj3675 < len(yyv3675) { if r.TryDecodeAsNil() { yyv3675[yyj3675] = Event{} } else { yyv3678 := &yyv3675[yyj3675] yyv3678.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3675 < len(yyv3675) { yyv3675 = yyv3675[:yyj3675] yyc3675 = true } else if yyj3675 == 0 && yyv3675 == nil { yyv3675 = []Event{} yyc3675 = true } } yyh3675.End() if yyc3675 { *v = yyv3675 } } 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 _, yyv3679 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv3679 == nil { r.EncodeNil() } else { yym3680 := z.EncBinary() _ = yym3680 if false { } else if z.HasExtensions() && z.EncExt(yyv3679) { } else { z.EncFallback(yyv3679) } } } 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 yyv3681 := *v yyh3681, yyl3681 := z.DecSliceHelperStart() var yyc3681 bool if yyl3681 == 0 { if yyv3681 == nil { yyv3681 = []pkg8_runtime.Object{} yyc3681 = true } else if len(yyv3681) != 0 { yyv3681 = yyv3681[:0] yyc3681 = true } } else if yyl3681 > 0 { var yyrr3681, yyrl3681 int var yyrt3681 bool if yyl3681 > cap(yyv3681) { yyrg3681 := len(yyv3681) > 0 yyv23681 := yyv3681 yyrl3681, yyrt3681 = z.DecInferLen(yyl3681, z.DecBasicHandle().MaxInitLen, 16) if yyrt3681 { if yyrl3681 <= cap(yyv3681) { yyv3681 = yyv3681[:yyrl3681] } else { yyv3681 = make([]pkg8_runtime.Object, yyrl3681) } } else { yyv3681 = make([]pkg8_runtime.Object, yyrl3681) } yyc3681 = true yyrr3681 = len(yyv3681) if yyrg3681 { copy(yyv3681, yyv23681) } } else if yyl3681 != len(yyv3681) { yyv3681 = yyv3681[:yyl3681] yyc3681 = true } yyj3681 := 0 for ; yyj3681 < yyrr3681; yyj3681++ { yyh3681.ElemContainerState(yyj3681) if r.TryDecodeAsNil() { yyv3681[yyj3681] = nil } else { yyv3682 := &yyv3681[yyj3681] yym3683 := z.DecBinary() _ = yym3683 if false { } else if z.HasExtensions() && z.DecExt(yyv3682) { } else { z.DecFallback(yyv3682, true) } } } if yyrt3681 { for ; yyj3681 < yyl3681; yyj3681++ { yyv3681 = append(yyv3681, nil) yyh3681.ElemContainerState(yyj3681) if r.TryDecodeAsNil() { yyv3681[yyj3681] = nil } else { yyv3684 := &yyv3681[yyj3681] yym3685 := z.DecBinary() _ = yym3685 if false { } else if z.HasExtensions() && z.DecExt(yyv3684) { } else { z.DecFallback(yyv3684, true) } } } } } else { yyj3681 := 0 for ; !r.CheckBreak(); yyj3681++ { if yyj3681 >= len(yyv3681) { yyv3681 = append(yyv3681, nil) // var yyz3681 pkg8_runtime.Object yyc3681 = true } yyh3681.ElemContainerState(yyj3681) if yyj3681 < len(yyv3681) { if r.TryDecodeAsNil() { yyv3681[yyj3681] = nil } else { yyv3686 := &yyv3681[yyj3681] yym3687 := z.DecBinary() _ = yym3687 if false { } else if z.HasExtensions() && z.DecExt(yyv3686) { } else { z.DecFallback(yyv3686, true) } } } else { z.DecSwallow() } } if yyj3681 < len(yyv3681) { yyv3681 = yyv3681[:yyj3681] yyc3681 = true } else if yyj3681 == 0 && yyv3681 == nil { yyv3681 = []pkg8_runtime.Object{} yyc3681 = true } } yyh3681.End() if yyc3681 { *v = yyv3681 } } 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 _, yyv3688 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3689 := &yyv3688 yy3689.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 yyv3690 := *v yyh3690, yyl3690 := z.DecSliceHelperStart() var yyc3690 bool if yyl3690 == 0 { if yyv3690 == nil { yyv3690 = []LimitRangeItem{} yyc3690 = true } else if len(yyv3690) != 0 { yyv3690 = yyv3690[:0] yyc3690 = true } } else if yyl3690 > 0 { var yyrr3690, yyrl3690 int var yyrt3690 bool if yyl3690 > cap(yyv3690) { yyrg3690 := len(yyv3690) > 0 yyv23690 := yyv3690 yyrl3690, yyrt3690 = z.DecInferLen(yyl3690, z.DecBasicHandle().MaxInitLen, 56) if yyrt3690 { if yyrl3690 <= cap(yyv3690) { yyv3690 = yyv3690[:yyrl3690] } else { yyv3690 = make([]LimitRangeItem, yyrl3690) } } else { yyv3690 = make([]LimitRangeItem, yyrl3690) } yyc3690 = true yyrr3690 = len(yyv3690) if yyrg3690 { copy(yyv3690, yyv23690) } } else if yyl3690 != len(yyv3690) { yyv3690 = yyv3690[:yyl3690] yyc3690 = true } yyj3690 := 0 for ; yyj3690 < yyrr3690; yyj3690++ { yyh3690.ElemContainerState(yyj3690) if r.TryDecodeAsNil() { yyv3690[yyj3690] = LimitRangeItem{} } else { yyv3691 := &yyv3690[yyj3690] yyv3691.CodecDecodeSelf(d) } } if yyrt3690 { for ; yyj3690 < yyl3690; yyj3690++ { yyv3690 = append(yyv3690, LimitRangeItem{}) yyh3690.ElemContainerState(yyj3690) if r.TryDecodeAsNil() { yyv3690[yyj3690] = LimitRangeItem{} } else { yyv3692 := &yyv3690[yyj3690] yyv3692.CodecDecodeSelf(d) } } } } else { yyj3690 := 0 for ; !r.CheckBreak(); yyj3690++ { if yyj3690 >= len(yyv3690) { yyv3690 = append(yyv3690, LimitRangeItem{}) // var yyz3690 LimitRangeItem yyc3690 = true } yyh3690.ElemContainerState(yyj3690) if yyj3690 < len(yyv3690) { if r.TryDecodeAsNil() { yyv3690[yyj3690] = LimitRangeItem{} } else { yyv3693 := &yyv3690[yyj3690] yyv3693.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3690 < len(yyv3690) { yyv3690 = yyv3690[:yyj3690] yyc3690 = true } else if yyj3690 == 0 && yyv3690 == nil { yyv3690 = []LimitRangeItem{} yyc3690 = true } } yyh3690.End() if yyc3690 { *v = yyv3690 } } 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 _, yyv3694 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3695 := &yyv3694 yy3695.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 yyv3696 := *v yyh3696, yyl3696 := z.DecSliceHelperStart() var yyc3696 bool if yyl3696 == 0 { if yyv3696 == nil { yyv3696 = []LimitRange{} yyc3696 = true } else if len(yyv3696) != 0 { yyv3696 = yyv3696[:0] yyc3696 = true } } else if yyl3696 > 0 { var yyrr3696, yyrl3696 int var yyrt3696 bool if yyl3696 > cap(yyv3696) { yyrg3696 := len(yyv3696) > 0 yyv23696 := yyv3696 yyrl3696, yyrt3696 = z.DecInferLen(yyl3696, z.DecBasicHandle().MaxInitLen, 216) if yyrt3696 { if yyrl3696 <= cap(yyv3696) { yyv3696 = yyv3696[:yyrl3696] } else { yyv3696 = make([]LimitRange, yyrl3696) } } else { yyv3696 = make([]LimitRange, yyrl3696) } yyc3696 = true yyrr3696 = len(yyv3696) if yyrg3696 { copy(yyv3696, yyv23696) } } else if yyl3696 != len(yyv3696) { yyv3696 = yyv3696[:yyl3696] yyc3696 = true } yyj3696 := 0 for ; yyj3696 < yyrr3696; yyj3696++ { yyh3696.ElemContainerState(yyj3696) if r.TryDecodeAsNil() { yyv3696[yyj3696] = LimitRange{} } else { yyv3697 := &yyv3696[yyj3696] yyv3697.CodecDecodeSelf(d) } } if yyrt3696 { for ; yyj3696 < yyl3696; yyj3696++ { yyv3696 = append(yyv3696, LimitRange{}) yyh3696.ElemContainerState(yyj3696) if r.TryDecodeAsNil() { yyv3696[yyj3696] = LimitRange{} } else { yyv3698 := &yyv3696[yyj3696] yyv3698.CodecDecodeSelf(d) } } } } else { yyj3696 := 0 for ; !r.CheckBreak(); yyj3696++ { if yyj3696 >= len(yyv3696) { yyv3696 = append(yyv3696, LimitRange{}) // var yyz3696 LimitRange yyc3696 = true } yyh3696.ElemContainerState(yyj3696) if yyj3696 < len(yyv3696) { if r.TryDecodeAsNil() { yyv3696[yyj3696] = LimitRange{} } else { yyv3699 := &yyv3696[yyj3696] yyv3699.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3696 < len(yyv3696) { yyv3696 = yyv3696[:yyj3696] yyc3696 = true } else if yyj3696 == 0 && yyv3696 == nil { yyv3696 = []LimitRange{} yyc3696 = true } } yyh3696.End() if yyc3696 { *v = yyv3696 } } 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 _, yyv3700 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3701 := &yyv3700 yy3701.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 yyv3702 := *v yyh3702, yyl3702 := z.DecSliceHelperStart() var yyc3702 bool if yyl3702 == 0 { if yyv3702 == nil { yyv3702 = []ResourceQuota{} yyc3702 = true } else if len(yyv3702) != 0 { yyv3702 = yyv3702[:0] yyc3702 = true } } else if yyl3702 > 0 { var yyrr3702, yyrl3702 int var yyrt3702 bool if yyl3702 > cap(yyv3702) { yyrg3702 := len(yyv3702) > 0 yyv23702 := yyv3702 yyrl3702, yyrt3702 = z.DecInferLen(yyl3702, z.DecBasicHandle().MaxInitLen, 216) if yyrt3702 { if yyrl3702 <= cap(yyv3702) { yyv3702 = yyv3702[:yyrl3702] } else { yyv3702 = make([]ResourceQuota, yyrl3702) } } else { yyv3702 = make([]ResourceQuota, yyrl3702) } yyc3702 = true yyrr3702 = len(yyv3702) if yyrg3702 { copy(yyv3702, yyv23702) } } else if yyl3702 != len(yyv3702) { yyv3702 = yyv3702[:yyl3702] yyc3702 = true } yyj3702 := 0 for ; yyj3702 < yyrr3702; yyj3702++ { yyh3702.ElemContainerState(yyj3702) if r.TryDecodeAsNil() { yyv3702[yyj3702] = ResourceQuota{} } else { yyv3703 := &yyv3702[yyj3702] yyv3703.CodecDecodeSelf(d) } } if yyrt3702 { for ; yyj3702 < yyl3702; yyj3702++ { yyv3702 = append(yyv3702, ResourceQuota{}) yyh3702.ElemContainerState(yyj3702) if r.TryDecodeAsNil() { yyv3702[yyj3702] = ResourceQuota{} } else { yyv3704 := &yyv3702[yyj3702] yyv3704.CodecDecodeSelf(d) } } } } else { yyj3702 := 0 for ; !r.CheckBreak(); yyj3702++ { if yyj3702 >= len(yyv3702) { yyv3702 = append(yyv3702, ResourceQuota{}) // var yyz3702 ResourceQuota yyc3702 = true } yyh3702.ElemContainerState(yyj3702) if yyj3702 < len(yyv3702) { if r.TryDecodeAsNil() { yyv3702[yyj3702] = ResourceQuota{} } else { yyv3705 := &yyv3702[yyj3702] yyv3705.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3702 < len(yyv3702) { yyv3702 = yyv3702[:yyj3702] yyc3702 = true } else if yyj3702 == 0 && yyv3702 == nil { yyv3702 = []ResourceQuota{} yyc3702 = true } } yyh3702.End() if yyc3702 { *v = yyv3702 } } 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 yyk3706, yyv3706 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym3707 := z.EncBinary() _ = yym3707 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk3706)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv3706 == nil { r.EncodeNil() } else { yym3708 := z.EncBinary() _ = yym3708 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv3706)) } } } 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 yyv3709 := *v yyl3709 := r.ReadMapStart() yybh3709 := z.DecBasicHandle() if yyv3709 == nil { yyrl3709, _ := z.DecInferLen(yyl3709, yybh3709.MaxInitLen, 40) yyv3709 = make(map[string][]uint8, yyrl3709) *v = yyv3709 } var yymk3709 string var yymv3709 []uint8 var yymg3709 bool if yybh3709.MapValueReset { yymg3709 = true } if yyl3709 > 0 { for yyj3709 := 0; yyj3709 < yyl3709; yyj3709++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3709 = "" } else { yymk3709 = string(r.DecodeString()) } if yymg3709 { yymv3709 = yyv3709[yymk3709] } else { yymv3709 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3709 = nil } else { yyv3711 := &yymv3709 yym3712 := z.DecBinary() _ = yym3712 if false { } else { *yyv3711 = r.DecodeBytes(*(*[]byte)(yyv3711), false, false) } } if yyv3709 != nil { yyv3709[yymk3709] = yymv3709 } } } else if yyl3709 < 0 { for yyj3709 := 0; !r.CheckBreak(); yyj3709++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk3709 = "" } else { yymk3709 = string(r.DecodeString()) } if yymg3709 { yymv3709 = yyv3709[yymk3709] } else { yymv3709 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv3709 = nil } else { yyv3714 := &yymv3709 yym3715 := z.DecBinary() _ = yym3715 if false { } else { *yyv3714 = r.DecodeBytes(*(*[]byte)(yyv3714), false, false) } } if yyv3709 != nil { yyv3709[yymk3709] = yymv3709 } } } // 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 _, yyv3716 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3717 := &yyv3716 yy3717.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 yyv3718 := *v yyh3718, yyl3718 := z.DecSliceHelperStart() var yyc3718 bool if yyl3718 == 0 { if yyv3718 == nil { yyv3718 = []Secret{} yyc3718 = true } else if len(yyv3718) != 0 { yyv3718 = yyv3718[:0] yyc3718 = true } } else if yyl3718 > 0 { var yyrr3718, yyrl3718 int var yyrt3718 bool if yyl3718 > cap(yyv3718) { yyrg3718 := len(yyv3718) > 0 yyv23718 := yyv3718 yyrl3718, yyrt3718 = z.DecInferLen(yyl3718, z.DecBasicHandle().MaxInitLen, 216) if yyrt3718 { if yyrl3718 <= cap(yyv3718) { yyv3718 = yyv3718[:yyrl3718] } else { yyv3718 = make([]Secret, yyrl3718) } } else { yyv3718 = make([]Secret, yyrl3718) } yyc3718 = true yyrr3718 = len(yyv3718) if yyrg3718 { copy(yyv3718, yyv23718) } } else if yyl3718 != len(yyv3718) { yyv3718 = yyv3718[:yyl3718] yyc3718 = true } yyj3718 := 0 for ; yyj3718 < yyrr3718; yyj3718++ { yyh3718.ElemContainerState(yyj3718) if r.TryDecodeAsNil() { yyv3718[yyj3718] = Secret{} } else { yyv3719 := &yyv3718[yyj3718] yyv3719.CodecDecodeSelf(d) } } if yyrt3718 { for ; yyj3718 < yyl3718; yyj3718++ { yyv3718 = append(yyv3718, Secret{}) yyh3718.ElemContainerState(yyj3718) if r.TryDecodeAsNil() { yyv3718[yyj3718] = Secret{} } else { yyv3720 := &yyv3718[yyj3718] yyv3720.CodecDecodeSelf(d) } } } } else { yyj3718 := 0 for ; !r.CheckBreak(); yyj3718++ { if yyj3718 >= len(yyv3718) { yyv3718 = append(yyv3718, Secret{}) // var yyz3718 Secret yyc3718 = true } yyh3718.ElemContainerState(yyj3718) if yyj3718 < len(yyv3718) { if r.TryDecodeAsNil() { yyv3718[yyj3718] = Secret{} } else { yyv3721 := &yyv3718[yyj3718] yyv3721.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3718 < len(yyv3718) { yyv3718 = yyv3718[:yyj3718] yyc3718 = true } else if yyj3718 == 0 && yyv3718 == nil { yyv3718 = []Secret{} yyc3718 = true } } yyh3718.End() if yyc3718 { *v = yyv3718 } } 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 _, yyv3722 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3723 := &yyv3722 yy3723.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 yyv3724 := *v yyh3724, yyl3724 := z.DecSliceHelperStart() var yyc3724 bool if yyl3724 == 0 { if yyv3724 == nil { yyv3724 = []ComponentCondition{} yyc3724 = true } else if len(yyv3724) != 0 { yyv3724 = yyv3724[:0] yyc3724 = true } } else if yyl3724 > 0 { var yyrr3724, yyrl3724 int var yyrt3724 bool if yyl3724 > cap(yyv3724) { yyrg3724 := len(yyv3724) > 0 yyv23724 := yyv3724 yyrl3724, yyrt3724 = z.DecInferLen(yyl3724, z.DecBasicHandle().MaxInitLen, 64) if yyrt3724 { if yyrl3724 <= cap(yyv3724) { yyv3724 = yyv3724[:yyrl3724] } else { yyv3724 = make([]ComponentCondition, yyrl3724) } } else { yyv3724 = make([]ComponentCondition, yyrl3724) } yyc3724 = true yyrr3724 = len(yyv3724) if yyrg3724 { copy(yyv3724, yyv23724) } } else if yyl3724 != len(yyv3724) { yyv3724 = yyv3724[:yyl3724] yyc3724 = true } yyj3724 := 0 for ; yyj3724 < yyrr3724; yyj3724++ { yyh3724.ElemContainerState(yyj3724) if r.TryDecodeAsNil() { yyv3724[yyj3724] = ComponentCondition{} } else { yyv3725 := &yyv3724[yyj3724] yyv3725.CodecDecodeSelf(d) } } if yyrt3724 { for ; yyj3724 < yyl3724; yyj3724++ { yyv3724 = append(yyv3724, ComponentCondition{}) yyh3724.ElemContainerState(yyj3724) if r.TryDecodeAsNil() { yyv3724[yyj3724] = ComponentCondition{} } else { yyv3726 := &yyv3724[yyj3724] yyv3726.CodecDecodeSelf(d) } } } } else { yyj3724 := 0 for ; !r.CheckBreak(); yyj3724++ { if yyj3724 >= len(yyv3724) { yyv3724 = append(yyv3724, ComponentCondition{}) // var yyz3724 ComponentCondition yyc3724 = true } yyh3724.ElemContainerState(yyj3724) if yyj3724 < len(yyv3724) { if r.TryDecodeAsNil() { yyv3724[yyj3724] = ComponentCondition{} } else { yyv3727 := &yyv3724[yyj3724] yyv3727.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3724 < len(yyv3724) { yyv3724 = yyv3724[:yyj3724] yyc3724 = true } else if yyj3724 == 0 && yyv3724 == nil { yyv3724 = []ComponentCondition{} yyc3724 = true } } yyh3724.End() if yyc3724 { *v = yyv3724 } } 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 _, yyv3728 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3729 := &yyv3728 yy3729.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 yyv3730 := *v yyh3730, yyl3730 := z.DecSliceHelperStart() var yyc3730 bool if yyl3730 == 0 { if yyv3730 == nil { yyv3730 = []ComponentStatus{} yyc3730 = true } else if len(yyv3730) != 0 { yyv3730 = yyv3730[:0] yyc3730 = true } } else if yyl3730 > 0 { var yyrr3730, yyrl3730 int var yyrt3730 bool if yyl3730 > cap(yyv3730) { yyrg3730 := len(yyv3730) > 0 yyv23730 := yyv3730 yyrl3730, yyrt3730 = z.DecInferLen(yyl3730, z.DecBasicHandle().MaxInitLen, 216) if yyrt3730 { if yyrl3730 <= cap(yyv3730) { yyv3730 = yyv3730[:yyrl3730] } else { yyv3730 = make([]ComponentStatus, yyrl3730) } } else { yyv3730 = make([]ComponentStatus, yyrl3730) } yyc3730 = true yyrr3730 = len(yyv3730) if yyrg3730 { copy(yyv3730, yyv23730) } } else if yyl3730 != len(yyv3730) { yyv3730 = yyv3730[:yyl3730] yyc3730 = true } yyj3730 := 0 for ; yyj3730 < yyrr3730; yyj3730++ { yyh3730.ElemContainerState(yyj3730) if r.TryDecodeAsNil() { yyv3730[yyj3730] = ComponentStatus{} } else { yyv3731 := &yyv3730[yyj3730] yyv3731.CodecDecodeSelf(d) } } if yyrt3730 { for ; yyj3730 < yyl3730; yyj3730++ { yyv3730 = append(yyv3730, ComponentStatus{}) yyh3730.ElemContainerState(yyj3730) if r.TryDecodeAsNil() { yyv3730[yyj3730] = ComponentStatus{} } else { yyv3732 := &yyv3730[yyj3730] yyv3732.CodecDecodeSelf(d) } } } } else { yyj3730 := 0 for ; !r.CheckBreak(); yyj3730++ { if yyj3730 >= len(yyv3730) { yyv3730 = append(yyv3730, ComponentStatus{}) // var yyz3730 ComponentStatus yyc3730 = true } yyh3730.ElemContainerState(yyj3730) if yyj3730 < len(yyv3730) { if r.TryDecodeAsNil() { yyv3730[yyj3730] = ComponentStatus{} } else { yyv3733 := &yyv3730[yyj3730] yyv3733.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj3730 < len(yyv3730) { yyv3730 = yyv3730[:yyj3730] yyc3730 = true } else if yyj3730 == 0 && yyv3730 == nil { yyv3730 = []ComponentStatus{} yyc3730 = true } } yyh3730.End() if yyc3730 { *v = yyv3730 } }