/* Copyright 2016 The Kubernetes Authors. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ // ************************************************************ // DO NOT EDIT. // THIS FILE IS AUTO-GENERATED BY codecgen. // ************************************************************ package api import ( "errors" "fmt" codec1978 "github.com/ugorji/go/codec" pkg3_resource "k8s.io/kubernetes/pkg/api/resource" pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned" pkg6_fields "k8s.io/kubernetes/pkg/fields" pkg5_labels "k8s.io/kubernetes/pkg/labels" pkg7_runtime "k8s.io/kubernetes/pkg/runtime" pkg1_types "k8s.io/kubernetes/pkg/types" pkg4_intstr "k8s.io/kubernetes/pkg/util/intstr" "reflect" "runtime" time "time" ) const ( // ----- content types ---- codecSelferC_UTF81234 = 1 codecSelferC_RAW1234 = 0 // ----- value types used ---- codecSelferValueTypeArray1234 = 10 codecSelferValueTypeMap1234 = 9 // ----- containerStateValues ---- codecSelfer_containerMapKey1234 = 2 codecSelfer_containerMapValue1234 = 3 codecSelfer_containerMapEnd1234 = 4 codecSelfer_containerArrayElem1234 = 6 codecSelfer_containerArrayEnd1234 = 7 ) var ( codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits()) codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`) ) type codecSelfer1234 struct{} func init() { if codec1978.GenVersion != 5 { _, file, _, _ := runtime.Caller(0) err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v", 5, codec1978.GenVersion, file) panic(err) } if false { // reference the types, but skip this branch at build/run time var v0 pkg3_resource.Quantity var v1 pkg2_unversioned.Time var v2 pkg6_fields.Selector var v3 pkg5_labels.Selector var v4 pkg7_runtime.Object var v5 pkg1_types.UID var v6 pkg4_intstr.IntOrString var v7 time.Time _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7 } } 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 [15]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 yyq2[12] = len(x.OwnerReferences) != 0 yyq2[13] = len(x.Finalizers) != 0 yyq2[14] = x.ClusterName != "" var yynn2 int if yyr2 || yy2arr2 { r.EncodeArrayStart(15) } 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_containerArrayElem1234) if yyq2[12] { if x.OwnerReferences == nil { r.EncodeNil() } else { yym44 := z.EncBinary() _ = yym44 if false { } else { h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) } } } else { r.EncodeNil() } } else { if yyq2[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ownerReferences")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OwnerReferences == nil { r.EncodeNil() } else { yym45 := z.EncBinary() _ = yym45 if false { } else { h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[13] { if x.Finalizers == nil { r.EncodeNil() } else { yym47 := z.EncBinary() _ = yym47 if false { } else { z.F.EncSliceStringV(x.Finalizers, false, e) } } } else { r.EncodeNil() } } else { if yyq2[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finalizers")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Finalizers == nil { r.EncodeNil() } else { yym48 := z.EncBinary() _ = yym48 if false { } else { z.F.EncSliceStringV(x.Finalizers, false, e) } } } } if yyr2 || yy2arr2 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2[14] { yym50 := z.EncBinary() _ = yym50 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym51 := z.EncBinary() _ = yym51 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterName)) } } } 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 yym52 := z.DecBinary() _ = yym52 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct53 := r.ContainerType() if yyct53 == codecSelferValueTypeMap1234 { yyl53 := r.ReadMapStart() if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl53, d) } } else if yyct53 == codecSelferValueTypeArray1234 { yyl53 := r.ReadArrayStart() if yyl53 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl53, 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 yys54Slc = z.DecScratchBuffer() // default slice to decode into _ = yys54Slc var yyhl54 bool = l >= 0 for yyj54 := 0; ; yyj54++ { if yyhl54 { if yyj54 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys54Slc = r.DecodeBytes(yys54Slc, true, true) yys54 := string(yys54Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys54 { 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 { yyv62 := &x.CreationTimestamp yym63 := z.DecBinary() _ = yym63 if false { } else if z.HasExtensions() && z.DecExt(yyv62) { } else if yym63 { z.DecBinaryUnmarshal(yyv62) } else if !yym63 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv62) } else { z.DecFallback(yyv62, false) } } case "deletionTimestamp": if r.TryDecodeAsNil() { if x.DeletionTimestamp != nil { x.DeletionTimestamp = nil } } else { if x.DeletionTimestamp == nil { x.DeletionTimestamp = new(pkg2_unversioned.Time) } yym65 := z.DecBinary() _ = yym65 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym65 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym65 && 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) } yym67 := z.DecBinary() _ = yym67 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "labels": if r.TryDecodeAsNil() { x.Labels = nil } else { yyv68 := &x.Labels yym69 := z.DecBinary() _ = yym69 if false { } else { z.F.DecMapStringStringX(yyv68, false, d) } } case "annotations": if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv70 := &x.Annotations yym71 := z.DecBinary() _ = yym71 if false { } else { z.F.DecMapStringStringX(yyv70, false, d) } } case "ownerReferences": if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { yyv72 := &x.OwnerReferences yym73 := z.DecBinary() _ = yym73 if false { } else { h.decSliceOwnerReference((*[]OwnerReference)(yyv72), d) } } case "finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv74 := &x.Finalizers yym75 := z.DecBinary() _ = yym75 if false { } else { z.F.DecSliceStringX(yyv74, false, d) } } case "clusterName": if r.TryDecodeAsNil() { x.ClusterName = "" } else { x.ClusterName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys54) } // end switch yys54 } // end for yyj54 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 yyj77 int var yyb77 bool var yyhl77 bool = l >= 0 yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.GenerateName = "" } else { x.GenerateName = string(r.DecodeString()) } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SelfLink = "" } else { x.SelfLink = string(r.DecodeString()) } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Generation = 0 } else { x.Generation = int64(r.DecodeInt(64)) } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CreationTimestamp = pkg2_unversioned.Time{} } else { yyv85 := &x.CreationTimestamp yym86 := z.DecBinary() _ = yym86 if false { } else if z.HasExtensions() && z.DecExt(yyv85) { } else if yym86 { z.DecBinaryUnmarshal(yyv85) } else if !yym86 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv85) } else { z.DecFallback(yyv85, false) } } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { 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) } yym88 := z.DecBinary() _ = yym88 if false { } else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) { } else if yym88 { z.DecBinaryUnmarshal(x.DeletionTimestamp) } else if !yym88 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.DeletionTimestamp) } else { z.DecFallback(x.DeletionTimestamp, false) } } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { 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) } yym90 := z.DecBinary() _ = yym90 if false { } else { *((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Labels = nil } else { yyv91 := &x.Labels yym92 := z.DecBinary() _ = yym92 if false { } else { z.F.DecMapStringStringX(yyv91, false, d) } } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Annotations = nil } else { yyv93 := &x.Annotations yym94 := z.DecBinary() _ = yym94 if false { } else { z.F.DecMapStringStringX(yyv93, false, d) } } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OwnerReferences = nil } else { yyv95 := &x.OwnerReferences yym96 := z.DecBinary() _ = yym96 if false { } else { h.decSliceOwnerReference((*[]OwnerReference)(yyv95), d) } } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv97 := &x.Finalizers yym98 := z.DecBinary() _ = yym98 if false { } else { z.F.DecSliceStringX(yyv97, false, d) } } yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClusterName = "" } else { x.ClusterName = string(r.DecodeString()) } for { yyj77++ if yyhl77 { yyb77 = yyj77 > l } else { yyb77 = r.CheckBreak() } if yyb77 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj77-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 { yym100 := z.EncBinary() _ = yym100 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep101 := !z.EncBinary() yy2arr101 := z.EncBasicHandle().StructToArray var yyq101 [23]bool _, _, _ = yysep101, yyq101, yy2arr101 const yyr101 bool = false yyq101[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil yyq101[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil yyq101[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq101[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq101[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil yyq101[6] = x.VolumeSource.Secret != nil && x.Secret != nil yyq101[7] = x.VolumeSource.NFS != nil && x.NFS != nil yyq101[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil yyq101[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq101[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil yyq101[11] = x.VolumeSource.RBD != nil && x.RBD != nil yyq101[12] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil yyq101[13] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq101[14] = x.VolumeSource.Cinder != nil && x.Cinder != nil yyq101[15] = x.VolumeSource.CephFS != nil && x.CephFS != nil yyq101[16] = x.VolumeSource.Flocker != nil && x.Flocker != nil yyq101[17] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil yyq101[18] = x.VolumeSource.FC != nil && x.FC != nil yyq101[19] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil yyq101[20] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil yyq101[21] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil yyq101[22] = x.VolumeSource.AzureDisk != nil && x.AzureDisk != nil var yynn101 int if yyr101 || yy2arr101 { r.EncodeArrayStart(23) } else { yynn101 = 1 for _, b := range yyq101 { if b { yynn101++ } } r.EncodeMapStart(yynn101) yynn101 = 0 } if yyr101 || yy2arr101 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym103 := z.EncBinary() _ = yym103 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) yym104 := z.EncBinary() _ = yym104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } var yyn105 bool if x.VolumeSource.HostPath == nil { yyn105 = true goto LABEL105 } LABEL105: if yyr101 || yy2arr101 { if yyn105 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[1] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn105 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn106 bool if x.VolumeSource.EmptyDir == nil { yyn106 = true goto LABEL106 } LABEL106: if yyr101 || yy2arr101 { if yyn106 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[2] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("emptyDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn106 { r.EncodeNil() } else { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } } } var yyn107 bool if x.VolumeSource.GCEPersistentDisk == nil { yyn107 = true goto LABEL107 } LABEL107: if yyr101 || yy2arr101 { if yyn107 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[3] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn107 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn108 bool if x.VolumeSource.AWSElasticBlockStore == nil { yyn108 = true goto LABEL108 } LABEL108: if yyr101 || yy2arr101 { if yyn108 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[4] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn108 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn109 bool if x.VolumeSource.GitRepo == nil { yyn109 = true goto LABEL109 } LABEL109: if yyr101 || yy2arr101 { if yyn109 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[5] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gitRepo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn109 { r.EncodeNil() } else { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } } } var yyn110 bool if x.VolumeSource.Secret == nil { yyn110 = true goto LABEL110 } LABEL110: if yyr101 || yy2arr101 { if yyn110 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[6] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secret")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn110 { r.EncodeNil() } else { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } } } var yyn111 bool if x.VolumeSource.NFS == nil { yyn111 = true goto LABEL111 } LABEL111: if yyr101 || yy2arr101 { if yyn111 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[7] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn111 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn112 bool if x.VolumeSource.ISCSI == nil { yyn112 = true goto LABEL112 } LABEL112: if yyr101 || yy2arr101 { if yyn112 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[8] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn112 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn113 bool if x.VolumeSource.Glusterfs == nil { yyn113 = true goto LABEL113 } LABEL113: if yyr101 || yy2arr101 { if yyn113 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[9] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn113 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn114 bool if x.VolumeSource.PersistentVolumeClaim == nil { yyn114 = true goto LABEL114 } LABEL114: if yyr101 || yy2arr101 { if yyn114 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[10] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn114 { r.EncodeNil() } else { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } } } var yyn115 bool if x.VolumeSource.RBD == nil { yyn115 = true goto LABEL115 } LABEL115: if yyr101 || yy2arr101 { if yyn115 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[11] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn115 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn116 bool if x.VolumeSource.Quobyte == nil { yyn116 = true goto LABEL116 } LABEL116: if yyr101 || yy2arr101 { if yyn116 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[12] { if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn116 { r.EncodeNil() } else { if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } } } var yyn117 bool if x.VolumeSource.FlexVolume == nil { yyn117 = true goto LABEL117 } LABEL117: if yyr101 || yy2arr101 { if yyn117 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[13] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn117 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn118 bool if x.VolumeSource.Cinder == nil { yyn118 = true goto LABEL118 } LABEL118: if yyr101 || yy2arr101 { if yyn118 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[14] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn118 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn119 bool if x.VolumeSource.CephFS == nil { yyn119 = true goto LABEL119 } LABEL119: if yyr101 || yy2arr101 { if yyn119 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[15] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn119 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn120 bool if x.VolumeSource.Flocker == nil { yyn120 = true goto LABEL120 } LABEL120: if yyr101 || yy2arr101 { if yyn120 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[16] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn120 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn121 bool if x.VolumeSource.DownwardAPI == nil { yyn121 = true goto LABEL121 } LABEL121: if yyr101 || yy2arr101 { if yyn121 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[17] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("downwardAPI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn121 { r.EncodeNil() } else { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } } } var yyn122 bool if x.VolumeSource.FC == nil { yyn122 = true goto LABEL122 } LABEL122: if yyr101 || yy2arr101 { if yyn122 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[18] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn122 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn123 bool if x.VolumeSource.AzureFile == nil { yyn123 = true goto LABEL123 } LABEL123: if yyr101 || yy2arr101 { if yyn123 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[19] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn123 { r.EncodeNil() } else { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } } var yyn124 bool if x.VolumeSource.ConfigMap == nil { yyn124 = true goto LABEL124 } LABEL124: if yyr101 || yy2arr101 { if yyn124 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[20] { if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn124 { r.EncodeNil() } else { if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } } } var yyn125 bool if x.VolumeSource.VsphereVolume == nil { yyn125 = true goto LABEL125 } LABEL125: if yyr101 || yy2arr101 { if yyn125 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[21] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[21] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn125 { r.EncodeNil() } else { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } } var yyn126 bool if x.VolumeSource.AzureDisk == nil { yyn126 = true goto LABEL126 } LABEL126: if yyr101 || yy2arr101 { if yyn126 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq101[22] { if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq101[22] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn126 { r.EncodeNil() } else { if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } } } if yyr101 || yy2arr101 { 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 yym127 := z.DecBinary() _ = yym127 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct128 := r.ContainerType() if yyct128 == codecSelferValueTypeMap1234 { yyl128 := r.ReadMapStart() if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl128, d) } } else if yyct128 == codecSelferValueTypeArray1234 { yyl128 := r.ReadArrayStart() if yyl128 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl128, 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 yys129Slc = z.DecScratchBuffer() // default slice to decode into _ = yys129Slc var yyhl129 bool = l >= 0 for yyj129 := 0; ; yyj129++ { if yyhl129 { if yyj129 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys129Slc = r.DecodeBytes(yys129Slc, true, true) yys129 := string(yys129Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys129 { 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 "quobyte": if x.VolumeSource.Quobyte == nil { x.VolumeSource.Quobyte = new(QuobyteVolumeSource) } if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } case "flexVolume": if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.VolumeSource.CephFS == nil { x.VolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if x.VolumeSource.Flocker == nil { x.VolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if x.VolumeSource.DownwardAPI == nil { x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource) } if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if x.VolumeSource.FC == nil { x.VolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "azureFile": if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "configMap": if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } case "vsphereVolume": if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } case "azureDisk": if x.VolumeSource.AzureDisk == nil { x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) } if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys129) } // end switch yys129 } // end for yyj129 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 yyj153 int var yyb153 bool var yyhl153 bool = l >= 0 yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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.Quobyte == nil { x.VolumeSource.Quobyte = new(QuobyteVolumeSource) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } if x.VolumeSource.FlexVolume == nil { x.VolumeSource.FlexVolume = new(FlexVolumeSource) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } if x.VolumeSource.Cinder == nil { x.VolumeSource.Cinder = new(CinderVolumeSource) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { 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) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } if x.VolumeSource.AzureFile == nil { x.VolumeSource.AzureFile = new(AzureFileVolumeSource) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } if x.VolumeSource.ConfigMap == nil { x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } if x.VolumeSource.VsphereVolume == nil { x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } if x.VolumeSource.AzureDisk == nil { x.VolumeSource.AzureDisk = new(AzureDiskVolumeSource) } yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } for { yyj153++ if yyhl153 { yyb153 = yyj153 > l } else { yyb153 = r.CheckBreak() } if yyb153 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj153-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 { yym177 := z.EncBinary() _ = yym177 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep178 := !z.EncBinary() yy2arr178 := z.EncBasicHandle().StructToArray var yyq178 [22]bool _, _, _ = yysep178, yyq178, yy2arr178 const yyr178 bool = false yyq178[0] = x.HostPath != nil yyq178[1] = x.EmptyDir != nil yyq178[2] = x.GCEPersistentDisk != nil yyq178[3] = x.AWSElasticBlockStore != nil yyq178[4] = x.GitRepo != nil yyq178[5] = x.Secret != nil yyq178[6] = x.NFS != nil yyq178[7] = x.ISCSI != nil yyq178[8] = x.Glusterfs != nil yyq178[9] = x.PersistentVolumeClaim != nil yyq178[10] = x.RBD != nil yyq178[11] = x.Quobyte != nil yyq178[12] = x.FlexVolume != nil yyq178[13] = x.Cinder != nil yyq178[14] = x.CephFS != nil yyq178[15] = x.Flocker != nil yyq178[16] = x.DownwardAPI != nil yyq178[17] = x.FC != nil yyq178[18] = x.AzureFile != nil yyq178[19] = x.ConfigMap != nil yyq178[20] = x.VsphereVolume != nil yyq178[21] = x.AzureDisk != nil var yynn178 int if yyr178 || yy2arr178 { r.EncodeArrayStart(22) } else { yynn178 = 0 for _, b := range yyq178 { if b { yynn178++ } } r.EncodeMapStart(yynn178) yynn178 = 0 } if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[0] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[1] { if x.EmptyDir == nil { r.EncodeNil() } else { x.EmptyDir.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[2] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[3] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[4] { if x.GitRepo == nil { r.EncodeNil() } else { x.GitRepo.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[5] { if x.Secret == nil { r.EncodeNil() } else { x.Secret.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[6] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[8] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[9] { if x.PersistentVolumeClaim == nil { r.EncodeNil() } else { x.PersistentVolumeClaim.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[10] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[11] { if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } } if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[12] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[13] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[13] { 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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[14] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[14] { 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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[15] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[15] { 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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[16] { if x.DownwardAPI == nil { r.EncodeNil() } else { x.DownwardAPI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[16] { 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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[17] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[17] { 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 yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[18] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[18] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[19] { if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMap")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ConfigMap == nil { r.EncodeNil() } else { x.ConfigMap.CodecEncodeSelf(e) } } } if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[20] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[20] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } if yyr178 || yy2arr178 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq178[21] { if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq178[21] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } } if yyr178 || yy2arr178 { 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 yym201 := z.DecBinary() _ = yym201 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct202 := r.ContainerType() if yyct202 == codecSelferValueTypeMap1234 { yyl202 := r.ReadMapStart() if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl202, d) } } else if yyct202 == codecSelferValueTypeArray1234 { yyl202 := r.ReadArrayStart() if yyl202 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl202, 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 yys203Slc = z.DecScratchBuffer() // default slice to decode into _ = yys203Slc var yyhl203 bool = l >= 0 for yyj203 := 0; ; yyj203++ { if yyhl203 { if yyj203 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys203Slc = r.DecodeBytes(yys203Slc, true, true) yys203 := string(yys203Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys203 { 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 "quobyte": if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } case "flexVolume": if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "downwardAPI": if r.TryDecodeAsNil() { if x.DownwardAPI != nil { x.DownwardAPI = nil } } else { if x.DownwardAPI == nil { x.DownwardAPI = new(DownwardAPIVolumeSource) } x.DownwardAPI.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "azureFile": if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "configMap": if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } case "vsphereVolume": if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } case "azureDisk": if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys203) } // end switch yys203 } // end for yyj203 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 yyj226 int var yyb226 bool var yyhl226 bool = l >= 0 yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { 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) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ConfigMap != nil { x.ConfigMap = nil } } else { if x.ConfigMap == nil { x.ConfigMap = new(ConfigMapVolumeSource) } x.ConfigMap.CodecDecodeSelf(d) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } for { yyj226++ if yyhl226 { yyb226 = yyj226 > l } else { yyb226 = r.CheckBreak() } if yyb226 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj226-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 { yym249 := z.EncBinary() _ = yym249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep250 := !z.EncBinary() yy2arr250 := z.EncBasicHandle().StructToArray var yyq250 [16]bool _, _, _ = yysep250, yyq250, yy2arr250 const yyr250 bool = false yyq250[0] = x.GCEPersistentDisk != nil yyq250[1] = x.AWSElasticBlockStore != nil yyq250[2] = x.HostPath != nil yyq250[3] = x.Glusterfs != nil yyq250[4] = x.NFS != nil yyq250[5] = x.RBD != nil yyq250[6] = x.Quobyte != nil yyq250[7] = x.ISCSI != nil yyq250[8] = x.FlexVolume != nil yyq250[9] = x.Cinder != nil yyq250[10] = x.CephFS != nil yyq250[11] = x.FC != nil yyq250[12] = x.Flocker != nil yyq250[13] = x.AzureFile != nil yyq250[14] = x.VsphereVolume != nil yyq250[15] = x.AzureDisk != nil var yynn250 int if yyr250 || yy2arr250 { r.EncodeArrayStart(16) } 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] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[1] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[2] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[3] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[4] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[5] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[6] { if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[7] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[8] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[9] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[9] { 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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[10] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[10] { 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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[11] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[11] { 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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[12] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[12] { 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 yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[13] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[14] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } if yyr250 || yy2arr250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq250[15] { if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq250[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } } if yyr250 || yy2arr250 { 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 yym267 := z.DecBinary() _ = yym267 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct268 := r.ContainerType() if yyct268 == codecSelferValueTypeMap1234 { yyl268 := r.ReadMapStart() if yyl268 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl268, d) } } else if yyct268 == codecSelferValueTypeArray1234 { yyl268 := r.ReadArrayStart() if yyl268 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl268, 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 yys269Slc = z.DecScratchBuffer() // default slice to decode into _ = yys269Slc var yyhl269 bool = l >= 0 for yyj269 := 0; ; yyj269++ { if yyhl269 { if yyj269 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys269Slc = r.DecodeBytes(yys269Slc, true, true) yys269 := string(yys269Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys269 { 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 "quobyte": if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } case "iscsi": if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "flexVolume": if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "azureFile": if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "vsphereVolume": if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } case "azureDisk": if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys269) } // end switch yys269 } // end for yyj269 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 yyj286 int var yyb286 bool var yyhl286 bool = l >= 0 yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { 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) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } for { yyj286++ if yyhl286 { yyb286 = yyj286 > l } else { yyb286 = r.CheckBreak() } if yyb286 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj286-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 { yym303 := z.EncBinary() _ = yym303 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep304 := !z.EncBinary() yy2arr304 := z.EncBasicHandle().StructToArray var yyq304 [2]bool _, _, _ = yysep304, yyq304, yy2arr304 const yyr304 bool = false yyq304[1] = x.ReadOnly != false var yynn304 int if yyr304 || yy2arr304 { r.EncodeArrayStart(2) } else { yynn304 = 1 for _, b := range yyq304 { if b { yynn304++ } } r.EncodeMapStart(yynn304) yynn304 = 0 } if yyr304 || yy2arr304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym306 := z.EncBinary() _ = yym306 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) yym307 := z.EncBinary() _ = yym307 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName)) } } if yyr304 || yy2arr304 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq304[1] { yym309 := z.EncBinary() _ = yym309 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq304[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym310 := z.EncBinary() _ = yym310 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr304 || yy2arr304 { 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 yym311 := z.DecBinary() _ = yym311 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct312 := r.ContainerType() if yyct312 == codecSelferValueTypeMap1234 { yyl312 := r.ReadMapStart() if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl312, d) } } else if yyct312 == codecSelferValueTypeArray1234 { yyl312 := r.ReadArrayStart() if yyl312 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl312, 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 yys313Slc = z.DecScratchBuffer() // default slice to decode into _ = yys313Slc var yyhl313 bool = l >= 0 for yyj313 := 0; ; yyj313++ { if yyhl313 { if yyj313 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys313Slc = r.DecodeBytes(yys313Slc, true, true) yys313 := string(yys313Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys313 { 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, yys313) } // end switch yys313 } // end for yyj313 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 yyj316 int var yyb316 bool var yyhl316 bool = l >= 0 yyj316++ if yyhl316 { yyb316 = yyj316 > l } else { yyb316 = r.CheckBreak() } if yyb316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClaimName = "" } else { x.ClaimName = string(r.DecodeString()) } yyj316++ if yyhl316 { yyb316 = yyj316 > l } else { yyb316 = r.CheckBreak() } if yyb316 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj316++ if yyhl316 { yyb316 = yyj316 > l } else { yyb316 = r.CheckBreak() } if yyb316 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj316-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 { yym319 := z.EncBinary() _ = yym319 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep320 := !z.EncBinary() yy2arr320 := z.EncBasicHandle().StructToArray var yyq320 [5]bool _, _, _ = yysep320, yyq320, yy2arr320 const yyr320 bool = false yyq320[0] = x.Kind != "" yyq320[1] = x.APIVersion != "" yyq320[2] = true yyq320[3] = true yyq320[4] = true var yynn320 int if yyr320 || yy2arr320 { r.EncodeArrayStart(5) } else { yynn320 = 0 for _, b := range yyq320 { if b { yynn320++ } } r.EncodeMapStart(yynn320) yynn320 = 0 } if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq320[0] { yym322 := z.EncBinary() _ = yym322 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq320[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym323 := z.EncBinary() _ = yym323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq320[1] { yym325 := z.EncBinary() _ = yym325 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq320[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym326 := z.EncBinary() _ = yym326 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq320[2] { yy328 := &x.ObjectMeta yy328.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq320[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy329 := &x.ObjectMeta yy329.CodecEncodeSelf(e) } } if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq320[3] { yy331 := &x.Spec yy331.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq320[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy332 := &x.Spec yy332.CodecEncodeSelf(e) } } if yyr320 || yy2arr320 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq320[4] { yy334 := &x.Status yy334.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq320[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy335 := &x.Status yy335.CodecEncodeSelf(e) } } if yyr320 || yy2arr320 { 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 yym336 := z.DecBinary() _ = yym336 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct337 := r.ContainerType() if yyct337 == codecSelferValueTypeMap1234 { yyl337 := r.ReadMapStart() if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl337, d) } } else if yyct337 == codecSelferValueTypeArray1234 { yyl337 := r.ReadArrayStart() if yyl337 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl337, 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 yys338Slc = z.DecScratchBuffer() // default slice to decode into _ = yys338Slc var yyhl338 bool = l >= 0 for yyj338 := 0; ; yyj338++ { if yyhl338 { if yyj338 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys338Slc = r.DecodeBytes(yys338Slc, true, true) yys338 := string(yys338Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys338 { 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 { yyv341 := &x.ObjectMeta yyv341.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv342 := &x.Spec yyv342.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv343 := &x.Status yyv343.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys338) } // end switch yys338 } // end for yyj338 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 yyj344 int var yyb344 bool var yyhl344 bool = l >= 0 yyj344++ if yyhl344 { yyb344 = yyj344 > l } else { yyb344 = r.CheckBreak() } if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj344++ if yyhl344 { yyb344 = yyj344 > l } else { yyb344 = r.CheckBreak() } if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj344++ if yyhl344 { yyb344 = yyj344 > l } else { yyb344 = r.CheckBreak() } if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv347 := &x.ObjectMeta yyv347.CodecDecodeSelf(d) } yyj344++ if yyhl344 { yyb344 = yyj344 > l } else { yyb344 = r.CheckBreak() } if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeSpec{} } else { yyv348 := &x.Spec yyv348.CodecDecodeSelf(d) } yyj344++ if yyhl344 { yyb344 = yyj344 > l } else { yyb344 = r.CheckBreak() } if yyb344 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeStatus{} } else { yyv349 := &x.Status yyv349.CodecDecodeSelf(d) } for { yyj344++ if yyhl344 { yyb344 = yyj344 > l } else { yyb344 = r.CheckBreak() } if yyb344 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj344-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 { yym350 := z.EncBinary() _ = yym350 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep351 := !z.EncBinary() yy2arr351 := z.EncBasicHandle().StructToArray var yyq351 [20]bool _, _, _ = yysep351, yyq351, yy2arr351 const yyr351 bool = false yyq351[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil yyq351[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil yyq351[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil yyq351[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil yyq351[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil yyq351[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil yyq351[7] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil yyq351[8] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil yyq351[9] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil yyq351[10] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil yyq351[11] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil yyq351[12] = x.PersistentVolumeSource.FC != nil && x.FC != nil yyq351[13] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil yyq351[14] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil yyq351[15] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil yyq351[16] = x.PersistentVolumeSource.AzureDisk != nil && x.AzureDisk != nil yyq351[17] = len(x.AccessModes) != 0 yyq351[18] = x.ClaimRef != nil yyq351[19] = x.PersistentVolumeReclaimPolicy != "" var yynn351 int if yyr351 || yy2arr351 { r.EncodeArrayStart(20) } else { yynn351 = 1 for _, b := range yyq351 { if b { yynn351++ } } r.EncodeMapStart(yynn351) yynn351 = 0 } if yyr351 || yy2arr351 { 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 yyn353 bool if x.PersistentVolumeSource.GCEPersistentDisk == nil { yyn353 = true goto LABEL353 } LABEL353: if yyr351 || yy2arr351 { if yyn353 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[1] { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn353 { r.EncodeNil() } else { if x.GCEPersistentDisk == nil { r.EncodeNil() } else { x.GCEPersistentDisk.CodecEncodeSelf(e) } } } } var yyn354 bool if x.PersistentVolumeSource.AWSElasticBlockStore == nil { yyn354 = true goto LABEL354 } LABEL354: if yyr351 || yy2arr351 { if yyn354 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[2] { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn354 { r.EncodeNil() } else { if x.AWSElasticBlockStore == nil { r.EncodeNil() } else { x.AWSElasticBlockStore.CodecEncodeSelf(e) } } } } var yyn355 bool if x.PersistentVolumeSource.HostPath == nil { yyn355 = true goto LABEL355 } LABEL355: if yyr351 || yy2arr351 { if yyn355 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[3] { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn355 { r.EncodeNil() } else { if x.HostPath == nil { r.EncodeNil() } else { x.HostPath.CodecEncodeSelf(e) } } } } var yyn356 bool if x.PersistentVolumeSource.Glusterfs == nil { yyn356 = true goto LABEL356 } LABEL356: if yyr351 || yy2arr351 { if yyn356 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[4] { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("glusterfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn356 { r.EncodeNil() } else { if x.Glusterfs == nil { r.EncodeNil() } else { x.Glusterfs.CodecEncodeSelf(e) } } } } var yyn357 bool if x.PersistentVolumeSource.NFS == nil { yyn357 = true goto LABEL357 } LABEL357: if yyr351 || yy2arr351 { if yyn357 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[5] { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn357 { r.EncodeNil() } else { if x.NFS == nil { r.EncodeNil() } else { x.NFS.CodecEncodeSelf(e) } } } } var yyn358 bool if x.PersistentVolumeSource.RBD == nil { yyn358 = true goto LABEL358 } LABEL358: if yyr351 || yy2arr351 { if yyn358 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[6] { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("rbd")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn358 { r.EncodeNil() } else { if x.RBD == nil { r.EncodeNil() } else { x.RBD.CodecEncodeSelf(e) } } } } var yyn359 bool if x.PersistentVolumeSource.Quobyte == nil { yyn359 = true goto LABEL359 } LABEL359: if yyr351 || yy2arr351 { if yyn359 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[7] { if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("quobyte")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn359 { r.EncodeNil() } else { if x.Quobyte == nil { r.EncodeNil() } else { x.Quobyte.CodecEncodeSelf(e) } } } } var yyn360 bool if x.PersistentVolumeSource.ISCSI == nil { yyn360 = true goto LABEL360 } LABEL360: if yyr351 || yy2arr351 { if yyn360 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[8] { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsi")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn360 { r.EncodeNil() } else { if x.ISCSI == nil { r.EncodeNil() } else { x.ISCSI.CodecEncodeSelf(e) } } } } var yyn361 bool if x.PersistentVolumeSource.FlexVolume == nil { yyn361 = true goto LABEL361 } LABEL361: if yyr351 || yy2arr351 { if yyn361 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[9] { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flexVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn361 { r.EncodeNil() } else { if x.FlexVolume == nil { r.EncodeNil() } else { x.FlexVolume.CodecEncodeSelf(e) } } } } var yyn362 bool if x.PersistentVolumeSource.Cinder == nil { yyn362 = true goto LABEL362 } LABEL362: if yyr351 || yy2arr351 { if yyn362 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[10] { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cinder")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn362 { r.EncodeNil() } else { if x.Cinder == nil { r.EncodeNil() } else { x.Cinder.CodecEncodeSelf(e) } } } } var yyn363 bool if x.PersistentVolumeSource.CephFS == nil { yyn363 = true goto LABEL363 } LABEL363: if yyr351 || yy2arr351 { if yyn363 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[11] { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cephfs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn363 { r.EncodeNil() } else { if x.CephFS == nil { r.EncodeNil() } else { x.CephFS.CodecEncodeSelf(e) } } } } var yyn364 bool if x.PersistentVolumeSource.FC == nil { yyn364 = true goto LABEL364 } LABEL364: if yyr351 || yy2arr351 { if yyn364 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[12] { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fc")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn364 { r.EncodeNil() } else { if x.FC == nil { r.EncodeNil() } else { x.FC.CodecEncodeSelf(e) } } } } var yyn365 bool if x.PersistentVolumeSource.Flocker == nil { yyn365 = true goto LABEL365 } LABEL365: if yyr351 || yy2arr351 { if yyn365 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[13] { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[13] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("flocker")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn365 { r.EncodeNil() } else { if x.Flocker == nil { r.EncodeNil() } else { x.Flocker.CodecEncodeSelf(e) } } } } var yyn366 bool if x.PersistentVolumeSource.AzureFile == nil { yyn366 = true goto LABEL366 } LABEL366: if yyr351 || yy2arr351 { if yyn366 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[14] { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[14] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn366 { r.EncodeNil() } else { if x.AzureFile == nil { r.EncodeNil() } else { x.AzureFile.CodecEncodeSelf(e) } } } } var yyn367 bool if x.PersistentVolumeSource.VsphereVolume == nil { yyn367 = true goto LABEL367 } LABEL367: if yyr351 || yy2arr351 { if yyn367 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[15] { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn367 { r.EncodeNil() } else { if x.VsphereVolume == nil { r.EncodeNil() } else { x.VsphereVolume.CodecEncodeSelf(e) } } } } var yyn368 bool if x.PersistentVolumeSource.AzureDisk == nil { yyn368 = true goto LABEL368 } LABEL368: if yyr351 || yy2arr351 { if yyn368 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[16] { if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq351[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("azureDisk")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn368 { r.EncodeNil() } else { if x.AzureDisk == nil { r.EncodeNil() } else { x.AzureDisk.CodecEncodeSelf(e) } } } } if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[17] { if x.AccessModes == nil { r.EncodeNil() } else { yym370 := z.EncBinary() _ = yym370 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq351[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym371 := z.EncBinary() _ = yym371 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[18] { if x.ClaimRef == nil { r.EncodeNil() } else { x.ClaimRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq351[18] { 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 yyr351 || yy2arr351 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq351[19] { x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq351[19] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e) } } if yyr351 || yy2arr351 { 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 yym374 := z.DecBinary() _ = yym374 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct375 := r.ContainerType() if yyct375 == codecSelferValueTypeMap1234 { yyl375 := r.ReadMapStart() if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl375, d) } } else if yyct375 == codecSelferValueTypeArray1234 { yyl375 := r.ReadArrayStart() if yyl375 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl375, 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 yys376Slc = z.DecScratchBuffer() // default slice to decode into _ = yys376Slc var yyhl376 bool = l >= 0 for yyj376 := 0; ; yyj376++ { if yyhl376 { if yyj376 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys376Slc = r.DecodeBytes(yys376Slc, true, true) yys376 := string(yys376Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys376 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv377 := &x.Capacity yyv377.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 "quobyte": if x.PersistentVolumeSource.Quobyte == nil { x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) } if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } case "iscsi": if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } case "flexVolume": if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } case "cinder": if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } if r.TryDecodeAsNil() { if x.Cinder != nil { x.Cinder = nil } } else { if x.Cinder == nil { x.Cinder = new(CinderVolumeSource) } x.Cinder.CodecDecodeSelf(d) } case "cephfs": if x.PersistentVolumeSource.CephFS == nil { x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource) } if r.TryDecodeAsNil() { if x.CephFS != nil { x.CephFS = nil } } else { if x.CephFS == nil { x.CephFS = new(CephFSVolumeSource) } x.CephFS.CodecDecodeSelf(d) } case "fc": if x.PersistentVolumeSource.FC == nil { x.PersistentVolumeSource.FC = new(FCVolumeSource) } if r.TryDecodeAsNil() { if x.FC != nil { x.FC = nil } } else { if x.FC == nil { x.FC = new(FCVolumeSource) } x.FC.CodecDecodeSelf(d) } case "flocker": if x.PersistentVolumeSource.Flocker == nil { x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource) } if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } case "azureFile": if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } case "vsphereVolume": if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } case "azureDisk": if x.PersistentVolumeSource.AzureDisk == nil { x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) } if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv394 := &x.AccessModes yym395 := z.DecBinary() _ = yym395 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv394), 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, yys376) } // end switch yys376 } // end for yyj376 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 yyj398 int var yyb398 bool var yyhl398 bool = l >= 0 yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv399 := &x.Capacity yyv399.CodecDecodeSelf(d) } if x.PersistentVolumeSource.GCEPersistentDisk == nil { x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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.Quobyte == nil { x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Quobyte != nil { x.Quobyte = nil } } else { if x.Quobyte == nil { x.Quobyte = new(QuobyteVolumeSource) } x.Quobyte.CodecDecodeSelf(d) } if x.PersistentVolumeSource.ISCSI == nil { x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ISCSI != nil { x.ISCSI = nil } } else { if x.ISCSI == nil { x.ISCSI = new(ISCSIVolumeSource) } x.ISCSI.CodecDecodeSelf(d) } if x.PersistentVolumeSource.FlexVolume == nil { x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FlexVolume != nil { x.FlexVolume = nil } } else { if x.FlexVolume == nil { x.FlexVolume = new(FlexVolumeSource) } x.FlexVolume.CodecDecodeSelf(d) } if x.PersistentVolumeSource.Cinder == nil { x.PersistentVolumeSource.Cinder = new(CinderVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Flocker != nil { x.Flocker = nil } } else { if x.Flocker == nil { x.Flocker = new(FlockerVolumeSource) } x.Flocker.CodecDecodeSelf(d) } if x.PersistentVolumeSource.AzureFile == nil { x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureFile != nil { x.AzureFile = nil } } else { if x.AzureFile == nil { x.AzureFile = new(AzureFileVolumeSource) } x.AzureFile.CodecDecodeSelf(d) } if x.PersistentVolumeSource.VsphereVolume == nil { x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.VsphereVolume != nil { x.VsphereVolume = nil } } else { if x.VsphereVolume == nil { x.VsphereVolume = new(VsphereVirtualDiskVolumeSource) } x.VsphereVolume.CodecDecodeSelf(d) } if x.PersistentVolumeSource.AzureDisk == nil { x.PersistentVolumeSource.AzureDisk = new(AzureDiskVolumeSource) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.AzureDisk != nil { x.AzureDisk = nil } } else { if x.AzureDisk == nil { x.AzureDisk = new(AzureDiskVolumeSource) } x.AzureDisk.CodecDecodeSelf(d) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv416 := &x.AccessModes yym417 := z.DecBinary() _ = yym417 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv416), d) } } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { 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) } yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PersistentVolumeReclaimPolicy = "" } else { x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString()) } for { yyj398++ if yyhl398 { yyb398 = yyj398 > l } else { yyb398 = r.CheckBreak() } if yyb398 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj398-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym420 := z.EncBinary() _ = yym420 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 yym421 := z.DecBinary() _ = yym421 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 { yym422 := z.EncBinary() _ = yym422 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep423 := !z.EncBinary() yy2arr423 := z.EncBasicHandle().StructToArray var yyq423 [3]bool _, _, _ = yysep423, yyq423, yy2arr423 const yyr423 bool = false yyq423[0] = x.Phase != "" yyq423[1] = x.Message != "" yyq423[2] = x.Reason != "" var yynn423 int if yyr423 || yy2arr423 { r.EncodeArrayStart(3) } else { yynn423 = 0 for _, b := range yyq423 { if b { yynn423++ } } r.EncodeMapStart(yynn423) yynn423 = 0 } if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq423[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq423[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq423[1] { yym426 := z.EncBinary() _ = yym426 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq423[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym427 := z.EncBinary() _ = yym427 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr423 || yy2arr423 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq423[2] { yym429 := z.EncBinary() _ = yym429 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq423[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym430 := z.EncBinary() _ = yym430 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr423 || yy2arr423 { 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 yym431 := z.DecBinary() _ = yym431 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct432 := r.ContainerType() if yyct432 == codecSelferValueTypeMap1234 { yyl432 := r.ReadMapStart() if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl432, d) } } else if yyct432 == codecSelferValueTypeArray1234 { yyl432 := r.ReadArrayStart() if yyl432 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl432, 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 yys433Slc = z.DecScratchBuffer() // default slice to decode into _ = yys433Slc var yyhl433 bool = l >= 0 for yyj433 := 0; ; yyj433++ { if yyhl433 { if yyj433 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys433Slc = r.DecodeBytes(yys433Slc, true, true) yys433 := string(yys433Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys433 { 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, yys433) } // end switch yys433 } // end for yyj433 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 yyj437 int var yyb437 bool var yyhl437 bool = l >= 0 yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumePhase(r.DecodeString()) } yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } for { yyj437++ if yyhl437 { yyb437 = yyj437 > l } else { yyb437 = r.CheckBreak() } if yyb437 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj437-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym441 := z.EncBinary() _ = yym441 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep442 := !z.EncBinary() yy2arr442 := z.EncBasicHandle().StructToArray var yyq442 [4]bool _, _, _ = yysep442, yyq442, yy2arr442 const yyr442 bool = false yyq442[0] = x.Kind != "" yyq442[1] = x.APIVersion != "" yyq442[2] = true var yynn442 int if yyr442 || yy2arr442 { r.EncodeArrayStart(4) } else { yynn442 = 1 for _, b := range yyq442 { if b { yynn442++ } } r.EncodeMapStart(yynn442) yynn442 = 0 } if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq442[0] { yym444 := z.EncBinary() _ = yym444 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq442[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym445 := z.EncBinary() _ = yym445 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq442[1] { yym447 := z.EncBinary() _ = yym447 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq442[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym448 := z.EncBinary() _ = yym448 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq442[2] { yy450 := &x.ListMeta yym451 := z.EncBinary() _ = yym451 if false { } else if z.HasExtensions() && z.EncExt(yy450) { } else { z.EncFallback(yy450) } } else { r.EncodeNil() } } else { if yyq442[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy452 := &x.ListMeta yym453 := z.EncBinary() _ = yym453 if false { } else if z.HasExtensions() && z.EncExt(yy452) { } else { z.EncFallback(yy452) } } } if yyr442 || yy2arr442 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym455 := z.EncBinary() _ = yym455 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 { yym456 := z.EncBinary() _ = yym456 if false { } else { h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e) } } } if yyr442 || yy2arr442 { 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 yym457 := z.DecBinary() _ = yym457 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct458 := r.ContainerType() if yyct458 == codecSelferValueTypeMap1234 { yyl458 := r.ReadMapStart() if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl458, d) } } else if yyct458 == codecSelferValueTypeArray1234 { yyl458 := r.ReadArrayStart() if yyl458 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl458, 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 yys459Slc = z.DecScratchBuffer() // default slice to decode into _ = yys459Slc var yyhl459 bool = l >= 0 for yyj459 := 0; ; yyj459++ { if yyhl459 { if yyj459 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys459Slc = r.DecodeBytes(yys459Slc, true, true) yys459 := string(yys459Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys459 { 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 { yyv462 := &x.ListMeta yym463 := z.DecBinary() _ = yym463 if false { } else if z.HasExtensions() && z.DecExt(yyv462) { } else { z.DecFallback(yyv462, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv464 := &x.Items yym465 := z.DecBinary() _ = yym465 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv464), d) } } default: z.DecStructFieldNotFound(-1, yys459) } // end switch yys459 } // end for yyj459 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 yyj466 int var yyb466 bool var yyhl466 bool = l >= 0 yyj466++ if yyhl466 { yyb466 = yyj466 > l } else { yyb466 = r.CheckBreak() } if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj466++ if yyhl466 { yyb466 = yyj466 > l } else { yyb466 = r.CheckBreak() } if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj466++ if yyhl466 { yyb466 = yyj466 > l } else { yyb466 = r.CheckBreak() } if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv469 := &x.ListMeta yym470 := z.DecBinary() _ = yym470 if false { } else if z.HasExtensions() && z.DecExt(yyv469) { } else { z.DecFallback(yyv469, false) } } yyj466++ if yyhl466 { yyb466 = yyj466 > l } else { yyb466 = r.CheckBreak() } if yyb466 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv471 := &x.Items yym472 := z.DecBinary() _ = yym472 if false { } else { h.decSlicePersistentVolume((*[]PersistentVolume)(yyv471), d) } } for { yyj466++ if yyhl466 { yyb466 = yyj466 > l } else { yyb466 = r.CheckBreak() } if yyb466 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj466-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 { yym473 := z.EncBinary() _ = yym473 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep474 := !z.EncBinary() yy2arr474 := z.EncBasicHandle().StructToArray var yyq474 [5]bool _, _, _ = yysep474, yyq474, yy2arr474 const yyr474 bool = false yyq474[0] = x.Kind != "" yyq474[1] = x.APIVersion != "" yyq474[2] = true yyq474[3] = true yyq474[4] = true var yynn474 int if yyr474 || yy2arr474 { r.EncodeArrayStart(5) } else { yynn474 = 0 for _, b := range yyq474 { if b { yynn474++ } } r.EncodeMapStart(yynn474) yynn474 = 0 } if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq474[0] { yym476 := z.EncBinary() _ = yym476 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq474[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym477 := z.EncBinary() _ = yym477 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq474[1] { yym479 := z.EncBinary() _ = yym479 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq474[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym480 := z.EncBinary() _ = yym480 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq474[2] { yy482 := &x.ObjectMeta yy482.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq474[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy483 := &x.ObjectMeta yy483.CodecEncodeSelf(e) } } if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq474[3] { yy485 := &x.Spec yy485.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq474[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy486 := &x.Spec yy486.CodecEncodeSelf(e) } } if yyr474 || yy2arr474 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq474[4] { yy488 := &x.Status yy488.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq474[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy489 := &x.Status yy489.CodecEncodeSelf(e) } } if yyr474 || yy2arr474 { 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 yym490 := z.DecBinary() _ = yym490 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct491 := r.ContainerType() if yyct491 == codecSelferValueTypeMap1234 { yyl491 := r.ReadMapStart() if yyl491 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl491, d) } } else if yyct491 == codecSelferValueTypeArray1234 { yyl491 := r.ReadArrayStart() if yyl491 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl491, 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 yys492Slc = z.DecScratchBuffer() // default slice to decode into _ = yys492Slc var yyhl492 bool = l >= 0 for yyj492 := 0; ; yyj492++ { if yyhl492 { if yyj492 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys492Slc = r.DecodeBytes(yys492Slc, true, true) yys492 := string(yys492Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys492 { 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 { yyv495 := &x.ObjectMeta yyv495.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv496 := &x.Spec yyv496.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv497 := &x.Status yyv497.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys492) } // end switch yys492 } // end for yyj492 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 yyj498 int var yyb498 bool var yyhl498 bool = l >= 0 yyj498++ if yyhl498 { yyb498 = yyj498 > l } else { yyb498 = r.CheckBreak() } if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj498++ if yyhl498 { yyb498 = yyj498 > l } else { yyb498 = r.CheckBreak() } if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj498++ if yyhl498 { yyb498 = yyj498 > l } else { yyb498 = r.CheckBreak() } if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv501 := &x.ObjectMeta yyv501.CodecDecodeSelf(d) } yyj498++ if yyhl498 { yyb498 = yyj498 > l } else { yyb498 = r.CheckBreak() } if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PersistentVolumeClaimSpec{} } else { yyv502 := &x.Spec yyv502.CodecDecodeSelf(d) } yyj498++ if yyhl498 { yyb498 = yyj498 > l } else { yyb498 = r.CheckBreak() } if yyb498 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PersistentVolumeClaimStatus{} } else { yyv503 := &x.Status yyv503.CodecDecodeSelf(d) } for { yyj498++ if yyhl498 { yyb498 = yyj498 > l } else { yyb498 = r.CheckBreak() } if yyb498 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj498-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 { yym504 := z.EncBinary() _ = yym504 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep505 := !z.EncBinary() yy2arr505 := z.EncBasicHandle().StructToArray var yyq505 [4]bool _, _, _ = yysep505, yyq505, yy2arr505 const yyr505 bool = false yyq505[0] = x.Kind != "" yyq505[1] = x.APIVersion != "" yyq505[2] = true var yynn505 int if yyr505 || yy2arr505 { r.EncodeArrayStart(4) } else { yynn505 = 1 for _, b := range yyq505 { if b { yynn505++ } } r.EncodeMapStart(yynn505) yynn505 = 0 } if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq505[0] { yym507 := z.EncBinary() _ = yym507 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq505[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym508 := z.EncBinary() _ = yym508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq505[1] { yym510 := z.EncBinary() _ = yym510 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq505[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym511 := z.EncBinary() _ = yym511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq505[2] { yy513 := &x.ListMeta yym514 := z.EncBinary() _ = yym514 if false { } else if z.HasExtensions() && z.EncExt(yy513) { } else { z.EncFallback(yy513) } } else { r.EncodeNil() } } else { if yyq505[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy515 := &x.ListMeta yym516 := z.EncBinary() _ = yym516 if false { } else if z.HasExtensions() && z.EncExt(yy515) { } else { z.EncFallback(yy515) } } } if yyr505 || yy2arr505 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym518 := z.EncBinary() _ = yym518 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 { yym519 := z.EncBinary() _ = yym519 if false { } else { h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e) } } } if yyr505 || yy2arr505 { 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 yym520 := z.DecBinary() _ = yym520 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct521 := r.ContainerType() if yyct521 == codecSelferValueTypeMap1234 { yyl521 := r.ReadMapStart() if yyl521 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl521, d) } } else if yyct521 == codecSelferValueTypeArray1234 { yyl521 := r.ReadArrayStart() if yyl521 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl521, 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 yys522Slc = z.DecScratchBuffer() // default slice to decode into _ = yys522Slc var yyhl522 bool = l >= 0 for yyj522 := 0; ; yyj522++ { if yyhl522 { if yyj522 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys522Slc = r.DecodeBytes(yys522Slc, true, true) yys522 := string(yys522Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys522 { 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 { yyv525 := &x.ListMeta yym526 := z.DecBinary() _ = yym526 if false { } else if z.HasExtensions() && z.DecExt(yyv525) { } else { z.DecFallback(yyv525, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv527 := &x.Items yym528 := z.DecBinary() _ = yym528 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv527), d) } } default: z.DecStructFieldNotFound(-1, yys522) } // end switch yys522 } // end for yyj522 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 yyj529 int var yyb529 bool var yyhl529 bool = l >= 0 yyj529++ if yyhl529 { yyb529 = yyj529 > l } else { yyb529 = r.CheckBreak() } if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj529++ if yyhl529 { yyb529 = yyj529 > l } else { yyb529 = r.CheckBreak() } if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj529++ if yyhl529 { yyb529 = yyj529 > l } else { yyb529 = r.CheckBreak() } if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv532 := &x.ListMeta yym533 := z.DecBinary() _ = yym533 if false { } else if z.HasExtensions() && z.DecExt(yyv532) { } else { z.DecFallback(yyv532, false) } } yyj529++ if yyhl529 { yyb529 = yyj529 > l } else { yyb529 = r.CheckBreak() } if yyb529 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv534 := &x.Items yym535 := z.DecBinary() _ = yym535 if false { } else { h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv534), d) } } for { yyj529++ if yyhl529 { yyb529 = yyj529 > l } else { yyb529 = r.CheckBreak() } if yyb529 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj529-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym536 := z.EncBinary() _ = yym536 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep537 := !z.EncBinary() yy2arr537 := z.EncBasicHandle().StructToArray var yyq537 [4]bool _, _, _ = yysep537, yyq537, yy2arr537 const yyr537 bool = false yyq537[0] = len(x.AccessModes) != 0 yyq537[1] = x.Selector != nil yyq537[2] = true yyq537[3] = x.VolumeName != "" var yynn537 int if yyr537 || yy2arr537 { r.EncodeArrayStart(4) } else { yynn537 = 0 for _, b := range yyq537 { if b { yynn537++ } } r.EncodeMapStart(yynn537) yynn537 = 0 } if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq537[0] { if x.AccessModes == nil { r.EncodeNil() } else { yym539 := z.EncBinary() _ = yym539 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq537[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym540 := z.EncBinary() _ = yym540 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq537[1] { if x.Selector == nil { r.EncodeNil() } else { yym542 := z.EncBinary() _ = yym542 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { z.EncFallback(x.Selector) } } } else { r.EncodeNil() } } else { if yyq537[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("selector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Selector == nil { r.EncodeNil() } else { yym543 := z.EncBinary() _ = yym543 if false { } else if z.HasExtensions() && z.EncExt(x.Selector) { } else { z.EncFallback(x.Selector) } } } } if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq537[2] { yy545 := &x.Resources yy545.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq537[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy546 := &x.Resources yy546.CodecEncodeSelf(e) } } if yyr537 || yy2arr537 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq537[3] { yym548 := z.EncBinary() _ = yym548 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq537[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym549 := z.EncBinary() _ = yym549 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName)) } } } if yyr537 || yy2arr537 { 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 yym550 := z.DecBinary() _ = yym550 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct551 := r.ContainerType() if yyct551 == codecSelferValueTypeMap1234 { yyl551 := r.ReadMapStart() if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl551, d) } } else if yyct551 == codecSelferValueTypeArray1234 { yyl551 := r.ReadArrayStart() if yyl551 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl551, 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 yys552Slc = z.DecScratchBuffer() // default slice to decode into _ = yys552Slc var yyhl552 bool = l >= 0 for yyj552 := 0; ; yyj552++ { if yyhl552 { if yyj552 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys552Slc = r.DecodeBytes(yys552Slc, true, true) yys552 := string(yys552Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys552 { case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv553 := &x.AccessModes yym554 := z.DecBinary() _ = yym554 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv553), d) } } case "selector": if r.TryDecodeAsNil() { if x.Selector != nil { x.Selector = nil } } else { if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } yym556 := z.DecBinary() _ = yym556 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv557 := &x.Resources yyv557.CodecDecodeSelf(d) } case "volumeName": if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys552) } // end switch yys552 } // end for yyj552 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 yyj559 int var yyb559 bool var yyhl559 bool = l >= 0 yyj559++ if yyhl559 { yyb559 = yyj559 > l } else { yyb559 = r.CheckBreak() } if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv560 := &x.AccessModes yym561 := z.DecBinary() _ = yym561 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d) } } yyj559++ if yyhl559 { yyb559 = yyj559 > l } else { yyb559 = r.CheckBreak() } if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Selector != nil { x.Selector = nil } } else { if x.Selector == nil { x.Selector = new(pkg2_unversioned.LabelSelector) } yym563 := z.DecBinary() _ = yym563 if false { } else if z.HasExtensions() && z.DecExt(x.Selector) { } else { z.DecFallback(x.Selector, false) } } yyj559++ if yyhl559 { yyb559 = yyj559 > l } else { yyb559 = r.CheckBreak() } if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv564 := &x.Resources yyv564.CodecDecodeSelf(d) } yyj559++ if yyhl559 { yyb559 = yyj559 > l } else { yyb559 = r.CheckBreak() } if yyb559 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeName = "" } else { x.VolumeName = string(r.DecodeString()) } for { yyj559++ if yyhl559 { yyb559 = yyj559 > l } else { yyb559 = r.CheckBreak() } if yyb559 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj559-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 { yym566 := z.EncBinary() _ = yym566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep567 := !z.EncBinary() yy2arr567 := z.EncBasicHandle().StructToArray var yyq567 [3]bool _, _, _ = yysep567, yyq567, yy2arr567 const yyr567 bool = false yyq567[0] = x.Phase != "" yyq567[1] = len(x.AccessModes) != 0 yyq567[2] = len(x.Capacity) != 0 var yynn567 int if yyr567 || yy2arr567 { r.EncodeArrayStart(3) } else { yynn567 = 0 for _, b := range yyq567 { if b { yynn567++ } } r.EncodeMapStart(yynn567) yynn567 = 0 } if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq567[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq567[1] { if x.AccessModes == nil { r.EncodeNil() } else { yym570 := z.EncBinary() _ = yym570 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } else { r.EncodeNil() } } else { if yyq567[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("accessModes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.AccessModes == nil { r.EncodeNil() } else { yym571 := z.EncBinary() _ = yym571 if false { } else { h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e) } } } } if yyr567 || yy2arr567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq567[2] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq567[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 yyr567 || yy2arr567 { 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 yym573 := z.DecBinary() _ = yym573 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct574 := r.ContainerType() if yyct574 == codecSelferValueTypeMap1234 { yyl574 := r.ReadMapStart() if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl574, d) } } else if yyct574 == codecSelferValueTypeArray1234 { yyl574 := r.ReadArrayStart() if yyl574 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl574, 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 yys575Slc = z.DecScratchBuffer() // default slice to decode into _ = yys575Slc var yyhl575 bool = l >= 0 for yyj575 := 0; ; yyj575++ { if yyhl575 { if yyj575 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys575Slc = r.DecodeBytes(yys575Slc, true, true) yys575 := string(yys575Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys575 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } case "accessModes": if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv577 := &x.AccessModes yym578 := z.DecBinary() _ = yym578 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv577), d) } } case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv579 := &x.Capacity yyv579.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys575) } // end switch yys575 } // end for yyj575 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 yyj580 int var yyb580 bool var yyhl580 bool = l >= 0 yyj580++ if yyhl580 { yyb580 = yyj580 > l } else { yyb580 = r.CheckBreak() } if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PersistentVolumeClaimPhase(r.DecodeString()) } yyj580++ if yyhl580 { yyb580 = yyj580 > l } else { yyb580 = r.CheckBreak() } if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AccessModes = nil } else { yyv582 := &x.AccessModes yym583 := z.DecBinary() _ = yym583 if false { } else { h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv582), d) } } yyj580++ if yyhl580 { yyb580 = yyj580 > l } else { yyb580 = r.CheckBreak() } if yyb580 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv584 := &x.Capacity yyv584.CodecDecodeSelf(d) } for { yyj580++ if yyhl580 { yyb580 = yyj580 > l } else { yyb580 = r.CheckBreak() } if yyb580 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj580-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym585 := z.EncBinary() _ = yym585 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 yym586 := z.DecBinary() _ = yym586 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 yym587 := z.EncBinary() _ = yym587 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 yym588 := z.DecBinary() _ = yym588 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 yym589 := z.EncBinary() _ = yym589 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 yym590 := z.DecBinary() _ = yym590 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 { yym591 := z.EncBinary() _ = yym591 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep592 := !z.EncBinary() yy2arr592 := z.EncBasicHandle().StructToArray var yyq592 [1]bool _, _, _ = yysep592, yyq592, yy2arr592 const yyr592 bool = false var yynn592 int if yyr592 || yy2arr592 { r.EncodeArrayStart(1) } else { yynn592 = 1 for _, b := range yyq592 { if b { yynn592++ } } r.EncodeMapStart(yynn592) yynn592 = 0 } if yyr592 || yy2arr592 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym594 := z.EncBinary() _ = yym594 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) yym595 := z.EncBinary() _ = yym595 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr592 || yy2arr592 { 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 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 *HostPathVolumeSource) 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 "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys598) } // end switch yys598 } // end for yyj598 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 yyj600 int var yyb600 bool var yyhl600 bool = l >= 0 yyj600++ if yyhl600 { yyb600 = yyj600 > l } else { yyb600 = r.CheckBreak() } if yyb600 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj600++ if yyhl600 { yyb600 = yyj600 > l } else { yyb600 = r.CheckBreak() } if yyb600 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj600-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 { yym602 := z.EncBinary() _ = yym602 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep603 := !z.EncBinary() yy2arr603 := z.EncBasicHandle().StructToArray var yyq603 [1]bool _, _, _ = yysep603, yyq603, yy2arr603 const yyr603 bool = false yyq603[0] = x.Medium != "" var yynn603 int if yyr603 || yy2arr603 { r.EncodeArrayStart(1) } else { yynn603 = 0 for _, b := range yyq603 { if b { yynn603++ } } r.EncodeMapStart(yynn603) yynn603 = 0 } if yyr603 || yy2arr603 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq603[0] { x.Medium.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq603[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("medium")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Medium.CodecEncodeSelf(e) } } if yyr603 || yy2arr603 { 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 yym605 := z.DecBinary() _ = yym605 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct606 := r.ContainerType() if yyct606 == codecSelferValueTypeMap1234 { yyl606 := r.ReadMapStart() if yyl606 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl606, d) } } else if yyct606 == codecSelferValueTypeArray1234 { yyl606 := r.ReadArrayStart() if yyl606 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl606, 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 yys607Slc = z.DecScratchBuffer() // default slice to decode into _ = yys607Slc var yyhl607 bool = l >= 0 for yyj607 := 0; ; yyj607++ { if yyhl607 { if yyj607 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys607Slc = r.DecodeBytes(yys607Slc, true, true) yys607 := string(yys607Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys607 { case "medium": if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys607) } // end switch yys607 } // end for yyj607 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 yyj609 int var yyb609 bool var yyhl609 bool = l >= 0 yyj609++ if yyhl609 { yyb609 = yyj609 > l } else { yyb609 = r.CheckBreak() } if yyb609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Medium = "" } else { x.Medium = StorageMedium(r.DecodeString()) } for { yyj609++ if yyhl609 { yyb609 = yyj609 > l } else { yyb609 = r.CheckBreak() } if yyb609 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj609-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym611 := z.EncBinary() _ = yym611 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 yym612 := z.DecBinary() _ = yym612 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 yym613 := z.EncBinary() _ = yym613 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 yym614 := z.DecBinary() _ = yym614 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 { yym615 := z.EncBinary() _ = yym615 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep616 := !z.EncBinary() yy2arr616 := z.EncBasicHandle().StructToArray var yyq616 [4]bool _, _, _ = yysep616, yyq616, yy2arr616 const yyr616 bool = false yyq616[1] = x.FSType != "" yyq616[2] = x.Partition != 0 yyq616[3] = x.ReadOnly != false var yynn616 int if yyr616 || yy2arr616 { r.EncodeArrayStart(4) } else { yynn616 = 1 for _, b := range yyq616 { if b { yynn616++ } } r.EncodeMapStart(yynn616) yynn616 = 0 } if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym618 := z.EncBinary() _ = yym618 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) yym619 := z.EncBinary() _ = yym619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PDName)) } } if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq616[1] { yym621 := z.EncBinary() _ = yym621 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq616[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym622 := z.EncBinary() _ = yym622 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq616[2] { yym624 := z.EncBinary() _ = yym624 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq616[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym625 := z.EncBinary() _ = yym625 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr616 || yy2arr616 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq616[3] { yym627 := z.EncBinary() _ = yym627 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq616[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym628 := z.EncBinary() _ = yym628 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr616 || yy2arr616 { 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 yym629 := z.DecBinary() _ = yym629 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct630 := r.ContainerType() if yyct630 == codecSelferValueTypeMap1234 { yyl630 := r.ReadMapStart() if yyl630 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl630, d) } } else if yyct630 == codecSelferValueTypeArray1234 { yyl630 := r.ReadArrayStart() if yyl630 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl630, 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 yys631Slc = z.DecScratchBuffer() // default slice to decode into _ = yys631Slc var yyhl631 bool = l >= 0 for yyj631 := 0; ; yyj631++ { if yyhl631 { if yyj631 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys631Slc = r.DecodeBytes(yys631Slc, true, true) yys631 := string(yys631Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys631 { 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 = int32(r.DecodeInt(32)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys631) } // end switch yys631 } // end for yyj631 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 yyj636 int var yyb636 bool var yyhl636 bool = l >= 0 yyj636++ if yyhl636 { yyb636 = yyj636 > l } else { yyb636 = r.CheckBreak() } if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PDName = "" } else { x.PDName = string(r.DecodeString()) } yyj636++ if yyhl636 { yyb636 = yyj636 > l } else { yyb636 = r.CheckBreak() } if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj636++ if yyhl636 { yyb636 = yyj636 > l } else { yyb636 = r.CheckBreak() } if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int32(r.DecodeInt(32)) } yyj636++ if yyhl636 { yyb636 = yyj636 > l } else { yyb636 = r.CheckBreak() } if yyb636 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj636++ if yyhl636 { yyb636 = yyj636 > l } else { yyb636 = r.CheckBreak() } if yyb636 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj636-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 { yym641 := z.EncBinary() _ = yym641 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep642 := !z.EncBinary() yy2arr642 := z.EncBasicHandle().StructToArray var yyq642 [6]bool _, _, _ = yysep642, yyq642, yy2arr642 const yyr642 bool = false yyq642[0] = x.TargetPortal != "" yyq642[1] = x.IQN != "" yyq642[2] = x.Lun != 0 yyq642[3] = x.ISCSIInterface != "" yyq642[4] = x.FSType != "" yyq642[5] = x.ReadOnly != false var yynn642 int if yyr642 || yy2arr642 { r.EncodeArrayStart(6) } else { yynn642 = 0 for _, b := range yyq642 { if b { yynn642++ } } r.EncodeMapStart(yynn642) yynn642 = 0 } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[0] { yym644 := z.EncBinary() _ = yym644 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq642[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPortal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym645 := z.EncBinary() _ = yym645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal)) } } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[1] { yym647 := z.EncBinary() _ = yym647 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq642[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iqn")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym648 := z.EncBinary() _ = yym648 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IQN)) } } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[2] { yym650 := z.EncBinary() _ = yym650 if false { } else { r.EncodeInt(int64(x.Lun)) } } else { r.EncodeInt(0) } } else { if yyq642[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym651 := z.EncBinary() _ = yym651 if false { } else { r.EncodeInt(int64(x.Lun)) } } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[3] { yym653 := z.EncBinary() _ = yym653 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq642[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym654 := z.EncBinary() _ = yym654 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface)) } } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[4] { yym656 := z.EncBinary() _ = yym656 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq642[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym657 := z.EncBinary() _ = yym657 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr642 || yy2arr642 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq642[5] { yym659 := z.EncBinary() _ = yym659 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq642[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym660 := z.EncBinary() _ = yym660 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr642 || yy2arr642 { 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 yym661 := z.DecBinary() _ = yym661 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct662 := r.ContainerType() if yyct662 == codecSelferValueTypeMap1234 { yyl662 := r.ReadMapStart() if yyl662 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl662, d) } } else if yyct662 == codecSelferValueTypeArray1234 { yyl662 := r.ReadArrayStart() if yyl662 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl662, 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 yys663Slc = z.DecScratchBuffer() // default slice to decode into _ = yys663Slc var yyhl663 bool = l >= 0 for yyj663 := 0; ; yyj663++ { if yyhl663 { if yyj663 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys663Slc = r.DecodeBytes(yys663Slc, true, true) yys663 := string(yys663Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys663 { 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 = int32(r.DecodeInt(32)) } case "iscsiInterface": if r.TryDecodeAsNil() { x.ISCSIInterface = "" } else { x.ISCSIInterface = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys663) } // end switch yys663 } // end for yyj663 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 yyj670 int var yyb670 bool var yyhl670 bool = l >= 0 yyj670++ if yyhl670 { yyb670 = yyj670 > l } else { yyb670 = r.CheckBreak() } if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPortal = "" } else { x.TargetPortal = string(r.DecodeString()) } yyj670++ if yyhl670 { yyb670 = yyj670 > l } else { yyb670 = r.CheckBreak() } if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IQN = "" } else { x.IQN = string(r.DecodeString()) } yyj670++ if yyhl670 { yyb670 = yyj670 > l } else { yyb670 = r.CheckBreak() } if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Lun = 0 } else { x.Lun = int32(r.DecodeInt(32)) } yyj670++ if yyhl670 { yyb670 = yyj670 > l } else { yyb670 = r.CheckBreak() } if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ISCSIInterface = "" } else { x.ISCSIInterface = string(r.DecodeString()) } yyj670++ if yyhl670 { yyb670 = yyj670 > l } else { yyb670 = r.CheckBreak() } if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj670++ if yyhl670 { yyb670 = yyj670 > l } else { yyb670 = r.CheckBreak() } if yyb670 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj670++ if yyhl670 { yyb670 = yyj670 > l } else { yyb670 = r.CheckBreak() } if yyb670 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj670-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 { yym677 := z.EncBinary() _ = yym677 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep678 := !z.EncBinary() yy2arr678 := z.EncBasicHandle().StructToArray var yyq678 [4]bool _, _, _ = yysep678, yyq678, yy2arr678 const yyr678 bool = false yyq678[2] = x.FSType != "" yyq678[3] = x.ReadOnly != false var yynn678 int if yyr678 || yy2arr678 { r.EncodeArrayStart(4) } else { yynn678 = 2 for _, b := range yyq678 { if b { yynn678++ } } r.EncodeMapStart(yynn678) yynn678 = 0 } if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TargetWWNs == nil { r.EncodeNil() } else { yym680 := z.EncBinary() _ = yym680 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 { yym681 := z.EncBinary() _ = yym681 if false { } else { z.F.EncSliceStringV(x.TargetWWNs, false, e) } } } if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Lun == nil { r.EncodeNil() } else { yy683 := *x.Lun yym684 := z.EncBinary() _ = yym684 if false { } else { r.EncodeInt(int64(yy683)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lun")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Lun == nil { r.EncodeNil() } else { yy685 := *x.Lun yym686 := z.EncBinary() _ = yym686 if false { } else { r.EncodeInt(int64(yy685)) } } } if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq678[2] { yym688 := z.EncBinary() _ = yym688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq678[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym689 := z.EncBinary() _ = yym689 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr678 || yy2arr678 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq678[3] { yym691 := z.EncBinary() _ = yym691 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq678[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym692 := z.EncBinary() _ = yym692 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr678 || yy2arr678 { 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 yym693 := z.DecBinary() _ = yym693 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct694 := r.ContainerType() if yyct694 == codecSelferValueTypeMap1234 { yyl694 := r.ReadMapStart() if yyl694 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl694, d) } } else if yyct694 == codecSelferValueTypeArray1234 { yyl694 := r.ReadArrayStart() if yyl694 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl694, 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 yys695Slc = z.DecScratchBuffer() // default slice to decode into _ = yys695Slc var yyhl695 bool = l >= 0 for yyj695 := 0; ; yyj695++ { if yyhl695 { if yyj695 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys695Slc = r.DecodeBytes(yys695Slc, true, true) yys695 := string(yys695Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys695 { case "targetWWNs": if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv696 := &x.TargetWWNs yym697 := z.DecBinary() _ = yym697 if false { } else { z.F.DecSliceStringX(yyv696, false, d) } } case "lun": if r.TryDecodeAsNil() { if x.Lun != nil { x.Lun = nil } } else { if x.Lun == nil { x.Lun = new(int32) } yym699 := z.DecBinary() _ = yym699 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } 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, yys695) } // end switch yys695 } // end for yyj695 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 yyj702 int var yyb702 bool var yyhl702 bool = l >= 0 yyj702++ if yyhl702 { yyb702 = yyj702 > l } else { yyb702 = r.CheckBreak() } if yyb702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetWWNs = nil } else { yyv703 := &x.TargetWWNs yym704 := z.DecBinary() _ = yym704 if false { } else { z.F.DecSliceStringX(yyv703, false, d) } } yyj702++ if yyhl702 { yyb702 = yyj702 > l } else { yyb702 = r.CheckBreak() } if yyb702 { 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(int32) } yym706 := z.DecBinary() _ = yym706 if false { } else { *((*int32)(x.Lun)) = int32(r.DecodeInt(32)) } } yyj702++ if yyhl702 { yyb702 = yyj702 > l } else { yyb702 = r.CheckBreak() } if yyb702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj702++ if yyhl702 { yyb702 = yyj702 > l } else { yyb702 = r.CheckBreak() } if yyb702 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj702++ if yyhl702 { yyb702 = yyj702 > l } else { yyb702 = r.CheckBreak() } if yyb702 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj702-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym709 := z.EncBinary() _ = yym709 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep710 := !z.EncBinary() yy2arr710 := z.EncBasicHandle().StructToArray var yyq710 [5]bool _, _, _ = yysep710, yyq710, yy2arr710 const yyr710 bool = false yyq710[1] = x.FSType != "" yyq710[2] = x.SecretRef != nil yyq710[3] = x.ReadOnly != false yyq710[4] = len(x.Options) != 0 var yynn710 int if yyr710 || yy2arr710 { r.EncodeArrayStart(5) } else { yynn710 = 1 for _, b := range yyq710 { if b { yynn710++ } } r.EncodeMapStart(yynn710) yynn710 = 0 } if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym712 := z.EncBinary() _ = yym712 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("driver")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym713 := z.EncBinary() _ = yym713 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Driver)) } } if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq710[1] { yym715 := z.EncBinary() _ = yym715 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq710[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym716 := z.EncBinary() _ = yym716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq710[2] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq710[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq710[3] { yym719 := z.EncBinary() _ = yym719 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq710[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym720 := z.EncBinary() _ = yym720 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq710[4] { if x.Options == nil { r.EncodeNil() } else { yym722 := z.EncBinary() _ = yym722 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } else { r.EncodeNil() } } else { if yyq710[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("options")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Options == nil { r.EncodeNil() } else { yym723 := z.EncBinary() _ = yym723 if false { } else { z.F.EncMapStringStringV(x.Options, false, e) } } } } if yyr710 || yy2arr710 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym724 := z.DecBinary() _ = yym724 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct725 := r.ContainerType() if yyct725 == codecSelferValueTypeMap1234 { yyl725 := r.ReadMapStart() if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl725, d) } } else if yyct725 == codecSelferValueTypeArray1234 { yyl725 := r.ReadArrayStart() if yyl725 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl725, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys726Slc = z.DecScratchBuffer() // default slice to decode into _ = yys726Slc var yyhl726 bool = l >= 0 for yyj726 := 0; ; yyj726++ { if yyhl726 { if yyj726 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys726Slc = r.DecodeBytes(yys726Slc, true, true) yys726 := string(yys726Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys726 { case "driver": if r.TryDecodeAsNil() { x.Driver = "" } else { x.Driver = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } case "options": if r.TryDecodeAsNil() { x.Options = nil } else { yyv731 := &x.Options yym732 := z.DecBinary() _ = yym732 if false { } else { z.F.DecMapStringStringX(yyv731, false, d) } } default: z.DecStructFieldNotFound(-1, yys726) } // end switch yys726 } // end for yyj726 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj733 int var yyb733 bool var yyhl733 bool = l >= 0 yyj733++ if yyhl733 { yyb733 = yyj733 > l } else { yyb733 = r.CheckBreak() } if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Driver = "" } else { x.Driver = string(r.DecodeString()) } yyj733++ if yyhl733 { yyb733 = yyj733 > l } else { yyb733 = r.CheckBreak() } if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj733++ if yyhl733 { yyb733 = yyj733 > l } else { yyb733 = r.CheckBreak() } if yyb733 { 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) } yyj733++ if yyhl733 { yyb733 = yyj733 > l } else { yyb733 = r.CheckBreak() } if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj733++ if yyhl733 { yyb733 = yyj733 > l } else { yyb733 = r.CheckBreak() } if yyb733 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Options = nil } else { yyv738 := &x.Options yym739 := z.DecBinary() _ = yym739 if false { } else { z.F.DecMapStringStringX(yyv738, false, d) } } for { yyj733++ if yyhl733 { yyb733 = yyj733 > l } else { yyb733 = r.CheckBreak() } if yyb733 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj733-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 { yym740 := z.EncBinary() _ = yym740 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep741 := !z.EncBinary() yy2arr741 := z.EncBasicHandle().StructToArray var yyq741 [4]bool _, _, _ = yysep741, yyq741, yy2arr741 const yyr741 bool = false yyq741[1] = x.FSType != "" yyq741[2] = x.Partition != 0 yyq741[3] = x.ReadOnly != false var yynn741 int if yyr741 || yy2arr741 { r.EncodeArrayStart(4) } else { yynn741 = 1 for _, b := range yyq741 { if b { yynn741++ } } r.EncodeMapStart(yynn741) yynn741 = 0 } if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym743 := z.EncBinary() _ = yym743 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) yym744 := z.EncBinary() _ = yym744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq741[1] { yym746 := z.EncBinary() _ = yym746 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq741[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym747 := z.EncBinary() _ = yym747 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq741[2] { yym749 := z.EncBinary() _ = yym749 if false { } else { r.EncodeInt(int64(x.Partition)) } } else { r.EncodeInt(0) } } else { if yyq741[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("partition")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym750 := z.EncBinary() _ = yym750 if false { } else { r.EncodeInt(int64(x.Partition)) } } } if yyr741 || yy2arr741 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq741[3] { yym752 := z.EncBinary() _ = yym752 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq741[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym753 := z.EncBinary() _ = yym753 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr741 || yy2arr741 { 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 yym754 := z.DecBinary() _ = yym754 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct755 := r.ContainerType() if yyct755 == codecSelferValueTypeMap1234 { yyl755 := r.ReadMapStart() if yyl755 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl755, d) } } else if yyct755 == codecSelferValueTypeArray1234 { yyl755 := r.ReadArrayStart() if yyl755 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl755, 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 yys756Slc = z.DecScratchBuffer() // default slice to decode into _ = yys756Slc var yyhl756 bool = l >= 0 for yyj756 := 0; ; yyj756++ { if yyhl756 { if yyj756 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys756Slc = r.DecodeBytes(yys756Slc, true, true) yys756 := string(yys756Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys756 { 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 = int32(r.DecodeInt(32)) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys756) } // end switch yys756 } // end for yyj756 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 yyj761 int var yyb761 bool var yyhl761 bool = l >= 0 yyj761++ if yyhl761 { yyb761 = yyj761 > l } else { yyb761 = r.CheckBreak() } if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj761++ if yyhl761 { yyb761 = yyj761 > l } else { yyb761 = r.CheckBreak() } if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj761++ if yyhl761 { yyb761 = yyj761 > l } else { yyb761 = r.CheckBreak() } if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Partition = 0 } else { x.Partition = int32(r.DecodeInt(32)) } yyj761++ if yyhl761 { yyb761 = yyj761 > l } else { yyb761 = r.CheckBreak() } if yyb761 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj761++ if yyhl761 { yyb761 = yyj761 > l } else { yyb761 = r.CheckBreak() } if yyb761 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj761-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 { yym766 := z.EncBinary() _ = yym766 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep767 := !z.EncBinary() yy2arr767 := z.EncBasicHandle().StructToArray var yyq767 [3]bool _, _, _ = yysep767, yyq767, yy2arr767 const yyr767 bool = false yyq767[1] = x.Revision != "" yyq767[2] = x.Directory != "" var yynn767 int if yyr767 || yy2arr767 { r.EncodeArrayStart(3) } else { yynn767 = 1 for _, b := range yyq767 { if b { yynn767++ } } r.EncodeMapStart(yynn767) yynn767 = 0 } if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym769 := z.EncBinary() _ = yym769 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) yym770 := z.EncBinary() _ = yym770 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Repository)) } } if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq767[1] { yym772 := z.EncBinary() _ = yym772 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq767[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("revision")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym773 := z.EncBinary() _ = yym773 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Revision)) } } } if yyr767 || yy2arr767 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq767[2] { yym775 := z.EncBinary() _ = yym775 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq767[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("directory")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym776 := z.EncBinary() _ = yym776 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Directory)) } } } if yyr767 || yy2arr767 { 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 yym777 := z.DecBinary() _ = yym777 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct778 := r.ContainerType() if yyct778 == codecSelferValueTypeMap1234 { yyl778 := r.ReadMapStart() if yyl778 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl778, d) } } else if yyct778 == codecSelferValueTypeArray1234 { yyl778 := r.ReadArrayStart() if yyl778 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl778, 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 yys779Slc = z.DecScratchBuffer() // default slice to decode into _ = yys779Slc var yyhl779 bool = l >= 0 for yyj779 := 0; ; yyj779++ { if yyhl779 { if yyj779 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys779Slc = r.DecodeBytes(yys779Slc, true, true) yys779 := string(yys779Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys779 { case "repository": if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } case "revision": if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } case "directory": if r.TryDecodeAsNil() { x.Directory = "" } else { x.Directory = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys779) } // end switch yys779 } // end for yyj779 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 yyj783 int var yyb783 bool var yyhl783 bool = l >= 0 yyj783++ if yyhl783 { yyb783 = yyj783 > l } else { yyb783 = r.CheckBreak() } if yyb783 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Repository = "" } else { x.Repository = string(r.DecodeString()) } yyj783++ if yyhl783 { yyb783 = yyj783 > l } else { yyb783 = r.CheckBreak() } if yyb783 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Revision = "" } else { x.Revision = string(r.DecodeString()) } yyj783++ if yyhl783 { yyb783 = yyj783 > l } else { yyb783 = r.CheckBreak() } if yyb783 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Directory = "" } else { x.Directory = string(r.DecodeString()) } for { yyj783++ if yyhl783 { yyb783 = yyj783 > l } else { yyb783 = r.CheckBreak() } if yyb783 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj783-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 { yym787 := z.EncBinary() _ = yym787 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep788 := !z.EncBinary() yy2arr788 := z.EncBasicHandle().StructToArray var yyq788 [3]bool _, _, _ = yysep788, yyq788, yy2arr788 const yyr788 bool = false yyq788[0] = x.SecretName != "" yyq788[1] = len(x.Items) != 0 yyq788[2] = x.DefaultMode != nil var yynn788 int if yyr788 || yy2arr788 { r.EncodeArrayStart(3) } else { yynn788 = 0 for _, b := range yyq788 { if b { yynn788++ } } r.EncodeMapStart(yynn788) yynn788 = 0 } if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq788[0] { yym790 := z.EncBinary() _ = yym790 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq788[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym791 := z.EncBinary() _ = yym791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } } if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq788[1] { if x.Items == nil { r.EncodeNil() } else { yym793 := z.EncBinary() _ = yym793 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq788[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym794 := z.EncBinary() _ = yym794 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } } if yyr788 || yy2arr788 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq788[2] { if x.DefaultMode == nil { r.EncodeNil() } else { yy796 := *x.DefaultMode yym797 := z.EncBinary() _ = yym797 if false { } else { r.EncodeInt(int64(yy796)) } } } else { r.EncodeNil() } } else { if yyq788[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultMode == nil { r.EncodeNil() } else { yy798 := *x.DefaultMode yym799 := z.EncBinary() _ = yym799 if false { } else { r.EncodeInt(int64(yy798)) } } } } if yyr788 || yy2arr788 { 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 yym800 := z.DecBinary() _ = yym800 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct801 := r.ContainerType() if yyct801 == codecSelferValueTypeMap1234 { yyl801 := r.ReadMapStart() if yyl801 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl801, d) } } else if yyct801 == codecSelferValueTypeArray1234 { yyl801 := r.ReadArrayStart() if yyl801 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl801, 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 yys802Slc = z.DecScratchBuffer() // default slice to decode into _ = yys802Slc var yyhl802 bool = l >= 0 for yyj802 := 0; ; yyj802++ { if yyhl802 { if yyj802 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys802Slc = r.DecodeBytes(yys802Slc, true, true) yys802 := string(yys802Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys802 { case "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv804 := &x.Items yym805 := z.DecBinary() _ = yym805 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv804), d) } } case "defaultMode": if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym807 := z.DecBinary() _ = yym807 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys802) } // end switch yys802 } // end for yyj802 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 yyj808 int var yyb808 bool var yyhl808 bool = l >= 0 yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv810 := &x.Items yym811 := z.DecBinary() _ = yym811 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv810), d) } } yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym813 := z.DecBinary() _ = yym813 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { yyj808++ if yyhl808 { yyb808 = yyj808 > l } else { yyb808 = r.CheckBreak() } if yyb808 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj808-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym814 := z.EncBinary() _ = yym814 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep815 := !z.EncBinary() yy2arr815 := z.EncBasicHandle().StructToArray var yyq815 [3]bool _, _, _ = yysep815, yyq815, yy2arr815 const yyr815 bool = false yyq815[2] = x.ReadOnly != false var yynn815 int if yyr815 || yy2arr815 { r.EncodeArrayStart(3) } else { yynn815 = 2 for _, b := range yyq815 { if b { yynn815++ } } r.EncodeMapStart(yynn815) yynn815 = 0 } if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym817 := z.EncBinary() _ = yym817 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) yym818 := z.EncBinary() _ = yym818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Server)) } } if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym820 := z.EncBinary() _ = yym820 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) yym821 := z.EncBinary() _ = yym821 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr815 || yy2arr815 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq815[2] { yym823 := z.EncBinary() _ = yym823 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq815[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym824 := z.EncBinary() _ = yym824 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr815 || yy2arr815 { 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 yym825 := z.DecBinary() _ = yym825 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct826 := r.ContainerType() if yyct826 == codecSelferValueTypeMap1234 { yyl826 := r.ReadMapStart() if yyl826 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl826, d) } } else if yyct826 == codecSelferValueTypeArray1234 { yyl826 := r.ReadArrayStart() if yyl826 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl826, 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 yys827Slc = z.DecScratchBuffer() // default slice to decode into _ = yys827Slc var yyhl827 bool = l >= 0 for yyj827 := 0; ; yyj827++ { if yyhl827 { if yyj827 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys827Slc = r.DecodeBytes(yys827Slc, true, true) yys827 := string(yys827Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys827 { 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, yys827) } // end switch yys827 } // end for yyj827 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 yyj831 int var yyb831 bool var yyhl831 bool = l >= 0 yyj831++ if yyhl831 { yyb831 = yyj831 > l } else { yyb831 = r.CheckBreak() } if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Server = "" } else { x.Server = string(r.DecodeString()) } yyj831++ if yyhl831 { yyb831 = yyj831 > l } else { yyb831 = r.CheckBreak() } if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj831++ if yyhl831 { yyb831 = yyj831 > l } else { yyb831 = r.CheckBreak() } if yyb831 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj831++ if yyhl831 { yyb831 = yyj831 > l } else { yyb831 = r.CheckBreak() } if yyb831 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj831-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym835 := z.EncBinary() _ = yym835 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep836 := !z.EncBinary() yy2arr836 := z.EncBasicHandle().StructToArray var yyq836 [5]bool _, _, _ = yysep836, yyq836, yy2arr836 const yyr836 bool = false yyq836[2] = x.ReadOnly != false yyq836[3] = x.User != "" yyq836[4] = x.Group != "" var yynn836 int if yyr836 || yy2arr836 { r.EncodeArrayStart(5) } else { yynn836 = 2 for _, b := range yyq836 { if b { yynn836++ } } r.EncodeMapStart(yynn836) yynn836 = 0 } if yyr836 || yy2arr836 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym838 := z.EncBinary() _ = yym838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("registry")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym839 := z.EncBinary() _ = yym839 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Registry)) } } if yyr836 || yy2arr836 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym841 := z.EncBinary() _ = yym841 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volume")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym842 := z.EncBinary() _ = yym842 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Volume)) } } if yyr836 || yy2arr836 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq836[2] { yym844 := z.EncBinary() _ = yym844 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq836[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym845 := z.EncBinary() _ = yym845 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr836 || yy2arr836 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq836[3] { yym847 := z.EncBinary() _ = yym847 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq836[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym848 := z.EncBinary() _ = yym848 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr836 || yy2arr836 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq836[4] { yym850 := z.EncBinary() _ = yym850 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq836[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("group")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym851 := z.EncBinary() _ = yym851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Group)) } } } if yyr836 || yy2arr836 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym852 := z.DecBinary() _ = yym852 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct853 := r.ContainerType() if yyct853 == codecSelferValueTypeMap1234 { yyl853 := r.ReadMapStart() if yyl853 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl853, d) } } else if yyct853 == codecSelferValueTypeArray1234 { yyl853 := r.ReadArrayStart() if yyl853 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl853, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys854Slc = z.DecScratchBuffer() // default slice to decode into _ = yys854Slc var yyhl854 bool = l >= 0 for yyj854 := 0; ; yyj854++ { if yyhl854 { if yyj854 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys854Slc = r.DecodeBytes(yys854Slc, true, true) yys854 := string(yys854Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys854 { case "registry": if r.TryDecodeAsNil() { x.Registry = "" } else { x.Registry = string(r.DecodeString()) } case "volume": if r.TryDecodeAsNil() { x.Volume = "" } else { x.Volume = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } case "user": if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } case "group": if r.TryDecodeAsNil() { x.Group = "" } else { x.Group = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys854) } // end switch yys854 } // end for yyj854 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj860 int var yyb860 bool var yyhl860 bool = l >= 0 yyj860++ if yyhl860 { yyb860 = yyj860 > l } else { yyb860 = r.CheckBreak() } if yyb860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Registry = "" } else { x.Registry = string(r.DecodeString()) } yyj860++ if yyhl860 { yyb860 = yyj860 > l } else { yyb860 = r.CheckBreak() } if yyb860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volume = "" } else { x.Volume = string(r.DecodeString()) } yyj860++ if yyhl860 { yyb860 = yyj860 > l } else { yyb860 = r.CheckBreak() } if yyb860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj860++ if yyhl860 { yyb860 = yyj860 > l } else { yyb860 = r.CheckBreak() } if yyb860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj860++ if yyhl860 { yyb860 = yyj860 > l } else { yyb860 = r.CheckBreak() } if yyb860 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Group = "" } else { x.Group = string(r.DecodeString()) } for { yyj860++ if yyhl860 { yyb860 = yyj860 > l } else { yyb860 = r.CheckBreak() } if yyb860 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj860-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 { yym866 := z.EncBinary() _ = yym866 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep867 := !z.EncBinary() yy2arr867 := z.EncBasicHandle().StructToArray var yyq867 [3]bool _, _, _ = yysep867, yyq867, yy2arr867 const yyr867 bool = false yyq867[2] = x.ReadOnly != false var yynn867 int if yyr867 || yy2arr867 { r.EncodeArrayStart(3) } else { yynn867 = 2 for _, b := range yyq867 { if b { yynn867++ } } r.EncodeMapStart(yynn867) yynn867 = 0 } if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym869 := z.EncBinary() _ = yym869 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) yym870 := z.EncBinary() _ = yym870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName)) } } if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym872 := z.EncBinary() _ = yym872 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) yym873 := z.EncBinary() _ = yym873 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr867 || yy2arr867 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq867[2] { yym875 := z.EncBinary() _ = yym875 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq867[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym876 := z.EncBinary() _ = yym876 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr867 || yy2arr867 { 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 yym877 := z.DecBinary() _ = yym877 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct878 := r.ContainerType() if yyct878 == codecSelferValueTypeMap1234 { yyl878 := r.ReadMapStart() if yyl878 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl878, d) } } else if yyct878 == codecSelferValueTypeArray1234 { yyl878 := r.ReadArrayStart() if yyl878 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl878, 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 yys879Slc = z.DecScratchBuffer() // default slice to decode into _ = yys879Slc var yyhl879 bool = l >= 0 for yyj879 := 0; ; yyj879++ { if yyhl879 { if yyj879 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys879Slc = r.DecodeBytes(yys879Slc, true, true) yys879 := string(yys879Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys879 { 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, yys879) } // end switch yys879 } // end for yyj879 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 yyj883 int var yyb883 bool var yyhl883 bool = l >= 0 yyj883++ if yyhl883 { yyb883 = yyj883 > l } else { yyb883 = r.CheckBreak() } if yyb883 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EndpointsName = "" } else { x.EndpointsName = string(r.DecodeString()) } yyj883++ if yyhl883 { yyb883 = yyj883 > l } else { yyb883 = r.CheckBreak() } if yyb883 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj883++ if yyhl883 { yyb883 = yyj883 > l } else { yyb883 = r.CheckBreak() } if yyb883 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj883++ if yyhl883 { yyb883 = yyj883 > l } else { yyb883 = r.CheckBreak() } if yyb883 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj883-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 { yym887 := z.EncBinary() _ = yym887 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep888 := !z.EncBinary() yy2arr888 := z.EncBasicHandle().StructToArray var yyq888 [8]bool _, _, _ = yysep888, yyq888, yy2arr888 const yyr888 bool = false yyq888[2] = x.FSType != "" yyq888[3] = x.RBDPool != "" yyq888[4] = x.RadosUser != "" yyq888[5] = x.Keyring != "" yyq888[6] = x.SecretRef != nil yyq888[7] = x.ReadOnly != false var yynn888 int if yyr888 || yy2arr888 { r.EncodeArrayStart(8) } else { yynn888 = 2 for _, b := range yyq888 { if b { yynn888++ } } r.EncodeMapStart(yynn888) yynn888 = 0 } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.CephMonitors == nil { r.EncodeNil() } else { yym890 := z.EncBinary() _ = yym890 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 { yym891 := z.EncBinary() _ = yym891 if false { } else { z.F.EncSliceStringV(x.CephMonitors, false, e) } } } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym893 := z.EncBinary() _ = yym893 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) yym894 := z.EncBinary() _ = yym894 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage)) } } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq888[2] { yym896 := z.EncBinary() _ = yym896 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq888[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym897 := z.EncBinary() _ = yym897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq888[3] { yym899 := z.EncBinary() _ = yym899 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq888[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("pool")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym900 := z.EncBinary() _ = yym900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool)) } } } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq888[4] { yym902 := z.EncBinary() _ = yym902 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq888[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym903 := z.EncBinary() _ = yym903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser)) } } } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq888[5] { yym905 := z.EncBinary() _ = yym905 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq888[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("keyring")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym906 := z.EncBinary() _ = yym906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Keyring)) } } } if yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq888[6] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq888[6] { 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 yyr888 || yy2arr888 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq888[7] { yym909 := z.EncBinary() _ = yym909 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq888[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym910 := z.EncBinary() _ = yym910 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr888 || yy2arr888 { 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 yym911 := z.DecBinary() _ = yym911 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct912 := r.ContainerType() if yyct912 == codecSelferValueTypeMap1234 { yyl912 := r.ReadMapStart() if yyl912 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl912, d) } } else if yyct912 == codecSelferValueTypeArray1234 { yyl912 := r.ReadArrayStart() if yyl912 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl912, 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 yys913Slc = z.DecScratchBuffer() // default slice to decode into _ = yys913Slc var yyhl913 bool = l >= 0 for yyj913 := 0; ; yyj913++ { if yyhl913 { if yyj913 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys913Slc = r.DecodeBytes(yys913Slc, true, true) yys913 := string(yys913Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys913 { case "monitors": if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv914 := &x.CephMonitors yym915 := z.DecBinary() _ = yym915 if false { } else { z.F.DecSliceStringX(yyv914, 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, yys913) } // end switch yys913 } // end for yyj913 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 yyj923 int var yyb923 bool var yyhl923 bool = l >= 0 yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.CephMonitors = nil } else { yyv924 := &x.CephMonitors yym925 := z.DecBinary() _ = yym925 if false { } else { z.F.DecSliceStringX(yyv924, false, d) } } yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDImage = "" } else { x.RBDImage = string(r.DecodeString()) } yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RBDPool = "" } else { x.RBDPool = string(r.DecodeString()) } yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RadosUser = "" } else { x.RadosUser = string(r.DecodeString()) } yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Keyring = "" } else { x.Keyring = string(r.DecodeString()) } yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { 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) } yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj923++ if yyhl923 { yyb923 = yyj923 > l } else { yyb923 = r.CheckBreak() } if yyb923 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj923-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 { yym933 := z.EncBinary() _ = yym933 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep934 := !z.EncBinary() yy2arr934 := z.EncBasicHandle().StructToArray var yyq934 [3]bool _, _, _ = yysep934, yyq934, yy2arr934 const yyr934 bool = false yyq934[1] = x.FSType != "" yyq934[2] = x.ReadOnly != false var yynn934 int if yyr934 || yy2arr934 { r.EncodeArrayStart(3) } else { yynn934 = 1 for _, b := range yyq934 { if b { yynn934++ } } r.EncodeMapStart(yynn934) yynn934 = 0 } if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym936 := z.EncBinary() _ = yym936 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) yym937 := z.EncBinary() _ = yym937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID)) } } if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq934[1] { yym939 := z.EncBinary() _ = yym939 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq934[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym940 := z.EncBinary() _ = yym940 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr934 || yy2arr934 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq934[2] { yym942 := z.EncBinary() _ = yym942 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq934[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym943 := z.EncBinary() _ = yym943 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr934 || yy2arr934 { 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 yym944 := z.DecBinary() _ = yym944 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct945 := r.ContainerType() if yyct945 == codecSelferValueTypeMap1234 { yyl945 := r.ReadMapStart() if yyl945 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl945, d) } } else if yyct945 == codecSelferValueTypeArray1234 { yyl945 := r.ReadArrayStart() if yyl945 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl945, 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 yys946Slc = z.DecScratchBuffer() // default slice to decode into _ = yys946Slc var yyhl946 bool = l >= 0 for yyj946 := 0; ; yyj946++ { if yyhl946 { if yyj946 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys946Slc = r.DecodeBytes(yys946Slc, true, true) yys946 := string(yys946Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys946 { 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, yys946) } // end switch yys946 } // end for yyj946 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 yyj950 int var yyb950 bool var yyhl950 bool = l >= 0 yyj950++ if yyhl950 { yyb950 = yyj950 > l } else { yyb950 = r.CheckBreak() } if yyb950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeID = "" } else { x.VolumeID = string(r.DecodeString()) } yyj950++ if yyhl950 { yyb950 = yyj950 > l } else { yyb950 = r.CheckBreak() } if yyb950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } yyj950++ if yyhl950 { yyb950 = yyj950 > l } else { yyb950 = r.CheckBreak() } if yyb950 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj950++ if yyhl950 { yyb950 = yyj950 > l } else { yyb950 = r.CheckBreak() } if yyb950 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj950-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 { yym954 := z.EncBinary() _ = yym954 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep955 := !z.EncBinary() yy2arr955 := z.EncBasicHandle().StructToArray var yyq955 [6]bool _, _, _ = yysep955, yyq955, yy2arr955 const yyr955 bool = false yyq955[1] = x.Path != "" yyq955[2] = x.User != "" yyq955[3] = x.SecretFile != "" yyq955[4] = x.SecretRef != nil yyq955[5] = x.ReadOnly != false var yynn955 int if yyr955 || yy2arr955 { r.EncodeArrayStart(6) } else { yynn955 = 1 for _, b := range yyq955 { if b { yynn955++ } } r.EncodeMapStart(yynn955) yynn955 = 0 } if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Monitors == nil { r.EncodeNil() } else { yym957 := z.EncBinary() _ = yym957 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 { yym958 := z.EncBinary() _ = yym958 if false { } else { z.F.EncSliceStringV(x.Monitors, false, e) } } } if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq955[1] { yym960 := z.EncBinary() _ = yym960 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq955[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym961 := z.EncBinary() _ = yym961 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq955[2] { yym963 := z.EncBinary() _ = yym963 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq955[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym964 := z.EncBinary() _ = yym964 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq955[3] { yym966 := z.EncBinary() _ = yym966 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq955[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretFile")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym967 := z.EncBinary() _ = yym967 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile)) } } } if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq955[4] { if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq955[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretRef == nil { r.EncodeNil() } else { x.SecretRef.CodecEncodeSelf(e) } } } if yyr955 || yy2arr955 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq955[5] { yym970 := z.EncBinary() _ = yym970 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq955[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym971 := z.EncBinary() _ = yym971 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr955 || yy2arr955 { 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 yym972 := z.DecBinary() _ = yym972 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct973 := r.ContainerType() if yyct973 == codecSelferValueTypeMap1234 { yyl973 := r.ReadMapStart() if yyl973 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl973, d) } } else if yyct973 == codecSelferValueTypeArray1234 { yyl973 := r.ReadArrayStart() if yyl973 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl973, 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 yys974Slc = z.DecScratchBuffer() // default slice to decode into _ = yys974Slc var yyhl974 bool = l >= 0 for yyj974 := 0; ; yyj974++ { if yyhl974 { if yyj974 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys974Slc = r.DecodeBytes(yys974Slc, true, true) yys974 := string(yys974Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys974 { case "monitors": if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv975 := &x.Monitors yym976 := z.DecBinary() _ = yym976 if false { } else { z.F.DecSliceStringX(yyv975, false, d) } } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "user": if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } case "secretFile": if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } case "secretRef": if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys974) } // end switch yys974 } // end for yyj974 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 yyj982 int var yyb982 bool var yyhl982 bool = l >= 0 yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Monitors = nil } else { yyv983 := &x.Monitors yym984 := z.DecBinary() _ = yym984 if false { } else { z.F.DecSliceStringX(yyv983, false, d) } } yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretFile = "" } else { x.SecretFile = string(r.DecodeString()) } yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretRef != nil { x.SecretRef = nil } } else { if x.SecretRef == nil { x.SecretRef = new(LocalObjectReference) } x.SecretRef.CodecDecodeSelf(d) } yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj982++ if yyhl982 { yyb982 = yyj982 > l } else { yyb982 = r.CheckBreak() } if yyb982 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj982-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym990 := z.EncBinary() _ = yym990 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep991 := !z.EncBinary() yy2arr991 := z.EncBasicHandle().StructToArray var yyq991 [2]bool _, _, _ = yysep991, yyq991, yy2arr991 const yyr991 bool = false yyq991[0] = x.DatasetName != "" yyq991[1] = x.DatasetUUID != "" var yynn991 int if yyr991 || yy2arr991 { r.EncodeArrayStart(2) } else { yynn991 = 0 for _, b := range yyq991 { if b { yynn991++ } } r.EncodeMapStart(yynn991) yynn991 = 0 } if yyr991 || yy2arr991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq991[0] { yym993 := z.EncBinary() _ = yym993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq991[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("datasetName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym994 := z.EncBinary() _ = yym994 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName)) } } } if yyr991 || yy2arr991 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq991[1] { yym996 := z.EncBinary() _ = yym996 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq991[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("datasetUUID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym997 := z.EncBinary() _ = yym997 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DatasetUUID)) } } } if yyr991 || yy2arr991 { 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 yym998 := z.DecBinary() _ = yym998 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct999 := r.ContainerType() if yyct999 == codecSelferValueTypeMap1234 { yyl999 := r.ReadMapStart() if yyl999 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl999, d) } } else if yyct999 == codecSelferValueTypeArray1234 { yyl999 := r.ReadArrayStart() if yyl999 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl999, 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 yys1000Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1000Slc var yyhl1000 bool = l >= 0 for yyj1000 := 0; ; yyj1000++ { if yyhl1000 { if yyj1000 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1000Slc = r.DecodeBytes(yys1000Slc, true, true) yys1000 := string(yys1000Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1000 { case "datasetName": if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } case "datasetUUID": if r.TryDecodeAsNil() { x.DatasetUUID = "" } else { x.DatasetUUID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1000) } // end switch yys1000 } // end for yyj1000 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 yyj1003 int var yyb1003 bool var yyhl1003 bool = l >= 0 yyj1003++ if yyhl1003 { yyb1003 = yyj1003 > l } else { yyb1003 = r.CheckBreak() } if yyb1003 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetName = "" } else { x.DatasetName = string(r.DecodeString()) } yyj1003++ if yyhl1003 { yyb1003 = yyj1003 > l } else { yyb1003 = r.CheckBreak() } if yyb1003 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DatasetUUID = "" } else { x.DatasetUUID = string(r.DecodeString()) } for { yyj1003++ if yyhl1003 { yyb1003 = yyj1003 > l } else { yyb1003 = r.CheckBreak() } if yyb1003 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1003-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 { yym1006 := z.EncBinary() _ = yym1006 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1007 := !z.EncBinary() yy2arr1007 := z.EncBasicHandle().StructToArray var yyq1007 [2]bool _, _, _ = yysep1007, yyq1007, yy2arr1007 const yyr1007 bool = false yyq1007[0] = len(x.Items) != 0 yyq1007[1] = x.DefaultMode != nil var yynn1007 int if yyr1007 || yy2arr1007 { r.EncodeArrayStart(2) } else { yynn1007 = 0 for _, b := range yyq1007 { if b { yynn1007++ } } r.EncodeMapStart(yynn1007) yynn1007 = 0 } if yyr1007 || yy2arr1007 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1007[0] { if x.Items == nil { r.EncodeNil() } else { yym1009 := z.EncBinary() _ = yym1009 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq1007[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1010 := z.EncBinary() _ = yym1010 if false { } else { h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e) } } } } if yyr1007 || yy2arr1007 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1007[1] { if x.DefaultMode == nil { r.EncodeNil() } else { yy1012 := *x.DefaultMode yym1013 := z.EncBinary() _ = yym1013 if false { } else { r.EncodeInt(int64(yy1012)) } } } else { r.EncodeNil() } } else { if yyq1007[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultMode == nil { r.EncodeNil() } else { yy1014 := *x.DefaultMode yym1015 := z.EncBinary() _ = yym1015 if false { } else { r.EncodeInt(int64(yy1014)) } } } } if yyr1007 || yy2arr1007 { 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 yym1016 := z.DecBinary() _ = yym1016 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1017 := r.ContainerType() if yyct1017 == codecSelferValueTypeMap1234 { yyl1017 := r.ReadMapStart() if yyl1017 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1017, d) } } else if yyct1017 == codecSelferValueTypeArray1234 { yyl1017 := r.ReadArrayStart() if yyl1017 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1017, 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 yys1018Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1018Slc var yyhl1018 bool = l >= 0 for yyj1018 := 0; ; yyj1018++ { if yyhl1018 { if yyj1018 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1018Slc = r.DecodeBytes(yys1018Slc, true, true) yys1018 := string(yys1018Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1018 { case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1019 := &x.Items yym1020 := z.DecBinary() _ = yym1020 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1019), d) } } case "defaultMode": if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym1022 := z.DecBinary() _ = yym1022 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys1018) } // end switch yys1018 } // end for yyj1018 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 yyj1023 int var yyb1023 bool var yyhl1023 bool = l >= 0 yyj1023++ if yyhl1023 { yyb1023 = yyj1023 > l } else { yyb1023 = r.CheckBreak() } if yyb1023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1024 := &x.Items yym1025 := z.DecBinary() _ = yym1025 if false { } else { h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1024), d) } } yyj1023++ if yyhl1023 { yyb1023 = yyj1023 > l } else { yyb1023 = r.CheckBreak() } if yyb1023 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym1027 := z.DecBinary() _ = yym1027 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { yyj1023++ if yyhl1023 { yyb1023 = yyj1023 > l } else { yyb1023 = r.CheckBreak() } if yyb1023 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1023-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 { yym1028 := z.EncBinary() _ = yym1028 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1029 := !z.EncBinary() yy2arr1029 := z.EncBasicHandle().StructToArray var yyq1029 [4]bool _, _, _ = yysep1029, yyq1029, yy2arr1029 const yyr1029 bool = false yyq1029[1] = x.FieldRef != nil yyq1029[2] = x.ResourceFieldRef != nil yyq1029[3] = x.Mode != nil var yynn1029 int if yyr1029 || yy2arr1029 { r.EncodeArrayStart(4) } else { yynn1029 = 1 for _, b := range yyq1029 { if b { yynn1029++ } } r.EncodeMapStart(yynn1029) yynn1029 = 0 } if yyr1029 || yy2arr1029 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1031 := z.EncBinary() _ = yym1031 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) yym1032 := z.EncBinary() _ = yym1032 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr1029 || yy2arr1029 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1029[1] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1029[1] { 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 yyr1029 || yy2arr1029 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1029[2] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1029[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } } if yyr1029 || yy2arr1029 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1029[3] { if x.Mode == nil { r.EncodeNil() } else { yy1036 := *x.Mode yym1037 := z.EncBinary() _ = yym1037 if false { } else { r.EncodeInt(int64(yy1036)) } } } else { r.EncodeNil() } } else { if yyq1029[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Mode == nil { r.EncodeNil() } else { yy1038 := *x.Mode yym1039 := z.EncBinary() _ = yym1039 if false { } else { r.EncodeInt(int64(yy1038)) } } } } if yyr1029 || yy2arr1029 { 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 yym1040 := z.DecBinary() _ = yym1040 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1041 := r.ContainerType() if yyct1041 == codecSelferValueTypeMap1234 { yyl1041 := r.ReadMapStart() if yyl1041 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1041, d) } } else if yyct1041 == codecSelferValueTypeArray1234 { yyl1041 := r.ReadArrayStart() if yyl1041 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1041, 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 yys1042Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1042Slc var yyhl1042 bool = l >= 0 for yyj1042 := 0; ; yyj1042++ { if yyhl1042 { if yyj1042 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1042Slc = r.DecodeBytes(yys1042Slc, true, true) yys1042 := string(yys1042Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1042 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } case "resourceFieldRef": if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } case "mode": if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym1047 := z.DecBinary() _ = yym1047 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys1042) } // end switch yys1042 } // end for yyj1042 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 yyj1048 int var yyb1048 bool var yyhl1048 bool = l >= 0 yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym1053 := z.DecBinary() _ = yym1053 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { yyj1048++ if yyhl1048 { yyb1048 = yyj1048 > l } else { yyb1048 = r.CheckBreak() } if yyb1048 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1048-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1054 := z.EncBinary() _ = yym1054 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1055 := !z.EncBinary() yy2arr1055 := z.EncBasicHandle().StructToArray var yyq1055 [3]bool _, _, _ = yysep1055, yyq1055, yy2arr1055 const yyr1055 bool = false yyq1055[2] = x.ReadOnly != false var yynn1055 int if yyr1055 || yy2arr1055 { r.EncodeArrayStart(3) } else { yynn1055 = 2 for _, b := range yyq1055 { if b { yynn1055++ } } r.EncodeMapStart(yynn1055) yynn1055 = 0 } if yyr1055 || yy2arr1055 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1057 := z.EncBinary() _ = yym1057 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) yym1058 := z.EncBinary() _ = yym1058 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SecretName)) } } if yyr1055 || yy2arr1055 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1060 := z.EncBinary() _ = yym1060 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("shareName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1061 := z.EncBinary() _ = yym1061 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ShareName)) } } if yyr1055 || yy2arr1055 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1055[2] { yym1063 := z.EncBinary() _ = yym1063 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq1055[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1064 := z.EncBinary() _ = yym1064 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr1055 || yy2arr1055 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r 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 *AzureFileVolumeSource) 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 "secretName": if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } case "shareName": if r.TryDecodeAsNil() { x.ShareName = "" } else { x.ShareName = string(r.DecodeString()) } case "readOnly": if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys1067) } // end switch yys1067 } // end for yyj1067 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1071 int var yyb1071 bool var yyhl1071 bool = l >= 0 yyj1071++ if yyhl1071 { yyb1071 = yyj1071 > l } else { yyb1071 = r.CheckBreak() } if yyb1071 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SecretName = "" } else { x.SecretName = string(r.DecodeString()) } yyj1071++ if yyhl1071 { yyb1071 = yyj1071 > l } else { yyb1071 = r.CheckBreak() } if yyb1071 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ShareName = "" } else { x.ShareName = string(r.DecodeString()) } yyj1071++ if yyhl1071 { yyb1071 = yyj1071 > l } else { yyb1071 = r.CheckBreak() } if yyb1071 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } for { yyj1071++ if yyhl1071 { yyb1071 = yyj1071 > l } else { yyb1071 = r.CheckBreak() } if yyb1071 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1071-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1075 := z.EncBinary() _ = yym1075 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1076 := !z.EncBinary() yy2arr1076 := z.EncBasicHandle().StructToArray var yyq1076 [2]bool _, _, _ = yysep1076, yyq1076, yy2arr1076 const yyr1076 bool = false yyq1076[1] = x.FSType != "" var yynn1076 int if yyr1076 || yy2arr1076 { r.EncodeArrayStart(2) } else { yynn1076 = 1 for _, b := range yyq1076 { if b { yynn1076++ } } r.EncodeMapStart(yynn1076) yynn1076 = 0 } if yyr1076 || yy2arr1076 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1078 := z.EncBinary() _ = yym1078 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1079 := z.EncBinary() _ = yym1079 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath)) } } if yyr1076 || yy2arr1076 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1076[1] { yym1081 := z.EncBinary() _ = yym1081 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1076[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1082 := z.EncBinary() _ = yym1082 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FSType)) } } } if yyr1076 || yy2arr1076 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1083 := z.DecBinary() _ = yym1083 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1084 := r.ContainerType() if yyct1084 == codecSelferValueTypeMap1234 { yyl1084 := r.ReadMapStart() if yyl1084 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1084, d) } } else if yyct1084 == codecSelferValueTypeArray1234 { yyl1084 := r.ReadArrayStart() if yyl1084 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1084, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1085Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1085Slc var yyhl1085 bool = l >= 0 for yyj1085 := 0; ; yyj1085++ { if yyhl1085 { if yyj1085 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1085Slc = r.DecodeBytes(yys1085Slc, true, true) yys1085 := string(yys1085Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1085 { case "volumePath": if r.TryDecodeAsNil() { x.VolumePath = "" } else { x.VolumePath = string(r.DecodeString()) } case "fsType": if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1085) } // end switch yys1085 } // end for yyj1085 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1088 int var yyb1088 bool var yyhl1088 bool = l >= 0 yyj1088++ if yyhl1088 { yyb1088 = yyj1088 > l } else { yyb1088 = r.CheckBreak() } if yyb1088 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumePath = "" } else { x.VolumePath = string(r.DecodeString()) } yyj1088++ if yyhl1088 { yyb1088 = yyj1088 > l } else { yyb1088 = r.CheckBreak() } if yyb1088 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FSType = "" } else { x.FSType = string(r.DecodeString()) } for { yyj1088++ if yyhl1088 { yyb1088 = yyj1088 > l } else { yyb1088 = r.CheckBreak() } if yyb1088 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1088-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x AzureDataDiskCachingMode) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1091 := z.EncBinary() _ = yym1091 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *AzureDataDiskCachingMode) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1092 := z.DecBinary() _ = yym1092 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *AzureDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1093 := z.EncBinary() _ = yym1093 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1094 := !z.EncBinary() yy2arr1094 := z.EncBasicHandle().StructToArray var yyq1094 [5]bool _, _, _ = yysep1094, yyq1094, yy2arr1094 const yyr1094 bool = false yyq1094[2] = x.CachingMode != nil yyq1094[3] = x.FSType != nil yyq1094[4] = x.ReadOnly != nil var yynn1094 int if yyr1094 || yy2arr1094 { r.EncodeArrayStart(5) } else { yynn1094 = 2 for _, b := range yyq1094 { if b { yynn1094++ } } r.EncodeMapStart(yynn1094) yynn1094 = 0 } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1096 := z.EncBinary() _ = yym1096 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("diskName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1097 := z.EncBinary() _ = yym1097 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DiskName)) } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1099 := z.EncBinary() _ = yym1099 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("diskURI")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1100 := z.EncBinary() _ = yym1100 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DataDiskURI)) } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[2] { if x.CachingMode == nil { r.EncodeNil() } else { yy1102 := *x.CachingMode yy1102.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1094[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("cachingMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.CachingMode == nil { r.EncodeNil() } else { yy1103 := *x.CachingMode yy1103.CodecEncodeSelf(e) } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[3] { if x.FSType == nil { r.EncodeNil() } else { yy1105 := *x.FSType yym1106 := z.EncBinary() _ = yym1106 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yy1105)) } } } else { r.EncodeNil() } } else { if yyq1094[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsType")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSType == nil { r.EncodeNil() } else { yy1107 := *x.FSType yym1108 := z.EncBinary() _ = yym1108 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yy1107)) } } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1094[4] { if x.ReadOnly == nil { r.EncodeNil() } else { yy1110 := *x.ReadOnly yym1111 := z.EncBinary() _ = yym1111 if false { } else { r.EncodeBool(bool(yy1110)) } } } else { r.EncodeNil() } } else { if yyq1094[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnly == nil { r.EncodeNil() } else { yy1112 := *x.ReadOnly yym1113 := z.EncBinary() _ = yym1113 if false { } else { r.EncodeBool(bool(yy1112)) } } } } if yyr1094 || yy2arr1094 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AzureDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1114 := z.DecBinary() _ = yym1114 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1115 := r.ContainerType() if yyct1115 == codecSelferValueTypeMap1234 { yyl1115 := r.ReadMapStart() if yyl1115 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1115, d) } } else if yyct1115 == codecSelferValueTypeArray1234 { yyl1115 := r.ReadArrayStart() if yyl1115 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1115, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AzureDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1116Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1116Slc var yyhl1116 bool = l >= 0 for yyj1116 := 0; ; yyj1116++ { if yyhl1116 { if yyj1116 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1116Slc = r.DecodeBytes(yys1116Slc, true, true) yys1116 := string(yys1116Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1116 { case "diskName": if r.TryDecodeAsNil() { x.DiskName = "" } else { x.DiskName = string(r.DecodeString()) } case "diskURI": if r.TryDecodeAsNil() { x.DataDiskURI = "" } else { x.DataDiskURI = string(r.DecodeString()) } case "cachingMode": if r.TryDecodeAsNil() { if x.CachingMode != nil { x.CachingMode = nil } } else { if x.CachingMode == nil { x.CachingMode = new(AzureDataDiskCachingMode) } x.CachingMode.CodecDecodeSelf(d) } case "fsType": if r.TryDecodeAsNil() { if x.FSType != nil { x.FSType = nil } } else { if x.FSType == nil { x.FSType = new(string) } yym1121 := z.DecBinary() _ = yym1121 if false { } else { *((*string)(x.FSType)) = r.DecodeString() } } case "readOnly": if r.TryDecodeAsNil() { if x.ReadOnly != nil { x.ReadOnly = nil } } else { if x.ReadOnly == nil { x.ReadOnly = new(bool) } yym1123 := z.DecBinary() _ = yym1123 if false { } else { *((*bool)(x.ReadOnly)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys1116) } // end switch yys1116 } // end for yyj1116 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AzureDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1124 int var yyb1124 bool var yyhl1124 bool = l >= 0 yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DiskName = "" } else { x.DiskName = string(r.DecodeString()) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DataDiskURI = "" } else { x.DataDiskURI = string(r.DecodeString()) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.CachingMode != nil { x.CachingMode = nil } } else { if x.CachingMode == nil { x.CachingMode = new(AzureDataDiskCachingMode) } x.CachingMode.CodecDecodeSelf(d) } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.FSType != nil { x.FSType = nil } } else { if x.FSType == nil { x.FSType = new(string) } yym1129 := z.DecBinary() _ = yym1129 if false { } else { *((*string)(x.FSType)) = r.DecodeString() } } yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ReadOnly != nil { x.ReadOnly = nil } } else { if x.ReadOnly == nil { x.ReadOnly = new(bool) } yym1131 := z.DecBinary() _ = yym1131 if false { } else { *((*bool)(x.ReadOnly)) = r.DecodeBool() } } for { yyj1124++ if yyhl1124 { yyb1124 = yyj1124 > l } else { yyb1124 = r.CheckBreak() } if yyb1124 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1124-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1132 := z.EncBinary() _ = yym1132 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1133 := !z.EncBinary() yy2arr1133 := z.EncBasicHandle().StructToArray var yyq1133 [3]bool _, _, _ = yysep1133, yyq1133, yy2arr1133 const yyr1133 bool = false yyq1133[1] = len(x.Items) != 0 yyq1133[2] = x.DefaultMode != nil var yynn1133 int if yyr1133 || yy2arr1133 { r.EncodeArrayStart(3) } else { yynn1133 = 1 for _, b := range yyq1133 { if b { yynn1133++ } } r.EncodeMapStart(yynn1133) yynn1133 = 0 } if yyr1133 || yy2arr1133 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1135 := z.EncBinary() _ = yym1135 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) yym1136 := z.EncBinary() _ = yym1136 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1133 || yy2arr1133 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1133[1] { if x.Items == nil { r.EncodeNil() } else { yym1138 := z.EncBinary() _ = yym1138 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } else { r.EncodeNil() } } else { if yyq1133[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("items")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Items == nil { r.EncodeNil() } else { yym1139 := z.EncBinary() _ = yym1139 if false { } else { h.encSliceKeyToPath(([]KeyToPath)(x.Items), e) } } } } if yyr1133 || yy2arr1133 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1133[2] { if x.DefaultMode == nil { r.EncodeNil() } else { yy1141 := *x.DefaultMode yym1142 := z.EncBinary() _ = yym1142 if false { } else { r.EncodeInt(int64(yy1141)) } } } else { r.EncodeNil() } } else { if yyq1133[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("defaultMode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.DefaultMode == nil { r.EncodeNil() } else { yy1143 := *x.DefaultMode yym1144 := z.EncBinary() _ = yym1144 if false { } else { r.EncodeInt(int64(yy1143)) } } } } if yyr1133 || yy2arr1133 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1145 := z.DecBinary() _ = yym1145 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1146 := r.ContainerType() if yyct1146 == codecSelferValueTypeMap1234 { yyl1146 := r.ReadMapStart() if yyl1146 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1146, d) } } else if yyct1146 == codecSelferValueTypeArray1234 { yyl1146 := r.ReadArrayStart() if yyl1146 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1146, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1147Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1147Slc var yyhl1147 bool = l >= 0 for yyj1147 := 0; ; yyj1147++ { if yyhl1147 { if yyj1147 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1147Slc = r.DecodeBytes(yys1147Slc, true, true) yys1147 := string(yys1147Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1147 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1149 := &x.Items yym1150 := z.DecBinary() _ = yym1150 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv1149), d) } } case "defaultMode": if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym1152 := z.DecBinary() _ = yym1152 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys1147) } // end switch yys1147 } // end for yyj1147 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1153 int var yyb1153 bool var yyhl1153 bool = l >= 0 yyj1153++ if yyhl1153 { yyb1153 = yyj1153 > l } else { yyb1153 = r.CheckBreak() } if yyb1153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1153++ if yyhl1153 { yyb1153 = yyj1153 > l } else { yyb1153 = r.CheckBreak() } if yyb1153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1155 := &x.Items yym1156 := z.DecBinary() _ = yym1156 if false { } else { h.decSliceKeyToPath((*[]KeyToPath)(yyv1155), d) } } yyj1153++ if yyhl1153 { yyb1153 = yyj1153 > l } else { yyb1153 = r.CheckBreak() } if yyb1153 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.DefaultMode != nil { x.DefaultMode = nil } } else { if x.DefaultMode == nil { x.DefaultMode = new(int32) } yym1158 := z.DecBinary() _ = yym1158 if false { } else { *((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32)) } } for { yyj1153++ if yyhl1153 { yyb1153 = yyj1153 > l } else { yyb1153 = r.CheckBreak() } if yyb1153 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1153-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1159 := z.EncBinary() _ = yym1159 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1160 := !z.EncBinary() yy2arr1160 := z.EncBasicHandle().StructToArray var yyq1160 [3]bool _, _, _ = yysep1160, yyq1160, yy2arr1160 const yyr1160 bool = false yyq1160[2] = x.Mode != nil var yynn1160 int if yyr1160 || yy2arr1160 { r.EncodeArrayStart(3) } else { yynn1160 = 2 for _, b := range yyq1160 { if b { yynn1160++ } } r.EncodeMapStart(yynn1160) yynn1160 = 0 } if yyr1160 || yy2arr1160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1162 := z.EncBinary() _ = yym1162 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1163 := z.EncBinary() _ = yym1163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1160 || yy2arr1160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1165 := z.EncBinary() _ = yym1165 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) yym1166 := z.EncBinary() _ = yym1166 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr1160 || yy2arr1160 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1160[2] { if x.Mode == nil { r.EncodeNil() } else { yy1168 := *x.Mode yym1169 := z.EncBinary() _ = yym1169 if false { } else { r.EncodeInt(int64(yy1168)) } } } else { r.EncodeNil() } } else { if yyq1160[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("mode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Mode == nil { r.EncodeNil() } else { yy1170 := *x.Mode yym1171 := z.EncBinary() _ = yym1171 if false { } else { r.EncodeInt(int64(yy1170)) } } } } if yyr1160 || yy2arr1160 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1172 := z.DecBinary() _ = yym1172 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1173 := r.ContainerType() if yyct1173 == codecSelferValueTypeMap1234 { yyl1173 := r.ReadMapStart() if yyl1173 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1173, d) } } else if yyct1173 == codecSelferValueTypeArray1234 { yyl1173 := r.ReadArrayStart() if yyl1173 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1173, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1174Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1174Slc var yyhl1174 bool = l >= 0 for yyj1174 := 0; ; yyj1174++ { if yyhl1174 { if yyj1174 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1174Slc = r.DecodeBytes(yys1174Slc, true, true) yys1174 := string(yys1174Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1174 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "mode": if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym1178 := z.DecBinary() _ = yym1178 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } default: z.DecStructFieldNotFound(-1, yys1174) } // end switch yys1174 } // end for yyj1174 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1179 int var yyb1179 bool var yyhl1179 bool = l >= 0 yyj1179++ if yyhl1179 { yyb1179 = yyj1179 > l } else { yyb1179 = r.CheckBreak() } if yyb1179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1179++ if yyhl1179 { yyb1179 = yyj1179 > l } else { yyb1179 = r.CheckBreak() } if yyb1179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1179++ if yyhl1179 { yyb1179 = yyj1179 > l } else { yyb1179 = r.CheckBreak() } if yyb1179 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Mode != nil { x.Mode = nil } } else { if x.Mode == nil { x.Mode = new(int32) } yym1183 := z.DecBinary() _ = yym1183 if false { } else { *((*int32)(x.Mode)) = int32(r.DecodeInt(32)) } } for { yyj1179++ if yyhl1179 { yyb1179 = yyj1179 > l } else { yyb1179 = r.CheckBreak() } if yyb1179 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1179-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 { yym1184 := z.EncBinary() _ = yym1184 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1185 := !z.EncBinary() yy2arr1185 := z.EncBasicHandle().StructToArray var yyq1185 [5]bool _, _, _ = yysep1185, yyq1185, yy2arr1185 const yyr1185 bool = false yyq1185[0] = x.Name != "" yyq1185[1] = x.HostPort != 0 yyq1185[3] = x.Protocol != "" yyq1185[4] = x.HostIP != "" var yynn1185 int if yyr1185 || yy2arr1185 { r.EncodeArrayStart(5) } else { yynn1185 = 1 for _, b := range yyq1185 { if b { yynn1185++ } } r.EncodeMapStart(yynn1185) yynn1185 = 0 } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[0] { yym1187 := z.EncBinary() _ = yym1187 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1185[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1188 := z.EncBinary() _ = yym1188 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[1] { yym1190 := z.EncBinary() _ = yym1190 if false { } else { r.EncodeInt(int64(x.HostPort)) } } else { r.EncodeInt(0) } } else { if yyq1185[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1191 := z.EncBinary() _ = yym1191 if false { } else { r.EncodeInt(int64(x.HostPort)) } } } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1193 := z.EncBinary() _ = yym1193 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1194 := z.EncBinary() _ = yym1194 if false { } else { r.EncodeInt(int64(x.ContainerPort)) } } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[3] { x.Protocol.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1185[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("protocol")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Protocol.CodecEncodeSelf(e) } } if yyr1185 || yy2arr1185 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1185[4] { yym1197 := z.EncBinary() _ = yym1197 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1185[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1198 := z.EncBinary() _ = yym1198 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr1185 || yy2arr1185 { 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 yym1199 := z.DecBinary() _ = yym1199 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1200 := r.ContainerType() if yyct1200 == codecSelferValueTypeMap1234 { yyl1200 := r.ReadMapStart() if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1200, d) } } else if yyct1200 == codecSelferValueTypeArray1234 { yyl1200 := r.ReadArrayStart() if yyl1200 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1200, 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 yys1201Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1201Slc var yyhl1201 bool = l >= 0 for yyj1201 := 0; ; yyj1201++ { if yyhl1201 { if yyj1201 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1201Slc = r.DecodeBytes(yys1201Slc, true, true) yys1201 := string(yys1201Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1201 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "hostPort": if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int32(r.DecodeInt(32)) } case "containerPort": if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int32(r.DecodeInt(32)) } 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, yys1201) } // end switch yys1201 } // end for yyj1201 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 yyj1207 int var yyb1207 bool var yyhl1207 bool = l >= 0 yyj1207++ if yyhl1207 { yyb1207 = yyj1207 > l } else { yyb1207 = r.CheckBreak() } if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1207++ if yyhl1207 { yyb1207 = yyj1207 > l } else { yyb1207 = r.CheckBreak() } if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPort = 0 } else { x.HostPort = int32(r.DecodeInt(32)) } yyj1207++ if yyhl1207 { yyb1207 = yyj1207 > l } else { yyb1207 = r.CheckBreak() } if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerPort = 0 } else { x.ContainerPort = int32(r.DecodeInt(32)) } yyj1207++ if yyhl1207 { yyb1207 = yyj1207 > l } else { yyb1207 = r.CheckBreak() } if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj1207++ if yyhl1207 { yyb1207 = yyj1207 > l } else { yyb1207 = r.CheckBreak() } if yyb1207 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } for { yyj1207++ if yyhl1207 { yyb1207 = yyj1207 > l } else { yyb1207 = r.CheckBreak() } if yyb1207 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1207-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 { yym1213 := z.EncBinary() _ = yym1213 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1214 := !z.EncBinary() yy2arr1214 := z.EncBasicHandle().StructToArray var yyq1214 [4]bool _, _, _ = yysep1214, yyq1214, yy2arr1214 const yyr1214 bool = false yyq1214[1] = x.ReadOnly != false yyq1214[3] = x.SubPath != "" var yynn1214 int if yyr1214 || yy2arr1214 { r.EncodeArrayStart(4) } else { yynn1214 = 2 for _, b := range yyq1214 { if b { yynn1214++ } } r.EncodeMapStart(yynn1214) yynn1214 = 0 } if yyr1214 || yy2arr1214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1216 := z.EncBinary() _ = yym1216 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) yym1217 := z.EncBinary() _ = yym1217 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1214 || yy2arr1214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1214[1] { yym1219 := z.EncBinary() _ = yym1219 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } else { r.EncodeBool(false) } } else { if yyq1214[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnly")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1220 := z.EncBinary() _ = yym1220 if false { } else { r.EncodeBool(bool(x.ReadOnly)) } } } if yyr1214 || yy2arr1214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1222 := z.EncBinary() _ = yym1222 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) yym1223 := z.EncBinary() _ = yym1223 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MountPath)) } } if yyr1214 || yy2arr1214 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1214[3] { yym1225 := z.EncBinary() _ = yym1225 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1214[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1226 := z.EncBinary() _ = yym1226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SubPath)) } } } if yyr1214 || yy2arr1214 { 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 yym1227 := z.DecBinary() _ = yym1227 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1228 := r.ContainerType() if yyct1228 == codecSelferValueTypeMap1234 { yyl1228 := r.ReadMapStart() if yyl1228 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1228, d) } } else if yyct1228 == codecSelferValueTypeArray1234 { yyl1228 := r.ReadArrayStart() if yyl1228 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1228, 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 yys1229Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1229Slc var yyhl1229 bool = l >= 0 for yyj1229 := 0; ; yyj1229++ { if yyhl1229 { if yyj1229 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1229Slc = r.DecodeBytes(yys1229Slc, true, true) yys1229 := string(yys1229Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1229 { 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()) } case "subPath": if r.TryDecodeAsNil() { x.SubPath = "" } else { x.SubPath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1229) } // end switch yys1229 } // end for yyj1229 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 yyj1234 int var yyb1234 bool var yyhl1234 bool = l >= 0 yyj1234++ if yyhl1234 { yyb1234 = yyj1234 > l } else { yyb1234 = r.CheckBreak() } if yyb1234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1234++ if yyhl1234 { yyb1234 = yyj1234 > l } else { yyb1234 = r.CheckBreak() } if yyb1234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadOnly = false } else { x.ReadOnly = bool(r.DecodeBool()) } yyj1234++ if yyhl1234 { yyb1234 = yyj1234 > l } else { yyb1234 = r.CheckBreak() } if yyb1234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MountPath = "" } else { x.MountPath = string(r.DecodeString()) } yyj1234++ if yyhl1234 { yyb1234 = yyj1234 > l } else { yyb1234 = r.CheckBreak() } if yyb1234 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SubPath = "" } else { x.SubPath = string(r.DecodeString()) } for { yyj1234++ if yyhl1234 { yyb1234 = yyj1234 > l } else { yyb1234 = r.CheckBreak() } if yyb1234 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1234-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 { yym1239 := z.EncBinary() _ = yym1239 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1240 := !z.EncBinary() yy2arr1240 := z.EncBasicHandle().StructToArray var yyq1240 [3]bool _, _, _ = yysep1240, yyq1240, yy2arr1240 const yyr1240 bool = false yyq1240[1] = x.Value != "" yyq1240[2] = x.ValueFrom != nil var yynn1240 int if yyr1240 || yy2arr1240 { r.EncodeArrayStart(3) } else { yynn1240 = 1 for _, b := range yyq1240 { if b { yynn1240++ } } r.EncodeMapStart(yynn1240) yynn1240 = 0 } if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1242 := z.EncBinary() _ = yym1242 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) yym1243 := z.EncBinary() _ = yym1243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1240[1] { yym1245 := z.EncBinary() _ = yym1245 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1240[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1246 := z.EncBinary() _ = yym1246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr1240 || yy2arr1240 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1240[2] { if x.ValueFrom == nil { r.EncodeNil() } else { x.ValueFrom.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1240[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 yyr1240 || yy2arr1240 { 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 yym1248 := z.DecBinary() _ = yym1248 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1249 := r.ContainerType() if yyct1249 == codecSelferValueTypeMap1234 { yyl1249 := r.ReadMapStart() if yyl1249 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1249, d) } } else if yyct1249 == codecSelferValueTypeArray1234 { yyl1249 := r.ReadArrayStart() if yyl1249 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1249, 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 yys1250Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1250Slc var yyhl1250 bool = l >= 0 for yyj1250 := 0; ; yyj1250++ { if yyhl1250 { if yyj1250 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1250Slc = r.DecodeBytes(yys1250Slc, true, true) yys1250 := string(yys1250Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1250 { 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, yys1250) } // end switch yys1250 } // end for yyj1250 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 yyj1254 int var yyb1254 bool var yyhl1254 bool = l >= 0 yyj1254++ if yyhl1254 { yyb1254 = yyj1254 > l } else { yyb1254 = r.CheckBreak() } if yyb1254 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1254++ if yyhl1254 { yyb1254 = yyj1254 > l } else { yyb1254 = r.CheckBreak() } if yyb1254 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj1254++ if yyhl1254 { yyb1254 = yyj1254 > l } else { yyb1254 = r.CheckBreak() } if yyb1254 { 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 { yyj1254++ if yyhl1254 { yyb1254 = yyj1254 > l } else { yyb1254 = r.CheckBreak() } if yyb1254 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1254-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 { yym1258 := z.EncBinary() _ = yym1258 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1259 := !z.EncBinary() yy2arr1259 := z.EncBasicHandle().StructToArray var yyq1259 [4]bool _, _, _ = yysep1259, yyq1259, yy2arr1259 const yyr1259 bool = false yyq1259[0] = x.FieldRef != nil yyq1259[1] = x.ResourceFieldRef != nil yyq1259[2] = x.ConfigMapKeyRef != nil yyq1259[3] = x.SecretKeyRef != nil var yynn1259 int if yyr1259 || yy2arr1259 { r.EncodeArrayStart(4) } else { yynn1259 = 0 for _, b := range yyq1259 { if b { yynn1259++ } } r.EncodeMapStart(yynn1259) yynn1259 = 0 } if yyr1259 || yy2arr1259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1259[0] { if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1259[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FieldRef == nil { r.EncodeNil() } else { x.FieldRef.CodecEncodeSelf(e) } } } if yyr1259 || yy2arr1259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1259[1] { if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1259[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ResourceFieldRef == nil { r.EncodeNil() } else { x.ResourceFieldRef.CodecEncodeSelf(e) } } } if yyr1259 || yy2arr1259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1259[2] { if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1259[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ConfigMapKeyRef == nil { r.EncodeNil() } else { x.ConfigMapKeyRef.CodecEncodeSelf(e) } } } if yyr1259 || yy2arr1259 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1259[3] { if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1259[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SecretKeyRef == nil { r.EncodeNil() } else { x.SecretKeyRef.CodecEncodeSelf(e) } } } if yyr1259 || yy2arr1259 { 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 yym1264 := z.DecBinary() _ = yym1264 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1265 := r.ContainerType() if yyct1265 == codecSelferValueTypeMap1234 { yyl1265 := r.ReadMapStart() if yyl1265 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1265, d) } } else if yyct1265 == codecSelferValueTypeArray1234 { yyl1265 := r.ReadArrayStart() if yyl1265 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1265, 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 yys1266Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1266Slc var yyhl1266 bool = l >= 0 for yyj1266 := 0; ; yyj1266++ { if yyhl1266 { if yyj1266 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1266Slc = r.DecodeBytes(yys1266Slc, true, true) yys1266 := string(yys1266Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1266 { case "fieldRef": if r.TryDecodeAsNil() { if x.FieldRef != nil { x.FieldRef = nil } } else { if x.FieldRef == nil { x.FieldRef = new(ObjectFieldSelector) } x.FieldRef.CodecDecodeSelf(d) } case "resourceFieldRef": if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } case "configMapKeyRef": if r.TryDecodeAsNil() { if x.ConfigMapKeyRef != nil { x.ConfigMapKeyRef = nil } } else { if x.ConfigMapKeyRef == nil { x.ConfigMapKeyRef = new(ConfigMapKeySelector) } x.ConfigMapKeyRef.CodecDecodeSelf(d) } case "secretKeyRef": if r.TryDecodeAsNil() { if x.SecretKeyRef != nil { x.SecretKeyRef = nil } } else { if x.SecretKeyRef == nil { x.SecretKeyRef = new(SecretKeySelector) } x.SecretKeyRef.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1266) } // end switch yys1266 } // end for yyj1266 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 yyj1271 int var yyb1271 bool var yyhl1271 bool = l >= 0 yyj1271++ if yyhl1271 { yyb1271 = yyj1271 > l } else { yyb1271 = r.CheckBreak() } if yyb1271 { 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) } yyj1271++ if yyhl1271 { yyb1271 = yyj1271 > l } else { yyb1271 = r.CheckBreak() } if yyb1271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ResourceFieldRef != nil { x.ResourceFieldRef = nil } } else { if x.ResourceFieldRef == nil { x.ResourceFieldRef = new(ResourceFieldSelector) } x.ResourceFieldRef.CodecDecodeSelf(d) } yyj1271++ if yyhl1271 { yyb1271 = yyj1271 > l } else { yyb1271 = r.CheckBreak() } if yyb1271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ConfigMapKeyRef != nil { x.ConfigMapKeyRef = nil } } else { if x.ConfigMapKeyRef == nil { x.ConfigMapKeyRef = new(ConfigMapKeySelector) } x.ConfigMapKeyRef.CodecDecodeSelf(d) } yyj1271++ if yyhl1271 { yyb1271 = yyj1271 > l } else { yyb1271 = r.CheckBreak() } if yyb1271 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecretKeyRef != nil { x.SecretKeyRef = nil } } else { if x.SecretKeyRef == nil { x.SecretKeyRef = new(SecretKeySelector) } x.SecretKeyRef.CodecDecodeSelf(d) } for { yyj1271++ if yyhl1271 { yyb1271 = yyj1271 > l } else { yyb1271 = r.CheckBreak() } if yyb1271 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1271-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 { yym1276 := z.EncBinary() _ = yym1276 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1277 := !z.EncBinary() yy2arr1277 := z.EncBasicHandle().StructToArray var yyq1277 [2]bool _, _, _ = yysep1277, yyq1277, yy2arr1277 const yyr1277 bool = false var yynn1277 int if yyr1277 || yy2arr1277 { r.EncodeArrayStart(2) } else { yynn1277 = 2 for _, b := range yyq1277 { if b { yynn1277++ } } r.EncodeMapStart(yynn1277) yynn1277 = 0 } if yyr1277 || yy2arr1277 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1279 := z.EncBinary() _ = yym1279 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) yym1280 := z.EncBinary() _ = yym1280 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr1277 || yy2arr1277 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1282 := z.EncBinary() _ = yym1282 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) yym1283 := z.EncBinary() _ = yym1283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } if yyr1277 || yy2arr1277 { 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 yym1284 := z.DecBinary() _ = yym1284 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1285 := r.ContainerType() if yyct1285 == codecSelferValueTypeMap1234 { yyl1285 := r.ReadMapStart() if yyl1285 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1285, d) } } else if yyct1285 == codecSelferValueTypeArray1234 { yyl1285 := r.ReadArrayStart() if yyl1285 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1285, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1286Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1286Slc var yyhl1286 bool = l >= 0 for yyj1286 := 0; ; yyj1286++ { if yyhl1286 { if yyj1286 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1286Slc = r.DecodeBytes(yys1286Slc, true, true) yys1286 := string(yys1286Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1286 { case "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, yys1286) } // end switch yys1286 } // end for yyj1286 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 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() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1289++ if yyhl1289 { yyb1289 = yyj1289 > l } else { yyb1289 = r.CheckBreak() } if yyb1289 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } 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 *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1292 := z.EncBinary() _ = yym1292 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1293 := !z.EncBinary() yy2arr1293 := z.EncBasicHandle().StructToArray var yyq1293 [3]bool _, _, _ = yysep1293, yyq1293, yy2arr1293 const yyr1293 bool = false yyq1293[0] = x.ContainerName != "" yyq1293[2] = true var yynn1293 int if yyr1293 || yy2arr1293 { r.EncodeArrayStart(3) } else { yynn1293 = 1 for _, b := range yyq1293 { if b { yynn1293++ } } r.EncodeMapStart(yynn1293) yynn1293 = 0 } if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1293[0] { yym1295 := z.EncBinary() _ = yym1295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1293[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1296 := z.EncBinary() _ = yym1296 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName)) } } } if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1298 := z.EncBinary() _ = yym1298 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resource")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1299 := z.EncBinary() _ = yym1299 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Resource)) } } if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1293[2] { yy1301 := &x.Divisor yym1302 := z.EncBinary() _ = yym1302 if false { } else if z.HasExtensions() && z.EncExt(yy1301) { } else if !yym1302 && z.IsJSONHandle() { z.EncJSONMarshal(yy1301) } else { z.EncFallback(yy1301) } } else { r.EncodeNil() } } else { if yyq1293[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("divisor")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1303 := &x.Divisor yym1304 := z.EncBinary() _ = yym1304 if false { } else if z.HasExtensions() && z.EncExt(yy1303) { } else if !yym1304 && z.IsJSONHandle() { z.EncJSONMarshal(yy1303) } else { z.EncFallback(yy1303) } } } if yyr1293 || yy2arr1293 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1305 := z.DecBinary() _ = yym1305 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1306 := r.ContainerType() if yyct1306 == codecSelferValueTypeMap1234 { yyl1306 := r.ReadMapStart() if yyl1306 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1306, d) } } else if yyct1306 == codecSelferValueTypeArray1234 { yyl1306 := r.ReadArrayStart() if yyl1306 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1306, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1307Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1307Slc var yyhl1307 bool = l >= 0 for yyj1307 := 0; ; yyj1307++ { if yyhl1307 { if yyj1307 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1307Slc = r.DecodeBytes(yys1307Slc, true, true) yys1307 := string(yys1307Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1307 { case "containerName": if r.TryDecodeAsNil() { x.ContainerName = "" } else { x.ContainerName = string(r.DecodeString()) } case "resource": if r.TryDecodeAsNil() { x.Resource = "" } else { x.Resource = string(r.DecodeString()) } case "divisor": if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { yyv1310 := &x.Divisor yym1311 := z.DecBinary() _ = yym1311 if false { } else if z.HasExtensions() && z.DecExt(yyv1310) { } else if !yym1311 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1310) } else { z.DecFallback(yyv1310, false) } } default: z.DecStructFieldNotFound(-1, yys1307) } // end switch yys1307 } // end for yyj1307 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1312 int var yyb1312 bool var yyhl1312 bool = l >= 0 yyj1312++ if yyhl1312 { yyb1312 = yyj1312 > l } else { yyb1312 = r.CheckBreak() } if yyb1312 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerName = "" } else { x.ContainerName = string(r.DecodeString()) } yyj1312++ if yyhl1312 { yyb1312 = yyj1312 > l } else { yyb1312 = r.CheckBreak() } if yyb1312 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resource = "" } else { x.Resource = string(r.DecodeString()) } yyj1312++ if yyhl1312 { yyb1312 = yyj1312 > l } else { yyb1312 = r.CheckBreak() } if yyb1312 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Divisor = pkg3_resource.Quantity{} } else { yyv1315 := &x.Divisor yym1316 := z.DecBinary() _ = yym1316 if false { } else if z.HasExtensions() && z.DecExt(yyv1315) { } else if !yym1316 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1315) } else { z.DecFallback(yyv1315, false) } } for { yyj1312++ if yyhl1312 { yyb1312 = yyj1312 > l } else { yyb1312 = r.CheckBreak() } if yyb1312 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1312-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1317 := z.EncBinary() _ = yym1317 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1318 := !z.EncBinary() yy2arr1318 := z.EncBasicHandle().StructToArray var yyq1318 [2]bool _, _, _ = yysep1318, yyq1318, yy2arr1318 const yyr1318 bool = false var yynn1318 int if yyr1318 || yy2arr1318 { r.EncodeArrayStart(2) } else { yynn1318 = 2 for _, b := range yyq1318 { if b { yynn1318++ } } r.EncodeMapStart(yynn1318) yynn1318 = 0 } if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1320 := z.EncBinary() _ = yym1320 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) yym1321 := z.EncBinary() _ = yym1321 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1323 := z.EncBinary() _ = yym1323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1324 := z.EncBinary() _ = yym1324 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1318 || yy2arr1318 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1325 := z.DecBinary() _ = yym1325 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1326 := r.ContainerType() if yyct1326 == codecSelferValueTypeMap1234 { yyl1326 := r.ReadMapStart() if yyl1326 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1326, d) } } else if yyct1326 == codecSelferValueTypeArray1234 { yyl1326 := r.ReadArrayStart() if yyl1326 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1326, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1327Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1327Slc var yyhl1327 bool = l >= 0 for yyj1327 := 0; ; yyj1327++ { if yyhl1327 { if yyj1327 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1327Slc = r.DecodeBytes(yys1327Slc, true, true) yys1327 := string(yys1327Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1327 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1327) } // end switch yys1327 } // end for yyj1327 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var 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.Key = "" } else { x.Key = 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 *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1333 := z.EncBinary() _ = yym1333 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1334 := !z.EncBinary() yy2arr1334 := z.EncBasicHandle().StructToArray var yyq1334 [2]bool _, _, _ = yysep1334, yyq1334, yy2arr1334 const yyr1334 bool = false var yynn1334 int if yyr1334 || yy2arr1334 { r.EncodeArrayStart(2) } else { yynn1334 = 2 for _, b := range yyq1334 { if b { yynn1334++ } } r.EncodeMapStart(yynn1334) yynn1334 = 0 } if yyr1334 || yy2arr1334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1336 := z.EncBinary() _ = yym1336 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) yym1337 := z.EncBinary() _ = yym1337 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1334 || yy2arr1334 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1339 := z.EncBinary() _ = yym1339 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1340 := z.EncBinary() _ = yym1340 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1334 || yy2arr1334 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1341 := z.DecBinary() _ = yym1341 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1342 := r.ContainerType() if yyct1342 == codecSelferValueTypeMap1234 { yyl1342 := r.ReadMapStart() if yyl1342 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1342, d) } } else if yyct1342 == codecSelferValueTypeArray1234 { yyl1342 := r.ReadArrayStart() if yyl1342 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1342, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1343Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1343Slc var yyhl1343 bool = l >= 0 for yyj1343 := 0; ; yyj1343++ { if yyhl1343 { if yyj1343 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1343Slc = r.DecodeBytes(yys1343Slc, true, true) yys1343 := string(yys1343Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1343 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1343) } // end switch yys1343 } // end for yyj1343 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1346 int var yyb1346 bool var yyhl1346 bool = l >= 0 yyj1346++ if yyhl1346 { yyb1346 = yyj1346 > l } else { yyb1346 = r.CheckBreak() } if yyb1346 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1346++ if yyhl1346 { yyb1346 = yyj1346 > l } else { yyb1346 = r.CheckBreak() } if yyb1346 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } for { yyj1346++ if yyhl1346 { yyb1346 = yyj1346 > l } else { yyb1346 = r.CheckBreak() } if yyb1346 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1346-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *HTTPHeader) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1349 := z.EncBinary() _ = yym1349 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1350 := !z.EncBinary() yy2arr1350 := z.EncBasicHandle().StructToArray var yyq1350 [2]bool _, _, _ = yysep1350, yyq1350, yy2arr1350 const yyr1350 bool = false var yynn1350 int if yyr1350 || yy2arr1350 { r.EncodeArrayStart(2) } else { yynn1350 = 2 for _, b := range yyq1350 { if b { yynn1350++ } } r.EncodeMapStart(yynn1350) yynn1350 = 0 } if yyr1350 || yy2arr1350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1352 := z.EncBinary() _ = yym1352 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) yym1353 := z.EncBinary() _ = yym1353 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1350 || yy2arr1350 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1355 := z.EncBinary() _ = yym1355 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1356 := z.EncBinary() _ = yym1356 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } if yyr1350 || yy2arr1350 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1357 := z.DecBinary() _ = yym1357 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1358 := r.ContainerType() if yyct1358 == codecSelferValueTypeMap1234 { yyl1358 := r.ReadMapStart() if yyl1358 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1358, d) } } else if yyct1358 == codecSelferValueTypeArray1234 { yyl1358 := r.ReadArrayStart() if yyl1358 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1358, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1359Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1359Slc var yyhl1359 bool = l >= 0 for yyj1359 := 0; ; yyj1359++ { if yyhl1359 { if yyj1359 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1359Slc = r.DecodeBytes(yys1359Slc, true, true) yys1359 := string(yys1359Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1359 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1359) } // end switch yys1359 } // end for yyj1359 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1362 int var yyb1362 bool var yyhl1362 bool = l >= 0 yyj1362++ if yyhl1362 { yyb1362 = yyj1362 > l } else { yyb1362 = r.CheckBreak() } if yyb1362 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1362++ if yyhl1362 { yyb1362 = yyj1362 > l } else { yyb1362 = r.CheckBreak() } if yyb1362 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } for { yyj1362++ if yyhl1362 { yyb1362 = yyj1362 > l } else { yyb1362 = r.CheckBreak() } if yyb1362 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1362-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 { yym1365 := z.EncBinary() _ = yym1365 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1366 := !z.EncBinary() yy2arr1366 := z.EncBasicHandle().StructToArray var yyq1366 [5]bool _, _, _ = yysep1366, yyq1366, yy2arr1366 const yyr1366 bool = false yyq1366[0] = x.Path != "" yyq1366[1] = true yyq1366[2] = x.Host != "" yyq1366[3] = x.Scheme != "" yyq1366[4] = len(x.HTTPHeaders) != 0 var yynn1366 int if yyr1366 || yy2arr1366 { r.EncodeArrayStart(5) } else { yynn1366 = 0 for _, b := range yyq1366 { if b { yynn1366++ } } r.EncodeMapStart(yynn1366) yynn1366 = 0 } if yyr1366 || yy2arr1366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1366[0] { yym1368 := z.EncBinary() _ = yym1368 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1366[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("path")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1369 := z.EncBinary() _ = yym1369 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } } if yyr1366 || yy2arr1366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1366[1] { yy1371 := &x.Port yym1372 := z.EncBinary() _ = yym1372 if false { } else if z.HasExtensions() && z.EncExt(yy1371) { } else if !yym1372 && z.IsJSONHandle() { z.EncJSONMarshal(yy1371) } else { z.EncFallback(yy1371) } } else { r.EncodeNil() } } else { if yyq1366[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1373 := &x.Port yym1374 := z.EncBinary() _ = yym1374 if false { } else if z.HasExtensions() && z.EncExt(yy1373) { } else if !yym1374 && z.IsJSONHandle() { z.EncJSONMarshal(yy1373) } else { z.EncFallback(yy1373) } } } if yyr1366 || yy2arr1366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1366[2] { yym1376 := z.EncBinary() _ = yym1376 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1366[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1377 := z.EncBinary() _ = yym1377 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr1366 || yy2arr1366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1366[3] { x.Scheme.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1366[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scheme")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Scheme.CodecEncodeSelf(e) } } if yyr1366 || yy2arr1366 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1366[4] { if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1380 := z.EncBinary() _ = yym1380 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } else { r.EncodeNil() } } else { if yyq1366[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpHeaders")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.HTTPHeaders == nil { r.EncodeNil() } else { yym1381 := z.EncBinary() _ = yym1381 if false { } else { h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e) } } } } if yyr1366 || yy2arr1366 { 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 yym1382 := z.DecBinary() _ = yym1382 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1383 := r.ContainerType() if yyct1383 == codecSelferValueTypeMap1234 { yyl1383 := r.ReadMapStart() if yyl1383 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1383, d) } } else if yyct1383 == codecSelferValueTypeArray1234 { yyl1383 := r.ReadArrayStart() if yyl1383 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1383, 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 yys1384Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1384Slc var yyhl1384 bool = l >= 0 for yyj1384 := 0; ; yyj1384++ { if yyhl1384 { if yyj1384 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1384Slc = r.DecodeBytes(yys1384Slc, true, true) yys1384 := string(yys1384Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1384 { case "path": if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1386 := &x.Port yym1387 := z.DecBinary() _ = yym1387 if false { } else if z.HasExtensions() && z.DecExt(yyv1386) { } else if !yym1387 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1386) } else { z.DecFallback(yyv1386, false) } } case "host": if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } case "scheme": if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } case "httpHeaders": if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1390 := &x.HTTPHeaders yym1391 := z.DecBinary() _ = yym1391 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1390), d) } } default: z.DecStructFieldNotFound(-1, yys1384) } // end switch yys1384 } // end for yyj1384 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 yyj1392 int var yyb1392 bool var yyhl1392 bool = l >= 0 yyj1392++ if yyhl1392 { yyb1392 = yyj1392 > l } else { yyb1392 = r.CheckBreak() } if yyb1392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } yyj1392++ if yyhl1392 { yyb1392 = yyj1392 > l } else { yyb1392 = r.CheckBreak() } if yyb1392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1394 := &x.Port yym1395 := z.DecBinary() _ = yym1395 if false { } else if z.HasExtensions() && z.DecExt(yyv1394) { } else if !yym1395 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1394) } else { z.DecFallback(yyv1394, false) } } yyj1392++ if yyhl1392 { yyb1392 = yyj1392 > l } else { yyb1392 = r.CheckBreak() } if yyb1392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } yyj1392++ if yyhl1392 { yyb1392 = yyj1392 > l } else { yyb1392 = r.CheckBreak() } if yyb1392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scheme = "" } else { x.Scheme = URIScheme(r.DecodeString()) } yyj1392++ if yyhl1392 { yyb1392 = yyj1392 > l } else { yyb1392 = r.CheckBreak() } if yyb1392 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HTTPHeaders = nil } else { yyv1398 := &x.HTTPHeaders yym1399 := z.DecBinary() _ = yym1399 if false { } else { h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1398), d) } } for { yyj1392++ if yyhl1392 { yyb1392 = yyj1392 > l } else { yyb1392 = r.CheckBreak() } if yyb1392 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1392-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1400 := z.EncBinary() _ = yym1400 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 yym1401 := z.DecBinary() _ = yym1401 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 { yym1402 := z.EncBinary() _ = yym1402 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1403 := !z.EncBinary() yy2arr1403 := z.EncBasicHandle().StructToArray var yyq1403 [1]bool _, _, _ = yysep1403, yyq1403, yy2arr1403 const yyr1403 bool = false yyq1403[0] = true var yynn1403 int if yyr1403 || yy2arr1403 { r.EncodeArrayStart(1) } else { yynn1403 = 0 for _, b := range yyq1403 { if b { yynn1403++ } } r.EncodeMapStart(yynn1403) yynn1403 = 0 } if yyr1403 || yy2arr1403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1403[0] { yy1405 := &x.Port yym1406 := z.EncBinary() _ = yym1406 if false { } else if z.HasExtensions() && z.EncExt(yy1405) { } else if !yym1406 && z.IsJSONHandle() { z.EncJSONMarshal(yy1405) } else { z.EncFallback(yy1405) } } else { r.EncodeNil() } } else { if yyq1403[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1407 := &x.Port yym1408 := z.EncBinary() _ = yym1408 if false { } else if z.HasExtensions() && z.EncExt(yy1407) { } else if !yym1408 && z.IsJSONHandle() { z.EncJSONMarshal(yy1407) } else { z.EncFallback(yy1407) } } } if yyr1403 || yy2arr1403 { 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 yym1409 := z.DecBinary() _ = yym1409 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1410 := r.ContainerType() if yyct1410 == codecSelferValueTypeMap1234 { yyl1410 := r.ReadMapStart() if yyl1410 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1410, d) } } else if yyct1410 == codecSelferValueTypeArray1234 { yyl1410 := r.ReadArrayStart() if yyl1410 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1410, 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 yys1411Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1411Slc var yyhl1411 bool = l >= 0 for yyj1411 := 0; ; yyj1411++ { if yyhl1411 { if yyj1411 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1411Slc = r.DecodeBytes(yys1411Slc, true, true) yys1411 := string(yys1411Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1411 { case "port": if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1412 := &x.Port yym1413 := z.DecBinary() _ = yym1413 if false { } else if z.HasExtensions() && z.DecExt(yyv1412) { } else if !yym1413 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1412) } else { z.DecFallback(yyv1412, false) } } default: z.DecStructFieldNotFound(-1, yys1411) } // end switch yys1411 } // end for yyj1411 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 yyj1414 int var yyb1414 bool var yyhl1414 bool = l >= 0 yyj1414++ if yyhl1414 { yyb1414 = yyj1414 > l } else { yyb1414 = r.CheckBreak() } if yyb1414 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = pkg4_intstr.IntOrString{} } else { yyv1415 := &x.Port yym1416 := z.DecBinary() _ = yym1416 if false { } else if z.HasExtensions() && z.DecExt(yyv1415) { } else if !yym1416 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1415) } else { z.DecFallback(yyv1415, false) } } for { yyj1414++ if yyhl1414 { yyb1414 = yyj1414 > l } else { yyb1414 = r.CheckBreak() } if yyb1414 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1414-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 { yym1417 := z.EncBinary() _ = yym1417 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1418 := !z.EncBinary() yy2arr1418 := z.EncBasicHandle().StructToArray var yyq1418 [1]bool _, _, _ = yysep1418, yyq1418, yy2arr1418 const yyr1418 bool = false yyq1418[0] = len(x.Command) != 0 var yynn1418 int if yyr1418 || yy2arr1418 { r.EncodeArrayStart(1) } else { yynn1418 = 0 for _, b := range yyq1418 { if b { yynn1418++ } } r.EncodeMapStart(yynn1418) yynn1418 = 0 } if yyr1418 || yy2arr1418 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1418[0] { if x.Command == nil { r.EncodeNil() } else { yym1420 := z.EncBinary() _ = yym1420 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1418[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1421 := z.EncBinary() _ = yym1421 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1418 || yy2arr1418 { 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 yym1422 := z.DecBinary() _ = yym1422 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1423 := r.ContainerType() if yyct1423 == codecSelferValueTypeMap1234 { yyl1423 := r.ReadMapStart() if yyl1423 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1423, d) } } else if yyct1423 == codecSelferValueTypeArray1234 { yyl1423 := r.ReadArrayStart() if yyl1423 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1423, 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 yys1424Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1424Slc var yyhl1424 bool = l >= 0 for yyj1424 := 0; ; yyj1424++ { if yyhl1424 { if yyj1424 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1424Slc = r.DecodeBytes(yys1424Slc, true, true) yys1424 := string(yys1424Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1424 { case "command": if r.TryDecodeAsNil() { x.Command = nil } else { yyv1425 := &x.Command yym1426 := z.DecBinary() _ = yym1426 if false { } else { z.F.DecSliceStringX(yyv1425, false, d) } } default: z.DecStructFieldNotFound(-1, yys1424) } // end switch yys1424 } // end for yyj1424 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 yyj1427 int var yyb1427 bool var yyhl1427 bool = l >= 0 yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1428 := &x.Command yym1429 := z.DecBinary() _ = yym1429 if false { } else { z.F.DecSliceStringX(yyv1428, false, d) } } for { yyj1427++ if yyhl1427 { yyb1427 = yyj1427 > l } else { yyb1427 = r.CheckBreak() } if yyb1427 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1427-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 { yym1430 := z.EncBinary() _ = yym1430 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1431 := !z.EncBinary() yy2arr1431 := z.EncBasicHandle().StructToArray var yyq1431 [8]bool _, _, _ = yysep1431, yyq1431, yy2arr1431 const yyr1431 bool = false yyq1431[0] = x.Handler.Exec != nil && x.Exec != nil yyq1431[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil yyq1431[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil yyq1431[3] = x.InitialDelaySeconds != 0 yyq1431[4] = x.TimeoutSeconds != 0 yyq1431[5] = x.PeriodSeconds != 0 yyq1431[6] = x.SuccessThreshold != 0 yyq1431[7] = x.FailureThreshold != 0 var yynn1431 int if yyr1431 || yy2arr1431 { r.EncodeArrayStart(8) } else { yynn1431 = 0 for _, b := range yyq1431 { if b { yynn1431++ } } r.EncodeMapStart(yynn1431) yynn1431 = 0 } var yyn1432 bool if x.Handler.Exec == nil { yyn1432 = true goto LABEL1432 } LABEL1432: if yyr1431 || yy2arr1431 { if yyn1432 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1431[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1432 { r.EncodeNil() } else { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } } } var yyn1433 bool if x.Handler.HTTPGet == nil { yyn1433 = true goto LABEL1433 } LABEL1433: if yyr1431 || yy2arr1431 { if yyn1433 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1431[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("httpGet")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1433 { r.EncodeNil() } else { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } } } var yyn1434 bool if x.Handler.TCPSocket == nil { yyn1434 = true goto LABEL1434 } LABEL1434: if yyr1431 || yy2arr1431 { if yyn1434 { r.EncodeNil() } else { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } } else { if yyq1431[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tcpSocket")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyn1434 { r.EncodeNil() } else { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } } } if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[3] { yym1436 := z.EncBinary() _ = yym1436 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } else { r.EncodeInt(0) } } else { if yyq1431[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1437 := z.EncBinary() _ = yym1437 if false { } else { r.EncodeInt(int64(x.InitialDelaySeconds)) } } } if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[4] { yym1439 := z.EncBinary() _ = yym1439 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1431[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1440 := z.EncBinary() _ = yym1440 if false { } else { r.EncodeInt(int64(x.TimeoutSeconds)) } } } if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[5] { yym1442 := z.EncBinary() _ = yym1442 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } else { r.EncodeInt(0) } } else { if yyq1431[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("periodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1443 := z.EncBinary() _ = yym1443 if false { } else { r.EncodeInt(int64(x.PeriodSeconds)) } } } if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[6] { yym1445 := z.EncBinary() _ = yym1445 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1431[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("successThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1446 := z.EncBinary() _ = yym1446 if false { } else { r.EncodeInt(int64(x.SuccessThreshold)) } } } if yyr1431 || yy2arr1431 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1431[7] { yym1448 := z.EncBinary() _ = yym1448 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } else { r.EncodeInt(0) } } else { if yyq1431[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("failureThreshold")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1449 := z.EncBinary() _ = yym1449 if false { } else { r.EncodeInt(int64(x.FailureThreshold)) } } } if yyr1431 || yy2arr1431 { 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 yym1450 := z.DecBinary() _ = yym1450 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1451 := r.ContainerType() if yyct1451 == codecSelferValueTypeMap1234 { yyl1451 := r.ReadMapStart() if yyl1451 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1451, d) } } else if yyct1451 == codecSelferValueTypeArray1234 { yyl1451 := r.ReadArrayStart() if yyl1451 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1451, 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 yys1452Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1452Slc var yyhl1452 bool = l >= 0 for yyj1452 := 0; ; yyj1452++ { if yyhl1452 { if yyj1452 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1452Slc = r.DecodeBytes(yys1452Slc, true, true) yys1452 := string(yys1452Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1452 { 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 = int32(r.DecodeInt(32)) } case "timeoutSeconds": if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } case "periodSeconds": if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } case "successThreshold": if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } case "failureThreshold": if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys1452) } // end switch yys1452 } // end for yyj1452 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 yyj1461 int var yyb1461 bool var yyhl1461 bool = l >= 0 if x.Handler.Exec == nil { x.Handler.Exec = new(ExecAction) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { 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) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { 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) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { 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) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InitialDelaySeconds = 0 } else { x.InitialDelaySeconds = int32(r.DecodeInt(32)) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TimeoutSeconds = 0 } else { x.TimeoutSeconds = int32(r.DecodeInt(32)) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PeriodSeconds = 0 } else { x.PeriodSeconds = int32(r.DecodeInt(32)) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SuccessThreshold = 0 } else { x.SuccessThreshold = int32(r.DecodeInt(32)) } yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FailureThreshold = 0 } else { x.FailureThreshold = int32(r.DecodeInt(32)) } for { yyj1461++ if yyhl1461 { yyb1461 = yyj1461 > l } else { yyb1461 = r.CheckBreak() } if yyb1461 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1461-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1470 := z.EncBinary() _ = yym1470 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 yym1471 := z.DecBinary() _ = yym1471 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 yym1472 := z.EncBinary() _ = yym1472 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 yym1473 := z.DecBinary() _ = yym1473 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 { yym1474 := z.EncBinary() _ = yym1474 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1475 := !z.EncBinary() yy2arr1475 := z.EncBasicHandle().StructToArray var yyq1475 [2]bool _, _, _ = yysep1475, yyq1475, yy2arr1475 const yyr1475 bool = false yyq1475[0] = len(x.Add) != 0 yyq1475[1] = len(x.Drop) != 0 var yynn1475 int if yyr1475 || yy2arr1475 { r.EncodeArrayStart(2) } else { yynn1475 = 0 for _, b := range yyq1475 { if b { yynn1475++ } } r.EncodeMapStart(yynn1475) yynn1475 = 0 } if yyr1475 || yy2arr1475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1475[0] { if x.Add == nil { r.EncodeNil() } else { yym1477 := z.EncBinary() _ = yym1477 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } else { r.EncodeNil() } } else { if yyq1475[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("add")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Add == nil { r.EncodeNil() } else { yym1478 := z.EncBinary() _ = yym1478 if false { } else { h.encSliceCapability(([]Capability)(x.Add), e) } } } } if yyr1475 || yy2arr1475 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1475[1] { if x.Drop == nil { r.EncodeNil() } else { yym1480 := z.EncBinary() _ = yym1480 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } else { r.EncodeNil() } } else { if yyq1475[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("drop")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Drop == nil { r.EncodeNil() } else { yym1481 := z.EncBinary() _ = yym1481 if false { } else { h.encSliceCapability(([]Capability)(x.Drop), e) } } } } if yyr1475 || yy2arr1475 { 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 yym1482 := z.DecBinary() _ = yym1482 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1483 := r.ContainerType() if yyct1483 == codecSelferValueTypeMap1234 { yyl1483 := r.ReadMapStart() if yyl1483 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1483, d) } } else if yyct1483 == codecSelferValueTypeArray1234 { yyl1483 := r.ReadArrayStart() if yyl1483 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1483, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1484Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1484Slc var yyhl1484 bool = l >= 0 for yyj1484 := 0; ; yyj1484++ { if yyhl1484 { if yyj1484 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1484Slc = r.DecodeBytes(yys1484Slc, true, true) yys1484 := string(yys1484Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1484 { case "add": if r.TryDecodeAsNil() { x.Add = nil } else { yyv1485 := &x.Add yym1486 := z.DecBinary() _ = yym1486 if false { } else { h.decSliceCapability((*[]Capability)(yyv1485), d) } } case "drop": if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1487 := &x.Drop yym1488 := z.DecBinary() _ = yym1488 if false { } else { h.decSliceCapability((*[]Capability)(yyv1487), d) } } default: z.DecStructFieldNotFound(-1, yys1484) } // end switch yys1484 } // end for yyj1484 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 yyj1489 int var yyb1489 bool var yyhl1489 bool = l >= 0 yyj1489++ if yyhl1489 { yyb1489 = yyj1489 > l } else { yyb1489 = r.CheckBreak() } if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Add = nil } else { yyv1490 := &x.Add yym1491 := z.DecBinary() _ = yym1491 if false { } else { h.decSliceCapability((*[]Capability)(yyv1490), d) } } yyj1489++ if yyhl1489 { yyb1489 = yyj1489 > l } else { yyb1489 = r.CheckBreak() } if yyb1489 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Drop = nil } else { yyv1492 := &x.Drop yym1493 := z.DecBinary() _ = yym1493 if false { } else { h.decSliceCapability((*[]Capability)(yyv1492), d) } } for { yyj1489++ if yyhl1489 { yyb1489 = yyj1489 > l } else { yyb1489 = r.CheckBreak() } if yyb1489 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1489-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 { yym1494 := z.EncBinary() _ = yym1494 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1495 := !z.EncBinary() yy2arr1495 := z.EncBasicHandle().StructToArray var yyq1495 [2]bool _, _, _ = yysep1495, yyq1495, yy2arr1495 const yyr1495 bool = false yyq1495[0] = len(x.Limits) != 0 yyq1495[1] = len(x.Requests) != 0 var yynn1495 int if yyr1495 || yy2arr1495 { r.EncodeArrayStart(2) } else { yynn1495 = 0 for _, b := range yyq1495 { if b { yynn1495++ } } r.EncodeMapStart(yynn1495) yynn1495 = 0 } if yyr1495 || yy2arr1495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1495[0] { if x.Limits == nil { r.EncodeNil() } else { x.Limits.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1495[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 yyr1495 || yy2arr1495 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1495[1] { if x.Requests == nil { r.EncodeNil() } else { x.Requests.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1495[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 yyr1495 || yy2arr1495 { 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 yym1498 := z.DecBinary() _ = yym1498 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1499 := r.ContainerType() if yyct1499 == codecSelferValueTypeMap1234 { yyl1499 := r.ReadMapStart() if yyl1499 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1499, d) } } else if yyct1499 == codecSelferValueTypeArray1234 { yyl1499 := r.ReadArrayStart() if yyl1499 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1499, 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 yys1500Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1500Slc var yyhl1500 bool = l >= 0 for yyj1500 := 0; ; yyj1500++ { if yyhl1500 { if yyj1500 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1500Slc = r.DecodeBytes(yys1500Slc, true, true) yys1500 := string(yys1500Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1500 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1501 := &x.Limits yyv1501.CodecDecodeSelf(d) } case "requests": if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1502 := &x.Requests yyv1502.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1500) } // end switch yys1500 } // end for yyj1500 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 yyj1503 int var yyb1503 bool var yyhl1503 bool = l >= 0 yyj1503++ if yyhl1503 { yyb1503 = yyj1503 > l } else { yyb1503 = r.CheckBreak() } if yyb1503 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv1504 := &x.Limits yyv1504.CodecDecodeSelf(d) } yyj1503++ if yyhl1503 { yyb1503 = yyj1503 > l } else { yyb1503 = r.CheckBreak() } if yyb1503 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Requests = nil } else { yyv1505 := &x.Requests yyv1505.CodecDecodeSelf(d) } for { yyj1503++ if yyhl1503 { yyb1503 = yyj1503 > l } else { yyb1503 = r.CheckBreak() } if yyb1503 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1503-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 { yym1506 := z.EncBinary() _ = yym1506 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1507 := !z.EncBinary() yy2arr1507 := z.EncBasicHandle().StructToArray var yyq1507 [18]bool _, _, _ = yysep1507, yyq1507, yy2arr1507 const yyr1507 bool = false yyq1507[2] = len(x.Command) != 0 yyq1507[3] = len(x.Args) != 0 yyq1507[4] = x.WorkingDir != "" yyq1507[5] = len(x.Ports) != 0 yyq1507[6] = len(x.Env) != 0 yyq1507[7] = true yyq1507[8] = len(x.VolumeMounts) != 0 yyq1507[9] = x.LivenessProbe != nil yyq1507[10] = x.ReadinessProbe != nil yyq1507[11] = x.Lifecycle != nil yyq1507[12] = x.TerminationMessagePath != "" yyq1507[14] = x.SecurityContext != nil yyq1507[15] = x.Stdin != false yyq1507[16] = x.StdinOnce != false yyq1507[17] = x.TTY != false var yynn1507 int if yyr1507 || yy2arr1507 { r.EncodeArrayStart(18) } else { yynn1507 = 3 for _, b := range yyq1507 { if b { yynn1507++ } } r.EncodeMapStart(yynn1507) yynn1507 = 0 } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1509 := z.EncBinary() _ = yym1509 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) yym1510 := z.EncBinary() _ = yym1510 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1512 := z.EncBinary() _ = yym1512 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) yym1513 := z.EncBinary() _ = yym1513 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[2] { if x.Command == nil { r.EncodeNil() } else { yym1515 := z.EncBinary() _ = yym1515 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } else { r.EncodeNil() } } else { if yyq1507[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("command")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Command == nil { r.EncodeNil() } else { yym1516 := z.EncBinary() _ = yym1516 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[3] { if x.Args == nil { r.EncodeNil() } else { yym1518 := z.EncBinary() _ = yym1518 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } else { r.EncodeNil() } } else { if yyq1507[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("args")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Args == nil { r.EncodeNil() } else { yym1519 := z.EncBinary() _ = yym1519 if false { } else { z.F.EncSliceStringV(x.Args, false, e) } } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[4] { yym1521 := z.EncBinary() _ = yym1521 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1507[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("workingDir")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1522 := z.EncBinary() _ = yym1522 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir)) } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[5] { if x.Ports == nil { r.EncodeNil() } else { yym1524 := z.EncBinary() _ = yym1524 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } else { r.EncodeNil() } } else { if yyq1507[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ports")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ports == nil { r.EncodeNil() } else { yym1525 := z.EncBinary() _ = yym1525 if false { } else { h.encSliceContainerPort(([]ContainerPort)(x.Ports), e) } } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[6] { if x.Env == nil { r.EncodeNil() } else { yym1527 := z.EncBinary() _ = yym1527 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } else { r.EncodeNil() } } else { if yyq1507[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("env")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Env == nil { r.EncodeNil() } else { yym1528 := z.EncBinary() _ = yym1528 if false { } else { h.encSliceEnvVar(([]EnvVar)(x.Env), e) } } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[7] { yy1530 := &x.Resources yy1530.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1507[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resources")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1531 := &x.Resources yy1531.CodecEncodeSelf(e) } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[8] { if x.VolumeMounts == nil { r.EncodeNil() } else { yym1533 := z.EncBinary() _ = yym1533 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } else { r.EncodeNil() } } else { if yyq1507[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumeMounts")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumeMounts == nil { r.EncodeNil() } else { yym1534 := z.EncBinary() _ = yym1534 if false { } else { h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e) } } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[9] { if x.LivenessProbe == nil { r.EncodeNil() } else { x.LivenessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1507[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 yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[10] { if x.ReadinessProbe == nil { r.EncodeNil() } else { x.ReadinessProbe.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1507[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 yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[11] { if x.Lifecycle == nil { r.EncodeNil() } else { x.Lifecycle.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1507[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 yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[12] { yym1539 := z.EncBinary() _ = yym1539 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1507[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1540 := z.EncBinary() _ = yym1540 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath)) } } } if yyr1507 || yy2arr1507 { 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 yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[14] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1507[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 yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[15] { yym1544 := z.EncBinary() _ = yym1544 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq1507[15] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1545 := z.EncBinary() _ = yym1545 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[16] { yym1547 := z.EncBinary() _ = yym1547 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } else { r.EncodeBool(false) } } else { if yyq1507[16] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdinOnce")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1548 := z.EncBinary() _ = yym1548 if false { } else { r.EncodeBool(bool(x.StdinOnce)) } } } if yyr1507 || yy2arr1507 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1507[17] { yym1550 := z.EncBinary() _ = yym1550 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq1507[17] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1551 := z.EncBinary() _ = yym1551 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr1507 || yy2arr1507 { 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 yym1552 := z.DecBinary() _ = yym1552 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1553 := r.ContainerType() if yyct1553 == codecSelferValueTypeMap1234 { yyl1553 := r.ReadMapStart() if yyl1553 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1553, d) } } else if yyct1553 == codecSelferValueTypeArray1234 { yyl1553 := r.ReadArrayStart() if yyl1553 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1553, 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 yys1554Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1554Slc var yyhl1554 bool = l >= 0 for yyj1554 := 0; ; yyj1554++ { if yyhl1554 { if yyj1554 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1554Slc = r.DecodeBytes(yys1554Slc, true, true) yys1554 := string(yys1554Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1554 { 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 { yyv1557 := &x.Command yym1558 := z.DecBinary() _ = yym1558 if false { } else { z.F.DecSliceStringX(yyv1557, false, d) } } case "args": if r.TryDecodeAsNil() { x.Args = nil } else { yyv1559 := &x.Args yym1560 := z.DecBinary() _ = yym1560 if false { } else { z.F.DecSliceStringX(yyv1559, false, d) } } case "workingDir": if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1562 := &x.Ports yym1563 := z.DecBinary() _ = yym1563 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1562), d) } } case "env": if r.TryDecodeAsNil() { x.Env = nil } else { yyv1564 := &x.Env yym1565 := z.DecBinary() _ = yym1565 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1564), d) } } case "resources": if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1566 := &x.Resources yyv1566.CodecDecodeSelf(d) } case "volumeMounts": if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1567 := &x.VolumeMounts yym1568 := z.DecBinary() _ = yym1568 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1567), 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, yys1554) } // end switch yys1554 } // end for yyj1554 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 yyj1578 int var yyb1578 bool var yyhl1578 bool = l >= 0 yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Image = "" } else { x.Image = string(r.DecodeString()) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv1581 := &x.Command yym1582 := z.DecBinary() _ = yym1582 if false { } else { z.F.DecSliceStringX(yyv1581, false, d) } } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Args = nil } else { yyv1583 := &x.Args yym1584 := z.DecBinary() _ = yym1584 if false { } else { z.F.DecSliceStringX(yyv1583, false, d) } } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.WorkingDir = "" } else { x.WorkingDir = string(r.DecodeString()) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv1586 := &x.Ports yym1587 := z.DecBinary() _ = yym1587 if false { } else { h.decSliceContainerPort((*[]ContainerPort)(yyv1586), d) } } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Env = nil } else { yyv1588 := &x.Env yym1589 := z.DecBinary() _ = yym1589 if false { } else { h.decSliceEnvVar((*[]EnvVar)(yyv1588), d) } } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Resources = ResourceRequirements{} } else { yyv1590 := &x.Resources yyv1590.CodecDecodeSelf(d) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumeMounts = nil } else { yyv1591 := &x.VolumeMounts yym1592 := z.DecBinary() _ = yym1592 if false { } else { h.decSliceVolumeMount((*[]VolumeMount)(yyv1591), d) } } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { 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) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { 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) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { 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) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TerminationMessagePath = "" } else { x.TerminationMessagePath = string(r.DecodeString()) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullPolicy = "" } else { x.ImagePullPolicy = PullPolicy(r.DecodeString()) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { 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) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StdinOnce = false } else { x.StdinOnce = bool(r.DecodeBool()) } yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } for { yyj1578++ if yyhl1578 { yyb1578 = yyj1578 > l } else { yyb1578 = r.CheckBreak() } if yyb1578 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1578-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 { yym1602 := z.EncBinary() _ = yym1602 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1603 := !z.EncBinary() yy2arr1603 := z.EncBasicHandle().StructToArray var yyq1603 [3]bool _, _, _ = yysep1603, yyq1603, yy2arr1603 const yyr1603 bool = false yyq1603[0] = x.Exec != nil yyq1603[1] = x.HTTPGet != nil yyq1603[2] = x.TCPSocket != nil var yynn1603 int if yyr1603 || yy2arr1603 { r.EncodeArrayStart(3) } else { yynn1603 = 0 for _, b := range yyq1603 { if b { yynn1603++ } } r.EncodeMapStart(yynn1603) yynn1603 = 0 } if yyr1603 || yy2arr1603 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1603[0] { if x.Exec == nil { r.EncodeNil() } else { x.Exec.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1603[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 yyr1603 || yy2arr1603 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1603[1] { if x.HTTPGet == nil { r.EncodeNil() } else { x.HTTPGet.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1603[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 yyr1603 || yy2arr1603 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1603[2] { if x.TCPSocket == nil { r.EncodeNil() } else { x.TCPSocket.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1603[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 yyr1603 || yy2arr1603 { 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 yym1607 := z.DecBinary() _ = yym1607 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1608 := r.ContainerType() if yyct1608 == codecSelferValueTypeMap1234 { yyl1608 := r.ReadMapStart() if yyl1608 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1608, d) } } else if yyct1608 == codecSelferValueTypeArray1234 { yyl1608 := r.ReadArrayStart() if yyl1608 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1608, 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 yys1609Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1609Slc var yyhl1609 bool = l >= 0 for yyj1609 := 0; ; yyj1609++ { if yyhl1609 { if yyj1609 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1609Slc = r.DecodeBytes(yys1609Slc, true, true) yys1609 := string(yys1609Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1609 { 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, yys1609) } // end switch yys1609 } // end for yyj1609 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 yyj1613 int var yyb1613 bool var yyhl1613 bool = l >= 0 yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Exec != nil { x.Exec = nil } } else { if x.Exec == nil { x.Exec = new(ExecAction) } x.Exec.CodecDecodeSelf(d) } yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { 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) } yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { 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 { yyj1613++ if yyhl1613 { yyb1613 = yyj1613 > l } else { yyb1613 = r.CheckBreak() } if yyb1613 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1613-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1617 := z.EncBinary() _ = yym1617 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1618 := !z.EncBinary() yy2arr1618 := z.EncBasicHandle().StructToArray var yyq1618 [2]bool _, _, _ = yysep1618, yyq1618, yy2arr1618 const yyr1618 bool = false yyq1618[0] = x.PostStart != nil yyq1618[1] = x.PreStop != nil var yynn1618 int if yyr1618 || yy2arr1618 { r.EncodeArrayStart(2) } else { yynn1618 = 0 for _, b := range yyq1618 { if b { yynn1618++ } } r.EncodeMapStart(yynn1618) yynn1618 = 0 } if yyr1618 || yy2arr1618 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1618[0] { if x.PostStart == nil { r.EncodeNil() } else { x.PostStart.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1618[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 yyr1618 || yy2arr1618 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1618[1] { if x.PreStop == nil { r.EncodeNil() } else { x.PreStop.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1618[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 yyr1618 || yy2arr1618 { 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 yym1621 := z.DecBinary() _ = yym1621 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1622 := r.ContainerType() if yyct1622 == codecSelferValueTypeMap1234 { yyl1622 := r.ReadMapStart() if yyl1622 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1622, d) } } else if yyct1622 == codecSelferValueTypeArray1234 { yyl1622 := r.ReadArrayStart() if yyl1622 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1622, 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 yys1623Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1623Slc var yyhl1623 bool = l >= 0 for yyj1623 := 0; ; yyj1623++ { if yyhl1623 { if yyj1623 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1623Slc = r.DecodeBytes(yys1623Slc, true, true) yys1623 := string(yys1623Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1623 { 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, yys1623) } // end switch yys1623 } // end for yyj1623 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 yyj1626 int var yyb1626 bool var yyhl1626 bool = l >= 0 yyj1626++ if yyhl1626 { yyb1626 = yyj1626 > l } else { yyb1626 = r.CheckBreak() } if yyb1626 { 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) } yyj1626++ if yyhl1626 { yyb1626 = yyj1626 > l } else { yyb1626 = r.CheckBreak() } if yyb1626 { 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 { yyj1626++ if yyhl1626 { yyb1626 = yyj1626 > l } else { yyb1626 = r.CheckBreak() } if yyb1626 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1626-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1629 := z.EncBinary() _ = yym1629 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 yym1630 := z.DecBinary() _ = yym1630 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 { yym1631 := z.EncBinary() _ = yym1631 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1632 := !z.EncBinary() yy2arr1632 := z.EncBasicHandle().StructToArray var yyq1632 [2]bool _, _, _ = yysep1632, yyq1632, yy2arr1632 const yyr1632 bool = false yyq1632[0] = x.Reason != "" yyq1632[1] = x.Message != "" var yynn1632 int if yyr1632 || yy2arr1632 { r.EncodeArrayStart(2) } else { yynn1632 = 0 for _, b := range yyq1632 { if b { yynn1632++ } } r.EncodeMapStart(yynn1632) yynn1632 = 0 } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[0] { yym1634 := z.EncBinary() _ = yym1634 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1632[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1635 := z.EncBinary() _ = yym1635 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1632 || yy2arr1632 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1632[1] { yym1637 := z.EncBinary() _ = yym1637 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1632[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1638 := z.EncBinary() _ = yym1638 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1632 || yy2arr1632 { 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 yym1639 := z.DecBinary() _ = yym1639 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1640 := r.ContainerType() if yyct1640 == codecSelferValueTypeMap1234 { yyl1640 := r.ReadMapStart() if yyl1640 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1640, d) } } else if yyct1640 == codecSelferValueTypeArray1234 { yyl1640 := r.ReadArrayStart() if yyl1640 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1640, 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 yys1641Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1641Slc var yyhl1641 bool = l >= 0 for yyj1641 := 0; ; yyj1641++ { if yyhl1641 { if yyj1641 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1641Slc = r.DecodeBytes(yys1641Slc, true, true) yys1641 := string(yys1641Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1641 { 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, yys1641) } // end switch yys1641 } // end for yyj1641 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 yyj1644 int var yyb1644 bool var yyhl1644 bool = l >= 0 yyj1644++ if yyhl1644 { yyb1644 = yyj1644 > l } else { yyb1644 = r.CheckBreak() } if yyb1644 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1644++ if yyhl1644 { yyb1644 = yyj1644 > l } else { yyb1644 = r.CheckBreak() } if yyb1644 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1644++ if yyhl1644 { yyb1644 = yyj1644 > l } else { yyb1644 = r.CheckBreak() } if yyb1644 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1644-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 { yym1647 := z.EncBinary() _ = yym1647 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1648 := !z.EncBinary() yy2arr1648 := z.EncBasicHandle().StructToArray var yyq1648 [1]bool _, _, _ = yysep1648, yyq1648, yy2arr1648 const yyr1648 bool = false yyq1648[0] = true var yynn1648 int if yyr1648 || yy2arr1648 { r.EncodeArrayStart(1) } else { yynn1648 = 0 for _, b := range yyq1648 { if b { yynn1648++ } } r.EncodeMapStart(yynn1648) yynn1648 = 0 } if yyr1648 || yy2arr1648 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1648[0] { yy1650 := &x.StartedAt yym1651 := z.EncBinary() _ = yym1651 if false { } else if z.HasExtensions() && z.EncExt(yy1650) { } else if yym1651 { z.EncBinaryMarshal(yy1650) } else if !yym1651 && z.IsJSONHandle() { z.EncJSONMarshal(yy1650) } else { z.EncFallback(yy1650) } } else { r.EncodeNil() } } else { if yyq1648[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1652 := &x.StartedAt yym1653 := z.EncBinary() _ = yym1653 if false { } else if z.HasExtensions() && z.EncExt(yy1652) { } else if yym1653 { z.EncBinaryMarshal(yy1652) } else if !yym1653 && z.IsJSONHandle() { z.EncJSONMarshal(yy1652) } else { z.EncFallback(yy1652) } } } if yyr1648 || yy2arr1648 { 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 yym1654 := z.DecBinary() _ = yym1654 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1655 := r.ContainerType() if yyct1655 == codecSelferValueTypeMap1234 { yyl1655 := r.ReadMapStart() if yyl1655 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1655, d) } } else if yyct1655 == codecSelferValueTypeArray1234 { yyl1655 := r.ReadArrayStart() if yyl1655 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1655, 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 yys1656Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1656Slc var yyhl1656 bool = l >= 0 for yyj1656 := 0; ; yyj1656++ { if yyhl1656 { if yyj1656 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1656Slc = r.DecodeBytes(yys1656Slc, true, true) yys1656 := string(yys1656Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1656 { case "startedAt": if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1657 := &x.StartedAt yym1658 := z.DecBinary() _ = yym1658 if false { } else if z.HasExtensions() && z.DecExt(yyv1657) { } else if yym1658 { z.DecBinaryUnmarshal(yyv1657) } else if !yym1658 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1657) } else { z.DecFallback(yyv1657, false) } } default: z.DecStructFieldNotFound(-1, yys1656) } // end switch yys1656 } // end for yyj1656 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 yyj1659 int var yyb1659 bool var yyhl1659 bool = l >= 0 yyj1659++ if yyhl1659 { yyb1659 = yyj1659 > l } else { yyb1659 = r.CheckBreak() } if yyb1659 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1660 := &x.StartedAt yym1661 := z.DecBinary() _ = yym1661 if false { } else if z.HasExtensions() && z.DecExt(yyv1660) { } else if yym1661 { z.DecBinaryUnmarshal(yyv1660) } else if !yym1661 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1660) } else { z.DecFallback(yyv1660, false) } } for { yyj1659++ if yyhl1659 { yyb1659 = yyj1659 > l } else { yyb1659 = r.CheckBreak() } if yyb1659 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1659-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 { yym1662 := z.EncBinary() _ = yym1662 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1663 := !z.EncBinary() yy2arr1663 := z.EncBasicHandle().StructToArray var yyq1663 [7]bool _, _, _ = yysep1663, yyq1663, yy2arr1663 const yyr1663 bool = false yyq1663[1] = x.Signal != 0 yyq1663[2] = x.Reason != "" yyq1663[3] = x.Message != "" yyq1663[4] = true yyq1663[5] = true yyq1663[6] = x.ContainerID != "" var yynn1663 int if yyr1663 || yy2arr1663 { r.EncodeArrayStart(7) } else { yynn1663 = 1 for _, b := range yyq1663 { if b { yynn1663++ } } r.EncodeMapStart(yynn1663) yynn1663 = 0 } if yyr1663 || yy2arr1663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1665 := z.EncBinary() _ = yym1665 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exitCode")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1666 := z.EncBinary() _ = yym1666 if false { } else { r.EncodeInt(int64(x.ExitCode)) } } if yyr1663 || yy2arr1663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1663[1] { yym1668 := z.EncBinary() _ = yym1668 if false { } else { r.EncodeInt(int64(x.Signal)) } } else { r.EncodeInt(0) } } else { if yyq1663[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("signal")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1669 := z.EncBinary() _ = yym1669 if false { } else { r.EncodeInt(int64(x.Signal)) } } } if yyr1663 || yy2arr1663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1663[2] { yym1671 := z.EncBinary() _ = yym1671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1663[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1672 := z.EncBinary() _ = yym1672 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1663 || yy2arr1663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1663[3] { yym1674 := z.EncBinary() _ = yym1674 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1663[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1675 := z.EncBinary() _ = yym1675 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1663 || yy2arr1663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1663[4] { yy1677 := &x.StartedAt yym1678 := z.EncBinary() _ = yym1678 if false { } else if z.HasExtensions() && z.EncExt(yy1677) { } else if yym1678 { z.EncBinaryMarshal(yy1677) } else if !yym1678 && z.IsJSONHandle() { z.EncJSONMarshal(yy1677) } else { z.EncFallback(yy1677) } } else { r.EncodeNil() } } else { if yyq1663[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1679 := &x.StartedAt yym1680 := z.EncBinary() _ = yym1680 if false { } else if z.HasExtensions() && z.EncExt(yy1679) { } else if yym1680 { z.EncBinaryMarshal(yy1679) } else if !yym1680 && z.IsJSONHandle() { z.EncJSONMarshal(yy1679) } else { z.EncFallback(yy1679) } } } if yyr1663 || yy2arr1663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1663[5] { yy1682 := &x.FinishedAt yym1683 := z.EncBinary() _ = yym1683 if false { } else if z.HasExtensions() && z.EncExt(yy1682) { } else if yym1683 { z.EncBinaryMarshal(yy1682) } else if !yym1683 && z.IsJSONHandle() { z.EncJSONMarshal(yy1682) } else { z.EncFallback(yy1682) } } else { r.EncodeNil() } } else { if yyq1663[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("finishedAt")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1684 := &x.FinishedAt yym1685 := z.EncBinary() _ = yym1685 if false { } else if z.HasExtensions() && z.EncExt(yy1684) { } else if yym1685 { z.EncBinaryMarshal(yy1684) } else if !yym1685 && z.IsJSONHandle() { z.EncJSONMarshal(yy1684) } else { z.EncFallback(yy1684) } } } if yyr1663 || yy2arr1663 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1663[6] { yym1687 := z.EncBinary() _ = yym1687 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1663[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1688 := z.EncBinary() _ = yym1688 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1663 || yy2arr1663 { 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 yym1689 := z.DecBinary() _ = yym1689 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1690 := r.ContainerType() if yyct1690 == codecSelferValueTypeMap1234 { yyl1690 := r.ReadMapStart() if yyl1690 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1690, d) } } else if yyct1690 == codecSelferValueTypeArray1234 { yyl1690 := r.ReadArrayStart() if yyl1690 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1690, 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 yys1691Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1691Slc var yyhl1691 bool = l >= 0 for yyj1691 := 0; ; yyj1691++ { if yyhl1691 { if yyj1691 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1691Slc = r.DecodeBytes(yys1691Slc, true, true) yys1691 := string(yys1691Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1691 { case "exitCode": if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int32(r.DecodeInt(32)) } case "signal": if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int32(r.DecodeInt(32)) } 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 { yyv1696 := &x.StartedAt yym1697 := z.DecBinary() _ = yym1697 if false { } else if z.HasExtensions() && z.DecExt(yyv1696) { } else if yym1697 { z.DecBinaryUnmarshal(yyv1696) } else if !yym1697 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1696) } else { z.DecFallback(yyv1696, false) } } case "finishedAt": if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1698 := &x.FinishedAt yym1699 := z.DecBinary() _ = yym1699 if false { } else if z.HasExtensions() && z.DecExt(yyv1698) { } else if yym1699 { z.DecBinaryUnmarshal(yyv1698) } else if !yym1699 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1698) } else { z.DecFallback(yyv1698, false) } } case "containerID": if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1691) } // end switch yys1691 } // end for yyj1691 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 yyj1701 int var yyb1701 bool var yyhl1701 bool = l >= 0 yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExitCode = 0 } else { x.ExitCode = int32(r.DecodeInt(32)) } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Signal = 0 } else { x.Signal = int32(r.DecodeInt(32)) } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.StartedAt = pkg2_unversioned.Time{} } else { yyv1706 := &x.StartedAt yym1707 := z.DecBinary() _ = yym1707 if false { } else if z.HasExtensions() && z.DecExt(yyv1706) { } else if yym1707 { z.DecBinaryUnmarshal(yyv1706) } else if !yym1707 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1706) } else { z.DecFallback(yyv1706, false) } } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FinishedAt = pkg2_unversioned.Time{} } else { yyv1708 := &x.FinishedAt yym1709 := z.DecBinary() _ = yym1709 if false { } else if z.HasExtensions() && z.DecExt(yyv1708) { } else if yym1709 { z.DecBinaryUnmarshal(yyv1708) } else if !yym1709 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1708) } else { z.DecFallback(yyv1708, false) } } yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } for { yyj1701++ if yyhl1701 { yyb1701 = yyj1701 > l } else { yyb1701 = r.CheckBreak() } if yyb1701 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1701-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 { yym1711 := z.EncBinary() _ = yym1711 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1712 := !z.EncBinary() yy2arr1712 := z.EncBasicHandle().StructToArray var yyq1712 [3]bool _, _, _ = yysep1712, yyq1712, yy2arr1712 const yyr1712 bool = false yyq1712[0] = x.Waiting != nil yyq1712[1] = x.Running != nil yyq1712[2] = x.Terminated != nil var yynn1712 int if yyr1712 || yy2arr1712 { r.EncodeArrayStart(3) } else { yynn1712 = 0 for _, b := range yyq1712 { if b { yynn1712++ } } r.EncodeMapStart(yynn1712) yynn1712 = 0 } if yyr1712 || yy2arr1712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1712[0] { if x.Waiting == nil { r.EncodeNil() } else { x.Waiting.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1712[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 yyr1712 || yy2arr1712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1712[1] { if x.Running == nil { r.EncodeNil() } else { x.Running.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1712[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 yyr1712 || yy2arr1712 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1712[2] { if x.Terminated == nil { r.EncodeNil() } else { x.Terminated.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1712[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 yyr1712 || yy2arr1712 { 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 yym1716 := z.DecBinary() _ = yym1716 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1717 := r.ContainerType() if yyct1717 == codecSelferValueTypeMap1234 { yyl1717 := r.ReadMapStart() if yyl1717 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1717, d) } } else if yyct1717 == codecSelferValueTypeArray1234 { yyl1717 := r.ReadArrayStart() if yyl1717 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1717, 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 yys1718Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1718Slc var yyhl1718 bool = l >= 0 for yyj1718 := 0; ; yyj1718++ { if yyhl1718 { if yyj1718 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1718Slc = r.DecodeBytes(yys1718Slc, true, true) yys1718 := string(yys1718Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1718 { 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, yys1718) } // end switch yys1718 } // end for yyj1718 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 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() { if x.Waiting != nil { x.Waiting = nil } } else { if x.Waiting == nil { x.Waiting = new(ContainerStateWaiting) } x.Waiting.CodecDecodeSelf(d) } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { 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) } yyj1722++ if yyhl1722 { yyb1722 = yyj1722 > l } else { yyb1722 = r.CheckBreak() } if yyb1722 { 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 { 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 *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1726 := z.EncBinary() _ = yym1726 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1727 := !z.EncBinary() yy2arr1727 := z.EncBasicHandle().StructToArray var yyq1727 [8]bool _, _, _ = yysep1727, yyq1727, yy2arr1727 const yyr1727 bool = false yyq1727[1] = true yyq1727[2] = true yyq1727[7] = x.ContainerID != "" var yynn1727 int if yyr1727 || yy2arr1727 { r.EncodeArrayStart(8) } else { yynn1727 = 5 for _, b := range yyq1727 { if b { yynn1727++ } } r.EncodeMapStart(yynn1727) yynn1727 = 0 } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1729 := z.EncBinary() _ = yym1729 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) yym1730 := z.EncBinary() _ = yym1730 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1727[1] { yy1732 := &x.State yy1732.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1727[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("state")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1733 := &x.State yy1733.CodecEncodeSelf(e) } } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1727[2] { yy1735 := &x.LastTerminationState yy1735.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq1727[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastState")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1736 := &x.LastTerminationState yy1736.CodecEncodeSelf(e) } } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1738 := z.EncBinary() _ = yym1738 if false { } else { r.EncodeBool(bool(x.Ready)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ready")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1739 := z.EncBinary() _ = yym1739 if false { } else { r.EncodeBool(bool(x.Ready)) } } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1741 := z.EncBinary() _ = yym1741 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartCount")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1742 := z.EncBinary() _ = yym1742 if false { } else { r.EncodeInt(int64(x.RestartCount)) } } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1744 := z.EncBinary() _ = yym1744 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) yym1745 := z.EncBinary() _ = yym1745 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Image)) } } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1747 := z.EncBinary() _ = yym1747 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) yym1748 := z.EncBinary() _ = yym1748 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ImageID)) } } if yyr1727 || yy2arr1727 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1727[7] { yym1750 := z.EncBinary() _ = yym1750 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1727[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1751 := z.EncBinary() _ = yym1751 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID)) } } } if yyr1727 || yy2arr1727 { 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 yym1752 := z.DecBinary() _ = yym1752 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1753 := r.ContainerType() if yyct1753 == codecSelferValueTypeMap1234 { yyl1753 := r.ReadMapStart() if yyl1753 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1753, d) } } else if yyct1753 == codecSelferValueTypeArray1234 { yyl1753 := r.ReadArrayStart() if yyl1753 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1753, 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 yys1754Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1754Slc var yyhl1754 bool = l >= 0 for yyj1754 := 0; ; yyj1754++ { if yyhl1754 { if yyj1754 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1754Slc = r.DecodeBytes(yys1754Slc, true, true) yys1754 := string(yys1754Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1754 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "state": if r.TryDecodeAsNil() { x.State = ContainerState{} } else { yyv1756 := &x.State yyv1756.CodecDecodeSelf(d) } case "lastState": if r.TryDecodeAsNil() { x.LastTerminationState = ContainerState{} } else { yyv1757 := &x.LastTerminationState yyv1757.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 = int32(r.DecodeInt(32)) } 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, yys1754) } // end switch yys1754 } // end for yyj1754 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 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.Name = "" } else { x.Name = string(r.DecodeString()) } 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.State = ContainerState{} } else { yyv1765 := &x.State yyv1765.CodecDecodeSelf(d) } 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.LastTerminationState = ContainerState{} } else { yyv1766 := &x.LastTerminationState yyv1766.CodecDecodeSelf(d) } 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.Ready = false } else { x.Ready = bool(r.DecodeBool()) } 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.RestartCount = 0 } else { x.RestartCount = int32(r.DecodeInt(32)) } 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.Image = "" } else { x.Image = string(r.DecodeString()) } 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.ImageID = "" } else { x.ImageID = string(r.DecodeString()) } 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.ContainerID = "" } else { x.ContainerID = string(r.DecodeString()) } 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 PodPhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1772 := z.EncBinary() _ = yym1772 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 yym1773 := z.DecBinary() _ = yym1773 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 yym1774 := z.EncBinary() _ = yym1774 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 yym1775 := z.DecBinary() _ = yym1775 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 { yym1776 := z.EncBinary() _ = yym1776 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1777 := !z.EncBinary() yy2arr1777 := z.EncBasicHandle().StructToArray var yyq1777 [6]bool _, _, _ = yysep1777, yyq1777, yy2arr1777 const yyr1777 bool = false yyq1777[2] = true yyq1777[3] = true yyq1777[4] = x.Reason != "" yyq1777[5] = x.Message != "" var yynn1777 int if yyr1777 || yy2arr1777 { r.EncodeArrayStart(6) } else { yynn1777 = 2 for _, b := range yyq1777 { if b { yynn1777++ } } r.EncodeMapStart(yynn1777) yynn1777 = 0 } if yyr1777 || yy2arr1777 { 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 yyr1777 || yy2arr1777 { 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 yyr1777 || yy2arr1777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1777[2] { yy1781 := &x.LastProbeTime yym1782 := z.EncBinary() _ = yym1782 if false { } else if z.HasExtensions() && z.EncExt(yy1781) { } else if yym1782 { z.EncBinaryMarshal(yy1781) } else if !yym1782 && z.IsJSONHandle() { z.EncJSONMarshal(yy1781) } else { z.EncFallback(yy1781) } } else { r.EncodeNil() } } else { if yyq1777[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1783 := &x.LastProbeTime yym1784 := z.EncBinary() _ = yym1784 if false { } else if z.HasExtensions() && z.EncExt(yy1783) { } else if yym1784 { z.EncBinaryMarshal(yy1783) } else if !yym1784 && z.IsJSONHandle() { z.EncJSONMarshal(yy1783) } else { z.EncFallback(yy1783) } } } if yyr1777 || yy2arr1777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1777[3] { yy1786 := &x.LastTransitionTime yym1787 := z.EncBinary() _ = yym1787 if false { } else if z.HasExtensions() && z.EncExt(yy1786) { } else if yym1787 { z.EncBinaryMarshal(yy1786) } else if !yym1787 && z.IsJSONHandle() { z.EncJSONMarshal(yy1786) } else { z.EncFallback(yy1786) } } else { r.EncodeNil() } } else { if yyq1777[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1788 := &x.LastTransitionTime yym1789 := z.EncBinary() _ = yym1789 if false { } else if z.HasExtensions() && z.EncExt(yy1788) { } else if yym1789 { z.EncBinaryMarshal(yy1788) } else if !yym1789 && z.IsJSONHandle() { z.EncJSONMarshal(yy1788) } else { z.EncFallback(yy1788) } } } if yyr1777 || yy2arr1777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1777[4] { yym1791 := z.EncBinary() _ = yym1791 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1777[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1792 := z.EncBinary() _ = yym1792 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr1777 || yy2arr1777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1777[5] { yym1794 := z.EncBinary() _ = yym1794 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1777[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1795 := z.EncBinary() _ = yym1795 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr1777 || yy2arr1777 { 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 yym1796 := z.DecBinary() _ = yym1796 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1797 := r.ContainerType() if yyct1797 == codecSelferValueTypeMap1234 { yyl1797 := r.ReadMapStart() if yyl1797 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1797, d) } } else if yyct1797 == codecSelferValueTypeArray1234 { yyl1797 := r.ReadArrayStart() if yyl1797 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1797, 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 yys1798Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1798Slc var yyhl1798 bool = l >= 0 for yyj1798 := 0; ; yyj1798++ { if yyhl1798 { if yyj1798 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1798Slc = r.DecodeBytes(yys1798Slc, true, true) yys1798 := string(yys1798Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1798 { 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 { yyv1801 := &x.LastProbeTime yym1802 := z.DecBinary() _ = yym1802 if false { } else if z.HasExtensions() && z.DecExt(yyv1801) { } else if yym1802 { z.DecBinaryUnmarshal(yyv1801) } else if !yym1802 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1801) } else { z.DecFallback(yyv1801, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1803 := &x.LastTransitionTime yym1804 := z.DecBinary() _ = yym1804 if false { } else if z.HasExtensions() && z.DecExt(yyv1803) { } else if yym1804 { z.DecBinaryUnmarshal(yyv1803) } else if !yym1804 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1803) } else { z.DecFallback(yyv1803, 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, yys1798) } // end switch yys1798 } // end for yyj1798 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 yyj1807 int var yyb1807 bool var yyhl1807 bool = l >= 0 yyj1807++ if yyhl1807 { yyb1807 = yyj1807 > l } else { yyb1807 = r.CheckBreak() } if yyb1807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = PodConditionType(r.DecodeString()) } yyj1807++ if yyhl1807 { yyb1807 = yyj1807 > l } else { yyb1807 = r.CheckBreak() } if yyb1807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj1807++ if yyhl1807 { yyb1807 = yyj1807 > l } else { yyb1807 = r.CheckBreak() } if yyb1807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastProbeTime = pkg2_unversioned.Time{} } else { yyv1810 := &x.LastProbeTime yym1811 := z.DecBinary() _ = yym1811 if false { } else if z.HasExtensions() && z.DecExt(yyv1810) { } else if yym1811 { z.DecBinaryUnmarshal(yyv1810) } else if !yym1811 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1810) } else { z.DecFallback(yyv1810, false) } } yyj1807++ if yyhl1807 { yyb1807 = yyj1807 > l } else { yyb1807 = r.CheckBreak() } if yyb1807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv1812 := &x.LastTransitionTime yym1813 := z.DecBinary() _ = yym1813 if false { } else if z.HasExtensions() && z.DecExt(yyv1812) { } else if yym1813 { z.DecBinaryUnmarshal(yyv1812) } else if !yym1813 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv1812) } else { z.DecFallback(yyv1812, false) } } yyj1807++ if yyhl1807 { yyb1807 = yyj1807 > l } else { yyb1807 = r.CheckBreak() } if yyb1807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj1807++ if yyhl1807 { yyb1807 = yyj1807 > l } else { yyb1807 = r.CheckBreak() } if yyb1807 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj1807++ if yyhl1807 { yyb1807 = yyj1807 > l } else { yyb1807 = r.CheckBreak() } if yyb1807 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1807-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1816 := z.EncBinary() _ = yym1816 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 yym1817 := z.DecBinary() _ = yym1817 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 { yym1818 := z.EncBinary() _ = yym1818 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1819 := !z.EncBinary() yy2arr1819 := z.EncBasicHandle().StructToArray var yyq1819 [4]bool _, _, _ = yysep1819, yyq1819, yy2arr1819 const yyr1819 bool = false yyq1819[0] = x.Kind != "" yyq1819[1] = x.APIVersion != "" yyq1819[2] = true var yynn1819 int if yyr1819 || yy2arr1819 { r.EncodeArrayStart(4) } else { yynn1819 = 1 for _, b := range yyq1819 { if b { yynn1819++ } } r.EncodeMapStart(yynn1819) yynn1819 = 0 } if yyr1819 || yy2arr1819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1819[0] { yym1821 := z.EncBinary() _ = yym1821 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1819[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1822 := z.EncBinary() _ = yym1822 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr1819 || yy2arr1819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1819[1] { yym1824 := z.EncBinary() _ = yym1824 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1819[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1825 := z.EncBinary() _ = yym1825 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr1819 || yy2arr1819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1819[2] { yy1827 := &x.ListMeta yym1828 := z.EncBinary() _ = yym1828 if false { } else if z.HasExtensions() && z.EncExt(yy1827) { } else { z.EncFallback(yy1827) } } else { r.EncodeNil() } } else { if yyq1819[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1829 := &x.ListMeta yym1830 := z.EncBinary() _ = yym1830 if false { } else if z.HasExtensions() && z.EncExt(yy1829) { } else { z.EncFallback(yy1829) } } } if yyr1819 || yy2arr1819 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym1832 := z.EncBinary() _ = yym1832 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 { yym1833 := z.EncBinary() _ = yym1833 if false { } else { h.encSlicePod(([]Pod)(x.Items), e) } } } if yyr1819 || yy2arr1819 { 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 yym1834 := z.DecBinary() _ = yym1834 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1835 := r.ContainerType() if yyct1835 == codecSelferValueTypeMap1234 { yyl1835 := r.ReadMapStart() if yyl1835 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1835, d) } } else if yyct1835 == codecSelferValueTypeArray1234 { yyl1835 := r.ReadArrayStart() if yyl1835 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1835, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1836Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1836Slc var yyhl1836 bool = l >= 0 for yyj1836 := 0; ; yyj1836++ { if yyhl1836 { if yyj1836 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1836Slc = r.DecodeBytes(yys1836Slc, true, true) yys1836 := string(yys1836Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1836 { case "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 { yyv1839 := &x.ListMeta yym1840 := z.DecBinary() _ = yym1840 if false { } else if z.HasExtensions() && z.DecExt(yyv1839) { } else { z.DecFallback(yyv1839, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv1841 := &x.Items yym1842 := z.DecBinary() _ = yym1842 if false { } else { h.decSlicePod((*[]Pod)(yyv1841), d) } } default: z.DecStructFieldNotFound(-1, yys1836) } // end switch yys1836 } // end for yyj1836 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 yyj1843 int var yyb1843 bool var yyhl1843 bool = l >= 0 yyj1843++ if yyhl1843 { yyb1843 = yyj1843 > l } else { yyb1843 = r.CheckBreak() } if yyb1843 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj1843++ if yyhl1843 { yyb1843 = yyj1843 > l } else { yyb1843 = r.CheckBreak() } if yyb1843 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj1843++ if yyhl1843 { yyb1843 = yyj1843 > l } else { yyb1843 = r.CheckBreak() } if yyb1843 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv1846 := &x.ListMeta yym1847 := z.DecBinary() _ = yym1847 if false { } else if z.HasExtensions() && z.DecExt(yyv1846) { } else { z.DecFallback(yyv1846, false) } } yyj1843++ if yyhl1843 { yyb1843 = yyj1843 > l } else { yyb1843 = r.CheckBreak() } if yyb1843 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv1848 := &x.Items yym1849 := z.DecBinary() _ = yym1849 if false { } else { h.decSlicePod((*[]Pod)(yyv1848), d) } } for { yyj1843++ if yyhl1843 { yyb1843 = yyj1843 > l } else { yyb1843 = r.CheckBreak() } if yyb1843 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1843-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1850 := z.EncBinary() _ = yym1850 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 yym1851 := z.DecBinary() _ = yym1851 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1852 := z.EncBinary() _ = yym1852 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1853 := !z.EncBinary() yy2arr1853 := z.EncBasicHandle().StructToArray var yyq1853 [1]bool _, _, _ = yysep1853, yyq1853, yy2arr1853 const yyr1853 bool = false var yynn1853 int if yyr1853 || yy2arr1853 { r.EncodeArrayStart(1) } else { yynn1853 = 1 for _, b := range yyq1853 { if b { yynn1853++ } } r.EncodeMapStart(yynn1853) yynn1853 = 0 } if yyr1853 || yy2arr1853 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1855 := z.EncBinary() _ = yym1855 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelectorTerms == nil { r.EncodeNil() } else { yym1856 := z.EncBinary() _ = yym1856 if false { } else { h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e) } } } if yyr1853 || yy2arr1853 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1857 := z.DecBinary() _ = yym1857 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1858 := r.ContainerType() if yyct1858 == codecSelferValueTypeMap1234 { yyl1858 := r.ReadMapStart() if yyl1858 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1858, d) } } else if yyct1858 == codecSelferValueTypeArray1234 { yyl1858 := r.ReadArrayStart() if yyl1858 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1858, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1859Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1859Slc var yyhl1859 bool = l >= 0 for yyj1859 := 0; ; yyj1859++ { if yyhl1859 { if yyj1859 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1859Slc = r.DecodeBytes(yys1859Slc, true, true) yys1859 := string(yys1859Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1859 { case "nodeSelectorTerms": if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1860 := &x.NodeSelectorTerms yym1861 := z.DecBinary() _ = yym1861 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1860), d) } } default: z.DecStructFieldNotFound(-1, yys1859) } // end switch yys1859 } // end for yyj1859 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1862 int var yyb1862 bool var yyhl1862 bool = l >= 0 yyj1862++ if yyhl1862 { yyb1862 = yyj1862 > l } else { yyb1862 = r.CheckBreak() } if yyb1862 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelectorTerms = nil } else { yyv1863 := &x.NodeSelectorTerms yym1864 := z.DecBinary() _ = yym1864 if false { } else { h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1863), d) } } for { yyj1862++ if yyhl1862 { yyb1862 = yyj1862 > l } else { yyb1862 = r.CheckBreak() } if yyb1862 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1862-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { 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 var yynn1866 int if yyr1866 || yy2arr1866 { r.EncodeArrayStart(1) } else { yynn1866 = 1 for _, b := range yyq1866 { if b { yynn1866++ } } r.EncodeMapStart(yynn1866) yynn1866 = 0 } if yyr1866 || yy2arr1866 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1868 := z.EncBinary() _ = yym1868 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("matchExpressions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.MatchExpressions == nil { r.EncodeNil() } else { yym1869 := z.EncBinary() _ = yym1869 if false { } else { h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e) } } } if yyr1866 || yy2arr1866 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r 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 *NodeSelectorTerm) 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 "matchExpressions": if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1873 := &x.MatchExpressions yym1874 := z.DecBinary() _ = yym1874 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1873), d) } } default: z.DecStructFieldNotFound(-1, yys1872) } // end switch yys1872 } // end for yyj1872 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1875 int var yyb1875 bool var yyhl1875 bool = l >= 0 yyj1875++ if yyhl1875 { yyb1875 = yyj1875 > l } else { yyb1875 = r.CheckBreak() } if yyb1875 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MatchExpressions = nil } else { yyv1876 := &x.MatchExpressions yym1877 := z.DecBinary() _ = yym1877 if false { } else { h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1876), d) } } for { yyj1875++ if yyhl1875 { yyb1875 = yyj1875 > l } else { yyb1875 = r.CheckBreak() } if yyb1875 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1875-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1878 := z.EncBinary() _ = yym1878 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1879 := !z.EncBinary() yy2arr1879 := z.EncBasicHandle().StructToArray var yyq1879 [3]bool _, _, _ = yysep1879, yyq1879, yy2arr1879 const yyr1879 bool = false yyq1879[2] = len(x.Values) != 0 var yynn1879 int if yyr1879 || yy2arr1879 { r.EncodeArrayStart(3) } else { yynn1879 = 2 for _, b := range yyq1879 { if b { yynn1879++ } } r.EncodeMapStart(yynn1879) yynn1879 = 0 } if yyr1879 || yy2arr1879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1881 := z.EncBinary() _ = yym1881 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1882 := z.EncBinary() _ = yym1882 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr1879 || yy2arr1879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Operator.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } if yyr1879 || yy2arr1879 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1879[2] { if x.Values == nil { r.EncodeNil() } else { yym1885 := z.EncBinary() _ = yym1885 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } else { r.EncodeNil() } } else { if yyq1879[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("values")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Values == nil { r.EncodeNil() } else { yym1886 := z.EncBinary() _ = yym1886 if false { } else { z.F.EncSliceStringV(x.Values, false, e) } } } } if yyr1879 || yy2arr1879 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1887 := z.DecBinary() _ = yym1887 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1888 := r.ContainerType() if yyct1888 == codecSelferValueTypeMap1234 { yyl1888 := r.ReadMapStart() if yyl1888 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1888, d) } } else if yyct1888 == codecSelferValueTypeArray1234 { yyl1888 := r.ReadArrayStart() if yyl1888 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1888, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1889Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1889Slc var yyhl1889 bool = l >= 0 for yyj1889 := 0; ; yyj1889++ { if yyhl1889 { if yyj1889 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1889Slc = r.DecodeBytes(yys1889Slc, true, true) yys1889 := string(yys1889Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1889 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "operator": if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } case "values": if r.TryDecodeAsNil() { x.Values = nil } else { yyv1892 := &x.Values yym1893 := z.DecBinary() _ = yym1893 if false { } else { z.F.DecSliceStringX(yyv1892, false, d) } } default: z.DecStructFieldNotFound(-1, yys1889) } // end switch yys1889 } // end for yyj1889 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1894 int var yyb1894 bool var yyhl1894 bool = l >= 0 yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = NodeSelectorOperator(r.DecodeString()) } yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Values = nil } else { yyv1897 := &x.Values yym1898 := z.DecBinary() _ = yym1898 if false { } else { z.F.DecSliceStringX(yyv1897, false, d) } } for { yyj1894++ if yyhl1894 { yyb1894 = yyj1894 > l } else { yyb1894 = r.CheckBreak() } if yyb1894 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1894-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym1899 := z.EncBinary() _ = yym1899 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1900 := z.DecBinary() _ = yym1900 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1901 := z.EncBinary() _ = yym1901 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1902 := !z.EncBinary() yy2arr1902 := z.EncBasicHandle().StructToArray var yyq1902 [3]bool _, _, _ = yysep1902, yyq1902, yy2arr1902 const yyr1902 bool = false yyq1902[0] = x.NodeAffinity != nil yyq1902[1] = x.PodAffinity != nil yyq1902[2] = x.PodAntiAffinity != nil var yynn1902 int if yyr1902 || yy2arr1902 { r.EncodeArrayStart(3) } else { yynn1902 = 0 for _, b := range yyq1902 { if b { yynn1902++ } } r.EncodeMapStart(yynn1902) yynn1902 = 0 } if yyr1902 || yy2arr1902 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1902[0] { if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1902[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeAffinity == nil { r.EncodeNil() } else { x.NodeAffinity.CodecEncodeSelf(e) } } } if yyr1902 || yy2arr1902 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1902[1] { if x.PodAffinity == nil { r.EncodeNil() } else { x.PodAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1902[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodAffinity == nil { r.EncodeNil() } else { x.PodAffinity.CodecEncodeSelf(e) } } } if yyr1902 || yy2arr1902 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1902[2] { if x.PodAntiAffinity == nil { r.EncodeNil() } else { x.PodAntiAffinity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1902[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodAntiAffinity == nil { r.EncodeNil() } else { x.PodAntiAffinity.CodecEncodeSelf(e) } } } if yyr1902 || yy2arr1902 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1906 := z.DecBinary() _ = yym1906 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1907 := r.ContainerType() if yyct1907 == codecSelferValueTypeMap1234 { yyl1907 := r.ReadMapStart() if yyl1907 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1907, d) } } else if yyct1907 == codecSelferValueTypeArray1234 { yyl1907 := r.ReadArrayStart() if yyl1907 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1907, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1908Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1908Slc var yyhl1908 bool = l >= 0 for yyj1908 := 0; ; yyj1908++ { if yyhl1908 { if yyj1908 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1908Slc = r.DecodeBytes(yys1908Slc, true, true) yys1908 := string(yys1908Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1908 { case "nodeAffinity": if r.TryDecodeAsNil() { if x.NodeAffinity != nil { x.NodeAffinity = nil } } else { if x.NodeAffinity == nil { x.NodeAffinity = new(NodeAffinity) } x.NodeAffinity.CodecDecodeSelf(d) } case "podAffinity": if r.TryDecodeAsNil() { if x.PodAffinity != nil { x.PodAffinity = nil } } else { if x.PodAffinity == nil { x.PodAffinity = new(PodAffinity) } x.PodAffinity.CodecDecodeSelf(d) } case "podAntiAffinity": if r.TryDecodeAsNil() { if x.PodAntiAffinity != nil { x.PodAntiAffinity = nil } } else { if x.PodAntiAffinity == nil { x.PodAntiAffinity = new(PodAntiAffinity) } x.PodAntiAffinity.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1908) } // end switch yys1908 } // end for yyj1908 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1912 int var yyb1912 bool var yyhl1912 bool = l >= 0 yyj1912++ if yyhl1912 { yyb1912 = yyj1912 > l } else { yyb1912 = r.CheckBreak() } if yyb1912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NodeAffinity != nil { x.NodeAffinity = nil } } else { if x.NodeAffinity == nil { x.NodeAffinity = new(NodeAffinity) } x.NodeAffinity.CodecDecodeSelf(d) } yyj1912++ if yyhl1912 { yyb1912 = yyj1912 > l } else { yyb1912 = r.CheckBreak() } if yyb1912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PodAffinity != nil { x.PodAffinity = nil } } else { if x.PodAffinity == nil { x.PodAffinity = new(PodAffinity) } x.PodAffinity.CodecDecodeSelf(d) } yyj1912++ if yyhl1912 { yyb1912 = yyj1912 > l } else { yyb1912 = r.CheckBreak() } if yyb1912 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PodAntiAffinity != nil { x.PodAntiAffinity = nil } } else { if x.PodAntiAffinity == nil { x.PodAntiAffinity = new(PodAntiAffinity) } x.PodAntiAffinity.CodecDecodeSelf(d) } for { yyj1912++ if yyhl1912 { yyb1912 = yyj1912 > l } else { yyb1912 = r.CheckBreak() } if yyb1912 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1912-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1916 := z.EncBinary() _ = yym1916 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1917 := !z.EncBinary() yy2arr1917 := z.EncBasicHandle().StructToArray var yyq1917 [2]bool _, _, _ = yysep1917, yyq1917, yy2arr1917 const yyr1917 bool = false yyq1917[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 yyq1917[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1917 int if yyr1917 || yy2arr1917 { r.EncodeArrayStart(2) } else { yynn1917 = 0 for _, b := range yyq1917 { if b { yynn1917++ } } r.EncodeMapStart(yynn1917) yynn1917 = 0 } if yyr1917 || yy2arr1917 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1917[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1919 := z.EncBinary() _ = yym1919 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1917[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1920 := z.EncBinary() _ = yym1920 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1917 || yy2arr1917 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1917[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1922 := z.EncBinary() _ = yym1922 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1917[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1923 := z.EncBinary() _ = yym1923 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1917 || yy2arr1917 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodAffinity) 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 *PodAffinity) 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 "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1927 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1928 := z.DecBinary() _ = yym1928 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1927), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1929 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1930 := z.DecBinary() _ = yym1930 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1929), d) } } default: z.DecStructFieldNotFound(-1, yys1926) } // end switch yys1926 } // end for yyj1926 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1931 int var yyb1931 bool var yyhl1931 bool = l >= 0 yyj1931++ if yyhl1931 { yyb1931 = yyj1931 > l } else { yyb1931 = r.CheckBreak() } if yyb1931 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1932 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1933 := z.DecBinary() _ = yym1933 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1932), d) } } yyj1931++ if yyhl1931 { yyb1931 = yyj1931 > l } else { yyb1931 = r.CheckBreak() } if yyb1931 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1934 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1935 := z.DecBinary() _ = yym1935 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1934), d) } } for { yyj1931++ if yyhl1931 { yyb1931 = yyj1931 > l } else { yyb1931 = r.CheckBreak() } if yyb1931 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1931-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1936 := z.EncBinary() _ = yym1936 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1937 := !z.EncBinary() yy2arr1937 := z.EncBasicHandle().StructToArray var yyq1937 [2]bool _, _, _ = yysep1937, yyq1937, yy2arr1937 const yyr1937 bool = false yyq1937[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0 yyq1937[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1937 int if yyr1937 || yy2arr1937 { r.EncodeArrayStart(2) } else { yynn1937 = 0 for _, b := range yyq1937 { if b { yynn1937++ } } r.EncodeMapStart(yynn1937) yynn1937 = 0 } if yyr1937 || yy2arr1937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1937[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1939 := z.EncBinary() _ = yym1939 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1937[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1940 := z.EncBinary() _ = yym1940 if false { } else { h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1937 || yy2arr1937 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1937[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1942 := z.EncBinary() _ = yym1942 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1937[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym1943 := z.EncBinary() _ = yym1943 if false { } else { h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1937 || yy2arr1937 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1944 := z.DecBinary() _ = yym1944 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1945 := r.ContainerType() if yyct1945 == codecSelferValueTypeMap1234 { yyl1945 := r.ReadMapStart() if yyl1945 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1945, d) } } else if yyct1945 == codecSelferValueTypeArray1234 { yyl1945 := r.ReadArrayStart() if yyl1945 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1945, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1946Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1946Slc var yyhl1946 bool = l >= 0 for yyj1946 := 0; ; yyj1946++ { if yyhl1946 { if yyj1946 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1946Slc = r.DecodeBytes(yys1946Slc, true, true) yys1946 := string(yys1946Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1946 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1947 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1948 := z.DecBinary() _ = yym1948 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1947), d) } } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1949 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1950 := z.DecBinary() _ = yym1950 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1949), d) } } default: z.DecStructFieldNotFound(-1, yys1946) } // end switch yys1946 } // end for yyj1946 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1951 int var yyb1951 bool var yyhl1951 bool = l >= 0 yyj1951++ if yyhl1951 { yyb1951 = yyj1951 > l } else { yyb1951 = r.CheckBreak() } if yyb1951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1952 := &x.RequiredDuringSchedulingIgnoredDuringExecution yym1953 := z.DecBinary() _ = yym1953 if false { } else { h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1952), d) } } yyj1951++ if yyhl1951 { yyb1951 = yyj1951 > l } else { yyb1951 = r.CheckBreak() } if yyb1951 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv1954 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym1955 := z.DecBinary() _ = yym1955 if false { } else { h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1954), d) } } for { yyj1951++ if yyhl1951 { yyb1951 = yyj1951 > l } else { yyb1951 = r.CheckBreak() } if yyb1951 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1951-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1956 := z.EncBinary() _ = yym1956 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1957 := !z.EncBinary() yy2arr1957 := z.EncBasicHandle().StructToArray var yyq1957 [2]bool _, _, _ = yysep1957, yyq1957, yy2arr1957 const yyr1957 bool = false var yynn1957 int if yyr1957 || yy2arr1957 { r.EncodeArrayStart(2) } else { yynn1957 = 2 for _, b := range yyq1957 { if b { yynn1957++ } } r.EncodeMapStart(yynn1957) yynn1957 = 0 } if yyr1957 || yy2arr1957 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym1959 := z.EncBinary() _ = yym1959 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1960 := z.EncBinary() _ = yym1960 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr1957 || yy2arr1957 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy1962 := &x.PodAffinityTerm yy1962.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy1963 := &x.PodAffinityTerm yy1963.CodecEncodeSelf(e) } if yyr1957 || yy2arr1957 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1964 := z.DecBinary() _ = yym1964 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1965 := r.ContainerType() if yyct1965 == codecSelferValueTypeMap1234 { yyl1965 := r.ReadMapStart() if yyl1965 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1965, d) } } else if yyct1965 == codecSelferValueTypeArray1234 { yyl1965 := r.ReadArrayStart() if yyl1965 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1965, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1966Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1966Slc var yyhl1966 bool = l >= 0 for yyj1966 := 0; ; yyj1966++ { if yyhl1966 { if yyj1966 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1966Slc = r.DecodeBytes(yys1966Slc, true, true) yys1966 := string(yys1966Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1966 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } case "podAffinityTerm": if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { yyv1968 := &x.PodAffinityTerm yyv1968.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys1966) } // end switch yys1966 } // end for yyj1966 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1969 int var yyb1969 bool var yyhl1969 bool = l >= 0 yyj1969++ if yyhl1969 { yyb1969 = yyj1969 > l } else { yyb1969 = r.CheckBreak() } if yyb1969 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int(r.DecodeInt(codecSelferBitsize1234)) } yyj1969++ if yyhl1969 { yyb1969 = yyj1969 > l } else { yyb1969 = r.CheckBreak() } if yyb1969 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodAffinityTerm = PodAffinityTerm{} } else { yyv1971 := &x.PodAffinityTerm yyv1971.CodecDecodeSelf(d) } for { yyj1969++ if yyhl1969 { yyb1969 = yyj1969 > l } else { yyb1969 = r.CheckBreak() } if yyb1969 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1969-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1972 := z.EncBinary() _ = yym1972 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1973 := !z.EncBinary() yy2arr1973 := z.EncBasicHandle().StructToArray var yyq1973 [3]bool _, _, _ = yysep1973, yyq1973, yy2arr1973 const yyr1973 bool = false yyq1973[0] = x.LabelSelector != nil yyq1973[2] = x.TopologyKey != "" var yynn1973 int if yyr1973 || yy2arr1973 { r.EncodeArrayStart(3) } else { yynn1973 = 1 for _, b := range yyq1973 { if b { yynn1973++ } } r.EncodeMapStart(yynn1973) yynn1973 = 0 } if yyr1973 || yy2arr1973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1973[0] { if x.LabelSelector == nil { r.EncodeNil() } else { yym1975 := z.EncBinary() _ = yym1975 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } else { r.EncodeNil() } } else { if yyq1973[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("labelSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym1976 := z.EncBinary() _ = yym1976 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } } if yyr1973 || yy2arr1973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Namespaces == nil { r.EncodeNil() } else { yym1978 := z.EncBinary() _ = yym1978 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespaces")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Namespaces == nil { r.EncodeNil() } else { yym1979 := z.EncBinary() _ = yym1979 if false { } else { z.F.EncSliceStringV(x.Namespaces, false, e) } } } if yyr1973 || yy2arr1973 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1973[2] { yym1981 := z.EncBinary() _ = yym1981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq1973[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("topologyKey")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym1982 := z.EncBinary() _ = yym1982 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey)) } } } if yyr1973 || yy2arr1973 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym1983 := z.DecBinary() _ = yym1983 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct1984 := r.ContainerType() if yyct1984 == codecSelferValueTypeMap1234 { yyl1984 := r.ReadMapStart() if yyl1984 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl1984, d) } } else if yyct1984 == codecSelferValueTypeArray1234 { yyl1984 := r.ReadArrayStart() if yyl1984 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl1984, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys1985Slc = z.DecScratchBuffer() // default slice to decode into _ = yys1985Slc var yyhl1985 bool = l >= 0 for yyj1985 := 0; ; yyj1985++ { if yyhl1985 { if yyj1985 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys1985Slc = r.DecodeBytes(yys1985Slc, true, true) yys1985 := string(yys1985Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys1985 { case "labelSelector": if r.TryDecodeAsNil() { if x.LabelSelector != nil { x.LabelSelector = nil } } else { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } yym1987 := z.DecBinary() _ = yym1987 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } case "namespaces": if r.TryDecodeAsNil() { x.Namespaces = nil } else { yyv1988 := &x.Namespaces yym1989 := z.DecBinary() _ = yym1989 if false { } else { z.F.DecSliceStringX(yyv1988, false, d) } } case "topologyKey": if r.TryDecodeAsNil() { x.TopologyKey = "" } else { x.TopologyKey = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys1985) } // end switch yys1985 } // end for yyj1985 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj1991 int var yyb1991 bool var yyhl1991 bool = l >= 0 yyj1991++ if yyhl1991 { yyb1991 = yyj1991 > l } else { yyb1991 = r.CheckBreak() } if yyb1991 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.LabelSelector != nil { x.LabelSelector = nil } } else { if x.LabelSelector == nil { x.LabelSelector = new(pkg2_unversioned.LabelSelector) } yym1993 := z.DecBinary() _ = yym1993 if false { } else if z.HasExtensions() && z.DecExt(x.LabelSelector) { } else { z.DecFallback(x.LabelSelector, false) } } yyj1991++ if yyhl1991 { yyb1991 = yyj1991 > l } else { yyb1991 = r.CheckBreak() } if yyb1991 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespaces = nil } else { yyv1994 := &x.Namespaces yym1995 := z.DecBinary() _ = yym1995 if false { } else { z.F.DecSliceStringX(yyv1994, false, d) } } yyj1991++ if yyhl1991 { yyb1991 = yyj1991 > l } else { yyb1991 = r.CheckBreak() } if yyb1991 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TopologyKey = "" } else { x.TopologyKey = string(r.DecodeString()) } for { yyj1991++ if yyhl1991 { yyb1991 = yyj1991 > l } else { yyb1991 = r.CheckBreak() } if yyb1991 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj1991-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym1997 := z.EncBinary() _ = yym1997 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep1998 := !z.EncBinary() yy2arr1998 := z.EncBasicHandle().StructToArray var yyq1998 [2]bool _, _, _ = yysep1998, yyq1998, yy2arr1998 const yyr1998 bool = false yyq1998[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil yyq1998[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0 var yynn1998 int if yyr1998 || yy2arr1998 { r.EncodeArrayStart(2) } else { yynn1998 = 0 for _, b := range yyq1998 { if b { yynn1998++ } } r.EncodeMapStart(yynn1998) yynn1998 = 0 } if yyr1998 || yy2arr1998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1998[0] { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq1998[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e) } } } if yyr1998 || yy2arr1998 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq1998[1] { if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym2001 := z.EncBinary() _ = yym2001 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } else { r.EncodeNil() } } else { if yyq1998[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferredDuringSchedulingIgnoredDuringExecution == nil { r.EncodeNil() } else { yym2002 := z.EncBinary() _ = yym2002 if false { } else { h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e) } } } } if yyr1998 || yy2arr1998 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2003 := z.DecBinary() _ = yym2003 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2004 := r.ContainerType() if yyct2004 == codecSelferValueTypeMap1234 { yyl2004 := r.ReadMapStart() if yyl2004 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2004, d) } } else if yyct2004 == codecSelferValueTypeArray1234 { yyl2004 := r.ReadArrayStart() if yyl2004 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2004, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2005Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2005Slc var yyhl2005 bool = l >= 0 for yyj2005 := 0; ; yyj2005++ { if yyhl2005 { if yyj2005 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2005Slc = r.DecodeBytes(yys2005Slc, true, true) yys2005 := string(yys2005Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2005 { case "requiredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } } else { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } case "preferredDuringSchedulingIgnoredDuringExecution": if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv2007 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym2008 := z.DecBinary() _ = yym2008 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2007), d) } } default: z.DecStructFieldNotFound(-1, yys2005) } // end switch yys2005 } // end for yyj2005 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2009 int var yyb2009 bool var yyhl2009 bool = l >= 0 yyj2009++ if yyhl2009 { yyb2009 = yyj2009 > l } else { yyb2009 = r.CheckBreak() } if yyb2009 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.RequiredDuringSchedulingIgnoredDuringExecution != nil { x.RequiredDuringSchedulingIgnoredDuringExecution = nil } } else { if x.RequiredDuringSchedulingIgnoredDuringExecution == nil { x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector) } x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d) } yyj2009++ if yyhl2009 { yyb2009 = yyj2009 > l } else { yyb2009 = r.CheckBreak() } if yyb2009 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PreferredDuringSchedulingIgnoredDuringExecution = nil } else { yyv2011 := &x.PreferredDuringSchedulingIgnoredDuringExecution yym2012 := z.DecBinary() _ = yym2012 if false { } else { h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv2011), d) } } for { yyj2009++ if yyhl2009 { yyb2009 = yyj2009 > l } else { yyb2009 = r.CheckBreak() } if yyb2009 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2009-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2013 := z.EncBinary() _ = yym2013 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2014 := !z.EncBinary() yy2arr2014 := z.EncBasicHandle().StructToArray var yyq2014 [2]bool _, _, _ = yysep2014, yyq2014, yy2arr2014 const yyr2014 bool = false var yynn2014 int if yyr2014 || yy2arr2014 { r.EncodeArrayStart(2) } else { yynn2014 = 2 for _, b := range yyq2014 { if b { yynn2014++ } } r.EncodeMapStart(yynn2014) yynn2014 = 0 } if yyr2014 || yy2arr2014 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2016 := z.EncBinary() _ = yym2016 if false { } else { r.EncodeInt(int64(x.Weight)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("weight")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2017 := z.EncBinary() _ = yym2017 if false { } else { r.EncodeInt(int64(x.Weight)) } } if yyr2014 || yy2arr2014 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2019 := &x.Preference yy2019.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2020 := &x.Preference yy2020.CodecEncodeSelf(e) } if yyr2014 || yy2arr2014 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2021 := z.DecBinary() _ = yym2021 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2022 := r.ContainerType() if yyct2022 == codecSelferValueTypeMap1234 { yyl2022 := r.ReadMapStart() if yyl2022 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2022, d) } } else if yyct2022 == codecSelferValueTypeArray1234 { yyl2022 := r.ReadArrayStart() if yyl2022 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2022, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2023Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2023Slc var yyhl2023 bool = l >= 0 for yyj2023 := 0; ; yyj2023++ { if yyhl2023 { if yyj2023 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2023Slc = r.DecodeBytes(yys2023Slc, true, true) yys2023 := string(yys2023Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2023 { case "weight": if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int32(r.DecodeInt(32)) } case "preference": if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv2025 := &x.Preference yyv2025.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2023) } // end switch yys2023 } // end for yyj2023 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2026 int var yyb2026 bool var yyhl2026 bool = l >= 0 yyj2026++ if yyhl2026 { yyb2026 = yyj2026 > l } else { yyb2026 = r.CheckBreak() } if yyb2026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Weight = 0 } else { x.Weight = int32(r.DecodeInt(32)) } yyj2026++ if yyhl2026 { yyb2026 = yyj2026 > l } else { yyb2026 = r.CheckBreak() } if yyb2026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Preference = NodeSelectorTerm{} } else { yyv2028 := &x.Preference yyv2028.CodecDecodeSelf(d) } for { yyj2026++ if yyhl2026 { yyb2026 = yyj2026 > l } else { yyb2026 = r.CheckBreak() } if yyb2026 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2026-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2029 := z.EncBinary() _ = yym2029 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2030 := !z.EncBinary() yy2arr2030 := z.EncBasicHandle().StructToArray var yyq2030 [3]bool _, _, _ = yysep2030, yyq2030, yy2arr2030 const yyr2030 bool = false yyq2030[1] = x.Value != "" var yynn2030 int if yyr2030 || yy2arr2030 { r.EncodeArrayStart(3) } else { yynn2030 = 2 for _, b := range yyq2030 { if b { yynn2030++ } } r.EncodeMapStart(yynn2030) yynn2030 = 0 } if yyr2030 || yy2arr2030 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2032 := z.EncBinary() _ = yym2032 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2033 := z.EncBinary() _ = yym2033 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } if yyr2030 || yy2arr2030 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2030[1] { yym2035 := z.EncBinary() _ = yym2035 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2030[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2036 := z.EncBinary() _ = yym2036 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr2030 || yy2arr2030 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Effect.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } if yyr2030 || yy2arr2030 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2038 := z.DecBinary() _ = yym2038 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2039 := r.ContainerType() if yyct2039 == codecSelferValueTypeMap1234 { yyl2039 := r.ReadMapStart() if yyl2039 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2039, d) } } else if yyct2039 == codecSelferValueTypeArray1234 { yyl2039 := r.ReadArrayStart() if yyl2039 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2039, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2040Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2040Slc var yyhl2040 bool = l >= 0 for yyj2040 := 0; ; yyj2040++ { if yyhl2040 { if yyj2040 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2040Slc = r.DecodeBytes(yys2040Slc, true, true) yys2040 := string(yys2040Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2040 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } case "effect": if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2040) } // end switch yys2040 } // end for yyj2040 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2044 int var yyb2044 bool var yyhl2044 bool = l >= 0 yyj2044++ if yyhl2044 { yyb2044 = yyj2044 > l } else { yyb2044 = r.CheckBreak() } if yyb2044 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj2044++ if yyhl2044 { yyb2044 = yyj2044 > l } else { yyb2044 = r.CheckBreak() } if yyb2044 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj2044++ if yyhl2044 { yyb2044 = yyj2044 > l } else { yyb2044 = r.CheckBreak() } if yyb2044 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } for { yyj2044++ if yyhl2044 { yyb2044 = yyj2044 > l } else { yyb2044 = r.CheckBreak() } if yyb2044 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2044-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2048 := z.EncBinary() _ = yym2048 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2049 := z.DecBinary() _ = yym2049 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2050 := z.EncBinary() _ = yym2050 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2051 := !z.EncBinary() yy2arr2051 := z.EncBasicHandle().StructToArray var yyq2051 [4]bool _, _, _ = yysep2051, yyq2051, yy2arr2051 const yyr2051 bool = false yyq2051[0] = x.Key != "" yyq2051[1] = x.Operator != "" yyq2051[2] = x.Value != "" yyq2051[3] = x.Effect != "" var yynn2051 int if yyr2051 || yy2arr2051 { r.EncodeArrayStart(4) } else { yynn2051 = 0 for _, b := range yyq2051 { if b { yynn2051++ } } r.EncodeMapStart(yynn2051) yynn2051 = 0 } if yyr2051 || yy2arr2051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2051[0] { yym2053 := z.EncBinary() _ = yym2053 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2051[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("key")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2054 := z.EncBinary() _ = yym2054 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Key)) } } } if yyr2051 || yy2arr2051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2051[1] { x.Operator.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2051[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operator")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Operator.CodecEncodeSelf(e) } } if yyr2051 || yy2arr2051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2051[2] { yym2057 := z.EncBinary() _ = yym2057 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2051[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2058 := z.EncBinary() _ = yym2058 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } } if yyr2051 || yy2arr2051 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2051[3] { x.Effect.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2051[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("effect")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Effect.CodecEncodeSelf(e) } } if yyr2051 || yy2arr2051 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2060 := z.DecBinary() _ = yym2060 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2061 := r.ContainerType() if yyct2061 == codecSelferValueTypeMap1234 { yyl2061 := r.ReadMapStart() if yyl2061 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2061, d) } } else if yyct2061 == codecSelferValueTypeArray1234 { yyl2061 := r.ReadArrayStart() if yyl2061 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2061, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2062Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2062Slc var yyhl2062 bool = l >= 0 for yyj2062 := 0; ; yyj2062++ { if yyhl2062 { if yyj2062 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2062Slc = r.DecodeBytes(yys2062Slc, true, true) yys2062 := string(yys2062Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2062 { case "key": if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } case "operator": if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = TolerationOperator(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } case "effect": if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2062) } // end switch yys2062 } // end for yyj2062 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2067 int var yyb2067 bool var yyhl2067 bool = l >= 0 yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Key = "" } else { x.Key = string(r.DecodeString()) } yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Operator = "" } else { x.Operator = TolerationOperator(r.DecodeString()) } yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Effect = "" } else { x.Effect = TaintEffect(r.DecodeString()) } for { yyj2067++ if yyhl2067 { yyb2067 = yyj2067 > l } else { yyb2067 = r.CheckBreak() } if yyb2067 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2067-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2072 := z.EncBinary() _ = yym2072 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2073 := z.DecBinary() _ = yym2073 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 { yym2074 := z.EncBinary() _ = yym2074 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2075 := !z.EncBinary() yy2arr2075 := z.EncBasicHandle().StructToArray var yyq2075 [13]bool _, _, _ = yysep2075, yyq2075, yy2arr2075 const yyr2075 bool = false yyq2075[2] = x.RestartPolicy != "" yyq2075[3] = x.TerminationGracePeriodSeconds != nil yyq2075[4] = x.ActiveDeadlineSeconds != nil yyq2075[5] = x.DNSPolicy != "" yyq2075[6] = len(x.NodeSelector) != 0 yyq2075[8] = x.NodeName != "" yyq2075[9] = x.SecurityContext != nil yyq2075[10] = len(x.ImagePullSecrets) != 0 yyq2075[11] = x.Hostname != "" yyq2075[12] = x.Subdomain != "" var yynn2075 int if yyr2075 || yy2arr2075 { r.EncodeArrayStart(13) } else { yynn2075 = 3 for _, b := range yyq2075 { if b { yynn2075++ } } r.EncodeMapStart(yynn2075) yynn2075 = 0 } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Volumes == nil { r.EncodeNil() } else { yym2077 := z.EncBinary() _ = yym2077 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 { yym2078 := z.EncBinary() _ = yym2078 if false { } else { h.encSliceVolume(([]Volume)(x.Volumes), e) } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Containers == nil { r.EncodeNil() } else { yym2080 := z.EncBinary() _ = yym2080 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 { yym2081 := z.EncBinary() _ = yym2081 if false { } else { h.encSliceContainer(([]Container)(x.Containers), e) } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[2] { x.RestartPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2075[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("restartPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.RestartPolicy.CodecEncodeSelf(e) } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[3] { if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy2084 := *x.TerminationGracePeriodSeconds yym2085 := z.EncBinary() _ = yym2085 if false { } else { r.EncodeInt(int64(yy2084)) } } } else { r.EncodeNil() } } else { if yyq2075[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TerminationGracePeriodSeconds == nil { r.EncodeNil() } else { yy2086 := *x.TerminationGracePeriodSeconds yym2087 := z.EncBinary() _ = yym2087 if false { } else { r.EncodeInt(int64(yy2086)) } } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[4] { if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy2089 := *x.ActiveDeadlineSeconds yym2090 := z.EncBinary() _ = yym2090 if false { } else { r.EncodeInt(int64(yy2089)) } } } else { r.EncodeNil() } } else { if yyq2075[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ActiveDeadlineSeconds == nil { r.EncodeNil() } else { yy2091 := *x.ActiveDeadlineSeconds yym2092 := z.EncBinary() _ = yym2092 if false { } else { r.EncodeInt(int64(yy2091)) } } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[5] { x.DNSPolicy.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2075[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.DNSPolicy.CodecEncodeSelf(e) } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[6] { if x.NodeSelector == nil { r.EncodeNil() } else { yym2095 := z.EncBinary() _ = yym2095 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } else { r.EncodeNil() } } else { if yyq2075[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeSelector")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeSelector == nil { r.EncodeNil() } else { yym2096 := z.EncBinary() _ = yym2096 if false { } else { z.F.EncMapStringStringV(x.NodeSelector, false, e) } } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2098 := z.EncBinary() _ = yym2098 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) yym2099 := z.EncBinary() _ = yym2099 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName)) } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[8] { yym2101 := z.EncBinary() _ = yym2101 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2075[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2102 := z.EncBinary() _ = yym2102 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.NodeName)) } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[9] { if x.SecurityContext == nil { r.EncodeNil() } else { x.SecurityContext.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2075[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 yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[10] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2105 := z.EncBinary() _ = yym2105 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2075[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2106 := z.EncBinary() _ = yym2106 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[11] { yym2108 := z.EncBinary() _ = yym2108 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2075[11] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2109 := z.EncBinary() _ = yym2109 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2075 || yy2arr2075 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2075[12] { yym2111 := z.EncBinary() _ = yym2111 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2075[12] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("subdomain")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2112 := z.EncBinary() _ = yym2112 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain)) } } } if yyr2075 || yy2arr2075 { 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 yym2113 := z.DecBinary() _ = yym2113 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2114 := r.ContainerType() if yyct2114 == codecSelferValueTypeMap1234 { yyl2114 := r.ReadMapStart() if yyl2114 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2114, d) } } else if yyct2114 == codecSelferValueTypeArray1234 { yyl2114 := r.ReadArrayStart() if yyl2114 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2114, 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 yys2115Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2115Slc var yyhl2115 bool = l >= 0 for yyj2115 := 0; ; yyj2115++ { if yyhl2115 { if yyj2115 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2115Slc = r.DecodeBytes(yys2115Slc, true, true) yys2115 := string(yys2115Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2115 { case "volumes": if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv2116 := &x.Volumes yym2117 := z.DecBinary() _ = yym2117 if false { } else { h.decSliceVolume((*[]Volume)(yyv2116), d) } } case "containers": if r.TryDecodeAsNil() { x.Containers = nil } else { yyv2118 := &x.Containers yym2119 := z.DecBinary() _ = yym2119 if false { } else { h.decSliceContainer((*[]Container)(yyv2118), 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) } yym2122 := z.DecBinary() _ = yym2122 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) } yym2124 := z.DecBinary() _ = yym2124 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 { yyv2126 := &x.NodeSelector yym2127 := z.DecBinary() _ = yym2127 if false { } else { z.F.DecMapStringStringX(yyv2126, 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 { yyv2131 := &x.ImagePullSecrets yym2132 := z.DecBinary() _ = yym2132 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2131), d) } } case "hostname": if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } case "subdomain": if r.TryDecodeAsNil() { x.Subdomain = "" } else { x.Subdomain = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2115) } // end switch yys2115 } // end for yyj2115 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 yyj2135 int var yyb2135 bool var yyhl2135 bool = l >= 0 yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Volumes = nil } else { yyv2136 := &x.Volumes yym2137 := z.DecBinary() _ = yym2137 if false { } else { h.decSliceVolume((*[]Volume)(yyv2136), d) } } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Containers = nil } else { yyv2138 := &x.Containers yym2139 := z.DecBinary() _ = yym2139 if false { } else { h.decSliceContainer((*[]Container)(yyv2138), d) } } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.RestartPolicy = "" } else { x.RestartPolicy = RestartPolicy(r.DecodeString()) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.TerminationGracePeriodSeconds != nil { x.TerminationGracePeriodSeconds = nil } } else { if x.TerminationGracePeriodSeconds == nil { x.TerminationGracePeriodSeconds = new(int64) } yym2142 := z.DecBinary() _ = yym2142 if false { } else { *((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { 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) } yym2144 := z.DecBinary() _ = yym2144 if false { } else { *((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64)) } } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DNSPolicy = "" } else { x.DNSPolicy = DNSPolicy(r.DecodeString()) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeSelector = nil } else { yyv2146 := &x.NodeSelector yym2147 := z.DecBinary() _ = yym2147 if false { } else { z.F.DecMapStringStringX(yyv2146, false, d) } } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ServiceAccountName = "" } else { x.ServiceAccountName = string(r.DecodeString()) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeName = "" } else { x.NodeName = string(r.DecodeString()) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.SecurityContext != nil { x.SecurityContext = nil } } else { if x.SecurityContext == nil { x.SecurityContext = new(PodSecurityContext) } x.SecurityContext.CodecDecodeSelf(d) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2151 := &x.ImagePullSecrets yym2152 := z.DecBinary() _ = yym2152 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2151), d) } } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subdomain = "" } else { x.Subdomain = string(r.DecodeString()) } for { yyj2135++ if yyhl2135 { yyb2135 = yyj2135 > l } else { yyb2135 = r.CheckBreak() } if yyb2135 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2135-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Sysctl) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2155 := z.EncBinary() _ = yym2155 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2156 := !z.EncBinary() yy2arr2156 := z.EncBasicHandle().StructToArray var yyq2156 [2]bool _, _, _ = yysep2156, yyq2156, yy2arr2156 const yyr2156 bool = false var yynn2156 int if yyr2156 || yy2arr2156 { r.EncodeArrayStart(2) } else { yynn2156 = 2 for _, b := range yyq2156 { if b { yynn2156++ } } r.EncodeMapStart(yynn2156) yynn2156 = 0 } if yyr2156 || yy2arr2156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2158 := z.EncBinary() _ = yym2158 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) yym2159 := z.EncBinary() _ = yym2159 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2156 || yy2arr2156 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2161 := z.EncBinary() _ = yym2161 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("value")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2162 := z.EncBinary() _ = yym2162 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Value)) } } if yyr2156 || yy2arr2156 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Sysctl) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym2163 := z.DecBinary() _ = yym2163 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2164 := r.ContainerType() if yyct2164 == codecSelferValueTypeMap1234 { yyl2164 := r.ReadMapStart() if yyl2164 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2164, d) } } else if yyct2164 == codecSelferValueTypeArray1234 { yyl2164 := r.ReadArrayStart() if yyl2164 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2164, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Sysctl) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2165Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2165Slc var yyhl2165 bool = l >= 0 for yyj2165 := 0; ; yyj2165++ { if yyhl2165 { if yyj2165 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2165Slc = r.DecodeBytes(yys2165Slc, true, true) yys2165 := string(yys2165Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2165 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "value": if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2165) } // end switch yys2165 } // end for yyj2165 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Sysctl) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj2168 int var yyb2168 bool var yyhl2168 bool = l >= 0 yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Value = "" } else { x.Value = string(r.DecodeString()) } for { yyj2168++ if yyhl2168 { yyb2168 = yyj2168 > l } else { yyb2168 = r.CheckBreak() } if yyb2168 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2168-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2171 := z.EncBinary() _ = yym2171 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2172 := !z.EncBinary() yy2arr2172 := z.EncBasicHandle().StructToArray var yyq2172 [8]bool _, _, _ = yysep2172, yyq2172, yy2arr2172 const yyr2172 bool = false yyq2172[0] = x.HostNetwork != false yyq2172[1] = x.HostPID != false yyq2172[2] = x.HostIPC != false yyq2172[3] = x.SELinuxOptions != nil yyq2172[4] = x.RunAsUser != nil yyq2172[5] = x.RunAsNonRoot != nil yyq2172[6] = len(x.SupplementalGroups) != 0 yyq2172[7] = x.FSGroup != nil var yynn2172 int if yyr2172 || yy2arr2172 { r.EncodeArrayStart(8) } else { yynn2172 = 0 for _, b := range yyq2172 { if b { yynn2172++ } } r.EncodeMapStart(yynn2172) yynn2172 = 0 } if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[0] { yym2174 := z.EncBinary() _ = yym2174 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } else { r.EncodeBool(false) } } else { if yyq2172[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostNetwork")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2175 := z.EncBinary() _ = yym2175 if false { } else { r.EncodeBool(bool(x.HostNetwork)) } } } if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[1] { yym2177 := z.EncBinary() _ = yym2177 if false { } else { r.EncodeBool(bool(x.HostPID)) } } else { r.EncodeBool(false) } } else { if yyq2172[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostPID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2178 := z.EncBinary() _ = yym2178 if false { } else { r.EncodeBool(bool(x.HostPID)) } } } if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[2] { yym2180 := z.EncBinary() _ = yym2180 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } else { r.EncodeBool(false) } } else { if yyq2172[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIPC")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2181 := z.EncBinary() _ = yym2181 if false { } else { r.EncodeBool(bool(x.HostIPC)) } } } if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[3] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2172[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 yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[4] { if x.RunAsUser == nil { r.EncodeNil() } else { yy2184 := *x.RunAsUser yym2185 := z.EncBinary() _ = yym2185 if false { } else { r.EncodeInt(int64(yy2184)) } } } else { r.EncodeNil() } } else { if yyq2172[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy2186 := *x.RunAsUser yym2187 := z.EncBinary() _ = yym2187 if false { } else { r.EncodeInt(int64(yy2186)) } } } } if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[5] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy2189 := *x.RunAsNonRoot yym2190 := z.EncBinary() _ = yym2190 if false { } else { r.EncodeBool(bool(yy2189)) } } } else { r.EncodeNil() } } else { if yyq2172[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy2191 := *x.RunAsNonRoot yym2192 := z.EncBinary() _ = yym2192 if false { } else { r.EncodeBool(bool(yy2191)) } } } } if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[6] { if x.SupplementalGroups == nil { r.EncodeNil() } else { yym2194 := z.EncBinary() _ = yym2194 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } else { r.EncodeNil() } } else { if yyq2172[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SupplementalGroups == nil { r.EncodeNil() } else { yym2195 := z.EncBinary() _ = yym2195 if false { } else { z.F.EncSliceInt64V(x.SupplementalGroups, false, e) } } } } if yyr2172 || yy2arr2172 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2172[7] { if x.FSGroup == nil { r.EncodeNil() } else { yy2197 := *x.FSGroup yym2198 := z.EncBinary() _ = yym2198 if false { } else { r.EncodeInt(int64(yy2197)) } } } else { r.EncodeNil() } } else { if yyq2172[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fsGroup")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.FSGroup == nil { r.EncodeNil() } else { yy2199 := *x.FSGroup yym2200 := z.EncBinary() _ = yym2200 if false { } else { r.EncodeInt(int64(yy2199)) } } } } if yyr2172 || yy2arr2172 { 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 yym2201 := z.DecBinary() _ = yym2201 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2202 := r.ContainerType() if yyct2202 == codecSelferValueTypeMap1234 { yyl2202 := r.ReadMapStart() if yyl2202 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2202, d) } } else if yyct2202 == codecSelferValueTypeArray1234 { yyl2202 := r.ReadArrayStart() if yyl2202 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2202, 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 yys2203Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2203Slc var yyhl2203 bool = l >= 0 for yyj2203 := 0; ; yyj2203++ { if yyhl2203 { if yyj2203 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2203Slc = r.DecodeBytes(yys2203Slc, true, true) yys2203 := string(yys2203Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2203 { 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) } yym2209 := z.DecBinary() _ = yym2209 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) } yym2211 := z.DecBinary() _ = yym2211 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "supplementalGroups": if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv2212 := &x.SupplementalGroups yym2213 := z.DecBinary() _ = yym2213 if false { } else { z.F.DecSliceInt64X(yyv2212, false, d) } } case "fsGroup": if r.TryDecodeAsNil() { if x.FSGroup != nil { x.FSGroup = nil } } else { if x.FSGroup == nil { x.FSGroup = new(int64) } yym2215 := z.DecBinary() _ = yym2215 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys2203) } // end switch yys2203 } // end for yyj2203 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 yyj2216 int var yyb2216 bool var yyhl2216 bool = l >= 0 yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostNetwork = false } else { x.HostNetwork = bool(r.DecodeBool()) } yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostPID = false } else { x.HostPID = bool(r.DecodeBool()) } yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIPC = false } else { x.HostIPC = bool(r.DecodeBool()) } yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { 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) } yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { 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) } yym2222 := z.DecBinary() _ = yym2222 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { 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) } yym2224 := z.DecBinary() _ = yym2224 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SupplementalGroups = nil } else { yyv2225 := &x.SupplementalGroups yym2226 := z.DecBinary() _ = yym2226 if false { } else { z.F.DecSliceInt64X(yyv2225, false, d) } } yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { 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) } yym2228 := z.DecBinary() _ = yym2228 if false { } else { *((*int64)(x.FSGroup)) = int64(r.DecodeInt(64)) } } for { yyj2216++ if yyhl2216 { yyb2216 = yyj2216 > l } else { yyb2216 = r.CheckBreak() } if yyb2216 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2216-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 { yym2229 := z.EncBinary() _ = yym2229 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2230 := !z.EncBinary() yy2arr2230 := z.EncBasicHandle().StructToArray var yyq2230 [8]bool _, _, _ = yysep2230, yyq2230, yy2arr2230 const yyr2230 bool = false yyq2230[0] = x.Phase != "" yyq2230[1] = len(x.Conditions) != 0 yyq2230[2] = x.Message != "" yyq2230[3] = x.Reason != "" yyq2230[4] = x.HostIP != "" yyq2230[5] = x.PodIP != "" yyq2230[6] = x.StartTime != nil yyq2230[7] = len(x.ContainerStatuses) != 0 var yynn2230 int if yyr2230 || yy2arr2230 { r.EncodeArrayStart(8) } else { yynn2230 = 0 for _, b := range yyq2230 { if b { yynn2230++ } } r.EncodeMapStart(yynn2230) yynn2230 = 0 } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2230[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[1] { if x.Conditions == nil { r.EncodeNil() } else { yym2233 := z.EncBinary() _ = yym2233 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq2230[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym2234 := z.EncBinary() _ = yym2234 if false { } else { h.encSlicePodCondition(([]PodCondition)(x.Conditions), e) } } } } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[2] { yym2236 := z.EncBinary() _ = yym2236 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2230[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2237 := z.EncBinary() _ = yym2237 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[3] { yym2239 := z.EncBinary() _ = yym2239 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2230[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2240 := z.EncBinary() _ = yym2240 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[4] { yym2242 := z.EncBinary() _ = yym2242 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2230[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2243 := z.EncBinary() _ = yym2243 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.HostIP)) } } } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[5] { yym2245 := z.EncBinary() _ = yym2245 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2230[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2246 := z.EncBinary() _ = yym2246 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodIP)) } } } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[6] { if x.StartTime == nil { r.EncodeNil() } else { yym2248 := z.EncBinary() _ = yym2248 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym2248 { z.EncBinaryMarshal(x.StartTime) } else if !yym2248 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } else { r.EncodeNil() } } else { if yyq2230[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("startTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.StartTime == nil { r.EncodeNil() } else { yym2249 := z.EncBinary() _ = yym2249 if false { } else if z.HasExtensions() && z.EncExt(x.StartTime) { } else if yym2249 { z.EncBinaryMarshal(x.StartTime) } else if !yym2249 && z.IsJSONHandle() { z.EncJSONMarshal(x.StartTime) } else { z.EncFallback(x.StartTime) } } } } if yyr2230 || yy2arr2230 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2230[7] { if x.ContainerStatuses == nil { r.EncodeNil() } else { yym2251 := z.EncBinary() _ = yym2251 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } else { r.EncodeNil() } } else { if yyq2230[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("containerStatuses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ContainerStatuses == nil { r.EncodeNil() } else { yym2252 := z.EncBinary() _ = yym2252 if false { } else { h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e) } } } } if yyr2230 || yy2arr2230 { 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 yym2253 := z.DecBinary() _ = yym2253 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2254 := r.ContainerType() if yyct2254 == codecSelferValueTypeMap1234 { yyl2254 := r.ReadMapStart() if yyl2254 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2254, d) } } else if yyct2254 == codecSelferValueTypeArray1234 { yyl2254 := r.ReadArrayStart() if yyl2254 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2254, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2255Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2255Slc var yyhl2255 bool = l >= 0 for yyj2255 := 0; ; yyj2255++ { if yyhl2255 { if yyj2255 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2255Slc = r.DecodeBytes(yys2255Slc, true, true) yys2255 := string(yys2255Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2255 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2257 := &x.Conditions yym2258 := z.DecBinary() _ = yym2258 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv2257), 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) } yym2264 := z.DecBinary() _ = yym2264 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym2264 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym2264 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } case "containerStatuses": if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv2265 := &x.ContainerStatuses yym2266 := z.DecBinary() _ = yym2266 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv2265), d) } } default: z.DecStructFieldNotFound(-1, yys2255) } // end switch yys2255 } // end for yyj2255 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 yyj2267 int var yyb2267 bool var yyhl2267 bool = l >= 0 yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = PodPhase(r.DecodeString()) } yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv2269 := &x.Conditions yym2270 := z.DecBinary() _ = yym2270 if false { } else { h.decSlicePodCondition((*[]PodCondition)(yyv2269), d) } } yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.HostIP = "" } else { x.HostIP = string(r.DecodeString()) } yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodIP = "" } else { x.PodIP = string(r.DecodeString()) } yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { 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) } yym2276 := z.DecBinary() _ = yym2276 if false { } else if z.HasExtensions() && z.DecExt(x.StartTime) { } else if yym2276 { z.DecBinaryUnmarshal(x.StartTime) } else if !yym2276 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.StartTime) } else { z.DecFallback(x.StartTime, false) } } yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerStatuses = nil } else { yyv2277 := &x.ContainerStatuses yym2278 := z.DecBinary() _ = yym2278 if false { } else { h.decSliceContainerStatus((*[]ContainerStatus)(yyv2277), d) } } for { yyj2267++ if yyhl2267 { yyb2267 = yyj2267 > l } else { yyb2267 = r.CheckBreak() } if yyb2267 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2267-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 { yym2279 := z.EncBinary() _ = yym2279 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2280 := !z.EncBinary() yy2arr2280 := z.EncBasicHandle().StructToArray var yyq2280 [4]bool _, _, _ = yysep2280, yyq2280, yy2arr2280 const yyr2280 bool = false yyq2280[0] = x.Kind != "" yyq2280[1] = x.APIVersion != "" yyq2280[2] = true yyq2280[3] = true var yynn2280 int if yyr2280 || yy2arr2280 { r.EncodeArrayStart(4) } else { yynn2280 = 0 for _, b := range yyq2280 { if b { yynn2280++ } } r.EncodeMapStart(yynn2280) yynn2280 = 0 } if yyr2280 || yy2arr2280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2280[0] { yym2282 := z.EncBinary() _ = yym2282 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2280[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2283 := z.EncBinary() _ = yym2283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2280 || yy2arr2280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2280[1] { yym2285 := z.EncBinary() _ = yym2285 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2280[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2286 := z.EncBinary() _ = yym2286 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2280 || yy2arr2280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2280[2] { yy2288 := &x.ObjectMeta yy2288.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2280[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2289 := &x.ObjectMeta yy2289.CodecEncodeSelf(e) } } if yyr2280 || yy2arr2280 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2280[3] { yy2291 := &x.Status yy2291.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2280[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2292 := &x.Status yy2292.CodecEncodeSelf(e) } } if yyr2280 || yy2arr2280 { 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 yym2293 := z.DecBinary() _ = yym2293 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2294 := r.ContainerType() if yyct2294 == codecSelferValueTypeMap1234 { yyl2294 := r.ReadMapStart() if yyl2294 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2294, d) } } else if yyct2294 == codecSelferValueTypeArray1234 { yyl2294 := r.ReadArrayStart() if yyl2294 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2294, 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 yys2295Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2295Slc var yyhl2295 bool = l >= 0 for yyj2295 := 0; ; yyj2295++ { if yyhl2295 { if yyj2295 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2295Slc = r.DecodeBytes(yys2295Slc, true, true) yys2295 := string(yys2295Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2295 { 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 { yyv2298 := &x.ObjectMeta yyv2298.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2299 := &x.Status yyv2299.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2295) } // end switch yys2295 } // end for yyj2295 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 yyj2300 int var yyb2300 bool var yyhl2300 bool = l >= 0 yyj2300++ if yyhl2300 { yyb2300 = yyj2300 > l } else { yyb2300 = r.CheckBreak() } if yyb2300 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2300++ if yyhl2300 { yyb2300 = yyj2300 > l } else { yyb2300 = r.CheckBreak() } if yyb2300 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2300++ if yyhl2300 { yyb2300 = yyj2300 > l } else { yyb2300 = r.CheckBreak() } if yyb2300 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2303 := &x.ObjectMeta yyv2303.CodecDecodeSelf(d) } yyj2300++ if yyhl2300 { yyb2300 = yyj2300 > l } else { yyb2300 = r.CheckBreak() } if yyb2300 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2304 := &x.Status yyv2304.CodecDecodeSelf(d) } for { yyj2300++ if yyhl2300 { yyb2300 = yyj2300 > l } else { yyb2300 = r.CheckBreak() } if yyb2300 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2300-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 { yym2305 := z.EncBinary() _ = yym2305 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2306 := !z.EncBinary() yy2arr2306 := z.EncBasicHandle().StructToArray var yyq2306 [5]bool _, _, _ = yysep2306, yyq2306, yy2arr2306 const yyr2306 bool = false yyq2306[0] = x.Kind != "" yyq2306[1] = x.APIVersion != "" yyq2306[2] = true yyq2306[3] = true yyq2306[4] = true var yynn2306 int if yyr2306 || yy2arr2306 { r.EncodeArrayStart(5) } else { yynn2306 = 0 for _, b := range yyq2306 { if b { yynn2306++ } } r.EncodeMapStart(yynn2306) yynn2306 = 0 } if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2306[0] { yym2308 := z.EncBinary() _ = yym2308 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2306[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2309 := z.EncBinary() _ = yym2309 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2306[1] { yym2311 := z.EncBinary() _ = yym2311 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2306[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2312 := z.EncBinary() _ = yym2312 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2306[2] { yy2314 := &x.ObjectMeta yy2314.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2306[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2315 := &x.ObjectMeta yy2315.CodecEncodeSelf(e) } } if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2306[3] { yy2317 := &x.Spec yy2317.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2306[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2318 := &x.Spec yy2318.CodecEncodeSelf(e) } } if yyr2306 || yy2arr2306 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2306[4] { yy2320 := &x.Status yy2320.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2306[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2321 := &x.Status yy2321.CodecEncodeSelf(e) } } if yyr2306 || yy2arr2306 { 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 yym2322 := z.DecBinary() _ = yym2322 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2323 := r.ContainerType() if yyct2323 == codecSelferValueTypeMap1234 { yyl2323 := r.ReadMapStart() if yyl2323 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2323, d) } } else if yyct2323 == codecSelferValueTypeArray1234 { yyl2323 := r.ReadArrayStart() if yyl2323 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2323, 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 yys2324Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2324Slc var yyhl2324 bool = l >= 0 for yyj2324 := 0; ; yyj2324++ { if yyhl2324 { if yyj2324 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2324Slc = r.DecodeBytes(yys2324Slc, true, true) yys2324 := string(yys2324Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2324 { 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 { yyv2327 := &x.ObjectMeta yyv2327.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2328 := &x.Spec yyv2328.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2329 := &x.Status yyv2329.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2324) } // end switch yys2324 } // end for yyj2324 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 yyj2330 int var yyb2330 bool var yyhl2330 bool = l >= 0 yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2333 := &x.ObjectMeta yyv2333.CodecDecodeSelf(d) } yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2334 := &x.Spec yyv2334.CodecDecodeSelf(d) } yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = PodStatus{} } else { yyv2335 := &x.Status yyv2335.CodecDecodeSelf(d) } for { yyj2330++ if yyhl2330 { yyb2330 = yyj2330 > l } else { yyb2330 = r.CheckBreak() } if yyb2330 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2330-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2336 := z.EncBinary() _ = yym2336 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2337 := !z.EncBinary() yy2arr2337 := z.EncBasicHandle().StructToArray var yyq2337 [2]bool _, _, _ = yysep2337, yyq2337, yy2arr2337 const yyr2337 bool = false yyq2337[0] = true yyq2337[1] = true var yynn2337 int if yyr2337 || yy2arr2337 { r.EncodeArrayStart(2) } else { yynn2337 = 0 for _, b := range yyq2337 { if b { yynn2337++ } } r.EncodeMapStart(yynn2337) yynn2337 = 0 } if yyr2337 || yy2arr2337 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2337[0] { yy2339 := &x.ObjectMeta yy2339.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2337[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2340 := &x.ObjectMeta yy2340.CodecEncodeSelf(e) } } if yyr2337 || yy2arr2337 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2337[1] { yy2342 := &x.Spec yy2342.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2337[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2343 := &x.Spec yy2343.CodecEncodeSelf(e) } } if yyr2337 || yy2arr2337 { 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 yym2344 := z.DecBinary() _ = yym2344 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2345 := r.ContainerType() if yyct2345 == codecSelferValueTypeMap1234 { yyl2345 := r.ReadMapStart() if yyl2345 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2345, d) } } else if yyct2345 == codecSelferValueTypeArray1234 { yyl2345 := r.ReadArrayStart() if yyl2345 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2345, 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 yys2346Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2346Slc var yyhl2346 bool = l >= 0 for yyj2346 := 0; ; yyj2346++ { if yyhl2346 { if yyj2346 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2346Slc = r.DecodeBytes(yys2346Slc, true, true) yys2346 := string(yys2346Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2346 { case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2347 := &x.ObjectMeta yyv2347.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2348 := &x.Spec yyv2348.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2346) } // end switch yys2346 } // end for yyj2346 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 yyj2349 int var yyb2349 bool var yyhl2349 bool = l >= 0 yyj2349++ if yyhl2349 { yyb2349 = yyj2349 > l } else { yyb2349 = r.CheckBreak() } if yyb2349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2350 := &x.ObjectMeta yyv2350.CodecDecodeSelf(d) } yyj2349++ if yyhl2349 { yyb2349 = yyj2349 > l } else { yyb2349 = r.CheckBreak() } if yyb2349 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = PodSpec{} } else { yyv2351 := &x.Spec yyv2351.CodecDecodeSelf(d) } for { yyj2349++ if yyhl2349 { yyb2349 = yyj2349 > l } else { yyb2349 = r.CheckBreak() } if yyb2349 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2349-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 { yym2352 := z.EncBinary() _ = yym2352 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2353 := !z.EncBinary() yy2arr2353 := z.EncBasicHandle().StructToArray var yyq2353 [4]bool _, _, _ = yysep2353, yyq2353, yy2arr2353 const yyr2353 bool = false yyq2353[0] = x.Kind != "" yyq2353[1] = x.APIVersion != "" yyq2353[2] = true yyq2353[3] = true var yynn2353 int if yyr2353 || yy2arr2353 { r.EncodeArrayStart(4) } else { yynn2353 = 0 for _, b := range yyq2353 { if b { yynn2353++ } } r.EncodeMapStart(yynn2353) yynn2353 = 0 } if yyr2353 || yy2arr2353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2353[0] { yym2355 := z.EncBinary() _ = yym2355 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2353[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2356 := z.EncBinary() _ = yym2356 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2353 || yy2arr2353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2353[1] { yym2358 := z.EncBinary() _ = yym2358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2353[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2359 := z.EncBinary() _ = yym2359 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2353 || yy2arr2353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2353[2] { yy2361 := &x.ObjectMeta yy2361.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2353[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2362 := &x.ObjectMeta yy2362.CodecEncodeSelf(e) } } if yyr2353 || yy2arr2353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2353[3] { yy2364 := &x.Template yy2364.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2353[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("template")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2365 := &x.Template yy2365.CodecEncodeSelf(e) } } if yyr2353 || yy2arr2353 { 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 yym2366 := z.DecBinary() _ = yym2366 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2367 := r.ContainerType() if yyct2367 == codecSelferValueTypeMap1234 { yyl2367 := r.ReadMapStart() if yyl2367 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2367, d) } } else if yyct2367 == codecSelferValueTypeArray1234 { yyl2367 := r.ReadArrayStart() if yyl2367 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2367, 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 yys2368Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2368Slc var yyhl2368 bool = l >= 0 for yyj2368 := 0; ; yyj2368++ { if yyhl2368 { if yyj2368 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2368Slc = r.DecodeBytes(yys2368Slc, true, true) yys2368 := string(yys2368Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2368 { 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 { yyv2371 := &x.ObjectMeta yyv2371.CodecDecodeSelf(d) } case "template": if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv2372 := &x.Template yyv2372.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2368) } // end switch yys2368 } // end for yyj2368 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 yyj2373 int var yyb2373 bool var yyhl2373 bool = l >= 0 yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2376 := &x.ObjectMeta yyv2376.CodecDecodeSelf(d) } yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Template = PodTemplateSpec{} } else { yyv2377 := &x.Template yyv2377.CodecDecodeSelf(d) } for { yyj2373++ if yyhl2373 { yyb2373 = yyj2373 > l } else { yyb2373 = r.CheckBreak() } if yyb2373 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2373-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 { yym2378 := z.EncBinary() _ = yym2378 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2379 := !z.EncBinary() yy2arr2379 := z.EncBasicHandle().StructToArray var yyq2379 [4]bool _, _, _ = yysep2379, yyq2379, yy2arr2379 const yyr2379 bool = false yyq2379[0] = x.Kind != "" yyq2379[1] = x.APIVersion != "" yyq2379[2] = true var yynn2379 int if yyr2379 || yy2arr2379 { r.EncodeArrayStart(4) } else { yynn2379 = 1 for _, b := range yyq2379 { if b { yynn2379++ } } r.EncodeMapStart(yynn2379) yynn2379 = 0 } if yyr2379 || yy2arr2379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2379[0] { yym2381 := z.EncBinary() _ = yym2381 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2379[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2382 := z.EncBinary() _ = yym2382 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2379 || yy2arr2379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2379[1] { yym2384 := z.EncBinary() _ = yym2384 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2379[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2385 := z.EncBinary() _ = yym2385 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2379 || yy2arr2379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2379[2] { yy2387 := &x.ListMeta yym2388 := z.EncBinary() _ = yym2388 if false { } else if z.HasExtensions() && z.EncExt(yy2387) { } else { z.EncFallback(yy2387) } } else { r.EncodeNil() } } else { if yyq2379[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2389 := &x.ListMeta yym2390 := z.EncBinary() _ = yym2390 if false { } else if z.HasExtensions() && z.EncExt(yy2389) { } else { z.EncFallback(yy2389) } } } if yyr2379 || yy2arr2379 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2392 := z.EncBinary() _ = yym2392 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 { yym2393 := z.EncBinary() _ = yym2393 if false { } else { h.encSlicePodTemplate(([]PodTemplate)(x.Items), e) } } } if yyr2379 || yy2arr2379 { 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 yym2394 := z.DecBinary() _ = yym2394 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2395 := r.ContainerType() if yyct2395 == codecSelferValueTypeMap1234 { yyl2395 := r.ReadMapStart() if yyl2395 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2395, d) } } else if yyct2395 == codecSelferValueTypeArray1234 { yyl2395 := r.ReadArrayStart() if yyl2395 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2395, 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 yys2396Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2396Slc var yyhl2396 bool = l >= 0 for yyj2396 := 0; ; yyj2396++ { if yyhl2396 { if yyj2396 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2396Slc = r.DecodeBytes(yys2396Slc, true, true) yys2396 := string(yys2396Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2396 { 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 { yyv2399 := &x.ListMeta yym2400 := z.DecBinary() _ = yym2400 if false { } else if z.HasExtensions() && z.DecExt(yyv2399) { } else { z.DecFallback(yyv2399, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2401 := &x.Items yym2402 := z.DecBinary() _ = yym2402 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv2401), d) } } default: z.DecStructFieldNotFound(-1, yys2396) } // end switch yys2396 } // end for yyj2396 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 yyj2403 int var yyb2403 bool var yyhl2403 bool = l >= 0 yyj2403++ if yyhl2403 { yyb2403 = yyj2403 > l } else { yyb2403 = r.CheckBreak() } if yyb2403 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2403++ if yyhl2403 { yyb2403 = yyj2403 > l } else { yyb2403 = r.CheckBreak() } if yyb2403 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2403++ if yyhl2403 { yyb2403 = yyj2403 > l } else { yyb2403 = r.CheckBreak() } if yyb2403 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2406 := &x.ListMeta yym2407 := z.DecBinary() _ = yym2407 if false { } else if z.HasExtensions() && z.DecExt(yyv2406) { } else { z.DecFallback(yyv2406, false) } } yyj2403++ if yyhl2403 { yyb2403 = yyj2403 > l } else { yyb2403 = r.CheckBreak() } if yyb2403 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2408 := &x.Items yym2409 := z.DecBinary() _ = yym2409 if false { } else { h.decSlicePodTemplate((*[]PodTemplate)(yyv2408), d) } } for { yyj2403++ if yyhl2403 { yyb2403 = yyj2403 > l } else { yyb2403 = r.CheckBreak() } if yyb2403 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2403-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 { yym2410 := z.EncBinary() _ = yym2410 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2411 := !z.EncBinary() yy2arr2411 := z.EncBasicHandle().StructToArray var yyq2411 [4]bool _, _, _ = yysep2411, yyq2411, yy2arr2411 const yyr2411 bool = false yyq2411[1] = x.MinReadySeconds != 0 yyq2411[3] = x.Template != nil var yynn2411 int if yyr2411 || yy2arr2411 { r.EncodeArrayStart(4) } else { yynn2411 = 2 for _, b := range yyq2411 { if b { yynn2411++ } } r.EncodeMapStart(yynn2411) yynn2411 = 0 } if yyr2411 || yy2arr2411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2413 := z.EncBinary() _ = yym2413 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2414 := z.EncBinary() _ = yym2414 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr2411 || yy2arr2411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2411[1] { yym2416 := z.EncBinary() _ = yym2416 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) } } else { r.EncodeInt(0) } } else { if yyq2411[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("minReadySeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2417 := z.EncBinary() _ = yym2417 if false { } else { r.EncodeInt(int64(x.MinReadySeconds)) } } } if yyr2411 || yy2arr2411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2419 := z.EncBinary() _ = yym2419 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 { yym2420 := z.EncBinary() _ = yym2420 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2411 || yy2arr2411 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2411[3] { if x.Template == nil { r.EncodeNil() } else { x.Template.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq2411[3] { 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 yyr2411 || yy2arr2411 { 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 yym2422 := z.DecBinary() _ = yym2422 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2423 := r.ContainerType() if yyct2423 == codecSelferValueTypeMap1234 { yyl2423 := r.ReadMapStart() if yyl2423 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2423, d) } } else if yyct2423 == codecSelferValueTypeArray1234 { yyl2423 := r.ReadArrayStart() if yyl2423 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2423, 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 yys2424Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2424Slc var yyhl2424 bool = l >= 0 for yyj2424 := 0; ; yyj2424++ { if yyhl2424 { if yyj2424 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2424Slc = r.DecodeBytes(yys2424Slc, true, true) yys2424 := string(yys2424Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2424 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } case "minReadySeconds": if r.TryDecodeAsNil() { x.MinReadySeconds = 0 } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2427 := &x.Selector yym2428 := z.DecBinary() _ = yym2428 if false { } else { z.F.DecMapStringStringX(yyv2427, 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, yys2424) } // end switch yys2424 } // end for yyj2424 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 yyj2430 int var yyb2430 bool var yyhl2430 bool = l >= 0 yyj2430++ if yyhl2430 { yyb2430 = yyj2430 > l } else { yyb2430 = r.CheckBreak() } if yyb2430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } yyj2430++ if yyhl2430 { yyb2430 = yyj2430 > l } else { yyb2430 = r.CheckBreak() } if yyb2430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MinReadySeconds = 0 } else { x.MinReadySeconds = int32(r.DecodeInt(32)) } yyj2430++ if yyhl2430 { yyb2430 = yyj2430 > l } else { yyb2430 = r.CheckBreak() } if yyb2430 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2433 := &x.Selector yym2434 := z.DecBinary() _ = yym2434 if false { } else { z.F.DecMapStringStringX(yyv2433, false, d) } } yyj2430++ if yyhl2430 { yyb2430 = yyj2430 > l } else { yyb2430 = r.CheckBreak() } if yyb2430 { 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 { yyj2430++ if yyhl2430 { yyb2430 = yyj2430 > l } else { yyb2430 = r.CheckBreak() } if yyb2430 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2430-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 { yym2436 := z.EncBinary() _ = yym2436 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2437 := !z.EncBinary() yy2arr2437 := z.EncBasicHandle().StructToArray var yyq2437 [5]bool _, _, _ = yysep2437, yyq2437, yy2arr2437 const yyr2437 bool = false yyq2437[1] = x.FullyLabeledReplicas != 0 yyq2437[2] = x.ReadyReplicas != 0 yyq2437[3] = x.AvailableReplicas != 0 yyq2437[4] = x.ObservedGeneration != 0 var yynn2437 int if yyr2437 || yy2arr2437 { r.EncodeArrayStart(5) } else { yynn2437 = 1 for _, b := range yyq2437 { if b { yynn2437++ } } r.EncodeMapStart(yynn2437) yynn2437 = 0 } if yyr2437 || yy2arr2437 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2439 := z.EncBinary() _ = yym2439 if false { } else { r.EncodeInt(int64(x.Replicas)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("replicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2440 := z.EncBinary() _ = yym2440 if false { } else { r.EncodeInt(int64(x.Replicas)) } } if yyr2437 || yy2arr2437 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2437[1] { yym2442 := z.EncBinary() _ = yym2442 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } else { r.EncodeInt(0) } } else { if yyq2437[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2443 := z.EncBinary() _ = yym2443 if false { } else { r.EncodeInt(int64(x.FullyLabeledReplicas)) } } } if yyr2437 || yy2arr2437 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2437[2] { yym2445 := z.EncBinary() _ = yym2445 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) } } else { r.EncodeInt(0) } } else { if yyq2437[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readyReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2446 := z.EncBinary() _ = yym2446 if false { } else { r.EncodeInt(int64(x.ReadyReplicas)) } } } if yyr2437 || yy2arr2437 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2437[3] { yym2448 := z.EncBinary() _ = yym2448 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) } } else { r.EncodeInt(0) } } else { if yyq2437[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("availableReplicas")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2449 := z.EncBinary() _ = yym2449 if false { } else { r.EncodeInt(int64(x.AvailableReplicas)) } } } if yyr2437 || yy2arr2437 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2437[4] { yym2451 := z.EncBinary() _ = yym2451 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } else { r.EncodeInt(0) } } else { if yyq2437[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("observedGeneration")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2452 := z.EncBinary() _ = yym2452 if false { } else { r.EncodeInt(int64(x.ObservedGeneration)) } } } if yyr2437 || yy2arr2437 { 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 yym2453 := z.DecBinary() _ = yym2453 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2454 := r.ContainerType() if yyct2454 == codecSelferValueTypeMap1234 { yyl2454 := r.ReadMapStart() if yyl2454 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2454, d) } } else if yyct2454 == codecSelferValueTypeArray1234 { yyl2454 := r.ReadArrayStart() if yyl2454 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2454, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2455Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2455Slc var yyhl2455 bool = l >= 0 for yyj2455 := 0; ; yyj2455++ { if yyhl2455 { if yyj2455 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2455Slc = r.DecodeBytes(yys2455Slc, true, true) yys2455 := string(yys2455Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2455 { case "replicas": if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } case "fullyLabeledReplicas": if r.TryDecodeAsNil() { x.FullyLabeledReplicas = 0 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } case "readyReplicas": if r.TryDecodeAsNil() { x.ReadyReplicas = 0 } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } case "availableReplicas": if r.TryDecodeAsNil() { x.AvailableReplicas = 0 } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } case "observedGeneration": if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys2455) } // end switch yys2455 } // end for yyj2455 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 yyj2461 int var yyb2461 bool var yyhl2461 bool = l >= 0 yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Replicas = 0 } else { x.Replicas = int32(r.DecodeInt(32)) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FullyLabeledReplicas = 0 } else { x.FullyLabeledReplicas = int32(r.DecodeInt(32)) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ReadyReplicas = 0 } else { x.ReadyReplicas = int32(r.DecodeInt(32)) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.AvailableReplicas = 0 } else { x.AvailableReplicas = int32(r.DecodeInt(32)) } yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObservedGeneration = 0 } else { x.ObservedGeneration = int64(r.DecodeInt(64)) } for { yyj2461++ if yyhl2461 { yyb2461 = yyj2461 > l } else { yyb2461 = r.CheckBreak() } if yyb2461 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2461-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 { yym2467 := z.EncBinary() _ = yym2467 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2468 := !z.EncBinary() yy2arr2468 := z.EncBasicHandle().StructToArray var yyq2468 [5]bool _, _, _ = yysep2468, yyq2468, yy2arr2468 const yyr2468 bool = false yyq2468[0] = x.Kind != "" yyq2468[1] = x.APIVersion != "" yyq2468[2] = true yyq2468[3] = true yyq2468[4] = true var yynn2468 int if yyr2468 || yy2arr2468 { r.EncodeArrayStart(5) } else { yynn2468 = 0 for _, b := range yyq2468 { if b { yynn2468++ } } r.EncodeMapStart(yynn2468) yynn2468 = 0 } if yyr2468 || yy2arr2468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2468[0] { yym2470 := z.EncBinary() _ = yym2470 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2468[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2471 := z.EncBinary() _ = yym2471 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2468 || yy2arr2468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2468[1] { yym2473 := z.EncBinary() _ = yym2473 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2468[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2474 := z.EncBinary() _ = yym2474 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2468 || yy2arr2468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2468[2] { yy2476 := &x.ObjectMeta yy2476.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2468[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2477 := &x.ObjectMeta yy2477.CodecEncodeSelf(e) } } if yyr2468 || yy2arr2468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2468[3] { yy2479 := &x.Spec yy2479.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2468[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2480 := &x.Spec yy2480.CodecEncodeSelf(e) } } if yyr2468 || yy2arr2468 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2468[4] { yy2482 := &x.Status yy2482.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2468[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2483 := &x.Status yy2483.CodecEncodeSelf(e) } } if yyr2468 || yy2arr2468 { 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 yym2484 := z.DecBinary() _ = yym2484 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2485 := r.ContainerType() if yyct2485 == codecSelferValueTypeMap1234 { yyl2485 := r.ReadMapStart() if yyl2485 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2485, d) } } else if yyct2485 == codecSelferValueTypeArray1234 { yyl2485 := r.ReadArrayStart() if yyl2485 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2485, 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 yys2486Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2486Slc var yyhl2486 bool = l >= 0 for yyj2486 := 0; ; yyj2486++ { if yyhl2486 { if yyj2486 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2486Slc = r.DecodeBytes(yys2486Slc, true, true) yys2486 := string(yys2486Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2486 { 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 { yyv2489 := &x.ObjectMeta yyv2489.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2490 := &x.Spec yyv2490.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2491 := &x.Status yyv2491.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2486) } // end switch yys2486 } // end for yyj2486 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 yyj2492 int var yyb2492 bool var yyhl2492 bool = l >= 0 yyj2492++ if yyhl2492 { yyb2492 = yyj2492 > l } else { yyb2492 = r.CheckBreak() } if yyb2492 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2492++ if yyhl2492 { yyb2492 = yyj2492 > l } else { yyb2492 = r.CheckBreak() } if yyb2492 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2492++ if yyhl2492 { yyb2492 = yyj2492 > l } else { yyb2492 = r.CheckBreak() } if yyb2492 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2495 := &x.ObjectMeta yyv2495.CodecDecodeSelf(d) } yyj2492++ if yyhl2492 { yyb2492 = yyj2492 > l } else { yyb2492 = r.CheckBreak() } if yyb2492 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ReplicationControllerSpec{} } else { yyv2496 := &x.Spec yyv2496.CodecDecodeSelf(d) } yyj2492++ if yyhl2492 { yyb2492 = yyj2492 > l } else { yyb2492 = r.CheckBreak() } if yyb2492 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ReplicationControllerStatus{} } else { yyv2497 := &x.Status yyv2497.CodecDecodeSelf(d) } for { yyj2492++ if yyhl2492 { yyb2492 = yyj2492 > l } else { yyb2492 = r.CheckBreak() } if yyb2492 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2492-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 { yym2498 := z.EncBinary() _ = yym2498 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2499 := !z.EncBinary() yy2arr2499 := z.EncBasicHandle().StructToArray var yyq2499 [4]bool _, _, _ = yysep2499, yyq2499, yy2arr2499 const yyr2499 bool = false yyq2499[0] = x.Kind != "" yyq2499[1] = x.APIVersion != "" yyq2499[2] = true var yynn2499 int if yyr2499 || yy2arr2499 { r.EncodeArrayStart(4) } else { yynn2499 = 1 for _, b := range yyq2499 { if b { yynn2499++ } } r.EncodeMapStart(yynn2499) yynn2499 = 0 } if yyr2499 || yy2arr2499 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2499[0] { yym2501 := z.EncBinary() _ = yym2501 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2499[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2502 := z.EncBinary() _ = yym2502 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2499 || yy2arr2499 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2499[1] { yym2504 := z.EncBinary() _ = yym2504 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2499[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2505 := z.EncBinary() _ = yym2505 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2499 || yy2arr2499 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2499[2] { yy2507 := &x.ListMeta yym2508 := z.EncBinary() _ = yym2508 if false { } else if z.HasExtensions() && z.EncExt(yy2507) { } else { z.EncFallback(yy2507) } } else { r.EncodeNil() } } else { if yyq2499[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2509 := &x.ListMeta yym2510 := z.EncBinary() _ = yym2510 if false { } else if z.HasExtensions() && z.EncExt(yy2509) { } else { z.EncFallback(yy2509) } } } if yyr2499 || yy2arr2499 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2512 := z.EncBinary() _ = yym2512 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 { yym2513 := z.EncBinary() _ = yym2513 if false { } else { h.encSliceReplicationController(([]ReplicationController)(x.Items), e) } } } if yyr2499 || yy2arr2499 { 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 yym2514 := z.DecBinary() _ = yym2514 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2515 := r.ContainerType() if yyct2515 == codecSelferValueTypeMap1234 { yyl2515 := r.ReadMapStart() if yyl2515 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2515, d) } } else if yyct2515 == codecSelferValueTypeArray1234 { yyl2515 := r.ReadArrayStart() if yyl2515 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2515, 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 yys2516Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2516Slc var yyhl2516 bool = l >= 0 for yyj2516 := 0; ; yyj2516++ { if yyhl2516 { if yyj2516 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2516Slc = r.DecodeBytes(yys2516Slc, true, true) yys2516 := string(yys2516Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2516 { 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 { yyv2519 := &x.ListMeta yym2520 := z.DecBinary() _ = yym2520 if false { } else if z.HasExtensions() && z.DecExt(yyv2519) { } else { z.DecFallback(yyv2519, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2521 := &x.Items yym2522 := z.DecBinary() _ = yym2522 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2521), d) } } default: z.DecStructFieldNotFound(-1, yys2516) } // end switch yys2516 } // end for yyj2516 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 yyj2523 int var yyb2523 bool var yyhl2523 bool = l >= 0 yyj2523++ if yyhl2523 { yyb2523 = yyj2523 > l } else { yyb2523 = r.CheckBreak() } if yyb2523 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2523++ if yyhl2523 { yyb2523 = yyj2523 > l } else { yyb2523 = r.CheckBreak() } if yyb2523 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2523++ if yyhl2523 { yyb2523 = yyj2523 > l } else { yyb2523 = r.CheckBreak() } if yyb2523 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2526 := &x.ListMeta yym2527 := z.DecBinary() _ = yym2527 if false { } else if z.HasExtensions() && z.DecExt(yyv2526) { } else { z.DecFallback(yyv2526, false) } } yyj2523++ if yyhl2523 { yyb2523 = yyj2523 > l } else { yyb2523 = r.CheckBreak() } if yyb2523 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2528 := &x.Items yym2529 := z.DecBinary() _ = yym2529 if false { } else { h.decSliceReplicationController((*[]ReplicationController)(yyv2528), d) } } for { yyj2523++ if yyhl2523 { yyb2523 = yyj2523 > l } else { yyb2523 = r.CheckBreak() } if yyb2523 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2523-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 { yym2530 := z.EncBinary() _ = yym2530 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2531 := !z.EncBinary() yy2arr2531 := z.EncBasicHandle().StructToArray var yyq2531 [4]bool _, _, _ = yysep2531, yyq2531, yy2arr2531 const yyr2531 bool = false yyq2531[0] = x.Kind != "" yyq2531[1] = x.APIVersion != "" yyq2531[2] = true var yynn2531 int if yyr2531 || yy2arr2531 { r.EncodeArrayStart(4) } else { yynn2531 = 1 for _, b := range yyq2531 { if b { yynn2531++ } } r.EncodeMapStart(yynn2531) yynn2531 = 0 } if yyr2531 || yy2arr2531 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2531[0] { yym2533 := z.EncBinary() _ = yym2533 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2531[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2534 := z.EncBinary() _ = yym2534 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2531 || yy2arr2531 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2531[1] { yym2536 := z.EncBinary() _ = yym2536 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2531[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2537 := z.EncBinary() _ = yym2537 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2531 || yy2arr2531 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2531[2] { yy2539 := &x.ListMeta yym2540 := z.EncBinary() _ = yym2540 if false { } else if z.HasExtensions() && z.EncExt(yy2539) { } else { z.EncFallback(yy2539) } } else { r.EncodeNil() } } else { if yyq2531[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2541 := &x.ListMeta yym2542 := z.EncBinary() _ = yym2542 if false { } else if z.HasExtensions() && z.EncExt(yy2541) { } else { z.EncFallback(yy2541) } } } if yyr2531 || yy2arr2531 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2544 := z.EncBinary() _ = yym2544 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 { yym2545 := z.EncBinary() _ = yym2545 if false { } else { h.encSliceService(([]Service)(x.Items), e) } } } if yyr2531 || yy2arr2531 { 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 yym2546 := z.DecBinary() _ = yym2546 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2547 := r.ContainerType() if yyct2547 == codecSelferValueTypeMap1234 { yyl2547 := r.ReadMapStart() if yyl2547 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2547, d) } } else if yyct2547 == codecSelferValueTypeArray1234 { yyl2547 := r.ReadArrayStart() if yyl2547 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2547, 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 yys2548Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2548Slc var yyhl2548 bool = l >= 0 for yyj2548 := 0; ; yyj2548++ { if yyhl2548 { if yyj2548 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2548Slc = r.DecodeBytes(yys2548Slc, true, true) yys2548 := string(yys2548Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2548 { 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 { yyv2551 := &x.ListMeta yym2552 := z.DecBinary() _ = yym2552 if false { } else if z.HasExtensions() && z.DecExt(yyv2551) { } else { z.DecFallback(yyv2551, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2553 := &x.Items yym2554 := z.DecBinary() _ = yym2554 if false { } else { h.decSliceService((*[]Service)(yyv2553), d) } } default: z.DecStructFieldNotFound(-1, yys2548) } // end switch yys2548 } // end for yyj2548 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 yyj2555 int var yyb2555 bool var yyhl2555 bool = l >= 0 yyj2555++ if yyhl2555 { yyb2555 = yyj2555 > l } else { yyb2555 = r.CheckBreak() } if yyb2555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2555++ if yyhl2555 { yyb2555 = yyj2555 > l } else { yyb2555 = r.CheckBreak() } if yyb2555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2555++ if yyhl2555 { yyb2555 = yyj2555 > l } else { yyb2555 = r.CheckBreak() } if yyb2555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2558 := &x.ListMeta yym2559 := z.DecBinary() _ = yym2559 if false { } else if z.HasExtensions() && z.DecExt(yyv2558) { } else { z.DecFallback(yyv2558, false) } } yyj2555++ if yyhl2555 { yyb2555 = yyj2555 > l } else { yyb2555 = r.CheckBreak() } if yyb2555 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2560 := &x.Items yym2561 := z.DecBinary() _ = yym2561 if false { } else { h.decSliceService((*[]Service)(yyv2560), d) } } for { yyj2555++ if yyhl2555 { yyb2555 = yyj2555 > l } else { yyb2555 = r.CheckBreak() } if yyb2555 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2555-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym2562 := z.EncBinary() _ = yym2562 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 yym2563 := z.DecBinary() _ = yym2563 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 yym2564 := z.EncBinary() _ = yym2564 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 yym2565 := z.DecBinary() _ = yym2565 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 { yym2566 := z.EncBinary() _ = yym2566 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2567 := !z.EncBinary() yy2arr2567 := z.EncBasicHandle().StructToArray var yyq2567 [1]bool _, _, _ = yysep2567, yyq2567, yy2arr2567 const yyr2567 bool = false yyq2567[0] = true var yynn2567 int if yyr2567 || yy2arr2567 { r.EncodeArrayStart(1) } else { yynn2567 = 0 for _, b := range yyq2567 { if b { yynn2567++ } } r.EncodeMapStart(yynn2567) yynn2567 = 0 } if yyr2567 || yy2arr2567 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2567[0] { yy2569 := &x.LoadBalancer yy2569.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2567[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancer")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2570 := &x.LoadBalancer yy2570.CodecEncodeSelf(e) } } if yyr2567 || yy2arr2567 { 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 yym2571 := z.DecBinary() _ = yym2571 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2572 := r.ContainerType() if yyct2572 == codecSelferValueTypeMap1234 { yyl2572 := r.ReadMapStart() if yyl2572 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2572, d) } } else if yyct2572 == codecSelferValueTypeArray1234 { yyl2572 := r.ReadArrayStart() if yyl2572 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2572, 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 yys2573Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2573Slc var yyhl2573 bool = l >= 0 for yyj2573 := 0; ; yyj2573++ { if yyhl2573 { if yyj2573 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2573Slc = r.DecodeBytes(yys2573Slc, true, true) yys2573 := string(yys2573Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2573 { case "loadBalancer": if r.TryDecodeAsNil() { x.LoadBalancer = LoadBalancerStatus{} } else { yyv2574 := &x.LoadBalancer yyv2574.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2573) } // end switch yys2573 } // end for yyj2573 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 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.LoadBalancer = LoadBalancerStatus{} } else { yyv2576 := &x.LoadBalancer yyv2576.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 *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2577 := z.EncBinary() _ = yym2577 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2578 := !z.EncBinary() yy2arr2578 := z.EncBasicHandle().StructToArray var yyq2578 [1]bool _, _, _ = yysep2578, yyq2578, yy2arr2578 const yyr2578 bool = false yyq2578[0] = len(x.Ingress) != 0 var yynn2578 int if yyr2578 || yy2arr2578 { r.EncodeArrayStart(1) } else { yynn2578 = 0 for _, b := range yyq2578 { if b { yynn2578++ } } r.EncodeMapStart(yynn2578) yynn2578 = 0 } if yyr2578 || yy2arr2578 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2578[0] { if x.Ingress == nil { r.EncodeNil() } else { yym2580 := z.EncBinary() _ = yym2580 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } else { r.EncodeNil() } } else { if yyq2578[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ingress")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Ingress == nil { r.EncodeNil() } else { yym2581 := z.EncBinary() _ = yym2581 if false { } else { h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e) } } } } if yyr2578 || yy2arr2578 { 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 yym2582 := z.DecBinary() _ = yym2582 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2583 := r.ContainerType() if yyct2583 == codecSelferValueTypeMap1234 { yyl2583 := r.ReadMapStart() if yyl2583 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2583, d) } } else if yyct2583 == codecSelferValueTypeArray1234 { yyl2583 := r.ReadArrayStart() if yyl2583 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2583, 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 yys2584Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2584Slc var yyhl2584 bool = l >= 0 for yyj2584 := 0; ; yyj2584++ { if yyhl2584 { if yyj2584 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2584Slc = r.DecodeBytes(yys2584Slc, true, true) yys2584 := string(yys2584Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2584 { case "ingress": if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2585 := &x.Ingress yym2586 := z.DecBinary() _ = yym2586 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2585), d) } } default: z.DecStructFieldNotFound(-1, yys2584) } // end switch yys2584 } // end for yyj2584 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 yyj2587 int var yyb2587 bool var yyhl2587 bool = l >= 0 yyj2587++ if yyhl2587 { yyb2587 = yyj2587 > l } else { yyb2587 = r.CheckBreak() } if yyb2587 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ingress = nil } else { yyv2588 := &x.Ingress yym2589 := z.DecBinary() _ = yym2589 if false { } else { h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2588), d) } } for { yyj2587++ if yyhl2587 { yyb2587 = yyj2587 > l } else { yyb2587 = r.CheckBreak() } if yyb2587 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2587-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 { yym2590 := z.EncBinary() _ = yym2590 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2591 := !z.EncBinary() yy2arr2591 := z.EncBasicHandle().StructToArray var yyq2591 [2]bool _, _, _ = yysep2591, yyq2591, yy2arr2591 const yyr2591 bool = false yyq2591[0] = x.IP != "" yyq2591[1] = x.Hostname != "" var yynn2591 int if yyr2591 || yy2arr2591 { r.EncodeArrayStart(2) } else { yynn2591 = 0 for _, b := range yyq2591 { if b { yynn2591++ } } r.EncodeMapStart(yynn2591) yynn2591 = 0 } if yyr2591 || yy2arr2591 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2591[0] { yym2593 := z.EncBinary() _ = yym2593 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2591[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ip")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2594 := z.EncBinary() _ = yym2594 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } } if yyr2591 || yy2arr2591 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2591[1] { yym2596 := z.EncBinary() _ = yym2596 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2591[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2597 := z.EncBinary() _ = yym2597 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2591 || yy2arr2591 { 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 yym2598 := z.DecBinary() _ = yym2598 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2599 := r.ContainerType() if yyct2599 == codecSelferValueTypeMap1234 { yyl2599 := r.ReadMapStart() if yyl2599 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2599, d) } } else if yyct2599 == codecSelferValueTypeArray1234 { yyl2599 := r.ReadArrayStart() if yyl2599 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2599, 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 yys2600Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2600Slc var yyhl2600 bool = l >= 0 for yyj2600 := 0; ; yyj2600++ { if yyhl2600 { if yyj2600 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2600Slc = r.DecodeBytes(yys2600Slc, true, true) yys2600 := string(yys2600Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2600 { 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, yys2600) } // end switch yys2600 } // end for yyj2600 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 yyj2603 int var yyb2603 bool var yyhl2603 bool = l >= 0 yyj2603++ if yyhl2603 { yyb2603 = yyj2603 > l } else { yyb2603 = r.CheckBreak() } if yyb2603 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2603++ if yyhl2603 { yyb2603 = yyj2603 > l } else { yyb2603 = r.CheckBreak() } if yyb2603 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } for { yyj2603++ if yyhl2603 { yyb2603 = yyj2603 > l } else { yyb2603 = r.CheckBreak() } if yyb2603 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2603-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 { yym2606 := z.EncBinary() _ = yym2606 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2607 := !z.EncBinary() yy2arr2607 := z.EncBasicHandle().StructToArray var yyq2607 [9]bool _, _, _ = yysep2607, yyq2607, yy2arr2607 const yyr2607 bool = false yyq2607[0] = x.Type != "" yyq2607[3] = x.ClusterIP != "" yyq2607[5] = len(x.ExternalIPs) != 0 yyq2607[6] = x.LoadBalancerIP != "" yyq2607[7] = x.SessionAffinity != "" yyq2607[8] = len(x.LoadBalancerSourceRanges) != 0 var yynn2607 int if yyr2607 || yy2arr2607 { r.EncodeArrayStart(9) } else { yynn2607 = 3 for _, b := range yyq2607 { if b { yynn2607++ } } r.EncodeMapStart(yynn2607) yynn2607 = 0 } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2607[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2610 := z.EncBinary() _ = yym2610 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 { yym2611 := z.EncBinary() _ = yym2611 if false { } else { h.encSliceServicePort(([]ServicePort)(x.Ports), e) } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Selector == nil { r.EncodeNil() } else { yym2613 := z.EncBinary() _ = yym2613 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 { yym2614 := z.EncBinary() _ = yym2614 if false { } else { z.F.EncMapStringStringV(x.Selector, false, e) } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[3] { yym2616 := z.EncBinary() _ = yym2616 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2607[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("clusterIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2617 := z.EncBinary() _ = yym2617 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP)) } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2619 := z.EncBinary() _ = yym2619 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("ExternalName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2620 := z.EncBinary() _ = yym2620 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName)) } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[5] { if x.ExternalIPs == nil { r.EncodeNil() } else { yym2622 := z.EncBinary() _ = yym2622 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } else { r.EncodeNil() } } else { if yyq2607[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalIPs")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ExternalIPs == nil { r.EncodeNil() } else { yym2623 := z.EncBinary() _ = yym2623 if false { } else { z.F.EncSliceStringV(x.ExternalIPs, false, e) } } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[6] { yym2625 := z.EncBinary() _ = yym2625 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2607[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2626 := z.EncBinary() _ = yym2626 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP)) } } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[7] { x.SessionAffinity.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2607[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.SessionAffinity.CodecEncodeSelf(e) } } if yyr2607 || yy2arr2607 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2607[8] { if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { yym2629 := z.EncBinary() _ = yym2629 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) } } } else { r.EncodeNil() } } else { if yyq2607[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LoadBalancerSourceRanges == nil { r.EncodeNil() } else { yym2630 := z.EncBinary() _ = yym2630 if false { } else { z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e) } } } } if yyr2607 || yy2arr2607 { 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 yym2631 := z.DecBinary() _ = yym2631 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2632 := r.ContainerType() if yyct2632 == codecSelferValueTypeMap1234 { yyl2632 := r.ReadMapStart() if yyl2632 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2632, d) } } else if yyct2632 == codecSelferValueTypeArray1234 { yyl2632 := r.ReadArrayStart() if yyl2632 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2632, 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 yys2633Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2633Slc var yyhl2633 bool = l >= 0 for yyj2633 := 0; ; yyj2633++ { if yyhl2633 { if yyj2633 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2633Slc = r.DecodeBytes(yys2633Slc, true, true) yys2633 := string(yys2633Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2633 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } case "ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2635 := &x.Ports yym2636 := z.DecBinary() _ = yym2636 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2635), d) } } case "selector": if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2637 := &x.Selector yym2638 := z.DecBinary() _ = yym2638 if false { } else { z.F.DecMapStringStringX(yyv2637, false, d) } } case "clusterIP": if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } case "ExternalName": if r.TryDecodeAsNil() { x.ExternalName = "" } else { x.ExternalName = string(r.DecodeString()) } case "externalIPs": if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2641 := &x.ExternalIPs yym2642 := z.DecBinary() _ = yym2642 if false { } else { z.F.DecSliceStringX(yyv2641, 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()) } case "loadBalancerSourceRanges": if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { yyv2645 := &x.LoadBalancerSourceRanges yym2646 := z.DecBinary() _ = yym2646 if false { } else { z.F.DecSliceStringX(yyv2645, false, d) } } default: z.DecStructFieldNotFound(-1, yys2633) } // end switch yys2633 } // end for yyj2633 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 yyj2647 int var yyb2647 bool var yyhl2647 bool = l >= 0 yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ServiceType(r.DecodeString()) } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2649 := &x.Ports yym2650 := z.DecBinary() _ = yym2650 if false { } else { h.decSliceServicePort((*[]ServicePort)(yyv2649), d) } } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Selector = nil } else { yyv2651 := &x.Selector yym2652 := z.DecBinary() _ = yym2652 if false { } else { z.F.DecMapStringStringX(yyv2651, false, d) } } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ClusterIP = "" } else { x.ClusterIP = string(r.DecodeString()) } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalName = "" } else { x.ExternalName = string(r.DecodeString()) } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalIPs = nil } else { yyv2655 := &x.ExternalIPs yym2656 := z.DecBinary() _ = yym2656 if false { } else { z.F.DecSliceStringX(yyv2655, false, d) } } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerIP = "" } else { x.LoadBalancerIP = string(r.DecodeString()) } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SessionAffinity = "" } else { x.SessionAffinity = ServiceAffinity(r.DecodeString()) } yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LoadBalancerSourceRanges = nil } else { yyv2659 := &x.LoadBalancerSourceRanges yym2660 := z.DecBinary() _ = yym2660 if false { } else { z.F.DecSliceStringX(yyv2659, false, d) } } for { yyj2647++ if yyhl2647 { yyb2647 = yyj2647 > l } else { yyb2647 = r.CheckBreak() } if yyb2647 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2647-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 { yym2661 := z.EncBinary() _ = yym2661 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2662 := !z.EncBinary() yy2arr2662 := z.EncBasicHandle().StructToArray var yyq2662 [5]bool _, _, _ = yysep2662, yyq2662, yy2arr2662 const yyr2662 bool = false var yynn2662 int if yyr2662 || yy2arr2662 { r.EncodeArrayStart(5) } else { yynn2662 = 5 for _, b := range yyq2662 { if b { yynn2662++ } } r.EncodeMapStart(yynn2662) yynn2662 = 0 } if yyr2662 || yy2arr2662 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2664 := z.EncBinary() _ = yym2664 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) yym2665 := z.EncBinary() _ = yym2665 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr2662 || yy2arr2662 { 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 yyr2662 || yy2arr2662 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2668 := z.EncBinary() _ = yym2668 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2669 := z.EncBinary() _ = yym2669 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2662 || yy2arr2662 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy2671 := &x.TargetPort yym2672 := z.EncBinary() _ = yym2672 if false { } else if z.HasExtensions() && z.EncExt(yy2671) { } else if !yym2672 && z.IsJSONHandle() { z.EncJSONMarshal(yy2671) } else { z.EncFallback(yy2671) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("targetPort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2673 := &x.TargetPort yym2674 := z.EncBinary() _ = yym2674 if false { } else if z.HasExtensions() && z.EncExt(yy2673) { } else if !yym2674 && z.IsJSONHandle() { z.EncJSONMarshal(yy2673) } else { z.EncFallback(yy2673) } } if yyr2662 || yy2arr2662 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2676 := z.EncBinary() _ = yym2676 if false { } else { r.EncodeInt(int64(x.NodePort)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodePort")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2677 := z.EncBinary() _ = yym2677 if false { } else { r.EncodeInt(int64(x.NodePort)) } } if yyr2662 || yy2arr2662 { 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 yym2678 := z.DecBinary() _ = yym2678 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2679 := r.ContainerType() if yyct2679 == codecSelferValueTypeMap1234 { yyl2679 := r.ReadMapStart() if yyl2679 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2679, d) } } else if yyct2679 == codecSelferValueTypeArray1234 { yyl2679 := r.ReadArrayStart() if yyl2679 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2679, 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 yys2680Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2680Slc var yyhl2680 bool = l >= 0 for yyj2680 := 0; ; yyj2680++ { if yyhl2680 { if yyj2680 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2680Slc = r.DecodeBytes(yys2680Slc, true, true) yys2680 := string(yys2680Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2680 { 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 = int32(r.DecodeInt(32)) } case "targetPort": if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { yyv2684 := &x.TargetPort yym2685 := z.DecBinary() _ = yym2685 if false { } else if z.HasExtensions() && z.DecExt(yyv2684) { } else if !yym2685 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2684) } else { z.DecFallback(yyv2684, false) } } case "nodePort": if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys2680) } // end switch yys2680 } // end for yyj2680 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 yyj2687 int var yyb2687 bool var yyhl2687 bool = l >= 0 yyj2687++ if yyhl2687 { yyb2687 = yyj2687 > l } else { yyb2687 = r.CheckBreak() } if yyb2687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2687++ if yyhl2687 { yyb2687 = yyj2687 > l } else { yyb2687 = r.CheckBreak() } if yyb2687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } yyj2687++ if yyhl2687 { yyb2687 = yyj2687 > l } else { yyb2687 = r.CheckBreak() } if yyb2687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } yyj2687++ if yyhl2687 { yyb2687 = yyj2687 > l } else { yyb2687 = r.CheckBreak() } if yyb2687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TargetPort = pkg4_intstr.IntOrString{} } else { yyv2691 := &x.TargetPort yym2692 := z.DecBinary() _ = yym2692 if false { } else if z.HasExtensions() && z.DecExt(yyv2691) { } else if !yym2692 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv2691) } else { z.DecFallback(yyv2691, false) } } yyj2687++ if yyhl2687 { yyb2687 = yyj2687 > l } else { yyb2687 = r.CheckBreak() } if yyb2687 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodePort = 0 } else { x.NodePort = int32(r.DecodeInt(32)) } for { yyj2687++ if yyhl2687 { yyb2687 = yyj2687 > l } else { yyb2687 = r.CheckBreak() } if yyb2687 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2687-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 { yym2694 := z.EncBinary() _ = yym2694 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2695 := !z.EncBinary() yy2arr2695 := z.EncBasicHandle().StructToArray var yyq2695 [5]bool _, _, _ = yysep2695, yyq2695, yy2arr2695 const yyr2695 bool = false yyq2695[0] = x.Kind != "" yyq2695[1] = x.APIVersion != "" yyq2695[2] = true yyq2695[3] = true yyq2695[4] = true var yynn2695 int if yyr2695 || yy2arr2695 { r.EncodeArrayStart(5) } else { yynn2695 = 0 for _, b := range yyq2695 { if b { yynn2695++ } } r.EncodeMapStart(yynn2695) yynn2695 = 0 } if yyr2695 || yy2arr2695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2695[0] { yym2697 := z.EncBinary() _ = yym2697 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2695[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2698 := z.EncBinary() _ = yym2698 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2695 || yy2arr2695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2695[1] { yym2700 := z.EncBinary() _ = yym2700 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2695[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2701 := z.EncBinary() _ = yym2701 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2695 || yy2arr2695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2695[2] { yy2703 := &x.ObjectMeta yy2703.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2695[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2704 := &x.ObjectMeta yy2704.CodecEncodeSelf(e) } } if yyr2695 || yy2arr2695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2695[3] { yy2706 := &x.Spec yy2706.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2695[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2707 := &x.Spec yy2707.CodecEncodeSelf(e) } } if yyr2695 || yy2arr2695 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2695[4] { yy2709 := &x.Status yy2709.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2695[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2710 := &x.Status yy2710.CodecEncodeSelf(e) } } if yyr2695 || yy2arr2695 { 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 yym2711 := z.DecBinary() _ = yym2711 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2712 := r.ContainerType() if yyct2712 == codecSelferValueTypeMap1234 { yyl2712 := r.ReadMapStart() if yyl2712 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2712, d) } } else if yyct2712 == codecSelferValueTypeArray1234 { yyl2712 := r.ReadArrayStart() if yyl2712 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2712, 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 yys2713Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2713Slc var yyhl2713 bool = l >= 0 for yyj2713 := 0; ; yyj2713++ { if yyhl2713 { if yyj2713 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2713Slc = r.DecodeBytes(yys2713Slc, true, true) yys2713 := string(yys2713Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2713 { 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 { yyv2716 := &x.ObjectMeta yyv2716.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2717 := &x.Spec yyv2717.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2718 := &x.Status yyv2718.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2713) } // end switch yys2713 } // end for yyj2713 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 yyj2719 int var yyb2719 bool var yyhl2719 bool = l >= 0 yyj2719++ if yyhl2719 { yyb2719 = yyj2719 > l } else { yyb2719 = r.CheckBreak() } if yyb2719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2719++ if yyhl2719 { yyb2719 = yyj2719 > l } else { yyb2719 = r.CheckBreak() } if yyb2719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2719++ if yyhl2719 { yyb2719 = yyj2719 > l } else { yyb2719 = r.CheckBreak() } if yyb2719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2722 := &x.ObjectMeta yyv2722.CodecDecodeSelf(d) } yyj2719++ if yyhl2719 { yyb2719 = yyj2719 > l } else { yyb2719 = r.CheckBreak() } if yyb2719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ServiceSpec{} } else { yyv2723 := &x.Spec yyv2723.CodecDecodeSelf(d) } yyj2719++ if yyhl2719 { yyb2719 = yyj2719 > l } else { yyb2719 = r.CheckBreak() } if yyb2719 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ServiceStatus{} } else { yyv2724 := &x.Status yyv2724.CodecDecodeSelf(d) } for { yyj2719++ if yyhl2719 { yyb2719 = yyj2719 > l } else { yyb2719 = r.CheckBreak() } if yyb2719 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2719-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 { yym2725 := z.EncBinary() _ = yym2725 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2726 := !z.EncBinary() yy2arr2726 := z.EncBasicHandle().StructToArray var yyq2726 [5]bool _, _, _ = yysep2726, yyq2726, yy2arr2726 const yyr2726 bool = false yyq2726[0] = x.Kind != "" yyq2726[1] = x.APIVersion != "" yyq2726[2] = true yyq2726[4] = len(x.ImagePullSecrets) != 0 var yynn2726 int if yyr2726 || yy2arr2726 { r.EncodeArrayStart(5) } else { yynn2726 = 1 for _, b := range yyq2726 { if b { yynn2726++ } } r.EncodeMapStart(yynn2726) yynn2726 = 0 } if yyr2726 || yy2arr2726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2726[0] { yym2728 := z.EncBinary() _ = yym2728 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2726[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2729 := z.EncBinary() _ = yym2729 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2726 || yy2arr2726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2726[1] { yym2731 := z.EncBinary() _ = yym2731 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2726[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2732 := z.EncBinary() _ = yym2732 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2726 || yy2arr2726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2726[2] { yy2734 := &x.ObjectMeta yy2734.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2726[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2735 := &x.ObjectMeta yy2735.CodecEncodeSelf(e) } } if yyr2726 || yy2arr2726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Secrets == nil { r.EncodeNil() } else { yym2737 := z.EncBinary() _ = yym2737 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 { yym2738 := z.EncBinary() _ = yym2738 if false { } else { h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e) } } } if yyr2726 || yy2arr2726 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2726[4] { if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2740 := z.EncBinary() _ = yym2740 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } else { r.EncodeNil() } } else { if yyq2726[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ImagePullSecrets == nil { r.EncodeNil() } else { yym2741 := z.EncBinary() _ = yym2741 if false { } else { h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e) } } } } if yyr2726 || yy2arr2726 { 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 yym2742 := z.DecBinary() _ = yym2742 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2743 := r.ContainerType() if yyct2743 == codecSelferValueTypeMap1234 { yyl2743 := r.ReadMapStart() if yyl2743 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2743, d) } } else if yyct2743 == codecSelferValueTypeArray1234 { yyl2743 := r.ReadArrayStart() if yyl2743 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2743, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceAccount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2744Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2744Slc var yyhl2744 bool = l >= 0 for yyj2744 := 0; ; yyj2744++ { if yyhl2744 { if yyj2744 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2744Slc = r.DecodeBytes(yys2744Slc, true, true) yys2744 := string(yys2744Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2744 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "metadata": if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2747 := &x.ObjectMeta yyv2747.CodecDecodeSelf(d) } case "secrets": if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2748 := &x.Secrets yym2749 := z.DecBinary() _ = yym2749 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2748), d) } } case "imagePullSecrets": if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2750 := &x.ImagePullSecrets yym2751 := z.DecBinary() _ = yym2751 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2750), d) } } default: z.DecStructFieldNotFound(-1, yys2744) } // end switch yys2744 } // end for yyj2744 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 yyj2752 int var yyb2752 bool var yyhl2752 bool = l >= 0 yyj2752++ if yyhl2752 { yyb2752 = yyj2752 > l } else { yyb2752 = r.CheckBreak() } if yyb2752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2752++ if yyhl2752 { yyb2752 = yyj2752 > l } else { yyb2752 = r.CheckBreak() } if yyb2752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2752++ if yyhl2752 { yyb2752 = yyj2752 > l } else { yyb2752 = r.CheckBreak() } if yyb2752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2755 := &x.ObjectMeta yyv2755.CodecDecodeSelf(d) } yyj2752++ if yyhl2752 { yyb2752 = yyj2752 > l } else { yyb2752 = r.CheckBreak() } if yyb2752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Secrets = nil } else { yyv2756 := &x.Secrets yym2757 := z.DecBinary() _ = yym2757 if false { } else { h.decSliceObjectReference((*[]ObjectReference)(yyv2756), d) } } yyj2752++ if yyhl2752 { yyb2752 = yyj2752 > l } else { yyb2752 = r.CheckBreak() } if yyb2752 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ImagePullSecrets = nil } else { yyv2758 := &x.ImagePullSecrets yym2759 := z.DecBinary() _ = yym2759 if false { } else { h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2758), d) } } for { yyj2752++ if yyhl2752 { yyb2752 = yyj2752 > l } else { yyb2752 = r.CheckBreak() } if yyb2752 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2752-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 { yym2760 := z.EncBinary() _ = yym2760 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2761 := !z.EncBinary() yy2arr2761 := z.EncBasicHandle().StructToArray var yyq2761 [4]bool _, _, _ = yysep2761, yyq2761, yy2arr2761 const yyr2761 bool = false yyq2761[0] = x.Kind != "" yyq2761[1] = x.APIVersion != "" yyq2761[2] = true var yynn2761 int if yyr2761 || yy2arr2761 { r.EncodeArrayStart(4) } else { yynn2761 = 1 for _, b := range yyq2761 { if b { yynn2761++ } } r.EncodeMapStart(yynn2761) yynn2761 = 0 } if yyr2761 || yy2arr2761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2761[0] { yym2763 := z.EncBinary() _ = yym2763 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2761[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2764 := z.EncBinary() _ = yym2764 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2761 || yy2arr2761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2761[1] { yym2766 := z.EncBinary() _ = yym2766 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2761[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2767 := z.EncBinary() _ = yym2767 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2761 || yy2arr2761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2761[2] { yy2769 := &x.ListMeta yym2770 := z.EncBinary() _ = yym2770 if false { } else if z.HasExtensions() && z.EncExt(yy2769) { } else { z.EncFallback(yy2769) } } else { r.EncodeNil() } } else { if yyq2761[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2771 := &x.ListMeta yym2772 := z.EncBinary() _ = yym2772 if false { } else if z.HasExtensions() && z.EncExt(yy2771) { } else { z.EncFallback(yy2771) } } } if yyr2761 || yy2arr2761 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2774 := z.EncBinary() _ = yym2774 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 { yym2775 := z.EncBinary() _ = yym2775 if false { } else { h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e) } } } if yyr2761 || yy2arr2761 { 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 yym2776 := z.DecBinary() _ = yym2776 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2777 := r.ContainerType() if yyct2777 == codecSelferValueTypeMap1234 { yyl2777 := r.ReadMapStart() if yyl2777 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2777, d) } } else if yyct2777 == codecSelferValueTypeArray1234 { yyl2777 := r.ReadArrayStart() if yyl2777 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2777, 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 yys2778Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2778Slc var yyhl2778 bool = l >= 0 for yyj2778 := 0; ; yyj2778++ { if yyhl2778 { if yyj2778 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2778Slc = r.DecodeBytes(yys2778Slc, true, true) yys2778 := string(yys2778Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2778 { 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 { yyv2781 := &x.ListMeta yym2782 := z.DecBinary() _ = yym2782 if false { } else if z.HasExtensions() && z.DecExt(yyv2781) { } else { z.DecFallback(yyv2781, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2783 := &x.Items yym2784 := z.DecBinary() _ = yym2784 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2783), d) } } default: z.DecStructFieldNotFound(-1, yys2778) } // end switch yys2778 } // end for yyj2778 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 yyj2785 int var yyb2785 bool var yyhl2785 bool = l >= 0 yyj2785++ if yyhl2785 { yyb2785 = yyj2785 > l } else { yyb2785 = r.CheckBreak() } if yyb2785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2785++ if yyhl2785 { yyb2785 = yyj2785 > l } else { yyb2785 = r.CheckBreak() } if yyb2785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2785++ if yyhl2785 { yyb2785 = yyj2785 > l } else { yyb2785 = r.CheckBreak() } if yyb2785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2788 := &x.ListMeta yym2789 := z.DecBinary() _ = yym2789 if false { } else if z.HasExtensions() && z.DecExt(yyv2788) { } else { z.DecFallback(yyv2788, false) } } yyj2785++ if yyhl2785 { yyb2785 = yyj2785 > l } else { yyb2785 = r.CheckBreak() } if yyb2785 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2790 := &x.Items yym2791 := z.DecBinary() _ = yym2791 if false { } else { h.decSliceServiceAccount((*[]ServiceAccount)(yyv2790), d) } } for { yyj2785++ if yyhl2785 { yyb2785 = yyj2785 > l } else { yyb2785 = r.CheckBreak() } if yyb2785 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2785-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 { yym2792 := z.EncBinary() _ = yym2792 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2793 := !z.EncBinary() yy2arr2793 := z.EncBasicHandle().StructToArray var yyq2793 [4]bool _, _, _ = yysep2793, yyq2793, yy2arr2793 const yyr2793 bool = false yyq2793[0] = x.Kind != "" yyq2793[1] = x.APIVersion != "" yyq2793[2] = true var yynn2793 int if yyr2793 || yy2arr2793 { r.EncodeArrayStart(4) } else { yynn2793 = 1 for _, b := range yyq2793 { if b { yynn2793++ } } r.EncodeMapStart(yynn2793) yynn2793 = 0 } if yyr2793 || yy2arr2793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2793[0] { yym2795 := z.EncBinary() _ = yym2795 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2793[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2796 := z.EncBinary() _ = yym2796 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2793 || yy2arr2793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2793[1] { yym2798 := z.EncBinary() _ = yym2798 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2793[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2799 := z.EncBinary() _ = yym2799 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2793 || yy2arr2793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2793[2] { yy2801 := &x.ObjectMeta yy2801.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2793[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2802 := &x.ObjectMeta yy2802.CodecEncodeSelf(e) } } if yyr2793 || yy2arr2793 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Subsets == nil { r.EncodeNil() } else { yym2804 := z.EncBinary() _ = yym2804 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 { yym2805 := z.EncBinary() _ = yym2805 if false { } else { h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e) } } } if yyr2793 || yy2arr2793 { 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 yym2806 := z.DecBinary() _ = yym2806 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2807 := r.ContainerType() if yyct2807 == codecSelferValueTypeMap1234 { yyl2807 := r.ReadMapStart() if yyl2807 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2807, d) } } else if yyct2807 == codecSelferValueTypeArray1234 { yyl2807 := r.ReadArrayStart() if yyl2807 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2807, 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 yys2808Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2808Slc var yyhl2808 bool = l >= 0 for yyj2808 := 0; ; yyj2808++ { if yyhl2808 { if yyj2808 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2808Slc = r.DecodeBytes(yys2808Slc, true, true) yys2808 := string(yys2808Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2808 { 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 { yyv2811 := &x.ObjectMeta yyv2811.CodecDecodeSelf(d) } case "Subsets": if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2812 := &x.Subsets yym2813 := z.DecBinary() _ = yym2813 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2812), d) } } default: z.DecStructFieldNotFound(-1, yys2808) } // end switch yys2808 } // end for yyj2808 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 yyj2814 int var yyb2814 bool var yyhl2814 bool = l >= 0 yyj2814++ if yyhl2814 { yyb2814 = yyj2814 > l } else { yyb2814 = r.CheckBreak() } if yyb2814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2814++ if yyhl2814 { yyb2814 = yyj2814 > l } else { yyb2814 = r.CheckBreak() } if yyb2814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2814++ if yyhl2814 { yyb2814 = yyj2814 > l } else { yyb2814 = r.CheckBreak() } if yyb2814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv2817 := &x.ObjectMeta yyv2817.CodecDecodeSelf(d) } yyj2814++ if yyhl2814 { yyb2814 = yyj2814 > l } else { yyb2814 = r.CheckBreak() } if yyb2814 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Subsets = nil } else { yyv2818 := &x.Subsets yym2819 := z.DecBinary() _ = yym2819 if false { } else { h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2818), d) } } for { yyj2814++ if yyhl2814 { yyb2814 = yyj2814 > l } else { yyb2814 = r.CheckBreak() } if yyb2814 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2814-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 { yym2820 := z.EncBinary() _ = yym2820 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2821 := !z.EncBinary() yy2arr2821 := z.EncBasicHandle().StructToArray var yyq2821 [3]bool _, _, _ = yysep2821, yyq2821, yy2arr2821 const yyr2821 bool = false var yynn2821 int if yyr2821 || yy2arr2821 { r.EncodeArrayStart(3) } else { yynn2821 = 3 for _, b := range yyq2821 { if b { yynn2821++ } } r.EncodeMapStart(yynn2821) yynn2821 = 0 } if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Addresses == nil { r.EncodeNil() } else { yym2823 := z.EncBinary() _ = yym2823 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 { yym2824 := z.EncBinary() _ = yym2824 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e) } } } if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.NotReadyAddresses == nil { r.EncodeNil() } else { yym2826 := z.EncBinary() _ = yym2826 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 { yym2827 := z.EncBinary() _ = yym2827 if false { } else { h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e) } } } if yyr2821 || yy2arr2821 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Ports == nil { r.EncodeNil() } else { yym2829 := z.EncBinary() _ = yym2829 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 { yym2830 := z.EncBinary() _ = yym2830 if false { } else { h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e) } } } if yyr2821 || yy2arr2821 { 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 yym2831 := z.DecBinary() _ = yym2831 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2832 := r.ContainerType() if yyct2832 == codecSelferValueTypeMap1234 { yyl2832 := r.ReadMapStart() if yyl2832 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2832, d) } } else if yyct2832 == codecSelferValueTypeArray1234 { yyl2832 := r.ReadArrayStart() if yyl2832 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2832, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys2833Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2833Slc var yyhl2833 bool = l >= 0 for yyj2833 := 0; ; yyj2833++ { if yyhl2833 { if yyj2833 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2833Slc = r.DecodeBytes(yys2833Slc, true, true) yys2833 := string(yys2833Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2833 { case "Addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2834 := &x.Addresses yym2835 := z.DecBinary() _ = yym2835 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2834), d) } } case "NotReadyAddresses": if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2836 := &x.NotReadyAddresses yym2837 := z.DecBinary() _ = yym2837 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2836), d) } } case "Ports": if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2838 := &x.Ports yym2839 := z.DecBinary() _ = yym2839 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2838), d) } } default: z.DecStructFieldNotFound(-1, yys2833) } // end switch yys2833 } // end for yyj2833 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 yyj2840 int var yyb2840 bool var yyhl2840 bool = l >= 0 yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv2841 := &x.Addresses yym2842 := z.DecBinary() _ = yym2842 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2841), d) } } yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NotReadyAddresses = nil } else { yyv2843 := &x.NotReadyAddresses yym2844 := z.DecBinary() _ = yym2844 if false { } else { h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2843), d) } } yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Ports = nil } else { yyv2845 := &x.Ports yym2846 := z.DecBinary() _ = yym2846 if false { } else { h.decSliceEndpointPort((*[]EndpointPort)(yyv2845), d) } } for { yyj2840++ if yyhl2840 { yyb2840 = yyj2840 > l } else { yyb2840 = r.CheckBreak() } if yyb2840 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2840-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym2847 := z.EncBinary() _ = yym2847 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2848 := !z.EncBinary() yy2arr2848 := z.EncBasicHandle().StructToArray var yyq2848 [4]bool _, _, _ = yysep2848, yyq2848, yy2arr2848 const yyr2848 bool = false yyq2848[1] = x.Hostname != "" yyq2848[2] = x.NodeName != nil var yynn2848 int if yyr2848 || yy2arr2848 { r.EncodeArrayStart(4) } else { yynn2848 = 2 for _, b := range yyq2848 { if b { yynn2848++ } } r.EncodeMapStart(yynn2848) yynn2848 = 0 } if yyr2848 || yy2arr2848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2850 := z.EncBinary() _ = yym2850 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) yym2851 := z.EncBinary() _ = yym2851 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.IP)) } } if yyr2848 || yy2arr2848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2848[1] { yym2853 := z.EncBinary() _ = yym2853 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2848[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("hostname")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2854 := z.EncBinary() _ = yym2854 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Hostname)) } } } if yyr2848 || yy2arr2848 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2848[2] { if x.NodeName == nil { r.EncodeNil() } else { yy2856 := *x.NodeName yym2857 := z.EncBinary() _ = yym2857 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yy2856)) } } } else { r.EncodeNil() } } else { if yyq2848[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeName")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.NodeName == nil { r.EncodeNil() } else { yy2858 := *x.NodeName yym2859 := z.EncBinary() _ = yym2859 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yy2858)) } } } } if yyr2848 || yy2arr2848 { 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 yyr2848 || yy2arr2848 { 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 yym2861 := z.DecBinary() _ = yym2861 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2862 := r.ContainerType() if yyct2862 == codecSelferValueTypeMap1234 { yyl2862 := r.ReadMapStart() if yyl2862 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2862, d) } } else if yyct2862 == codecSelferValueTypeArray1234 { yyl2862 := r.ReadArrayStart() if yyl2862 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2862, 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 yys2863Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2863Slc var yyhl2863 bool = l >= 0 for yyj2863 := 0; ; yyj2863++ { if yyhl2863 { if yyj2863 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2863Slc = r.DecodeBytes(yys2863Slc, true, true) yys2863 := string(yys2863Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2863 { 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()) } case "nodeName": if r.TryDecodeAsNil() { if x.NodeName != nil { x.NodeName = nil } } else { if x.NodeName == nil { x.NodeName = new(string) } yym2867 := z.DecBinary() _ = yym2867 if false { } else { *((*string)(x.NodeName)) = 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, yys2863) } // end switch yys2863 } // end for yyj2863 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 yyj2869 int var yyb2869 bool var yyhl2869 bool = l >= 0 yyj2869++ if yyhl2869 { yyb2869 = yyj2869 > l } else { yyb2869 = r.CheckBreak() } if yyb2869 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.IP = "" } else { x.IP = string(r.DecodeString()) } yyj2869++ if yyhl2869 { yyb2869 = yyj2869 > l } else { yyb2869 = r.CheckBreak() } if yyb2869 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hostname = "" } else { x.Hostname = string(r.DecodeString()) } yyj2869++ if yyhl2869 { yyb2869 = yyj2869 > l } else { yyb2869 = r.CheckBreak() } if yyb2869 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.NodeName != nil { x.NodeName = nil } } else { if x.NodeName == nil { x.NodeName = new(string) } yym2873 := z.DecBinary() _ = yym2873 if false { } else { *((*string)(x.NodeName)) = r.DecodeString() } } yyj2869++ if yyhl2869 { yyb2869 = yyj2869 > l } else { yyb2869 = r.CheckBreak() } if yyb2869 { 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 { yyj2869++ if yyhl2869 { yyb2869 = yyj2869 > l } else { yyb2869 = r.CheckBreak() } if yyb2869 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2869-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 { yym2875 := z.EncBinary() _ = yym2875 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2876 := !z.EncBinary() yy2arr2876 := z.EncBasicHandle().StructToArray var yyq2876 [3]bool _, _, _ = yysep2876, yyq2876, yy2arr2876 const yyr2876 bool = false var yynn2876 int if yyr2876 || yy2arr2876 { r.EncodeArrayStart(3) } else { yynn2876 = 3 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_containerArrayElem1234) yym2881 := z.EncBinary() _ = yym2881 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2882 := z.EncBinary() _ = yym2882 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2876 || yy2arr2876 { 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 yyr2876 || yy2arr2876 { 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 yym2884 := z.DecBinary() _ = yym2884 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2885 := r.ContainerType() if yyct2885 == codecSelferValueTypeMap1234 { yyl2885 := r.ReadMapStart() if yyl2885 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2885, d) } } else if yyct2885 == codecSelferValueTypeArray1234 { yyl2885 := r.ReadArrayStart() if yyl2885 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2885, 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 yys2886Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2886Slc var yyhl2886 bool = l >= 0 for yyj2886 := 0; ; yyj2886++ { if yyhl2886 { if yyj2886 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2886Slc = r.DecodeBytes(yys2886Slc, true, true) yys2886 := string(yys2886Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2886 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } case "Protocol": if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys2886) } // end switch yys2886 } // end for yyj2886 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 yyj2890 int var yyb2890 bool var yyhl2890 bool = l >= 0 yyj2890++ if yyhl2890 { yyb2890 = yyj2890 > l } else { yyb2890 = r.CheckBreak() } if yyb2890 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj2890++ if yyhl2890 { yyb2890 = yyj2890 > l } else { yyb2890 = r.CheckBreak() } if yyb2890 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } yyj2890++ if yyhl2890 { yyb2890 = yyj2890 > l } else { yyb2890 = r.CheckBreak() } if yyb2890 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Protocol = "" } else { x.Protocol = Protocol(r.DecodeString()) } for { yyj2890++ if yyhl2890 { yyb2890 = yyj2890 > l } else { yyb2890 = r.CheckBreak() } if yyb2890 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2890-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 { yym2894 := z.EncBinary() _ = yym2894 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2895 := !z.EncBinary() yy2arr2895 := z.EncBasicHandle().StructToArray var yyq2895 [4]bool _, _, _ = yysep2895, yyq2895, yy2arr2895 const yyr2895 bool = false yyq2895[0] = x.Kind != "" yyq2895[1] = x.APIVersion != "" yyq2895[2] = true var yynn2895 int if yyr2895 || yy2arr2895 { r.EncodeArrayStart(4) } else { yynn2895 = 1 for _, b := range yyq2895 { if b { yynn2895++ } } r.EncodeMapStart(yynn2895) yynn2895 = 0 } if yyr2895 || yy2arr2895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2895[0] { yym2897 := z.EncBinary() _ = yym2897 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2895[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2898 := z.EncBinary() _ = yym2898 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr2895 || yy2arr2895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2895[1] { yym2900 := z.EncBinary() _ = yym2900 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2895[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2901 := z.EncBinary() _ = yym2901 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr2895 || yy2arr2895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2895[2] { yy2903 := &x.ListMeta yym2904 := z.EncBinary() _ = yym2904 if false { } else if z.HasExtensions() && z.EncExt(yy2903) { } else { z.EncFallback(yy2903) } } else { r.EncodeNil() } } else { if yyq2895[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2905 := &x.ListMeta yym2906 := z.EncBinary() _ = yym2906 if false { } else if z.HasExtensions() && z.EncExt(yy2905) { } else { z.EncFallback(yy2905) } } } if yyr2895 || yy2arr2895 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym2908 := z.EncBinary() _ = yym2908 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 { yym2909 := z.EncBinary() _ = yym2909 if false { } else { h.encSliceEndpoints(([]Endpoints)(x.Items), e) } } } if yyr2895 || yy2arr2895 { 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 yym2910 := z.DecBinary() _ = yym2910 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2911 := r.ContainerType() if yyct2911 == codecSelferValueTypeMap1234 { yyl2911 := r.ReadMapStart() if yyl2911 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2911, d) } } else if yyct2911 == codecSelferValueTypeArray1234 { yyl2911 := r.ReadArrayStart() if yyl2911 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2911, 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 yys2912Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2912Slc var yyhl2912 bool = l >= 0 for yyj2912 := 0; ; yyj2912++ { if yyhl2912 { if yyj2912 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2912Slc = r.DecodeBytes(yys2912Slc, true, true) yys2912 := string(yys2912Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2912 { 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 { yyv2915 := &x.ListMeta yym2916 := z.DecBinary() _ = yym2916 if false { } else if z.HasExtensions() && z.DecExt(yyv2915) { } else { z.DecFallback(yyv2915, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv2917 := &x.Items yym2918 := z.DecBinary() _ = yym2918 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2917), d) } } default: z.DecStructFieldNotFound(-1, yys2912) } // end switch yys2912 } // end for yyj2912 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 yyj2919 int var yyb2919 bool var yyhl2919 bool = l >= 0 yyj2919++ if yyhl2919 { yyb2919 = yyj2919 > l } else { yyb2919 = r.CheckBreak() } if yyb2919 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj2919++ if yyhl2919 { yyb2919 = yyj2919 > l } else { yyb2919 = r.CheckBreak() } if yyb2919 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj2919++ if yyhl2919 { yyb2919 = yyj2919 > l } else { yyb2919 = r.CheckBreak() } if yyb2919 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv2922 := &x.ListMeta yym2923 := z.DecBinary() _ = yym2923 if false { } else if z.HasExtensions() && z.DecExt(yyv2922) { } else { z.DecFallback(yyv2922, false) } } yyj2919++ if yyhl2919 { yyb2919 = yyj2919 > l } else { yyb2919 = r.CheckBreak() } if yyb2919 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv2924 := &x.Items yym2925 := z.DecBinary() _ = yym2925 if false { } else { h.decSliceEndpoints((*[]Endpoints)(yyv2924), d) } } for { yyj2919++ if yyhl2919 { yyb2919 = yyj2919 > l } else { yyb2919 = r.CheckBreak() } if yyb2919 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2919-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 { yym2926 := z.EncBinary() _ = yym2926 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2927 := !z.EncBinary() yy2arr2927 := z.EncBasicHandle().StructToArray var yyq2927 [4]bool _, _, _ = yysep2927, yyq2927, yy2arr2927 const yyr2927 bool = false yyq2927[0] = x.PodCIDR != "" yyq2927[1] = x.ExternalID != "" yyq2927[2] = x.ProviderID != "" yyq2927[3] = x.Unschedulable != false var yynn2927 int if yyr2927 || yy2arr2927 { r.EncodeArrayStart(4) } else { yynn2927 = 0 for _, b := range yyq2927 { if b { yynn2927++ } } r.EncodeMapStart(yynn2927) yynn2927 = 0 } if yyr2927 || yy2arr2927 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2927[0] { yym2929 := z.EncBinary() _ = yym2929 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2927[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podCIDR")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2930 := z.EncBinary() _ = yym2930 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR)) } } } if yyr2927 || yy2arr2927 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2927[1] { yym2932 := z.EncBinary() _ = yym2932 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2927[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("externalID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2933 := z.EncBinary() _ = yym2933 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID)) } } } if yyr2927 || yy2arr2927 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2927[2] { yym2935 := z.EncBinary() _ = yym2935 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq2927[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("providerID")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2936 := z.EncBinary() _ = yym2936 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID)) } } } if yyr2927 || yy2arr2927 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2927[3] { yym2938 := z.EncBinary() _ = yym2938 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } else { r.EncodeBool(false) } } else { if yyq2927[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("unschedulable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2939 := z.EncBinary() _ = yym2939 if false { } else { r.EncodeBool(bool(x.Unschedulable)) } } } if yyr2927 || yy2arr2927 { 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 yym2940 := z.DecBinary() _ = yym2940 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2941 := r.ContainerType() if yyct2941 == codecSelferValueTypeMap1234 { yyl2941 := r.ReadMapStart() if yyl2941 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2941, d) } } else if yyct2941 == codecSelferValueTypeArray1234 { yyl2941 := r.ReadArrayStart() if yyl2941 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2941, 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 yys2942Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2942Slc var yyhl2942 bool = l >= 0 for yyj2942 := 0; ; yyj2942++ { if yyhl2942 { if yyj2942 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2942Slc = r.DecodeBytes(yys2942Slc, true, true) yys2942 := string(yys2942Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2942 { 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, yys2942) } // end switch yys2942 } // end for yyj2942 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 yyj2947 int var yyb2947 bool var yyhl2947 bool = l >= 0 yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodCIDR = "" } else { x.PodCIDR = string(r.DecodeString()) } yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ExternalID = "" } else { x.ExternalID = string(r.DecodeString()) } yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ProviderID = "" } else { x.ProviderID = string(r.DecodeString()) } yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Unschedulable = false } else { x.Unschedulable = bool(r.DecodeBool()) } for { yyj2947++ if yyhl2947 { yyb2947 = yyj2947 > l } else { yyb2947 = r.CheckBreak() } if yyb2947 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2947-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 { yym2952 := z.EncBinary() _ = yym2952 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2953 := !z.EncBinary() yy2arr2953 := z.EncBasicHandle().StructToArray var yyq2953 [1]bool _, _, _ = yysep2953, yyq2953, yy2arr2953 const yyr2953 bool = false var yynn2953 int if yyr2953 || yy2arr2953 { r.EncodeArrayStart(1) } else { yynn2953 = 1 for _, b := range yyq2953 { if b { yynn2953++ } } r.EncodeMapStart(yynn2953) yynn2953 = 0 } if yyr2953 || yy2arr2953 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2955 := z.EncBinary() _ = yym2955 if false { } else { r.EncodeInt(int64(x.Port)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Port")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym2956 := z.EncBinary() _ = yym2956 if false { } else { r.EncodeInt(int64(x.Port)) } } if yyr2953 || yy2arr2953 { 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 yym2957 := z.DecBinary() _ = yym2957 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2958 := r.ContainerType() if yyct2958 == codecSelferValueTypeMap1234 { yyl2958 := r.ReadMapStart() if yyl2958 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2958, d) } } else if yyct2958 == codecSelferValueTypeArray1234 { yyl2958 := r.ReadArrayStart() if yyl2958 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2958, 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 yys2959Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2959Slc var yyhl2959 bool = l >= 0 for yyj2959 := 0; ; yyj2959++ { if yyhl2959 { if yyj2959 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2959Slc = r.DecodeBytes(yys2959Slc, true, true) yys2959 := string(yys2959Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2959 { case "Port": if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } default: z.DecStructFieldNotFound(-1, yys2959) } // end switch yys2959 } // end for yyj2959 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 yyj2961 int var yyb2961 bool var yyhl2961 bool = l >= 0 yyj2961++ if yyhl2961 { yyb2961 = yyj2961 > l } else { yyb2961 = r.CheckBreak() } if yyb2961 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Port = 0 } else { x.Port = int32(r.DecodeInt(32)) } for { yyj2961++ if yyhl2961 { yyb2961 = yyj2961 > l } else { yyb2961 = r.CheckBreak() } if yyb2961 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2961-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 { yym2963 := z.EncBinary() _ = yym2963 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2964 := !z.EncBinary() yy2arr2964 := z.EncBasicHandle().StructToArray var yyq2964 [1]bool _, _, _ = yysep2964, yyq2964, yy2arr2964 const yyr2964 bool = false yyq2964[0] = true var yynn2964 int if yyr2964 || yy2arr2964 { r.EncodeArrayStart(1) } else { yynn2964 = 0 for _, b := range yyq2964 { if b { yynn2964++ } } r.EncodeMapStart(yynn2964) yynn2964 = 0 } if yyr2964 || yy2arr2964 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq2964[0] { yy2966 := &x.KubeletEndpoint yy2966.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq2964[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy2967 := &x.KubeletEndpoint yy2967.CodecEncodeSelf(e) } } if yyr2964 || yy2arr2964 { 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 yym2968 := z.DecBinary() _ = yym2968 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct2969 := r.ContainerType() if yyct2969 == codecSelferValueTypeMap1234 { yyl2969 := r.ReadMapStart() if yyl2969 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl2969, d) } } else if yyct2969 == codecSelferValueTypeArray1234 { yyl2969 := r.ReadArrayStart() if yyl2969 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl2969, 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 yys2970Slc = z.DecScratchBuffer() // default slice to decode into _ = yys2970Slc var yyhl2970 bool = l >= 0 for yyj2970 := 0; ; yyj2970++ { if yyhl2970 { if yyj2970 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys2970Slc = r.DecodeBytes(yys2970Slc, true, true) yys2970 := string(yys2970Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys2970 { case "kubeletEndpoint": if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2971 := &x.KubeletEndpoint yyv2971.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys2970) } // end switch yys2970 } // end for yyj2970 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 yyj2972 int var yyb2972 bool var yyhl2972 bool = l >= 0 yyj2972++ if yyhl2972 { yyb2972 = yyj2972 > l } else { yyb2972 = r.CheckBreak() } if yyb2972 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletEndpoint = DaemonEndpoint{} } else { yyv2973 := &x.KubeletEndpoint yyv2973.CodecDecodeSelf(d) } for { yyj2972++ if yyhl2972 { yyb2972 = yyj2972 > l } else { yyb2972 = r.CheckBreak() } if yyb2972 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj2972-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 { yym2974 := z.EncBinary() _ = yym2974 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep2975 := !z.EncBinary() yy2arr2975 := z.EncBasicHandle().StructToArray var yyq2975 [10]bool _, _, _ = yysep2975, yyq2975, yy2arr2975 const yyr2975 bool = false var yynn2975 int if yyr2975 || yy2arr2975 { r.EncodeArrayStart(10) } else { yynn2975 = 10 for _, b := range yyq2975 { if b { yynn2975++ } } r.EncodeMapStart(yynn2975) yynn2975 = 0 } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2977 := z.EncBinary() _ = yym2977 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) yym2978 := z.EncBinary() _ = yym2978 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.MachineID)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2980 := z.EncBinary() _ = yym2980 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) yym2981 := z.EncBinary() _ = yym2981 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2983 := z.EncBinary() _ = yym2983 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) yym2984 := z.EncBinary() _ = yym2984 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.BootID)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2986 := z.EncBinary() _ = yym2986 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) yym2987 := z.EncBinary() _ = yym2987 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2989 := z.EncBinary() _ = yym2989 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) yym2990 := z.EncBinary() _ = yym2990 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OSImage)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2992 := z.EncBinary() _ = yym2992 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) yym2993 := z.EncBinary() _ = yym2993 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2995 := z.EncBinary() _ = yym2995 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) yym2996 := z.EncBinary() _ = yym2996 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym2998 := z.EncBinary() _ = yym2998 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) yym2999 := z.EncBinary() _ = yym2999 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3001 := z.EncBinary() _ = yym3001 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("operatingSystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3002 := z.EncBinary() _ = yym3002 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem)) } } if yyr2975 || yy2arr2975 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3004 := z.EncBinary() _ = yym3004 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("architecture")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3005 := z.EncBinary() _ = yym3005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Architecture)) } } if yyr2975 || yy2arr2975 { 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 yym3006 := z.DecBinary() _ = yym3006 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3007 := r.ContainerType() if yyct3007 == codecSelferValueTypeMap1234 { yyl3007 := r.ReadMapStart() if yyl3007 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3007, d) } } else if yyct3007 == codecSelferValueTypeArray1234 { yyl3007 := r.ReadArrayStart() if yyl3007 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3007, 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 yys3008Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3008Slc var yyhl3008 bool = l >= 0 for yyj3008 := 0; ; yyj3008++ { if yyhl3008 { if yyj3008 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3008Slc = r.DecodeBytes(yys3008Slc, true, true) yys3008 := string(yys3008Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3008 { 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()) } case "operatingSystem": if r.TryDecodeAsNil() { x.OperatingSystem = "" } else { x.OperatingSystem = string(r.DecodeString()) } case "architecture": if r.TryDecodeAsNil() { x.Architecture = "" } else { x.Architecture = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3008) } // end switch yys3008 } // end for yyj3008 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 yyj3019 int var yyb3019 bool var yyhl3019 bool = l >= 0 yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MachineID = "" } else { x.MachineID = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SystemUUID = "" } else { x.SystemUUID = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.BootID = "" } else { x.BootID = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KernelVersion = "" } else { x.KernelVersion = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OSImage = "" } else { x.OSImage = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ContainerRuntimeVersion = "" } else { x.ContainerRuntimeVersion = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeletVersion = "" } else { x.KubeletVersion = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.KubeProxyVersion = "" } else { x.KubeProxyVersion = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.OperatingSystem = "" } else { x.OperatingSystem = string(r.DecodeString()) } yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Architecture = "" } else { x.Architecture = string(r.DecodeString()) } for { yyj3019++ if yyhl3019 { yyb3019 = yyj3019 > l } else { yyb3019 = r.CheckBreak() } if yyb3019 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3019-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 { yym3030 := z.EncBinary() _ = yym3030 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3031 := !z.EncBinary() yy2arr3031 := z.EncBasicHandle().StructToArray var yyq3031 [10]bool _, _, _ = yysep3031, yyq3031, yy2arr3031 const yyr3031 bool = false yyq3031[0] = len(x.Capacity) != 0 yyq3031[1] = len(x.Allocatable) != 0 yyq3031[2] = x.Phase != "" yyq3031[3] = len(x.Conditions) != 0 yyq3031[4] = len(x.Addresses) != 0 yyq3031[5] = true yyq3031[6] = true yyq3031[7] = len(x.Images) != 0 yyq3031[8] = len(x.VolumesInUse) != 0 yyq3031[9] = len(x.VolumesAttached) != 0 var yynn3031 int if yyr3031 || yy2arr3031 { r.EncodeArrayStart(10) } else { yynn3031 = 0 for _, b := range yyq3031 { if b { yynn3031++ } } r.EncodeMapStart(yynn3031) yynn3031 = 0 } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3031[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 yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[1] { if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3031[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("allocatable")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Allocatable == nil { r.EncodeNil() } else { x.Allocatable.CodecEncodeSelf(e) } } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[2] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3031[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[3] { if x.Conditions == nil { r.EncodeNil() } else { yym3036 := z.EncBinary() _ = yym3036 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq3031[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym3037 := z.EncBinary() _ = yym3037 if false { } else { h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e) } } } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[4] { if x.Addresses == nil { r.EncodeNil() } else { yym3039 := z.EncBinary() _ = yym3039 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } else { r.EncodeNil() } } else { if yyq3031[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("addresses")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Addresses == nil { r.EncodeNil() } else { yym3040 := z.EncBinary() _ = yym3040 if false { } else { h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e) } } } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[5] { yy3042 := &x.DaemonEndpoints yy3042.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3031[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3043 := &x.DaemonEndpoints yy3043.CodecEncodeSelf(e) } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[6] { yy3045 := &x.NodeInfo yy3045.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3031[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("nodeInfo")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3046 := &x.NodeInfo yy3046.CodecEncodeSelf(e) } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[7] { if x.Images == nil { r.EncodeNil() } else { yym3048 := z.EncBinary() _ = yym3048 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } else { r.EncodeNil() } } else { if yyq3031[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("images")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Images == nil { r.EncodeNil() } else { yym3049 := z.EncBinary() _ = yym3049 if false { } else { h.encSliceContainerImage(([]ContainerImage)(x.Images), e) } } } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[8] { if x.VolumesInUse == nil { r.EncodeNil() } else { yym3051 := z.EncBinary() _ = yym3051 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) } } } else { r.EncodeNil() } } else { if yyq3031[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesInUse")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesInUse == nil { r.EncodeNil() } else { yym3052 := z.EncBinary() _ = yym3052 if false { } else { h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e) } } } } if yyr3031 || yy2arr3031 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3031[9] { if x.VolumesAttached == nil { r.EncodeNil() } else { yym3054 := z.EncBinary() _ = yym3054 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) } } } else { r.EncodeNil() } } else { if yyq3031[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("volumesAttached")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.VolumesAttached == nil { r.EncodeNil() } else { yym3055 := z.EncBinary() _ = yym3055 if false { } else { h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e) } } } } if yyr3031 || yy2arr3031 { 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 yym3056 := z.DecBinary() _ = yym3056 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3057 := r.ContainerType() if yyct3057 == codecSelferValueTypeMap1234 { yyl3057 := r.ReadMapStart() if yyl3057 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3057, d) } } else if yyct3057 == codecSelferValueTypeArray1234 { yyl3057 := r.ReadArrayStart() if yyl3057 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3057, 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 yys3058Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3058Slc var yyhl3058 bool = l >= 0 for yyj3058 := 0; ; yyj3058++ { if yyhl3058 { if yyj3058 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3058Slc = r.DecodeBytes(yys3058Slc, true, true) yys3058 := string(yys3058Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3058 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3059 := &x.Capacity yyv3059.CodecDecodeSelf(d) } case "allocatable": if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv3060 := &x.Allocatable yyv3060.CodecDecodeSelf(d) } case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3062 := &x.Conditions yym3063 := z.DecBinary() _ = yym3063 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv3062), d) } } case "addresses": if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv3064 := &x.Addresses yym3065 := z.DecBinary() _ = yym3065 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv3064), d) } } case "daemonEndpoints": if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv3066 := &x.DaemonEndpoints yyv3066.CodecDecodeSelf(d) } case "nodeInfo": if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv3067 := &x.NodeInfo yyv3067.CodecDecodeSelf(d) } case "images": if r.TryDecodeAsNil() { x.Images = nil } else { yyv3068 := &x.Images yym3069 := z.DecBinary() _ = yym3069 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv3068), d) } } case "volumesInUse": if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { yyv3070 := &x.VolumesInUse yym3071 := z.DecBinary() _ = yym3071 if false { } else { h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3070), d) } } case "volumesAttached": if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { yyv3072 := &x.VolumesAttached yym3073 := z.DecBinary() _ = yym3073 if false { } else { h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3072), d) } } default: z.DecStructFieldNotFound(-1, yys3058) } // end switch yys3058 } // end for yyj3058 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 yyj3074 int var yyb3074 bool var yyhl3074 bool = l >= 0 yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3075 := &x.Capacity yyv3075.CodecDecodeSelf(d) } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Allocatable = nil } else { yyv3076 := &x.Allocatable yyv3076.CodecDecodeSelf(d) } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NodePhase(r.DecodeString()) } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv3078 := &x.Conditions yym3079 := z.DecBinary() _ = yym3079 if false { } else { h.decSliceNodeCondition((*[]NodeCondition)(yyv3078), d) } } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Addresses = nil } else { yyv3080 := &x.Addresses yym3081 := z.DecBinary() _ = yym3081 if false { } else { h.decSliceNodeAddress((*[]NodeAddress)(yyv3080), d) } } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DaemonEndpoints = NodeDaemonEndpoints{} } else { yyv3082 := &x.DaemonEndpoints yyv3082.CodecDecodeSelf(d) } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.NodeInfo = NodeSystemInfo{} } else { yyv3083 := &x.NodeInfo yyv3083.CodecDecodeSelf(d) } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Images = nil } else { yyv3084 := &x.Images yym3085 := z.DecBinary() _ = yym3085 if false { } else { h.decSliceContainerImage((*[]ContainerImage)(yyv3084), d) } } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumesInUse = nil } else { yyv3086 := &x.VolumesInUse yym3087 := z.DecBinary() _ = yym3087 if false { } else { h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv3086), d) } } yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.VolumesAttached = nil } else { yyv3088 := &x.VolumesAttached yym3089 := z.DecBinary() _ = yym3089 if false { } else { h.decSliceAttachedVolume((*[]AttachedVolume)(yyv3088), d) } } for { yyj3074++ if yyhl3074 { yyb3074 = yyj3074 > l } else { yyb3074 = r.CheckBreak() } if yyb3074 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3074-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3090 := z.EncBinary() _ = yym3090 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3091 := z.DecBinary() _ = yym3091 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3092 := z.EncBinary() _ = yym3092 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3093 := !z.EncBinary() yy2arr3093 := z.EncBasicHandle().StructToArray var yyq3093 [2]bool _, _, _ = yysep3093, yyq3093, yy2arr3093 const yyr3093 bool = false var yynn3093 int if yyr3093 || yy2arr3093 { r.EncodeArrayStart(2) } else { yynn3093 = 2 for _, b := range yyq3093 { if b { yynn3093++ } } r.EncodeMapStart(yynn3093) yynn3093 = 0 } if yyr3093 || yy2arr3093 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) x.Name.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Name.CodecEncodeSelf(e) } if yyr3093 || yy2arr3093 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3096 := z.EncBinary() _ = yym3096 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("devicePath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3097 := z.EncBinary() _ = yym3097 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath)) } } if yyr3093 || yy2arr3093 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3098 := z.DecBinary() _ = yym3098 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3099 := r.ContainerType() if yyct3099 == codecSelferValueTypeMap1234 { yyl3099 := r.ReadMapStart() if yyl3099 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3099, d) } } else if yyct3099 == codecSelferValueTypeArray1234 { yyl3099 := r.ReadArrayStart() if yyl3099 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3099, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3100Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3100Slc var yyhl3100 bool = l >= 0 for yyj3100 := 0; ; yyj3100++ { if yyhl3100 { if yyj3100 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3100Slc = r.DecodeBytes(yys3100Slc, true, true) yys3100 := string(yys3100Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3100 { case "name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = UniqueVolumeName(r.DecodeString()) } case "devicePath": if r.TryDecodeAsNil() { x.DevicePath = "" } else { x.DevicePath = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3100) } // end switch yys3100 } // end for yyj3100 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3103 int var yyb3103 bool var yyhl3103 bool = l >= 0 yyj3103++ if yyhl3103 { yyb3103 = yyj3103 > l } else { yyb3103 = r.CheckBreak() } if yyb3103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = UniqueVolumeName(r.DecodeString()) } yyj3103++ if yyhl3103 { yyb3103 = yyj3103 > l } else { yyb3103 = r.CheckBreak() } if yyb3103 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DevicePath = "" } else { x.DevicePath = string(r.DecodeString()) } for { yyj3103++ if yyhl3103 { yyb3103 = yyj3103 > l } else { yyb3103 = r.CheckBreak() } if yyb3103 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3103-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3106 := z.EncBinary() _ = yym3106 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3107 := !z.EncBinary() yy2arr3107 := z.EncBasicHandle().StructToArray var yyq3107 [1]bool _, _, _ = yysep3107, yyq3107, yy2arr3107 const yyr3107 bool = false yyq3107[0] = len(x.PreferAvoidPods) != 0 var yynn3107 int if yyr3107 || yy2arr3107 { r.EncodeArrayStart(1) } else { yynn3107 = 0 for _, b := range yyq3107 { if b { yynn3107++ } } r.EncodeMapStart(yynn3107) yynn3107 = 0 } if yyr3107 || yy2arr3107 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3107[0] { if x.PreferAvoidPods == nil { r.EncodeNil() } else { yym3109 := z.EncBinary() _ = yym3109 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) } } } else { r.EncodeNil() } } else { if yyq3107[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PreferAvoidPods == nil { r.EncodeNil() } else { yym3110 := z.EncBinary() _ = yym3110 if false { } else { h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e) } } } } if yyr3107 || yy2arr3107 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3111 := z.DecBinary() _ = yym3111 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3112 := r.ContainerType() if yyct3112 == codecSelferValueTypeMap1234 { yyl3112 := r.ReadMapStart() if yyl3112 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3112, d) } } else if yyct3112 == codecSelferValueTypeArray1234 { yyl3112 := r.ReadArrayStart() if yyl3112 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3112, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3113Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3113Slc var yyhl3113 bool = l >= 0 for yyj3113 := 0; ; yyj3113++ { if yyhl3113 { if yyj3113 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3113Slc = r.DecodeBytes(yys3113Slc, true, true) yys3113 := string(yys3113Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3113 { case "preferAvoidPods": if r.TryDecodeAsNil() { x.PreferAvoidPods = nil } else { yyv3114 := &x.PreferAvoidPods yym3115 := z.DecBinary() _ = yym3115 if false { } else { h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3114), d) } } default: z.DecStructFieldNotFound(-1, yys3113) } // end switch yys3113 } // end for yyj3113 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *AvoidPods) 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.PreferAvoidPods = nil } else { yyv3117 := &x.PreferAvoidPods yym3118 := z.DecBinary() _ = yym3118 if false { } else { h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3117), 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 *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3119 := z.EncBinary() _ = yym3119 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3120 := !z.EncBinary() yy2arr3120 := z.EncBasicHandle().StructToArray var yyq3120 [4]bool _, _, _ = yysep3120, yyq3120, yy2arr3120 const yyr3120 bool = false yyq3120[1] = true yyq3120[2] = x.Reason != "" yyq3120[3] = x.Message != "" var yynn3120 int if yyr3120 || yy2arr3120 { r.EncodeArrayStart(4) } else { yynn3120 = 1 for _, b := range yyq3120 { if b { yynn3120++ } } r.EncodeMapStart(yynn3120) yynn3120 = 0 } if yyr3120 || yy2arr3120 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3122 := &x.PodSignature yy3122.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podSignature")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3123 := &x.PodSignature yy3123.CodecEncodeSelf(e) } if yyr3120 || yy2arr3120 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3120[1] { yy3125 := &x.EvictionTime yym3126 := z.EncBinary() _ = yym3126 if false { } else if z.HasExtensions() && z.EncExt(yy3125) { } else if yym3126 { z.EncBinaryMarshal(yy3125) } else if !yym3126 && z.IsJSONHandle() { z.EncJSONMarshal(yy3125) } else { z.EncFallback(yy3125) } } else { r.EncodeNil() } } else { if yyq3120[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("evictionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3127 := &x.EvictionTime yym3128 := z.EncBinary() _ = yym3128 if false { } else if z.HasExtensions() && z.EncExt(yy3127) { } else if yym3128 { z.EncBinaryMarshal(yy3127) } else if !yym3128 && z.IsJSONHandle() { z.EncJSONMarshal(yy3127) } else { z.EncFallback(yy3127) } } } if yyr3120 || yy2arr3120 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3120[2] { yym3130 := z.EncBinary() _ = yym3130 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3120[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3131 := z.EncBinary() _ = yym3131 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3120 || yy2arr3120 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3120[3] { yym3133 := z.EncBinary() _ = yym3133 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3120[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3134 := z.EncBinary() _ = yym3134 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3120 || yy2arr3120 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3135 := z.DecBinary() _ = yym3135 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3136 := r.ContainerType() if yyct3136 == codecSelferValueTypeMap1234 { yyl3136 := r.ReadMapStart() if yyl3136 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3136, d) } } else if yyct3136 == codecSelferValueTypeArray1234 { yyl3136 := r.ReadArrayStart() if yyl3136 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3136, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3137Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3137Slc var yyhl3137 bool = l >= 0 for yyj3137 := 0; ; yyj3137++ { if yyhl3137 { if yyj3137 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3137Slc = r.DecodeBytes(yys3137Slc, true, true) yys3137 := string(yys3137Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3137 { case "podSignature": if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { yyv3138 := &x.PodSignature yyv3138.CodecDecodeSelf(d) } case "evictionTime": if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { yyv3139 := &x.EvictionTime yym3140 := z.DecBinary() _ = yym3140 if false { } else if z.HasExtensions() && z.DecExt(yyv3139) { } else if yym3140 { z.DecBinaryUnmarshal(yyv3139) } else if !yym3140 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3139) } else { z.DecFallback(yyv3139, 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, yys3137) } // end switch yys3137 } // end for yyj3137 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3143 int var yyb3143 bool var yyhl3143 bool = l >= 0 yyj3143++ if yyhl3143 { yyb3143 = yyj3143 > l } else { yyb3143 = r.CheckBreak() } if yyb3143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.PodSignature = PodSignature{} } else { yyv3144 := &x.PodSignature yyv3144.CodecDecodeSelf(d) } yyj3143++ if yyhl3143 { yyb3143 = yyj3143 > l } else { yyb3143 = r.CheckBreak() } if yyb3143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.EvictionTime = pkg2_unversioned.Time{} } else { yyv3145 := &x.EvictionTime yym3146 := z.DecBinary() _ = yym3146 if false { } else if z.HasExtensions() && z.DecExt(yyv3145) { } else if yym3146 { z.DecBinaryUnmarshal(yyv3145) } else if !yym3146 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3145) } else { z.DecFallback(yyv3145, false) } } yyj3143++ if yyhl3143 { yyb3143 = yyj3143 > l } else { yyb3143 = r.CheckBreak() } if yyb3143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3143++ if yyhl3143 { yyb3143 = yyj3143 > l } else { yyb3143 = r.CheckBreak() } if yyb3143 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj3143++ if yyhl3143 { yyb3143 = yyj3143 > l } else { yyb3143 = r.CheckBreak() } if yyb3143 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3143-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3149 := z.EncBinary() _ = yym3149 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3150 := !z.EncBinary() yy2arr3150 := z.EncBasicHandle().StructToArray var yyq3150 [1]bool _, _, _ = yysep3150, yyq3150, yy2arr3150 const yyr3150 bool = false yyq3150[0] = x.PodController != nil var yynn3150 int if yyr3150 || yy2arr3150 { r.EncodeArrayStart(1) } else { yynn3150 = 0 for _, b := range yyq3150 { if b { yynn3150++ } } r.EncodeMapStart(yynn3150) yynn3150 = 0 } if yyr3150 || yy2arr3150 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3150[0] { if x.PodController == nil { r.EncodeNil() } else { x.PodController.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3150[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("podController")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.PodController == nil { r.EncodeNil() } else { x.PodController.CodecEncodeSelf(e) } } } if yyr3150 || yy2arr3150 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3152 := z.DecBinary() _ = yym3152 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3153 := r.ContainerType() if yyct3153 == codecSelferValueTypeMap1234 { yyl3153 := r.ReadMapStart() if yyl3153 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3153, d) } } else if yyct3153 == codecSelferValueTypeArray1234 { yyl3153 := r.ReadArrayStart() if yyl3153 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3153, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3154Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3154Slc var yyhl3154 bool = l >= 0 for yyj3154 := 0; ; yyj3154++ { if yyhl3154 { if yyj3154 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3154Slc = r.DecodeBytes(yys3154Slc, true, true) yys3154 := string(yys3154Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3154 { case "podController": if r.TryDecodeAsNil() { if x.PodController != nil { x.PodController = nil } } else { if x.PodController == nil { x.PodController = new(OwnerReference) } x.PodController.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3154) } // end switch yys3154 } // end for yyj3154 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3156 int var yyb3156 bool var yyhl3156 bool = l >= 0 yyj3156++ if yyhl3156 { yyb3156 = yyj3156 > l } else { yyb3156 = r.CheckBreak() } if yyb3156 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.PodController != nil { x.PodController = nil } } else { if x.PodController == nil { x.PodController = new(OwnerReference) } x.PodController.CodecDecodeSelf(d) } for { yyj3156++ if yyhl3156 { yyb3156 = yyj3156 > l } else { yyb3156 = r.CheckBreak() } if yyb3156 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3156-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3158 := z.EncBinary() _ = yym3158 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3159 := !z.EncBinary() yy2arr3159 := z.EncBasicHandle().StructToArray var yyq3159 [2]bool _, _, _ = yysep3159, yyq3159, yy2arr3159 const yyr3159 bool = false yyq3159[1] = x.SizeBytes != 0 var yynn3159 int if yyr3159 || yy2arr3159 { r.EncodeArrayStart(2) } else { yynn3159 = 1 for _, b := range yyq3159 { if b { yynn3159++ } } r.EncodeMapStart(yynn3159) yynn3159 = 0 } if yyr3159 || yy2arr3159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Names == nil { r.EncodeNil() } else { yym3161 := z.EncBinary() _ = yym3161 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("names")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Names == nil { r.EncodeNil() } else { yym3162 := z.EncBinary() _ = yym3162 if false { } else { z.F.EncSliceStringV(x.Names, false, e) } } } if yyr3159 || yy2arr3159 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3159[1] { yym3164 := z.EncBinary() _ = yym3164 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } else { r.EncodeInt(0) } } else { if yyq3159[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("sizeBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3165 := z.EncBinary() _ = yym3165 if false { } else { r.EncodeInt(int64(x.SizeBytes)) } } } if yyr3159 || yy2arr3159 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ContainerImage) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r 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 *ContainerImage) 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 "names": if r.TryDecodeAsNil() { x.Names = nil } else { yyv3169 := &x.Names yym3170 := z.DecBinary() _ = yym3170 if false { } else { z.F.DecSliceStringX(yyv3169, false, d) } } case "sizeBytes": if r.TryDecodeAsNil() { x.SizeBytes = 0 } else { x.SizeBytes = int64(r.DecodeInt(64)) } default: z.DecStructFieldNotFound(-1, yys3168) } // end switch yys3168 } // end for yyj3168 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ContainerImage) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3172 int var yyb3172 bool var yyhl3172 bool = l >= 0 yyj3172++ if yyhl3172 { yyb3172 = yyj3172 > l } else { yyb3172 = r.CheckBreak() } if yyb3172 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Names = nil } else { yyv3173 := &x.Names yym3174 := z.DecBinary() _ = yym3174 if false { } else { z.F.DecSliceStringX(yyv3173, false, d) } } yyj3172++ if yyhl3172 { yyb3172 = yyj3172 > l } else { yyb3172 = r.CheckBreak() } if yyb3172 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.SizeBytes = 0 } else { x.SizeBytes = int64(r.DecodeInt(64)) } for { yyj3172++ if yyhl3172 { yyb3172 = yyj3172 > l } else { yyb3172 = r.CheckBreak() } if yyb3172 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3172-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3176 := z.EncBinary() _ = yym3176 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 yym3177 := z.DecBinary() _ = yym3177 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 yym3178 := z.EncBinary() _ = yym3178 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 yym3179 := z.DecBinary() _ = yym3179 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 { yym3180 := z.EncBinary() _ = yym3180 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3181 := !z.EncBinary() yy2arr3181 := z.EncBasicHandle().StructToArray var yyq3181 [6]bool _, _, _ = yysep3181, yyq3181, yy2arr3181 const yyr3181 bool = false yyq3181[2] = true yyq3181[3] = true yyq3181[4] = x.Reason != "" yyq3181[5] = x.Message != "" var yynn3181 int if yyr3181 || yy2arr3181 { r.EncodeArrayStart(6) } else { yynn3181 = 2 for _, b := range yyq3181 { if b { yynn3181++ } } r.EncodeMapStart(yynn3181) yynn3181 = 0 } if yyr3181 || yy2arr3181 { 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 yyr3181 || yy2arr3181 { 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 yyr3181 || yy2arr3181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3181[2] { yy3185 := &x.LastHeartbeatTime yym3186 := z.EncBinary() _ = yym3186 if false { } else if z.HasExtensions() && z.EncExt(yy3185) { } else if yym3186 { z.EncBinaryMarshal(yy3185) } else if !yym3186 && z.IsJSONHandle() { z.EncJSONMarshal(yy3185) } else { z.EncFallback(yy3185) } } else { r.EncodeNil() } } else { if yyq3181[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3187 := &x.LastHeartbeatTime yym3188 := z.EncBinary() _ = yym3188 if false { } else if z.HasExtensions() && z.EncExt(yy3187) { } else if yym3188 { z.EncBinaryMarshal(yy3187) } else if !yym3188 && z.IsJSONHandle() { z.EncJSONMarshal(yy3187) } else { z.EncFallback(yy3187) } } } if yyr3181 || yy2arr3181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3181[3] { yy3190 := &x.LastTransitionTime yym3191 := z.EncBinary() _ = yym3191 if false { } else if z.HasExtensions() && z.EncExt(yy3190) { } else if yym3191 { z.EncBinaryMarshal(yy3190) } else if !yym3191 && z.IsJSONHandle() { z.EncJSONMarshal(yy3190) } else { z.EncFallback(yy3190) } } else { r.EncodeNil() } } else { if yyq3181[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3192 := &x.LastTransitionTime yym3193 := z.EncBinary() _ = yym3193 if false { } else if z.HasExtensions() && z.EncExt(yy3192) { } else if yym3193 { z.EncBinaryMarshal(yy3192) } else if !yym3193 && z.IsJSONHandle() { z.EncJSONMarshal(yy3192) } else { z.EncFallback(yy3192) } } } if yyr3181 || yy2arr3181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3181[4] { yym3195 := z.EncBinary() _ = yym3195 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3181[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3196 := z.EncBinary() _ = yym3196 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3181 || yy2arr3181 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3181[5] { yym3198 := z.EncBinary() _ = yym3198 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3181[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3199 := z.EncBinary() _ = yym3199 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3181 || yy2arr3181 { 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 yym3200 := z.DecBinary() _ = yym3200 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3201 := r.ContainerType() if yyct3201 == codecSelferValueTypeMap1234 { yyl3201 := r.ReadMapStart() if yyl3201 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3201, d) } } else if yyct3201 == codecSelferValueTypeArray1234 { yyl3201 := r.ReadArrayStart() if yyl3201 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3201, 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 yys3202Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3202Slc var yyhl3202 bool = l >= 0 for yyj3202 := 0; ; yyj3202++ { if yyhl3202 { if yyj3202 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3202Slc = r.DecodeBytes(yys3202Slc, true, true) yys3202 := string(yys3202Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3202 { 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 { yyv3205 := &x.LastHeartbeatTime yym3206 := z.DecBinary() _ = yym3206 if false { } else if z.HasExtensions() && z.DecExt(yyv3205) { } else if yym3206 { z.DecBinaryUnmarshal(yyv3205) } else if !yym3206 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3205) } else { z.DecFallback(yyv3205, false) } } case "lastTransitionTime": if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv3207 := &x.LastTransitionTime yym3208 := z.DecBinary() _ = yym3208 if false { } else if z.HasExtensions() && z.DecExt(yyv3207) { } else if yym3208 { z.DecBinaryUnmarshal(yyv3207) } else if !yym3208 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3207) } else { z.DecFallback(yyv3207, 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, yys3202) } // end switch yys3202 } // end for yyj3202 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 yyj3211 int var yyb3211 bool var yyhl3211 bool = l >= 0 yyj3211++ if yyhl3211 { yyb3211 = yyj3211 > l } else { yyb3211 = r.CheckBreak() } if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeConditionType(r.DecodeString()) } yyj3211++ if yyhl3211 { yyb3211 = yyj3211 > l } else { yyb3211 = r.CheckBreak() } if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj3211++ if yyhl3211 { yyb3211 = yyj3211 > l } else { yyb3211 = r.CheckBreak() } if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastHeartbeatTime = pkg2_unversioned.Time{} } else { yyv3214 := &x.LastHeartbeatTime yym3215 := z.DecBinary() _ = yym3215 if false { } else if z.HasExtensions() && z.DecExt(yyv3214) { } else if yym3215 { z.DecBinaryUnmarshal(yyv3214) } else if !yym3215 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3214) } else { z.DecFallback(yyv3214, false) } } yyj3211++ if yyhl3211 { yyb3211 = yyj3211 > l } else { yyb3211 = r.CheckBreak() } if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTransitionTime = pkg2_unversioned.Time{} } else { yyv3216 := &x.LastTransitionTime yym3217 := z.DecBinary() _ = yym3217 if false { } else if z.HasExtensions() && z.DecExt(yyv3216) { } else if yym3217 { z.DecBinaryUnmarshal(yyv3216) } else if !yym3217 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3216) } else { z.DecFallback(yyv3216, false) } } yyj3211++ if yyhl3211 { yyb3211 = yyj3211 > l } else { yyb3211 = r.CheckBreak() } if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3211++ if yyhl3211 { yyb3211 = yyj3211 > l } else { yyb3211 = r.CheckBreak() } if yyb3211 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } for { yyj3211++ if yyhl3211 { yyb3211 = yyj3211 > l } else { yyb3211 = r.CheckBreak() } if yyb3211 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3211-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3220 := z.EncBinary() _ = yym3220 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 yym3221 := z.DecBinary() _ = yym3221 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 { yym3222 := z.EncBinary() _ = yym3222 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3223 := !z.EncBinary() yy2arr3223 := z.EncBasicHandle().StructToArray var yyq3223 [2]bool _, _, _ = yysep3223, yyq3223, yy2arr3223 const yyr3223 bool = false var yynn3223 int if yyr3223 || yy2arr3223 { r.EncodeArrayStart(2) } else { yynn3223 = 2 for _, b := range yyq3223 { if b { yynn3223++ } } r.EncodeMapStart(yynn3223) yynn3223 = 0 } if yyr3223 || yy2arr3223 { 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 yyr3223 || yy2arr3223 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3226 := z.EncBinary() _ = yym3226 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) yym3227 := z.EncBinary() _ = yym3227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Address)) } } if yyr3223 || yy2arr3223 { 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 yym3228 := z.DecBinary() _ = yym3228 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3229 := r.ContainerType() if yyct3229 == codecSelferValueTypeMap1234 { yyl3229 := r.ReadMapStart() if yyl3229 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3229, d) } } else if yyct3229 == codecSelferValueTypeArray1234 { yyl3229 := r.ReadArrayStart() if yyl3229 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3229, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeAddress) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3230Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3230Slc var yyhl3230 bool = l >= 0 for yyj3230 := 0; ; yyj3230++ { if yyhl3230 { if yyj3230 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3230Slc = r.DecodeBytes(yys3230Slc, true, true) yys3230 := string(yys3230Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3230 { case "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, yys3230) } // end switch yys3230 } // end for yyj3230 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 yyj3233 int var yyb3233 bool var yyhl3233 bool = l >= 0 yyj3233++ if yyhl3233 { yyb3233 = yyj3233 > l } else { yyb3233 = r.CheckBreak() } if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = NodeAddressType(r.DecodeString()) } yyj3233++ if yyhl3233 { yyb3233 = yyj3233 > l } else { yyb3233 = r.CheckBreak() } if yyb3233 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Address = "" } else { x.Address = string(r.DecodeString()) } for { yyj3233++ if yyhl3233 { yyb3233 = yyj3233 > l } else { yyb3233 = r.CheckBreak() } if yyb3233 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3233-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 { yym3236 := z.EncBinary() _ = yym3236 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3237 := !z.EncBinary() yy2arr3237 := z.EncBasicHandle().StructToArray var yyq3237 [1]bool _, _, _ = yysep3237, yyq3237, yy2arr3237 const yyr3237 bool = false yyq3237[0] = len(x.Capacity) != 0 var yynn3237 int if yyr3237 || yy2arr3237 { r.EncodeArrayStart(1) } else { yynn3237 = 0 for _, b := range yyq3237 { if b { yynn3237++ } } r.EncodeMapStart(yynn3237) yynn3237 = 0 } if yyr3237 || yy2arr3237 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3237[0] { if x.Capacity == nil { r.EncodeNil() } else { x.Capacity.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3237[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 yyr3237 || yy2arr3237 { 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 yym3239 := z.DecBinary() _ = yym3239 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3240 := r.ContainerType() if yyct3240 == codecSelferValueTypeMap1234 { yyl3240 := r.ReadMapStart() if yyl3240 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3240, d) } } else if yyct3240 == codecSelferValueTypeArray1234 { yyl3240 := r.ReadArrayStart() if yyl3240 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3240, 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 yys3241Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3241Slc var yyhl3241 bool = l >= 0 for yyj3241 := 0; ; yyj3241++ { if yyhl3241 { if yyj3241 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3241Slc = r.DecodeBytes(yys3241Slc, true, true) yys3241 := string(yys3241Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3241 { case "capacity": if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3242 := &x.Capacity yyv3242.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3241) } // end switch yys3241 } // end for yyj3241 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 yyj3243 int var yyb3243 bool var yyhl3243 bool = l >= 0 yyj3243++ if yyhl3243 { yyb3243 = yyj3243 > l } else { yyb3243 = r.CheckBreak() } if yyb3243 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Capacity = nil } else { yyv3244 := &x.Capacity yyv3244.CodecDecodeSelf(d) } for { yyj3243++ if yyhl3243 { yyb3243 = yyj3243 > l } else { yyb3243 = r.CheckBreak() } if yyb3243 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3243-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3245 := z.EncBinary() _ = yym3245 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 yym3246 := z.DecBinary() _ = yym3246 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 { yym3247 := z.EncBinary() _ = yym3247 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 yym3248 := z.DecBinary() _ = yym3248 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 { yym3249 := z.EncBinary() _ = yym3249 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3250 := !z.EncBinary() yy2arr3250 := z.EncBasicHandle().StructToArray var yyq3250 [5]bool _, _, _ = yysep3250, yyq3250, yy2arr3250 const yyr3250 bool = false yyq3250[0] = x.Kind != "" yyq3250[1] = x.APIVersion != "" yyq3250[2] = true yyq3250[3] = true yyq3250[4] = true var yynn3250 int if yyr3250 || yy2arr3250 { r.EncodeArrayStart(5) } else { yynn3250 = 0 for _, b := range yyq3250 { if b { yynn3250++ } } r.EncodeMapStart(yynn3250) yynn3250 = 0 } if yyr3250 || yy2arr3250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3250[0] { yym3252 := z.EncBinary() _ = yym3252 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3250[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3253 := z.EncBinary() _ = yym3253 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3250 || yy2arr3250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3250[1] { yym3255 := z.EncBinary() _ = yym3255 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3250[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3256 := z.EncBinary() _ = yym3256 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3250 || yy2arr3250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3250[2] { yy3258 := &x.ObjectMeta yy3258.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3250[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3259 := &x.ObjectMeta yy3259.CodecEncodeSelf(e) } } if yyr3250 || yy2arr3250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3250[3] { yy3261 := &x.Spec yy3261.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3250[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3262 := &x.Spec yy3262.CodecEncodeSelf(e) } } if yyr3250 || yy2arr3250 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3250[4] { yy3264 := &x.Status yy3264.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3250[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3265 := &x.Status yy3265.CodecEncodeSelf(e) } } if yyr3250 || yy2arr3250 { 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 yym3266 := z.DecBinary() _ = yym3266 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3267 := r.ContainerType() if yyct3267 == codecSelferValueTypeMap1234 { yyl3267 := r.ReadMapStart() if yyl3267 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3267, d) } } else if yyct3267 == codecSelferValueTypeArray1234 { yyl3267 := r.ReadArrayStart() if yyl3267 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3267, 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 yys3268Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3268Slc var yyhl3268 bool = l >= 0 for yyj3268 := 0; ; yyj3268++ { if yyhl3268 { if yyj3268 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3268Slc = r.DecodeBytes(yys3268Slc, true, true) yys3268 := string(yys3268Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3268 { 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 { yyv3271 := &x.ObjectMeta yyv3271.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv3272 := &x.Spec yyv3272.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv3273 := &x.Status yyv3273.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3268) } // end switch yys3268 } // end for yyj3268 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 yyj3274 int var yyb3274 bool var yyhl3274 bool = l >= 0 yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3277 := &x.ObjectMeta yyv3277.CodecDecodeSelf(d) } yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NodeSpec{} } else { yyv3278 := &x.Spec yyv3278.CodecDecodeSelf(d) } yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NodeStatus{} } else { yyv3279 := &x.Status yyv3279.CodecDecodeSelf(d) } for { yyj3274++ if yyhl3274 { yyb3274 = yyj3274 > l } else { yyb3274 = r.CheckBreak() } if yyb3274 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3274-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3280 := z.EncBinary() _ = yym3280 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3281 := !z.EncBinary() yy2arr3281 := z.EncBasicHandle().StructToArray var yyq3281 [4]bool _, _, _ = yysep3281, yyq3281, yy2arr3281 const yyr3281 bool = false yyq3281[0] = x.Kind != "" yyq3281[1] = x.APIVersion != "" yyq3281[2] = true var yynn3281 int if yyr3281 || yy2arr3281 { r.EncodeArrayStart(4) } else { yynn3281 = 1 for _, b := range yyq3281 { if b { yynn3281++ } } r.EncodeMapStart(yynn3281) yynn3281 = 0 } if yyr3281 || yy2arr3281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3281[0] { yym3283 := z.EncBinary() _ = yym3283 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3281[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3284 := z.EncBinary() _ = yym3284 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3281 || yy2arr3281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3281[1] { yym3286 := z.EncBinary() _ = yym3286 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3281[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3287 := z.EncBinary() _ = yym3287 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3281 || yy2arr3281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3281[2] { yy3289 := &x.ListMeta yym3290 := z.EncBinary() _ = yym3290 if false { } else if z.HasExtensions() && z.EncExt(yy3289) { } else { z.EncFallback(yy3289) } } else { r.EncodeNil() } } else { if yyq3281[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3291 := &x.ListMeta yym3292 := z.EncBinary() _ = yym3292 if false { } else if z.HasExtensions() && z.EncExt(yy3291) { } else { z.EncFallback(yy3291) } } } if yyr3281 || yy2arr3281 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3294 := z.EncBinary() _ = yym3294 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 { yym3295 := z.EncBinary() _ = yym3295 if false { } else { h.encSliceNode(([]Node)(x.Items), e) } } } if yyr3281 || yy2arr3281 { 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 yym3296 := z.DecBinary() _ = yym3296 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3297 := r.ContainerType() if yyct3297 == codecSelferValueTypeMap1234 { yyl3297 := r.ReadMapStart() if yyl3297 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3297, d) } } else if yyct3297 == codecSelferValueTypeArray1234 { yyl3297 := r.ReadArrayStart() if yyl3297 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3297, 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 yys3298Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3298Slc var yyhl3298 bool = l >= 0 for yyj3298 := 0; ; yyj3298++ { if yyhl3298 { if yyj3298 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3298Slc = r.DecodeBytes(yys3298Slc, true, true) yys3298 := string(yys3298Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3298 { 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 { yyv3301 := &x.ListMeta yym3302 := z.DecBinary() _ = yym3302 if false { } else if z.HasExtensions() && z.DecExt(yyv3301) { } else { z.DecFallback(yyv3301, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3303 := &x.Items yym3304 := z.DecBinary() _ = yym3304 if false { } else { h.decSliceNode((*[]Node)(yyv3303), d) } } default: z.DecStructFieldNotFound(-1, yys3298) } // end switch yys3298 } // end for yyj3298 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 yyj3305 int var yyb3305 bool var yyhl3305 bool = l >= 0 yyj3305++ if yyhl3305 { yyb3305 = yyj3305 > l } else { yyb3305 = r.CheckBreak() } if yyb3305 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3305++ if yyhl3305 { yyb3305 = yyj3305 > l } else { yyb3305 = r.CheckBreak() } if yyb3305 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3305++ if yyhl3305 { yyb3305 = yyj3305 > l } else { yyb3305 = r.CheckBreak() } if yyb3305 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3308 := &x.ListMeta yym3309 := z.DecBinary() _ = yym3309 if false { } else if z.HasExtensions() && z.DecExt(yyv3308) { } else { z.DecFallback(yyv3308, false) } } yyj3305++ if yyhl3305 { yyb3305 = yyj3305 > l } else { yyb3305 = r.CheckBreak() } if yyb3305 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3310 := &x.Items yym3311 := z.DecBinary() _ = yym3311 if false { } else { h.decSliceNode((*[]Node)(yyv3310), d) } } for { yyj3305++ if yyhl3305 { yyb3305 = yyj3305 > l } else { yyb3305 = r.CheckBreak() } if yyb3305 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3305-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 { yym3312 := z.EncBinary() _ = yym3312 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3313 := !z.EncBinary() yy2arr3313 := z.EncBasicHandle().StructToArray var yyq3313 [1]bool _, _, _ = yysep3313, yyq3313, yy2arr3313 const yyr3313 bool = false var yynn3313 int if yyr3313 || yy2arr3313 { r.EncodeArrayStart(1) } else { yynn3313 = 1 for _, b := range yyq3313 { if b { yynn3313++ } } r.EncodeMapStart(yynn3313) yynn3313 = 0 } if yyr3313 || yy2arr3313 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Finalizers == nil { r.EncodeNil() } else { yym3315 := z.EncBinary() _ = yym3315 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 { yym3316 := z.EncBinary() _ = yym3316 if false { } else { h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e) } } } if yyr3313 || yy2arr3313 { 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 yym3317 := z.DecBinary() _ = yym3317 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3318 := r.ContainerType() if yyct3318 == codecSelferValueTypeMap1234 { yyl3318 := r.ReadMapStart() if yyl3318 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3318, d) } } else if yyct3318 == codecSelferValueTypeArray1234 { yyl3318 := r.ReadArrayStart() if yyl3318 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3318, 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 yys3319Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3319Slc var yyhl3319 bool = l >= 0 for yyj3319 := 0; ; yyj3319++ { if yyhl3319 { if yyj3319 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3319Slc = r.DecodeBytes(yys3319Slc, true, true) yys3319 := string(yys3319Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3319 { case "Finalizers": if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv3320 := &x.Finalizers yym3321 := z.DecBinary() _ = yym3321 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv3320), d) } } default: z.DecStructFieldNotFound(-1, yys3319) } // end switch yys3319 } // end for yyj3319 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 yyj3322 int var yyb3322 bool var yyhl3322 bool = l >= 0 yyj3322++ if yyhl3322 { yyb3322 = yyj3322 > l } else { yyb3322 = r.CheckBreak() } if yyb3322 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Finalizers = nil } else { yyv3323 := &x.Finalizers yym3324 := z.DecBinary() _ = yym3324 if false { } else { h.decSliceFinalizerName((*[]FinalizerName)(yyv3323), d) } } for { yyj3322++ if yyhl3322 { yyb3322 = yyj3322 > l } else { yyb3322 = r.CheckBreak() } if yyb3322 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3322-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3325 := z.EncBinary() _ = yym3325 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 yym3326 := z.DecBinary() _ = yym3326 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 { yym3327 := z.EncBinary() _ = yym3327 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3328 := !z.EncBinary() yy2arr3328 := z.EncBasicHandle().StructToArray var yyq3328 [1]bool _, _, _ = yysep3328, yyq3328, yy2arr3328 const yyr3328 bool = false yyq3328[0] = x.Phase != "" var yynn3328 int if yyr3328 || yy2arr3328 { r.EncodeArrayStart(1) } else { yynn3328 = 0 for _, b := range yyq3328 { if b { yynn3328++ } } r.EncodeMapStart(yynn3328) yynn3328 = 0 } if yyr3328 || yy2arr3328 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3328[0] { x.Phase.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3328[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("phase")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Phase.CodecEncodeSelf(e) } } if yyr3328 || yy2arr3328 { 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 yym3330 := z.DecBinary() _ = yym3330 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3331 := r.ContainerType() if yyct3331 == codecSelferValueTypeMap1234 { yyl3331 := r.ReadMapStart() if yyl3331 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3331, d) } } else if yyct3331 == codecSelferValueTypeArray1234 { yyl3331 := r.ReadArrayStart() if yyl3331 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3331, 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 yys3332Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3332Slc var yyhl3332 bool = l >= 0 for yyj3332 := 0; ; yyj3332++ { if yyhl3332 { if yyj3332 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3332Slc = r.DecodeBytes(yys3332Slc, true, true) yys3332 := string(yys3332Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3332 { case "phase": if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3332) } // end switch yys3332 } // end for yyj3332 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 yyj3334 int var yyb3334 bool var yyhl3334 bool = l >= 0 yyj3334++ if yyhl3334 { yyb3334 = yyj3334 > l } else { yyb3334 = r.CheckBreak() } if yyb3334 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Phase = "" } else { x.Phase = NamespacePhase(r.DecodeString()) } for { yyj3334++ if yyhl3334 { yyb3334 = yyj3334 > l } else { yyb3334 = r.CheckBreak() } if yyb3334 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3334-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym3336 := z.EncBinary() _ = yym3336 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 yym3337 := z.DecBinary() _ = yym3337 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 { yym3338 := z.EncBinary() _ = yym3338 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3339 := !z.EncBinary() yy2arr3339 := z.EncBasicHandle().StructToArray var yyq3339 [5]bool _, _, _ = yysep3339, yyq3339, yy2arr3339 const yyr3339 bool = false yyq3339[0] = x.Kind != "" yyq3339[1] = x.APIVersion != "" yyq3339[2] = true yyq3339[3] = true yyq3339[4] = true var yynn3339 int if yyr3339 || yy2arr3339 { r.EncodeArrayStart(5) } else { yynn3339 = 0 for _, b := range yyq3339 { if b { yynn3339++ } } r.EncodeMapStart(yynn3339) yynn3339 = 0 } if yyr3339 || yy2arr3339 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3339[0] { yym3341 := z.EncBinary() _ = yym3341 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3339[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3342 := z.EncBinary() _ = yym3342 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3339 || yy2arr3339 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3339[1] { yym3344 := z.EncBinary() _ = yym3344 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3339[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3345 := z.EncBinary() _ = yym3345 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3339 || yy2arr3339 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3339[2] { yy3347 := &x.ObjectMeta yy3347.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3339[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3348 := &x.ObjectMeta yy3348.CodecEncodeSelf(e) } } if yyr3339 || yy2arr3339 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3339[3] { yy3350 := &x.Spec yy3350.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3339[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3351 := &x.Spec yy3351.CodecEncodeSelf(e) } } if yyr3339 || yy2arr3339 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3339[4] { yy3353 := &x.Status yy3353.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3339[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3354 := &x.Status yy3354.CodecEncodeSelf(e) } } if yyr3339 || yy2arr3339 { 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 yym3355 := z.DecBinary() _ = yym3355 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3356 := r.ContainerType() if yyct3356 == codecSelferValueTypeMap1234 { yyl3356 := r.ReadMapStart() if yyl3356 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3356, d) } } else if yyct3356 == codecSelferValueTypeArray1234 { yyl3356 := r.ReadArrayStart() if yyl3356 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3356, 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 yys3357Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3357Slc var yyhl3357 bool = l >= 0 for yyj3357 := 0; ; yyj3357++ { if yyhl3357 { if yyj3357 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3357Slc = r.DecodeBytes(yys3357Slc, true, true) yys3357 := string(yys3357Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3357 { 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 { yyv3360 := &x.ObjectMeta yyv3360.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv3361 := &x.Spec yyv3361.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv3362 := &x.Status yyv3362.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3357) } // end switch yys3357 } // end for yyj3357 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 yyj3363 int var yyb3363 bool var yyhl3363 bool = l >= 0 yyj3363++ if yyhl3363 { yyb3363 = yyj3363 > l } else { yyb3363 = r.CheckBreak() } if yyb3363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3363++ if yyhl3363 { yyb3363 = yyj3363 > l } else { yyb3363 = r.CheckBreak() } if yyb3363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3363++ if yyhl3363 { yyb3363 = yyj3363 > l } else { yyb3363 = r.CheckBreak() } if yyb3363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3366 := &x.ObjectMeta yyv3366.CodecDecodeSelf(d) } yyj3363++ if yyhl3363 { yyb3363 = yyj3363 > l } else { yyb3363 = r.CheckBreak() } if yyb3363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = NamespaceSpec{} } else { yyv3367 := &x.Spec yyv3367.CodecDecodeSelf(d) } yyj3363++ if yyhl3363 { yyb3363 = yyj3363 > l } else { yyb3363 = r.CheckBreak() } if yyb3363 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = NamespaceStatus{} } else { yyv3368 := &x.Status yyv3368.CodecDecodeSelf(d) } for { yyj3363++ if yyhl3363 { yyb3363 = yyj3363 > l } else { yyb3363 = r.CheckBreak() } if yyb3363 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3363-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 { yym3369 := z.EncBinary() _ = yym3369 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3370 := !z.EncBinary() yy2arr3370 := z.EncBasicHandle().StructToArray var yyq3370 [4]bool _, _, _ = yysep3370, yyq3370, yy2arr3370 const yyr3370 bool = false yyq3370[0] = x.Kind != "" yyq3370[1] = x.APIVersion != "" yyq3370[2] = true var yynn3370 int if yyr3370 || yy2arr3370 { r.EncodeArrayStart(4) } else { yynn3370 = 1 for _, b := range yyq3370 { if b { yynn3370++ } } r.EncodeMapStart(yynn3370) yynn3370 = 0 } if yyr3370 || yy2arr3370 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3370[0] { yym3372 := z.EncBinary() _ = yym3372 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3370[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3373 := z.EncBinary() _ = yym3373 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3370 || yy2arr3370 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3370[1] { yym3375 := z.EncBinary() _ = yym3375 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3370[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3376 := z.EncBinary() _ = yym3376 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3370 || yy2arr3370 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3370[2] { yy3378 := &x.ListMeta yym3379 := z.EncBinary() _ = yym3379 if false { } else if z.HasExtensions() && z.EncExt(yy3378) { } else { z.EncFallback(yy3378) } } else { r.EncodeNil() } } else { if yyq3370[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3380 := &x.ListMeta yym3381 := z.EncBinary() _ = yym3381 if false { } else if z.HasExtensions() && z.EncExt(yy3380) { } else { z.EncFallback(yy3380) } } } if yyr3370 || yy2arr3370 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3383 := z.EncBinary() _ = yym3383 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 { yym3384 := z.EncBinary() _ = yym3384 if false { } else { h.encSliceNamespace(([]Namespace)(x.Items), e) } } } if yyr3370 || yy2arr3370 { 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 yym3385 := z.DecBinary() _ = yym3385 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3386 := r.ContainerType() if yyct3386 == codecSelferValueTypeMap1234 { yyl3386 := r.ReadMapStart() if yyl3386 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3386, d) } } else if yyct3386 == codecSelferValueTypeArray1234 { yyl3386 := r.ReadArrayStart() if yyl3386 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3386, 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 yys3387Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3387Slc var yyhl3387 bool = l >= 0 for yyj3387 := 0; ; yyj3387++ { if yyhl3387 { if yyj3387 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3387Slc = r.DecodeBytes(yys3387Slc, true, true) yys3387 := string(yys3387Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3387 { 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 { yyv3390 := &x.ListMeta yym3391 := z.DecBinary() _ = yym3391 if false { } else if z.HasExtensions() && z.DecExt(yyv3390) { } else { z.DecFallback(yyv3390, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3392 := &x.Items yym3393 := z.DecBinary() _ = yym3393 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv3392), d) } } default: z.DecStructFieldNotFound(-1, yys3387) } // end switch yys3387 } // end for yyj3387 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 yyj3394 int var yyb3394 bool var yyhl3394 bool = l >= 0 yyj3394++ if yyhl3394 { yyb3394 = yyj3394 > l } else { yyb3394 = r.CheckBreak() } if yyb3394 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3394++ if yyhl3394 { yyb3394 = yyj3394 > l } else { yyb3394 = r.CheckBreak() } if yyb3394 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3394++ if yyhl3394 { yyb3394 = yyj3394 > l } else { yyb3394 = r.CheckBreak() } if yyb3394 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3397 := &x.ListMeta yym3398 := z.DecBinary() _ = yym3398 if false { } else if z.HasExtensions() && z.DecExt(yyv3397) { } else { z.DecFallback(yyv3397, false) } } yyj3394++ if yyhl3394 { yyb3394 = yyj3394 > l } else { yyb3394 = r.CheckBreak() } if yyb3394 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3399 := &x.Items yym3400 := z.DecBinary() _ = yym3400 if false { } else { h.decSliceNamespace((*[]Namespace)(yyv3399), d) } } for { yyj3394++ if yyhl3394 { yyb3394 = yyj3394 > l } else { yyb3394 = r.CheckBreak() } if yyb3394 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3394-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 { yym3401 := z.EncBinary() _ = yym3401 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3402 := !z.EncBinary() yy2arr3402 := z.EncBasicHandle().StructToArray var yyq3402 [4]bool _, _, _ = yysep3402, yyq3402, yy2arr3402 const yyr3402 bool = false yyq3402[0] = x.Kind != "" yyq3402[1] = x.APIVersion != "" yyq3402[2] = true var yynn3402 int if yyr3402 || yy2arr3402 { r.EncodeArrayStart(4) } else { yynn3402 = 1 for _, b := range yyq3402 { if b { yynn3402++ } } r.EncodeMapStart(yynn3402) yynn3402 = 0 } if yyr3402 || yy2arr3402 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3402[0] { yym3404 := z.EncBinary() _ = yym3404 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3402[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3405 := z.EncBinary() _ = yym3405 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3402 || yy2arr3402 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3402[1] { yym3407 := z.EncBinary() _ = yym3407 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3402[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3408 := z.EncBinary() _ = yym3408 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3402 || yy2arr3402 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3402[2] { yy3410 := &x.ObjectMeta yy3410.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3402[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3411 := &x.ObjectMeta yy3411.CodecEncodeSelf(e) } } if yyr3402 || yy2arr3402 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy3413 := &x.Target yy3413.CodecEncodeSelf(e) } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("target")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3414 := &x.Target yy3414.CodecEncodeSelf(e) } if yyr3402 || yy2arr3402 { 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 yym3415 := z.DecBinary() _ = yym3415 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3416 := r.ContainerType() if yyct3416 == codecSelferValueTypeMap1234 { yyl3416 := r.ReadMapStart() if yyl3416 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3416, d) } } else if yyct3416 == codecSelferValueTypeArray1234 { yyl3416 := r.ReadArrayStart() if yyl3416 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3416, 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 yys3417Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3417Slc var yyhl3417 bool = l >= 0 for yyj3417 := 0; ; yyj3417++ { if yyhl3417 { if yyj3417 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3417Slc = r.DecodeBytes(yys3417Slc, true, true) yys3417 := string(yys3417Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3417 { 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 { yyv3420 := &x.ObjectMeta yyv3420.CodecDecodeSelf(d) } case "target": if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv3421 := &x.Target yyv3421.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3417) } // end switch yys3417 } // end for yyj3417 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 yyj3422 int var yyb3422 bool var yyhl3422 bool = l >= 0 yyj3422++ if yyhl3422 { yyb3422 = yyj3422 > l } else { yyb3422 = r.CheckBreak() } if yyb3422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3422++ if yyhl3422 { yyb3422 = yyj3422 > l } else { yyb3422 = r.CheckBreak() } if yyb3422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3422++ if yyhl3422 { yyb3422 = yyj3422 > l } else { yyb3422 = r.CheckBreak() } if yyb3422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3425 := &x.ObjectMeta yyv3425.CodecDecodeSelf(d) } yyj3422++ if yyhl3422 { yyb3422 = yyj3422 > l } else { yyb3422 = r.CheckBreak() } if yyb3422 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Target = ObjectReference{} } else { yyv3426 := &x.Target yyv3426.CodecDecodeSelf(d) } for { yyj3422++ if yyhl3422 { yyb3422 = yyj3422 > l } else { yyb3422 = r.CheckBreak() } if yyb3422 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3422-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *Preconditions) 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 [1]bool _, _, _ = yysep3428, yyq3428, yy2arr3428 const yyr3428 bool = false yyq3428[0] = x.UID != nil var yynn3428 int if yyr3428 || yy2arr3428 { r.EncodeArrayStart(1) } 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] { if x.UID == nil { r.EncodeNil() } else { yy3430 := *x.UID yym3431 := z.EncBinary() _ = yym3431 if false { } else if z.HasExtensions() && z.EncExt(yy3430) { } else { r.EncodeString(codecSelferC_UTF81234, string(yy3430)) } } } else { r.EncodeNil() } } else { if yyq3428[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.UID == nil { r.EncodeNil() } else { yy3432 := *x.UID yym3433 := z.EncBinary() _ = yym3433 if false { } else if z.HasExtensions() && z.EncExt(yy3432) { } else { r.EncodeString(codecSelferC_UTF81234, string(yy3432)) } } } } if yyr3428 || yy2arr3428 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3434 := z.DecBinary() _ = yym3434 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3435 := r.ContainerType() if yyct3435 == codecSelferValueTypeMap1234 { yyl3435 := r.ReadMapStart() if yyl3435 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3435, d) } } else if yyct3435 == codecSelferValueTypeArray1234 { yyl3435 := r.ReadArrayStart() if yyl3435 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3435, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3436Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3436Slc var yyhl3436 bool = l >= 0 for yyj3436 := 0; ; yyj3436++ { if yyhl3436 { if yyj3436 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3436Slc = r.DecodeBytes(yys3436Slc, true, true) yys3436 := string(yys3436Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3436 { case "uid": if r.TryDecodeAsNil() { if x.UID != nil { x.UID = nil } } else { if x.UID == nil { x.UID = new(pkg1_types.UID) } yym3438 := z.DecBinary() _ = yym3438 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { *((*string)(x.UID)) = r.DecodeString() } } default: z.DecStructFieldNotFound(-1, yys3436) } // end switch yys3436 } // end for yyj3436 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3439 int var yyb3439 bool var yyhl3439 bool = l >= 0 yyj3439++ if yyhl3439 { yyb3439 = yyj3439 > l } else { yyb3439 = r.CheckBreak() } if yyb3439 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.UID != nil { x.UID = nil } } else { if x.UID == nil { x.UID = new(pkg1_types.UID) } yym3441 := z.DecBinary() _ = yym3441 if false { } else if z.HasExtensions() && z.DecExt(x.UID) { } else { *((*string)(x.UID)) = r.DecodeString() } } for { yyj3439++ if yyhl3439 { yyb3439 = yyj3439 > l } else { yyb3439 = r.CheckBreak() } if yyb3439 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3439-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 { yym3442 := z.EncBinary() _ = yym3442 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3443 := !z.EncBinary() yy2arr3443 := z.EncBasicHandle().StructToArray var yyq3443 [5]bool _, _, _ = yysep3443, yyq3443, yy2arr3443 const yyr3443 bool = false yyq3443[0] = x.Kind != "" yyq3443[1] = x.APIVersion != "" yyq3443[2] = x.GracePeriodSeconds != nil yyq3443[3] = x.Preconditions != nil yyq3443[4] = x.OrphanDependents != nil var yynn3443 int if yyr3443 || yy2arr3443 { r.EncodeArrayStart(5) } else { yynn3443 = 0 for _, b := range yyq3443 { if b { yynn3443++ } } r.EncodeMapStart(yynn3443) yynn3443 = 0 } if yyr3443 || yy2arr3443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3443[0] { yym3445 := z.EncBinary() _ = yym3445 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3443[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3446 := z.EncBinary() _ = yym3446 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3443 || yy2arr3443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3443[1] { yym3448 := z.EncBinary() _ = yym3448 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3443[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3449 := z.EncBinary() _ = yym3449 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3443 || yy2arr3443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3443[2] { if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy3451 := *x.GracePeriodSeconds yym3452 := z.EncBinary() _ = yym3452 if false { } else { r.EncodeInt(int64(yy3451)) } } } else { r.EncodeNil() } } else { if yyq3443[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.GracePeriodSeconds == nil { r.EncodeNil() } else { yy3453 := *x.GracePeriodSeconds yym3454 := z.EncBinary() _ = yym3454 if false { } else { r.EncodeInt(int64(yy3453)) } } } } if yyr3443 || yy2arr3443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3443[3] { if x.Preconditions == nil { r.EncodeNil() } else { x.Preconditions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq3443[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("preconditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Preconditions == nil { r.EncodeNil() } else { x.Preconditions.CodecEncodeSelf(e) } } } if yyr3443 || yy2arr3443 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3443[4] { if x.OrphanDependents == nil { r.EncodeNil() } else { yy3457 := *x.OrphanDependents yym3458 := z.EncBinary() _ = yym3458 if false { } else { r.EncodeBool(bool(yy3457)) } } } else { r.EncodeNil() } } else { if yyq3443[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("orphanDependents")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.OrphanDependents == nil { r.EncodeNil() } else { yy3459 := *x.OrphanDependents yym3460 := z.EncBinary() _ = yym3460 if false { } else { r.EncodeBool(bool(yy3459)) } } } } if yyr3443 || yy2arr3443 { 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 yym3461 := z.DecBinary() _ = yym3461 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3462 := r.ContainerType() if yyct3462 == codecSelferValueTypeMap1234 { yyl3462 := r.ReadMapStart() if yyl3462 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3462, d) } } else if yyct3462 == codecSelferValueTypeArray1234 { yyl3462 := r.ReadArrayStart() if yyl3462 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3462, 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 yys3463Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3463Slc var yyhl3463 bool = l >= 0 for yyj3463 := 0; ; yyj3463++ { if yyhl3463 { if yyj3463 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3463Slc = r.DecodeBytes(yys3463Slc, true, true) yys3463 := string(yys3463Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3463 { 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) } yym3467 := z.DecBinary() _ = yym3467 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } case "preconditions": if r.TryDecodeAsNil() { if x.Preconditions != nil { x.Preconditions = nil } } else { if x.Preconditions == nil { x.Preconditions = new(Preconditions) } x.Preconditions.CodecDecodeSelf(d) } case "orphanDependents": if r.TryDecodeAsNil() { if x.OrphanDependents != nil { x.OrphanDependents = nil } } else { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } yym3470 := z.DecBinary() _ = yym3470 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3463) } // end switch yys3463 } // end for yyj3463 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 yyj3471 int var yyb3471 bool var yyhl3471 bool = l >= 0 yyj3471++ if yyhl3471 { yyb3471 = yyj3471 > l } else { yyb3471 = r.CheckBreak() } if yyb3471 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3471++ if yyhl3471 { yyb3471 = yyj3471 > l } else { yyb3471 = r.CheckBreak() } if yyb3471 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3471++ if yyhl3471 { yyb3471 = yyj3471 > l } else { yyb3471 = r.CheckBreak() } if yyb3471 { 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) } yym3475 := z.DecBinary() _ = yym3475 if false { } else { *((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64)) } } yyj3471++ if yyhl3471 { yyb3471 = yyj3471 > l } else { yyb3471 = r.CheckBreak() } if yyb3471 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Preconditions != nil { x.Preconditions = nil } } else { if x.Preconditions == nil { x.Preconditions = new(Preconditions) } x.Preconditions.CodecDecodeSelf(d) } yyj3471++ if yyhl3471 { yyb3471 = yyj3471 > l } else { yyb3471 = r.CheckBreak() } if yyb3471 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.OrphanDependents != nil { x.OrphanDependents = nil } } else { if x.OrphanDependents == nil { x.OrphanDependents = new(bool) } yym3478 := z.DecBinary() _ = yym3478 if false { } else { *((*bool)(x.OrphanDependents)) = r.DecodeBool() } } for { yyj3471++ if yyhl3471 { yyb3471 = yyj3471 > l } else { yyb3471 = r.CheckBreak() } if yyb3471 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3471-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ExportOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3479 := z.EncBinary() _ = yym3479 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3480 := !z.EncBinary() yy2arr3480 := z.EncBasicHandle().StructToArray var yyq3480 [4]bool _, _, _ = yysep3480, yyq3480, yy2arr3480 const yyr3480 bool = false yyq3480[0] = x.Kind != "" yyq3480[1] = x.APIVersion != "" var yynn3480 int if yyr3480 || yy2arr3480 { r.EncodeArrayStart(4) } else { yynn3480 = 2 for _, b := range yyq3480 { if b { yynn3480++ } } r.EncodeMapStart(yynn3480) yynn3480 = 0 } if yyr3480 || yy2arr3480 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3480[0] { yym3482 := z.EncBinary() _ = yym3482 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3480[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3483 := z.EncBinary() _ = yym3483 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3480 || yy2arr3480 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3480[1] { yym3485 := z.EncBinary() _ = yym3485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3480[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3486 := z.EncBinary() _ = yym3486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3480 || yy2arr3480 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3488 := z.EncBinary() _ = yym3488 if false { } else { r.EncodeBool(bool(x.Export)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("export")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3489 := z.EncBinary() _ = yym3489 if false { } else { r.EncodeBool(bool(x.Export)) } } if yyr3480 || yy2arr3480 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3491 := z.EncBinary() _ = yym3491 if false { } else { r.EncodeBool(bool(x.Exact)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("exact")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3492 := z.EncBinary() _ = yym3492 if false { } else { r.EncodeBool(bool(x.Exact)) } } if yyr3480 || yy2arr3480 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ExportOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3493 := z.DecBinary() _ = yym3493 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3494 := r.ContainerType() if yyct3494 == codecSelferValueTypeMap1234 { yyl3494 := r.ReadMapStart() if yyl3494 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3494, d) } } else if yyct3494 == codecSelferValueTypeArray1234 { yyl3494 := r.ReadArrayStart() if yyl3494 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3494, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ExportOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3495Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3495Slc var yyhl3495 bool = l >= 0 for yyj3495 := 0; ; yyj3495++ { if yyhl3495 { if yyj3495 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3495Slc = r.DecodeBytes(yys3495Slc, true, true) yys3495 := string(yys3495Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3495 { case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "export": if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } case "exact": if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } default: z.DecStructFieldNotFound(-1, yys3495) } // end switch yys3495 } // end for yyj3495 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ExportOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3500 int var yyb3500 bool var yyhl3500 bool = l >= 0 yyj3500++ if yyhl3500 { yyb3500 = yyj3500 > l } else { yyb3500 = r.CheckBreak() } if yyb3500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3500++ if yyhl3500 { yyb3500 = yyj3500 > l } else { yyb3500 = r.CheckBreak() } if yyb3500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3500++ if yyhl3500 { yyb3500 = yyj3500 > l } else { yyb3500 = r.CheckBreak() } if yyb3500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Export = false } else { x.Export = bool(r.DecodeBool()) } yyj3500++ if yyhl3500 { yyb3500 = yyj3500 > l } else { yyb3500 = r.CheckBreak() } if yyb3500 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Exact = false } else { x.Exact = bool(r.DecodeBool()) } for { yyj3500++ if yyhl3500 { yyb3500 = yyj3500 > l } else { yyb3500 = r.CheckBreak() } if yyb3500 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3500-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 { yym3505 := z.EncBinary() _ = yym3505 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3506 := !z.EncBinary() yy2arr3506 := z.EncBasicHandle().StructToArray var yyq3506 [7]bool _, _, _ = yysep3506, yyq3506, yy2arr3506 const yyr3506 bool = false yyq3506[0] = x.Kind != "" yyq3506[1] = x.APIVersion != "" var yynn3506 int if yyr3506 || yy2arr3506 { r.EncodeArrayStart(7) } else { yynn3506 = 5 for _, b := range yyq3506 { if b { yynn3506++ } } r.EncodeMapStart(yynn3506) yynn3506 = 0 } if yyr3506 || yy2arr3506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3506[0] { yym3508 := z.EncBinary() _ = yym3508 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3506[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3509 := z.EncBinary() _ = yym3509 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3506 || yy2arr3506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3506[1] { yym3511 := z.EncBinary() _ = yym3511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3506[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3512 := z.EncBinary() _ = yym3512 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3506 || yy2arr3506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LabelSelector == nil { r.EncodeNil() } else { yym3514 := z.EncBinary() _ = yym3514 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 { yym3515 := z.EncBinary() _ = yym3515 if false { } else if z.HasExtensions() && z.EncExt(x.LabelSelector) { } else { z.EncFallback(x.LabelSelector) } } } if yyr3506 || yy2arr3506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.FieldSelector == nil { r.EncodeNil() } else { yym3517 := z.EncBinary() _ = yym3517 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 { yym3518 := z.EncBinary() _ = yym3518 if false { } else if z.HasExtensions() && z.EncExt(x.FieldSelector) { } else { z.EncFallback(x.FieldSelector) } } } if yyr3506 || yy2arr3506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3520 := z.EncBinary() _ = yym3520 if false { } else { r.EncodeBool(bool(x.Watch)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Watch")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3521 := z.EncBinary() _ = yym3521 if false { } else { r.EncodeBool(bool(x.Watch)) } } if yyr3506 || yy2arr3506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3523 := z.EncBinary() _ = yym3523 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) yym3524 := z.EncBinary() _ = yym3524 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } if yyr3506 || yy2arr3506 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy3526 := *x.TimeoutSeconds yym3527 := z.EncBinary() _ = yym3527 if false { } else { r.EncodeInt(int64(yy3526)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TimeoutSeconds == nil { r.EncodeNil() } else { yy3528 := *x.TimeoutSeconds yym3529 := z.EncBinary() _ = yym3529 if false { } else { r.EncodeInt(int64(yy3528)) } } } if yyr3506 || yy2arr3506 { 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 yym3530 := z.DecBinary() _ = yym3530 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3531 := r.ContainerType() if yyct3531 == codecSelferValueTypeMap1234 { yyl3531 := r.ReadMapStart() if yyl3531 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3531, d) } } else if yyct3531 == codecSelferValueTypeArray1234 { yyl3531 := r.ReadArrayStart() if yyl3531 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3531, 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 yys3532Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3532Slc var yyhl3532 bool = l >= 0 for yyj3532 := 0; ; yyj3532++ { if yyhl3532 { if yyj3532 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3532Slc = r.DecodeBytes(yys3532Slc, true, true) yys3532 := string(yys3532Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3532 { 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 { yyv3535 := &x.LabelSelector yym3536 := z.DecBinary() _ = yym3536 if false { } else if z.HasExtensions() && z.DecExt(yyv3535) { } else { z.DecFallback(yyv3535, true) } } case "FieldSelector": if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv3537 := &x.FieldSelector yym3538 := z.DecBinary() _ = yym3538 if false { } else if z.HasExtensions() && z.DecExt(yyv3537) { } else { z.DecFallback(yyv3537, 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) } yym3542 := z.DecBinary() _ = yym3542 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3532) } // end switch yys3532 } // end for yyj3532 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 yyj3543 int var yyb3543 bool var yyhl3543 bool = l >= 0 yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LabelSelector = nil } else { yyv3546 := &x.LabelSelector yym3547 := z.DecBinary() _ = yym3547 if false { } else if z.HasExtensions() && z.DecExt(yyv3546) { } else { z.DecFallback(yyv3546, true) } } yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldSelector = nil } else { yyv3548 := &x.FieldSelector yym3549 := z.DecBinary() _ = yym3549 if false { } else if z.HasExtensions() && z.DecExt(yyv3548) { } else { z.DecFallback(yyv3548, true) } } yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Watch = false } else { x.Watch = bool(r.DecodeBool()) } yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { 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) } yym3553 := z.DecBinary() _ = yym3553 if false { } else { *((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64)) } } for { yyj3543++ if yyhl3543 { yyb3543 = yyj3543 > l } else { yyb3543 = r.CheckBreak() } if yyb3543 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3543-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 { yym3554 := z.EncBinary() _ = yym3554 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3555 := !z.EncBinary() yy2arr3555 := z.EncBasicHandle().StructToArray var yyq3555 [10]bool _, _, _ = yysep3555, yyq3555, yy2arr3555 const yyr3555 bool = false yyq3555[0] = x.Kind != "" yyq3555[1] = x.APIVersion != "" var yynn3555 int if yyr3555 || yy2arr3555 { r.EncodeArrayStart(10) } else { yynn3555 = 8 for _, b := range yyq3555 { if b { yynn3555++ } } r.EncodeMapStart(yynn3555) yynn3555 = 0 } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3555[0] { yym3557 := z.EncBinary() _ = yym3557 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3555[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3558 := z.EncBinary() _ = yym3558 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3555[1] { yym3560 := z.EncBinary() _ = yym3560 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3555[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3561 := z.EncBinary() _ = yym3561 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3563 := z.EncBinary() _ = yym3563 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) yym3564 := z.EncBinary() _ = yym3564 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3566 := z.EncBinary() _ = yym3566 if false { } else { r.EncodeBool(bool(x.Follow)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Follow")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3567 := z.EncBinary() _ = yym3567 if false { } else { r.EncodeBool(bool(x.Follow)) } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3569 := z.EncBinary() _ = yym3569 if false { } else { r.EncodeBool(bool(x.Previous)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Previous")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3570 := z.EncBinary() _ = yym3570 if false { } else { r.EncodeBool(bool(x.Previous)) } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy3572 := *x.SinceSeconds yym3573 := z.EncBinary() _ = yym3573 if false { } else { r.EncodeInt(int64(yy3572)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.SinceSeconds == nil { r.EncodeNil() } else { yy3574 := *x.SinceSeconds yym3575 := z.EncBinary() _ = yym3575 if false { } else { r.EncodeInt(int64(yy3574)) } } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.SinceTime == nil { r.EncodeNil() } else { yym3577 := z.EncBinary() _ = yym3577 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym3577 { z.EncBinaryMarshal(x.SinceTime) } else if !yym3577 && 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 { yym3578 := z.EncBinary() _ = yym3578 if false { } else if z.HasExtensions() && z.EncExt(x.SinceTime) { } else if yym3578 { z.EncBinaryMarshal(x.SinceTime) } else if !yym3578 && z.IsJSONHandle() { z.EncJSONMarshal(x.SinceTime) } else { z.EncFallback(x.SinceTime) } } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3580 := z.EncBinary() _ = yym3580 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Timestamps")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3581 := z.EncBinary() _ = yym3581 if false { } else { r.EncodeBool(bool(x.Timestamps)) } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.TailLines == nil { r.EncodeNil() } else { yy3583 := *x.TailLines yym3584 := z.EncBinary() _ = yym3584 if false { } else { r.EncodeInt(int64(yy3583)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TailLines")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.TailLines == nil { r.EncodeNil() } else { yy3585 := *x.TailLines yym3586 := z.EncBinary() _ = yym3586 if false { } else { r.EncodeInt(int64(yy3585)) } } } if yyr3555 || yy2arr3555 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy3588 := *x.LimitBytes yym3589 := z.EncBinary() _ = yym3589 if false { } else { r.EncodeInt(int64(yy3588)) } } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("LimitBytes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.LimitBytes == nil { r.EncodeNil() } else { yy3590 := *x.LimitBytes yym3591 := z.EncBinary() _ = yym3591 if false { } else { r.EncodeInt(int64(yy3590)) } } } if yyr3555 || yy2arr3555 { 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 yym3592 := z.DecBinary() _ = yym3592 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3593 := r.ContainerType() if yyct3593 == codecSelferValueTypeMap1234 { yyl3593 := r.ReadMapStart() if yyl3593 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3593, d) } } else if yyct3593 == codecSelferValueTypeArray1234 { yyl3593 := r.ReadArrayStart() if yyl3593 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3593, 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 yys3594Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3594Slc var yyhl3594 bool = l >= 0 for yyj3594 := 0; ; yyj3594++ { if yyhl3594 { if yyj3594 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3594Slc = r.DecodeBytes(yys3594Slc, true, true) yys3594 := string(yys3594Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3594 { 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) } yym3601 := z.DecBinary() _ = yym3601 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) } yym3603 := z.DecBinary() _ = yym3603 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3603 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3603 && 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) } yym3606 := z.DecBinary() _ = yym3606 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) } yym3608 := z.DecBinary() _ = yym3608 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } default: z.DecStructFieldNotFound(-1, yys3594) } // end switch yys3594 } // end for yyj3594 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 yyj3609 int var yyb3609 bool var yyhl3609 bool = l >= 0 yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Follow = false } else { x.Follow = bool(r.DecodeBool()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Previous = false } else { x.Previous = bool(r.DecodeBool()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { 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) } yym3616 := z.DecBinary() _ = yym3616 if false { } else { *((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64)) } } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { 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) } yym3618 := z.DecBinary() _ = yym3618 if false { } else if z.HasExtensions() && z.DecExt(x.SinceTime) { } else if yym3618 { z.DecBinaryUnmarshal(x.SinceTime) } else if !yym3618 && z.IsJSONHandle() { z.DecJSONUnmarshal(x.SinceTime) } else { z.DecFallback(x.SinceTime, false) } } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Timestamps = false } else { x.Timestamps = bool(r.DecodeBool()) } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { 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) } yym3621 := z.DecBinary() _ = yym3621 if false { } else { *((*int64)(x.TailLines)) = int64(r.DecodeInt(64)) } } yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { 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) } yym3623 := z.DecBinary() _ = yym3623 if false { } else { *((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64)) } } for { yyj3609++ if yyhl3609 { yyb3609 = yyj3609 > l } else { yyb3609 = r.CheckBreak() } if yyb3609 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3609-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 { yym3624 := z.EncBinary() _ = yym3624 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3625 := !z.EncBinary() yy2arr3625 := z.EncBasicHandle().StructToArray var yyq3625 [7]bool _, _, _ = yysep3625, yyq3625, yy2arr3625 const yyr3625 bool = false yyq3625[0] = x.Kind != "" yyq3625[1] = x.APIVersion != "" yyq3625[2] = x.Stdin != false yyq3625[3] = x.Stdout != false yyq3625[4] = x.Stderr != false yyq3625[5] = x.TTY != false yyq3625[6] = x.Container != "" var yynn3625 int if yyr3625 || yy2arr3625 { r.EncodeArrayStart(7) } else { yynn3625 = 0 for _, b := range yyq3625 { if b { yynn3625++ } } r.EncodeMapStart(yynn3625) yynn3625 = 0 } if yyr3625 || yy2arr3625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3625[0] { yym3627 := z.EncBinary() _ = yym3627 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3625[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3628 := z.EncBinary() _ = yym3628 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3625 || yy2arr3625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3625[1] { yym3630 := z.EncBinary() _ = yym3630 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3625[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3631 := z.EncBinary() _ = yym3631 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3625 || yy2arr3625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3625[2] { yym3633 := z.EncBinary() _ = yym3633 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { r.EncodeBool(false) } } else { if yyq3625[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3634 := z.EncBinary() _ = yym3634 if false { } else { r.EncodeBool(bool(x.Stdin)) } } } if yyr3625 || yy2arr3625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3625[3] { yym3636 := z.EncBinary() _ = yym3636 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { r.EncodeBool(false) } } else { if yyq3625[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3637 := z.EncBinary() _ = yym3637 if false { } else { r.EncodeBool(bool(x.Stdout)) } } } if yyr3625 || yy2arr3625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3625[4] { yym3639 := z.EncBinary() _ = yym3639 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { r.EncodeBool(false) } } else { if yyq3625[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3640 := z.EncBinary() _ = yym3640 if false { } else { r.EncodeBool(bool(x.Stderr)) } } } if yyr3625 || yy2arr3625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3625[5] { yym3642 := z.EncBinary() _ = yym3642 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { r.EncodeBool(false) } } else { if yyq3625[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("tty")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3643 := z.EncBinary() _ = yym3643 if false { } else { r.EncodeBool(bool(x.TTY)) } } } if yyr3625 || yy2arr3625 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3625[6] { yym3645 := z.EncBinary() _ = yym3645 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3625[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("container")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3646 := z.EncBinary() _ = yym3646 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } } if yyr3625 || yy2arr3625 { 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 yym3647 := z.DecBinary() _ = yym3647 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3648 := r.ContainerType() if yyct3648 == codecSelferValueTypeMap1234 { yyl3648 := r.ReadMapStart() if yyl3648 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3648, d) } } else if yyct3648 == codecSelferValueTypeArray1234 { yyl3648 := r.ReadArrayStart() if yyl3648 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3648, 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 yys3649Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3649Slc var yyhl3649 bool = l >= 0 for yyj3649 := 0; ; yyj3649++ { if yyhl3649 { if yyj3649 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3649Slc = r.DecodeBytes(yys3649Slc, true, true) yys3649 := string(yys3649Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3649 { 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, yys3649) } // end switch yys3649 } // end for yyj3649 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 yyj3657 int var yyb3657 bool var yyhl3657 bool = l >= 0 yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } for { yyj3657++ if yyhl3657 { yyb3657 = yyj3657 > l } else { yyb3657 = r.CheckBreak() } if yyb3657 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3657-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 { yym3665 := z.EncBinary() _ = yym3665 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3666 := !z.EncBinary() yy2arr3666 := z.EncBasicHandle().StructToArray var yyq3666 [8]bool _, _, _ = yysep3666, yyq3666, yy2arr3666 const yyr3666 bool = false yyq3666[0] = x.Kind != "" yyq3666[1] = x.APIVersion != "" var yynn3666 int if yyr3666 || yy2arr3666 { r.EncodeArrayStart(8) } else { yynn3666 = 6 for _, b := range yyq3666 { if b { yynn3666++ } } r.EncodeMapStart(yynn3666) yynn3666 = 0 } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3666[0] { yym3668 := z.EncBinary() _ = yym3668 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3666[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3669 := z.EncBinary() _ = yym3669 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3666[1] { yym3671 := z.EncBinary() _ = yym3671 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3666[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3672 := z.EncBinary() _ = yym3672 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3674 := z.EncBinary() _ = yym3674 if false { } else { r.EncodeBool(bool(x.Stdin)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdin")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3675 := z.EncBinary() _ = yym3675 if false { } else { r.EncodeBool(bool(x.Stdin)) } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3677 := z.EncBinary() _ = yym3677 if false { } else { r.EncodeBool(bool(x.Stdout)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stdout")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3678 := z.EncBinary() _ = yym3678 if false { } else { r.EncodeBool(bool(x.Stdout)) } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3680 := z.EncBinary() _ = yym3680 if false { } else { r.EncodeBool(bool(x.Stderr)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("Stderr")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3681 := z.EncBinary() _ = yym3681 if false { } else { r.EncodeBool(bool(x.Stderr)) } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3683 := z.EncBinary() _ = yym3683 if false { } else { r.EncodeBool(bool(x.TTY)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("TTY")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3684 := z.EncBinary() _ = yym3684 if false { } else { r.EncodeBool(bool(x.TTY)) } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3686 := z.EncBinary() _ = yym3686 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) yym3687 := z.EncBinary() _ = yym3687 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Container)) } } if yyr3666 || yy2arr3666 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Command == nil { r.EncodeNil() } else { yym3689 := z.EncBinary() _ = yym3689 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 { yym3690 := z.EncBinary() _ = yym3690 if false { } else { z.F.EncSliceStringV(x.Command, false, e) } } } if yyr3666 || yy2arr3666 { 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 yym3691 := z.DecBinary() _ = yym3691 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3692 := r.ContainerType() if yyct3692 == codecSelferValueTypeMap1234 { yyl3692 := r.ReadMapStart() if yyl3692 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3692, d) } } else if yyct3692 == codecSelferValueTypeArray1234 { yyl3692 := r.ReadArrayStart() if yyl3692 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3692, 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 yys3693Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3693Slc var yyhl3693 bool = l >= 0 for yyj3693 := 0; ; yyj3693++ { if yyhl3693 { if yyj3693 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3693Slc = r.DecodeBytes(yys3693Slc, true, true) yys3693 := string(yys3693Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3693 { 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 { yyv3701 := &x.Command yym3702 := z.DecBinary() _ = yym3702 if false { } else { z.F.DecSliceStringX(yyv3701, false, d) } } default: z.DecStructFieldNotFound(-1, yys3693) } // end switch yys3693 } // end for yyj3693 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 yyj3703 int var yyb3703 bool var yyhl3703 bool = l >= 0 yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdin = false } else { x.Stdin = bool(r.DecodeBool()) } yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stdout = false } else { x.Stdout = bool(r.DecodeBool()) } yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Stderr = false } else { x.Stderr = bool(r.DecodeBool()) } yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.TTY = false } else { x.TTY = bool(r.DecodeBool()) } yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Container = "" } else { x.Container = string(r.DecodeString()) } yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Command = nil } else { yyv3711 := &x.Command yym3712 := z.DecBinary() _ = yym3712 if false { } else { z.F.DecSliceStringX(yyv3711, false, d) } } for { yyj3703++ if yyhl3703 { yyb3703 = yyj3703 > l } else { yyb3703 = r.CheckBreak() } if yyb3703 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3703-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 { yym3713 := z.EncBinary() _ = yym3713 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3714 := !z.EncBinary() yy2arr3714 := z.EncBasicHandle().StructToArray var yyq3714 [3]bool _, _, _ = yysep3714, yyq3714, yy2arr3714 const yyr3714 bool = false yyq3714[0] = x.Kind != "" yyq3714[1] = x.APIVersion != "" var yynn3714 int if yyr3714 || yy2arr3714 { r.EncodeArrayStart(3) } else { yynn3714 = 1 for _, b := range yyq3714 { if b { yynn3714++ } } r.EncodeMapStart(yynn3714) yynn3714 = 0 } if yyr3714 || yy2arr3714 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3714[0] { yym3716 := z.EncBinary() _ = yym3716 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3714[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3717 := z.EncBinary() _ = yym3717 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3714 || yy2arr3714 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3714[1] { yym3719 := z.EncBinary() _ = yym3719 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3714[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3720 := z.EncBinary() _ = yym3720 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3714 || yy2arr3714 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3722 := z.EncBinary() _ = yym3722 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) yym3723 := z.EncBinary() _ = yym3723 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3714 || yy2arr3714 { 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 yym3724 := z.DecBinary() _ = yym3724 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3725 := r.ContainerType() if yyct3725 == codecSelferValueTypeMap1234 { yyl3725 := r.ReadMapStart() if yyl3725 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3725, d) } } else if yyct3725 == codecSelferValueTypeArray1234 { yyl3725 := r.ReadArrayStart() if yyl3725 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3725, 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 yys3726Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3726Slc var yyhl3726 bool = l >= 0 for yyj3726 := 0; ; yyj3726++ { if yyhl3726 { if yyj3726 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3726Slc = r.DecodeBytes(yys3726Slc, true, true) yys3726 := string(yys3726Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3726 { 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, yys3726) } // end switch yys3726 } // end for yyj3726 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 yyj3730 int var yyb3730 bool var yyhl3730 bool = l >= 0 yyj3730++ if yyhl3730 { yyb3730 = yyj3730 > l } else { yyb3730 = r.CheckBreak() } if yyb3730 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3730++ if yyhl3730 { yyb3730 = yyj3730 > l } else { yyb3730 = r.CheckBreak() } if yyb3730 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3730++ if yyhl3730 { yyb3730 = yyj3730 > l } else { yyb3730 = r.CheckBreak() } if yyb3730 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3730++ if yyhl3730 { yyb3730 = yyj3730 > l } else { yyb3730 = r.CheckBreak() } if yyb3730 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3730-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3734 := z.EncBinary() _ = yym3734 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3735 := !z.EncBinary() yy2arr3735 := z.EncBasicHandle().StructToArray var yyq3735 [3]bool _, _, _ = yysep3735, yyq3735, yy2arr3735 const yyr3735 bool = false yyq3735[0] = x.Kind != "" yyq3735[1] = x.APIVersion != "" var yynn3735 int if yyr3735 || yy2arr3735 { r.EncodeArrayStart(3) } else { yynn3735 = 1 for _, b := range yyq3735 { if b { yynn3735++ } } r.EncodeMapStart(yynn3735) yynn3735 = 0 } if yyr3735 || yy2arr3735 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3735[0] { yym3737 := z.EncBinary() _ = yym3737 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3735[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3738 := z.EncBinary() _ = yym3738 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3735 || yy2arr3735 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3735[1] { yym3740 := z.EncBinary() _ = yym3740 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3735[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3741 := z.EncBinary() _ = yym3741 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3735 || yy2arr3735 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3743 := z.EncBinary() _ = yym3743 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) yym3744 := z.EncBinary() _ = yym3744 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3735 || yy2arr3735 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3745 := z.DecBinary() _ = yym3745 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3746 := r.ContainerType() if yyct3746 == codecSelferValueTypeMap1234 { yyl3746 := r.ReadMapStart() if yyl3746 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3746, d) } } else if yyct3746 == codecSelferValueTypeArray1234 { yyl3746 := r.ReadArrayStart() if yyl3746 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3746, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3747Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3747Slc var yyhl3747 bool = l >= 0 for yyj3747 := 0; ; yyj3747++ { if yyhl3747 { if yyj3747 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3747Slc = r.DecodeBytes(yys3747Slc, true, true) yys3747 := string(yys3747Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3747 { 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, yys3747) } // end switch yys3747 } // end for yyj3747 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3751 int var yyb3751 bool var yyhl3751 bool = l >= 0 yyj3751++ if yyhl3751 { yyb3751 = yyj3751 > l } else { yyb3751 = r.CheckBreak() } if yyb3751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3751++ if yyhl3751 { yyb3751 = yyj3751 > l } else { yyb3751 = r.CheckBreak() } if yyb3751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3751++ if yyhl3751 { yyb3751 = yyj3751 > l } else { yyb3751 = r.CheckBreak() } if yyb3751 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3751++ if yyhl3751 { yyb3751 = yyj3751 > l } else { yyb3751 = r.CheckBreak() } if yyb3751 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3751-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3755 := z.EncBinary() _ = yym3755 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3756 := !z.EncBinary() yy2arr3756 := z.EncBasicHandle().StructToArray var yyq3756 [3]bool _, _, _ = yysep3756, yyq3756, yy2arr3756 const yyr3756 bool = false yyq3756[0] = x.Kind != "" yyq3756[1] = x.APIVersion != "" var yynn3756 int if yyr3756 || yy2arr3756 { r.EncodeArrayStart(3) } else { yynn3756 = 1 for _, b := range yyq3756 { if b { yynn3756++ } } r.EncodeMapStart(yynn3756) yynn3756 = 0 } if yyr3756 || yy2arr3756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3756[0] { yym3758 := z.EncBinary() _ = yym3758 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3756[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3759 := z.EncBinary() _ = yym3759 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3756 || yy2arr3756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3756[1] { yym3761 := z.EncBinary() _ = yym3761 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3756[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3762 := z.EncBinary() _ = yym3762 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3756 || yy2arr3756 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3764 := z.EncBinary() _ = yym3764 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) yym3765 := z.EncBinary() _ = yym3765 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Path)) } } if yyr3756 || yy2arr3756 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3766 := z.DecBinary() _ = yym3766 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3767 := r.ContainerType() if yyct3767 == codecSelferValueTypeMap1234 { yyl3767 := r.ReadMapStart() if yyl3767 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3767, d) } } else if yyct3767 == codecSelferValueTypeArray1234 { yyl3767 := r.ReadArrayStart() if yyl3767 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3767, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3768Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3768Slc var yyhl3768 bool = l >= 0 for yyj3768 := 0; ; yyj3768++ { if yyhl3768 { if yyj3768 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3768Slc = r.DecodeBytes(yys3768Slc, true, true) yys3768 := string(yys3768Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3768 { case "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, yys3768) } // end switch yys3768 } // end for yyj3768 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3772 int var yyb3772 bool var yyhl3772 bool = l >= 0 yyj3772++ if yyhl3772 { yyb3772 = yyj3772 > l } else { yyb3772 = r.CheckBreak() } if yyb3772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3772++ if yyhl3772 { yyb3772 = yyj3772 > l } else { yyb3772 = r.CheckBreak() } if yyb3772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3772++ if yyhl3772 { yyb3772 = yyj3772 > l } else { yyb3772 = r.CheckBreak() } if yyb3772 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Path = "" } else { x.Path = string(r.DecodeString()) } for { yyj3772++ if yyhl3772 { yyb3772 = yyj3772 > l } else { yyb3772 = r.CheckBreak() } if yyb3772 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3772-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym3776 := z.EncBinary() _ = yym3776 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3777 := !z.EncBinary() yy2arr3777 := z.EncBasicHandle().StructToArray var yyq3777 [5]bool _, _, _ = yysep3777, yyq3777, yy2arr3777 const yyr3777 bool = false yyq3777[4] = x.Controller != nil var yynn3777 int if yyr3777 || yy2arr3777 { r.EncodeArrayStart(5) } else { yynn3777 = 4 for _, b := range yyq3777 { if b { yynn3777++ } } r.EncodeMapStart(yynn3777) yynn3777 = 0 } if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3779 := z.EncBinary() _ = yym3779 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) yym3780 := z.EncBinary() _ = yym3780 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3782 := z.EncBinary() _ = yym3782 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3783 := z.EncBinary() _ = yym3783 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3785 := z.EncBinary() _ = yym3785 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) yym3786 := z.EncBinary() _ = yym3786 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3788 := z.EncBinary() _ = yym3788 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } else { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3789 := z.EncBinary() _ = yym3789 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3777[4] { if x.Controller == nil { r.EncodeNil() } else { yy3791 := *x.Controller yym3792 := z.EncBinary() _ = yym3792 if false { } else { r.EncodeBool(bool(yy3791)) } } } else { r.EncodeNil() } } else { if yyq3777[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("controller")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Controller == nil { r.EncodeNil() } else { yy3793 := *x.Controller yym3794 := z.EncBinary() _ = yym3794 if false { } else { r.EncodeBool(bool(yy3793)) } } } } if yyr3777 || yy2arr3777 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym3795 := z.DecBinary() _ = yym3795 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3796 := r.ContainerType() if yyct3796 == codecSelferValueTypeMap1234 { yyl3796 := r.ReadMapStart() if yyl3796 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3796, d) } } else if yyct3796 == codecSelferValueTypeArray1234 { yyl3796 := r.ReadArrayStart() if yyl3796 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3796, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys3797Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3797Slc var yyhl3797 bool = l >= 0 for yyj3797 := 0; ; yyj3797++ { if yyhl3797 { if yyj3797 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3797Slc = r.DecodeBytes(yys3797Slc, true, true) yys3797 := string(yys3797Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3797 { case "apiVersion": if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } case "kind": if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = 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 "controller": if r.TryDecodeAsNil() { if x.Controller != nil { x.Controller = nil } } else { if x.Controller == nil { x.Controller = new(bool) } yym3803 := z.DecBinary() _ = yym3803 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys3797) } // end switch yys3797 } // end for yyj3797 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj3804 int var yyb3804 bool var yyhl3804 bool = l >= 0 yyj3804++ if yyhl3804 { yyb3804 = yyj3804 > l } else { yyb3804 = r.CheckBreak() } if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3804++ if yyhl3804 { yyb3804 = yyj3804 > l } else { yyb3804 = r.CheckBreak() } if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3804++ if yyhl3804 { yyb3804 = yyj3804 > l } else { yyb3804 = r.CheckBreak() } if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3804++ if yyhl3804 { yyb3804 = yyj3804 > l } else { yyb3804 = r.CheckBreak() } if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3804++ if yyhl3804 { yyb3804 = yyj3804 > l } else { yyb3804 = r.CheckBreak() } if yyb3804 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.Controller != nil { x.Controller = nil } } else { if x.Controller == nil { x.Controller = new(bool) } yym3810 := z.DecBinary() _ = yym3810 if false { } else { *((*bool)(x.Controller)) = r.DecodeBool() } } for { yyj3804++ if yyhl3804 { yyb3804 = yyj3804 > l } else { yyb3804 = r.CheckBreak() } if yyb3804 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3804-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 { yym3811 := z.EncBinary() _ = yym3811 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3812 := !z.EncBinary() yy2arr3812 := z.EncBasicHandle().StructToArray var yyq3812 [7]bool _, _, _ = yysep3812, yyq3812, yy2arr3812 const yyr3812 bool = false yyq3812[0] = x.Kind != "" yyq3812[1] = x.Namespace != "" yyq3812[2] = x.Name != "" yyq3812[3] = x.UID != "" yyq3812[4] = x.APIVersion != "" yyq3812[5] = x.ResourceVersion != "" yyq3812[6] = x.FieldPath != "" var yynn3812 int if yyr3812 || yy2arr3812 { r.EncodeArrayStart(7) } else { yynn3812 = 0 for _, b := range yyq3812 { if b { yynn3812++ } } r.EncodeMapStart(yynn3812) yynn3812 = 0 } if yyr3812 || yy2arr3812 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3812[0] { yym3814 := z.EncBinary() _ = yym3814 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3812[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3815 := z.EncBinary() _ = yym3815 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3812 || yy2arr3812 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3812[1] { yym3817 := z.EncBinary() _ = yym3817 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3812[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("namespace")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3818 := z.EncBinary() _ = yym3818 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Namespace)) } } } if yyr3812 || yy2arr3812 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3812[2] { yym3820 := z.EncBinary() _ = yym3820 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3812[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("name")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3821 := z.EncBinary() _ = yym3821 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } } if yyr3812 || yy2arr3812 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3812[3] { yym3823 := z.EncBinary() _ = yym3823 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 yyq3812[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("uid")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3824 := z.EncBinary() _ = yym3824 if false { } else if z.HasExtensions() && z.EncExt(x.UID) { } else { r.EncodeString(codecSelferC_UTF81234, string(x.UID)) } } } if yyr3812 || yy2arr3812 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3812[4] { yym3826 := z.EncBinary() _ = yym3826 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3812[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3827 := z.EncBinary() _ = yym3827 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3812 || yy2arr3812 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3812[5] { yym3829 := z.EncBinary() _ = yym3829 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3812[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("resourceVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3830 := z.EncBinary() _ = yym3830 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion)) } } } if yyr3812 || yy2arr3812 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3812[6] { yym3832 := z.EncBinary() _ = yym3832 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3812[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("fieldPath")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3833 := z.EncBinary() _ = yym3833 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath)) } } } if yyr3812 || yy2arr3812 { 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 yym3834 := z.DecBinary() _ = yym3834 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3835 := r.ContainerType() if yyct3835 == codecSelferValueTypeMap1234 { yyl3835 := r.ReadMapStart() if yyl3835 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3835, d) } } else if yyct3835 == codecSelferValueTypeArray1234 { yyl3835 := r.ReadArrayStart() if yyl3835 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3835, 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 yys3836Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3836Slc var yyhl3836 bool = l >= 0 for yyj3836 := 0; ; yyj3836++ { if yyhl3836 { if yyj3836 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3836Slc = r.DecodeBytes(yys3836Slc, true, true) yys3836 := string(yys3836Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3836 { 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, yys3836) } // end switch yys3836 } // end for yyj3836 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 yyj3844 int var yyb3844 bool var yyhl3844 bool = l >= 0 yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Namespace = "" } else { x.Namespace = string(r.DecodeString()) } yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.UID = "" } else { x.UID = pkg1_types.UID(r.DecodeString()) } yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ResourceVersion = "" } else { x.ResourceVersion = string(r.DecodeString()) } yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FieldPath = "" } else { x.FieldPath = string(r.DecodeString()) } for { yyj3844++ if yyhl3844 { yyb3844 = yyj3844 > l } else { yyb3844 = r.CheckBreak() } if yyb3844 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3844-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 { yym3852 := z.EncBinary() _ = yym3852 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3853 := !z.EncBinary() yy2arr3853 := z.EncBasicHandle().StructToArray var yyq3853 [1]bool _, _, _ = yysep3853, yyq3853, yy2arr3853 const yyr3853 bool = false var yynn3853 int if yyr3853 || yy2arr3853 { r.EncodeArrayStart(1) } else { yynn3853 = 1 for _, b := range yyq3853 { if b { yynn3853++ } } r.EncodeMapStart(yynn3853) yynn3853 = 0 } if yyr3853 || yy2arr3853 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym3855 := z.EncBinary() _ = yym3855 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) yym3856 := z.EncBinary() _ = yym3856 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Name)) } } if yyr3853 || yy2arr3853 { 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 yym3857 := z.DecBinary() _ = yym3857 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3858 := r.ContainerType() if yyct3858 == codecSelferValueTypeMap1234 { yyl3858 := r.ReadMapStart() if yyl3858 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3858, d) } } else if yyct3858 == codecSelferValueTypeArray1234 { yyl3858 := r.ReadArrayStart() if yyl3858 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3858, 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 yys3859Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3859Slc var yyhl3859 bool = l >= 0 for yyj3859 := 0; ; yyj3859++ { if yyhl3859 { if yyj3859 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3859Slc = r.DecodeBytes(yys3859Slc, true, true) yys3859 := string(yys3859Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3859 { case "Name": if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3859) } // end switch yys3859 } // end for yyj3859 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 yyj3861 int var yyb3861 bool var yyhl3861 bool = l >= 0 yyj3861++ if yyhl3861 { yyb3861 = yyj3861 > l } else { yyb3861 = r.CheckBreak() } if yyb3861 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Name = "" } else { x.Name = string(r.DecodeString()) } for { yyj3861++ if yyhl3861 { yyb3861 = yyj3861 > l } else { yyb3861 = r.CheckBreak() } if yyb3861 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3861-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 { yym3863 := z.EncBinary() _ = yym3863 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3864 := !z.EncBinary() yy2arr3864 := z.EncBasicHandle().StructToArray var yyq3864 [3]bool _, _, _ = yysep3864, yyq3864, yy2arr3864 const yyr3864 bool = false yyq3864[0] = x.Kind != "" yyq3864[1] = x.APIVersion != "" yyq3864[2] = true var yynn3864 int if yyr3864 || yy2arr3864 { r.EncodeArrayStart(3) } else { yynn3864 = 0 for _, b := range yyq3864 { if b { yynn3864++ } } r.EncodeMapStart(yynn3864) yynn3864 = 0 } if yyr3864 || yy2arr3864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3864[0] { yym3866 := z.EncBinary() _ = yym3866 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3864[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3867 := z.EncBinary() _ = yym3867 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3864 || yy2arr3864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3864[1] { yym3869 := z.EncBinary() _ = yym3869 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3864[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3870 := z.EncBinary() _ = yym3870 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3864 || yy2arr3864 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3864[2] { yy3872 := &x.Reference yy3872.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3864[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reference")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3873 := &x.Reference yy3873.CodecEncodeSelf(e) } } if yyr3864 || yy2arr3864 { 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 yym3874 := z.DecBinary() _ = yym3874 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3875 := r.ContainerType() if yyct3875 == codecSelferValueTypeMap1234 { yyl3875 := r.ReadMapStart() if yyl3875 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3875, d) } } else if yyct3875 == codecSelferValueTypeArray1234 { yyl3875 := r.ReadArrayStart() if yyl3875 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3875, 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 yys3876Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3876Slc var yyhl3876 bool = l >= 0 for yyj3876 := 0; ; yyj3876++ { if yyhl3876 { if yyj3876 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3876Slc = r.DecodeBytes(yys3876Slc, true, true) yys3876 := string(yys3876Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3876 { 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 { yyv3879 := &x.Reference yyv3879.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys3876) } // end switch yys3876 } // end for yyj3876 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 yyj3880 int var yyb3880 bool var yyhl3880 bool = l >= 0 yyj3880++ if yyhl3880 { yyb3880 = yyj3880 > l } else { yyb3880 = r.CheckBreak() } if yyb3880 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3880++ if yyhl3880 { yyb3880 = yyj3880 > l } else { yyb3880 = r.CheckBreak() } if yyb3880 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3880++ if yyhl3880 { yyb3880 = yyj3880 > l } else { yyb3880 = r.CheckBreak() } if yyb3880 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reference = ObjectReference{} } else { yyv3883 := &x.Reference yyv3883.CodecDecodeSelf(d) } for { yyj3880++ if yyhl3880 { yyb3880 = yyj3880 > l } else { yyb3880 = r.CheckBreak() } if yyb3880 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3880-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 { yym3884 := z.EncBinary() _ = yym3884 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3885 := !z.EncBinary() yy2arr3885 := z.EncBasicHandle().StructToArray var yyq3885 [2]bool _, _, _ = yysep3885, yyq3885, yy2arr3885 const yyr3885 bool = false yyq3885[0] = x.Component != "" yyq3885[1] = x.Host != "" var yynn3885 int if yyr3885 || yy2arr3885 { r.EncodeArrayStart(2) } else { yynn3885 = 0 for _, b := range yyq3885 { if b { yynn3885++ } } r.EncodeMapStart(yynn3885) yynn3885 = 0 } if yyr3885 || yy2arr3885 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3885[0] { yym3887 := z.EncBinary() _ = yym3887 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3885[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("component")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3888 := z.EncBinary() _ = yym3888 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Component)) } } } if yyr3885 || yy2arr3885 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3885[1] { yym3890 := z.EncBinary() _ = yym3890 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3885[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("host")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3891 := z.EncBinary() _ = yym3891 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Host)) } } } if yyr3885 || yy2arr3885 { 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 yym3892 := z.DecBinary() _ = yym3892 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3893 := r.ContainerType() if yyct3893 == codecSelferValueTypeMap1234 { yyl3893 := r.ReadMapStart() if yyl3893 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3893, d) } } else if yyct3893 == codecSelferValueTypeArray1234 { yyl3893 := r.ReadArrayStart() if yyl3893 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3893, 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 yys3894Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3894Slc var yyhl3894 bool = l >= 0 for yyj3894 := 0; ; yyj3894++ { if yyhl3894 { if yyj3894 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3894Slc = r.DecodeBytes(yys3894Slc, true, true) yys3894 := string(yys3894Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3894 { 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, yys3894) } // end switch yys3894 } // end for yyj3894 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 yyj3897 int var yyb3897 bool var yyhl3897 bool = l >= 0 yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Component = "" } else { x.Component = string(r.DecodeString()) } yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Host = "" } else { x.Host = string(r.DecodeString()) } for { yyj3897++ if yyhl3897 { yyb3897 = yyj3897 > l } else { yyb3897 = r.CheckBreak() } if yyb3897 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3897-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 { yym3900 := z.EncBinary() _ = yym3900 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3901 := !z.EncBinary() yy2arr3901 := z.EncBasicHandle().StructToArray var yyq3901 [11]bool _, _, _ = yysep3901, yyq3901, yy2arr3901 const yyr3901 bool = false yyq3901[0] = x.Kind != "" yyq3901[1] = x.APIVersion != "" yyq3901[2] = true yyq3901[3] = true yyq3901[4] = x.Reason != "" yyq3901[5] = x.Message != "" yyq3901[6] = true yyq3901[7] = true yyq3901[8] = true yyq3901[9] = x.Count != 0 yyq3901[10] = x.Type != "" var yynn3901 int if yyr3901 || yy2arr3901 { r.EncodeArrayStart(11) } else { yynn3901 = 0 for _, b := range yyq3901 { if b { yynn3901++ } } r.EncodeMapStart(yynn3901) yynn3901 = 0 } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[0] { yym3903 := z.EncBinary() _ = yym3903 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3901[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3904 := z.EncBinary() _ = yym3904 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[1] { yym3906 := z.EncBinary() _ = yym3906 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3901[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3907 := z.EncBinary() _ = yym3907 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[2] { yy3909 := &x.ObjectMeta yy3909.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3901[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3910 := &x.ObjectMeta yy3910.CodecEncodeSelf(e) } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[3] { yy3912 := &x.InvolvedObject yy3912.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3901[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("involvedObject")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3913 := &x.InvolvedObject yy3913.CodecEncodeSelf(e) } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[4] { yym3915 := z.EncBinary() _ = yym3915 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3901[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("reason")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3916 := z.EncBinary() _ = yym3916 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Reason)) } } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[5] { yym3918 := z.EncBinary() _ = yym3918 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3901[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3919 := z.EncBinary() _ = yym3919 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[6] { yy3921 := &x.Source yy3921.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq3901[6] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("source")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3922 := &x.Source yy3922.CodecEncodeSelf(e) } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[7] { yy3924 := &x.FirstTimestamp yym3925 := z.EncBinary() _ = yym3925 if false { } else if z.HasExtensions() && z.EncExt(yy3924) { } else if yym3925 { z.EncBinaryMarshal(yy3924) } else if !yym3925 && z.IsJSONHandle() { z.EncJSONMarshal(yy3924) } else { z.EncFallback(yy3924) } } else { r.EncodeNil() } } else { if yyq3901[7] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3926 := &x.FirstTimestamp yym3927 := z.EncBinary() _ = yym3927 if false { } else if z.HasExtensions() && z.EncExt(yy3926) { } else if yym3927 { z.EncBinaryMarshal(yy3926) } else if !yym3927 && z.IsJSONHandle() { z.EncJSONMarshal(yy3926) } else { z.EncFallback(yy3926) } } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[8] { yy3929 := &x.LastTimestamp yym3930 := z.EncBinary() _ = yym3930 if false { } else if z.HasExtensions() && z.EncExt(yy3929) { } else if yym3930 { z.EncBinaryMarshal(yy3929) } else if !yym3930 && z.IsJSONHandle() { z.EncJSONMarshal(yy3929) } else { z.EncFallback(yy3929) } } else { r.EncodeNil() } } else { if yyq3901[8] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3931 := &x.LastTimestamp yym3932 := z.EncBinary() _ = yym3932 if false { } else if z.HasExtensions() && z.EncExt(yy3931) { } else if yym3932 { z.EncBinaryMarshal(yy3931) } else if !yym3932 && z.IsJSONHandle() { z.EncJSONMarshal(yy3931) } else { z.EncFallback(yy3931) } } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[9] { yym3934 := z.EncBinary() _ = yym3934 if false { } else { r.EncodeInt(int64(x.Count)) } } else { r.EncodeInt(0) } } else { if yyq3901[9] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("count")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3935 := z.EncBinary() _ = yym3935 if false { } else { r.EncodeInt(int64(x.Count)) } } } if yyr3901 || yy2arr3901 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3901[10] { yym3937 := z.EncBinary() _ = yym3937 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3901[10] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3938 := z.EncBinary() _ = yym3938 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr3901 || yy2arr3901 { 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 yym3939 := z.DecBinary() _ = yym3939 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3940 := r.ContainerType() if yyct3940 == codecSelferValueTypeMap1234 { yyl3940 := r.ReadMapStart() if yyl3940 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3940, d) } } else if yyct3940 == codecSelferValueTypeArray1234 { yyl3940 := r.ReadArrayStart() if yyl3940 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3940, 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 yys3941Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3941Slc var yyhl3941 bool = l >= 0 for yyj3941 := 0; ; yyj3941++ { if yyhl3941 { if yyj3941 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3941Slc = r.DecodeBytes(yys3941Slc, true, true) yys3941 := string(yys3941Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3941 { 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 { yyv3944 := &x.ObjectMeta yyv3944.CodecDecodeSelf(d) } case "involvedObject": if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3945 := &x.InvolvedObject yyv3945.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 { yyv3948 := &x.Source yyv3948.CodecDecodeSelf(d) } case "firstTimestamp": if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3949 := &x.FirstTimestamp yym3950 := z.DecBinary() _ = yym3950 if false { } else if z.HasExtensions() && z.DecExt(yyv3949) { } else if yym3950 { z.DecBinaryUnmarshal(yyv3949) } else if !yym3950 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3949) } else { z.DecFallback(yyv3949, false) } } case "lastTimestamp": if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3951 := &x.LastTimestamp yym3952 := z.DecBinary() _ = yym3952 if false { } else if z.HasExtensions() && z.DecExt(yyv3951) { } else if yym3952 { z.DecBinaryUnmarshal(yyv3951) } else if !yym3952 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3951) } else { z.DecFallback(yyv3951, false) } } case "count": if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int32(r.DecodeInt(32)) } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys3941) } // end switch yys3941 } // end for yyj3941 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 yyj3955 int var yyb3955 bool var yyhl3955 bool = l >= 0 yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv3958 := &x.ObjectMeta yyv3958.CodecDecodeSelf(d) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.InvolvedObject = ObjectReference{} } else { yyv3959 := &x.InvolvedObject yyv3959.CodecDecodeSelf(d) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Reason = "" } else { x.Reason = string(r.DecodeString()) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Source = EventSource{} } else { yyv3962 := &x.Source yyv3962.CodecDecodeSelf(d) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.FirstTimestamp = pkg2_unversioned.Time{} } else { yyv3963 := &x.FirstTimestamp yym3964 := z.DecBinary() _ = yym3964 if false { } else if z.HasExtensions() && z.DecExt(yyv3963) { } else if yym3964 { z.DecBinaryUnmarshal(yyv3963) } else if !yym3964 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3963) } else { z.DecFallback(yyv3963, false) } } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.LastTimestamp = pkg2_unversioned.Time{} } else { yyv3965 := &x.LastTimestamp yym3966 := z.DecBinary() _ = yym3966 if false { } else if z.HasExtensions() && z.DecExt(yyv3965) { } else if yym3966 { z.DecBinaryUnmarshal(yyv3965) } else if !yym3966 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv3965) } else { z.DecFallback(yyv3965, false) } } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Count = 0 } else { x.Count = int32(r.DecodeInt(32)) } yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } for { yyj3955++ if yyhl3955 { yyb3955 = yyj3955 > l } else { yyb3955 = r.CheckBreak() } if yyb3955 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3955-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 { yym3969 := z.EncBinary() _ = yym3969 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep3970 := !z.EncBinary() yy2arr3970 := z.EncBasicHandle().StructToArray var yyq3970 [4]bool _, _, _ = yysep3970, yyq3970, yy2arr3970 const yyr3970 bool = false yyq3970[0] = x.Kind != "" yyq3970[1] = x.APIVersion != "" yyq3970[2] = true var yynn3970 int if yyr3970 || yy2arr3970 { r.EncodeArrayStart(4) } else { yynn3970 = 1 for _, b := range yyq3970 { if b { yynn3970++ } } r.EncodeMapStart(yynn3970) yynn3970 = 0 } if yyr3970 || yy2arr3970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3970[0] { yym3972 := z.EncBinary() _ = yym3972 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3970[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3973 := z.EncBinary() _ = yym3973 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr3970 || yy2arr3970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3970[1] { yym3975 := z.EncBinary() _ = yym3975 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq3970[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym3976 := z.EncBinary() _ = yym3976 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr3970 || yy2arr3970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq3970[2] { yy3978 := &x.ListMeta yym3979 := z.EncBinary() _ = yym3979 if false { } else if z.HasExtensions() && z.EncExt(yy3978) { } else { z.EncFallback(yy3978) } } else { r.EncodeNil() } } else { if yyq3970[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy3980 := &x.ListMeta yym3981 := z.EncBinary() _ = yym3981 if false { } else if z.HasExtensions() && z.EncExt(yy3980) { } else { z.EncFallback(yy3980) } } } if yyr3970 || yy2arr3970 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym3983 := z.EncBinary() _ = yym3983 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 { yym3984 := z.EncBinary() _ = yym3984 if false { } else { h.encSliceEvent(([]Event)(x.Items), e) } } } if yyr3970 || yy2arr3970 { 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 yym3985 := z.DecBinary() _ = yym3985 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct3986 := r.ContainerType() if yyct3986 == codecSelferValueTypeMap1234 { yyl3986 := r.ReadMapStart() if yyl3986 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl3986, d) } } else if yyct3986 == codecSelferValueTypeArray1234 { yyl3986 := r.ReadArrayStart() if yyl3986 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl3986, 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 yys3987Slc = z.DecScratchBuffer() // default slice to decode into _ = yys3987Slc var yyhl3987 bool = l >= 0 for yyj3987 := 0; ; yyj3987++ { if yyhl3987 { if yyj3987 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys3987Slc = r.DecodeBytes(yys3987Slc, true, true) yys3987 := string(yys3987Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys3987 { 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 { yyv3990 := &x.ListMeta yym3991 := z.DecBinary() _ = yym3991 if false { } else if z.HasExtensions() && z.DecExt(yyv3990) { } else { z.DecFallback(yyv3990, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv3992 := &x.Items yym3993 := z.DecBinary() _ = yym3993 if false { } else { h.decSliceEvent((*[]Event)(yyv3992), d) } } default: z.DecStructFieldNotFound(-1, yys3987) } // end switch yys3987 } // end for yyj3987 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 yyj3994 int var yyb3994 bool var yyhl3994 bool = l >= 0 yyj3994++ if yyhl3994 { yyb3994 = yyj3994 > l } else { yyb3994 = r.CheckBreak() } if yyb3994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj3994++ if yyhl3994 { yyb3994 = yyj3994 > l } else { yyb3994 = r.CheckBreak() } if yyb3994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj3994++ if yyhl3994 { yyb3994 = yyj3994 > l } else { yyb3994 = r.CheckBreak() } if yyb3994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv3997 := &x.ListMeta yym3998 := z.DecBinary() _ = yym3998 if false { } else if z.HasExtensions() && z.DecExt(yyv3997) { } else { z.DecFallback(yyv3997, false) } } yyj3994++ if yyhl3994 { yyb3994 = yyj3994 > l } else { yyb3994 = r.CheckBreak() } if yyb3994 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv3999 := &x.Items yym4000 := z.DecBinary() _ = yym4000 if false { } else { h.decSliceEvent((*[]Event)(yyv3999), d) } } for { yyj3994++ if yyhl3994 { yyb3994 = yyj3994 > l } else { yyb3994 = r.CheckBreak() } if yyb3994 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj3994-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 { yym4001 := z.EncBinary() _ = yym4001 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4002 := !z.EncBinary() yy2arr4002 := z.EncBasicHandle().StructToArray var yyq4002 [4]bool _, _, _ = yysep4002, yyq4002, yy2arr4002 const yyr4002 bool = false yyq4002[0] = x.Kind != "" yyq4002[1] = x.APIVersion != "" yyq4002[2] = true var yynn4002 int if yyr4002 || yy2arr4002 { r.EncodeArrayStart(4) } else { yynn4002 = 1 for _, b := range yyq4002 { if b { yynn4002++ } } r.EncodeMapStart(yynn4002) yynn4002 = 0 } if yyr4002 || yy2arr4002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4002[0] { yym4004 := z.EncBinary() _ = yym4004 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4002[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4005 := z.EncBinary() _ = yym4005 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4002 || yy2arr4002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4002[1] { yym4007 := z.EncBinary() _ = yym4007 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4002[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4008 := z.EncBinary() _ = yym4008 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4002 || yy2arr4002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4002[2] { yy4010 := &x.ListMeta yym4011 := z.EncBinary() _ = yym4011 if false { } else if z.HasExtensions() && z.EncExt(yy4010) { } else { z.EncFallback(yy4010) } } else { r.EncodeNil() } } else { if yyq4002[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4012 := &x.ListMeta yym4013 := z.EncBinary() _ = yym4013 if false { } else if z.HasExtensions() && z.EncExt(yy4012) { } else { z.EncFallback(yy4012) } } } if yyr4002 || yy2arr4002 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4015 := z.EncBinary() _ = yym4015 if false { } else { h.encSliceruntime_Object(([]pkg7_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 { yym4016 := z.EncBinary() _ = yym4016 if false { } else { h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e) } } } if yyr4002 || yy2arr4002 { 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 yym4017 := z.DecBinary() _ = yym4017 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4018 := r.ContainerType() if yyct4018 == codecSelferValueTypeMap1234 { yyl4018 := r.ReadMapStart() if yyl4018 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4018, d) } } else if yyct4018 == codecSelferValueTypeArray1234 { yyl4018 := r.ReadArrayStart() if yyl4018 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4018, 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 yys4019Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4019Slc var yyhl4019 bool = l >= 0 for yyj4019 := 0; ; yyj4019++ { if yyhl4019 { if yyj4019 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4019Slc = r.DecodeBytes(yys4019Slc, true, true) yys4019 := string(yys4019Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4019 { 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 { yyv4022 := &x.ListMeta yym4023 := z.DecBinary() _ = yym4023 if false { } else if z.HasExtensions() && z.DecExt(yyv4022) { } else { z.DecFallback(yyv4022, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4024 := &x.Items yym4025 := z.DecBinary() _ = yym4025 if false { } else { h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4024), d) } } default: z.DecStructFieldNotFound(-1, yys4019) } // end switch yys4019 } // end for yyj4019 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 yyj4026 int var yyb4026 bool var yyhl4026 bool = l >= 0 yyj4026++ if yyhl4026 { yyb4026 = yyj4026 > l } else { yyb4026 = r.CheckBreak() } if yyb4026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4026++ if yyhl4026 { yyb4026 = yyj4026 > l } else { yyb4026 = r.CheckBreak() } if yyb4026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4026++ if yyhl4026 { yyb4026 = yyj4026 > l } else { yyb4026 = r.CheckBreak() } if yyb4026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4029 := &x.ListMeta yym4030 := z.DecBinary() _ = yym4030 if false { } else if z.HasExtensions() && z.DecExt(yyv4029) { } else { z.DecFallback(yyv4029, false) } } yyj4026++ if yyhl4026 { yyb4026 = yyj4026 > l } else { yyb4026 = r.CheckBreak() } if yyb4026 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4031 := &x.Items yym4032 := z.DecBinary() _ = yym4032 if false { } else { h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv4031), d) } } for { yyj4026++ if yyhl4026 { yyb4026 = yyj4026 > l } else { yyb4026 = r.CheckBreak() } if yyb4026 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4026-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4033 := z.EncBinary() _ = yym4033 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 yym4034 := z.DecBinary() _ = yym4034 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 { yym4035 := z.EncBinary() _ = yym4035 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4036 := !z.EncBinary() yy2arr4036 := z.EncBasicHandle().StructToArray var yyq4036 [6]bool _, _, _ = yysep4036, yyq4036, yy2arr4036 const yyr4036 bool = false yyq4036[0] = x.Type != "" yyq4036[1] = len(x.Max) != 0 yyq4036[2] = len(x.Min) != 0 yyq4036[3] = len(x.Default) != 0 yyq4036[4] = len(x.DefaultRequest) != 0 yyq4036[5] = len(x.MaxLimitRequestRatio) != 0 var yynn4036 int if yyr4036 || yy2arr4036 { r.EncodeArrayStart(6) } else { yynn4036 = 0 for _, b := range yyq4036 { if b { yynn4036++ } } r.EncodeMapStart(yynn4036) yynn4036 = 0 } if yyr4036 || yy2arr4036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4036[0] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4036[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr4036 || yy2arr4036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4036[1] { if x.Max == nil { r.EncodeNil() } else { x.Max.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4036[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 yyr4036 || yy2arr4036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4036[2] { if x.Min == nil { r.EncodeNil() } else { x.Min.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4036[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 yyr4036 || yy2arr4036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4036[3] { if x.Default == nil { r.EncodeNil() } else { x.Default.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4036[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 yyr4036 || yy2arr4036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4036[4] { if x.DefaultRequest == nil { r.EncodeNil() } else { x.DefaultRequest.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4036[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 yyr4036 || yy2arr4036 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4036[5] { if x.MaxLimitRequestRatio == nil { r.EncodeNil() } else { x.MaxLimitRequestRatio.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4036[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 yyr4036 || yy2arr4036 { 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 yym4043 := z.DecBinary() _ = yym4043 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4044 := r.ContainerType() if yyct4044 == codecSelferValueTypeMap1234 { yyl4044 := r.ReadMapStart() if yyl4044 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4044, d) } } else if yyct4044 == codecSelferValueTypeArray1234 { yyl4044 := r.ReadArrayStart() if yyl4044 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4044, 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 yys4045Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4045Slc var yyhl4045 bool = l >= 0 for yyj4045 := 0; ; yyj4045++ { if yyhl4045 { if yyj4045 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4045Slc = r.DecodeBytes(yys4045Slc, true, true) yys4045 := string(yys4045Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4045 { case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } case "max": if r.TryDecodeAsNil() { x.Max = nil } else { yyv4047 := &x.Max yyv4047.CodecDecodeSelf(d) } case "min": if r.TryDecodeAsNil() { x.Min = nil } else { yyv4048 := &x.Min yyv4048.CodecDecodeSelf(d) } case "default": if r.TryDecodeAsNil() { x.Default = nil } else { yyv4049 := &x.Default yyv4049.CodecDecodeSelf(d) } case "defaultRequest": if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv4050 := &x.DefaultRequest yyv4050.CodecDecodeSelf(d) } case "maxLimitRequestRatio": if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv4051 := &x.MaxLimitRequestRatio yyv4051.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys4045) } // end switch yys4045 } // end for yyj4045 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 yyj4052 int var yyb4052 bool var yyhl4052 bool = l >= 0 yyj4052++ if yyhl4052 { yyb4052 = yyj4052 > l } else { yyb4052 = r.CheckBreak() } if yyb4052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = LimitType(r.DecodeString()) } yyj4052++ if yyhl4052 { yyb4052 = yyj4052 > l } else { yyb4052 = r.CheckBreak() } if yyb4052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Max = nil } else { yyv4054 := &x.Max yyv4054.CodecDecodeSelf(d) } yyj4052++ if yyhl4052 { yyb4052 = yyj4052 > l } else { yyb4052 = r.CheckBreak() } if yyb4052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Min = nil } else { yyv4055 := &x.Min yyv4055.CodecDecodeSelf(d) } yyj4052++ if yyhl4052 { yyb4052 = yyj4052 > l } else { yyb4052 = r.CheckBreak() } if yyb4052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Default = nil } else { yyv4056 := &x.Default yyv4056.CodecDecodeSelf(d) } yyj4052++ if yyhl4052 { yyb4052 = yyj4052 > l } else { yyb4052 = r.CheckBreak() } if yyb4052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.DefaultRequest = nil } else { yyv4057 := &x.DefaultRequest yyv4057.CodecDecodeSelf(d) } yyj4052++ if yyhl4052 { yyb4052 = yyj4052 > l } else { yyb4052 = r.CheckBreak() } if yyb4052 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.MaxLimitRequestRatio = nil } else { yyv4058 := &x.MaxLimitRequestRatio yyv4058.CodecDecodeSelf(d) } for { yyj4052++ if yyhl4052 { yyb4052 = yyj4052 > l } else { yyb4052 = r.CheckBreak() } if yyb4052 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4052-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 { yym4059 := z.EncBinary() _ = yym4059 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4060 := !z.EncBinary() yy2arr4060 := z.EncBasicHandle().StructToArray var yyq4060 [1]bool _, _, _ = yysep4060, yyq4060, yy2arr4060 const yyr4060 bool = false var yynn4060 int if yyr4060 || yy2arr4060 { r.EncodeArrayStart(1) } else { yynn4060 = 1 for _, b := range yyq4060 { if b { yynn4060++ } } r.EncodeMapStart(yynn4060) yynn4060 = 0 } if yyr4060 || yy2arr4060 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Limits == nil { r.EncodeNil() } else { yym4062 := z.EncBinary() _ = yym4062 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 { yym4063 := z.EncBinary() _ = yym4063 if false { } else { h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e) } } } if yyr4060 || yy2arr4060 { 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 yym4064 := z.DecBinary() _ = yym4064 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4065 := r.ContainerType() if yyct4065 == codecSelferValueTypeMap1234 { yyl4065 := r.ReadMapStart() if yyl4065 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4065, d) } } else if yyct4065 == codecSelferValueTypeArray1234 { yyl4065 := r.ReadArrayStart() if yyl4065 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4065, 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 yys4066Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4066Slc var yyhl4066 bool = l >= 0 for yyj4066 := 0; ; yyj4066++ { if yyhl4066 { if yyj4066 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4066Slc = r.DecodeBytes(yys4066Slc, true, true) yys4066 := string(yys4066Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4066 { case "limits": if r.TryDecodeAsNil() { x.Limits = nil } else { yyv4067 := &x.Limits yym4068 := z.DecBinary() _ = yym4068 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4067), d) } } default: z.DecStructFieldNotFound(-1, yys4066) } // end switch yys4066 } // end for yyj4066 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 yyj4069 int var yyb4069 bool var yyhl4069 bool = l >= 0 yyj4069++ if yyhl4069 { yyb4069 = yyj4069 > l } else { yyb4069 = r.CheckBreak() } if yyb4069 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Limits = nil } else { yyv4070 := &x.Limits yym4071 := z.DecBinary() _ = yym4071 if false { } else { h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv4070), d) } } for { yyj4069++ if yyhl4069 { yyb4069 = yyj4069 > l } else { yyb4069 = r.CheckBreak() } if yyb4069 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4069-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 { yym4072 := z.EncBinary() _ = yym4072 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4073 := !z.EncBinary() yy2arr4073 := z.EncBasicHandle().StructToArray var yyq4073 [4]bool _, _, _ = yysep4073, yyq4073, yy2arr4073 const yyr4073 bool = false yyq4073[0] = x.Kind != "" yyq4073[1] = x.APIVersion != "" yyq4073[2] = true yyq4073[3] = true var yynn4073 int if yyr4073 || yy2arr4073 { r.EncodeArrayStart(4) } else { yynn4073 = 0 for _, b := range yyq4073 { if b { yynn4073++ } } r.EncodeMapStart(yynn4073) yynn4073 = 0 } if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4073[0] { yym4075 := z.EncBinary() _ = yym4075 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4073[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4076 := z.EncBinary() _ = yym4076 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4073[1] { yym4078 := z.EncBinary() _ = yym4078 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4073[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4079 := z.EncBinary() _ = yym4079 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4073[2] { yy4081 := &x.ObjectMeta yy4081.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4073[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4082 := &x.ObjectMeta yy4082.CodecEncodeSelf(e) } } if yyr4073 || yy2arr4073 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4073[3] { yy4084 := &x.Spec yy4084.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4073[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4085 := &x.Spec yy4085.CodecEncodeSelf(e) } } if yyr4073 || yy2arr4073 { 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 yym4086 := z.DecBinary() _ = yym4086 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4087 := r.ContainerType() if yyct4087 == codecSelferValueTypeMap1234 { yyl4087 := r.ReadMapStart() if yyl4087 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4087, d) } } else if yyct4087 == codecSelferValueTypeArray1234 { yyl4087 := r.ReadArrayStart() if yyl4087 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4087, 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 yys4088Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4088Slc var yyhl4088 bool = l >= 0 for yyj4088 := 0; ; yyj4088++ { if yyhl4088 { if yyj4088 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4088Slc = r.DecodeBytes(yys4088Slc, true, true) yys4088 := string(yys4088Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4088 { 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 { yyv4091 := &x.ObjectMeta yyv4091.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv4092 := &x.Spec yyv4092.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys4088) } // end switch yys4088 } // end for yyj4088 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 yyj4093 int var yyb4093 bool var yyhl4093 bool = l >= 0 yyj4093++ if yyhl4093 { yyb4093 = yyj4093 > l } else { yyb4093 = r.CheckBreak() } if yyb4093 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4093++ if yyhl4093 { yyb4093 = yyj4093 > l } else { yyb4093 = r.CheckBreak() } if yyb4093 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4093++ if yyhl4093 { yyb4093 = yyj4093 > l } else { yyb4093 = r.CheckBreak() } if yyb4093 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4096 := &x.ObjectMeta yyv4096.CodecDecodeSelf(d) } yyj4093++ if yyhl4093 { yyb4093 = yyj4093 > l } else { yyb4093 = r.CheckBreak() } if yyb4093 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = LimitRangeSpec{} } else { yyv4097 := &x.Spec yyv4097.CodecDecodeSelf(d) } for { yyj4093++ if yyhl4093 { yyb4093 = yyj4093 > l } else { yyb4093 = r.CheckBreak() } if yyb4093 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4093-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 { yym4098 := z.EncBinary() _ = yym4098 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4099 := !z.EncBinary() yy2arr4099 := z.EncBasicHandle().StructToArray var yyq4099 [4]bool _, _, _ = yysep4099, yyq4099, yy2arr4099 const yyr4099 bool = false yyq4099[0] = x.Kind != "" yyq4099[1] = x.APIVersion != "" yyq4099[2] = true var yynn4099 int if yyr4099 || yy2arr4099 { r.EncodeArrayStart(4) } else { yynn4099 = 1 for _, b := range yyq4099 { if b { yynn4099++ } } r.EncodeMapStart(yynn4099) yynn4099 = 0 } if yyr4099 || yy2arr4099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4099[0] { yym4101 := z.EncBinary() _ = yym4101 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4099[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4102 := z.EncBinary() _ = yym4102 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4099 || yy2arr4099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4099[1] { yym4104 := z.EncBinary() _ = yym4104 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4099[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4105 := z.EncBinary() _ = yym4105 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4099 || yy2arr4099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4099[2] { yy4107 := &x.ListMeta yym4108 := z.EncBinary() _ = yym4108 if false { } else if z.HasExtensions() && z.EncExt(yy4107) { } else { z.EncFallback(yy4107) } } else { r.EncodeNil() } } else { if yyq4099[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4109 := &x.ListMeta yym4110 := z.EncBinary() _ = yym4110 if false { } else if z.HasExtensions() && z.EncExt(yy4109) { } else { z.EncFallback(yy4109) } } } if yyr4099 || yy2arr4099 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4112 := z.EncBinary() _ = yym4112 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 { yym4113 := z.EncBinary() _ = yym4113 if false { } else { h.encSliceLimitRange(([]LimitRange)(x.Items), e) } } } if yyr4099 || yy2arr4099 { 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 yym4114 := z.DecBinary() _ = yym4114 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4115 := r.ContainerType() if yyct4115 == codecSelferValueTypeMap1234 { yyl4115 := r.ReadMapStart() if yyl4115 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4115, d) } } else if yyct4115 == codecSelferValueTypeArray1234 { yyl4115 := r.ReadArrayStart() if yyl4115 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4115, 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 yys4116Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4116Slc var yyhl4116 bool = l >= 0 for yyj4116 := 0; ; yyj4116++ { if yyhl4116 { if yyj4116 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4116Slc = r.DecodeBytes(yys4116Slc, true, true) yys4116 := string(yys4116Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4116 { 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 { yyv4119 := &x.ListMeta yym4120 := z.DecBinary() _ = yym4120 if false { } else if z.HasExtensions() && z.DecExt(yyv4119) { } else { z.DecFallback(yyv4119, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4121 := &x.Items yym4122 := z.DecBinary() _ = yym4122 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv4121), d) } } default: z.DecStructFieldNotFound(-1, yys4116) } // end switch yys4116 } // end for yyj4116 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 yyj4123 int var yyb4123 bool var yyhl4123 bool = l >= 0 yyj4123++ if yyhl4123 { yyb4123 = yyj4123 > l } else { yyb4123 = r.CheckBreak() } if yyb4123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4123++ if yyhl4123 { yyb4123 = yyj4123 > l } else { yyb4123 = r.CheckBreak() } if yyb4123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4123++ if yyhl4123 { yyb4123 = yyj4123 > l } else { yyb4123 = r.CheckBreak() } if yyb4123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4126 := &x.ListMeta yym4127 := z.DecBinary() _ = yym4127 if false { } else if z.HasExtensions() && z.DecExt(yyv4126) { } else { z.DecFallback(yyv4126, false) } } yyj4123++ if yyhl4123 { yyb4123 = yyj4123 > l } else { yyb4123 = r.CheckBreak() } if yyb4123 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4128 := &x.Items yym4129 := z.DecBinary() _ = yym4129 if false { } else { h.decSliceLimitRange((*[]LimitRange)(yyv4128), d) } } for { yyj4123++ if yyhl4123 { yyb4123 = yyj4123 > l } else { yyb4123 = r.CheckBreak() } if yyb4123 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4123-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4130 := z.EncBinary() _ = yym4130 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { r.EncodeString(codecSelferC_UTF81234, string(x)) } } func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4131 := z.DecBinary() _ = yym4131 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { *((*string)(x)) = r.DecodeString() } } func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4132 := z.EncBinary() _ = yym4132 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4133 := !z.EncBinary() yy2arr4133 := z.EncBasicHandle().StructToArray var yyq4133 [2]bool _, _, _ = yysep4133, yyq4133, yy2arr4133 const yyr4133 bool = false yyq4133[0] = len(x.Hard) != 0 yyq4133[1] = len(x.Scopes) != 0 var yynn4133 int if yyr4133 || yy2arr4133 { r.EncodeArrayStart(2) } else { yynn4133 = 0 for _, b := range yyq4133 { if b { yynn4133++ } } r.EncodeMapStart(yynn4133) yynn4133 = 0 } if yyr4133 || yy2arr4133 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4133[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4133[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 yyr4133 || yy2arr4133 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4133[1] { if x.Scopes == nil { r.EncodeNil() } else { yym4136 := z.EncBinary() _ = yym4136 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) } } } else { r.EncodeNil() } } else { if yyq4133[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("scopes")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Scopes == nil { r.EncodeNil() } else { yym4137 := z.EncBinary() _ = yym4137 if false { } else { h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e) } } } } if yyr4133 || yy2arr4133 { 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 yym4138 := z.DecBinary() _ = yym4138 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4139 := r.ContainerType() if yyct4139 == codecSelferValueTypeMap1234 { yyl4139 := r.ReadMapStart() if yyl4139 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4139, d) } } else if yyct4139 == codecSelferValueTypeArray1234 { yyl4139 := r.ReadArrayStart() if yyl4139 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4139, 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 yys4140Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4140Slc var yyhl4140 bool = l >= 0 for yyj4140 := 0; ; yyj4140++ { if yyhl4140 { if yyj4140 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4140Slc = r.DecodeBytes(yys4140Slc, true, true) yys4140 := string(yys4140Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4140 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv4141 := &x.Hard yyv4141.CodecDecodeSelf(d) } case "scopes": if r.TryDecodeAsNil() { x.Scopes = nil } else { yyv4142 := &x.Scopes yym4143 := z.DecBinary() _ = yym4143 if false { } else { h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4142), d) } } default: z.DecStructFieldNotFound(-1, yys4140) } // end switch yys4140 } // end for yyj4140 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 yyj4144 int var yyb4144 bool var yyhl4144 bool = l >= 0 yyj4144++ if yyhl4144 { yyb4144 = yyj4144 > l } else { yyb4144 = r.CheckBreak() } if yyb4144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv4145 := &x.Hard yyv4145.CodecDecodeSelf(d) } yyj4144++ if yyhl4144 { yyb4144 = yyj4144 > l } else { yyb4144 = r.CheckBreak() } if yyb4144 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Scopes = nil } else { yyv4146 := &x.Scopes yym4147 := z.DecBinary() _ = yym4147 if false { } else { h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4146), d) } } for { yyj4144++ if yyhl4144 { yyb4144 = yyj4144 > l } else { yyb4144 = r.CheckBreak() } if yyb4144 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4144-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 { yym4148 := z.EncBinary() _ = yym4148 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4149 := !z.EncBinary() yy2arr4149 := z.EncBasicHandle().StructToArray var yyq4149 [2]bool _, _, _ = yysep4149, yyq4149, yy2arr4149 const yyr4149 bool = false yyq4149[0] = len(x.Hard) != 0 yyq4149[1] = len(x.Used) != 0 var yynn4149 int if yyr4149 || yy2arr4149 { r.EncodeArrayStart(2) } else { yynn4149 = 0 for _, b := range yyq4149 { if b { yynn4149++ } } r.EncodeMapStart(yynn4149) yynn4149 = 0 } if yyr4149 || yy2arr4149 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4149[0] { if x.Hard == nil { r.EncodeNil() } else { x.Hard.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4149[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 yyr4149 || yy2arr4149 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4149[1] { if x.Used == nil { r.EncodeNil() } else { x.Used.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4149[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 yyr4149 || yy2arr4149 { 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 yym4152 := z.DecBinary() _ = yym4152 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4153 := r.ContainerType() if yyct4153 == codecSelferValueTypeMap1234 { yyl4153 := r.ReadMapStart() if yyl4153 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4153, d) } } else if yyct4153 == codecSelferValueTypeArray1234 { yyl4153 := r.ReadArrayStart() if yyl4153 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4153, 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 yys4154Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4154Slc var yyhl4154 bool = l >= 0 for yyj4154 := 0; ; yyj4154++ { if yyhl4154 { if yyj4154 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4154Slc = r.DecodeBytes(yys4154Slc, true, true) yys4154 := string(yys4154Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4154 { case "hard": if r.TryDecodeAsNil() { x.Hard = nil } else { yyv4155 := &x.Hard yyv4155.CodecDecodeSelf(d) } case "used": if r.TryDecodeAsNil() { x.Used = nil } else { yyv4156 := &x.Used yyv4156.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys4154) } // end switch yys4154 } // end for yyj4154 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 yyj4157 int var yyb4157 bool var yyhl4157 bool = l >= 0 yyj4157++ if yyhl4157 { yyb4157 = yyj4157 > l } else { yyb4157 = r.CheckBreak() } if yyb4157 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Hard = nil } else { yyv4158 := &x.Hard yyv4158.CodecDecodeSelf(d) } yyj4157++ if yyhl4157 { yyb4157 = yyj4157 > l } else { yyb4157 = r.CheckBreak() } if yyb4157 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Used = nil } else { yyv4159 := &x.Used yyv4159.CodecDecodeSelf(d) } for { yyj4157++ if yyhl4157 { yyb4157 = yyj4157 > l } else { yyb4157 = r.CheckBreak() } if yyb4157 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4157-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 { yym4160 := z.EncBinary() _ = yym4160 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4161 := !z.EncBinary() yy2arr4161 := z.EncBasicHandle().StructToArray var yyq4161 [5]bool _, _, _ = yysep4161, yyq4161, yy2arr4161 const yyr4161 bool = false yyq4161[0] = x.Kind != "" yyq4161[1] = x.APIVersion != "" yyq4161[2] = true yyq4161[3] = true yyq4161[4] = true var yynn4161 int if yyr4161 || yy2arr4161 { r.EncodeArrayStart(5) } else { yynn4161 = 0 for _, b := range yyq4161 { if b { yynn4161++ } } r.EncodeMapStart(yynn4161) yynn4161 = 0 } if yyr4161 || yy2arr4161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4161[0] { yym4163 := z.EncBinary() _ = yym4163 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4161[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4164 := z.EncBinary() _ = yym4164 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4161 || yy2arr4161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4161[1] { yym4166 := z.EncBinary() _ = yym4166 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4161[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4167 := z.EncBinary() _ = yym4167 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4161 || yy2arr4161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4161[2] { yy4169 := &x.ObjectMeta yy4169.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4161[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4170 := &x.ObjectMeta yy4170.CodecEncodeSelf(e) } } if yyr4161 || yy2arr4161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4161[3] { yy4172 := &x.Spec yy4172.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4161[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("spec")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4173 := &x.Spec yy4173.CodecEncodeSelf(e) } } if yyr4161 || yy2arr4161 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4161[4] { yy4175 := &x.Status yy4175.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4161[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("status")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4176 := &x.Status yy4176.CodecEncodeSelf(e) } } if yyr4161 || yy2arr4161 { 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 yym4177 := z.DecBinary() _ = yym4177 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4178 := r.ContainerType() if yyct4178 == codecSelferValueTypeMap1234 { yyl4178 := r.ReadMapStart() if yyl4178 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4178, d) } } else if yyct4178 == codecSelferValueTypeArray1234 { yyl4178 := r.ReadArrayStart() if yyl4178 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4178, 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 yys4179Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4179Slc var yyhl4179 bool = l >= 0 for yyj4179 := 0; ; yyj4179++ { if yyhl4179 { if yyj4179 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4179Slc = r.DecodeBytes(yys4179Slc, true, true) yys4179 := string(yys4179Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4179 { 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 { yyv4182 := &x.ObjectMeta yyv4182.CodecDecodeSelf(d) } case "spec": if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv4183 := &x.Spec yyv4183.CodecDecodeSelf(d) } case "status": if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv4184 := &x.Status yyv4184.CodecDecodeSelf(d) } default: z.DecStructFieldNotFound(-1, yys4179) } // end switch yys4179 } // end for yyj4179 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 yyj4185 int var yyb4185 bool var yyhl4185 bool = l >= 0 yyj4185++ if yyhl4185 { yyb4185 = yyj4185 > l } else { yyb4185 = r.CheckBreak() } if yyb4185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4185++ if yyhl4185 { yyb4185 = yyj4185 > l } else { yyb4185 = r.CheckBreak() } if yyb4185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4185++ if yyhl4185 { yyb4185 = yyj4185 > l } else { yyb4185 = r.CheckBreak() } if yyb4185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4188 := &x.ObjectMeta yyv4188.CodecDecodeSelf(d) } yyj4185++ if yyhl4185 { yyb4185 = yyj4185 > l } else { yyb4185 = r.CheckBreak() } if yyb4185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Spec = ResourceQuotaSpec{} } else { yyv4189 := &x.Spec yyv4189.CodecDecodeSelf(d) } yyj4185++ if yyhl4185 { yyb4185 = yyj4185 > l } else { yyb4185 = r.CheckBreak() } if yyb4185 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = ResourceQuotaStatus{} } else { yyv4190 := &x.Status yyv4190.CodecDecodeSelf(d) } for { yyj4185++ if yyhl4185 { yyb4185 = yyj4185 > l } else { yyb4185 = r.CheckBreak() } if yyb4185 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4185-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 { yym4191 := z.EncBinary() _ = yym4191 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4192 := !z.EncBinary() yy2arr4192 := z.EncBasicHandle().StructToArray var yyq4192 [4]bool _, _, _ = yysep4192, yyq4192, yy2arr4192 const yyr4192 bool = false yyq4192[0] = x.Kind != "" yyq4192[1] = x.APIVersion != "" yyq4192[2] = true var yynn4192 int if yyr4192 || yy2arr4192 { r.EncodeArrayStart(4) } else { yynn4192 = 1 for _, b := range yyq4192 { if b { yynn4192++ } } r.EncodeMapStart(yynn4192) yynn4192 = 0 } if yyr4192 || yy2arr4192 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4192[0] { yym4194 := z.EncBinary() _ = yym4194 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4192[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4195 := z.EncBinary() _ = yym4195 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4192 || yy2arr4192 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4192[1] { yym4197 := z.EncBinary() _ = yym4197 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4192[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4198 := z.EncBinary() _ = yym4198 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4192 || yy2arr4192 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4192[2] { yy4200 := &x.ListMeta yym4201 := z.EncBinary() _ = yym4201 if false { } else if z.HasExtensions() && z.EncExt(yy4200) { } else { z.EncFallback(yy4200) } } else { r.EncodeNil() } } else { if yyq4192[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4202 := &x.ListMeta yym4203 := z.EncBinary() _ = yym4203 if false { } else if z.HasExtensions() && z.EncExt(yy4202) { } else { z.EncFallback(yy4202) } } } if yyr4192 || yy2arr4192 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4205 := z.EncBinary() _ = yym4205 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 { yym4206 := z.EncBinary() _ = yym4206 if false { } else { h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e) } } } if yyr4192 || yy2arr4192 { 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 yym4207 := z.DecBinary() _ = yym4207 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4208 := r.ContainerType() if yyct4208 == codecSelferValueTypeMap1234 { yyl4208 := r.ReadMapStart() if yyl4208 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4208, d) } } else if yyct4208 == codecSelferValueTypeArray1234 { yyl4208 := r.ReadArrayStart() if yyl4208 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4208, 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 yys4209Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4209Slc var yyhl4209 bool = l >= 0 for yyj4209 := 0; ; yyj4209++ { if yyhl4209 { if yyj4209 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4209Slc = r.DecodeBytes(yys4209Slc, true, true) yys4209 := string(yys4209Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4209 { 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 { yyv4212 := &x.ListMeta yym4213 := z.DecBinary() _ = yym4213 if false { } else if z.HasExtensions() && z.DecExt(yyv4212) { } else { z.DecFallback(yyv4212, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4214 := &x.Items yym4215 := z.DecBinary() _ = yym4215 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv4214), d) } } default: z.DecStructFieldNotFound(-1, yys4209) } // end switch yys4209 } // end for yyj4209 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 yyj4216 int var yyb4216 bool var yyhl4216 bool = l >= 0 yyj4216++ if yyhl4216 { yyb4216 = yyj4216 > l } else { yyb4216 = r.CheckBreak() } if yyb4216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4216++ if yyhl4216 { yyb4216 = yyj4216 > l } else { yyb4216 = r.CheckBreak() } if yyb4216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4216++ if yyhl4216 { yyb4216 = yyj4216 > l } else { yyb4216 = r.CheckBreak() } if yyb4216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4219 := &x.ListMeta yym4220 := z.DecBinary() _ = yym4220 if false { } else if z.HasExtensions() && z.DecExt(yyv4219) { } else { z.DecFallback(yyv4219, false) } } yyj4216++ if yyhl4216 { yyb4216 = yyj4216 > l } else { yyb4216 = r.CheckBreak() } if yyb4216 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4221 := &x.Items yym4222 := z.DecBinary() _ = yym4222 if false { } else { h.decSliceResourceQuota((*[]ResourceQuota)(yyv4221), d) } } for { yyj4216++ if yyhl4216 { yyb4216 = yyj4216 > l } else { yyb4216 = r.CheckBreak() } if yyb4216 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4216-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 { yym4223 := z.EncBinary() _ = yym4223 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4224 := !z.EncBinary() yy2arr4224 := z.EncBasicHandle().StructToArray var yyq4224 [5]bool _, _, _ = yysep4224, yyq4224, yy2arr4224 const yyr4224 bool = false yyq4224[0] = x.Kind != "" yyq4224[1] = x.APIVersion != "" yyq4224[2] = true yyq4224[3] = len(x.Data) != 0 yyq4224[4] = x.Type != "" var yynn4224 int if yyr4224 || yy2arr4224 { r.EncodeArrayStart(5) } else { yynn4224 = 0 for _, b := range yyq4224 { if b { yynn4224++ } } r.EncodeMapStart(yynn4224) yynn4224 = 0 } if yyr4224 || yy2arr4224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4224[0] { yym4226 := z.EncBinary() _ = yym4226 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4224[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4227 := z.EncBinary() _ = yym4227 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4224 || yy2arr4224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4224[1] { yym4229 := z.EncBinary() _ = yym4229 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4224[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4230 := z.EncBinary() _ = yym4230 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4224 || yy2arr4224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4224[2] { yy4232 := &x.ObjectMeta yy4232.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4224[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4233 := &x.ObjectMeta yy4233.CodecEncodeSelf(e) } } if yyr4224 || yy2arr4224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4224[3] { if x.Data == nil { r.EncodeNil() } else { yym4235 := z.EncBinary() _ = yym4235 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } else { r.EncodeNil() } } else { if yyq4224[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym4236 := z.EncBinary() _ = yym4236 if false { } else { h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e) } } } } if yyr4224 || yy2arr4224 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4224[4] { x.Type.CodecEncodeSelf(e) } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4224[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) x.Type.CodecEncodeSelf(e) } } if yyr4224 || yy2arr4224 { 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 yym4238 := z.DecBinary() _ = yym4238 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4239 := r.ContainerType() if yyct4239 == codecSelferValueTypeMap1234 { yyl4239 := r.ReadMapStart() if yyl4239 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4239, d) } } else if yyct4239 == codecSelferValueTypeArray1234 { yyl4239 := r.ReadArrayStart() if yyl4239 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4239, 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 yys4240Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4240Slc var yyhl4240 bool = l >= 0 for yyj4240 := 0; ; yyj4240++ { if yyhl4240 { if yyj4240 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4240Slc = r.DecodeBytes(yys4240Slc, true, true) yys4240 := string(yys4240Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4240 { 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 { yyv4243 := &x.ObjectMeta yyv4243.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4244 := &x.Data yym4245 := z.DecBinary() _ = yym4245 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv4244), d) } } case "type": if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } default: z.DecStructFieldNotFound(-1, yys4240) } // end switch yys4240 } // end for yyj4240 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 yyj4247 int var yyb4247 bool var yyhl4247 bool = l >= 0 yyj4247++ if yyhl4247 { yyb4247 = yyj4247 > l } else { yyb4247 = r.CheckBreak() } if yyb4247 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4247++ if yyhl4247 { yyb4247 = yyj4247 > l } else { yyb4247 = r.CheckBreak() } if yyb4247 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4247++ if yyhl4247 { yyb4247 = yyj4247 > l } else { yyb4247 = r.CheckBreak() } if yyb4247 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4250 := &x.ObjectMeta yyv4250.CodecDecodeSelf(d) } yyj4247++ if yyhl4247 { yyb4247 = yyj4247 > l } else { yyb4247 = r.CheckBreak() } if yyb4247 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4251 := &x.Data yym4252 := z.DecBinary() _ = yym4252 if false { } else { h.decMapstringSliceuint8((*map[string][]uint8)(yyv4251), d) } } yyj4247++ if yyhl4247 { yyb4247 = yyj4247 > l } else { yyb4247 = r.CheckBreak() } if yyb4247 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = SecretType(r.DecodeString()) } for { yyj4247++ if yyhl4247 { yyb4247 = yyj4247 > l } else { yyb4247 = r.CheckBreak() } if yyb4247 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4247-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4254 := z.EncBinary() _ = yym4254 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 yym4255 := z.DecBinary() _ = yym4255 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 { yym4256 := z.EncBinary() _ = yym4256 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4257 := !z.EncBinary() yy2arr4257 := z.EncBasicHandle().StructToArray var yyq4257 [4]bool _, _, _ = yysep4257, yyq4257, yy2arr4257 const yyr4257 bool = false yyq4257[0] = x.Kind != "" yyq4257[1] = x.APIVersion != "" yyq4257[2] = true var yynn4257 int if yyr4257 || yy2arr4257 { r.EncodeArrayStart(4) } else { yynn4257 = 1 for _, b := range yyq4257 { if b { yynn4257++ } } r.EncodeMapStart(yynn4257) yynn4257 = 0 } if yyr4257 || yy2arr4257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4257[0] { yym4259 := z.EncBinary() _ = yym4259 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4257[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4260 := z.EncBinary() _ = yym4260 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4257 || yy2arr4257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4257[1] { yym4262 := z.EncBinary() _ = yym4262 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4257[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4263 := z.EncBinary() _ = yym4263 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4257 || yy2arr4257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4257[2] { yy4265 := &x.ListMeta yym4266 := z.EncBinary() _ = yym4266 if false { } else if z.HasExtensions() && z.EncExt(yy4265) { } else { z.EncFallback(yy4265) } } else { r.EncodeNil() } } else { if yyq4257[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4267 := &x.ListMeta yym4268 := z.EncBinary() _ = yym4268 if false { } else if z.HasExtensions() && z.EncExt(yy4267) { } else { z.EncFallback(yy4267) } } } if yyr4257 || yy2arr4257 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4270 := z.EncBinary() _ = yym4270 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 { yym4271 := z.EncBinary() _ = yym4271 if false { } else { h.encSliceSecret(([]Secret)(x.Items), e) } } } if yyr4257 || yy2arr4257 { 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 yym4272 := z.DecBinary() _ = yym4272 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4273 := r.ContainerType() if yyct4273 == codecSelferValueTypeMap1234 { yyl4273 := r.ReadMapStart() if yyl4273 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4273, d) } } else if yyct4273 == codecSelferValueTypeArray1234 { yyl4273 := r.ReadArrayStart() if yyl4273 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4273, 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 yys4274Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4274Slc var yyhl4274 bool = l >= 0 for yyj4274 := 0; ; yyj4274++ { if yyhl4274 { if yyj4274 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4274Slc = r.DecodeBytes(yys4274Slc, true, true) yys4274 := string(yys4274Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4274 { 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 { yyv4277 := &x.ListMeta yym4278 := z.DecBinary() _ = yym4278 if false { } else if z.HasExtensions() && z.DecExt(yyv4277) { } else { z.DecFallback(yyv4277, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4279 := &x.Items yym4280 := z.DecBinary() _ = yym4280 if false { } else { h.decSliceSecret((*[]Secret)(yyv4279), d) } } default: z.DecStructFieldNotFound(-1, yys4274) } // end switch yys4274 } // end for yyj4274 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 yyj4281 int var yyb4281 bool var yyhl4281 bool = l >= 0 yyj4281++ if yyhl4281 { yyb4281 = yyj4281 > l } else { yyb4281 = r.CheckBreak() } if yyb4281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4281++ if yyhl4281 { yyb4281 = yyj4281 > l } else { yyb4281 = r.CheckBreak() } if yyb4281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4281++ if yyhl4281 { yyb4281 = yyj4281 > l } else { yyb4281 = r.CheckBreak() } if yyb4281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4284 := &x.ListMeta yym4285 := z.DecBinary() _ = yym4285 if false { } else if z.HasExtensions() && z.DecExt(yyv4284) { } else { z.DecFallback(yyv4284, false) } } yyj4281++ if yyhl4281 { yyb4281 = yyj4281 > l } else { yyb4281 = r.CheckBreak() } if yyb4281 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4286 := &x.Items yym4287 := z.DecBinary() _ = yym4287 if false { } else { h.decSliceSecret((*[]Secret)(yyv4286), d) } } for { yyj4281++ if yyhl4281 { yyb4281 = yyj4281 > l } else { yyb4281 = r.CheckBreak() } if yyb4281 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4281-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4288 := z.EncBinary() _ = yym4288 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4289 := !z.EncBinary() yy2arr4289 := z.EncBasicHandle().StructToArray var yyq4289 [4]bool _, _, _ = yysep4289, yyq4289, yy2arr4289 const yyr4289 bool = false yyq4289[0] = x.Kind != "" yyq4289[1] = x.APIVersion != "" yyq4289[2] = true yyq4289[3] = len(x.Data) != 0 var yynn4289 int if yyr4289 || yy2arr4289 { r.EncodeArrayStart(4) } else { yynn4289 = 0 for _, b := range yyq4289 { if b { yynn4289++ } } r.EncodeMapStart(yynn4289) yynn4289 = 0 } if yyr4289 || yy2arr4289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4289[0] { yym4291 := z.EncBinary() _ = yym4291 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4289[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4292 := z.EncBinary() _ = yym4292 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4289 || yy2arr4289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4289[1] { yym4294 := z.EncBinary() _ = yym4294 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4289[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4295 := z.EncBinary() _ = yym4295 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4289 || yy2arr4289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4289[2] { yy4297 := &x.ObjectMeta yy4297.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4289[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4298 := &x.ObjectMeta yy4298.CodecEncodeSelf(e) } } if yyr4289 || yy2arr4289 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4289[3] { if x.Data == nil { r.EncodeNil() } else { yym4300 := z.EncBinary() _ = yym4300 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } else { r.EncodeNil() } } else { if yyq4289[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("data")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Data == nil { r.EncodeNil() } else { yym4301 := z.EncBinary() _ = yym4301 if false { } else { z.F.EncMapStringStringV(x.Data, false, e) } } } } if yyr4289 || yy2arr4289 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4302 := z.DecBinary() _ = yym4302 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4303 := r.ContainerType() if yyct4303 == codecSelferValueTypeMap1234 { yyl4303 := r.ReadMapStart() if yyl4303 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4303, d) } } else if yyct4303 == codecSelferValueTypeArray1234 { yyl4303 := r.ReadArrayStart() if yyl4303 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4303, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4304Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4304Slc var yyhl4304 bool = l >= 0 for yyj4304 := 0; ; yyj4304++ { if yyhl4304 { if yyj4304 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4304Slc = r.DecodeBytes(yys4304Slc, true, true) yys4304 := string(yys4304Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4304 { 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 { yyv4307 := &x.ObjectMeta yyv4307.CodecDecodeSelf(d) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4308 := &x.Data yym4309 := z.DecBinary() _ = yym4309 if false { } else { z.F.DecMapStringStringX(yyv4308, false, d) } } default: z.DecStructFieldNotFound(-1, yys4304) } // end switch yys4304 } // end for yyj4304 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4310 int var yyb4310 bool var yyhl4310 bool = l >= 0 yyj4310++ if yyhl4310 { yyb4310 = yyj4310 > l } else { yyb4310 = r.CheckBreak() } if yyb4310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4310++ if yyhl4310 { yyb4310 = yyj4310 > l } else { yyb4310 = r.CheckBreak() } if yyb4310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4310++ if yyhl4310 { yyb4310 = yyj4310 > l } else { yyb4310 = r.CheckBreak() } if yyb4310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4313 := &x.ObjectMeta yyv4313.CodecDecodeSelf(d) } yyj4310++ if yyhl4310 { yyb4310 = yyj4310 > l } else { yyb4310 = r.CheckBreak() } if yyb4310 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4314 := &x.Data yym4315 := z.DecBinary() _ = yym4315 if false { } else { z.F.DecMapStringStringX(yyv4314, false, d) } } for { yyj4310++ if yyhl4310 { yyb4310 = yyj4310 > l } else { yyb4310 = r.CheckBreak() } if yyb4310 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4310-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r if x == nil { r.EncodeNil() } else { yym4316 := z.EncBinary() _ = yym4316 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4317 := !z.EncBinary() yy2arr4317 := z.EncBasicHandle().StructToArray var yyq4317 [4]bool _, _, _ = yysep4317, yyq4317, yy2arr4317 const yyr4317 bool = false yyq4317[0] = x.Kind != "" yyq4317[1] = x.APIVersion != "" yyq4317[2] = true var yynn4317 int if yyr4317 || yy2arr4317 { r.EncodeArrayStart(4) } else { yynn4317 = 1 for _, b := range yyq4317 { if b { yynn4317++ } } r.EncodeMapStart(yynn4317) yynn4317 = 0 } if yyr4317 || yy2arr4317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4317[0] { yym4319 := z.EncBinary() _ = yym4319 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4317[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4320 := z.EncBinary() _ = yym4320 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4317 || yy2arr4317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4317[1] { yym4322 := z.EncBinary() _ = yym4322 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4317[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4323 := z.EncBinary() _ = yym4323 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4317 || yy2arr4317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4317[2] { yy4325 := &x.ListMeta yym4326 := z.EncBinary() _ = yym4326 if false { } else if z.HasExtensions() && z.EncExt(yy4325) { } else { z.EncFallback(yy4325) } } else { r.EncodeNil() } } else { if yyq4317[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4327 := &x.ListMeta yym4328 := z.EncBinary() _ = yym4328 if false { } else if z.HasExtensions() && z.EncExt(yy4327) { } else { z.EncFallback(yy4327) } } } if yyr4317 || yy2arr4317 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4330 := z.EncBinary() _ = yym4330 if false { } else { h.encSliceConfigMap(([]ConfigMap)(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 { yym4331 := z.EncBinary() _ = yym4331 if false { } else { h.encSliceConfigMap(([]ConfigMap)(x.Items), e) } } } if yyr4317 || yy2arr4317 { z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } else { z.EncSendContainerState(codecSelfer_containerMapEnd1234) } } } } func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yym4332 := z.DecBinary() _ = yym4332 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4333 := r.ContainerType() if yyct4333 == codecSelferValueTypeMap1234 { yyl4333 := r.ReadMapStart() if yyl4333 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4333, d) } } else if yyct4333 == codecSelferValueTypeArray1234 { yyl4333 := r.ReadArrayStart() if yyl4333 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4333, d) } } else { panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234) } } } func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yys4334Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4334Slc var yyhl4334 bool = l >= 0 for yyj4334 := 0; ; yyj4334++ { if yyhl4334 { if yyj4334 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4334Slc = r.DecodeBytes(yys4334Slc, true, true) yys4334 := string(yys4334Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4334 { 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 { yyv4337 := &x.ListMeta yym4338 := z.DecBinary() _ = yym4338 if false { } else if z.HasExtensions() && z.DecExt(yyv4337) { } else { z.DecFallback(yyv4337, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4339 := &x.Items yym4340 := z.DecBinary() _ = yym4340 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv4339), d) } } default: z.DecStructFieldNotFound(-1, yys4334) } // end switch yys4334 } // end for yyj4334 z.DecSendContainerState(codecSelfer_containerMapEnd1234) } func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r var yyj4341 int var yyb4341 bool var yyhl4341 bool = l >= 0 yyj4341++ if yyhl4341 { yyb4341 = yyj4341 > l } else { yyb4341 = r.CheckBreak() } if yyb4341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4341++ if yyhl4341 { yyb4341 = yyj4341 > l } else { yyb4341 = r.CheckBreak() } if yyb4341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4341++ if yyhl4341 { yyb4341 = yyj4341 > l } else { yyb4341 = r.CheckBreak() } if yyb4341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4344 := &x.ListMeta yym4345 := z.DecBinary() _ = yym4345 if false { } else if z.HasExtensions() && z.DecExt(yyv4344) { } else { z.DecFallback(yyv4344, false) } } yyj4341++ if yyhl4341 { yyb4341 = yyj4341 > l } else { yyb4341 = r.CheckBreak() } if yyb4341 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4346 := &x.Items yym4347 := z.DecBinary() _ = yym4347 if false { } else { h.decSliceConfigMap((*[]ConfigMap)(yyv4346), d) } } for { yyj4341++ if yyhl4341 { yyb4341 = yyj4341 > l } else { yyb4341 = r.CheckBreak() } if yyb4341 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4341-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r yym4348 := z.EncBinary() _ = yym4348 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 yym4349 := z.DecBinary() _ = yym4349 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 yym4350 := z.EncBinary() _ = yym4350 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 yym4351 := z.DecBinary() _ = yym4351 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 { yym4352 := z.EncBinary() _ = yym4352 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4353 := !z.EncBinary() yy2arr4353 := z.EncBasicHandle().StructToArray var yyq4353 [4]bool _, _, _ = yysep4353, yyq4353, yy2arr4353 const yyr4353 bool = false yyq4353[2] = x.Message != "" yyq4353[3] = x.Error != "" var yynn4353 int if yyr4353 || yy2arr4353 { r.EncodeArrayStart(4) } else { yynn4353 = 2 for _, b := range yyq4353 { if b { yynn4353++ } } r.EncodeMapStart(yynn4353) yynn4353 = 0 } if yyr4353 || yy2arr4353 { 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 yyr4353 || yy2arr4353 { 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 yyr4353 || yy2arr4353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4353[2] { yym4357 := z.EncBinary() _ = yym4357 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4353[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("message")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4358 := z.EncBinary() _ = yym4358 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Message)) } } } if yyr4353 || yy2arr4353 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4353[3] { yym4360 := z.EncBinary() _ = yym4360 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4353[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("error")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4361 := z.EncBinary() _ = yym4361 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Error)) } } } if yyr4353 || yy2arr4353 { 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 yym4362 := z.DecBinary() _ = yym4362 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4363 := r.ContainerType() if yyct4363 == codecSelferValueTypeMap1234 { yyl4363 := r.ReadMapStart() if yyl4363 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4363, d) } } else if yyct4363 == codecSelferValueTypeArray1234 { yyl4363 := r.ReadArrayStart() if yyl4363 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4363, 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 yys4364Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4364Slc var yyhl4364 bool = l >= 0 for yyj4364 := 0; ; yyj4364++ { if yyhl4364 { if yyj4364 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4364Slc = r.DecodeBytes(yys4364Slc, true, true) yys4364 := string(yys4364Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4364 { 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, yys4364) } // end switch yys4364 } // end for yyj4364 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 yyj4369 int var yyb4369 bool var yyhl4369 bool = l >= 0 yyj4369++ if yyhl4369 { yyb4369 = yyj4369 > l } else { yyb4369 = r.CheckBreak() } if yyb4369 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = ComponentConditionType(r.DecodeString()) } yyj4369++ if yyhl4369 { yyb4369 = yyj4369 > l } else { yyb4369 = r.CheckBreak() } if yyb4369 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Status = "" } else { x.Status = ConditionStatus(r.DecodeString()) } yyj4369++ if yyhl4369 { yyb4369 = yyj4369 > l } else { yyb4369 = r.CheckBreak() } if yyb4369 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Message = "" } else { x.Message = string(r.DecodeString()) } yyj4369++ if yyhl4369 { yyb4369 = yyj4369 > l } else { yyb4369 = r.CheckBreak() } if yyb4369 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Error = "" } else { x.Error = string(r.DecodeString()) } for { yyj4369++ if yyhl4369 { yyb4369 = yyj4369 > l } else { yyb4369 = r.CheckBreak() } if yyb4369 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4369-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 { yym4374 := z.EncBinary() _ = yym4374 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4375 := !z.EncBinary() yy2arr4375 := z.EncBasicHandle().StructToArray var yyq4375 [4]bool _, _, _ = yysep4375, yyq4375, yy2arr4375 const yyr4375 bool = false yyq4375[0] = x.Kind != "" yyq4375[1] = x.APIVersion != "" yyq4375[2] = true yyq4375[3] = len(x.Conditions) != 0 var yynn4375 int if yyr4375 || yy2arr4375 { r.EncodeArrayStart(4) } else { yynn4375 = 0 for _, b := range yyq4375 { if b { yynn4375++ } } r.EncodeMapStart(yynn4375) yynn4375 = 0 } if yyr4375 || yy2arr4375 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4375[0] { yym4377 := z.EncBinary() _ = yym4377 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4375[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4378 := z.EncBinary() _ = yym4378 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4375 || yy2arr4375 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4375[1] { yym4380 := z.EncBinary() _ = yym4380 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4375[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4381 := z.EncBinary() _ = yym4381 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4375 || yy2arr4375 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4375[2] { yy4383 := &x.ObjectMeta yy4383.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4375[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4384 := &x.ObjectMeta yy4384.CodecEncodeSelf(e) } } if yyr4375 || yy2arr4375 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4375[3] { if x.Conditions == nil { r.EncodeNil() } else { yym4386 := z.EncBinary() _ = yym4386 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } else { r.EncodeNil() } } else { if yyq4375[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("conditions")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Conditions == nil { r.EncodeNil() } else { yym4387 := z.EncBinary() _ = yym4387 if false { } else { h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e) } } } } if yyr4375 || yy2arr4375 { 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 yym4388 := z.DecBinary() _ = yym4388 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4389 := r.ContainerType() if yyct4389 == codecSelferValueTypeMap1234 { yyl4389 := r.ReadMapStart() if yyl4389 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4389, d) } } else if yyct4389 == codecSelferValueTypeArray1234 { yyl4389 := r.ReadArrayStart() if yyl4389 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4389, 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 yys4390Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4390Slc var yyhl4390 bool = l >= 0 for yyj4390 := 0; ; yyj4390++ { if yyhl4390 { if yyj4390 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4390Slc = r.DecodeBytes(yys4390Slc, true, true) yys4390 := string(yys4390Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4390 { 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 { yyv4393 := &x.ObjectMeta yyv4393.CodecDecodeSelf(d) } case "conditions": if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv4394 := &x.Conditions yym4395 := z.DecBinary() _ = yym4395 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv4394), d) } } default: z.DecStructFieldNotFound(-1, yys4390) } // end switch yys4390 } // end for yyj4390 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 yyj4396 int var yyb4396 bool var yyhl4396 bool = l >= 0 yyj4396++ if yyhl4396 { yyb4396 = yyj4396 > l } else { yyb4396 = r.CheckBreak() } if yyb4396 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4396++ if yyhl4396 { yyb4396 = yyj4396 > l } else { yyb4396 = r.CheckBreak() } if yyb4396 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4396++ if yyhl4396 { yyb4396 = yyj4396 > l } else { yyb4396 = r.CheckBreak() } if yyb4396 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4399 := &x.ObjectMeta yyv4399.CodecDecodeSelf(d) } yyj4396++ if yyhl4396 { yyb4396 = yyj4396 > l } else { yyb4396 = r.CheckBreak() } if yyb4396 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Conditions = nil } else { yyv4400 := &x.Conditions yym4401 := z.DecBinary() _ = yym4401 if false { } else { h.decSliceComponentCondition((*[]ComponentCondition)(yyv4400), d) } } for { yyj4396++ if yyhl4396 { yyb4396 = yyj4396 > l } else { yyb4396 = r.CheckBreak() } if yyb4396 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4396-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 { yym4402 := z.EncBinary() _ = yym4402 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4403 := !z.EncBinary() yy2arr4403 := z.EncBasicHandle().StructToArray var yyq4403 [4]bool _, _, _ = yysep4403, yyq4403, yy2arr4403 const yyr4403 bool = false yyq4403[0] = x.Kind != "" yyq4403[1] = x.APIVersion != "" yyq4403[2] = true var yynn4403 int if yyr4403 || yy2arr4403 { r.EncodeArrayStart(4) } else { yynn4403 = 1 for _, b := range yyq4403 { if b { yynn4403++ } } r.EncodeMapStart(yynn4403) yynn4403 = 0 } if yyr4403 || yy2arr4403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4403[0] { yym4405 := z.EncBinary() _ = yym4405 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4403[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4406 := z.EncBinary() _ = yym4406 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4403 || yy2arr4403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4403[1] { yym4408 := z.EncBinary() _ = yym4408 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4403[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4409 := z.EncBinary() _ = yym4409 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4403 || yy2arr4403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4403[2] { yy4411 := &x.ListMeta yym4412 := z.EncBinary() _ = yym4412 if false { } else if z.HasExtensions() && z.EncExt(yy4411) { } else { z.EncFallback(yy4411) } } else { r.EncodeNil() } } else { if yyq4403[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4413 := &x.ListMeta yym4414 := z.EncBinary() _ = yym4414 if false { } else if z.HasExtensions() && z.EncExt(yy4413) { } else { z.EncFallback(yy4413) } } } if yyr4403 || yy2arr4403 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Items == nil { r.EncodeNil() } else { yym4416 := z.EncBinary() _ = yym4416 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 { yym4417 := z.EncBinary() _ = yym4417 if false { } else { h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e) } } } if yyr4403 || yy2arr4403 { 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 yym4418 := z.DecBinary() _ = yym4418 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4419 := r.ContainerType() if yyct4419 == codecSelferValueTypeMap1234 { yyl4419 := r.ReadMapStart() if yyl4419 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4419, d) } } else if yyct4419 == codecSelferValueTypeArray1234 { yyl4419 := r.ReadArrayStart() if yyl4419 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4419, 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 yys4420Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4420Slc var yyhl4420 bool = l >= 0 for yyj4420 := 0; ; yyj4420++ { if yyhl4420 { if yyj4420 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4420Slc = r.DecodeBytes(yys4420Slc, true, true) yys4420 := string(yys4420Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4420 { 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 { yyv4423 := &x.ListMeta yym4424 := z.DecBinary() _ = yym4424 if false { } else if z.HasExtensions() && z.DecExt(yyv4423) { } else { z.DecFallback(yyv4423, false) } } case "items": if r.TryDecodeAsNil() { x.Items = nil } else { yyv4425 := &x.Items yym4426 := z.DecBinary() _ = yym4426 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv4425), d) } } default: z.DecStructFieldNotFound(-1, yys4420) } // end switch yys4420 } // end for yyj4420 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 yyj4427 int var yyb4427 bool var yyhl4427 bool = l >= 0 yyj4427++ if yyhl4427 { yyb4427 = yyj4427 > l } else { yyb4427 = r.CheckBreak() } if yyb4427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4427++ if yyhl4427 { yyb4427 = yyj4427 > l } else { yyb4427 = r.CheckBreak() } if yyb4427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4427++ if yyhl4427 { yyb4427 = yyj4427 > l } else { yyb4427 = r.CheckBreak() } if yyb4427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ListMeta = pkg2_unversioned.ListMeta{} } else { yyv4430 := &x.ListMeta yym4431 := z.DecBinary() _ = yym4431 if false { } else if z.HasExtensions() && z.DecExt(yyv4430) { } else { z.DecFallback(yyv4430, false) } } yyj4427++ if yyhl4427 { yyb4427 = yyj4427 > l } else { yyb4427 = r.CheckBreak() } if yyb4427 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Items = nil } else { yyv4432 := &x.Items yym4433 := z.DecBinary() _ = yym4433 if false { } else { h.decSliceComponentStatus((*[]ComponentStatus)(yyv4432), d) } } for { yyj4427++ if yyhl4427 { yyb4427 = yyj4427 > l } else { yyb4427 = r.CheckBreak() } if yyb4427 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4427-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 { yym4434 := z.EncBinary() _ = yym4434 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4435 := !z.EncBinary() yy2arr4435 := z.EncBasicHandle().StructToArray var yyq4435 [6]bool _, _, _ = yysep4435, yyq4435, yy2arr4435 const yyr4435 bool = false yyq4435[0] = x.Capabilities != nil yyq4435[1] = x.Privileged != nil yyq4435[2] = x.SELinuxOptions != nil yyq4435[3] = x.RunAsUser != nil yyq4435[4] = x.RunAsNonRoot != nil yyq4435[5] = x.ReadOnlyRootFilesystem != nil var yynn4435 int if yyr4435 || yy2arr4435 { r.EncodeArrayStart(6) } else { yynn4435 = 0 for _, b := range yyq4435 { if b { yynn4435++ } } r.EncodeMapStart(yynn4435) yynn4435 = 0 } if yyr4435 || yy2arr4435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4435[0] { if x.Capabilities == nil { r.EncodeNil() } else { x.Capabilities.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4435[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 yyr4435 || yy2arr4435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4435[1] { if x.Privileged == nil { r.EncodeNil() } else { yy4438 := *x.Privileged yym4439 := z.EncBinary() _ = yym4439 if false { } else { r.EncodeBool(bool(yy4438)) } } } else { r.EncodeNil() } } else { if yyq4435[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("privileged")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.Privileged == nil { r.EncodeNil() } else { yy4440 := *x.Privileged yym4441 := z.EncBinary() _ = yym4441 if false { } else { r.EncodeBool(bool(yy4440)) } } } } if yyr4435 || yy2arr4435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4435[2] { if x.SELinuxOptions == nil { r.EncodeNil() } else { x.SELinuxOptions.CodecEncodeSelf(e) } } else { r.EncodeNil() } } else { if yyq4435[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 yyr4435 || yy2arr4435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4435[3] { if x.RunAsUser == nil { r.EncodeNil() } else { yy4444 := *x.RunAsUser yym4445 := z.EncBinary() _ = yym4445 if false { } else { r.EncodeInt(int64(yy4444)) } } } else { r.EncodeNil() } } else { if yyq4435[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsUser")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsUser == nil { r.EncodeNil() } else { yy4446 := *x.RunAsUser yym4447 := z.EncBinary() _ = yym4447 if false { } else { r.EncodeInt(int64(yy4446)) } } } } if yyr4435 || yy2arr4435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4435[4] { if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy4449 := *x.RunAsNonRoot yym4450 := z.EncBinary() _ = yym4450 if false { } else { r.EncodeBool(bool(yy4449)) } } } else { r.EncodeNil() } } else { if yyq4435[4] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.RunAsNonRoot == nil { r.EncodeNil() } else { yy4451 := *x.RunAsNonRoot yym4452 := z.EncBinary() _ = yym4452 if false { } else { r.EncodeBool(bool(yy4451)) } } } } if yyr4435 || yy2arr4435 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4435[5] { if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { yy4454 := *x.ReadOnlyRootFilesystem yym4455 := z.EncBinary() _ = yym4455 if false { } else { r.EncodeBool(bool(yy4454)) } } } else { r.EncodeNil() } } else { if yyq4435[5] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem")) z.EncSendContainerState(codecSelfer_containerMapValue1234) if x.ReadOnlyRootFilesystem == nil { r.EncodeNil() } else { yy4456 := *x.ReadOnlyRootFilesystem yym4457 := z.EncBinary() _ = yym4457 if false { } else { r.EncodeBool(bool(yy4456)) } } } } if yyr4435 || yy2arr4435 { 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 yym4458 := z.DecBinary() _ = yym4458 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4459 := r.ContainerType() if yyct4459 == codecSelferValueTypeMap1234 { yyl4459 := r.ReadMapStart() if yyl4459 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4459, d) } } else if yyct4459 == codecSelferValueTypeArray1234 { yyl4459 := r.ReadArrayStart() if yyl4459 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4459, 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 yys4460Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4460Slc var yyhl4460 bool = l >= 0 for yyj4460 := 0; ; yyj4460++ { if yyhl4460 { if yyj4460 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4460Slc = r.DecodeBytes(yys4460Slc, true, true) yys4460 := string(yys4460Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4460 { 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) } yym4463 := z.DecBinary() _ = yym4463 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) } yym4466 := z.DecBinary() _ = yym4466 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) } yym4468 := z.DecBinary() _ = yym4468 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } case "readOnlyRootFilesystem": if r.TryDecodeAsNil() { if x.ReadOnlyRootFilesystem != nil { x.ReadOnlyRootFilesystem = nil } } else { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } yym4470 := z.DecBinary() _ = yym4470 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } default: z.DecStructFieldNotFound(-1, yys4460) } // end switch yys4460 } // end for yyj4460 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 yyj4471 int var yyb4471 bool var yyhl4471 bool = l >= 0 yyj4471++ if yyhl4471 { yyb4471 = yyj4471 > l } else { yyb4471 = r.CheckBreak() } if yyb4471 { 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) } yyj4471++ if yyhl4471 { yyb4471 = yyj4471 > l } else { yyb4471 = r.CheckBreak() } if yyb4471 { 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) } yym4474 := z.DecBinary() _ = yym4474 if false { } else { *((*bool)(x.Privileged)) = r.DecodeBool() } } yyj4471++ if yyhl4471 { yyb4471 = yyj4471 > l } else { yyb4471 = r.CheckBreak() } if yyb4471 { 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) } yyj4471++ if yyhl4471 { yyb4471 = yyj4471 > l } else { yyb4471 = r.CheckBreak() } if yyb4471 { 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) } yym4477 := z.DecBinary() _ = yym4477 if false { } else { *((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64)) } } yyj4471++ if yyhl4471 { yyb4471 = yyj4471 > l } else { yyb4471 = r.CheckBreak() } if yyb4471 { 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) } yym4479 := z.DecBinary() _ = yym4479 if false { } else { *((*bool)(x.RunAsNonRoot)) = r.DecodeBool() } } yyj4471++ if yyhl4471 { yyb4471 = yyj4471 > l } else { yyb4471 = r.CheckBreak() } if yyb4471 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { if x.ReadOnlyRootFilesystem != nil { x.ReadOnlyRootFilesystem = nil } } else { if x.ReadOnlyRootFilesystem == nil { x.ReadOnlyRootFilesystem = new(bool) } yym4481 := z.DecBinary() _ = yym4481 if false { } else { *((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool() } } for { yyj4471++ if yyhl4471 { yyb4471 = yyj4471 > l } else { yyb4471 = r.CheckBreak() } if yyb4471 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4471-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 { yym4482 := z.EncBinary() _ = yym4482 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4483 := !z.EncBinary() yy2arr4483 := z.EncBasicHandle().StructToArray var yyq4483 [4]bool _, _, _ = yysep4483, yyq4483, yy2arr4483 const yyr4483 bool = false yyq4483[0] = x.User != "" yyq4483[1] = x.Role != "" yyq4483[2] = x.Type != "" yyq4483[3] = x.Level != "" var yynn4483 int if yyr4483 || yy2arr4483 { r.EncodeArrayStart(4) } else { yynn4483 = 0 for _, b := range yyq4483 { if b { yynn4483++ } } r.EncodeMapStart(yynn4483) yynn4483 = 0 } if yyr4483 || yy2arr4483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4483[0] { yym4485 := z.EncBinary() _ = yym4485 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4483[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("user")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4486 := z.EncBinary() _ = yym4486 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.User)) } } } if yyr4483 || yy2arr4483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4483[1] { yym4488 := z.EncBinary() _ = yym4488 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4483[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("role")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4489 := z.EncBinary() _ = yym4489 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Role)) } } } if yyr4483 || yy2arr4483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4483[2] { yym4491 := z.EncBinary() _ = yym4491 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4483[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("type")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4492 := z.EncBinary() _ = yym4492 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Type)) } } } if yyr4483 || yy2arr4483 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4483[3] { yym4494 := z.EncBinary() _ = yym4494 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4483[3] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("level")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4495 := z.EncBinary() _ = yym4495 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Level)) } } } if yyr4483 || yy2arr4483 { 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 yym4496 := z.DecBinary() _ = yym4496 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4497 := r.ContainerType() if yyct4497 == codecSelferValueTypeMap1234 { yyl4497 := r.ReadMapStart() if yyl4497 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4497, d) } } else if yyct4497 == codecSelferValueTypeArray1234 { yyl4497 := r.ReadArrayStart() if yyl4497 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4497, 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 yys4498Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4498Slc var yyhl4498 bool = l >= 0 for yyj4498 := 0; ; yyj4498++ { if yyhl4498 { if yyj4498 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4498Slc = r.DecodeBytes(yys4498Slc, true, true) yys4498 := string(yys4498Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4498 { 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, yys4498) } // end switch yys4498 } // end for yyj4498 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 yyj4503 int var yyb4503 bool var yyhl4503 bool = l >= 0 yyj4503++ if yyhl4503 { yyb4503 = yyj4503 > l } else { yyb4503 = r.CheckBreak() } if yyb4503 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.User = "" } else { x.User = string(r.DecodeString()) } yyj4503++ if yyhl4503 { yyb4503 = yyj4503 > l } else { yyb4503 = r.CheckBreak() } if yyb4503 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Role = "" } else { x.Role = string(r.DecodeString()) } yyj4503++ if yyhl4503 { yyb4503 = yyj4503 > l } else { yyb4503 = r.CheckBreak() } if yyb4503 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Type = "" } else { x.Type = string(r.DecodeString()) } yyj4503++ if yyhl4503 { yyb4503 = yyj4503 > l } else { yyb4503 = r.CheckBreak() } if yyb4503 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Level = "" } else { x.Level = string(r.DecodeString()) } for { yyj4503++ if yyhl4503 { yyb4503 = yyj4503 > l } else { yyb4503 = r.CheckBreak() } if yyb4503 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4503-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 { yym4508 := z.EncBinary() _ = yym4508 if false { } else if z.HasExtensions() && z.EncExt(x) { } else { yysep4509 := !z.EncBinary() yy2arr4509 := z.EncBasicHandle().StructToArray var yyq4509 [5]bool _, _, _ = yysep4509, yyq4509, yy2arr4509 const yyr4509 bool = false yyq4509[0] = x.Kind != "" yyq4509[1] = x.APIVersion != "" yyq4509[2] = true var yynn4509 int if yyr4509 || yy2arr4509 { r.EncodeArrayStart(5) } else { yynn4509 = 2 for _, b := range yyq4509 { if b { yynn4509++ } } r.EncodeMapStart(yynn4509) yynn4509 = 0 } if yyr4509 || yy2arr4509 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4509[0] { yym4511 := z.EncBinary() _ = yym4511 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4509[0] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("kind")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4512 := z.EncBinary() _ = yym4512 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Kind)) } } } if yyr4509 || yy2arr4509 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4509[1] { yym4514 := z.EncBinary() _ = yym4514 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } else { r.EncodeString(codecSelferC_UTF81234, "") } } else { if yyq4509[1] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("apiVersion")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yym4515 := z.EncBinary() _ = yym4515 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion)) } } } if yyr4509 || yy2arr4509 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyq4509[2] { yy4517 := &x.ObjectMeta yy4517.CodecEncodeSelf(e) } else { r.EncodeNil() } } else { if yyq4509[2] { z.EncSendContainerState(codecSelfer_containerMapKey1234) r.EncodeString(codecSelferC_UTF81234, string("metadata")) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4518 := &x.ObjectMeta yy4518.CodecEncodeSelf(e) } } if yyr4509 || yy2arr4509 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yym4520 := z.EncBinary() _ = yym4520 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) yym4521 := z.EncBinary() _ = yym4521 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(x.Range)) } } if yyr4509 || yy2arr4509 { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if x.Data == nil { r.EncodeNil() } else { yym4523 := z.EncBinary() _ = yym4523 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 { yym4524 := z.EncBinary() _ = yym4524 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data)) } } } if yyr4509 || yy2arr4509 { 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 yym4525 := z.DecBinary() _ = yym4525 if false { } else if z.HasExtensions() && z.DecExt(x) { } else { yyct4526 := r.ContainerType() if yyct4526 == codecSelferValueTypeMap1234 { yyl4526 := r.ReadMapStart() if yyl4526 == 0 { z.DecSendContainerState(codecSelfer_containerMapEnd1234) } else { x.codecDecodeSelfFromMap(yyl4526, d) } } else if yyct4526 == codecSelferValueTypeArray1234 { yyl4526 := r.ReadArrayStart() if yyl4526 == 0 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } else { x.codecDecodeSelfFromArray(yyl4526, 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 yys4527Slc = z.DecScratchBuffer() // default slice to decode into _ = yys4527Slc var yyhl4527 bool = l >= 0 for yyj4527 := 0; ; yyj4527++ { if yyhl4527 { if yyj4527 >= l { break } } else { if r.CheckBreak() { break } } z.DecSendContainerState(codecSelfer_containerMapKey1234) yys4527Slc = r.DecodeBytes(yys4527Slc, true, true) yys4527 := string(yys4527Slc) z.DecSendContainerState(codecSelfer_containerMapValue1234) switch yys4527 { 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 { yyv4530 := &x.ObjectMeta yyv4530.CodecDecodeSelf(d) } case "range": if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } case "data": if r.TryDecodeAsNil() { x.Data = nil } else { yyv4532 := &x.Data yym4533 := z.DecBinary() _ = yym4533 if false { } else { *yyv4532 = r.DecodeBytes(*(*[]byte)(yyv4532), false, false) } } default: z.DecStructFieldNotFound(-1, yys4527) } // end switch yys4527 } // end for yyj4527 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 yyj4534 int var yyb4534 bool var yyhl4534 bool = l >= 0 yyj4534++ if yyhl4534 { yyb4534 = yyj4534 > l } else { yyb4534 = r.CheckBreak() } if yyb4534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Kind = "" } else { x.Kind = string(r.DecodeString()) } yyj4534++ if yyhl4534 { yyb4534 = yyj4534 > l } else { yyb4534 = r.CheckBreak() } if yyb4534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.APIVersion = "" } else { x.APIVersion = string(r.DecodeString()) } yyj4534++ if yyhl4534 { yyb4534 = yyj4534 > l } else { yyb4534 = r.CheckBreak() } if yyb4534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.ObjectMeta = ObjectMeta{} } else { yyv4537 := &x.ObjectMeta yyv4537.CodecDecodeSelf(d) } yyj4534++ if yyhl4534 { yyb4534 = yyj4534 > l } else { yyb4534 = r.CheckBreak() } if yyb4534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Range = "" } else { x.Range = string(r.DecodeString()) } yyj4534++ if yyhl4534 { yyb4534 = yyj4534 > l } else { yyb4534 = r.CheckBreak() } if yyb4534 { z.DecSendContainerState(codecSelfer_containerArrayEnd1234) return } z.DecSendContainerState(codecSelfer_containerArrayElem1234) if r.TryDecodeAsNil() { x.Data = nil } else { yyv4539 := &x.Data yym4540 := z.DecBinary() _ = yym4540 if false { } else { *yyv4539 = r.DecodeBytes(*(*[]byte)(yyv4539), false, false) } } for { yyj4534++ if yyhl4534 { yyb4534 = yyj4534 > l } else { yyb4534 = r.CheckBreak() } if yyb4534 { break } z.DecSendContainerState(codecSelfer_containerArrayElem1234) z.DecStructFieldNotFound(yyj4534-1, "") } z.DecSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4541 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4542 := &yyv4541 yy4542.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4543 := *v yyh4543, yyl4543 := z.DecSliceHelperStart() var yyc4543 bool if yyl4543 == 0 { if yyv4543 == nil { yyv4543 = []OwnerReference{} yyc4543 = true } else if len(yyv4543) != 0 { yyv4543 = yyv4543[:0] yyc4543 = true } } else if yyl4543 > 0 { var yyrr4543, yyrl4543 int var yyrt4543 bool if yyl4543 > cap(yyv4543) { yyrg4543 := len(yyv4543) > 0 yyv24543 := yyv4543 yyrl4543, yyrt4543 = z.DecInferLen(yyl4543, z.DecBasicHandle().MaxInitLen, 72) if yyrt4543 { if yyrl4543 <= cap(yyv4543) { yyv4543 = yyv4543[:yyrl4543] } else { yyv4543 = make([]OwnerReference, yyrl4543) } } else { yyv4543 = make([]OwnerReference, yyrl4543) } yyc4543 = true yyrr4543 = len(yyv4543) if yyrg4543 { copy(yyv4543, yyv24543) } } else if yyl4543 != len(yyv4543) { yyv4543 = yyv4543[:yyl4543] yyc4543 = true } yyj4543 := 0 for ; yyj4543 < yyrr4543; yyj4543++ { yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { yyv4543[yyj4543] = OwnerReference{} } else { yyv4544 := &yyv4543[yyj4543] yyv4544.CodecDecodeSelf(d) } } if yyrt4543 { for ; yyj4543 < yyl4543; yyj4543++ { yyv4543 = append(yyv4543, OwnerReference{}) yyh4543.ElemContainerState(yyj4543) if r.TryDecodeAsNil() { yyv4543[yyj4543] = OwnerReference{} } else { yyv4545 := &yyv4543[yyj4543] yyv4545.CodecDecodeSelf(d) } } } } else { yyj4543 := 0 for ; !r.CheckBreak(); yyj4543++ { if yyj4543 >= len(yyv4543) { yyv4543 = append(yyv4543, OwnerReference{}) // var yyz4543 OwnerReference yyc4543 = true } yyh4543.ElemContainerState(yyj4543) if yyj4543 < len(yyv4543) { if r.TryDecodeAsNil() { yyv4543[yyj4543] = OwnerReference{} } else { yyv4546 := &yyv4543[yyj4543] yyv4546.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4543 < len(yyv4543) { yyv4543 = yyv4543[:yyj4543] yyc4543 = true } else if yyj4543 == 0 && yyv4543 == nil { yyv4543 = []OwnerReference{} yyc4543 = true } } yyh4543.End() if yyc4543 { *v = yyv4543 } } 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 _, yyv4547 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4547.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 yyv4548 := *v yyh4548, yyl4548 := z.DecSliceHelperStart() var yyc4548 bool if yyl4548 == 0 { if yyv4548 == nil { yyv4548 = []PersistentVolumeAccessMode{} yyc4548 = true } else if len(yyv4548) != 0 { yyv4548 = yyv4548[:0] yyc4548 = true } } else if yyl4548 > 0 { var yyrr4548, yyrl4548 int var yyrt4548 bool if yyl4548 > cap(yyv4548) { yyrl4548, yyrt4548 = z.DecInferLen(yyl4548, z.DecBasicHandle().MaxInitLen, 16) if yyrt4548 { if yyrl4548 <= cap(yyv4548) { yyv4548 = yyv4548[:yyrl4548] } else { yyv4548 = make([]PersistentVolumeAccessMode, yyrl4548) } } else { yyv4548 = make([]PersistentVolumeAccessMode, yyrl4548) } yyc4548 = true yyrr4548 = len(yyv4548) } else if yyl4548 != len(yyv4548) { yyv4548 = yyv4548[:yyl4548] yyc4548 = true } yyj4548 := 0 for ; yyj4548 < yyrr4548; yyj4548++ { yyh4548.ElemContainerState(yyj4548) if r.TryDecodeAsNil() { yyv4548[yyj4548] = "" } else { yyv4548[yyj4548] = PersistentVolumeAccessMode(r.DecodeString()) } } if yyrt4548 { for ; yyj4548 < yyl4548; yyj4548++ { yyv4548 = append(yyv4548, "") yyh4548.ElemContainerState(yyj4548) if r.TryDecodeAsNil() { yyv4548[yyj4548] = "" } else { yyv4548[yyj4548] = PersistentVolumeAccessMode(r.DecodeString()) } } } } else { yyj4548 := 0 for ; !r.CheckBreak(); yyj4548++ { if yyj4548 >= len(yyv4548) { yyv4548 = append(yyv4548, "") // var yyz4548 PersistentVolumeAccessMode yyc4548 = true } yyh4548.ElemContainerState(yyj4548) if yyj4548 < len(yyv4548) { if r.TryDecodeAsNil() { yyv4548[yyj4548] = "" } else { yyv4548[yyj4548] = PersistentVolumeAccessMode(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4548 < len(yyv4548) { yyv4548 = yyv4548[:yyj4548] yyc4548 = true } else if yyj4548 == 0 && yyv4548 == nil { yyv4548 = []PersistentVolumeAccessMode{} yyc4548 = true } } yyh4548.End() if yyc4548 { *v = yyv4548 } } 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 _, yyv4552 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4553 := &yyv4552 yy4553.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 yyv4554 := *v yyh4554, yyl4554 := z.DecSliceHelperStart() var yyc4554 bool if yyl4554 == 0 { if yyv4554 == nil { yyv4554 = []PersistentVolume{} yyc4554 = true } else if len(yyv4554) != 0 { yyv4554 = yyv4554[:0] yyc4554 = true } } else if yyl4554 > 0 { var yyrr4554, yyrl4554 int var yyrt4554 bool if yyl4554 > cap(yyv4554) { yyrg4554 := len(yyv4554) > 0 yyv24554 := yyv4554 yyrl4554, yyrt4554 = z.DecInferLen(yyl4554, z.DecBasicHandle().MaxInitLen, 488) if yyrt4554 { if yyrl4554 <= cap(yyv4554) { yyv4554 = yyv4554[:yyrl4554] } else { yyv4554 = make([]PersistentVolume, yyrl4554) } } else { yyv4554 = make([]PersistentVolume, yyrl4554) } yyc4554 = true yyrr4554 = len(yyv4554) if yyrg4554 { copy(yyv4554, yyv24554) } } else if yyl4554 != len(yyv4554) { yyv4554 = yyv4554[:yyl4554] yyc4554 = true } yyj4554 := 0 for ; yyj4554 < yyrr4554; yyj4554++ { yyh4554.ElemContainerState(yyj4554) if r.TryDecodeAsNil() { yyv4554[yyj4554] = PersistentVolume{} } else { yyv4555 := &yyv4554[yyj4554] yyv4555.CodecDecodeSelf(d) } } if yyrt4554 { for ; yyj4554 < yyl4554; yyj4554++ { yyv4554 = append(yyv4554, PersistentVolume{}) yyh4554.ElemContainerState(yyj4554) if r.TryDecodeAsNil() { yyv4554[yyj4554] = PersistentVolume{} } else { yyv4556 := &yyv4554[yyj4554] yyv4556.CodecDecodeSelf(d) } } } } else { yyj4554 := 0 for ; !r.CheckBreak(); yyj4554++ { if yyj4554 >= len(yyv4554) { yyv4554 = append(yyv4554, PersistentVolume{}) // var yyz4554 PersistentVolume yyc4554 = true } yyh4554.ElemContainerState(yyj4554) if yyj4554 < len(yyv4554) { if r.TryDecodeAsNil() { yyv4554[yyj4554] = PersistentVolume{} } else { yyv4557 := &yyv4554[yyj4554] yyv4557.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4554 < len(yyv4554) { yyv4554 = yyv4554[:yyj4554] yyc4554 = true } else if yyj4554 == 0 && yyv4554 == nil { yyv4554 = []PersistentVolume{} yyc4554 = true } } yyh4554.End() if yyc4554 { *v = yyv4554 } } 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 _, yyv4558 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4559 := &yyv4558 yy4559.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 yyv4560 := *v yyh4560, yyl4560 := z.DecSliceHelperStart() var yyc4560 bool if yyl4560 == 0 { if yyv4560 == nil { yyv4560 = []PersistentVolumeClaim{} yyc4560 = true } else if len(yyv4560) != 0 { yyv4560 = yyv4560[:0] yyc4560 = true } } else if yyl4560 > 0 { var yyrr4560, yyrl4560 int var yyrt4560 bool if yyl4560 > cap(yyv4560) { yyrg4560 := len(yyv4560) > 0 yyv24560 := yyv4560 yyrl4560, yyrt4560 = z.DecInferLen(yyl4560, z.DecBasicHandle().MaxInitLen, 368) if yyrt4560 { if yyrl4560 <= cap(yyv4560) { yyv4560 = yyv4560[:yyrl4560] } else { yyv4560 = make([]PersistentVolumeClaim, yyrl4560) } } else { yyv4560 = make([]PersistentVolumeClaim, yyrl4560) } yyc4560 = true yyrr4560 = len(yyv4560) if yyrg4560 { copy(yyv4560, yyv24560) } } else if yyl4560 != len(yyv4560) { yyv4560 = yyv4560[:yyl4560] yyc4560 = true } yyj4560 := 0 for ; yyj4560 < yyrr4560; yyj4560++ { yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { yyv4560[yyj4560] = PersistentVolumeClaim{} } else { yyv4561 := &yyv4560[yyj4560] yyv4561.CodecDecodeSelf(d) } } if yyrt4560 { for ; yyj4560 < yyl4560; yyj4560++ { yyv4560 = append(yyv4560, PersistentVolumeClaim{}) yyh4560.ElemContainerState(yyj4560) if r.TryDecodeAsNil() { yyv4560[yyj4560] = PersistentVolumeClaim{} } else { yyv4562 := &yyv4560[yyj4560] yyv4562.CodecDecodeSelf(d) } } } } else { yyj4560 := 0 for ; !r.CheckBreak(); yyj4560++ { if yyj4560 >= len(yyv4560) { yyv4560 = append(yyv4560, PersistentVolumeClaim{}) // var yyz4560 PersistentVolumeClaim yyc4560 = true } yyh4560.ElemContainerState(yyj4560) if yyj4560 < len(yyv4560) { if r.TryDecodeAsNil() { yyv4560[yyj4560] = PersistentVolumeClaim{} } else { yyv4563 := &yyv4560[yyj4560] yyv4563.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4560 < len(yyv4560) { yyv4560 = yyv4560[:yyj4560] yyc4560 = true } else if yyj4560 == 0 && yyv4560 == nil { yyv4560 = []PersistentVolumeClaim{} yyc4560 = true } } yyh4560.End() if yyc4560 { *v = yyv4560 } } func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4564 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4565 := &yyv4564 yy4565.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4566 := *v yyh4566, yyl4566 := z.DecSliceHelperStart() var yyc4566 bool if yyl4566 == 0 { if yyv4566 == nil { yyv4566 = []KeyToPath{} yyc4566 = true } else if len(yyv4566) != 0 { yyv4566 = yyv4566[:0] yyc4566 = true } } else if yyl4566 > 0 { var yyrr4566, yyrl4566 int var yyrt4566 bool if yyl4566 > cap(yyv4566) { yyrg4566 := len(yyv4566) > 0 yyv24566 := yyv4566 yyrl4566, yyrt4566 = z.DecInferLen(yyl4566, z.DecBasicHandle().MaxInitLen, 40) if yyrt4566 { if yyrl4566 <= cap(yyv4566) { yyv4566 = yyv4566[:yyrl4566] } else { yyv4566 = make([]KeyToPath, yyrl4566) } } else { yyv4566 = make([]KeyToPath, yyrl4566) } yyc4566 = true yyrr4566 = len(yyv4566) if yyrg4566 { copy(yyv4566, yyv24566) } } else if yyl4566 != len(yyv4566) { yyv4566 = yyv4566[:yyl4566] yyc4566 = true } yyj4566 := 0 for ; yyj4566 < yyrr4566; yyj4566++ { yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { yyv4566[yyj4566] = KeyToPath{} } else { yyv4567 := &yyv4566[yyj4566] yyv4567.CodecDecodeSelf(d) } } if yyrt4566 { for ; yyj4566 < yyl4566; yyj4566++ { yyv4566 = append(yyv4566, KeyToPath{}) yyh4566.ElemContainerState(yyj4566) if r.TryDecodeAsNil() { yyv4566[yyj4566] = KeyToPath{} } else { yyv4568 := &yyv4566[yyj4566] yyv4568.CodecDecodeSelf(d) } } } } else { yyj4566 := 0 for ; !r.CheckBreak(); yyj4566++ { if yyj4566 >= len(yyv4566) { yyv4566 = append(yyv4566, KeyToPath{}) // var yyz4566 KeyToPath yyc4566 = true } yyh4566.ElemContainerState(yyj4566) if yyj4566 < len(yyv4566) { if r.TryDecodeAsNil() { yyv4566[yyj4566] = KeyToPath{} } else { yyv4569 := &yyv4566[yyj4566] yyv4569.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4566 < len(yyv4566) { yyv4566 = yyv4566[:yyj4566] yyc4566 = true } else if yyj4566 == 0 && yyv4566 == nil { yyv4566 = []KeyToPath{} yyc4566 = true } } yyh4566.End() if yyc4566 { *v = yyv4566 } } 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 _, yyv4570 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4571 := &yyv4570 yy4571.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 yyv4572 := *v yyh4572, yyl4572 := z.DecSliceHelperStart() var yyc4572 bool if yyl4572 == 0 { if yyv4572 == nil { yyv4572 = []DownwardAPIVolumeFile{} yyc4572 = true } else if len(yyv4572) != 0 { yyv4572 = yyv4572[:0] yyc4572 = true } } else if yyl4572 > 0 { var yyrr4572, yyrl4572 int var yyrt4572 bool if yyl4572 > cap(yyv4572) { yyrg4572 := len(yyv4572) > 0 yyv24572 := yyv4572 yyrl4572, yyrt4572 = z.DecInferLen(yyl4572, z.DecBasicHandle().MaxInitLen, 40) if yyrt4572 { if yyrl4572 <= cap(yyv4572) { yyv4572 = yyv4572[:yyrl4572] } else { yyv4572 = make([]DownwardAPIVolumeFile, yyrl4572) } } else { yyv4572 = make([]DownwardAPIVolumeFile, yyrl4572) } yyc4572 = true yyrr4572 = len(yyv4572) if yyrg4572 { copy(yyv4572, yyv24572) } } else if yyl4572 != len(yyv4572) { yyv4572 = yyv4572[:yyl4572] yyc4572 = true } yyj4572 := 0 for ; yyj4572 < yyrr4572; yyj4572++ { yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { yyv4572[yyj4572] = DownwardAPIVolumeFile{} } else { yyv4573 := &yyv4572[yyj4572] yyv4573.CodecDecodeSelf(d) } } if yyrt4572 { for ; yyj4572 < yyl4572; yyj4572++ { yyv4572 = append(yyv4572, DownwardAPIVolumeFile{}) yyh4572.ElemContainerState(yyj4572) if r.TryDecodeAsNil() { yyv4572[yyj4572] = DownwardAPIVolumeFile{} } else { yyv4574 := &yyv4572[yyj4572] yyv4574.CodecDecodeSelf(d) } } } } else { yyj4572 := 0 for ; !r.CheckBreak(); yyj4572++ { if yyj4572 >= len(yyv4572) { yyv4572 = append(yyv4572, DownwardAPIVolumeFile{}) // var yyz4572 DownwardAPIVolumeFile yyc4572 = true } yyh4572.ElemContainerState(yyj4572) if yyj4572 < len(yyv4572) { if r.TryDecodeAsNil() { yyv4572[yyj4572] = DownwardAPIVolumeFile{} } else { yyv4575 := &yyv4572[yyj4572] yyv4575.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4572 < len(yyv4572) { yyv4572 = yyv4572[:yyj4572] yyc4572 = true } else if yyj4572 == 0 && yyv4572 == nil { yyv4572 = []DownwardAPIVolumeFile{} yyc4572 = true } } yyh4572.End() if yyc4572 { *v = yyv4572 } } func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4576 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4577 := &yyv4576 yy4577.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4578 := *v yyh4578, yyl4578 := z.DecSliceHelperStart() var yyc4578 bool if yyl4578 == 0 { if yyv4578 == nil { yyv4578 = []HTTPHeader{} yyc4578 = true } else if len(yyv4578) != 0 { yyv4578 = yyv4578[:0] yyc4578 = true } } else if yyl4578 > 0 { var yyrr4578, yyrl4578 int var yyrt4578 bool if yyl4578 > cap(yyv4578) { yyrg4578 := len(yyv4578) > 0 yyv24578 := yyv4578 yyrl4578, yyrt4578 = z.DecInferLen(yyl4578, z.DecBasicHandle().MaxInitLen, 32) if yyrt4578 { if yyrl4578 <= cap(yyv4578) { yyv4578 = yyv4578[:yyrl4578] } else { yyv4578 = make([]HTTPHeader, yyrl4578) } } else { yyv4578 = make([]HTTPHeader, yyrl4578) } yyc4578 = true yyrr4578 = len(yyv4578) if yyrg4578 { copy(yyv4578, yyv24578) } } else if yyl4578 != len(yyv4578) { yyv4578 = yyv4578[:yyl4578] yyc4578 = true } yyj4578 := 0 for ; yyj4578 < yyrr4578; yyj4578++ { yyh4578.ElemContainerState(yyj4578) if r.TryDecodeAsNil() { yyv4578[yyj4578] = HTTPHeader{} } else { yyv4579 := &yyv4578[yyj4578] yyv4579.CodecDecodeSelf(d) } } if yyrt4578 { for ; yyj4578 < yyl4578; yyj4578++ { yyv4578 = append(yyv4578, HTTPHeader{}) yyh4578.ElemContainerState(yyj4578) if r.TryDecodeAsNil() { yyv4578[yyj4578] = HTTPHeader{} } else { yyv4580 := &yyv4578[yyj4578] yyv4580.CodecDecodeSelf(d) } } } } else { yyj4578 := 0 for ; !r.CheckBreak(); yyj4578++ { if yyj4578 >= len(yyv4578) { yyv4578 = append(yyv4578, HTTPHeader{}) // var yyz4578 HTTPHeader yyc4578 = true } yyh4578.ElemContainerState(yyj4578) if yyj4578 < len(yyv4578) { if r.TryDecodeAsNil() { yyv4578[yyj4578] = HTTPHeader{} } else { yyv4581 := &yyv4578[yyj4578] yyv4581.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4578 < len(yyv4578) { yyv4578 = yyv4578[:yyj4578] yyc4578 = true } else if yyj4578 == 0 && yyv4578 == nil { yyv4578 = []HTTPHeader{} yyc4578 = true } } yyh4578.End() if yyc4578 { *v = yyv4578 } } 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 _, yyv4582 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4582.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 yyv4583 := *v yyh4583, yyl4583 := z.DecSliceHelperStart() var yyc4583 bool if yyl4583 == 0 { if yyv4583 == nil { yyv4583 = []Capability{} yyc4583 = true } else if len(yyv4583) != 0 { yyv4583 = yyv4583[:0] yyc4583 = true } } else if yyl4583 > 0 { var yyrr4583, yyrl4583 int var yyrt4583 bool if yyl4583 > cap(yyv4583) { yyrl4583, yyrt4583 = z.DecInferLen(yyl4583, z.DecBasicHandle().MaxInitLen, 16) if yyrt4583 { if yyrl4583 <= cap(yyv4583) { yyv4583 = yyv4583[:yyrl4583] } else { yyv4583 = make([]Capability, yyrl4583) } } else { yyv4583 = make([]Capability, yyrl4583) } yyc4583 = true yyrr4583 = len(yyv4583) } else if yyl4583 != len(yyv4583) { yyv4583 = yyv4583[:yyl4583] yyc4583 = true } yyj4583 := 0 for ; yyj4583 < yyrr4583; yyj4583++ { yyh4583.ElemContainerState(yyj4583) if r.TryDecodeAsNil() { yyv4583[yyj4583] = "" } else { yyv4583[yyj4583] = Capability(r.DecodeString()) } } if yyrt4583 { for ; yyj4583 < yyl4583; yyj4583++ { yyv4583 = append(yyv4583, "") yyh4583.ElemContainerState(yyj4583) if r.TryDecodeAsNil() { yyv4583[yyj4583] = "" } else { yyv4583[yyj4583] = Capability(r.DecodeString()) } } } } else { yyj4583 := 0 for ; !r.CheckBreak(); yyj4583++ { if yyj4583 >= len(yyv4583) { yyv4583 = append(yyv4583, "") // var yyz4583 Capability yyc4583 = true } yyh4583.ElemContainerState(yyj4583) if yyj4583 < len(yyv4583) { if r.TryDecodeAsNil() { yyv4583[yyj4583] = "" } else { yyv4583[yyj4583] = Capability(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4583 < len(yyv4583) { yyv4583 = yyv4583[:yyj4583] yyc4583 = true } else if yyj4583 == 0 && yyv4583 == nil { yyv4583 = []Capability{} yyc4583 = true } } yyh4583.End() if yyc4583 { *v = yyv4583 } } 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 _, yyv4587 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4588 := &yyv4587 yy4588.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 yyv4589 := *v yyh4589, yyl4589 := z.DecSliceHelperStart() var yyc4589 bool if yyl4589 == 0 { if yyv4589 == nil { yyv4589 = []ContainerPort{} yyc4589 = true } else if len(yyv4589) != 0 { yyv4589 = yyv4589[:0] yyc4589 = true } } else if yyl4589 > 0 { var yyrr4589, yyrl4589 int var yyrt4589 bool if yyl4589 > cap(yyv4589) { yyrg4589 := len(yyv4589) > 0 yyv24589 := yyv4589 yyrl4589, yyrt4589 = z.DecInferLen(yyl4589, z.DecBasicHandle().MaxInitLen, 56) if yyrt4589 { if yyrl4589 <= cap(yyv4589) { yyv4589 = yyv4589[:yyrl4589] } else { yyv4589 = make([]ContainerPort, yyrl4589) } } else { yyv4589 = make([]ContainerPort, yyrl4589) } yyc4589 = true yyrr4589 = len(yyv4589) if yyrg4589 { copy(yyv4589, yyv24589) } } else if yyl4589 != len(yyv4589) { yyv4589 = yyv4589[:yyl4589] yyc4589 = true } yyj4589 := 0 for ; yyj4589 < yyrr4589; yyj4589++ { yyh4589.ElemContainerState(yyj4589) if r.TryDecodeAsNil() { yyv4589[yyj4589] = ContainerPort{} } else { yyv4590 := &yyv4589[yyj4589] yyv4590.CodecDecodeSelf(d) } } if yyrt4589 { for ; yyj4589 < yyl4589; yyj4589++ { yyv4589 = append(yyv4589, ContainerPort{}) yyh4589.ElemContainerState(yyj4589) if r.TryDecodeAsNil() { yyv4589[yyj4589] = ContainerPort{} } else { yyv4591 := &yyv4589[yyj4589] yyv4591.CodecDecodeSelf(d) } } } } else { yyj4589 := 0 for ; !r.CheckBreak(); yyj4589++ { if yyj4589 >= len(yyv4589) { yyv4589 = append(yyv4589, ContainerPort{}) // var yyz4589 ContainerPort yyc4589 = true } yyh4589.ElemContainerState(yyj4589) if yyj4589 < len(yyv4589) { if r.TryDecodeAsNil() { yyv4589[yyj4589] = ContainerPort{} } else { yyv4592 := &yyv4589[yyj4589] yyv4592.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4589 < len(yyv4589) { yyv4589 = yyv4589[:yyj4589] yyc4589 = true } else if yyj4589 == 0 && yyv4589 == nil { yyv4589 = []ContainerPort{} yyc4589 = true } } yyh4589.End() if yyc4589 { *v = yyv4589 } } 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 _, yyv4593 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4594 := &yyv4593 yy4594.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 yyv4595 := *v yyh4595, yyl4595 := z.DecSliceHelperStart() var yyc4595 bool if yyl4595 == 0 { if yyv4595 == nil { yyv4595 = []EnvVar{} yyc4595 = true } else if len(yyv4595) != 0 { yyv4595 = yyv4595[:0] yyc4595 = true } } else if yyl4595 > 0 { var yyrr4595, yyrl4595 int var yyrt4595 bool if yyl4595 > cap(yyv4595) { yyrg4595 := len(yyv4595) > 0 yyv24595 := yyv4595 yyrl4595, yyrt4595 = z.DecInferLen(yyl4595, z.DecBasicHandle().MaxInitLen, 40) if yyrt4595 { if yyrl4595 <= cap(yyv4595) { yyv4595 = yyv4595[:yyrl4595] } else { yyv4595 = make([]EnvVar, yyrl4595) } } else { yyv4595 = make([]EnvVar, yyrl4595) } yyc4595 = true yyrr4595 = len(yyv4595) if yyrg4595 { copy(yyv4595, yyv24595) } } else if yyl4595 != len(yyv4595) { yyv4595 = yyv4595[:yyl4595] yyc4595 = true } yyj4595 := 0 for ; yyj4595 < yyrr4595; yyj4595++ { yyh4595.ElemContainerState(yyj4595) if r.TryDecodeAsNil() { yyv4595[yyj4595] = EnvVar{} } else { yyv4596 := &yyv4595[yyj4595] yyv4596.CodecDecodeSelf(d) } } if yyrt4595 { for ; yyj4595 < yyl4595; yyj4595++ { yyv4595 = append(yyv4595, EnvVar{}) yyh4595.ElemContainerState(yyj4595) if r.TryDecodeAsNil() { yyv4595[yyj4595] = EnvVar{} } else { yyv4597 := &yyv4595[yyj4595] yyv4597.CodecDecodeSelf(d) } } } } else { yyj4595 := 0 for ; !r.CheckBreak(); yyj4595++ { if yyj4595 >= len(yyv4595) { yyv4595 = append(yyv4595, EnvVar{}) // var yyz4595 EnvVar yyc4595 = true } yyh4595.ElemContainerState(yyj4595) if yyj4595 < len(yyv4595) { if r.TryDecodeAsNil() { yyv4595[yyj4595] = EnvVar{} } else { yyv4598 := &yyv4595[yyj4595] yyv4598.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4595 < len(yyv4595) { yyv4595 = yyv4595[:yyj4595] yyc4595 = true } else if yyj4595 == 0 && yyv4595 == nil { yyv4595 = []EnvVar{} yyc4595 = true } } yyh4595.End() if yyc4595 { *v = yyv4595 } } 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 _, yyv4599 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4600 := &yyv4599 yy4600.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 yyv4601 := *v yyh4601, yyl4601 := z.DecSliceHelperStart() var yyc4601 bool if yyl4601 == 0 { if yyv4601 == nil { yyv4601 = []VolumeMount{} yyc4601 = true } else if len(yyv4601) != 0 { yyv4601 = yyv4601[:0] yyc4601 = true } } else if yyl4601 > 0 { var yyrr4601, yyrl4601 int var yyrt4601 bool if yyl4601 > cap(yyv4601) { yyrg4601 := len(yyv4601) > 0 yyv24601 := yyv4601 yyrl4601, yyrt4601 = z.DecInferLen(yyl4601, z.DecBasicHandle().MaxInitLen, 56) if yyrt4601 { if yyrl4601 <= cap(yyv4601) { yyv4601 = yyv4601[:yyrl4601] } else { yyv4601 = make([]VolumeMount, yyrl4601) } } else { yyv4601 = make([]VolumeMount, yyrl4601) } yyc4601 = true yyrr4601 = len(yyv4601) if yyrg4601 { copy(yyv4601, yyv24601) } } else if yyl4601 != len(yyv4601) { yyv4601 = yyv4601[:yyl4601] yyc4601 = true } yyj4601 := 0 for ; yyj4601 < yyrr4601; yyj4601++ { yyh4601.ElemContainerState(yyj4601) if r.TryDecodeAsNil() { yyv4601[yyj4601] = VolumeMount{} } else { yyv4602 := &yyv4601[yyj4601] yyv4602.CodecDecodeSelf(d) } } if yyrt4601 { for ; yyj4601 < yyl4601; yyj4601++ { yyv4601 = append(yyv4601, VolumeMount{}) yyh4601.ElemContainerState(yyj4601) if r.TryDecodeAsNil() { yyv4601[yyj4601] = VolumeMount{} } else { yyv4603 := &yyv4601[yyj4601] yyv4603.CodecDecodeSelf(d) } } } } else { yyj4601 := 0 for ; !r.CheckBreak(); yyj4601++ { if yyj4601 >= len(yyv4601) { yyv4601 = append(yyv4601, VolumeMount{}) // var yyz4601 VolumeMount yyc4601 = true } yyh4601.ElemContainerState(yyj4601) if yyj4601 < len(yyv4601) { if r.TryDecodeAsNil() { yyv4601[yyj4601] = VolumeMount{} } else { yyv4604 := &yyv4601[yyj4601] yyv4604.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4601 < len(yyv4601) { yyv4601 = yyv4601[:yyj4601] yyc4601 = true } else if yyj4601 == 0 && yyv4601 == nil { yyv4601 = []VolumeMount{} yyc4601 = true } } yyh4601.End() if yyc4601 { *v = yyv4601 } } 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 _, yyv4605 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4606 := &yyv4605 yy4606.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 yyv4607 := *v yyh4607, yyl4607 := z.DecSliceHelperStart() var yyc4607 bool if yyl4607 == 0 { if yyv4607 == nil { yyv4607 = []Pod{} yyc4607 = true } else if len(yyv4607) != 0 { yyv4607 = yyv4607[:0] yyc4607 = true } } else if yyl4607 > 0 { var yyrr4607, yyrl4607 int var yyrt4607 bool if yyl4607 > cap(yyv4607) { yyrg4607 := len(yyv4607) > 0 yyv24607 := yyv4607 yyrl4607, yyrt4607 = z.DecInferLen(yyl4607, z.DecBasicHandle().MaxInitLen, 640) if yyrt4607 { if yyrl4607 <= cap(yyv4607) { yyv4607 = yyv4607[:yyrl4607] } else { yyv4607 = make([]Pod, yyrl4607) } } else { yyv4607 = make([]Pod, yyrl4607) } yyc4607 = true yyrr4607 = len(yyv4607) if yyrg4607 { copy(yyv4607, yyv24607) } } else if yyl4607 != len(yyv4607) { yyv4607 = yyv4607[:yyl4607] yyc4607 = true } yyj4607 := 0 for ; yyj4607 < yyrr4607; yyj4607++ { yyh4607.ElemContainerState(yyj4607) if r.TryDecodeAsNil() { yyv4607[yyj4607] = Pod{} } else { yyv4608 := &yyv4607[yyj4607] yyv4608.CodecDecodeSelf(d) } } if yyrt4607 { for ; yyj4607 < yyl4607; yyj4607++ { yyv4607 = append(yyv4607, Pod{}) yyh4607.ElemContainerState(yyj4607) if r.TryDecodeAsNil() { yyv4607[yyj4607] = Pod{} } else { yyv4609 := &yyv4607[yyj4607] yyv4609.CodecDecodeSelf(d) } } } } else { yyj4607 := 0 for ; !r.CheckBreak(); yyj4607++ { if yyj4607 >= len(yyv4607) { yyv4607 = append(yyv4607, Pod{}) // var yyz4607 Pod yyc4607 = true } yyh4607.ElemContainerState(yyj4607) if yyj4607 < len(yyv4607) { if r.TryDecodeAsNil() { yyv4607[yyj4607] = Pod{} } else { yyv4610 := &yyv4607[yyj4607] yyv4610.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4607 < len(yyv4607) { yyv4607 = yyv4607[:yyj4607] yyc4607 = true } else if yyj4607 == 0 && yyv4607 == nil { yyv4607 = []Pod{} yyc4607 = true } } yyh4607.End() if yyc4607 { *v = yyv4607 } } func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4611 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4612 := &yyv4611 yy4612.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4613 := *v yyh4613, yyl4613 := z.DecSliceHelperStart() var yyc4613 bool if yyl4613 == 0 { if yyv4613 == nil { yyv4613 = []NodeSelectorTerm{} yyc4613 = true } else if len(yyv4613) != 0 { yyv4613 = yyv4613[:0] yyc4613 = true } } else if yyl4613 > 0 { var yyrr4613, yyrl4613 int var yyrt4613 bool if yyl4613 > cap(yyv4613) { yyrg4613 := len(yyv4613) > 0 yyv24613 := yyv4613 yyrl4613, yyrt4613 = z.DecInferLen(yyl4613, z.DecBasicHandle().MaxInitLen, 24) if yyrt4613 { if yyrl4613 <= cap(yyv4613) { yyv4613 = yyv4613[:yyrl4613] } else { yyv4613 = make([]NodeSelectorTerm, yyrl4613) } } else { yyv4613 = make([]NodeSelectorTerm, yyrl4613) } yyc4613 = true yyrr4613 = len(yyv4613) if yyrg4613 { copy(yyv4613, yyv24613) } } else if yyl4613 != len(yyv4613) { yyv4613 = yyv4613[:yyl4613] yyc4613 = true } yyj4613 := 0 for ; yyj4613 < yyrr4613; yyj4613++ { yyh4613.ElemContainerState(yyj4613) if r.TryDecodeAsNil() { yyv4613[yyj4613] = NodeSelectorTerm{} } else { yyv4614 := &yyv4613[yyj4613] yyv4614.CodecDecodeSelf(d) } } if yyrt4613 { for ; yyj4613 < yyl4613; yyj4613++ { yyv4613 = append(yyv4613, NodeSelectorTerm{}) yyh4613.ElemContainerState(yyj4613) if r.TryDecodeAsNil() { yyv4613[yyj4613] = NodeSelectorTerm{} } else { yyv4615 := &yyv4613[yyj4613] yyv4615.CodecDecodeSelf(d) } } } } else { yyj4613 := 0 for ; !r.CheckBreak(); yyj4613++ { if yyj4613 >= len(yyv4613) { yyv4613 = append(yyv4613, NodeSelectorTerm{}) // var yyz4613 NodeSelectorTerm yyc4613 = true } yyh4613.ElemContainerState(yyj4613) if yyj4613 < len(yyv4613) { if r.TryDecodeAsNil() { yyv4613[yyj4613] = NodeSelectorTerm{} } else { yyv4616 := &yyv4613[yyj4613] yyv4616.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4613 < len(yyv4613) { yyv4613 = yyv4613[:yyj4613] yyc4613 = true } else if yyj4613 == 0 && yyv4613 == nil { yyv4613 = []NodeSelectorTerm{} yyc4613 = true } } yyh4613.End() if yyc4613 { *v = yyv4613 } } func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4617 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4618 := &yyv4617 yy4618.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4619 := *v yyh4619, yyl4619 := z.DecSliceHelperStart() var yyc4619 bool if yyl4619 == 0 { if yyv4619 == nil { yyv4619 = []NodeSelectorRequirement{} yyc4619 = true } else if len(yyv4619) != 0 { yyv4619 = yyv4619[:0] yyc4619 = true } } else if yyl4619 > 0 { var yyrr4619, yyrl4619 int var yyrt4619 bool if yyl4619 > cap(yyv4619) { yyrg4619 := len(yyv4619) > 0 yyv24619 := yyv4619 yyrl4619, yyrt4619 = z.DecInferLen(yyl4619, z.DecBasicHandle().MaxInitLen, 56) if yyrt4619 { if yyrl4619 <= cap(yyv4619) { yyv4619 = yyv4619[:yyrl4619] } else { yyv4619 = make([]NodeSelectorRequirement, yyrl4619) } } else { yyv4619 = make([]NodeSelectorRequirement, yyrl4619) } yyc4619 = true yyrr4619 = len(yyv4619) if yyrg4619 { copy(yyv4619, yyv24619) } } else if yyl4619 != len(yyv4619) { yyv4619 = yyv4619[:yyl4619] yyc4619 = true } yyj4619 := 0 for ; yyj4619 < yyrr4619; yyj4619++ { yyh4619.ElemContainerState(yyj4619) if r.TryDecodeAsNil() { yyv4619[yyj4619] = NodeSelectorRequirement{} } else { yyv4620 := &yyv4619[yyj4619] yyv4620.CodecDecodeSelf(d) } } if yyrt4619 { for ; yyj4619 < yyl4619; yyj4619++ { yyv4619 = append(yyv4619, NodeSelectorRequirement{}) yyh4619.ElemContainerState(yyj4619) if r.TryDecodeAsNil() { yyv4619[yyj4619] = NodeSelectorRequirement{} } else { yyv4621 := &yyv4619[yyj4619] yyv4621.CodecDecodeSelf(d) } } } } else { yyj4619 := 0 for ; !r.CheckBreak(); yyj4619++ { if yyj4619 >= len(yyv4619) { yyv4619 = append(yyv4619, NodeSelectorRequirement{}) // var yyz4619 NodeSelectorRequirement yyc4619 = true } yyh4619.ElemContainerState(yyj4619) if yyj4619 < len(yyv4619) { if r.TryDecodeAsNil() { yyv4619[yyj4619] = NodeSelectorRequirement{} } else { yyv4622 := &yyv4619[yyj4619] yyv4622.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4619 < len(yyv4619) { yyv4619 = yyv4619[:yyj4619] yyc4619 = true } else if yyj4619 == 0 && yyv4619 == nil { yyv4619 = []NodeSelectorRequirement{} yyc4619 = true } } yyh4619.End() if yyc4619 { *v = yyv4619 } } func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4623 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4624 := &yyv4623 yy4624.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4625 := *v yyh4625, yyl4625 := z.DecSliceHelperStart() var yyc4625 bool if yyl4625 == 0 { if yyv4625 == nil { yyv4625 = []PodAffinityTerm{} yyc4625 = true } else if len(yyv4625) != 0 { yyv4625 = yyv4625[:0] yyc4625 = true } } else if yyl4625 > 0 { var yyrr4625, yyrl4625 int var yyrt4625 bool if yyl4625 > cap(yyv4625) { yyrg4625 := len(yyv4625) > 0 yyv24625 := yyv4625 yyrl4625, yyrt4625 = z.DecInferLen(yyl4625, z.DecBasicHandle().MaxInitLen, 48) if yyrt4625 { if yyrl4625 <= cap(yyv4625) { yyv4625 = yyv4625[:yyrl4625] } else { yyv4625 = make([]PodAffinityTerm, yyrl4625) } } else { yyv4625 = make([]PodAffinityTerm, yyrl4625) } yyc4625 = true yyrr4625 = len(yyv4625) if yyrg4625 { copy(yyv4625, yyv24625) } } else if yyl4625 != len(yyv4625) { yyv4625 = yyv4625[:yyl4625] yyc4625 = true } yyj4625 := 0 for ; yyj4625 < yyrr4625; yyj4625++ { yyh4625.ElemContainerState(yyj4625) if r.TryDecodeAsNil() { yyv4625[yyj4625] = PodAffinityTerm{} } else { yyv4626 := &yyv4625[yyj4625] yyv4626.CodecDecodeSelf(d) } } if yyrt4625 { for ; yyj4625 < yyl4625; yyj4625++ { yyv4625 = append(yyv4625, PodAffinityTerm{}) yyh4625.ElemContainerState(yyj4625) if r.TryDecodeAsNil() { yyv4625[yyj4625] = PodAffinityTerm{} } else { yyv4627 := &yyv4625[yyj4625] yyv4627.CodecDecodeSelf(d) } } } } else { yyj4625 := 0 for ; !r.CheckBreak(); yyj4625++ { if yyj4625 >= len(yyv4625) { yyv4625 = append(yyv4625, PodAffinityTerm{}) // var yyz4625 PodAffinityTerm yyc4625 = true } yyh4625.ElemContainerState(yyj4625) if yyj4625 < len(yyv4625) { if r.TryDecodeAsNil() { yyv4625[yyj4625] = PodAffinityTerm{} } else { yyv4628 := &yyv4625[yyj4625] yyv4628.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4625 < len(yyv4625) { yyv4625 = yyv4625[:yyj4625] yyc4625 = true } else if yyj4625 == 0 && yyv4625 == nil { yyv4625 = []PodAffinityTerm{} yyc4625 = true } } yyh4625.End() if yyc4625 { *v = yyv4625 } } func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4629 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4630 := &yyv4629 yy4630.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4631 := *v yyh4631, yyl4631 := z.DecSliceHelperStart() var yyc4631 bool if yyl4631 == 0 { if yyv4631 == nil { yyv4631 = []WeightedPodAffinityTerm{} yyc4631 = true } else if len(yyv4631) != 0 { yyv4631 = yyv4631[:0] yyc4631 = true } } else if yyl4631 > 0 { var yyrr4631, yyrl4631 int var yyrt4631 bool if yyl4631 > cap(yyv4631) { yyrg4631 := len(yyv4631) > 0 yyv24631 := yyv4631 yyrl4631, yyrt4631 = z.DecInferLen(yyl4631, z.DecBasicHandle().MaxInitLen, 56) if yyrt4631 { if yyrl4631 <= cap(yyv4631) { yyv4631 = yyv4631[:yyrl4631] } else { yyv4631 = make([]WeightedPodAffinityTerm, yyrl4631) } } else { yyv4631 = make([]WeightedPodAffinityTerm, yyrl4631) } yyc4631 = true yyrr4631 = len(yyv4631) if yyrg4631 { copy(yyv4631, yyv24631) } } else if yyl4631 != len(yyv4631) { yyv4631 = yyv4631[:yyl4631] yyc4631 = true } yyj4631 := 0 for ; yyj4631 < yyrr4631; yyj4631++ { yyh4631.ElemContainerState(yyj4631) if r.TryDecodeAsNil() { yyv4631[yyj4631] = WeightedPodAffinityTerm{} } else { yyv4632 := &yyv4631[yyj4631] yyv4632.CodecDecodeSelf(d) } } if yyrt4631 { for ; yyj4631 < yyl4631; yyj4631++ { yyv4631 = append(yyv4631, WeightedPodAffinityTerm{}) yyh4631.ElemContainerState(yyj4631) if r.TryDecodeAsNil() { yyv4631[yyj4631] = WeightedPodAffinityTerm{} } else { yyv4633 := &yyv4631[yyj4631] yyv4633.CodecDecodeSelf(d) } } } } else { yyj4631 := 0 for ; !r.CheckBreak(); yyj4631++ { if yyj4631 >= len(yyv4631) { yyv4631 = append(yyv4631, WeightedPodAffinityTerm{}) // var yyz4631 WeightedPodAffinityTerm yyc4631 = true } yyh4631.ElemContainerState(yyj4631) if yyj4631 < len(yyv4631) { if r.TryDecodeAsNil() { yyv4631[yyj4631] = WeightedPodAffinityTerm{} } else { yyv4634 := &yyv4631[yyj4631] yyv4634.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4631 < len(yyv4631) { yyv4631 = yyv4631[:yyj4631] yyc4631 = true } else if yyj4631 == 0 && yyv4631 == nil { yyv4631 = []WeightedPodAffinityTerm{} yyc4631 = true } } yyh4631.End() if yyc4631 { *v = yyv4631 } } func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4635 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4636 := &yyv4635 yy4636.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4637 := *v yyh4637, yyl4637 := z.DecSliceHelperStart() var yyc4637 bool if yyl4637 == 0 { if yyv4637 == nil { yyv4637 = []PreferredSchedulingTerm{} yyc4637 = true } else if len(yyv4637) != 0 { yyv4637 = yyv4637[:0] yyc4637 = true } } else if yyl4637 > 0 { var yyrr4637, yyrl4637 int var yyrt4637 bool if yyl4637 > cap(yyv4637) { yyrg4637 := len(yyv4637) > 0 yyv24637 := yyv4637 yyrl4637, yyrt4637 = z.DecInferLen(yyl4637, z.DecBasicHandle().MaxInitLen, 32) if yyrt4637 { if yyrl4637 <= cap(yyv4637) { yyv4637 = yyv4637[:yyrl4637] } else { yyv4637 = make([]PreferredSchedulingTerm, yyrl4637) } } else { yyv4637 = make([]PreferredSchedulingTerm, yyrl4637) } yyc4637 = true yyrr4637 = len(yyv4637) if yyrg4637 { copy(yyv4637, yyv24637) } } else if yyl4637 != len(yyv4637) { yyv4637 = yyv4637[:yyl4637] yyc4637 = true } yyj4637 := 0 for ; yyj4637 < yyrr4637; yyj4637++ { yyh4637.ElemContainerState(yyj4637) if r.TryDecodeAsNil() { yyv4637[yyj4637] = PreferredSchedulingTerm{} } else { yyv4638 := &yyv4637[yyj4637] yyv4638.CodecDecodeSelf(d) } } if yyrt4637 { for ; yyj4637 < yyl4637; yyj4637++ { yyv4637 = append(yyv4637, PreferredSchedulingTerm{}) yyh4637.ElemContainerState(yyj4637) if r.TryDecodeAsNil() { yyv4637[yyj4637] = PreferredSchedulingTerm{} } else { yyv4639 := &yyv4637[yyj4637] yyv4639.CodecDecodeSelf(d) } } } } else { yyj4637 := 0 for ; !r.CheckBreak(); yyj4637++ { if yyj4637 >= len(yyv4637) { yyv4637 = append(yyv4637, PreferredSchedulingTerm{}) // var yyz4637 PreferredSchedulingTerm yyc4637 = true } yyh4637.ElemContainerState(yyj4637) if yyj4637 < len(yyv4637) { if r.TryDecodeAsNil() { yyv4637[yyj4637] = PreferredSchedulingTerm{} } else { yyv4640 := &yyv4637[yyj4637] yyv4640.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4637 < len(yyv4637) { yyv4637 = yyv4637[:yyj4637] yyc4637 = true } else if yyj4637 == 0 && yyv4637 == nil { yyv4637 = []PreferredSchedulingTerm{} yyc4637 = true } } yyh4637.End() if yyc4637 { *v = yyv4637 } } 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 _, yyv4641 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4642 := &yyv4641 yy4642.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 yyv4643 := *v yyh4643, yyl4643 := z.DecSliceHelperStart() var yyc4643 bool if yyl4643 == 0 { if yyv4643 == nil { yyv4643 = []Volume{} yyc4643 = true } else if len(yyv4643) != 0 { yyv4643 = yyv4643[:0] yyc4643 = true } } else if yyl4643 > 0 { var yyrr4643, yyrl4643 int var yyrt4643 bool if yyl4643 > cap(yyv4643) { yyrg4643 := len(yyv4643) > 0 yyv24643 := yyv4643 yyrl4643, yyrt4643 = z.DecInferLen(yyl4643, z.DecBasicHandle().MaxInitLen, 192) if yyrt4643 { if yyrl4643 <= cap(yyv4643) { yyv4643 = yyv4643[:yyrl4643] } else { yyv4643 = make([]Volume, yyrl4643) } } else { yyv4643 = make([]Volume, yyrl4643) } yyc4643 = true yyrr4643 = len(yyv4643) if yyrg4643 { copy(yyv4643, yyv24643) } } else if yyl4643 != len(yyv4643) { yyv4643 = yyv4643[:yyl4643] yyc4643 = true } yyj4643 := 0 for ; yyj4643 < yyrr4643; yyj4643++ { yyh4643.ElemContainerState(yyj4643) if r.TryDecodeAsNil() { yyv4643[yyj4643] = Volume{} } else { yyv4644 := &yyv4643[yyj4643] yyv4644.CodecDecodeSelf(d) } } if yyrt4643 { for ; yyj4643 < yyl4643; yyj4643++ { yyv4643 = append(yyv4643, Volume{}) yyh4643.ElemContainerState(yyj4643) if r.TryDecodeAsNil() { yyv4643[yyj4643] = Volume{} } else { yyv4645 := &yyv4643[yyj4643] yyv4645.CodecDecodeSelf(d) } } } } else { yyj4643 := 0 for ; !r.CheckBreak(); yyj4643++ { if yyj4643 >= len(yyv4643) { yyv4643 = append(yyv4643, Volume{}) // var yyz4643 Volume yyc4643 = true } yyh4643.ElemContainerState(yyj4643) if yyj4643 < len(yyv4643) { if r.TryDecodeAsNil() { yyv4643[yyj4643] = Volume{} } else { yyv4646 := &yyv4643[yyj4643] yyv4646.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4643 < len(yyv4643) { yyv4643 = yyv4643[:yyj4643] yyc4643 = true } else if yyj4643 == 0 && yyv4643 == nil { yyv4643 = []Volume{} yyc4643 = true } } yyh4643.End() if yyc4643 { *v = yyv4643 } } 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 _, yyv4647 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4648 := &yyv4647 yy4648.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 yyv4649 := *v yyh4649, yyl4649 := z.DecSliceHelperStart() var yyc4649 bool if yyl4649 == 0 { if yyv4649 == nil { yyv4649 = []Container{} yyc4649 = true } else if len(yyv4649) != 0 { yyv4649 = yyv4649[:0] yyc4649 = true } } else if yyl4649 > 0 { var yyrr4649, yyrl4649 int var yyrt4649 bool if yyl4649 > cap(yyv4649) { yyrg4649 := len(yyv4649) > 0 yyv24649 := yyv4649 yyrl4649, yyrt4649 = z.DecInferLen(yyl4649, z.DecBasicHandle().MaxInitLen, 256) if yyrt4649 { if yyrl4649 <= cap(yyv4649) { yyv4649 = yyv4649[:yyrl4649] } else { yyv4649 = make([]Container, yyrl4649) } } else { yyv4649 = make([]Container, yyrl4649) } yyc4649 = true yyrr4649 = len(yyv4649) if yyrg4649 { copy(yyv4649, yyv24649) } } else if yyl4649 != len(yyv4649) { yyv4649 = yyv4649[:yyl4649] yyc4649 = true } yyj4649 := 0 for ; yyj4649 < yyrr4649; yyj4649++ { yyh4649.ElemContainerState(yyj4649) if r.TryDecodeAsNil() { yyv4649[yyj4649] = Container{} } else { yyv4650 := &yyv4649[yyj4649] yyv4650.CodecDecodeSelf(d) } } if yyrt4649 { for ; yyj4649 < yyl4649; yyj4649++ { yyv4649 = append(yyv4649, Container{}) yyh4649.ElemContainerState(yyj4649) if r.TryDecodeAsNil() { yyv4649[yyj4649] = Container{} } else { yyv4651 := &yyv4649[yyj4649] yyv4651.CodecDecodeSelf(d) } } } } else { yyj4649 := 0 for ; !r.CheckBreak(); yyj4649++ { if yyj4649 >= len(yyv4649) { yyv4649 = append(yyv4649, Container{}) // var yyz4649 Container yyc4649 = true } yyh4649.ElemContainerState(yyj4649) if yyj4649 < len(yyv4649) { if r.TryDecodeAsNil() { yyv4649[yyj4649] = Container{} } else { yyv4652 := &yyv4649[yyj4649] yyv4652.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4649 < len(yyv4649) { yyv4649 = yyv4649[:yyj4649] yyc4649 = true } else if yyj4649 == 0 && yyv4649 == nil { yyv4649 = []Container{} yyc4649 = true } } yyh4649.End() if yyc4649 { *v = yyv4649 } } 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 _, yyv4653 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4654 := &yyv4653 yy4654.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 yyv4655 := *v yyh4655, yyl4655 := z.DecSliceHelperStart() var yyc4655 bool if yyl4655 == 0 { if yyv4655 == nil { yyv4655 = []LocalObjectReference{} yyc4655 = true } else if len(yyv4655) != 0 { yyv4655 = yyv4655[:0] yyc4655 = true } } else if yyl4655 > 0 { var yyrr4655, yyrl4655 int var yyrt4655 bool if yyl4655 > cap(yyv4655) { yyrg4655 := len(yyv4655) > 0 yyv24655 := yyv4655 yyrl4655, yyrt4655 = z.DecInferLen(yyl4655, z.DecBasicHandle().MaxInitLen, 16) if yyrt4655 { if yyrl4655 <= cap(yyv4655) { yyv4655 = yyv4655[:yyrl4655] } else { yyv4655 = make([]LocalObjectReference, yyrl4655) } } else { yyv4655 = make([]LocalObjectReference, yyrl4655) } yyc4655 = true yyrr4655 = len(yyv4655) if yyrg4655 { copy(yyv4655, yyv24655) } } else if yyl4655 != len(yyv4655) { yyv4655 = yyv4655[:yyl4655] yyc4655 = true } yyj4655 := 0 for ; yyj4655 < yyrr4655; yyj4655++ { yyh4655.ElemContainerState(yyj4655) if r.TryDecodeAsNil() { yyv4655[yyj4655] = LocalObjectReference{} } else { yyv4656 := &yyv4655[yyj4655] yyv4656.CodecDecodeSelf(d) } } if yyrt4655 { for ; yyj4655 < yyl4655; yyj4655++ { yyv4655 = append(yyv4655, LocalObjectReference{}) yyh4655.ElemContainerState(yyj4655) if r.TryDecodeAsNil() { yyv4655[yyj4655] = LocalObjectReference{} } else { yyv4657 := &yyv4655[yyj4655] yyv4657.CodecDecodeSelf(d) } } } } else { yyj4655 := 0 for ; !r.CheckBreak(); yyj4655++ { if yyj4655 >= len(yyv4655) { yyv4655 = append(yyv4655, LocalObjectReference{}) // var yyz4655 LocalObjectReference yyc4655 = true } yyh4655.ElemContainerState(yyj4655) if yyj4655 < len(yyv4655) { if r.TryDecodeAsNil() { yyv4655[yyj4655] = LocalObjectReference{} } else { yyv4658 := &yyv4655[yyj4655] yyv4658.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4655 < len(yyv4655) { yyv4655 = yyv4655[:yyj4655] yyc4655 = true } else if yyj4655 == 0 && yyv4655 == nil { yyv4655 = []LocalObjectReference{} yyc4655 = true } } yyh4655.End() if yyc4655 { *v = yyv4655 } } 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 _, yyv4659 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4660 := &yyv4659 yy4660.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 yyv4661 := *v yyh4661, yyl4661 := z.DecSliceHelperStart() var yyc4661 bool if yyl4661 == 0 { if yyv4661 == nil { yyv4661 = []PodCondition{} yyc4661 = true } else if len(yyv4661) != 0 { yyv4661 = yyv4661[:0] yyc4661 = true } } else if yyl4661 > 0 { var yyrr4661, yyrl4661 int var yyrt4661 bool if yyl4661 > cap(yyv4661) { yyrg4661 := len(yyv4661) > 0 yyv24661 := yyv4661 yyrl4661, yyrt4661 = z.DecInferLen(yyl4661, z.DecBasicHandle().MaxInitLen, 112) if yyrt4661 { if yyrl4661 <= cap(yyv4661) { yyv4661 = yyv4661[:yyrl4661] } else { yyv4661 = make([]PodCondition, yyrl4661) } } else { yyv4661 = make([]PodCondition, yyrl4661) } yyc4661 = true yyrr4661 = len(yyv4661) if yyrg4661 { copy(yyv4661, yyv24661) } } else if yyl4661 != len(yyv4661) { yyv4661 = yyv4661[:yyl4661] yyc4661 = true } yyj4661 := 0 for ; yyj4661 < yyrr4661; yyj4661++ { yyh4661.ElemContainerState(yyj4661) if r.TryDecodeAsNil() { yyv4661[yyj4661] = PodCondition{} } else { yyv4662 := &yyv4661[yyj4661] yyv4662.CodecDecodeSelf(d) } } if yyrt4661 { for ; yyj4661 < yyl4661; yyj4661++ { yyv4661 = append(yyv4661, PodCondition{}) yyh4661.ElemContainerState(yyj4661) if r.TryDecodeAsNil() { yyv4661[yyj4661] = PodCondition{} } else { yyv4663 := &yyv4661[yyj4661] yyv4663.CodecDecodeSelf(d) } } } } else { yyj4661 := 0 for ; !r.CheckBreak(); yyj4661++ { if yyj4661 >= len(yyv4661) { yyv4661 = append(yyv4661, PodCondition{}) // var yyz4661 PodCondition yyc4661 = true } yyh4661.ElemContainerState(yyj4661) if yyj4661 < len(yyv4661) { if r.TryDecodeAsNil() { yyv4661[yyj4661] = PodCondition{} } else { yyv4664 := &yyv4661[yyj4661] yyv4664.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4661 < len(yyv4661) { yyv4661 = yyv4661[:yyj4661] yyc4661 = true } else if yyj4661 == 0 && yyv4661 == nil { yyv4661 = []PodCondition{} yyc4661 = true } } yyh4661.End() if yyc4661 { *v = yyv4661 } } 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 _, yyv4665 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4666 := &yyv4665 yy4666.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 yyv4667 := *v yyh4667, yyl4667 := z.DecSliceHelperStart() var yyc4667 bool if yyl4667 == 0 { if yyv4667 == nil { yyv4667 = []ContainerStatus{} yyc4667 = true } else if len(yyv4667) != 0 { yyv4667 = yyv4667[:0] yyc4667 = true } } else if yyl4667 > 0 { var yyrr4667, yyrl4667 int var yyrt4667 bool if yyl4667 > cap(yyv4667) { yyrg4667 := len(yyv4667) > 0 yyv24667 := yyv4667 yyrl4667, yyrt4667 = z.DecInferLen(yyl4667, z.DecBasicHandle().MaxInitLen, 120) if yyrt4667 { if yyrl4667 <= cap(yyv4667) { yyv4667 = yyv4667[:yyrl4667] } else { yyv4667 = make([]ContainerStatus, yyrl4667) } } else { yyv4667 = make([]ContainerStatus, yyrl4667) } yyc4667 = true yyrr4667 = len(yyv4667) if yyrg4667 { copy(yyv4667, yyv24667) } } else if yyl4667 != len(yyv4667) { yyv4667 = yyv4667[:yyl4667] yyc4667 = true } yyj4667 := 0 for ; yyj4667 < yyrr4667; yyj4667++ { yyh4667.ElemContainerState(yyj4667) if r.TryDecodeAsNil() { yyv4667[yyj4667] = ContainerStatus{} } else { yyv4668 := &yyv4667[yyj4667] yyv4668.CodecDecodeSelf(d) } } if yyrt4667 { for ; yyj4667 < yyl4667; yyj4667++ { yyv4667 = append(yyv4667, ContainerStatus{}) yyh4667.ElemContainerState(yyj4667) if r.TryDecodeAsNil() { yyv4667[yyj4667] = ContainerStatus{} } else { yyv4669 := &yyv4667[yyj4667] yyv4669.CodecDecodeSelf(d) } } } } else { yyj4667 := 0 for ; !r.CheckBreak(); yyj4667++ { if yyj4667 >= len(yyv4667) { yyv4667 = append(yyv4667, ContainerStatus{}) // var yyz4667 ContainerStatus yyc4667 = true } yyh4667.ElemContainerState(yyj4667) if yyj4667 < len(yyv4667) { if r.TryDecodeAsNil() { yyv4667[yyj4667] = ContainerStatus{} } else { yyv4670 := &yyv4667[yyj4667] yyv4670.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4667 < len(yyv4667) { yyv4667 = yyv4667[:yyj4667] yyc4667 = true } else if yyj4667 == 0 && yyv4667 == nil { yyv4667 = []ContainerStatus{} yyc4667 = true } } yyh4667.End() if yyc4667 { *v = yyv4667 } } 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 _, yyv4671 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4672 := &yyv4671 yy4672.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 yyv4673 := *v yyh4673, yyl4673 := z.DecSliceHelperStart() var yyc4673 bool if yyl4673 == 0 { if yyv4673 == nil { yyv4673 = []PodTemplate{} yyc4673 = true } else if len(yyv4673) != 0 { yyv4673 = yyv4673[:0] yyc4673 = true } } else if yyl4673 > 0 { var yyrr4673, yyrl4673 int var yyrt4673 bool if yyl4673 > cap(yyv4673) { yyrg4673 := len(yyv4673) > 0 yyv24673 := yyv4673 yyrl4673, yyrt4673 = z.DecInferLen(yyl4673, z.DecBasicHandle().MaxInitLen, 704) if yyrt4673 { if yyrl4673 <= cap(yyv4673) { yyv4673 = yyv4673[:yyrl4673] } else { yyv4673 = make([]PodTemplate, yyrl4673) } } else { yyv4673 = make([]PodTemplate, yyrl4673) } yyc4673 = true yyrr4673 = len(yyv4673) if yyrg4673 { copy(yyv4673, yyv24673) } } else if yyl4673 != len(yyv4673) { yyv4673 = yyv4673[:yyl4673] yyc4673 = true } yyj4673 := 0 for ; yyj4673 < yyrr4673; yyj4673++ { yyh4673.ElemContainerState(yyj4673) if r.TryDecodeAsNil() { yyv4673[yyj4673] = PodTemplate{} } else { yyv4674 := &yyv4673[yyj4673] yyv4674.CodecDecodeSelf(d) } } if yyrt4673 { for ; yyj4673 < yyl4673; yyj4673++ { yyv4673 = append(yyv4673, PodTemplate{}) yyh4673.ElemContainerState(yyj4673) if r.TryDecodeAsNil() { yyv4673[yyj4673] = PodTemplate{} } else { yyv4675 := &yyv4673[yyj4673] yyv4675.CodecDecodeSelf(d) } } } } else { yyj4673 := 0 for ; !r.CheckBreak(); yyj4673++ { if yyj4673 >= len(yyv4673) { yyv4673 = append(yyv4673, PodTemplate{}) // var yyz4673 PodTemplate yyc4673 = true } yyh4673.ElemContainerState(yyj4673) if yyj4673 < len(yyv4673) { if r.TryDecodeAsNil() { yyv4673[yyj4673] = PodTemplate{} } else { yyv4676 := &yyv4673[yyj4673] yyv4676.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4673 < len(yyv4673) { yyv4673 = yyv4673[:yyj4673] yyc4673 = true } else if yyj4673 == 0 && yyv4673 == nil { yyv4673 = []PodTemplate{} yyc4673 = true } } yyh4673.End() if yyc4673 { *v = yyv4673 } } 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 _, yyv4677 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4678 := &yyv4677 yy4678.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 yyv4679 := *v yyh4679, yyl4679 := z.DecSliceHelperStart() var yyc4679 bool if yyl4679 == 0 { if yyv4679 == nil { yyv4679 = []ReplicationController{} yyc4679 = true } else if len(yyv4679) != 0 { yyv4679 = yyv4679[:0] yyc4679 = true } } else if yyl4679 > 0 { var yyrr4679, yyrl4679 int var yyrt4679 bool if yyl4679 > cap(yyv4679) { yyrg4679 := len(yyv4679) > 0 yyv24679 := yyv4679 yyrl4679, yyrt4679 = z.DecInferLen(yyl4679, z.DecBasicHandle().MaxInitLen, 304) if yyrt4679 { if yyrl4679 <= cap(yyv4679) { yyv4679 = yyv4679[:yyrl4679] } else { yyv4679 = make([]ReplicationController, yyrl4679) } } else { yyv4679 = make([]ReplicationController, yyrl4679) } yyc4679 = true yyrr4679 = len(yyv4679) if yyrg4679 { copy(yyv4679, yyv24679) } } else if yyl4679 != len(yyv4679) { yyv4679 = yyv4679[:yyl4679] yyc4679 = true } yyj4679 := 0 for ; yyj4679 < yyrr4679; yyj4679++ { yyh4679.ElemContainerState(yyj4679) if r.TryDecodeAsNil() { yyv4679[yyj4679] = ReplicationController{} } else { yyv4680 := &yyv4679[yyj4679] yyv4680.CodecDecodeSelf(d) } } if yyrt4679 { for ; yyj4679 < yyl4679; yyj4679++ { yyv4679 = append(yyv4679, ReplicationController{}) yyh4679.ElemContainerState(yyj4679) if r.TryDecodeAsNil() { yyv4679[yyj4679] = ReplicationController{} } else { yyv4681 := &yyv4679[yyj4679] yyv4681.CodecDecodeSelf(d) } } } } else { yyj4679 := 0 for ; !r.CheckBreak(); yyj4679++ { if yyj4679 >= len(yyv4679) { yyv4679 = append(yyv4679, ReplicationController{}) // var yyz4679 ReplicationController yyc4679 = true } yyh4679.ElemContainerState(yyj4679) if yyj4679 < len(yyv4679) { if r.TryDecodeAsNil() { yyv4679[yyj4679] = ReplicationController{} } else { yyv4682 := &yyv4679[yyj4679] yyv4682.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4679 < len(yyv4679) { yyv4679 = yyv4679[:yyj4679] yyc4679 = true } else if yyj4679 == 0 && yyv4679 == nil { yyv4679 = []ReplicationController{} yyc4679 = true } } yyh4679.End() if yyc4679 { *v = yyv4679 } } 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 _, yyv4683 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4684 := &yyv4683 yy4684.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 yyv4685 := *v yyh4685, yyl4685 := z.DecSliceHelperStart() var yyc4685 bool if yyl4685 == 0 { if yyv4685 == nil { yyv4685 = []Service{} yyc4685 = true } else if len(yyv4685) != 0 { yyv4685 = yyv4685[:0] yyc4685 = true } } else if yyl4685 > 0 { var yyrr4685, yyrl4685 int var yyrt4685 bool if yyl4685 > cap(yyv4685) { yyrg4685 := len(yyv4685) > 0 yyv24685 := yyv4685 yyrl4685, yyrt4685 = z.DecInferLen(yyl4685, z.DecBasicHandle().MaxInitLen, 440) if yyrt4685 { if yyrl4685 <= cap(yyv4685) { yyv4685 = yyv4685[:yyrl4685] } else { yyv4685 = make([]Service, yyrl4685) } } else { yyv4685 = make([]Service, yyrl4685) } yyc4685 = true yyrr4685 = len(yyv4685) if yyrg4685 { copy(yyv4685, yyv24685) } } else if yyl4685 != len(yyv4685) { yyv4685 = yyv4685[:yyl4685] yyc4685 = true } yyj4685 := 0 for ; yyj4685 < yyrr4685; yyj4685++ { yyh4685.ElemContainerState(yyj4685) if r.TryDecodeAsNil() { yyv4685[yyj4685] = Service{} } else { yyv4686 := &yyv4685[yyj4685] yyv4686.CodecDecodeSelf(d) } } if yyrt4685 { for ; yyj4685 < yyl4685; yyj4685++ { yyv4685 = append(yyv4685, Service{}) yyh4685.ElemContainerState(yyj4685) if r.TryDecodeAsNil() { yyv4685[yyj4685] = Service{} } else { yyv4687 := &yyv4685[yyj4685] yyv4687.CodecDecodeSelf(d) } } } } else { yyj4685 := 0 for ; !r.CheckBreak(); yyj4685++ { if yyj4685 >= len(yyv4685) { yyv4685 = append(yyv4685, Service{}) // var yyz4685 Service yyc4685 = true } yyh4685.ElemContainerState(yyj4685) if yyj4685 < len(yyv4685) { if r.TryDecodeAsNil() { yyv4685[yyj4685] = Service{} } else { yyv4688 := &yyv4685[yyj4685] yyv4688.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4685 < len(yyv4685) { yyv4685 = yyv4685[:yyj4685] yyc4685 = true } else if yyj4685 == 0 && yyv4685 == nil { yyv4685 = []Service{} yyc4685 = true } } yyh4685.End() if yyc4685 { *v = yyv4685 } } 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 _, yyv4689 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4690 := &yyv4689 yy4690.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 yyv4691 := *v yyh4691, yyl4691 := z.DecSliceHelperStart() var yyc4691 bool if yyl4691 == 0 { if yyv4691 == nil { yyv4691 = []LoadBalancerIngress{} yyc4691 = true } else if len(yyv4691) != 0 { yyv4691 = yyv4691[:0] yyc4691 = true } } else if yyl4691 > 0 { var yyrr4691, yyrl4691 int var yyrt4691 bool if yyl4691 > cap(yyv4691) { yyrg4691 := len(yyv4691) > 0 yyv24691 := yyv4691 yyrl4691, yyrt4691 = z.DecInferLen(yyl4691, z.DecBasicHandle().MaxInitLen, 32) if yyrt4691 { if yyrl4691 <= cap(yyv4691) { yyv4691 = yyv4691[:yyrl4691] } else { yyv4691 = make([]LoadBalancerIngress, yyrl4691) } } else { yyv4691 = make([]LoadBalancerIngress, yyrl4691) } yyc4691 = true yyrr4691 = len(yyv4691) if yyrg4691 { copy(yyv4691, yyv24691) } } else if yyl4691 != len(yyv4691) { yyv4691 = yyv4691[:yyl4691] yyc4691 = true } yyj4691 := 0 for ; yyj4691 < yyrr4691; yyj4691++ { yyh4691.ElemContainerState(yyj4691) if r.TryDecodeAsNil() { yyv4691[yyj4691] = LoadBalancerIngress{} } else { yyv4692 := &yyv4691[yyj4691] yyv4692.CodecDecodeSelf(d) } } if yyrt4691 { for ; yyj4691 < yyl4691; yyj4691++ { yyv4691 = append(yyv4691, LoadBalancerIngress{}) yyh4691.ElemContainerState(yyj4691) if r.TryDecodeAsNil() { yyv4691[yyj4691] = LoadBalancerIngress{} } else { yyv4693 := &yyv4691[yyj4691] yyv4693.CodecDecodeSelf(d) } } } } else { yyj4691 := 0 for ; !r.CheckBreak(); yyj4691++ { if yyj4691 >= len(yyv4691) { yyv4691 = append(yyv4691, LoadBalancerIngress{}) // var yyz4691 LoadBalancerIngress yyc4691 = true } yyh4691.ElemContainerState(yyj4691) if yyj4691 < len(yyv4691) { if r.TryDecodeAsNil() { yyv4691[yyj4691] = LoadBalancerIngress{} } else { yyv4694 := &yyv4691[yyj4691] yyv4694.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4691 < len(yyv4691) { yyv4691 = yyv4691[:yyj4691] yyc4691 = true } else if yyj4691 == 0 && yyv4691 == nil { yyv4691 = []LoadBalancerIngress{} yyc4691 = true } } yyh4691.End() if yyc4691 { *v = yyv4691 } } 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 _, yyv4695 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4696 := &yyv4695 yy4696.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 yyv4697 := *v yyh4697, yyl4697 := z.DecSliceHelperStart() var yyc4697 bool if yyl4697 == 0 { if yyv4697 == nil { yyv4697 = []ServicePort{} yyc4697 = true } else if len(yyv4697) != 0 { yyv4697 = yyv4697[:0] yyc4697 = true } } else if yyl4697 > 0 { var yyrr4697, yyrl4697 int var yyrt4697 bool if yyl4697 > cap(yyv4697) { yyrg4697 := len(yyv4697) > 0 yyv24697 := yyv4697 yyrl4697, yyrt4697 = z.DecInferLen(yyl4697, z.DecBasicHandle().MaxInitLen, 80) if yyrt4697 { if yyrl4697 <= cap(yyv4697) { yyv4697 = yyv4697[:yyrl4697] } else { yyv4697 = make([]ServicePort, yyrl4697) } } else { yyv4697 = make([]ServicePort, yyrl4697) } yyc4697 = true yyrr4697 = len(yyv4697) if yyrg4697 { copy(yyv4697, yyv24697) } } else if yyl4697 != len(yyv4697) { yyv4697 = yyv4697[:yyl4697] yyc4697 = true } yyj4697 := 0 for ; yyj4697 < yyrr4697; yyj4697++ { yyh4697.ElemContainerState(yyj4697) if r.TryDecodeAsNil() { yyv4697[yyj4697] = ServicePort{} } else { yyv4698 := &yyv4697[yyj4697] yyv4698.CodecDecodeSelf(d) } } if yyrt4697 { for ; yyj4697 < yyl4697; yyj4697++ { yyv4697 = append(yyv4697, ServicePort{}) yyh4697.ElemContainerState(yyj4697) if r.TryDecodeAsNil() { yyv4697[yyj4697] = ServicePort{} } else { yyv4699 := &yyv4697[yyj4697] yyv4699.CodecDecodeSelf(d) } } } } else { yyj4697 := 0 for ; !r.CheckBreak(); yyj4697++ { if yyj4697 >= len(yyv4697) { yyv4697 = append(yyv4697, ServicePort{}) // var yyz4697 ServicePort yyc4697 = true } yyh4697.ElemContainerState(yyj4697) if yyj4697 < len(yyv4697) { if r.TryDecodeAsNil() { yyv4697[yyj4697] = ServicePort{} } else { yyv4700 := &yyv4697[yyj4697] yyv4700.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4697 < len(yyv4697) { yyv4697 = yyv4697[:yyj4697] yyc4697 = true } else if yyj4697 == 0 && yyv4697 == nil { yyv4697 = []ServicePort{} yyc4697 = true } } yyh4697.End() if yyc4697 { *v = yyv4697 } } 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 _, yyv4701 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4702 := &yyv4701 yy4702.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 yyv4703 := *v yyh4703, yyl4703 := z.DecSliceHelperStart() var yyc4703 bool if yyl4703 == 0 { if yyv4703 == nil { yyv4703 = []ObjectReference{} yyc4703 = true } else if len(yyv4703) != 0 { yyv4703 = yyv4703[:0] yyc4703 = true } } else if yyl4703 > 0 { var yyrr4703, yyrl4703 int var yyrt4703 bool if yyl4703 > cap(yyv4703) { yyrg4703 := len(yyv4703) > 0 yyv24703 := yyv4703 yyrl4703, yyrt4703 = z.DecInferLen(yyl4703, z.DecBasicHandle().MaxInitLen, 112) if yyrt4703 { if yyrl4703 <= cap(yyv4703) { yyv4703 = yyv4703[:yyrl4703] } else { yyv4703 = make([]ObjectReference, yyrl4703) } } else { yyv4703 = make([]ObjectReference, yyrl4703) } yyc4703 = true yyrr4703 = len(yyv4703) if yyrg4703 { copy(yyv4703, yyv24703) } } else if yyl4703 != len(yyv4703) { yyv4703 = yyv4703[:yyl4703] yyc4703 = true } yyj4703 := 0 for ; yyj4703 < yyrr4703; yyj4703++ { yyh4703.ElemContainerState(yyj4703) if r.TryDecodeAsNil() { yyv4703[yyj4703] = ObjectReference{} } else { yyv4704 := &yyv4703[yyj4703] yyv4704.CodecDecodeSelf(d) } } if yyrt4703 { for ; yyj4703 < yyl4703; yyj4703++ { yyv4703 = append(yyv4703, ObjectReference{}) yyh4703.ElemContainerState(yyj4703) if r.TryDecodeAsNil() { yyv4703[yyj4703] = ObjectReference{} } else { yyv4705 := &yyv4703[yyj4703] yyv4705.CodecDecodeSelf(d) } } } } else { yyj4703 := 0 for ; !r.CheckBreak(); yyj4703++ { if yyj4703 >= len(yyv4703) { yyv4703 = append(yyv4703, ObjectReference{}) // var yyz4703 ObjectReference yyc4703 = true } yyh4703.ElemContainerState(yyj4703) if yyj4703 < len(yyv4703) { if r.TryDecodeAsNil() { yyv4703[yyj4703] = ObjectReference{} } else { yyv4706 := &yyv4703[yyj4703] yyv4706.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4703 < len(yyv4703) { yyv4703 = yyv4703[:yyj4703] yyc4703 = true } else if yyj4703 == 0 && yyv4703 == nil { yyv4703 = []ObjectReference{} yyc4703 = true } } yyh4703.End() if yyc4703 { *v = yyv4703 } } 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 _, yyv4707 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4708 := &yyv4707 yy4708.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 yyv4709 := *v yyh4709, yyl4709 := z.DecSliceHelperStart() var yyc4709 bool if yyl4709 == 0 { if yyv4709 == nil { yyv4709 = []ServiceAccount{} yyc4709 = true } else if len(yyv4709) != 0 { yyv4709 = yyv4709[:0] yyc4709 = true } } else if yyl4709 > 0 { var yyrr4709, yyrl4709 int var yyrt4709 bool if yyl4709 > cap(yyv4709) { yyrg4709 := len(yyv4709) > 0 yyv24709 := yyv4709 yyrl4709, yyrt4709 = z.DecInferLen(yyl4709, z.DecBasicHandle().MaxInitLen, 304) if yyrt4709 { if yyrl4709 <= cap(yyv4709) { yyv4709 = yyv4709[:yyrl4709] } else { yyv4709 = make([]ServiceAccount, yyrl4709) } } else { yyv4709 = make([]ServiceAccount, yyrl4709) } yyc4709 = true yyrr4709 = len(yyv4709) if yyrg4709 { copy(yyv4709, yyv24709) } } else if yyl4709 != len(yyv4709) { yyv4709 = yyv4709[:yyl4709] yyc4709 = true } yyj4709 := 0 for ; yyj4709 < yyrr4709; yyj4709++ { yyh4709.ElemContainerState(yyj4709) if r.TryDecodeAsNil() { yyv4709[yyj4709] = ServiceAccount{} } else { yyv4710 := &yyv4709[yyj4709] yyv4710.CodecDecodeSelf(d) } } if yyrt4709 { for ; yyj4709 < yyl4709; yyj4709++ { yyv4709 = append(yyv4709, ServiceAccount{}) yyh4709.ElemContainerState(yyj4709) if r.TryDecodeAsNil() { yyv4709[yyj4709] = ServiceAccount{} } else { yyv4711 := &yyv4709[yyj4709] yyv4711.CodecDecodeSelf(d) } } } } else { yyj4709 := 0 for ; !r.CheckBreak(); yyj4709++ { if yyj4709 >= len(yyv4709) { yyv4709 = append(yyv4709, ServiceAccount{}) // var yyz4709 ServiceAccount yyc4709 = true } yyh4709.ElemContainerState(yyj4709) if yyj4709 < len(yyv4709) { if r.TryDecodeAsNil() { yyv4709[yyj4709] = ServiceAccount{} } else { yyv4712 := &yyv4709[yyj4709] yyv4712.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4709 < len(yyv4709) { yyv4709 = yyv4709[:yyj4709] yyc4709 = true } else if yyj4709 == 0 && yyv4709 == nil { yyv4709 = []ServiceAccount{} yyc4709 = true } } yyh4709.End() if yyc4709 { *v = yyv4709 } } 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 _, yyv4713 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4714 := &yyv4713 yy4714.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 yyv4715 := *v yyh4715, yyl4715 := z.DecSliceHelperStart() var yyc4715 bool if yyl4715 == 0 { if yyv4715 == nil { yyv4715 = []EndpointSubset{} yyc4715 = true } else if len(yyv4715) != 0 { yyv4715 = yyv4715[:0] yyc4715 = true } } else if yyl4715 > 0 { var yyrr4715, yyrl4715 int var yyrt4715 bool if yyl4715 > cap(yyv4715) { yyrg4715 := len(yyv4715) > 0 yyv24715 := yyv4715 yyrl4715, yyrt4715 = z.DecInferLen(yyl4715, z.DecBasicHandle().MaxInitLen, 72) if yyrt4715 { if yyrl4715 <= cap(yyv4715) { yyv4715 = yyv4715[:yyrl4715] } else { yyv4715 = make([]EndpointSubset, yyrl4715) } } else { yyv4715 = make([]EndpointSubset, yyrl4715) } yyc4715 = true yyrr4715 = len(yyv4715) if yyrg4715 { copy(yyv4715, yyv24715) } } else if yyl4715 != len(yyv4715) { yyv4715 = yyv4715[:yyl4715] yyc4715 = true } yyj4715 := 0 for ; yyj4715 < yyrr4715; yyj4715++ { yyh4715.ElemContainerState(yyj4715) if r.TryDecodeAsNil() { yyv4715[yyj4715] = EndpointSubset{} } else { yyv4716 := &yyv4715[yyj4715] yyv4716.CodecDecodeSelf(d) } } if yyrt4715 { for ; yyj4715 < yyl4715; yyj4715++ { yyv4715 = append(yyv4715, EndpointSubset{}) yyh4715.ElemContainerState(yyj4715) if r.TryDecodeAsNil() { yyv4715[yyj4715] = EndpointSubset{} } else { yyv4717 := &yyv4715[yyj4715] yyv4717.CodecDecodeSelf(d) } } } } else { yyj4715 := 0 for ; !r.CheckBreak(); yyj4715++ { if yyj4715 >= len(yyv4715) { yyv4715 = append(yyv4715, EndpointSubset{}) // var yyz4715 EndpointSubset yyc4715 = true } yyh4715.ElemContainerState(yyj4715) if yyj4715 < len(yyv4715) { if r.TryDecodeAsNil() { yyv4715[yyj4715] = EndpointSubset{} } else { yyv4718 := &yyv4715[yyj4715] yyv4718.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4715 < len(yyv4715) { yyv4715 = yyv4715[:yyj4715] yyc4715 = true } else if yyj4715 == 0 && yyv4715 == nil { yyv4715 = []EndpointSubset{} yyc4715 = true } } yyh4715.End() if yyc4715 { *v = yyv4715 } } 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 _, yyv4719 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4720 := &yyv4719 yy4720.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 yyv4721 := *v yyh4721, yyl4721 := z.DecSliceHelperStart() var yyc4721 bool if yyl4721 == 0 { if yyv4721 == nil { yyv4721 = []EndpointAddress{} yyc4721 = true } else if len(yyv4721) != 0 { yyv4721 = yyv4721[:0] yyc4721 = true } } else if yyl4721 > 0 { var yyrr4721, yyrl4721 int var yyrt4721 bool if yyl4721 > cap(yyv4721) { yyrg4721 := len(yyv4721) > 0 yyv24721 := yyv4721 yyrl4721, yyrt4721 = z.DecInferLen(yyl4721, z.DecBasicHandle().MaxInitLen, 48) if yyrt4721 { if yyrl4721 <= cap(yyv4721) { yyv4721 = yyv4721[:yyrl4721] } else { yyv4721 = make([]EndpointAddress, yyrl4721) } } else { yyv4721 = make([]EndpointAddress, yyrl4721) } yyc4721 = true yyrr4721 = len(yyv4721) if yyrg4721 { copy(yyv4721, yyv24721) } } else if yyl4721 != len(yyv4721) { yyv4721 = yyv4721[:yyl4721] yyc4721 = true } yyj4721 := 0 for ; yyj4721 < yyrr4721; yyj4721++ { yyh4721.ElemContainerState(yyj4721) if r.TryDecodeAsNil() { yyv4721[yyj4721] = EndpointAddress{} } else { yyv4722 := &yyv4721[yyj4721] yyv4722.CodecDecodeSelf(d) } } if yyrt4721 { for ; yyj4721 < yyl4721; yyj4721++ { yyv4721 = append(yyv4721, EndpointAddress{}) yyh4721.ElemContainerState(yyj4721) if r.TryDecodeAsNil() { yyv4721[yyj4721] = EndpointAddress{} } else { yyv4723 := &yyv4721[yyj4721] yyv4723.CodecDecodeSelf(d) } } } } else { yyj4721 := 0 for ; !r.CheckBreak(); yyj4721++ { if yyj4721 >= len(yyv4721) { yyv4721 = append(yyv4721, EndpointAddress{}) // var yyz4721 EndpointAddress yyc4721 = true } yyh4721.ElemContainerState(yyj4721) if yyj4721 < len(yyv4721) { if r.TryDecodeAsNil() { yyv4721[yyj4721] = EndpointAddress{} } else { yyv4724 := &yyv4721[yyj4721] yyv4724.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4721 < len(yyv4721) { yyv4721 = yyv4721[:yyj4721] yyc4721 = true } else if yyj4721 == 0 && yyv4721 == nil { yyv4721 = []EndpointAddress{} yyc4721 = true } } yyh4721.End() if yyc4721 { *v = yyv4721 } } 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 _, yyv4725 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4726 := &yyv4725 yy4726.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 yyv4727 := *v yyh4727, yyl4727 := z.DecSliceHelperStart() var yyc4727 bool if yyl4727 == 0 { if yyv4727 == nil { yyv4727 = []EndpointPort{} yyc4727 = true } else if len(yyv4727) != 0 { yyv4727 = yyv4727[:0] yyc4727 = true } } else if yyl4727 > 0 { var yyrr4727, yyrl4727 int var yyrt4727 bool if yyl4727 > cap(yyv4727) { yyrg4727 := len(yyv4727) > 0 yyv24727 := yyv4727 yyrl4727, yyrt4727 = z.DecInferLen(yyl4727, z.DecBasicHandle().MaxInitLen, 40) if yyrt4727 { if yyrl4727 <= cap(yyv4727) { yyv4727 = yyv4727[:yyrl4727] } else { yyv4727 = make([]EndpointPort, yyrl4727) } } else { yyv4727 = make([]EndpointPort, yyrl4727) } yyc4727 = true yyrr4727 = len(yyv4727) if yyrg4727 { copy(yyv4727, yyv24727) } } else if yyl4727 != len(yyv4727) { yyv4727 = yyv4727[:yyl4727] yyc4727 = true } yyj4727 := 0 for ; yyj4727 < yyrr4727; yyj4727++ { yyh4727.ElemContainerState(yyj4727) if r.TryDecodeAsNil() { yyv4727[yyj4727] = EndpointPort{} } else { yyv4728 := &yyv4727[yyj4727] yyv4728.CodecDecodeSelf(d) } } if yyrt4727 { for ; yyj4727 < yyl4727; yyj4727++ { yyv4727 = append(yyv4727, EndpointPort{}) yyh4727.ElemContainerState(yyj4727) if r.TryDecodeAsNil() { yyv4727[yyj4727] = EndpointPort{} } else { yyv4729 := &yyv4727[yyj4727] yyv4729.CodecDecodeSelf(d) } } } } else { yyj4727 := 0 for ; !r.CheckBreak(); yyj4727++ { if yyj4727 >= len(yyv4727) { yyv4727 = append(yyv4727, EndpointPort{}) // var yyz4727 EndpointPort yyc4727 = true } yyh4727.ElemContainerState(yyj4727) if yyj4727 < len(yyv4727) { if r.TryDecodeAsNil() { yyv4727[yyj4727] = EndpointPort{} } else { yyv4730 := &yyv4727[yyj4727] yyv4730.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4727 < len(yyv4727) { yyv4727 = yyv4727[:yyj4727] yyc4727 = true } else if yyj4727 == 0 && yyv4727 == nil { yyv4727 = []EndpointPort{} yyc4727 = true } } yyh4727.End() if yyc4727 { *v = yyv4727 } } 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 _, yyv4731 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4732 := &yyv4731 yy4732.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 yyv4733 := *v yyh4733, yyl4733 := z.DecSliceHelperStart() var yyc4733 bool if yyl4733 == 0 { if yyv4733 == nil { yyv4733 = []Endpoints{} yyc4733 = true } else if len(yyv4733) != 0 { yyv4733 = yyv4733[:0] yyc4733 = true } } else if yyl4733 > 0 { var yyrr4733, yyrl4733 int var yyrt4733 bool if yyl4733 > cap(yyv4733) { yyrg4733 := len(yyv4733) > 0 yyv24733 := yyv4733 yyrl4733, yyrt4733 = z.DecInferLen(yyl4733, z.DecBasicHandle().MaxInitLen, 280) if yyrt4733 { if yyrl4733 <= cap(yyv4733) { yyv4733 = yyv4733[:yyrl4733] } else { yyv4733 = make([]Endpoints, yyrl4733) } } else { yyv4733 = make([]Endpoints, yyrl4733) } yyc4733 = true yyrr4733 = len(yyv4733) if yyrg4733 { copy(yyv4733, yyv24733) } } else if yyl4733 != len(yyv4733) { yyv4733 = yyv4733[:yyl4733] yyc4733 = true } yyj4733 := 0 for ; yyj4733 < yyrr4733; yyj4733++ { yyh4733.ElemContainerState(yyj4733) if r.TryDecodeAsNil() { yyv4733[yyj4733] = Endpoints{} } else { yyv4734 := &yyv4733[yyj4733] yyv4734.CodecDecodeSelf(d) } } if yyrt4733 { for ; yyj4733 < yyl4733; yyj4733++ { yyv4733 = append(yyv4733, Endpoints{}) yyh4733.ElemContainerState(yyj4733) if r.TryDecodeAsNil() { yyv4733[yyj4733] = Endpoints{} } else { yyv4735 := &yyv4733[yyj4733] yyv4735.CodecDecodeSelf(d) } } } } else { yyj4733 := 0 for ; !r.CheckBreak(); yyj4733++ { if yyj4733 >= len(yyv4733) { yyv4733 = append(yyv4733, Endpoints{}) // var yyz4733 Endpoints yyc4733 = true } yyh4733.ElemContainerState(yyj4733) if yyj4733 < len(yyv4733) { if r.TryDecodeAsNil() { yyv4733[yyj4733] = Endpoints{} } else { yyv4736 := &yyv4733[yyj4733] yyv4736.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4733 < len(yyv4733) { yyv4733 = yyv4733[:yyj4733] yyc4733 = true } else if yyj4733 == 0 && yyv4733 == nil { yyv4733 = []Endpoints{} yyc4733 = true } } yyh4733.End() if yyc4733 { *v = yyv4733 } } 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 _, yyv4737 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4738 := &yyv4737 yy4738.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 yyv4739 := *v yyh4739, yyl4739 := z.DecSliceHelperStart() var yyc4739 bool if yyl4739 == 0 { if yyv4739 == nil { yyv4739 = []NodeCondition{} yyc4739 = true } else if len(yyv4739) != 0 { yyv4739 = yyv4739[:0] yyc4739 = true } } else if yyl4739 > 0 { var yyrr4739, yyrl4739 int var yyrt4739 bool if yyl4739 > cap(yyv4739) { yyrg4739 := len(yyv4739) > 0 yyv24739 := yyv4739 yyrl4739, yyrt4739 = z.DecInferLen(yyl4739, z.DecBasicHandle().MaxInitLen, 112) if yyrt4739 { if yyrl4739 <= cap(yyv4739) { yyv4739 = yyv4739[:yyrl4739] } else { yyv4739 = make([]NodeCondition, yyrl4739) } } else { yyv4739 = make([]NodeCondition, yyrl4739) } yyc4739 = true yyrr4739 = len(yyv4739) if yyrg4739 { copy(yyv4739, yyv24739) } } else if yyl4739 != len(yyv4739) { yyv4739 = yyv4739[:yyl4739] yyc4739 = true } yyj4739 := 0 for ; yyj4739 < yyrr4739; yyj4739++ { yyh4739.ElemContainerState(yyj4739) if r.TryDecodeAsNil() { yyv4739[yyj4739] = NodeCondition{} } else { yyv4740 := &yyv4739[yyj4739] yyv4740.CodecDecodeSelf(d) } } if yyrt4739 { for ; yyj4739 < yyl4739; yyj4739++ { yyv4739 = append(yyv4739, NodeCondition{}) yyh4739.ElemContainerState(yyj4739) if r.TryDecodeAsNil() { yyv4739[yyj4739] = NodeCondition{} } else { yyv4741 := &yyv4739[yyj4739] yyv4741.CodecDecodeSelf(d) } } } } else { yyj4739 := 0 for ; !r.CheckBreak(); yyj4739++ { if yyj4739 >= len(yyv4739) { yyv4739 = append(yyv4739, NodeCondition{}) // var yyz4739 NodeCondition yyc4739 = true } yyh4739.ElemContainerState(yyj4739) if yyj4739 < len(yyv4739) { if r.TryDecodeAsNil() { yyv4739[yyj4739] = NodeCondition{} } else { yyv4742 := &yyv4739[yyj4739] yyv4742.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4739 < len(yyv4739) { yyv4739 = yyv4739[:yyj4739] yyc4739 = true } else if yyj4739 == 0 && yyv4739 == nil { yyv4739 = []NodeCondition{} yyc4739 = true } } yyh4739.End() if yyc4739 { *v = yyv4739 } } 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 _, yyv4743 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4744 := &yyv4743 yy4744.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 yyv4745 := *v yyh4745, yyl4745 := z.DecSliceHelperStart() var yyc4745 bool if yyl4745 == 0 { if yyv4745 == nil { yyv4745 = []NodeAddress{} yyc4745 = true } else if len(yyv4745) != 0 { yyv4745 = yyv4745[:0] yyc4745 = true } } else if yyl4745 > 0 { var yyrr4745, yyrl4745 int var yyrt4745 bool if yyl4745 > cap(yyv4745) { yyrg4745 := len(yyv4745) > 0 yyv24745 := yyv4745 yyrl4745, yyrt4745 = z.DecInferLen(yyl4745, z.DecBasicHandle().MaxInitLen, 32) if yyrt4745 { if yyrl4745 <= cap(yyv4745) { yyv4745 = yyv4745[:yyrl4745] } else { yyv4745 = make([]NodeAddress, yyrl4745) } } else { yyv4745 = make([]NodeAddress, yyrl4745) } yyc4745 = true yyrr4745 = len(yyv4745) if yyrg4745 { copy(yyv4745, yyv24745) } } else if yyl4745 != len(yyv4745) { yyv4745 = yyv4745[:yyl4745] yyc4745 = true } yyj4745 := 0 for ; yyj4745 < yyrr4745; yyj4745++ { yyh4745.ElemContainerState(yyj4745) if r.TryDecodeAsNil() { yyv4745[yyj4745] = NodeAddress{} } else { yyv4746 := &yyv4745[yyj4745] yyv4746.CodecDecodeSelf(d) } } if yyrt4745 { for ; yyj4745 < yyl4745; yyj4745++ { yyv4745 = append(yyv4745, NodeAddress{}) yyh4745.ElemContainerState(yyj4745) if r.TryDecodeAsNil() { yyv4745[yyj4745] = NodeAddress{} } else { yyv4747 := &yyv4745[yyj4745] yyv4747.CodecDecodeSelf(d) } } } } else { yyj4745 := 0 for ; !r.CheckBreak(); yyj4745++ { if yyj4745 >= len(yyv4745) { yyv4745 = append(yyv4745, NodeAddress{}) // var yyz4745 NodeAddress yyc4745 = true } yyh4745.ElemContainerState(yyj4745) if yyj4745 < len(yyv4745) { if r.TryDecodeAsNil() { yyv4745[yyj4745] = NodeAddress{} } else { yyv4748 := &yyv4745[yyj4745] yyv4748.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4745 < len(yyv4745) { yyv4745 = yyv4745[:yyj4745] yyc4745 = true } else if yyj4745 == 0 && yyv4745 == nil { yyv4745 = []NodeAddress{} yyc4745 = true } } yyh4745.End() if yyc4745 { *v = yyv4745 } } func (x codecSelfer1234) encSliceContainerImage(v []ContainerImage, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4749 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4750 := &yyv4749 yy4750.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceContainerImage(v *[]ContainerImage, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4751 := *v yyh4751, yyl4751 := z.DecSliceHelperStart() var yyc4751 bool if yyl4751 == 0 { if yyv4751 == nil { yyv4751 = []ContainerImage{} yyc4751 = true } else if len(yyv4751) != 0 { yyv4751 = yyv4751[:0] yyc4751 = true } } else if yyl4751 > 0 { var yyrr4751, yyrl4751 int var yyrt4751 bool if yyl4751 > cap(yyv4751) { yyrg4751 := len(yyv4751) > 0 yyv24751 := yyv4751 yyrl4751, yyrt4751 = z.DecInferLen(yyl4751, z.DecBasicHandle().MaxInitLen, 32) if yyrt4751 { if yyrl4751 <= cap(yyv4751) { yyv4751 = yyv4751[:yyrl4751] } else { yyv4751 = make([]ContainerImage, yyrl4751) } } else { yyv4751 = make([]ContainerImage, yyrl4751) } yyc4751 = true yyrr4751 = len(yyv4751) if yyrg4751 { copy(yyv4751, yyv24751) } } else if yyl4751 != len(yyv4751) { yyv4751 = yyv4751[:yyl4751] yyc4751 = true } yyj4751 := 0 for ; yyj4751 < yyrr4751; yyj4751++ { yyh4751.ElemContainerState(yyj4751) if r.TryDecodeAsNil() { yyv4751[yyj4751] = ContainerImage{} } else { yyv4752 := &yyv4751[yyj4751] yyv4752.CodecDecodeSelf(d) } } if yyrt4751 { for ; yyj4751 < yyl4751; yyj4751++ { yyv4751 = append(yyv4751, ContainerImage{}) yyh4751.ElemContainerState(yyj4751) if r.TryDecodeAsNil() { yyv4751[yyj4751] = ContainerImage{} } else { yyv4753 := &yyv4751[yyj4751] yyv4753.CodecDecodeSelf(d) } } } } else { yyj4751 := 0 for ; !r.CheckBreak(); yyj4751++ { if yyj4751 >= len(yyv4751) { yyv4751 = append(yyv4751, ContainerImage{}) // var yyz4751 ContainerImage yyc4751 = true } yyh4751.ElemContainerState(yyj4751) if yyj4751 < len(yyv4751) { if r.TryDecodeAsNil() { yyv4751[yyj4751] = ContainerImage{} } else { yyv4754 := &yyv4751[yyj4751] yyv4754.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4751 < len(yyv4751) { yyv4751 = yyv4751[:yyj4751] yyc4751 = true } else if yyj4751 == 0 && yyv4751 == nil { yyv4751 = []ContainerImage{} yyc4751 = true } } yyh4751.End() if yyc4751 { *v = yyv4751 } } func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4755 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4755.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4756 := *v yyh4756, yyl4756 := z.DecSliceHelperStart() var yyc4756 bool if yyl4756 == 0 { if yyv4756 == nil { yyv4756 = []UniqueVolumeName{} yyc4756 = true } else if len(yyv4756) != 0 { yyv4756 = yyv4756[:0] yyc4756 = true } } else if yyl4756 > 0 { var yyrr4756, yyrl4756 int var yyrt4756 bool if yyl4756 > cap(yyv4756) { yyrl4756, yyrt4756 = z.DecInferLen(yyl4756, z.DecBasicHandle().MaxInitLen, 16) if yyrt4756 { if yyrl4756 <= cap(yyv4756) { yyv4756 = yyv4756[:yyrl4756] } else { yyv4756 = make([]UniqueVolumeName, yyrl4756) } } else { yyv4756 = make([]UniqueVolumeName, yyrl4756) } yyc4756 = true yyrr4756 = len(yyv4756) } else if yyl4756 != len(yyv4756) { yyv4756 = yyv4756[:yyl4756] yyc4756 = true } yyj4756 := 0 for ; yyj4756 < yyrr4756; yyj4756++ { yyh4756.ElemContainerState(yyj4756) if r.TryDecodeAsNil() { yyv4756[yyj4756] = "" } else { yyv4756[yyj4756] = UniqueVolumeName(r.DecodeString()) } } if yyrt4756 { for ; yyj4756 < yyl4756; yyj4756++ { yyv4756 = append(yyv4756, "") yyh4756.ElemContainerState(yyj4756) if r.TryDecodeAsNil() { yyv4756[yyj4756] = "" } else { yyv4756[yyj4756] = UniqueVolumeName(r.DecodeString()) } } } } else { yyj4756 := 0 for ; !r.CheckBreak(); yyj4756++ { if yyj4756 >= len(yyv4756) { yyv4756 = append(yyv4756, "") // var yyz4756 UniqueVolumeName yyc4756 = true } yyh4756.ElemContainerState(yyj4756) if yyj4756 < len(yyv4756) { if r.TryDecodeAsNil() { yyv4756[yyj4756] = "" } else { yyv4756[yyj4756] = UniqueVolumeName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4756 < len(yyv4756) { yyv4756 = yyv4756[:yyj4756] yyc4756 = true } else if yyj4756 == 0 && yyv4756 == nil { yyv4756 = []UniqueVolumeName{} yyc4756 = true } } yyh4756.End() if yyc4756 { *v = yyv4756 } } func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4760 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4761 := &yyv4760 yy4761.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4762 := *v yyh4762, yyl4762 := z.DecSliceHelperStart() var yyc4762 bool if yyl4762 == 0 { if yyv4762 == nil { yyv4762 = []AttachedVolume{} yyc4762 = true } else if len(yyv4762) != 0 { yyv4762 = yyv4762[:0] yyc4762 = true } } else if yyl4762 > 0 { var yyrr4762, yyrl4762 int var yyrt4762 bool if yyl4762 > cap(yyv4762) { yyrg4762 := len(yyv4762) > 0 yyv24762 := yyv4762 yyrl4762, yyrt4762 = z.DecInferLen(yyl4762, z.DecBasicHandle().MaxInitLen, 32) if yyrt4762 { if yyrl4762 <= cap(yyv4762) { yyv4762 = yyv4762[:yyrl4762] } else { yyv4762 = make([]AttachedVolume, yyrl4762) } } else { yyv4762 = make([]AttachedVolume, yyrl4762) } yyc4762 = true yyrr4762 = len(yyv4762) if yyrg4762 { copy(yyv4762, yyv24762) } } else if yyl4762 != len(yyv4762) { yyv4762 = yyv4762[:yyl4762] yyc4762 = true } yyj4762 := 0 for ; yyj4762 < yyrr4762; yyj4762++ { yyh4762.ElemContainerState(yyj4762) if r.TryDecodeAsNil() { yyv4762[yyj4762] = AttachedVolume{} } else { yyv4763 := &yyv4762[yyj4762] yyv4763.CodecDecodeSelf(d) } } if yyrt4762 { for ; yyj4762 < yyl4762; yyj4762++ { yyv4762 = append(yyv4762, AttachedVolume{}) yyh4762.ElemContainerState(yyj4762) if r.TryDecodeAsNil() { yyv4762[yyj4762] = AttachedVolume{} } else { yyv4764 := &yyv4762[yyj4762] yyv4764.CodecDecodeSelf(d) } } } } else { yyj4762 := 0 for ; !r.CheckBreak(); yyj4762++ { if yyj4762 >= len(yyv4762) { yyv4762 = append(yyv4762, AttachedVolume{}) // var yyz4762 AttachedVolume yyc4762 = true } yyh4762.ElemContainerState(yyj4762) if yyj4762 < len(yyv4762) { if r.TryDecodeAsNil() { yyv4762[yyj4762] = AttachedVolume{} } else { yyv4765 := &yyv4762[yyj4762] yyv4765.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4762 < len(yyv4762) { yyv4762 = yyv4762[:yyj4762] yyc4762 = true } else if yyj4762 == 0 && yyv4762 == nil { yyv4762 = []AttachedVolume{} yyc4762 = true } } yyh4762.End() if yyc4762 { *v = yyv4762 } } func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4766 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4767 := &yyv4766 yy4767.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4768 := *v yyh4768, yyl4768 := z.DecSliceHelperStart() var yyc4768 bool if yyl4768 == 0 { if yyv4768 == nil { yyv4768 = []PreferAvoidPodsEntry{} yyc4768 = true } else if len(yyv4768) != 0 { yyv4768 = yyv4768[:0] yyc4768 = true } } else if yyl4768 > 0 { var yyrr4768, yyrl4768 int var yyrt4768 bool if yyl4768 > cap(yyv4768) { yyrg4768 := len(yyv4768) > 0 yyv24768 := yyv4768 yyrl4768, yyrt4768 = z.DecInferLen(yyl4768, z.DecBasicHandle().MaxInitLen, 64) if yyrt4768 { if yyrl4768 <= cap(yyv4768) { yyv4768 = yyv4768[:yyrl4768] } else { yyv4768 = make([]PreferAvoidPodsEntry, yyrl4768) } } else { yyv4768 = make([]PreferAvoidPodsEntry, yyrl4768) } yyc4768 = true yyrr4768 = len(yyv4768) if yyrg4768 { copy(yyv4768, yyv24768) } } else if yyl4768 != len(yyv4768) { yyv4768 = yyv4768[:yyl4768] yyc4768 = true } yyj4768 := 0 for ; yyj4768 < yyrr4768; yyj4768++ { yyh4768.ElemContainerState(yyj4768) if r.TryDecodeAsNil() { yyv4768[yyj4768] = PreferAvoidPodsEntry{} } else { yyv4769 := &yyv4768[yyj4768] yyv4769.CodecDecodeSelf(d) } } if yyrt4768 { for ; yyj4768 < yyl4768; yyj4768++ { yyv4768 = append(yyv4768, PreferAvoidPodsEntry{}) yyh4768.ElemContainerState(yyj4768) if r.TryDecodeAsNil() { yyv4768[yyj4768] = PreferAvoidPodsEntry{} } else { yyv4770 := &yyv4768[yyj4768] yyv4770.CodecDecodeSelf(d) } } } } else { yyj4768 := 0 for ; !r.CheckBreak(); yyj4768++ { if yyj4768 >= len(yyv4768) { yyv4768 = append(yyv4768, PreferAvoidPodsEntry{}) // var yyz4768 PreferAvoidPodsEntry yyc4768 = true } yyh4768.ElemContainerState(yyj4768) if yyj4768 < len(yyv4768) { if r.TryDecodeAsNil() { yyv4768[yyj4768] = PreferAvoidPodsEntry{} } else { yyv4771 := &yyv4768[yyj4768] yyv4771.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4768 < len(yyv4768) { yyv4768 = yyv4768[:yyj4768] yyc4768 = true } else if yyj4768 == 0 && yyv4768 == nil { yyv4768 = []PreferAvoidPodsEntry{} yyc4768 = true } } yyh4768.End() if yyc4768 { *v = yyv4768 } } 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 yyk4772, yyv4772 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yyk4772.CodecEncodeSelf(e) z.EncSendContainerState(codecSelfer_containerMapValue1234) yy4773 := &yyv4772 yym4774 := z.EncBinary() _ = yym4774 if false { } else if z.HasExtensions() && z.EncExt(yy4773) { } else if !yym4774 && z.IsJSONHandle() { z.EncJSONMarshal(yy4773) } else { z.EncFallback(yy4773) } } z.EncSendContainerState(codecSelfer_containerMapEnd1234) } func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4775 := *v yyl4775 := r.ReadMapStart() yybh4775 := z.DecBasicHandle() if yyv4775 == nil { yyrl4775, _ := z.DecInferLen(yyl4775, yybh4775.MaxInitLen, 72) yyv4775 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4775) *v = yyv4775 } var yymk4775 ResourceName var yymv4775 pkg3_resource.Quantity var yymg4775 bool if yybh4775.MapValueReset { yymg4775 = true } if yyl4775 > 0 { for yyj4775 := 0; yyj4775 < yyl4775; yyj4775++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4775 = "" } else { yymk4775 = ResourceName(r.DecodeString()) } if yymg4775 { yymv4775 = yyv4775[yymk4775] } else { yymv4775 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4775 = pkg3_resource.Quantity{} } else { yyv4777 := &yymv4775 yym4778 := z.DecBinary() _ = yym4778 if false { } else if z.HasExtensions() && z.DecExt(yyv4777) { } else if !yym4778 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4777) } else { z.DecFallback(yyv4777, false) } } if yyv4775 != nil { yyv4775[yymk4775] = yymv4775 } } } else if yyl4775 < 0 { for yyj4775 := 0; !r.CheckBreak(); yyj4775++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4775 = "" } else { yymk4775 = ResourceName(r.DecodeString()) } if yymg4775 { yymv4775 = yyv4775[yymk4775] } else { yymv4775 = pkg3_resource.Quantity{} } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4775 = pkg3_resource.Quantity{} } else { yyv4780 := &yymv4775 yym4781 := z.DecBinary() _ = yym4781 if false { } else if z.HasExtensions() && z.DecExt(yyv4780) { } else if !yym4781 && z.IsJSONHandle() { z.DecJSONUnmarshal(yyv4780) } else { z.DecFallback(yyv4780, false) } } if yyv4775 != nil { yyv4775[yymk4775] = yymv4775 } } } // 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 _, yyv4782 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4783 := &yyv4782 yy4783.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 yyv4784 := *v yyh4784, yyl4784 := z.DecSliceHelperStart() var yyc4784 bool if yyl4784 == 0 { if yyv4784 == nil { yyv4784 = []Node{} yyc4784 = true } else if len(yyv4784) != 0 { yyv4784 = yyv4784[:0] yyc4784 = true } } else if yyl4784 > 0 { var yyrr4784, yyrl4784 int var yyrt4784 bool if yyl4784 > cap(yyv4784) { yyrg4784 := len(yyv4784) > 0 yyv24784 := yyv4784 yyrl4784, yyrt4784 = z.DecInferLen(yyl4784, z.DecBasicHandle().MaxInitLen, 632) if yyrt4784 { if yyrl4784 <= cap(yyv4784) { yyv4784 = yyv4784[:yyrl4784] } else { yyv4784 = make([]Node, yyrl4784) } } else { yyv4784 = make([]Node, yyrl4784) } yyc4784 = true yyrr4784 = len(yyv4784) if yyrg4784 { copy(yyv4784, yyv24784) } } else if yyl4784 != len(yyv4784) { yyv4784 = yyv4784[:yyl4784] yyc4784 = true } yyj4784 := 0 for ; yyj4784 < yyrr4784; yyj4784++ { yyh4784.ElemContainerState(yyj4784) if r.TryDecodeAsNil() { yyv4784[yyj4784] = Node{} } else { yyv4785 := &yyv4784[yyj4784] yyv4785.CodecDecodeSelf(d) } } if yyrt4784 { for ; yyj4784 < yyl4784; yyj4784++ { yyv4784 = append(yyv4784, Node{}) yyh4784.ElemContainerState(yyj4784) if r.TryDecodeAsNil() { yyv4784[yyj4784] = Node{} } else { yyv4786 := &yyv4784[yyj4784] yyv4786.CodecDecodeSelf(d) } } } } else { yyj4784 := 0 for ; !r.CheckBreak(); yyj4784++ { if yyj4784 >= len(yyv4784) { yyv4784 = append(yyv4784, Node{}) // var yyz4784 Node yyc4784 = true } yyh4784.ElemContainerState(yyj4784) if yyj4784 < len(yyv4784) { if r.TryDecodeAsNil() { yyv4784[yyj4784] = Node{} } else { yyv4787 := &yyv4784[yyj4784] yyv4787.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4784 < len(yyv4784) { yyv4784 = yyv4784[:yyj4784] yyc4784 = true } else if yyj4784 == 0 && yyv4784 == nil { yyv4784 = []Node{} yyc4784 = true } } yyh4784.End() if yyc4784 { *v = yyv4784 } } 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 _, yyv4788 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4788.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 yyv4789 := *v yyh4789, yyl4789 := z.DecSliceHelperStart() var yyc4789 bool if yyl4789 == 0 { if yyv4789 == nil { yyv4789 = []FinalizerName{} yyc4789 = true } else if len(yyv4789) != 0 { yyv4789 = yyv4789[:0] yyc4789 = true } } else if yyl4789 > 0 { var yyrr4789, yyrl4789 int var yyrt4789 bool if yyl4789 > cap(yyv4789) { yyrl4789, yyrt4789 = z.DecInferLen(yyl4789, z.DecBasicHandle().MaxInitLen, 16) if yyrt4789 { if yyrl4789 <= cap(yyv4789) { yyv4789 = yyv4789[:yyrl4789] } else { yyv4789 = make([]FinalizerName, yyrl4789) } } else { yyv4789 = make([]FinalizerName, yyrl4789) } yyc4789 = true yyrr4789 = len(yyv4789) } else if yyl4789 != len(yyv4789) { yyv4789 = yyv4789[:yyl4789] yyc4789 = true } yyj4789 := 0 for ; yyj4789 < yyrr4789; yyj4789++ { yyh4789.ElemContainerState(yyj4789) if r.TryDecodeAsNil() { yyv4789[yyj4789] = "" } else { yyv4789[yyj4789] = FinalizerName(r.DecodeString()) } } if yyrt4789 { for ; yyj4789 < yyl4789; yyj4789++ { yyv4789 = append(yyv4789, "") yyh4789.ElemContainerState(yyj4789) if r.TryDecodeAsNil() { yyv4789[yyj4789] = "" } else { yyv4789[yyj4789] = FinalizerName(r.DecodeString()) } } } } else { yyj4789 := 0 for ; !r.CheckBreak(); yyj4789++ { if yyj4789 >= len(yyv4789) { yyv4789 = append(yyv4789, "") // var yyz4789 FinalizerName yyc4789 = true } yyh4789.ElemContainerState(yyj4789) if yyj4789 < len(yyv4789) { if r.TryDecodeAsNil() { yyv4789[yyj4789] = "" } else { yyv4789[yyj4789] = FinalizerName(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4789 < len(yyv4789) { yyv4789 = yyv4789[:yyj4789] yyc4789 = true } else if yyj4789 == 0 && yyv4789 == nil { yyv4789 = []FinalizerName{} yyc4789 = true } } yyh4789.End() if yyc4789 { *v = yyv4789 } } 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 _, yyv4793 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4794 := &yyv4793 yy4794.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 yyv4795 := *v yyh4795, yyl4795 := z.DecSliceHelperStart() var yyc4795 bool if yyl4795 == 0 { if yyv4795 == nil { yyv4795 = []Namespace{} yyc4795 = true } else if len(yyv4795) != 0 { yyv4795 = yyv4795[:0] yyc4795 = true } } else if yyl4795 > 0 { var yyrr4795, yyrl4795 int var yyrt4795 bool if yyl4795 > cap(yyv4795) { yyrg4795 := len(yyv4795) > 0 yyv24795 := yyv4795 yyrl4795, yyrt4795 = z.DecInferLen(yyl4795, z.DecBasicHandle().MaxInitLen, 296) if yyrt4795 { if yyrl4795 <= cap(yyv4795) { yyv4795 = yyv4795[:yyrl4795] } else { yyv4795 = make([]Namespace, yyrl4795) } } else { yyv4795 = make([]Namespace, yyrl4795) } yyc4795 = true yyrr4795 = len(yyv4795) if yyrg4795 { copy(yyv4795, yyv24795) } } else if yyl4795 != len(yyv4795) { yyv4795 = yyv4795[:yyl4795] yyc4795 = true } yyj4795 := 0 for ; yyj4795 < yyrr4795; yyj4795++ { yyh4795.ElemContainerState(yyj4795) if r.TryDecodeAsNil() { yyv4795[yyj4795] = Namespace{} } else { yyv4796 := &yyv4795[yyj4795] yyv4796.CodecDecodeSelf(d) } } if yyrt4795 { for ; yyj4795 < yyl4795; yyj4795++ { yyv4795 = append(yyv4795, Namespace{}) yyh4795.ElemContainerState(yyj4795) if r.TryDecodeAsNil() { yyv4795[yyj4795] = Namespace{} } else { yyv4797 := &yyv4795[yyj4795] yyv4797.CodecDecodeSelf(d) } } } } else { yyj4795 := 0 for ; !r.CheckBreak(); yyj4795++ { if yyj4795 >= len(yyv4795) { yyv4795 = append(yyv4795, Namespace{}) // var yyz4795 Namespace yyc4795 = true } yyh4795.ElemContainerState(yyj4795) if yyj4795 < len(yyv4795) { if r.TryDecodeAsNil() { yyv4795[yyj4795] = Namespace{} } else { yyv4798 := &yyv4795[yyj4795] yyv4798.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4795 < len(yyv4795) { yyv4795 = yyv4795[:yyj4795] yyc4795 = true } else if yyj4795 == 0 && yyv4795 == nil { yyv4795 = []Namespace{} yyc4795 = true } } yyh4795.End() if yyc4795 { *v = yyv4795 } } 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 _, yyv4799 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4800 := &yyv4799 yy4800.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 yyv4801 := *v yyh4801, yyl4801 := z.DecSliceHelperStart() var yyc4801 bool if yyl4801 == 0 { if yyv4801 == nil { yyv4801 = []Event{} yyc4801 = true } else if len(yyv4801) != 0 { yyv4801 = yyv4801[:0] yyc4801 = true } } else if yyl4801 > 0 { var yyrr4801, yyrl4801 int var yyrt4801 bool if yyl4801 > cap(yyv4801) { yyrg4801 := len(yyv4801) > 0 yyv24801 := yyv4801 yyrl4801, yyrt4801 = z.DecInferLen(yyl4801, z.DecBasicHandle().MaxInitLen, 504) if yyrt4801 { if yyrl4801 <= cap(yyv4801) { yyv4801 = yyv4801[:yyrl4801] } else { yyv4801 = make([]Event, yyrl4801) } } else { yyv4801 = make([]Event, yyrl4801) } yyc4801 = true yyrr4801 = len(yyv4801) if yyrg4801 { copy(yyv4801, yyv24801) } } else if yyl4801 != len(yyv4801) { yyv4801 = yyv4801[:yyl4801] yyc4801 = true } yyj4801 := 0 for ; yyj4801 < yyrr4801; yyj4801++ { yyh4801.ElemContainerState(yyj4801) if r.TryDecodeAsNil() { yyv4801[yyj4801] = Event{} } else { yyv4802 := &yyv4801[yyj4801] yyv4802.CodecDecodeSelf(d) } } if yyrt4801 { for ; yyj4801 < yyl4801; yyj4801++ { yyv4801 = append(yyv4801, Event{}) yyh4801.ElemContainerState(yyj4801) if r.TryDecodeAsNil() { yyv4801[yyj4801] = Event{} } else { yyv4803 := &yyv4801[yyj4801] yyv4803.CodecDecodeSelf(d) } } } } else { yyj4801 := 0 for ; !r.CheckBreak(); yyj4801++ { if yyj4801 >= len(yyv4801) { yyv4801 = append(yyv4801, Event{}) // var yyz4801 Event yyc4801 = true } yyh4801.ElemContainerState(yyj4801) if yyj4801 < len(yyv4801) { if r.TryDecodeAsNil() { yyv4801[yyj4801] = Event{} } else { yyv4804 := &yyv4801[yyj4801] yyv4804.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4801 < len(yyv4801) { yyv4801 = yyv4801[:yyj4801] yyc4801 = true } else if yyj4801 == 0 && yyv4801 == nil { yyv4801 = []Event{} yyc4801 = true } } yyh4801.End() if yyc4801 { *v = yyv4801 } } func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4805 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) if yyv4805 == nil { r.EncodeNil() } else { yym4806 := z.EncBinary() _ = yym4806 if false { } else if z.HasExtensions() && z.EncExt(yyv4805) { } else { z.EncFallback(yyv4805) } } } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4807 := *v yyh4807, yyl4807 := z.DecSliceHelperStart() var yyc4807 bool if yyl4807 == 0 { if yyv4807 == nil { yyv4807 = []pkg7_runtime.Object{} yyc4807 = true } else if len(yyv4807) != 0 { yyv4807 = yyv4807[:0] yyc4807 = true } } else if yyl4807 > 0 { var yyrr4807, yyrl4807 int var yyrt4807 bool if yyl4807 > cap(yyv4807) { yyrg4807 := len(yyv4807) > 0 yyv24807 := yyv4807 yyrl4807, yyrt4807 = z.DecInferLen(yyl4807, z.DecBasicHandle().MaxInitLen, 16) if yyrt4807 { if yyrl4807 <= cap(yyv4807) { yyv4807 = yyv4807[:yyrl4807] } else { yyv4807 = make([]pkg7_runtime.Object, yyrl4807) } } else { yyv4807 = make([]pkg7_runtime.Object, yyrl4807) } yyc4807 = true yyrr4807 = len(yyv4807) if yyrg4807 { copy(yyv4807, yyv24807) } } else if yyl4807 != len(yyv4807) { yyv4807 = yyv4807[:yyl4807] yyc4807 = true } yyj4807 := 0 for ; yyj4807 < yyrr4807; yyj4807++ { yyh4807.ElemContainerState(yyj4807) if r.TryDecodeAsNil() { yyv4807[yyj4807] = nil } else { yyv4808 := &yyv4807[yyj4807] yym4809 := z.DecBinary() _ = yym4809 if false { } else if z.HasExtensions() && z.DecExt(yyv4808) { } else { z.DecFallback(yyv4808, true) } } } if yyrt4807 { for ; yyj4807 < yyl4807; yyj4807++ { yyv4807 = append(yyv4807, nil) yyh4807.ElemContainerState(yyj4807) if r.TryDecodeAsNil() { yyv4807[yyj4807] = nil } else { yyv4810 := &yyv4807[yyj4807] yym4811 := z.DecBinary() _ = yym4811 if false { } else if z.HasExtensions() && z.DecExt(yyv4810) { } else { z.DecFallback(yyv4810, true) } } } } } else { yyj4807 := 0 for ; !r.CheckBreak(); yyj4807++ { if yyj4807 >= len(yyv4807) { yyv4807 = append(yyv4807, nil) // var yyz4807 pkg7_runtime.Object yyc4807 = true } yyh4807.ElemContainerState(yyj4807) if yyj4807 < len(yyv4807) { if r.TryDecodeAsNil() { yyv4807[yyj4807] = nil } else { yyv4812 := &yyv4807[yyj4807] yym4813 := z.DecBinary() _ = yym4813 if false { } else if z.HasExtensions() && z.DecExt(yyv4812) { } else { z.DecFallback(yyv4812, true) } } } else { z.DecSwallow() } } if yyj4807 < len(yyv4807) { yyv4807 = yyv4807[:yyj4807] yyc4807 = true } else if yyj4807 == 0 && yyv4807 == nil { yyv4807 = []pkg7_runtime.Object{} yyc4807 = true } } yyh4807.End() if yyc4807 { *v = yyv4807 } } 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 _, yyv4814 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4815 := &yyv4814 yy4815.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 yyv4816 := *v yyh4816, yyl4816 := z.DecSliceHelperStart() var yyc4816 bool if yyl4816 == 0 { if yyv4816 == nil { yyv4816 = []LimitRangeItem{} yyc4816 = true } else if len(yyv4816) != 0 { yyv4816 = yyv4816[:0] yyc4816 = true } } else if yyl4816 > 0 { var yyrr4816, yyrl4816 int var yyrt4816 bool if yyl4816 > cap(yyv4816) { yyrg4816 := len(yyv4816) > 0 yyv24816 := yyv4816 yyrl4816, yyrt4816 = z.DecInferLen(yyl4816, z.DecBasicHandle().MaxInitLen, 56) if yyrt4816 { if yyrl4816 <= cap(yyv4816) { yyv4816 = yyv4816[:yyrl4816] } else { yyv4816 = make([]LimitRangeItem, yyrl4816) } } else { yyv4816 = make([]LimitRangeItem, yyrl4816) } yyc4816 = true yyrr4816 = len(yyv4816) if yyrg4816 { copy(yyv4816, yyv24816) } } else if yyl4816 != len(yyv4816) { yyv4816 = yyv4816[:yyl4816] yyc4816 = true } yyj4816 := 0 for ; yyj4816 < yyrr4816; yyj4816++ { yyh4816.ElemContainerState(yyj4816) if r.TryDecodeAsNil() { yyv4816[yyj4816] = LimitRangeItem{} } else { yyv4817 := &yyv4816[yyj4816] yyv4817.CodecDecodeSelf(d) } } if yyrt4816 { for ; yyj4816 < yyl4816; yyj4816++ { yyv4816 = append(yyv4816, LimitRangeItem{}) yyh4816.ElemContainerState(yyj4816) if r.TryDecodeAsNil() { yyv4816[yyj4816] = LimitRangeItem{} } else { yyv4818 := &yyv4816[yyj4816] yyv4818.CodecDecodeSelf(d) } } } } else { yyj4816 := 0 for ; !r.CheckBreak(); yyj4816++ { if yyj4816 >= len(yyv4816) { yyv4816 = append(yyv4816, LimitRangeItem{}) // var yyz4816 LimitRangeItem yyc4816 = true } yyh4816.ElemContainerState(yyj4816) if yyj4816 < len(yyv4816) { if r.TryDecodeAsNil() { yyv4816[yyj4816] = LimitRangeItem{} } else { yyv4819 := &yyv4816[yyj4816] yyv4819.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4816 < len(yyv4816) { yyv4816 = yyv4816[:yyj4816] yyc4816 = true } else if yyj4816 == 0 && yyv4816 == nil { yyv4816 = []LimitRangeItem{} yyc4816 = true } } yyh4816.End() if yyc4816 { *v = yyv4816 } } 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 _, yyv4820 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4821 := &yyv4820 yy4821.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 yyv4822 := *v yyh4822, yyl4822 := z.DecSliceHelperStart() var yyc4822 bool if yyl4822 == 0 { if yyv4822 == nil { yyv4822 = []LimitRange{} yyc4822 = true } else if len(yyv4822) != 0 { yyv4822 = yyv4822[:0] yyc4822 = true } } else if yyl4822 > 0 { var yyrr4822, yyrl4822 int var yyrt4822 bool if yyl4822 > cap(yyv4822) { yyrg4822 := len(yyv4822) > 0 yyv24822 := yyv4822 yyrl4822, yyrt4822 = z.DecInferLen(yyl4822, z.DecBasicHandle().MaxInitLen, 280) if yyrt4822 { if yyrl4822 <= cap(yyv4822) { yyv4822 = yyv4822[:yyrl4822] } else { yyv4822 = make([]LimitRange, yyrl4822) } } else { yyv4822 = make([]LimitRange, yyrl4822) } yyc4822 = true yyrr4822 = len(yyv4822) if yyrg4822 { copy(yyv4822, yyv24822) } } else if yyl4822 != len(yyv4822) { yyv4822 = yyv4822[:yyl4822] yyc4822 = true } yyj4822 := 0 for ; yyj4822 < yyrr4822; yyj4822++ { yyh4822.ElemContainerState(yyj4822) if r.TryDecodeAsNil() { yyv4822[yyj4822] = LimitRange{} } else { yyv4823 := &yyv4822[yyj4822] yyv4823.CodecDecodeSelf(d) } } if yyrt4822 { for ; yyj4822 < yyl4822; yyj4822++ { yyv4822 = append(yyv4822, LimitRange{}) yyh4822.ElemContainerState(yyj4822) if r.TryDecodeAsNil() { yyv4822[yyj4822] = LimitRange{} } else { yyv4824 := &yyv4822[yyj4822] yyv4824.CodecDecodeSelf(d) } } } } else { yyj4822 := 0 for ; !r.CheckBreak(); yyj4822++ { if yyj4822 >= len(yyv4822) { yyv4822 = append(yyv4822, LimitRange{}) // var yyz4822 LimitRange yyc4822 = true } yyh4822.ElemContainerState(yyj4822) if yyj4822 < len(yyv4822) { if r.TryDecodeAsNil() { yyv4822[yyj4822] = LimitRange{} } else { yyv4825 := &yyv4822[yyj4822] yyv4825.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4822 < len(yyv4822) { yyv4822 = yyv4822[:yyj4822] yyc4822 = true } else if yyj4822 == 0 && yyv4822 == nil { yyv4822 = []LimitRange{} yyc4822 = true } } yyh4822.End() if yyc4822 { *v = yyv4822 } } func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4826 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yyv4826.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4827 := *v yyh4827, yyl4827 := z.DecSliceHelperStart() var yyc4827 bool if yyl4827 == 0 { if yyv4827 == nil { yyv4827 = []ResourceQuotaScope{} yyc4827 = true } else if len(yyv4827) != 0 { yyv4827 = yyv4827[:0] yyc4827 = true } } else if yyl4827 > 0 { var yyrr4827, yyrl4827 int var yyrt4827 bool if yyl4827 > cap(yyv4827) { yyrl4827, yyrt4827 = z.DecInferLen(yyl4827, z.DecBasicHandle().MaxInitLen, 16) if yyrt4827 { if yyrl4827 <= cap(yyv4827) { yyv4827 = yyv4827[:yyrl4827] } else { yyv4827 = make([]ResourceQuotaScope, yyrl4827) } } else { yyv4827 = make([]ResourceQuotaScope, yyrl4827) } yyc4827 = true yyrr4827 = len(yyv4827) } else if yyl4827 != len(yyv4827) { yyv4827 = yyv4827[:yyl4827] yyc4827 = true } yyj4827 := 0 for ; yyj4827 < yyrr4827; yyj4827++ { yyh4827.ElemContainerState(yyj4827) if r.TryDecodeAsNil() { yyv4827[yyj4827] = "" } else { yyv4827[yyj4827] = ResourceQuotaScope(r.DecodeString()) } } if yyrt4827 { for ; yyj4827 < yyl4827; yyj4827++ { yyv4827 = append(yyv4827, "") yyh4827.ElemContainerState(yyj4827) if r.TryDecodeAsNil() { yyv4827[yyj4827] = "" } else { yyv4827[yyj4827] = ResourceQuotaScope(r.DecodeString()) } } } } else { yyj4827 := 0 for ; !r.CheckBreak(); yyj4827++ { if yyj4827 >= len(yyv4827) { yyv4827 = append(yyv4827, "") // var yyz4827 ResourceQuotaScope yyc4827 = true } yyh4827.ElemContainerState(yyj4827) if yyj4827 < len(yyv4827) { if r.TryDecodeAsNil() { yyv4827[yyj4827] = "" } else { yyv4827[yyj4827] = ResourceQuotaScope(r.DecodeString()) } } else { z.DecSwallow() } } if yyj4827 < len(yyv4827) { yyv4827 = yyv4827[:yyj4827] yyc4827 = true } else if yyj4827 == 0 && yyv4827 == nil { yyv4827 = []ResourceQuotaScope{} yyc4827 = true } } yyh4827.End() if yyc4827 { *v = yyv4827 } } 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 _, yyv4831 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4832 := &yyv4831 yy4832.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 yyv4833 := *v yyh4833, yyl4833 := z.DecSliceHelperStart() var yyc4833 bool if yyl4833 == 0 { if yyv4833 == nil { yyv4833 = []ResourceQuota{} yyc4833 = true } else if len(yyv4833) != 0 { yyv4833 = yyv4833[:0] yyc4833 = true } } else if yyl4833 > 0 { var yyrr4833, yyrl4833 int var yyrt4833 bool if yyl4833 > cap(yyv4833) { yyrg4833 := len(yyv4833) > 0 yyv24833 := yyv4833 yyrl4833, yyrt4833 = z.DecInferLen(yyl4833, z.DecBasicHandle().MaxInitLen, 304) if yyrt4833 { if yyrl4833 <= cap(yyv4833) { yyv4833 = yyv4833[:yyrl4833] } else { yyv4833 = make([]ResourceQuota, yyrl4833) } } else { yyv4833 = make([]ResourceQuota, yyrl4833) } yyc4833 = true yyrr4833 = len(yyv4833) if yyrg4833 { copy(yyv4833, yyv24833) } } else if yyl4833 != len(yyv4833) { yyv4833 = yyv4833[:yyl4833] yyc4833 = true } yyj4833 := 0 for ; yyj4833 < yyrr4833; yyj4833++ { yyh4833.ElemContainerState(yyj4833) if r.TryDecodeAsNil() { yyv4833[yyj4833] = ResourceQuota{} } else { yyv4834 := &yyv4833[yyj4833] yyv4834.CodecDecodeSelf(d) } } if yyrt4833 { for ; yyj4833 < yyl4833; yyj4833++ { yyv4833 = append(yyv4833, ResourceQuota{}) yyh4833.ElemContainerState(yyj4833) if r.TryDecodeAsNil() { yyv4833[yyj4833] = ResourceQuota{} } else { yyv4835 := &yyv4833[yyj4833] yyv4835.CodecDecodeSelf(d) } } } } else { yyj4833 := 0 for ; !r.CheckBreak(); yyj4833++ { if yyj4833 >= len(yyv4833) { yyv4833 = append(yyv4833, ResourceQuota{}) // var yyz4833 ResourceQuota yyc4833 = true } yyh4833.ElemContainerState(yyj4833) if yyj4833 < len(yyv4833) { if r.TryDecodeAsNil() { yyv4833[yyj4833] = ResourceQuota{} } else { yyv4836 := &yyv4833[yyj4833] yyv4836.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4833 < len(yyv4833) { yyv4833 = yyv4833[:yyj4833] yyc4833 = true } else if yyj4833 == 0 && yyv4833 == nil { yyv4833 = []ResourceQuota{} yyc4833 = true } } yyh4833.End() if yyc4833 { *v = yyv4833 } } 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 yyk4837, yyv4837 := range v { z.EncSendContainerState(codecSelfer_containerMapKey1234) yym4838 := z.EncBinary() _ = yym4838 if false { } else { r.EncodeString(codecSelferC_UTF81234, string(yyk4837)) } z.EncSendContainerState(codecSelfer_containerMapValue1234) if yyv4837 == nil { r.EncodeNil() } else { yym4839 := z.EncBinary() _ = yym4839 if false { } else { r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4837)) } } } 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 yyv4840 := *v yyl4840 := r.ReadMapStart() yybh4840 := z.DecBasicHandle() if yyv4840 == nil { yyrl4840, _ := z.DecInferLen(yyl4840, yybh4840.MaxInitLen, 40) yyv4840 = make(map[string][]uint8, yyrl4840) *v = yyv4840 } var yymk4840 string var yymv4840 []uint8 var yymg4840 bool if yybh4840.MapValueReset { yymg4840 = true } if yyl4840 > 0 { for yyj4840 := 0; yyj4840 < yyl4840; yyj4840++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4840 = "" } else { yymk4840 = string(r.DecodeString()) } if yymg4840 { yymv4840 = yyv4840[yymk4840] } else { yymv4840 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4840 = nil } else { yyv4842 := &yymv4840 yym4843 := z.DecBinary() _ = yym4843 if false { } else { *yyv4842 = r.DecodeBytes(*(*[]byte)(yyv4842), false, false) } } if yyv4840 != nil { yyv4840[yymk4840] = yymv4840 } } } else if yyl4840 < 0 { for yyj4840 := 0; !r.CheckBreak(); yyj4840++ { z.DecSendContainerState(codecSelfer_containerMapKey1234) if r.TryDecodeAsNil() { yymk4840 = "" } else { yymk4840 = string(r.DecodeString()) } if yymg4840 { yymv4840 = yyv4840[yymk4840] } else { yymv4840 = nil } z.DecSendContainerState(codecSelfer_containerMapValue1234) if r.TryDecodeAsNil() { yymv4840 = nil } else { yyv4845 := &yymv4840 yym4846 := z.DecBinary() _ = yym4846 if false { } else { *yyv4845 = r.DecodeBytes(*(*[]byte)(yyv4845), false, false) } } if yyv4840 != nil { yyv4840[yymk4840] = yymv4840 } } } // 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 _, yyv4847 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4848 := &yyv4847 yy4848.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 yyv4849 := *v yyh4849, yyl4849 := z.DecSliceHelperStart() var yyc4849 bool if yyl4849 == 0 { if yyv4849 == nil { yyv4849 = []Secret{} yyc4849 = true } else if len(yyv4849) != 0 { yyv4849 = yyv4849[:0] yyc4849 = true } } else if yyl4849 > 0 { var yyrr4849, yyrl4849 int var yyrt4849 bool if yyl4849 > cap(yyv4849) { yyrg4849 := len(yyv4849) > 0 yyv24849 := yyv4849 yyrl4849, yyrt4849 = z.DecInferLen(yyl4849, z.DecBasicHandle().MaxInitLen, 280) if yyrt4849 { if yyrl4849 <= cap(yyv4849) { yyv4849 = yyv4849[:yyrl4849] } else { yyv4849 = make([]Secret, yyrl4849) } } else { yyv4849 = make([]Secret, yyrl4849) } yyc4849 = true yyrr4849 = len(yyv4849) if yyrg4849 { copy(yyv4849, yyv24849) } } else if yyl4849 != len(yyv4849) { yyv4849 = yyv4849[:yyl4849] yyc4849 = true } yyj4849 := 0 for ; yyj4849 < yyrr4849; yyj4849++ { yyh4849.ElemContainerState(yyj4849) if r.TryDecodeAsNil() { yyv4849[yyj4849] = Secret{} } else { yyv4850 := &yyv4849[yyj4849] yyv4850.CodecDecodeSelf(d) } } if yyrt4849 { for ; yyj4849 < yyl4849; yyj4849++ { yyv4849 = append(yyv4849, Secret{}) yyh4849.ElemContainerState(yyj4849) if r.TryDecodeAsNil() { yyv4849[yyj4849] = Secret{} } else { yyv4851 := &yyv4849[yyj4849] yyv4851.CodecDecodeSelf(d) } } } } else { yyj4849 := 0 for ; !r.CheckBreak(); yyj4849++ { if yyj4849 >= len(yyv4849) { yyv4849 = append(yyv4849, Secret{}) // var yyz4849 Secret yyc4849 = true } yyh4849.ElemContainerState(yyj4849) if yyj4849 < len(yyv4849) { if r.TryDecodeAsNil() { yyv4849[yyj4849] = Secret{} } else { yyv4852 := &yyv4849[yyj4849] yyv4852.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4849 < len(yyv4849) { yyv4849 = yyv4849[:yyj4849] yyc4849 = true } else if yyj4849 == 0 && yyv4849 == nil { yyv4849 = []Secret{} yyc4849 = true } } yyh4849.End() if yyc4849 { *v = yyv4849 } } func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) { var h codecSelfer1234 z, r := codec1978.GenHelperEncoder(e) _, _, _ = h, z, r r.EncodeArrayStart(len(v)) for _, yyv4853 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4854 := &yyv4853 yy4854.CodecEncodeSelf(e) } z.EncSendContainerState(codecSelfer_containerArrayEnd1234) } func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) { var h codecSelfer1234 z, r := codec1978.GenHelperDecoder(d) _, _, _ = h, z, r yyv4855 := *v yyh4855, yyl4855 := z.DecSliceHelperStart() var yyc4855 bool if yyl4855 == 0 { if yyv4855 == nil { yyv4855 = []ConfigMap{} yyc4855 = true } else if len(yyv4855) != 0 { yyv4855 = yyv4855[:0] yyc4855 = true } } else if yyl4855 > 0 { var yyrr4855, yyrl4855 int var yyrt4855 bool if yyl4855 > cap(yyv4855) { yyrg4855 := len(yyv4855) > 0 yyv24855 := yyv4855 yyrl4855, yyrt4855 = z.DecInferLen(yyl4855, z.DecBasicHandle().MaxInitLen, 264) if yyrt4855 { if yyrl4855 <= cap(yyv4855) { yyv4855 = yyv4855[:yyrl4855] } else { yyv4855 = make([]ConfigMap, yyrl4855) } } else { yyv4855 = make([]ConfigMap, yyrl4855) } yyc4855 = true yyrr4855 = len(yyv4855) if yyrg4855 { copy(yyv4855, yyv24855) } } else if yyl4855 != len(yyv4855) { yyv4855 = yyv4855[:yyl4855] yyc4855 = true } yyj4855 := 0 for ; yyj4855 < yyrr4855; yyj4855++ { yyh4855.ElemContainerState(yyj4855) if r.TryDecodeAsNil() { yyv4855[yyj4855] = ConfigMap{} } else { yyv4856 := &yyv4855[yyj4855] yyv4856.CodecDecodeSelf(d) } } if yyrt4855 { for ; yyj4855 < yyl4855; yyj4855++ { yyv4855 = append(yyv4855, ConfigMap{}) yyh4855.ElemContainerState(yyj4855) if r.TryDecodeAsNil() { yyv4855[yyj4855] = ConfigMap{} } else { yyv4857 := &yyv4855[yyj4855] yyv4857.CodecDecodeSelf(d) } } } } else { yyj4855 := 0 for ; !r.CheckBreak(); yyj4855++ { if yyj4855 >= len(yyv4855) { yyv4855 = append(yyv4855, ConfigMap{}) // var yyz4855 ConfigMap yyc4855 = true } yyh4855.ElemContainerState(yyj4855) if yyj4855 < len(yyv4855) { if r.TryDecodeAsNil() { yyv4855[yyj4855] = ConfigMap{} } else { yyv4858 := &yyv4855[yyj4855] yyv4858.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4855 < len(yyv4855) { yyv4855 = yyv4855[:yyj4855] yyc4855 = true } else if yyj4855 == 0 && yyv4855 == nil { yyv4855 = []ConfigMap{} yyc4855 = true } } yyh4855.End() if yyc4855 { *v = yyv4855 } } 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 _, yyv4859 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4860 := &yyv4859 yy4860.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 yyv4861 := *v yyh4861, yyl4861 := z.DecSliceHelperStart() var yyc4861 bool if yyl4861 == 0 { if yyv4861 == nil { yyv4861 = []ComponentCondition{} yyc4861 = true } else if len(yyv4861) != 0 { yyv4861 = yyv4861[:0] yyc4861 = true } } else if yyl4861 > 0 { var yyrr4861, yyrl4861 int var yyrt4861 bool if yyl4861 > cap(yyv4861) { yyrg4861 := len(yyv4861) > 0 yyv24861 := yyv4861 yyrl4861, yyrt4861 = z.DecInferLen(yyl4861, z.DecBasicHandle().MaxInitLen, 64) if yyrt4861 { if yyrl4861 <= cap(yyv4861) { yyv4861 = yyv4861[:yyrl4861] } else { yyv4861 = make([]ComponentCondition, yyrl4861) } } else { yyv4861 = make([]ComponentCondition, yyrl4861) } yyc4861 = true yyrr4861 = len(yyv4861) if yyrg4861 { copy(yyv4861, yyv24861) } } else if yyl4861 != len(yyv4861) { yyv4861 = yyv4861[:yyl4861] yyc4861 = true } yyj4861 := 0 for ; yyj4861 < yyrr4861; yyj4861++ { yyh4861.ElemContainerState(yyj4861) if r.TryDecodeAsNil() { yyv4861[yyj4861] = ComponentCondition{} } else { yyv4862 := &yyv4861[yyj4861] yyv4862.CodecDecodeSelf(d) } } if yyrt4861 { for ; yyj4861 < yyl4861; yyj4861++ { yyv4861 = append(yyv4861, ComponentCondition{}) yyh4861.ElemContainerState(yyj4861) if r.TryDecodeAsNil() { yyv4861[yyj4861] = ComponentCondition{} } else { yyv4863 := &yyv4861[yyj4861] yyv4863.CodecDecodeSelf(d) } } } } else { yyj4861 := 0 for ; !r.CheckBreak(); yyj4861++ { if yyj4861 >= len(yyv4861) { yyv4861 = append(yyv4861, ComponentCondition{}) // var yyz4861 ComponentCondition yyc4861 = true } yyh4861.ElemContainerState(yyj4861) if yyj4861 < len(yyv4861) { if r.TryDecodeAsNil() { yyv4861[yyj4861] = ComponentCondition{} } else { yyv4864 := &yyv4861[yyj4861] yyv4864.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4861 < len(yyv4861) { yyv4861 = yyv4861[:yyj4861] yyc4861 = true } else if yyj4861 == 0 && yyv4861 == nil { yyv4861 = []ComponentCondition{} yyc4861 = true } } yyh4861.End() if yyc4861 { *v = yyv4861 } } 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 _, yyv4865 := range v { z.EncSendContainerState(codecSelfer_containerArrayElem1234) yy4866 := &yyv4865 yy4866.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 yyv4867 := *v yyh4867, yyl4867 := z.DecSliceHelperStart() var yyc4867 bool if yyl4867 == 0 { if yyv4867 == nil { yyv4867 = []ComponentStatus{} yyc4867 = true } else if len(yyv4867) != 0 { yyv4867 = yyv4867[:0] yyc4867 = true } } else if yyl4867 > 0 { var yyrr4867, yyrl4867 int var yyrt4867 bool if yyl4867 > cap(yyv4867) { yyrg4867 := len(yyv4867) > 0 yyv24867 := yyv4867 yyrl4867, yyrt4867 = z.DecInferLen(yyl4867, z.DecBasicHandle().MaxInitLen, 280) if yyrt4867 { if yyrl4867 <= cap(yyv4867) { yyv4867 = yyv4867[:yyrl4867] } else { yyv4867 = make([]ComponentStatus, yyrl4867) } } else { yyv4867 = make([]ComponentStatus, yyrl4867) } yyc4867 = true yyrr4867 = len(yyv4867) if yyrg4867 { copy(yyv4867, yyv24867) } } else if yyl4867 != len(yyv4867) { yyv4867 = yyv4867[:yyl4867] yyc4867 = true } yyj4867 := 0 for ; yyj4867 < yyrr4867; yyj4867++ { yyh4867.ElemContainerState(yyj4867) if r.TryDecodeAsNil() { yyv4867[yyj4867] = ComponentStatus{} } else { yyv4868 := &yyv4867[yyj4867] yyv4868.CodecDecodeSelf(d) } } if yyrt4867 { for ; yyj4867 < yyl4867; yyj4867++ { yyv4867 = append(yyv4867, ComponentStatus{}) yyh4867.ElemContainerState(yyj4867) if r.TryDecodeAsNil() { yyv4867[yyj4867] = ComponentStatus{} } else { yyv4869 := &yyv4867[yyj4867] yyv4869.CodecDecodeSelf(d) } } } } else { yyj4867 := 0 for ; !r.CheckBreak(); yyj4867++ { if yyj4867 >= len(yyv4867) { yyv4867 = append(yyv4867, ComponentStatus{}) // var yyz4867 ComponentStatus yyc4867 = true } yyh4867.ElemContainerState(yyj4867) if yyj4867 < len(yyv4867) { if r.TryDecodeAsNil() { yyv4867[yyj4867] = ComponentStatus{} } else { yyv4870 := &yyv4867[yyj4867] yyv4870.CodecDecodeSelf(d) } } else { z.DecSwallow() } } if yyj4867 < len(yyv4867) { yyv4867 = yyv4867[:yyj4867] yyc4867 = true } else if yyj4867 == 0 && yyv4867 == nil { yyv4867 = []ComponentStatus{} yyc4867 = true } } yyh4867.End() if yyc4867 { *v = yyv4867 } }