kubernetes/pkg/api/types.generated.go

52215 lines
1.2 MiB

/*
Copyright 2015 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// ************************************************************
// DO NOT EDIT.
// THIS FILE IS AUTO-GENERATED BY codecgen.
// ************************************************************
package api
import (
"errors"
"fmt"
codec1978 "github.com/ugorji/go/codec"
pkg3_resource "k8s.io/kubernetes/pkg/api/resource"
pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
pkg7_fields "k8s.io/kubernetes/pkg/fields"
pkg6_labels "k8s.io/kubernetes/pkg/labels"
pkg8_runtime "k8s.io/kubernetes/pkg/runtime"
pkg1_types "k8s.io/kubernetes/pkg/types"
pkg5_intstr "k8s.io/kubernetes/pkg/util/intstr"
"reflect"
"runtime"
pkg4_inf "speter.net/go/exp/math/dec/inf"
time "time"
)
const (
// ----- content types ----
codecSelferC_UTF81234 = 1
codecSelferC_RAW1234 = 0
// ----- value types used ----
codecSelferValueTypeArray1234 = 10
codecSelferValueTypeMap1234 = 9
// ----- containerStateValues ----
codecSelfer_containerMapKey1234 = 2
codecSelfer_containerMapValue1234 = 3
codecSelfer_containerMapEnd1234 = 4
codecSelfer_containerArrayElem1234 = 6
codecSelfer_containerArrayEnd1234 = 7
)
var (
codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits())
codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`)
)
type codecSelfer1234 struct{}
func init() {
if codec1978.GenVersion != 5 {
_, file, _, _ := runtime.Caller(0)
err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
5, codec1978.GenVersion, file)
panic(err)
}
if false { // reference the types, but skip this branch at build/run time
var v0 pkg3_resource.Quantity
var v1 pkg2_unversioned.Time
var v2 pkg7_fields.Selector
var v3 pkg6_labels.Selector
var v4 pkg8_runtime.Object
var v5 pkg1_types.UID
var v6 pkg5_intstr.IntOrString
var v7 pkg4_inf.Dec
var v8 time.Time
_, _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7, v8
}
}
func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
var yyq2 [12]bool
_, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false
yyq2[0] = x.Name != ""
yyq2[1] = x.GenerateName != ""
yyq2[2] = x.Namespace != ""
yyq2[3] = x.SelfLink != ""
yyq2[4] = x.UID != ""
yyq2[5] = x.ResourceVersion != ""
yyq2[6] = x.Generation != 0
yyq2[7] = true
yyq2[8] = x.DeletionTimestamp != nil
yyq2[9] = x.DeletionGracePeriodSeconds != nil
yyq2[10] = len(x.Labels) != 0
yyq2[11] = len(x.Annotations) != 0
var yynn2 int
if yyr2 || yy2arr2 {
r.EncodeArrayStart(12)
} else {
yynn2 = 0
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.EncodeMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[0] {
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[1] {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generateName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] {
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[3] {
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selfLink"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[4] {
yym16 := z.EncBinary()
_ = yym16
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym17 := z.EncBinary()
_ = yym17
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[5] {
yym19 := z.EncBinary()
_ = yym19
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym20 := z.EncBinary()
_ = yym20
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[6] {
yym22 := z.EncBinary()
_ = yym22
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generation"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym23 := z.EncBinary()
_ = yym23
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[7] {
yy25 := &x.CreationTimestamp
yym26 := z.EncBinary()
_ = yym26
if false {
} else if z.HasExtensions() && z.EncExt(yy25) {
} else if yym26 {
z.EncBinaryMarshal(yy25)
} else if !yym26 && z.IsJSONHandle() {
z.EncJSONMarshal(yy25)
} else {
z.EncFallback(yy25)
}
} else {
r.EncodeNil()
}
} else {
if yyq2[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy27 := &x.CreationTimestamp
yym28 := z.EncBinary()
_ = yym28
if false {
} else if z.HasExtensions() && z.EncExt(yy27) {
} else if yym28 {
z.EncBinaryMarshal(yy27)
} else if !yym28 && z.IsJSONHandle() {
z.EncJSONMarshal(yy27)
} else {
z.EncFallback(yy27)
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[8] {
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym30 := z.EncBinary()
_ = yym30
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym30 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym30 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym31 := z.EncBinary()
_ = yym31
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym31 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym31 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[9] {
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy33 := *x.DeletionGracePeriodSeconds
yym34 := z.EncBinary()
_ = yym34
if false {
} else {
r.EncodeInt(int64(yy33))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy35 := *x.DeletionGracePeriodSeconds
yym36 := z.EncBinary()
_ = yym36
if false {
} else {
r.EncodeInt(int64(yy35))
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[10] {
if x.Labels == nil {
r.EncodeNil()
} else {
yym38 := z.EncBinary()
_ = yym38
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("labels"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Labels == nil {
r.EncodeNil()
} else {
yym39 := z.EncBinary()
_ = yym39
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[11] {
if x.Annotations == nil {
r.EncodeNil()
} else {
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("annotations"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Annotations == nil {
r.EncodeNil()
} else {
yym42 := z.EncBinary()
_ = yym42
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym43 := z.DecBinary()
_ = yym43
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct44 := r.ContainerType()
if yyct44 == codecSelferValueTypeMap1234 {
yyl44 := r.ReadMapStart()
if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl44, d)
}
} else if yyct44 == codecSelferValueTypeArray1234 {
yyl44 := r.ReadArrayStart()
if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl44, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys45Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys45Slc
var yyhl45 bool = l >= 0
for yyj45 := 0; ; yyj45++ {
if yyhl45 {
if yyj45 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys45Slc = r.DecodeBytes(yys45Slc, true, true)
yys45 := string(yys45Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys45 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "generateName":
if r.TryDecodeAsNil() {
x.GenerateName = ""
} else {
x.GenerateName = string(r.DecodeString())
}
case "namespace":
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
case "selfLink":
if r.TryDecodeAsNil() {
x.SelfLink = ""
} else {
x.SelfLink = string(r.DecodeString())
}
case "uid":
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
case "resourceVersion":
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
case "generation":
if r.TryDecodeAsNil() {
x.Generation = 0
} else {
x.Generation = int64(r.DecodeInt(64))
}
case "creationTimestamp":
if r.TryDecodeAsNil() {
x.CreationTimestamp = pkg2_unversioned.Time{}
} else {
yyv53 := &x.CreationTimestamp
yym54 := z.DecBinary()
_ = yym54
if false {
} else if z.HasExtensions() && z.DecExt(yyv53) {
} else if yym54 {
z.DecBinaryUnmarshal(yyv53)
} else if !yym54 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv53)
} else {
z.DecFallback(yyv53, false)
}
}
case "deletionTimestamp":
if r.TryDecodeAsNil() {
if x.DeletionTimestamp != nil {
x.DeletionTimestamp = nil
}
} else {
if x.DeletionTimestamp == nil {
x.DeletionTimestamp = new(pkg2_unversioned.Time)
}
yym56 := z.DecBinary()
_ = yym56
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym56 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym56 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.DeletionTimestamp)
} else {
z.DecFallback(x.DeletionTimestamp, false)
}
}
case "deletionGracePeriodSeconds":
if r.TryDecodeAsNil() {
if x.DeletionGracePeriodSeconds != nil {
x.DeletionGracePeriodSeconds = nil
}
} else {
if x.DeletionGracePeriodSeconds == nil {
x.DeletionGracePeriodSeconds = new(int64)
}
yym58 := z.DecBinary()
_ = yym58
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
case "labels":
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv59 := &x.Labels
yym60 := z.DecBinary()
_ = yym60
if false {
} else {
z.F.DecMapStringStringX(yyv59, false, d)
}
}
case "annotations":
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv61 := &x.Annotations
yym62 := z.DecBinary()
_ = yym62
if false {
} else {
z.F.DecMapStringStringX(yyv61, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys45)
} // end switch yys45
} // end for yyj45
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj63 int
var yyb63 bool
var yyhl63 bool = l >= 0
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.GenerateName = ""
} else {
x.GenerateName = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SelfLink = ""
} else {
x.SelfLink = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Generation = 0
} else {
x.Generation = int64(r.DecodeInt(64))
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CreationTimestamp = pkg2_unversioned.Time{}
} else {
yyv71 := &x.CreationTimestamp
yym72 := z.DecBinary()
_ = yym72
if false {
} else if z.HasExtensions() && z.DecExt(yyv71) {
} else if yym72 {
z.DecBinaryUnmarshal(yyv71)
} else if !yym72 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv71)
} else {
z.DecFallback(yyv71, false)
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DeletionTimestamp != nil {
x.DeletionTimestamp = nil
}
} else {
if x.DeletionTimestamp == nil {
x.DeletionTimestamp = new(pkg2_unversioned.Time)
}
yym74 := z.DecBinary()
_ = yym74
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym74 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym74 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.DeletionTimestamp)
} else {
z.DecFallback(x.DeletionTimestamp, false)
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DeletionGracePeriodSeconds != nil {
x.DeletionGracePeriodSeconds = nil
}
} else {
if x.DeletionGracePeriodSeconds == nil {
x.DeletionGracePeriodSeconds = new(int64)
}
yym76 := z.DecBinary()
_ = yym76
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv77 := &x.Labels
yym78 := z.DecBinary()
_ = yym78
if false {
} else {
z.F.DecMapStringStringX(yyv77, false, d)
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv79 := &x.Annotations
yym80 := z.DecBinary()
_ = yym80
if false {
} else {
z.F.DecMapStringStringX(yyv79, false, d)
}
}
for {
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj63-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym81 := z.EncBinary()
_ = yym81
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep82 := !z.EncBinary()
yy2arr82 := z.EncBasicHandle().StructToArray
var yyq82 [18]bool
_, _, _ = yysep82, yyq82, yy2arr82
const yyr82 bool = false
yyq82[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil
yyq82[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil
yyq82[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq82[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq82[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil
yyq82[6] = x.VolumeSource.Secret != nil && x.Secret != nil
yyq82[7] = x.VolumeSource.NFS != nil && x.NFS != nil
yyq82[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil
yyq82[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq82[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil
yyq82[11] = x.VolumeSource.RBD != nil && x.RBD != nil
yyq82[12] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil
yyq82[13] = x.VolumeSource.Cinder != nil && x.Cinder != nil
yyq82[14] = x.VolumeSource.CephFS != nil && x.CephFS != nil
yyq82[15] = x.VolumeSource.Flocker != nil && x.Flocker != nil
yyq82[16] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
yyq82[17] = x.VolumeSource.FC != nil && x.FC != nil
var yynn82 int
if yyr82 || yy2arr82 {
r.EncodeArrayStart(18)
} else {
yynn82 = 1
for _, b := range yyq82 {
if b {
yynn82++
}
}
r.EncodeMapStart(yynn82)
yynn82 = 0
}
if yyr82 || yy2arr82 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym84 := z.EncBinary()
_ = yym84
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym85 := z.EncBinary()
_ = yym85
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
var yyn86 bool
if x.VolumeSource.HostPath == nil {
yyn86 = true
goto LABEL86
}
LABEL86:
if yyr82 || yy2arr82 {
if yyn86 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[1] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn86 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn87 bool
if x.VolumeSource.EmptyDir == nil {
yyn87 = true
goto LABEL87
}
LABEL87:
if yyr82 || yy2arr82 {
if yyn87 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[2] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn87 {
r.EncodeNil()
} else {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
}
}
}
var yyn88 bool
if x.VolumeSource.GCEPersistentDisk == nil {
yyn88 = true
goto LABEL88
}
LABEL88:
if yyr82 || yy2arr82 {
if yyn88 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[3] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn88 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn89 bool
if x.VolumeSource.AWSElasticBlockStore == nil {
yyn89 = true
goto LABEL89
}
LABEL89:
if yyr82 || yy2arr82 {
if yyn89 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[4] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn89 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn90 bool
if x.VolumeSource.GitRepo == nil {
yyn90 = true
goto LABEL90
}
LABEL90:
if yyr82 || yy2arr82 {
if yyn90 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[5] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn90 {
r.EncodeNil()
} else {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
}
}
}
var yyn91 bool
if x.VolumeSource.Secret == nil {
yyn91 = true
goto LABEL91
}
LABEL91:
if yyr82 || yy2arr82 {
if yyn91 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[6] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secret"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn91 {
r.EncodeNil()
} else {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
}
}
}
var yyn92 bool
if x.VolumeSource.NFS == nil {
yyn92 = true
goto LABEL92
}
LABEL92:
if yyr82 || yy2arr82 {
if yyn92 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[7] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn92 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn93 bool
if x.VolumeSource.ISCSI == nil {
yyn93 = true
goto LABEL93
}
LABEL93:
if yyr82 || yy2arr82 {
if yyn93 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[8] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn93 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn94 bool
if x.VolumeSource.Glusterfs == nil {
yyn94 = true
goto LABEL94
}
LABEL94:
if yyr82 || yy2arr82 {
if yyn94 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[9] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn94 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn95 bool
if x.VolumeSource.PersistentVolumeClaim == nil {
yyn95 = true
goto LABEL95
}
LABEL95:
if yyr82 || yy2arr82 {
if yyn95 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[10] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn95 {
r.EncodeNil()
} else {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
}
}
}
var yyn96 bool
if x.VolumeSource.RBD == nil {
yyn96 = true
goto LABEL96
}
LABEL96:
if yyr82 || yy2arr82 {
if yyn96 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[11] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn96 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn97 bool
if x.VolumeSource.FlexVolume == nil {
yyn97 = true
goto LABEL97
}
LABEL97:
if yyr82 || yy2arr82 {
if yyn97 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[12] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn97 {
r.EncodeNil()
} else {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn98 bool
if x.VolumeSource.Cinder == nil {
yyn98 = true
goto LABEL98
}
LABEL98:
if yyr82 || yy2arr82 {
if yyn98 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[13] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn98 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn99 bool
if x.VolumeSource.CephFS == nil {
yyn99 = true
goto LABEL99
}
LABEL99:
if yyr82 || yy2arr82 {
if yyn99 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[14] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn99 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn100 bool
if x.VolumeSource.Flocker == nil {
yyn100 = true
goto LABEL100
}
LABEL100:
if yyr82 || yy2arr82 {
if yyn100 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[15] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn100 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
var yyn101 bool
if x.VolumeSource.DownwardAPI == nil {
yyn101 = true
goto LABEL101
}
LABEL101:
if yyr82 || yy2arr82 {
if yyn101 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[16] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn101 {
r.EncodeNil()
} else {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
}
}
}
var yyn102 bool
if x.VolumeSource.FC == nil {
yyn102 = true
goto LABEL102
}
LABEL102:
if yyr82 || yy2arr82 {
if yyn102 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[17] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn102 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
if yyr82 || yy2arr82 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym103 := z.DecBinary()
_ = yym103
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct104 := r.ContainerType()
if yyct104 == codecSelferValueTypeMap1234 {
yyl104 := r.ReadMapStart()
if yyl104 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl104, d)
}
} else if yyct104 == codecSelferValueTypeArray1234 {
yyl104 := r.ReadArrayStart()
if yyl104 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl104, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Volume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys105Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys105Slc
var yyhl105 bool = l >= 0
for yyj105 := 0; ; yyj105++ {
if yyhl105 {
if yyj105 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys105Slc = r.DecodeBytes(yys105Slc, true, true)
yys105 := string(yys105Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys105 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "hostPath":
if x.VolumeSource.HostPath == nil {
x.VolumeSource.HostPath = new(HostPathVolumeSource)
}
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "emptyDir":
if x.VolumeSource.EmptyDir == nil {
x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
}
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if x.VolumeSource.GCEPersistentDisk == nil {
x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if x.VolumeSource.AWSElasticBlockStore == nil {
x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "gitRepo":
if x.VolumeSource.GitRepo == nil {
x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
case "secret":
if x.VolumeSource.Secret == nil {
x.VolumeSource.Secret = new(SecretVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
case "nfs":
if x.VolumeSource.NFS == nil {
x.VolumeSource.NFS = new(NFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "iscsi":
if x.VolumeSource.ISCSI == nil {
x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "glusterfs":
if x.VolumeSource.Glusterfs == nil {
x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "persistentVolumeClaim":
if x.VolumeSource.PersistentVolumeClaim == nil {
x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
case "rbd":
if x.VolumeSource.RBD == nil {
x.VolumeSource.RBD = new(RBDVolumeSource)
}
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "flexVolume":
if x.VolumeSource.FlexVolume == nil {
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if x.VolumeSource.Cinder == nil {
x.VolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.VolumeSource.CephFS == nil {
x.VolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if x.VolumeSource.Flocker == nil {
x.VolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if x.VolumeSource.DownwardAPI == nil {
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if x.VolumeSource.FC == nil {
x.VolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys105)
} // end switch yys105
} // end for yyj105
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Volume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj124 int
var yyb124 bool
var yyhl124 bool = l >= 0
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
if x.VolumeSource.HostPath == nil {
x.VolumeSource.HostPath = new(HostPathVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
if x.VolumeSource.EmptyDir == nil {
x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
if x.VolumeSource.GCEPersistentDisk == nil {
x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
if x.VolumeSource.AWSElasticBlockStore == nil {
x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
if x.VolumeSource.GitRepo == nil {
x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
if x.VolumeSource.Secret == nil {
x.VolumeSource.Secret = new(SecretVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
if x.VolumeSource.NFS == nil {
x.VolumeSource.NFS = new(NFSVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
if x.VolumeSource.ISCSI == nil {
x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
if x.VolumeSource.Glusterfs == nil {
x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
if x.VolumeSource.PersistentVolumeClaim == nil {
x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
if x.VolumeSource.RBD == nil {
x.VolumeSource.RBD = new(RBDVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
if x.VolumeSource.FlexVolume == nil {
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
if x.VolumeSource.Cinder == nil {
x.VolumeSource.Cinder = new(CinderVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
if x.VolumeSource.CephFS == nil {
x.VolumeSource.CephFS = new(CephFSVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
if x.VolumeSource.Flocker == nil {
x.VolumeSource.Flocker = new(FlockerVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
if x.VolumeSource.DownwardAPI == nil {
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
if x.VolumeSource.FC == nil {
x.VolumeSource.FC = new(FCVolumeSource)
}
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
for {
yyj124++
if yyhl124 {
yyb124 = yyj124 > l
} else {
yyb124 = r.CheckBreak()
}
if yyb124 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj124-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *VolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym143 := z.EncBinary()
_ = yym143
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep144 := !z.EncBinary()
yy2arr144 := z.EncBasicHandle().StructToArray
var yyq144 [17]bool
_, _, _ = yysep144, yyq144, yy2arr144
const yyr144 bool = false
yyq144[0] = x.HostPath != nil
yyq144[1] = x.EmptyDir != nil
yyq144[2] = x.GCEPersistentDisk != nil
yyq144[3] = x.AWSElasticBlockStore != nil
yyq144[4] = x.GitRepo != nil
yyq144[5] = x.Secret != nil
yyq144[6] = x.NFS != nil
yyq144[7] = x.ISCSI != nil
yyq144[8] = x.Glusterfs != nil
yyq144[9] = x.PersistentVolumeClaim != nil
yyq144[10] = x.RBD != nil
yyq144[11] = x.FlexVolume != nil
yyq144[12] = x.Cinder != nil
yyq144[13] = x.CephFS != nil
yyq144[14] = x.Flocker != nil
yyq144[15] = x.DownwardAPI != nil
yyq144[16] = x.FC != nil
var yynn144 int
if yyr144 || yy2arr144 {
r.EncodeArrayStart(17)
} else {
yynn144 = 0
for _, b := range yyq144 {
if b {
yynn144++
}
}
r.EncodeMapStart(yynn144)
yynn144 = 0
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[0] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[1] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[2] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[3] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[4] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[5] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secret"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[6] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[8] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[9] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[10] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[11] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[12] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[13] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[14] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[15] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq144[16] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq144[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
if yyr144 || yy2arr144 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *VolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym162 := z.DecBinary()
_ = yym162
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct163 := r.ContainerType()
if yyct163 == codecSelferValueTypeMap1234 {
yyl163 := r.ReadMapStart()
if yyl163 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl163, d)
}
} else if yyct163 == codecSelferValueTypeArray1234 {
yyl163 := r.ReadArrayStart()
if yyl163 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl163, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *VolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys164Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys164Slc
var yyhl164 bool = l >= 0
for yyj164 := 0; ; yyj164++ {
if yyhl164 {
if yyj164 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys164Slc = r.DecodeBytes(yys164Slc, true, true)
yys164 := string(yys164Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys164 {
case "hostPath":
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "emptyDir":
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "gitRepo":
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
case "secret":
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
case "nfs":
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "iscsi":
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "glusterfs":
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "persistentVolumeClaim":
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
case "rbd":
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "flexVolume":
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys164)
} // end switch yys164
} // end for yyj164
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *VolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj182 int
var yyb182 bool
var yyhl182 bool = l >= 0
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
for {
yyj182++
if yyhl182 {
yyb182 = yyj182 > l
} else {
yyb182 = r.CheckBreak()
}
if yyb182 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj182-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym200 := z.EncBinary()
_ = yym200
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep201 := !z.EncBinary()
yy2arr201 := z.EncBasicHandle().StructToArray
var yyq201 [12]bool
_, _, _ = yysep201, yyq201, yy2arr201
const yyr201 bool = false
yyq201[0] = x.GCEPersistentDisk != nil
yyq201[1] = x.AWSElasticBlockStore != nil
yyq201[2] = x.HostPath != nil
yyq201[3] = x.Glusterfs != nil
yyq201[4] = x.NFS != nil
yyq201[5] = x.RBD != nil
yyq201[6] = x.ISCSI != nil
yyq201[7] = x.FlexVolume != nil
yyq201[8] = x.Cinder != nil
yyq201[9] = x.CephFS != nil
yyq201[10] = x.FC != nil
yyq201[11] = x.Flocker != nil
var yynn201 int
if yyr201 || yy2arr201 {
r.EncodeArrayStart(12)
} else {
yynn201 = 0
for _, b := range yyq201 {
if b {
yynn201++
}
}
r.EncodeMapStart(yynn201)
yynn201 = 0
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[0] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[1] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[2] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[3] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[4] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[5] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[6] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[7] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[8] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[9] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[10] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq201[11] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq201[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
if yyr201 || yy2arr201 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym214 := z.DecBinary()
_ = yym214
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct215 := r.ContainerType()
if yyct215 == codecSelferValueTypeMap1234 {
yyl215 := r.ReadMapStart()
if yyl215 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl215, d)
}
} else if yyct215 == codecSelferValueTypeArray1234 {
yyl215 := r.ReadArrayStart()
if yyl215 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl215, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys216Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys216Slc
var yyhl216 bool = l >= 0
for yyj216 := 0; ; yyj216++ {
if yyhl216 {
if yyj216 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys216Slc = r.DecodeBytes(yys216Slc, true, true)
yys216 := string(yys216Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys216 {
case "gcePersistentDisk":
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "iscsi":
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "flexVolume":
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys216)
} // end switch yys216
} // end for yyj216
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj229 int
var yyb229 bool
var yyhl229 bool = l >= 0
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
for {
yyj229++
if yyhl229 {
yyb229 = yyj229 > l
} else {
yyb229 = r.CheckBreak()
}
if yyb229 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj229-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeClaimVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym242 := z.EncBinary()
_ = yym242
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep243 := !z.EncBinary()
yy2arr243 := z.EncBasicHandle().StructToArray
var yyq243 [2]bool
_, _, _ = yysep243, yyq243, yy2arr243
const yyr243 bool = false
yyq243[1] = x.ReadOnly != false
var yynn243 int
if yyr243 || yy2arr243 {
r.EncodeArrayStart(2)
} else {
yynn243 = 1
for _, b := range yyq243 {
if b {
yynn243++
}
}
r.EncodeMapStart(yynn243)
yynn243 = 0
}
if yyr243 || yy2arr243 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym245 := z.EncBinary()
_ = yym245
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("claimName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym246 := z.EncBinary()
_ = yym246
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
}
}
if yyr243 || yy2arr243 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq243[1] {
yym248 := z.EncBinary()
_ = yym248
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq243[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym249 := z.EncBinary()
_ = yym249
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr243 || yy2arr243 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeClaimVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym250 := z.DecBinary()
_ = yym250
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct251 := r.ContainerType()
if yyct251 == codecSelferValueTypeMap1234 {
yyl251 := r.ReadMapStart()
if yyl251 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl251, d)
}
} else if yyct251 == codecSelferValueTypeArray1234 {
yyl251 := r.ReadArrayStart()
if yyl251 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl251, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys252Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys252Slc
var yyhl252 bool = l >= 0
for yyj252 := 0; ; yyj252++ {
if yyhl252 {
if yyj252 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys252Slc = r.DecodeBytes(yys252Slc, true, true)
yys252 := string(yys252Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys252 {
case "claimName":
if r.TryDecodeAsNil() {
x.ClaimName = ""
} else {
x.ClaimName = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys252)
} // end switch yys252
} // end for yyj252
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeClaimVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj255 int
var yyb255 bool
var yyhl255 bool = l >= 0
yyj255++
if yyhl255 {
yyb255 = yyj255 > l
} else {
yyb255 = r.CheckBreak()
}
if yyb255 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClaimName = ""
} else {
x.ClaimName = string(r.DecodeString())
}
yyj255++
if yyhl255 {
yyb255 = yyj255 > l
} else {
yyb255 = r.CheckBreak()
}
if yyb255 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj255++
if yyhl255 {
yyb255 = yyj255 > l
} else {
yyb255 = r.CheckBreak()
}
if yyb255 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj255-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolume) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym258 := z.EncBinary()
_ = yym258
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep259 := !z.EncBinary()
yy2arr259 := z.EncBasicHandle().StructToArray
var yyq259 [5]bool
_, _, _ = yysep259, yyq259, yy2arr259
const yyr259 bool = false
yyq259[0] = x.Kind != ""
yyq259[1] = x.APIVersion != ""
yyq259[2] = true
yyq259[3] = true
yyq259[4] = true
var yynn259 int
if yyr259 || yy2arr259 {
r.EncodeArrayStart(5)
} else {
yynn259 = 0
for _, b := range yyq259 {
if b {
yynn259++
}
}
r.EncodeMapStart(yynn259)
yynn259 = 0
}
if yyr259 || yy2arr259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq259[0] {
yym261 := z.EncBinary()
_ = yym261
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq259[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym262 := z.EncBinary()
_ = yym262
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr259 || yy2arr259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq259[1] {
yym264 := z.EncBinary()
_ = yym264
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq259[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym265 := z.EncBinary()
_ = yym265
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr259 || yy2arr259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq259[2] {
yy267 := &x.ObjectMeta
yy267.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq259[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy268 := &x.ObjectMeta
yy268.CodecEncodeSelf(e)
}
}
if yyr259 || yy2arr259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq259[3] {
yy270 := &x.Spec
yy270.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq259[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy271 := &x.Spec
yy271.CodecEncodeSelf(e)
}
}
if yyr259 || yy2arr259 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq259[4] {
yy273 := &x.Status
yy273.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq259[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy274 := &x.Status
yy274.CodecEncodeSelf(e)
}
}
if yyr259 || yy2arr259 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolume) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym275 := z.DecBinary()
_ = yym275
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct276 := r.ContainerType()
if yyct276 == codecSelferValueTypeMap1234 {
yyl276 := r.ReadMapStart()
if yyl276 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl276, d)
}
} else if yyct276 == codecSelferValueTypeArray1234 {
yyl276 := r.ReadArrayStart()
if yyl276 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl276, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys277Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys277Slc
var yyhl277 bool = l >= 0
for yyj277 := 0; ; yyj277++ {
if yyhl277 {
if yyj277 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys277Slc = r.DecodeBytes(yys277Slc, true, true)
yys277 := string(yys277Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys277 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv280 := &x.ObjectMeta
yyv280.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv281 := &x.Spec
yyv281.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv282 := &x.Status
yyv282.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys277)
} // end switch yys277
} // end for yyj277
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj283 int
var yyb283 bool
var yyhl283 bool = l >= 0
yyj283++
if yyhl283 {
yyb283 = yyj283 > l
} else {
yyb283 = r.CheckBreak()
}
if yyb283 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj283++
if yyhl283 {
yyb283 = yyj283 > l
} else {
yyb283 = r.CheckBreak()
}
if yyb283 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj283++
if yyhl283 {
yyb283 = yyj283 > l
} else {
yyb283 = r.CheckBreak()
}
if yyb283 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv286 := &x.ObjectMeta
yyv286.CodecDecodeSelf(d)
}
yyj283++
if yyhl283 {
yyb283 = yyj283 > l
} else {
yyb283 = r.CheckBreak()
}
if yyb283 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv287 := &x.Spec
yyv287.CodecDecodeSelf(d)
}
yyj283++
if yyhl283 {
yyb283 = yyj283 > l
} else {
yyb283 = r.CheckBreak()
}
if yyb283 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv288 := &x.Status
yyv288.CodecDecodeSelf(d)
}
for {
yyj283++
if yyhl283 {
yyb283 = yyj283 > l
} else {
yyb283 = r.CheckBreak()
}
if yyb283 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj283-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym289 := z.EncBinary()
_ = yym289
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep290 := !z.EncBinary()
yy2arr290 := z.EncBasicHandle().StructToArray
var yyq290 [16]bool
_, _, _ = yysep290, yyq290, yy2arr290
const yyr290 bool = false
yyq290[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq290[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq290[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
yyq290[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq290[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
yyq290[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
yyq290[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
yyq290[8] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil
yyq290[9] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
yyq290[10] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
yyq290[11] = x.PersistentVolumeSource.FC != nil && x.FC != nil
yyq290[12] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
yyq290[13] = len(x.AccessModes) != 0
yyq290[14] = x.ClaimRef != nil
yyq290[15] = x.PersistentVolumeReclaimPolicy != ""
var yynn290 int
if yyr290 || yy2arr290 {
r.EncodeArrayStart(16)
} else {
yynn290 = 1
for _, b := range yyq290 {
if b {
yynn290++
}
}
r.EncodeMapStart(yynn290)
yynn290 = 0
}
if yyr290 || yy2arr290 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("capacity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
}
var yyn292 bool
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
yyn292 = true
goto LABEL292
}
LABEL292:
if yyr290 || yy2arr290 {
if yyn292 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[1] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn292 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn293 bool
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
yyn293 = true
goto LABEL293
}
LABEL293:
if yyr290 || yy2arr290 {
if yyn293 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[2] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn293 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn294 bool
if x.PersistentVolumeSource.HostPath == nil {
yyn294 = true
goto LABEL294
}
LABEL294:
if yyr290 || yy2arr290 {
if yyn294 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[3] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn294 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn295 bool
if x.PersistentVolumeSource.Glusterfs == nil {
yyn295 = true
goto LABEL295
}
LABEL295:
if yyr290 || yy2arr290 {
if yyn295 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[4] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn295 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn296 bool
if x.PersistentVolumeSource.NFS == nil {
yyn296 = true
goto LABEL296
}
LABEL296:
if yyr290 || yy2arr290 {
if yyn296 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[5] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn296 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn297 bool
if x.PersistentVolumeSource.RBD == nil {
yyn297 = true
goto LABEL297
}
LABEL297:
if yyr290 || yy2arr290 {
if yyn297 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[6] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn297 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn298 bool
if x.PersistentVolumeSource.ISCSI == nil {
yyn298 = true
goto LABEL298
}
LABEL298:
if yyr290 || yy2arr290 {
if yyn298 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn298 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn299 bool
if x.PersistentVolumeSource.FlexVolume == nil {
yyn299 = true
goto LABEL299
}
LABEL299:
if yyr290 || yy2arr290 {
if yyn299 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[8] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn299 {
r.EncodeNil()
} else {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn300 bool
if x.PersistentVolumeSource.Cinder == nil {
yyn300 = true
goto LABEL300
}
LABEL300:
if yyr290 || yy2arr290 {
if yyn300 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[9] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn300 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn301 bool
if x.PersistentVolumeSource.CephFS == nil {
yyn301 = true
goto LABEL301
}
LABEL301:
if yyr290 || yy2arr290 {
if yyn301 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[10] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn301 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn302 bool
if x.PersistentVolumeSource.FC == nil {
yyn302 = true
goto LABEL302
}
LABEL302:
if yyr290 || yy2arr290 {
if yyn302 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[11] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn302 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
var yyn303 bool
if x.PersistentVolumeSource.Flocker == nil {
yyn303 = true
goto LABEL303
}
LABEL303:
if yyr290 || yy2arr290 {
if yyn303 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[12] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq290[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn303 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
if yyr290 || yy2arr290 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[13] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym305 := z.EncBinary()
_ = yym305
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq290[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym306 := z.EncBinary()
_ = yym306
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr290 || yy2arr290 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[14] {
if x.ClaimRef == nil {
r.EncodeNil()
} else {
x.ClaimRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq290[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("claimRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ClaimRef == nil {
r.EncodeNil()
} else {
x.ClaimRef.CodecEncodeSelf(e)
}
}
}
if yyr290 || yy2arr290 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[15] {
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq290[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
}
}
if yyr290 || yy2arr290 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeSpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym309 := z.DecBinary()
_ = yym309
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct310 := r.ContainerType()
if yyct310 == codecSelferValueTypeMap1234 {
yyl310 := r.ReadMapStart()
if yyl310 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl310, d)
}
} else if yyct310 == codecSelferValueTypeArray1234 {
yyl310 := r.ReadArrayStart()
if yyl310 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl310, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys311Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys311Slc
var yyhl311 bool = l >= 0
for yyj311 := 0; ; yyj311++ {
if yyhl311 {
if yyj311 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys311Slc = r.DecodeBytes(yys311Slc, true, true)
yys311 := string(yys311Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys311 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv312 := &x.Capacity
yyv312.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if x.PersistentVolumeSource.HostPath == nil {
x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
}
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if x.PersistentVolumeSource.Glusterfs == nil {
x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if x.PersistentVolumeSource.NFS == nil {
x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if x.PersistentVolumeSource.RBD == nil {
x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
}
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "iscsi":
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "flexVolume":
if x.PersistentVolumeSource.FlexVolume == nil {
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if x.PersistentVolumeSource.Cinder == nil {
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.PersistentVolumeSource.CephFS == nil {
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if x.PersistentVolumeSource.FC == nil {
x.PersistentVolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if x.PersistentVolumeSource.Flocker == nil {
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv325 := &x.AccessModes
yym326 := z.DecBinary()
_ = yym326
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv325), d)
}
}
case "claimRef":
if r.TryDecodeAsNil() {
if x.ClaimRef != nil {
x.ClaimRef = nil
}
} else {
if x.ClaimRef == nil {
x.ClaimRef = new(ObjectReference)
}
x.ClaimRef.CodecDecodeSelf(d)
}
case "persistentVolumeReclaimPolicy":
if r.TryDecodeAsNil() {
x.PersistentVolumeReclaimPolicy = ""
} else {
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys311)
} // end switch yys311
} // end for yyj311
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj329 int
var yyb329 bool
var yyhl329 bool = l >= 0
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv330 := &x.Capacity
yyv330.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.HostPath == nil {
x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.Glusterfs == nil {
x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.NFS == nil {
x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.RBD == nil {
x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.FlexVolume == nil {
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.Cinder == nil {
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.CephFS == nil {
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.FC == nil {
x.PersistentVolumeSource.FC = new(FCVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.Flocker == nil {
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv343 := &x.AccessModes
yym344 := z.DecBinary()
_ = yym344
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv343), d)
}
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ClaimRef != nil {
x.ClaimRef = nil
}
} else {
if x.ClaimRef == nil {
x.ClaimRef = new(ObjectReference)
}
x.ClaimRef.CodecDecodeSelf(d)
}
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PersistentVolumeReclaimPolicy = ""
} else {
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
}
for {
yyj329++
if yyhl329 {
yyb329 = yyj329 > l
} else {
yyb329 = r.CheckBreak()
}
if yyb329 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj329-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym347 := z.EncBinary()
_ = yym347
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *PersistentVolumeReclaimPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym348 := z.DecBinary()
_ = yym348
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *PersistentVolumeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym349 := z.EncBinary()
_ = yym349
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep350 := !z.EncBinary()
yy2arr350 := z.EncBasicHandle().StructToArray
var yyq350 [3]bool
_, _, _ = yysep350, yyq350, yy2arr350
const yyr350 bool = false
yyq350[0] = x.Phase != ""
yyq350[1] = x.Message != ""
yyq350[2] = x.Reason != ""
var yynn350 int
if yyr350 || yy2arr350 {
r.EncodeArrayStart(3)
} else {
yynn350 = 0
for _, b := range yyq350 {
if b {
yynn350++
}
}
r.EncodeMapStart(yynn350)
yynn350 = 0
}
if yyr350 || yy2arr350 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq350[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq350[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr350 || yy2arr350 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq350[1] {
yym353 := z.EncBinary()
_ = yym353
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq350[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym354 := z.EncBinary()
_ = yym354
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr350 || yy2arr350 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq350[2] {
yym356 := z.EncBinary()
_ = yym356
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq350[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym357 := z.EncBinary()
_ = yym357
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr350 || yy2arr350 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym358 := z.DecBinary()
_ = yym358
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct359 := r.ContainerType()
if yyct359 == codecSelferValueTypeMap1234 {
yyl359 := r.ReadMapStart()
if yyl359 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl359, d)
}
} else if yyct359 == codecSelferValueTypeArray1234 {
yyl359 := r.ReadArrayStart()
if yyl359 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl359, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys360Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys360Slc
var yyhl360 bool = l >= 0
for yyj360 := 0; ; yyj360++ {
if yyhl360 {
if yyj360 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys360Slc = r.DecodeBytes(yys360Slc, true, true)
yys360 := string(yys360Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys360 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumePhase(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys360)
} // end switch yys360
} // end for yyj360
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj364 int
var yyb364 bool
var yyhl364 bool = l >= 0
yyj364++
if yyhl364 {
yyb364 = yyj364 > l
} else {
yyb364 = r.CheckBreak()
}
if yyb364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumePhase(r.DecodeString())
}
yyj364++
if yyhl364 {
yyb364 = yyj364 > l
} else {
yyb364 = r.CheckBreak()
}
if yyb364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj364++
if yyhl364 {
yyb364 = yyj364 > l
} else {
yyb364 = r.CheckBreak()
}
if yyb364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
for {
yyj364++
if yyhl364 {
yyb364 = yyj364 > l
} else {
yyb364 = r.CheckBreak()
}
if yyb364 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj364-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym368 := z.EncBinary()
_ = yym368
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep369 := !z.EncBinary()
yy2arr369 := z.EncBasicHandle().StructToArray
var yyq369 [4]bool
_, _, _ = yysep369, yyq369, yy2arr369
const yyr369 bool = false
yyq369[0] = x.Kind != ""
yyq369[1] = x.APIVersion != ""
yyq369[2] = true
var yynn369 int
if yyr369 || yy2arr369 {
r.EncodeArrayStart(4)
} else {
yynn369 = 1
for _, b := range yyq369 {
if b {
yynn369++
}
}
r.EncodeMapStart(yynn369)
yynn369 = 0
}
if yyr369 || yy2arr369 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq369[0] {
yym371 := z.EncBinary()
_ = yym371
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq369[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym372 := z.EncBinary()
_ = yym372
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr369 || yy2arr369 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq369[1] {
yym374 := z.EncBinary()
_ = yym374
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq369[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym375 := z.EncBinary()
_ = yym375
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr369 || yy2arr369 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq369[2] {
yy377 := &x.ListMeta
yym378 := z.EncBinary()
_ = yym378
if false {
} else if z.HasExtensions() && z.EncExt(yy377) {
} else {
z.EncFallback(yy377)
}
} else {
r.EncodeNil()
}
} else {
if yyq369[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy379 := &x.ListMeta
yym380 := z.EncBinary()
_ = yym380
if false {
} else if z.HasExtensions() && z.EncExt(yy379) {
} else {
z.EncFallback(yy379)
}
}
}
if yyr369 || yy2arr369 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym382 := z.EncBinary()
_ = yym382
if false {
} else {
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym383 := z.EncBinary()
_ = yym383
if false {
} else {
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
}
}
}
if yyr369 || yy2arr369 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym384 := z.DecBinary()
_ = yym384
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct385 := r.ContainerType()
if yyct385 == codecSelferValueTypeMap1234 {
yyl385 := r.ReadMapStart()
if yyl385 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl385, d)
}
} else if yyct385 == codecSelferValueTypeArray1234 {
yyl385 := r.ReadArrayStart()
if yyl385 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl385, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys386Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys386Slc
var yyhl386 bool = l >= 0
for yyj386 := 0; ; yyj386++ {
if yyhl386 {
if yyj386 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys386Slc = r.DecodeBytes(yys386Slc, true, true)
yys386 := string(yys386Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys386 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv389 := &x.ListMeta
yym390 := z.DecBinary()
_ = yym390
if false {
} else if z.HasExtensions() && z.DecExt(yyv389) {
} else {
z.DecFallback(yyv389, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv391 := &x.Items
yym392 := z.DecBinary()
_ = yym392
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv391), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys386)
} // end switch yys386
} // end for yyj386
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj393 int
var yyb393 bool
var yyhl393 bool = l >= 0
yyj393++
if yyhl393 {
yyb393 = yyj393 > l
} else {
yyb393 = r.CheckBreak()
}
if yyb393 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj393++
if yyhl393 {
yyb393 = yyj393 > l
} else {
yyb393 = r.CheckBreak()
}
if yyb393 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj393++
if yyhl393 {
yyb393 = yyj393 > l
} else {
yyb393 = r.CheckBreak()
}
if yyb393 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv396 := &x.ListMeta
yym397 := z.DecBinary()
_ = yym397
if false {
} else if z.HasExtensions() && z.DecExt(yyv396) {
} else {
z.DecFallback(yyv396, false)
}
}
yyj393++
if yyhl393 {
yyb393 = yyj393 > l
} else {
yyb393 = r.CheckBreak()
}
if yyb393 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv398 := &x.Items
yym399 := z.DecBinary()
_ = yym399
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv398), d)
}
}
for {
yyj393++
if yyhl393 {
yyb393 = yyj393 > l
} else {
yyb393 = r.CheckBreak()
}
if yyb393 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj393-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeClaim) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym400 := z.EncBinary()
_ = yym400
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep401 := !z.EncBinary()
yy2arr401 := z.EncBasicHandle().StructToArray
var yyq401 [5]bool
_, _, _ = yysep401, yyq401, yy2arr401
const yyr401 bool = false
yyq401[0] = x.Kind != ""
yyq401[1] = x.APIVersion != ""
yyq401[2] = true
yyq401[3] = true
yyq401[4] = true
var yynn401 int
if yyr401 || yy2arr401 {
r.EncodeArrayStart(5)
} else {
yynn401 = 0
for _, b := range yyq401 {
if b {
yynn401++
}
}
r.EncodeMapStart(yynn401)
yynn401 = 0
}
if yyr401 || yy2arr401 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq401[0] {
yym403 := z.EncBinary()
_ = yym403
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq401[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym404 := z.EncBinary()
_ = yym404
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr401 || yy2arr401 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq401[1] {
yym406 := z.EncBinary()
_ = yym406
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq401[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym407 := z.EncBinary()
_ = yym407
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr401 || yy2arr401 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq401[2] {
yy409 := &x.ObjectMeta
yy409.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq401[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy410 := &x.ObjectMeta
yy410.CodecEncodeSelf(e)
}
}
if yyr401 || yy2arr401 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq401[3] {
yy412 := &x.Spec
yy412.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq401[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy413 := &x.Spec
yy413.CodecEncodeSelf(e)
}
}
if yyr401 || yy2arr401 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq401[4] {
yy415 := &x.Status
yy415.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq401[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy416 := &x.Status
yy416.CodecEncodeSelf(e)
}
}
if yyr401 || yy2arr401 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeClaim) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym417 := z.DecBinary()
_ = yym417
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct418 := r.ContainerType()
if yyct418 == codecSelferValueTypeMap1234 {
yyl418 := r.ReadMapStart()
if yyl418 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl418, d)
}
} else if yyct418 == codecSelferValueTypeArray1234 {
yyl418 := r.ReadArrayStart()
if yyl418 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl418, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeClaim) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys419Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys419Slc
var yyhl419 bool = l >= 0
for yyj419 := 0; ; yyj419++ {
if yyhl419 {
if yyj419 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys419Slc = r.DecodeBytes(yys419Slc, true, true)
yys419 := string(yys419Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys419 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv422 := &x.ObjectMeta
yyv422.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeClaimSpec{}
} else {
yyv423 := &x.Spec
yyv423.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeClaimStatus{}
} else {
yyv424 := &x.Status
yyv424.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys419)
} // end switch yys419
} // end for yyj419
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeClaim) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj425 int
var yyb425 bool
var yyhl425 bool = l >= 0
yyj425++
if yyhl425 {
yyb425 = yyj425 > l
} else {
yyb425 = r.CheckBreak()
}
if yyb425 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj425++
if yyhl425 {
yyb425 = yyj425 > l
} else {
yyb425 = r.CheckBreak()
}
if yyb425 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj425++
if yyhl425 {
yyb425 = yyj425 > l
} else {
yyb425 = r.CheckBreak()
}
if yyb425 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv428 := &x.ObjectMeta
yyv428.CodecDecodeSelf(d)
}
yyj425++
if yyhl425 {
yyb425 = yyj425 > l
} else {
yyb425 = r.CheckBreak()
}
if yyb425 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeClaimSpec{}
} else {
yyv429 := &x.Spec
yyv429.CodecDecodeSelf(d)
}
yyj425++
if yyhl425 {
yyb425 = yyj425 > l
} else {
yyb425 = r.CheckBreak()
}
if yyb425 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeClaimStatus{}
} else {
yyv430 := &x.Status
yyv430.CodecDecodeSelf(d)
}
for {
yyj425++
if yyhl425 {
yyb425 = yyj425 > l
} else {
yyb425 = r.CheckBreak()
}
if yyb425 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj425-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym431 := z.EncBinary()
_ = yym431
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep432 := !z.EncBinary()
yy2arr432 := z.EncBasicHandle().StructToArray
var yyq432 [4]bool
_, _, _ = yysep432, yyq432, yy2arr432
const yyr432 bool = false
yyq432[0] = x.Kind != ""
yyq432[1] = x.APIVersion != ""
yyq432[2] = true
var yynn432 int
if yyr432 || yy2arr432 {
r.EncodeArrayStart(4)
} else {
yynn432 = 1
for _, b := range yyq432 {
if b {
yynn432++
}
}
r.EncodeMapStart(yynn432)
yynn432 = 0
}
if yyr432 || yy2arr432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq432[0] {
yym434 := z.EncBinary()
_ = yym434
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq432[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym435 := z.EncBinary()
_ = yym435
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr432 || yy2arr432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq432[1] {
yym437 := z.EncBinary()
_ = yym437
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq432[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym438 := z.EncBinary()
_ = yym438
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr432 || yy2arr432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq432[2] {
yy440 := &x.ListMeta
yym441 := z.EncBinary()
_ = yym441
if false {
} else if z.HasExtensions() && z.EncExt(yy440) {
} else {
z.EncFallback(yy440)
}
} else {
r.EncodeNil()
}
} else {
if yyq432[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy442 := &x.ListMeta
yym443 := z.EncBinary()
_ = yym443
if false {
} else if z.HasExtensions() && z.EncExt(yy442) {
} else {
z.EncFallback(yy442)
}
}
}
if yyr432 || yy2arr432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym445 := z.EncBinary()
_ = yym445
if false {
} else {
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym446 := z.EncBinary()
_ = yym446
if false {
} else {
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
}
}
}
if yyr432 || yy2arr432 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeClaimList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym447 := z.DecBinary()
_ = yym447
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct448 := r.ContainerType()
if yyct448 == codecSelferValueTypeMap1234 {
yyl448 := r.ReadMapStart()
if yyl448 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl448, d)
}
} else if yyct448 == codecSelferValueTypeArray1234 {
yyl448 := r.ReadArrayStart()
if yyl448 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl448, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeClaimList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys449Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys449Slc
var yyhl449 bool = l >= 0
for yyj449 := 0; ; yyj449++ {
if yyhl449 {
if yyj449 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys449Slc = r.DecodeBytes(yys449Slc, true, true)
yys449 := string(yys449Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys449 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv452 := &x.ListMeta
yym453 := z.DecBinary()
_ = yym453
if false {
} else if z.HasExtensions() && z.DecExt(yyv452) {
} else {
z.DecFallback(yyv452, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv454 := &x.Items
yym455 := z.DecBinary()
_ = yym455
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv454), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys449)
} // end switch yys449
} // end for yyj449
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeClaimList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj456 int
var yyb456 bool
var yyhl456 bool = l >= 0
yyj456++
if yyhl456 {
yyb456 = yyj456 > l
} else {
yyb456 = r.CheckBreak()
}
if yyb456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj456++
if yyhl456 {
yyb456 = yyj456 > l
} else {
yyb456 = r.CheckBreak()
}
if yyb456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj456++
if yyhl456 {
yyb456 = yyj456 > l
} else {
yyb456 = r.CheckBreak()
}
if yyb456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv459 := &x.ListMeta
yym460 := z.DecBinary()
_ = yym460
if false {
} else if z.HasExtensions() && z.DecExt(yyv459) {
} else {
z.DecFallback(yyv459, false)
}
}
yyj456++
if yyhl456 {
yyb456 = yyj456 > l
} else {
yyb456 = r.CheckBreak()
}
if yyb456 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv461 := &x.Items
yym462 := z.DecBinary()
_ = yym462
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv461), d)
}
}
for {
yyj456++
if yyhl456 {
yyb456 = yyj456 > l
} else {
yyb456 = r.CheckBreak()
}
if yyb456 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj456-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeClaimSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym463 := z.EncBinary()
_ = yym463
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep464 := !z.EncBinary()
yy2arr464 := z.EncBasicHandle().StructToArray
var yyq464 [3]bool
_, _, _ = yysep464, yyq464, yy2arr464
const yyr464 bool = false
yyq464[0] = len(x.AccessModes) != 0
yyq464[1] = true
yyq464[2] = x.VolumeName != ""
var yynn464 int
if yyr464 || yy2arr464 {
r.EncodeArrayStart(3)
} else {
yynn464 = 0
for _, b := range yyq464 {
if b {
yynn464++
}
}
r.EncodeMapStart(yynn464)
yynn464 = 0
}
if yyr464 || yy2arr464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq464[0] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym466 := z.EncBinary()
_ = yym466
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq464[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym467 := z.EncBinary()
_ = yym467
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr464 || yy2arr464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq464[1] {
yy469 := &x.Resources
yy469.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq464[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy470 := &x.Resources
yy470.CodecEncodeSelf(e)
}
}
if yyr464 || yy2arr464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq464[2] {
yym472 := z.EncBinary()
_ = yym472
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq464[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym473 := z.EncBinary()
_ = yym473
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
}
}
if yyr464 || yy2arr464 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeClaimSpec) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym474 := z.DecBinary()
_ = yym474
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct475 := r.ContainerType()
if yyct475 == codecSelferValueTypeMap1234 {
yyl475 := r.ReadMapStart()
if yyl475 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl475, d)
}
} else if yyct475 == codecSelferValueTypeArray1234 {
yyl475 := r.ReadArrayStart()
if yyl475 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl475, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys476Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys476Slc
var yyhl476 bool = l >= 0
for yyj476 := 0; ; yyj476++ {
if yyhl476 {
if yyj476 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys476Slc = r.DecodeBytes(yys476Slc, true, true)
yys476 := string(yys476Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys476 {
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv477 := &x.AccessModes
yym478 := z.DecBinary()
_ = yym478
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv477), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv479 := &x.Resources
yyv479.CodecDecodeSelf(d)
}
case "volumeName":
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys476)
} // end switch yys476
} // end for yyj476
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeClaimSpec) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj481 int
var yyb481 bool
var yyhl481 bool = l >= 0
yyj481++
if yyhl481 {
yyb481 = yyj481 > l
} else {
yyb481 = r.CheckBreak()
}
if yyb481 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv482 := &x.AccessModes
yym483 := z.DecBinary()
_ = yym483
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv482), d)
}
}
yyj481++
if yyhl481 {
yyb481 = yyj481 > l
} else {
yyb481 = r.CheckBreak()
}
if yyb481 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv484 := &x.Resources
yyv484.CodecDecodeSelf(d)
}
yyj481++
if yyhl481 {
yyb481 = yyj481 > l
} else {
yyb481 = r.CheckBreak()
}
if yyb481 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
for {
yyj481++
if yyhl481 {
yyb481 = yyj481 > l
} else {
yyb481 = r.CheckBreak()
}
if yyb481 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj481-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PersistentVolumeClaimStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym486 := z.EncBinary()
_ = yym486
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep487 := !z.EncBinary()
yy2arr487 := z.EncBasicHandle().StructToArray
var yyq487 [3]bool
_, _, _ = yysep487, yyq487, yy2arr487
const yyr487 bool = false
yyq487[0] = x.Phase != ""
yyq487[1] = len(x.AccessModes) != 0
yyq487[2] = len(x.Capacity) != 0
var yynn487 int
if yyr487 || yy2arr487 {
r.EncodeArrayStart(3)
} else {
yynn487 = 0
for _, b := range yyq487 {
if b {
yynn487++
}
}
r.EncodeMapStart(yynn487)
yynn487 = 0
}
if yyr487 || yy2arr487 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq487[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq487[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr487 || yy2arr487 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq487[1] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym490 := z.EncBinary()
_ = yym490
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq487[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym491 := z.EncBinary()
_ = yym491
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr487 || yy2arr487 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq487[2] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq487[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("capacity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
}
}
if yyr487 || yy2arr487 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PersistentVolumeClaimStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym493 := z.DecBinary()
_ = yym493
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct494 := r.ContainerType()
if yyct494 == codecSelferValueTypeMap1234 {
yyl494 := r.ReadMapStart()
if yyl494 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl494, d)
}
} else if yyct494 == codecSelferValueTypeArray1234 {
yyl494 := r.ReadArrayStart()
if yyl494 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl494, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys495Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys495Slc
var yyhl495 bool = l >= 0
for yyj495 := 0; ; yyj495++ {
if yyhl495 {
if yyj495 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys495Slc = r.DecodeBytes(yys495Slc, true, true)
yys495 := string(yys495Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys495 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv497 := &x.AccessModes
yym498 := z.DecBinary()
_ = yym498
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv497), d)
}
}
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv499 := &x.Capacity
yyv499.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys495)
} // end switch yys495
} // end for yyj495
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PersistentVolumeClaimStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj500 int
var yyb500 bool
var yyhl500 bool = l >= 0
yyj500++
if yyhl500 {
yyb500 = yyj500 > l
} else {
yyb500 = r.CheckBreak()
}
if yyb500 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
yyj500++
if yyhl500 {
yyb500 = yyj500 > l
} else {
yyb500 = r.CheckBreak()
}
if yyb500 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv502 := &x.AccessModes
yym503 := z.DecBinary()
_ = yym503
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv502), d)
}
}
yyj500++
if yyhl500 {
yyb500 = yyj500 > l
} else {
yyb500 = r.CheckBreak()
}
if yyb500 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv504 := &x.Capacity
yyv504.CodecDecodeSelf(d)
}
for {
yyj500++
if yyhl500 {
yyb500 = yyj500 > l
} else {
yyb500 = r.CheckBreak()
}
if yyb500 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj500-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym505 := z.EncBinary()
_ = yym505
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *PersistentVolumeAccessMode) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym506 := z.DecBinary()
_ = yym506
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x PersistentVolumePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym507 := z.EncBinary()
_ = yym507
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *PersistentVolumePhase) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym508 := z.DecBinary()
_ = yym508
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x PersistentVolumeClaimPhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym509 := z.EncBinary()
_ = yym509
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *PersistentVolumeClaimPhase) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym510 := z.DecBinary()
_ = yym510
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *HostPathVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym511 := z.EncBinary()
_ = yym511
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep512 := !z.EncBinary()
yy2arr512 := z.EncBasicHandle().StructToArray
var yyq512 [1]bool
_, _, _ = yysep512, yyq512, yy2arr512
const yyr512 bool = false
var yynn512 int
if yyr512 || yy2arr512 {
r.EncodeArrayStart(1)
} else {
yynn512 = 1
for _, b := range yyq512 {
if b {
yynn512++
}
}
r.EncodeMapStart(yynn512)
yynn512 = 0
}
if yyr512 || yy2arr512 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym514 := z.EncBinary()
_ = yym514
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym515 := z.EncBinary()
_ = yym515
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr512 || yy2arr512 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HostPathVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym516 := z.DecBinary()
_ = yym516
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct517 := r.ContainerType()
if yyct517 == codecSelferValueTypeMap1234 {
yyl517 := r.ReadMapStart()
if yyl517 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl517, d)
}
} else if yyct517 == codecSelferValueTypeArray1234 {
yyl517 := r.ReadArrayStart()
if yyl517 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl517, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HostPathVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys518Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys518Slc
var yyhl518 bool = l >= 0
for yyj518 := 0; ; yyj518++ {
if yyhl518 {
if yyj518 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys518Slc = r.DecodeBytes(yys518Slc, true, true)
yys518 := string(yys518Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys518 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys518)
} // end switch yys518
} // end for yyj518
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HostPathVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj520 int
var yyb520 bool
var yyhl520 bool = l >= 0
yyj520++
if yyhl520 {
yyb520 = yyj520 > l
} else {
yyb520 = r.CheckBreak()
}
if yyb520 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj520++
if yyhl520 {
yyb520 = yyj520 > l
} else {
yyb520 = r.CheckBreak()
}
if yyb520 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj520-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EmptyDirVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym522 := z.EncBinary()
_ = yym522
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep523 := !z.EncBinary()
yy2arr523 := z.EncBasicHandle().StructToArray
var yyq523 [1]bool
_, _, _ = yysep523, yyq523, yy2arr523
const yyr523 bool = false
yyq523[0] = x.Medium != ""
var yynn523 int
if yyr523 || yy2arr523 {
r.EncodeArrayStart(1)
} else {
yynn523 = 0
for _, b := range yyq523 {
if b {
yynn523++
}
}
r.EncodeMapStart(yynn523)
yynn523 = 0
}
if yyr523 || yy2arr523 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq523[0] {
x.Medium.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq523[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("medium"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Medium.CodecEncodeSelf(e)
}
}
if yyr523 || yy2arr523 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *EmptyDirVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym525 := z.DecBinary()
_ = yym525
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct526 := r.ContainerType()
if yyct526 == codecSelferValueTypeMap1234 {
yyl526 := r.ReadMapStart()
if yyl526 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl526, d)
}
} else if yyct526 == codecSelferValueTypeArray1234 {
yyl526 := r.ReadArrayStart()
if yyl526 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl526, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EmptyDirVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys527Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys527Slc
var yyhl527 bool = l >= 0
for yyj527 := 0; ; yyj527++ {
if yyhl527 {
if yyj527 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys527Slc = r.DecodeBytes(yys527Slc, true, true)
yys527 := string(yys527Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys527 {
case "medium":
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys527)
} // end switch yys527
} // end for yyj527
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *EmptyDirVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj529 int
var yyb529 bool
var yyhl529 bool = l >= 0
yyj529++
if yyhl529 {
yyb529 = yyj529 > l
} else {
yyb529 = r.CheckBreak()
}
if yyb529 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
for {
yyj529++
if yyhl529 {
yyb529 = yyj529 > l
} else {
yyb529 = r.CheckBreak()
}
if yyb529 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj529-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym531 := z.EncBinary()
_ = yym531
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *StorageMedium) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym532 := z.DecBinary()
_ = yym532
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x Protocol) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym533 := z.EncBinary()
_ = yym533
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *Protocol) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym534 := z.DecBinary()
_ = yym534
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *GCEPersistentDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym535 := z.EncBinary()
_ = yym535
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep536 := !z.EncBinary()
yy2arr536 := z.EncBasicHandle().StructToArray
var yyq536 [4]bool
_, _, _ = yysep536, yyq536, yy2arr536
const yyr536 bool = false
yyq536[1] = x.FSType != ""
yyq536[2] = x.Partition != 0
yyq536[3] = x.ReadOnly != false
var yynn536 int
if yyr536 || yy2arr536 {
r.EncodeArrayStart(4)
} else {
yynn536 = 1
for _, b := range yyq536 {
if b {
yynn536++
}
}
r.EncodeMapStart(yynn536)
yynn536 = 0
}
if yyr536 || yy2arr536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym538 := z.EncBinary()
_ = yym538
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("pdName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym539 := z.EncBinary()
_ = yym539
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
}
}
if yyr536 || yy2arr536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq536[1] {
yym541 := z.EncBinary()
_ = yym541
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq536[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym542 := z.EncBinary()
_ = yym542
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr536 || yy2arr536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq536[2] {
yym544 := z.EncBinary()
_ = yym544
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq536[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym545 := z.EncBinary()
_ = yym545
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr536 || yy2arr536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq536[3] {
yym547 := z.EncBinary()
_ = yym547
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq536[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym548 := z.EncBinary()
_ = yym548
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr536 || yy2arr536 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *GCEPersistentDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym549 := z.DecBinary()
_ = yym549
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct550 := r.ContainerType()
if yyct550 == codecSelferValueTypeMap1234 {
yyl550 := r.ReadMapStart()
if yyl550 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl550, d)
}
} else if yyct550 == codecSelferValueTypeArray1234 {
yyl550 := r.ReadArrayStart()
if yyl550 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl550, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys551Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys551Slc
var yyhl551 bool = l >= 0
for yyj551 := 0; ; yyj551++ {
if yyhl551 {
if yyj551 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys551Slc = r.DecodeBytes(yys551Slc, true, true)
yys551 := string(yys551Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys551 {
case "pdName":
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys551)
} // end switch yys551
} // end for yyj551
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *GCEPersistentDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj556 int
var yyb556 bool
var yyhl556 bool = l >= 0
yyj556++
if yyhl556 {
yyb556 = yyj556 > l
} else {
yyb556 = r.CheckBreak()
}
if yyb556 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
yyj556++
if yyhl556 {
yyb556 = yyj556 > l
} else {
yyb556 = r.CheckBreak()
}
if yyb556 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj556++
if yyhl556 {
yyb556 = yyj556 > l
} else {
yyb556 = r.CheckBreak()
}
if yyb556 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj556++
if yyhl556 {
yyb556 = yyj556 > l
} else {
yyb556 = r.CheckBreak()
}
if yyb556 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj556++
if yyhl556 {
yyb556 = yyj556 > l
} else {
yyb556 = r.CheckBreak()
}
if yyb556 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj556-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ISCSIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym561 := z.EncBinary()
_ = yym561
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep562 := !z.EncBinary()
yy2arr562 := z.EncBasicHandle().StructToArray
var yyq562 [6]bool
_, _, _ = yysep562, yyq562, yy2arr562
const yyr562 bool = false
yyq562[0] = x.TargetPortal != ""
yyq562[1] = x.IQN != ""
yyq562[2] = x.Lun != 0
yyq562[3] = x.ISCSIInterface != ""
yyq562[4] = x.FSType != ""
yyq562[5] = x.ReadOnly != false
var yynn562 int
if yyr562 || yy2arr562 {
r.EncodeArrayStart(6)
} else {
yynn562 = 0
for _, b := range yyq562 {
if b {
yynn562++
}
}
r.EncodeMapStart(yynn562)
yynn562 = 0
}
if yyr562 || yy2arr562 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq562[0] {
yym564 := z.EncBinary()
_ = yym564
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq562[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym565 := z.EncBinary()
_ = yym565
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
}
}
if yyr562 || yy2arr562 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq562[1] {
yym567 := z.EncBinary()
_ = yym567
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq562[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iqn"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym568 := z.EncBinary()
_ = yym568
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
}
}
if yyr562 || yy2arr562 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq562[2] {
yym570 := z.EncBinary()
_ = yym570
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq562[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym571 := z.EncBinary()
_ = yym571
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
}
}
if yyr562 || yy2arr562 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq562[3] {
yym573 := z.EncBinary()
_ = yym573
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq562[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym574 := z.EncBinary()
_ = yym574
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
}
}
if yyr562 || yy2arr562 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq562[4] {
yym576 := z.EncBinary()
_ = yym576
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq562[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym577 := z.EncBinary()
_ = yym577
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr562 || yy2arr562 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq562[5] {
yym579 := z.EncBinary()
_ = yym579
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq562[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym580 := z.EncBinary()
_ = yym580
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr562 || yy2arr562 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ISCSIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym581 := z.DecBinary()
_ = yym581
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct582 := r.ContainerType()
if yyct582 == codecSelferValueTypeMap1234 {
yyl582 := r.ReadMapStart()
if yyl582 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl582, d)
}
} else if yyct582 == codecSelferValueTypeArray1234 {
yyl582 := r.ReadArrayStart()
if yyl582 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl582, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ISCSIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys583Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys583Slc
var yyhl583 bool = l >= 0
for yyj583 := 0; ; yyj583++ {
if yyhl583 {
if yyj583 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys583Slc = r.DecodeBytes(yys583Slc, true, true)
yys583 := string(yys583Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys583 {
case "targetPortal":
if r.TryDecodeAsNil() {
x.TargetPortal = ""
} else {
x.TargetPortal = string(r.DecodeString())
}
case "iqn":
if r.TryDecodeAsNil() {
x.IQN = ""
} else {
x.IQN = string(r.DecodeString())
}
case "lun":
if r.TryDecodeAsNil() {
x.Lun = 0
} else {
x.Lun = int(r.DecodeInt(codecSelferBitsize1234))
}
case "iscsiInterface":
if r.TryDecodeAsNil() {
x.ISCSIInterface = ""
} else {
x.ISCSIInterface = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys583)
} // end switch yys583
} // end for yyj583
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ISCSIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj590 int
var yyb590 bool
var yyhl590 bool = l >= 0
yyj590++
if yyhl590 {
yyb590 = yyj590 > l
} else {
yyb590 = r.CheckBreak()
}
if yyb590 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPortal = ""
} else {
x.TargetPortal = string(r.DecodeString())
}
yyj590++
if yyhl590 {
yyb590 = yyj590 > l
} else {
yyb590 = r.CheckBreak()
}
if yyb590 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IQN = ""
} else {
x.IQN = string(r.DecodeString())
}
yyj590++
if yyhl590 {
yyb590 = yyj590 > l
} else {
yyb590 = r.CheckBreak()
}
if yyb590 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Lun = 0
} else {
x.Lun = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj590++
if yyhl590 {
yyb590 = yyj590 > l
} else {
yyb590 = r.CheckBreak()
}
if yyb590 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ISCSIInterface = ""
} else {
x.ISCSIInterface = string(r.DecodeString())
}
yyj590++
if yyhl590 {
yyb590 = yyj590 > l
} else {
yyb590 = r.CheckBreak()
}
if yyb590 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj590++
if yyhl590 {
yyb590 = yyj590 > l
} else {
yyb590 = r.CheckBreak()
}
if yyb590 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj590++
if yyhl590 {
yyb590 = yyj590 > l
} else {
yyb590 = r.CheckBreak()
}
if yyb590 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj590-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *FCVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym597 := z.EncBinary()
_ = yym597
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep598 := !z.EncBinary()
yy2arr598 := z.EncBasicHandle().StructToArray
var yyq598 [4]bool
_, _, _ = yysep598, yyq598, yy2arr598
const yyr598 bool = false
yyq598[3] = x.ReadOnly != false
var yynn598 int
if yyr598 || yy2arr598 {
r.EncodeArrayStart(4)
} else {
yynn598 = 3
for _, b := range yyq598 {
if b {
yynn598++
}
}
r.EncodeMapStart(yynn598)
yynn598 = 0
}
if yyr598 || yy2arr598 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TargetWWNs == nil {
r.EncodeNil()
} else {
yym600 := z.EncBinary()
_ = yym600
if false {
} else {
z.F.EncSliceStringV(x.TargetWWNs, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetWWNs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TargetWWNs == nil {
r.EncodeNil()
} else {
yym601 := z.EncBinary()
_ = yym601
if false {
} else {
z.F.EncSliceStringV(x.TargetWWNs, false, e)
}
}
}
if yyr598 || yy2arr598 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy603 := *x.Lun
yym604 := z.EncBinary()
_ = yym604
if false {
} else {
r.EncodeInt(int64(yy603))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy605 := *x.Lun
yym606 := z.EncBinary()
_ = yym606
if false {
} else {
r.EncodeInt(int64(yy605))
}
}
}
if yyr598 || yy2arr598 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym608 := z.EncBinary()
_ = yym608
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym609 := z.EncBinary()
_ = yym609
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
if yyr598 || yy2arr598 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq598[3] {
yym611 := z.EncBinary()
_ = yym611
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq598[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym612 := z.EncBinary()
_ = yym612
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr598 || yy2arr598 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *FCVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym613 := z.DecBinary()
_ = yym613
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct614 := r.ContainerType()
if yyct614 == codecSelferValueTypeMap1234 {
yyl614 := r.ReadMapStart()
if yyl614 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl614, d)
}
} else if yyct614 == codecSelferValueTypeArray1234 {
yyl614 := r.ReadArrayStart()
if yyl614 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl614, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys615Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys615Slc
var yyhl615 bool = l >= 0
for yyj615 := 0; ; yyj615++ {
if yyhl615 {
if yyj615 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys615Slc = r.DecodeBytes(yys615Slc, true, true)
yys615 := string(yys615Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys615 {
case "targetWWNs":
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv616 := &x.TargetWWNs
yym617 := z.DecBinary()
_ = yym617
if false {
} else {
z.F.DecSliceStringX(yyv616, false, d)
}
}
case "lun":
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int)
}
yym619 := z.DecBinary()
_ = yym619
if false {
} else {
*((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234))
}
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys615)
} // end switch yys615
} // end for yyj615
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *FCVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj622 int
var yyb622 bool
var yyhl622 bool = l >= 0
yyj622++
if yyhl622 {
yyb622 = yyj622 > l
} else {
yyb622 = r.CheckBreak()
}
if yyb622 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv623 := &x.TargetWWNs
yym624 := z.DecBinary()
_ = yym624
if false {
} else {
z.F.DecSliceStringX(yyv623, false, d)
}
}
yyj622++
if yyhl622 {
yyb622 = yyj622 > l
} else {
yyb622 = r.CheckBreak()
}
if yyb622 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int)
}
yym626 := z.DecBinary()
_ = yym626
if false {
} else {
*((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234))
}
}
yyj622++
if yyhl622 {
yyb622 = yyj622 > l
} else {
yyb622 = r.CheckBreak()
}
if yyb622 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj622++
if yyhl622 {
yyb622 = yyj622 > l
} else {
yyb622 = r.CheckBreak()
}
if yyb622 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj622++
if yyhl622 {
yyb622 = yyj622 > l
} else {
yyb622 = r.CheckBreak()
}
if yyb622 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj622-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *FlexVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym629 := z.EncBinary()
_ = yym629
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep630 := !z.EncBinary()
yy2arr630 := z.EncBasicHandle().StructToArray
var yyq630 [5]bool
_, _, _ = yysep630, yyq630, yy2arr630
const yyr630 bool = false
yyq630[1] = x.FSType != ""
yyq630[2] = x.SecretRef != nil
yyq630[3] = x.ReadOnly != false
yyq630[4] = len(x.Options) != 0
var yynn630 int
if yyr630 || yy2arr630 {
r.EncodeArrayStart(5)
} else {
yynn630 = 1
for _, b := range yyq630 {
if b {
yynn630++
}
}
r.EncodeMapStart(yynn630)
yynn630 = 0
}
if yyr630 || yy2arr630 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym632 := z.EncBinary()
_ = yym632
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("driver"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym633 := z.EncBinary()
_ = yym633
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
}
}
if yyr630 || yy2arr630 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq630[1] {
yym635 := z.EncBinary()
_ = yym635
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq630[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym636 := z.EncBinary()
_ = yym636
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr630 || yy2arr630 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq630[2] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq630[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr630 || yy2arr630 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq630[3] {
yym639 := z.EncBinary()
_ = yym639
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq630[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym640 := z.EncBinary()
_ = yym640
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr630 || yy2arr630 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq630[4] {
if x.Options == nil {
r.EncodeNil()
} else {
yym642 := z.EncBinary()
_ = yym642
if false {
} else {
z.F.EncMapStringStringV(x.Options, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq630[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("options"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Options == nil {
r.EncodeNil()
} else {
yym643 := z.EncBinary()
_ = yym643
if false {
} else {
z.F.EncMapStringStringV(x.Options, false, e)
}
}
}
}
if yyr630 || yy2arr630 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *FlexVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym644 := z.DecBinary()
_ = yym644
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct645 := r.ContainerType()
if yyct645 == codecSelferValueTypeMap1234 {
yyl645 := r.ReadMapStart()
if yyl645 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl645, d)
}
} else if yyct645 == codecSelferValueTypeArray1234 {
yyl645 := r.ReadArrayStart()
if yyl645 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl645, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *FlexVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys646Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys646Slc
var yyhl646 bool = l >= 0
for yyj646 := 0; ; yyj646++ {
if yyhl646 {
if yyj646 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys646Slc = r.DecodeBytes(yys646Slc, true, true)
yys646 := string(yys646Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys646 {
case "driver":
if r.TryDecodeAsNil() {
x.Driver = ""
} else {
x.Driver = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "options":
if r.TryDecodeAsNil() {
x.Options = nil
} else {
yyv651 := &x.Options
yym652 := z.DecBinary()
_ = yym652
if false {
} else {
z.F.DecMapStringStringX(yyv651, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys646)
} // end switch yys646
} // end for yyj646
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *FlexVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj653 int
var yyb653 bool
var yyhl653 bool = l >= 0
yyj653++
if yyhl653 {
yyb653 = yyj653 > l
} else {
yyb653 = r.CheckBreak()
}
if yyb653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Driver = ""
} else {
x.Driver = string(r.DecodeString())
}
yyj653++
if yyhl653 {
yyb653 = yyj653 > l
} else {
yyb653 = r.CheckBreak()
}
if yyb653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj653++
if yyhl653 {
yyb653 = yyj653 > l
} else {
yyb653 = r.CheckBreak()
}
if yyb653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
yyj653++
if yyhl653 {
yyb653 = yyj653 > l
} else {
yyb653 = r.CheckBreak()
}
if yyb653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj653++
if yyhl653 {
yyb653 = yyj653 > l
} else {
yyb653 = r.CheckBreak()
}
if yyb653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Options = nil
} else {
yyv658 := &x.Options
yym659 := z.DecBinary()
_ = yym659
if false {
} else {
z.F.DecMapStringStringX(yyv658, false, d)
}
}
for {
yyj653++
if yyhl653 {
yyb653 = yyj653 > l
} else {
yyb653 = r.CheckBreak()
}
if yyb653 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj653-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym660 := z.EncBinary()
_ = yym660
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep661 := !z.EncBinary()
yy2arr661 := z.EncBasicHandle().StructToArray
var yyq661 [4]bool
_, _, _ = yysep661, yyq661, yy2arr661
const yyr661 bool = false
yyq661[1] = x.FSType != ""
yyq661[2] = x.Partition != 0
yyq661[3] = x.ReadOnly != false
var yynn661 int
if yyr661 || yy2arr661 {
r.EncodeArrayStart(4)
} else {
yynn661 = 1
for _, b := range yyq661 {
if b {
yynn661++
}
}
r.EncodeMapStart(yynn661)
yynn661 = 0
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym663 := z.EncBinary()
_ = yym663
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym664 := z.EncBinary()
_ = yym664
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq661[1] {
yym666 := z.EncBinary()
_ = yym666
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq661[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym667 := z.EncBinary()
_ = yym667
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq661[2] {
yym669 := z.EncBinary()
_ = yym669
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq661[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym670 := z.EncBinary()
_ = yym670
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq661[3] {
yym672 := z.EncBinary()
_ = yym672
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq661[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym673 := z.EncBinary()
_ = yym673
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AWSElasticBlockStoreVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym674 := z.DecBinary()
_ = yym674
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct675 := r.ContainerType()
if yyct675 == codecSelferValueTypeMap1234 {
yyl675 := r.ReadMapStart()
if yyl675 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl675, d)
}
} else if yyct675 == codecSelferValueTypeArray1234 {
yyl675 := r.ReadArrayStart()
if yyl675 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl675, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys676Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys676Slc
var yyhl676 bool = l >= 0
for yyj676 := 0; ; yyj676++ {
if yyhl676 {
if yyj676 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys676Slc = r.DecodeBytes(yys676Slc, true, true)
yys676 := string(yys676Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys676 {
case "volumeID":
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys676)
} // end switch yys676
} // end for yyj676
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AWSElasticBlockStoreVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj681 int
var yyb681 bool
var yyhl681 bool = l >= 0
yyj681++
if yyhl681 {
yyb681 = yyj681 > l
} else {
yyb681 = r.CheckBreak()
}
if yyb681 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj681++
if yyhl681 {
yyb681 = yyj681 > l
} else {
yyb681 = r.CheckBreak()
}
if yyb681 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj681++
if yyhl681 {
yyb681 = yyj681 > l
} else {
yyb681 = r.CheckBreak()
}
if yyb681 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj681++
if yyhl681 {
yyb681 = yyj681 > l
} else {
yyb681 = r.CheckBreak()
}
if yyb681 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj681++
if yyhl681 {
yyb681 = yyj681 > l
} else {
yyb681 = r.CheckBreak()
}
if yyb681 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj681-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *GitRepoVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym686 := z.EncBinary()
_ = yym686
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep687 := !z.EncBinary()
yy2arr687 := z.EncBasicHandle().StructToArray
var yyq687 [3]bool
_, _, _ = yysep687, yyq687, yy2arr687
const yyr687 bool = false
yyq687[1] = x.Revision != ""
yyq687[2] = x.Directory != ""
var yynn687 int
if yyr687 || yy2arr687 {
r.EncodeArrayStart(3)
} else {
yynn687 = 1
for _, b := range yyq687 {
if b {
yynn687++
}
}
r.EncodeMapStart(yynn687)
yynn687 = 0
}
if yyr687 || yy2arr687 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym689 := z.EncBinary()
_ = yym689
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("repository"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym690 := z.EncBinary()
_ = yym690
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
}
}
if yyr687 || yy2arr687 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq687[1] {
yym692 := z.EncBinary()
_ = yym692
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq687[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("revision"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym693 := z.EncBinary()
_ = yym693
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
}
}
if yyr687 || yy2arr687 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq687[2] {
yym695 := z.EncBinary()
_ = yym695
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq687[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("directory"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym696 := z.EncBinary()
_ = yym696
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
}
}
if yyr687 || yy2arr687 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *GitRepoVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym697 := z.DecBinary()
_ = yym697
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct698 := r.ContainerType()
if yyct698 == codecSelferValueTypeMap1234 {
yyl698 := r.ReadMapStart()
if yyl698 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl698, d)
}
} else if yyct698 == codecSelferValueTypeArray1234 {
yyl698 := r.ReadArrayStart()
if yyl698 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl698, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *GitRepoVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys699Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys699Slc
var yyhl699 bool = l >= 0
for yyj699 := 0; ; yyj699++ {
if yyhl699 {
if yyj699 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys699Slc = r.DecodeBytes(yys699Slc, true, true)
yys699 := string(yys699Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys699 {
case "repository":
if r.TryDecodeAsNil() {
x.Repository = ""
} else {
x.Repository = string(r.DecodeString())
}
case "revision":
if r.TryDecodeAsNil() {
x.Revision = ""
} else {
x.Revision = string(r.DecodeString())
}
case "directory":
if r.TryDecodeAsNil() {
x.Directory = ""
} else {
x.Directory = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys699)
} // end switch yys699
} // end for yyj699
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *GitRepoVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj703 int
var yyb703 bool
var yyhl703 bool = l >= 0
yyj703++
if yyhl703 {
yyb703 = yyj703 > l
} else {
yyb703 = r.CheckBreak()
}
if yyb703 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Repository = ""
} else {
x.Repository = string(r.DecodeString())
}
yyj703++
if yyhl703 {
yyb703 = yyj703 > l
} else {
yyb703 = r.CheckBreak()
}
if yyb703 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Revision = ""
} else {
x.Revision = string(r.DecodeString())
}
yyj703++
if yyhl703 {
yyb703 = yyj703 > l
} else {
yyb703 = r.CheckBreak()
}
if yyb703 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Directory = ""
} else {
x.Directory = string(r.DecodeString())
}
for {
yyj703++
if yyhl703 {
yyb703 = yyj703 > l
} else {
yyb703 = r.CheckBreak()
}
if yyb703 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj703-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *SecretVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym707 := z.EncBinary()
_ = yym707
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep708 := !z.EncBinary()
yy2arr708 := z.EncBasicHandle().StructToArray
var yyq708 [1]bool
_, _, _ = yysep708, yyq708, yy2arr708
const yyr708 bool = false
yyq708[0] = x.SecretName != ""
var yynn708 int
if yyr708 || yy2arr708 {
r.EncodeArrayStart(1)
} else {
yynn708 = 0
for _, b := range yyq708 {
if b {
yynn708++
}
}
r.EncodeMapStart(yynn708)
yynn708 = 0
}
if yyr708 || yy2arr708 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq708[0] {
yym710 := z.EncBinary()
_ = yym710
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq708[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym711 := z.EncBinary()
_ = yym711
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
}
if yyr708 || yy2arr708 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *SecretVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym712 := z.DecBinary()
_ = yym712
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct713 := r.ContainerType()
if yyct713 == codecSelferValueTypeMap1234 {
yyl713 := r.ReadMapStart()
if yyl713 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl713, d)
}
} else if yyct713 == codecSelferValueTypeArray1234 {
yyl713 := r.ReadArrayStart()
if yyl713 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl713, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *SecretVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys714Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys714Slc
var yyhl714 bool = l >= 0
for yyj714 := 0; ; yyj714++ {
if yyhl714 {
if yyj714 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys714Slc = r.DecodeBytes(yys714Slc, true, true)
yys714 := string(yys714Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys714 {
case "secretName":
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys714)
} // end switch yys714
} // end for yyj714
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *SecretVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj716 int
var yyb716 bool
var yyhl716 bool = l >= 0
yyj716++
if yyhl716 {
yyb716 = yyj716 > l
} else {
yyb716 = r.CheckBreak()
}
if yyb716 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
for {
yyj716++
if yyhl716 {
yyb716 = yyj716 > l
} else {
yyb716 = r.CheckBreak()
}
if yyb716 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj716-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym718 := z.EncBinary()
_ = yym718
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep719 := !z.EncBinary()
yy2arr719 := z.EncBasicHandle().StructToArray
var yyq719 [3]bool
_, _, _ = yysep719, yyq719, yy2arr719
const yyr719 bool = false
yyq719[2] = x.ReadOnly != false
var yynn719 int
if yyr719 || yy2arr719 {
r.EncodeArrayStart(3)
} else {
yynn719 = 2
for _, b := range yyq719 {
if b {
yynn719++
}
}
r.EncodeMapStart(yynn719)
yynn719 = 0
}
if yyr719 || yy2arr719 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym721 := z.EncBinary()
_ = yym721
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("server"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym722 := z.EncBinary()
_ = yym722
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
}
}
if yyr719 || yy2arr719 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym724 := z.EncBinary()
_ = yym724
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym725 := z.EncBinary()
_ = yym725
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr719 || yy2arr719 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq719[2] {
yym727 := z.EncBinary()
_ = yym727
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq719[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym728 := z.EncBinary()
_ = yym728
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr719 || yy2arr719 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym729 := z.DecBinary()
_ = yym729
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct730 := r.ContainerType()
if yyct730 == codecSelferValueTypeMap1234 {
yyl730 := r.ReadMapStart()
if yyl730 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl730, d)
}
} else if yyct730 == codecSelferValueTypeArray1234 {
yyl730 := r.ReadArrayStart()
if yyl730 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl730, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys731Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys731Slc
var yyhl731 bool = l >= 0
for yyj731 := 0; ; yyj731++ {
if yyhl731 {
if yyj731 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys731Slc = r.DecodeBytes(yys731Slc, true, true)
yys731 := string(yys731Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys731 {
case "server":
if r.TryDecodeAsNil() {
x.Server = ""
} else {
x.Server = string(r.DecodeString())
}
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys731)
} // end switch yys731
} // end for yyj731
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj735 int
var yyb735 bool
var yyhl735 bool = l >= 0
yyj735++
if yyhl735 {
yyb735 = yyj735 > l
} else {
yyb735 = r.CheckBreak()
}
if yyb735 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Server = ""
} else {
x.Server = string(r.DecodeString())
}
yyj735++
if yyhl735 {
yyb735 = yyj735 > l
} else {
yyb735 = r.CheckBreak()
}
if yyb735 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj735++
if yyhl735 {
yyb735 = yyj735 > l
} else {
yyb735 = r.CheckBreak()
}
if yyb735 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj735++
if yyhl735 {
yyb735 = yyj735 > l
} else {
yyb735 = r.CheckBreak()
}
if yyb735 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj735-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *GlusterfsVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym739 := z.EncBinary()
_ = yym739
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep740 := !z.EncBinary()
yy2arr740 := z.EncBasicHandle().StructToArray
var yyq740 [3]bool
_, _, _ = yysep740, yyq740, yy2arr740
const yyr740 bool = false
yyq740[2] = x.ReadOnly != false
var yynn740 int
if yyr740 || yy2arr740 {
r.EncodeArrayStart(3)
} else {
yynn740 = 2
for _, b := range yyq740 {
if b {
yynn740++
}
}
r.EncodeMapStart(yynn740)
yynn740 = 0
}
if yyr740 || yy2arr740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym742 := z.EncBinary()
_ = yym742
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("endpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym743 := z.EncBinary()
_ = yym743
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
}
}
if yyr740 || yy2arr740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym745 := z.EncBinary()
_ = yym745
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym746 := z.EncBinary()
_ = yym746
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr740 || yy2arr740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq740[2] {
yym748 := z.EncBinary()
_ = yym748
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq740[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym749 := z.EncBinary()
_ = yym749
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr740 || yy2arr740 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *GlusterfsVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym750 := z.DecBinary()
_ = yym750
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct751 := r.ContainerType()
if yyct751 == codecSelferValueTypeMap1234 {
yyl751 := r.ReadMapStart()
if yyl751 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl751, d)
}
} else if yyct751 == codecSelferValueTypeArray1234 {
yyl751 := r.ReadArrayStart()
if yyl751 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl751, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys752Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys752Slc
var yyhl752 bool = l >= 0
for yyj752 := 0; ; yyj752++ {
if yyhl752 {
if yyj752 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys752Slc = r.DecodeBytes(yys752Slc, true, true)
yys752 := string(yys752Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys752 {
case "endpoints":
if r.TryDecodeAsNil() {
x.EndpointsName = ""
} else {
x.EndpointsName = string(r.DecodeString())
}
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys752)
} // end switch yys752
} // end for yyj752
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *GlusterfsVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj756 int
var yyb756 bool
var yyhl756 bool = l >= 0
yyj756++
if yyhl756 {
yyb756 = yyj756 > l
} else {
yyb756 = r.CheckBreak()
}
if yyb756 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EndpointsName = ""
} else {
x.EndpointsName = string(r.DecodeString())
}
yyj756++
if yyhl756 {
yyb756 = yyj756 > l
} else {
yyb756 = r.CheckBreak()
}
if yyb756 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj756++
if yyhl756 {
yyb756 = yyj756 > l
} else {
yyb756 = r.CheckBreak()
}
if yyb756 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj756++
if yyhl756 {
yyb756 = yyj756 > l
} else {
yyb756 = r.CheckBreak()
}
if yyb756 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj756-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *RBDVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym760 := z.EncBinary()
_ = yym760
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep761 := !z.EncBinary()
yy2arr761 := z.EncBasicHandle().StructToArray
var yyq761 [8]bool
_, _, _ = yysep761, yyq761, yy2arr761
const yyr761 bool = false
yyq761[2] = x.FSType != ""
yyq761[7] = x.ReadOnly != false
var yynn761 int
if yyr761 || yy2arr761 {
r.EncodeArrayStart(8)
} else {
yynn761 = 6
for _, b := range yyq761 {
if b {
yynn761++
}
}
r.EncodeMapStart(yynn761)
yynn761 = 0
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.CephMonitors == nil {
r.EncodeNil()
} else {
yym763 := z.EncBinary()
_ = yym763
if false {
} else {
z.F.EncSliceStringV(x.CephMonitors, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("monitors"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CephMonitors == nil {
r.EncodeNil()
} else {
yym764 := z.EncBinary()
_ = yym764
if false {
} else {
z.F.EncSliceStringV(x.CephMonitors, false, e)
}
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym766 := z.EncBinary()
_ = yym766
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("image"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym767 := z.EncBinary()
_ = yym767
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq761[2] {
yym769 := z.EncBinary()
_ = yym769
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq761[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym770 := z.EncBinary()
_ = yym770
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym772 := z.EncBinary()
_ = yym772
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("pool"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym773 := z.EncBinary()
_ = yym773
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym775 := z.EncBinary()
_ = yym775
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym776 := z.EncBinary()
_ = yym776
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym778 := z.EncBinary()
_ = yym778
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("keyring"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym779 := z.EncBinary()
_ = yym779
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq761[7] {
yym782 := z.EncBinary()
_ = yym782
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq761[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym783 := z.EncBinary()
_ = yym783
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr761 || yy2arr761 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *RBDVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym784 := z.DecBinary()
_ = yym784
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct785 := r.ContainerType()
if yyct785 == codecSelferValueTypeMap1234 {
yyl785 := r.ReadMapStart()
if yyl785 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl785, d)
}
} else if yyct785 == codecSelferValueTypeArray1234 {
yyl785 := r.ReadArrayStart()
if yyl785 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl785, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *RBDVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys786Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys786Slc
var yyhl786 bool = l >= 0
for yyj786 := 0; ; yyj786++ {
if yyhl786 {
if yyj786 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys786Slc = r.DecodeBytes(yys786Slc, true, true)
yys786 := string(yys786Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys786 {
case "monitors":
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv787 := &x.CephMonitors
yym788 := z.DecBinary()
_ = yym788
if false {
} else {
z.F.DecSliceStringX(yyv787, false, d)
}
}
case "image":
if r.TryDecodeAsNil() {
x.RBDImage = ""
} else {
x.RBDImage = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "pool":
if r.TryDecodeAsNil() {
x.RBDPool = ""
} else {
x.RBDPool = string(r.DecodeString())
}
case "user":
if r.TryDecodeAsNil() {
x.RadosUser = ""
} else {
x.RadosUser = string(r.DecodeString())
}
case "keyring":
if r.TryDecodeAsNil() {
x.Keyring = ""
} else {
x.Keyring = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys786)
} // end switch yys786
} // end for yyj786
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *RBDVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj796 int
var yyb796 bool
var yyhl796 bool = l >= 0
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv797 := &x.CephMonitors
yym798 := z.DecBinary()
_ = yym798
if false {
} else {
z.F.DecSliceStringX(yyv797, false, d)
}
}
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDImage = ""
} else {
x.RBDImage = string(r.DecodeString())
}
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDPool = ""
} else {
x.RBDPool = string(r.DecodeString())
}
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RadosUser = ""
} else {
x.RadosUser = string(r.DecodeString())
}
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Keyring = ""
} else {
x.Keyring = string(r.DecodeString())
}
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj796++
if yyhl796 {
yyb796 = yyj796 > l
} else {
yyb796 = r.CheckBreak()
}
if yyb796 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj796-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *CinderVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym806 := z.EncBinary()
_ = yym806
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep807 := !z.EncBinary()
yy2arr807 := z.EncBasicHandle().StructToArray
var yyq807 [3]bool
_, _, _ = yysep807, yyq807, yy2arr807
const yyr807 bool = false
yyq807[1] = x.FSType != ""
yyq807[2] = x.ReadOnly != false
var yynn807 int
if yyr807 || yy2arr807 {
r.EncodeArrayStart(3)
} else {
yynn807 = 1
for _, b := range yyq807 {
if b {
yynn807++
}
}
r.EncodeMapStart(yynn807)
yynn807 = 0
}
if yyr807 || yy2arr807 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym809 := z.EncBinary()
_ = yym809
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym810 := z.EncBinary()
_ = yym810
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr807 || yy2arr807 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq807[1] {
yym812 := z.EncBinary()
_ = yym812
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq807[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym813 := z.EncBinary()
_ = yym813
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr807 || yy2arr807 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq807[2] {
yym815 := z.EncBinary()
_ = yym815
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq807[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym816 := z.EncBinary()
_ = yym816
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr807 || yy2arr807 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *CinderVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym817 := z.DecBinary()
_ = yym817
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct818 := r.ContainerType()
if yyct818 == codecSelferValueTypeMap1234 {
yyl818 := r.ReadMapStart()
if yyl818 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl818, d)
}
} else if yyct818 == codecSelferValueTypeArray1234 {
yyl818 := r.ReadArrayStart()
if yyl818 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl818, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *CinderVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys819Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys819Slc
var yyhl819 bool = l >= 0
for yyj819 := 0; ; yyj819++ {
if yyhl819 {
if yyj819 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys819Slc = r.DecodeBytes(yys819Slc, true, true)
yys819 := string(yys819Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys819 {
case "volumeID":
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys819)
} // end switch yys819
} // end for yyj819
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *CinderVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj823 int
var yyb823 bool
var yyhl823 bool = l >= 0
yyj823++
if yyhl823 {
yyb823 = yyj823 > l
} else {
yyb823 = r.CheckBreak()
}
if yyb823 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj823++
if yyhl823 {
yyb823 = yyj823 > l
} else {
yyb823 = r.CheckBreak()
}
if yyb823 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj823++
if yyhl823 {
yyb823 = yyj823 > l
} else {
yyb823 = r.CheckBreak()
}
if yyb823 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj823++
if yyhl823 {
yyb823 = yyj823 > l
} else {
yyb823 = r.CheckBreak()
}
if yyb823 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj823-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *CephFSVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym827 := z.EncBinary()
_ = yym827
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep828 := !z.EncBinary()
yy2arr828 := z.EncBasicHandle().StructToArray
var yyq828 [6]bool
_, _, _ = yysep828, yyq828, yy2arr828
const yyr828 bool = false
yyq828[1] = x.Path != ""
yyq828[2] = x.User != ""
yyq828[3] = x.SecretFile != ""
yyq828[4] = x.SecretRef != nil
yyq828[5] = x.ReadOnly != false
var yynn828 int
if yyr828 || yy2arr828 {
r.EncodeArrayStart(6)
} else {
yynn828 = 1
for _, b := range yyq828 {
if b {
yynn828++
}
}
r.EncodeMapStart(yynn828)
yynn828 = 0
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Monitors == nil {
r.EncodeNil()
} else {
yym830 := z.EncBinary()
_ = yym830
if false {
} else {
z.F.EncSliceStringV(x.Monitors, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("monitors"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Monitors == nil {
r.EncodeNil()
} else {
yym831 := z.EncBinary()
_ = yym831
if false {
} else {
z.F.EncSliceStringV(x.Monitors, false, e)
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[1] {
yym833 := z.EncBinary()
_ = yym833
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq828[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym834 := z.EncBinary()
_ = yym834
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[2] {
yym836 := z.EncBinary()
_ = yym836
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq828[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym837 := z.EncBinary()
_ = yym837
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[3] {
yym839 := z.EncBinary()
_ = yym839
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq828[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym840 := z.EncBinary()
_ = yym840
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[4] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq828[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[5] {
yym843 := z.EncBinary()
_ = yym843
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq828[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym844 := z.EncBinary()
_ = yym844
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *CephFSVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym845 := z.DecBinary()
_ = yym845
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct846 := r.ContainerType()
if yyct846 == codecSelferValueTypeMap1234 {
yyl846 := r.ReadMapStart()
if yyl846 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl846, d)
}
} else if yyct846 == codecSelferValueTypeArray1234 {
yyl846 := r.ReadArrayStart()
if yyl846 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl846, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *CephFSVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys847Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys847Slc
var yyhl847 bool = l >= 0
for yyj847 := 0; ; yyj847++ {
if yyhl847 {
if yyj847 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys847Slc = r.DecodeBytes(yys847Slc, true, true)
yys847 := string(yys847Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys847 {
case "monitors":
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv848 := &x.Monitors
yym849 := z.DecBinary()
_ = yym849
if false {
} else {
z.F.DecSliceStringX(yyv848, false, d)
}
}
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "user":
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
case "secretFile":
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys847)
} // end switch yys847
} // end for yyj847
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *CephFSVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj855 int
var yyb855 bool
var yyhl855 bool = l >= 0
yyj855++
if yyhl855 {
yyb855 = yyj855 > l
} else {
yyb855 = r.CheckBreak()
}
if yyb855 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv856 := &x.Monitors
yym857 := z.DecBinary()
_ = yym857
if false {
} else {
z.F.DecSliceStringX(yyv856, false, d)
}
}
yyj855++
if yyhl855 {
yyb855 = yyj855 > l
} else {
yyb855 = r.CheckBreak()
}
if yyb855 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj855++
if yyhl855 {
yyb855 = yyj855 > l
} else {
yyb855 = r.CheckBreak()
}
if yyb855 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj855++
if yyhl855 {
yyb855 = yyj855 > l
} else {
yyb855 = r.CheckBreak()
}
if yyb855 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
yyj855++
if yyhl855 {
yyb855 = yyj855 > l
} else {
yyb855 = r.CheckBreak()
}
if yyb855 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
yyj855++
if yyhl855 {
yyb855 = yyj855 > l
} else {
yyb855 = r.CheckBreak()
}
if yyb855 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj855++
if yyhl855 {
yyb855 = yyj855 > l
} else {
yyb855 = r.CheckBreak()
}
if yyb855 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj855-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym863 := z.EncBinary()
_ = yym863
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep864 := !z.EncBinary()
yy2arr864 := z.EncBasicHandle().StructToArray
var yyq864 [1]bool
_, _, _ = yysep864, yyq864, yy2arr864
const yyr864 bool = false
var yynn864 int
if yyr864 || yy2arr864 {
r.EncodeArrayStart(1)
} else {
yynn864 = 1
for _, b := range yyq864 {
if b {
yynn864++
}
}
r.EncodeMapStart(yynn864)
yynn864 = 0
}
if yyr864 || yy2arr864 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym866 := z.EncBinary()
_ = yym866
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("datasetName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym867 := z.EncBinary()
_ = yym867
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
}
}
if yyr864 || yy2arr864 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *FlockerVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym868 := z.DecBinary()
_ = yym868
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct869 := r.ContainerType()
if yyct869 == codecSelferValueTypeMap1234 {
yyl869 := r.ReadMapStart()
if yyl869 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl869, d)
}
} else if yyct869 == codecSelferValueTypeArray1234 {
yyl869 := r.ReadArrayStart()
if yyl869 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl869, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *FlockerVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys870Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys870Slc
var yyhl870 bool = l >= 0
for yyj870 := 0; ; yyj870++ {
if yyhl870 {
if yyj870 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys870Slc = r.DecodeBytes(yys870Slc, true, true)
yys870 := string(yys870Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys870 {
case "datasetName":
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys870)
} // end switch yys870
} // end for yyj870
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *FlockerVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj872 int
var yyb872 bool
var yyhl872 bool = l >= 0
yyj872++
if yyhl872 {
yyb872 = yyj872 > l
} else {
yyb872 = r.CheckBreak()
}
if yyb872 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
for {
yyj872++
if yyhl872 {
yyb872 = yyj872 > l
} else {
yyb872 = r.CheckBreak()
}
if yyb872 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj872-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym874 := z.EncBinary()
_ = yym874
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep875 := !z.EncBinary()
yy2arr875 := z.EncBasicHandle().StructToArray
var yyq875 [1]bool
_, _, _ = yysep875, yyq875, yy2arr875
const yyr875 bool = false
yyq875[0] = len(x.Items) != 0
var yynn875 int
if yyr875 || yy2arr875 {
r.EncodeArrayStart(1)
} else {
yynn875 = 0
for _, b := range yyq875 {
if b {
yynn875++
}
}
r.EncodeMapStart(yynn875)
yynn875 = 0
}
if yyr875 || yy2arr875 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq875[0] {
if x.Items == nil {
r.EncodeNil()
} else {
yym877 := z.EncBinary()
_ = yym877
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq875[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym878 := z.EncBinary()
_ = yym878
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
}
}
if yyr875 || yy2arr875 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DownwardAPIVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym879 := z.DecBinary()
_ = yym879
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct880 := r.ContainerType()
if yyct880 == codecSelferValueTypeMap1234 {
yyl880 := r.ReadMapStart()
if yyl880 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl880, d)
}
} else if yyct880 == codecSelferValueTypeArray1234 {
yyl880 := r.ReadArrayStart()
if yyl880 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl880, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DownwardAPIVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys881Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys881Slc
var yyhl881 bool = l >= 0
for yyj881 := 0; ; yyj881++ {
if yyhl881 {
if yyj881 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys881Slc = r.DecodeBytes(yys881Slc, true, true)
yys881 := string(yys881Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys881 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv882 := &x.Items
yym883 := z.DecBinary()
_ = yym883
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv882), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys881)
} // end switch yys881
} // end for yyj881
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DownwardAPIVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj884 int
var yyb884 bool
var yyhl884 bool = l >= 0
yyj884++
if yyhl884 {
yyb884 = yyj884 > l
} else {
yyb884 = r.CheckBreak()
}
if yyb884 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv885 := &x.Items
yym886 := z.DecBinary()
_ = yym886
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv885), d)
}
}
for {
yyj884++
if yyhl884 {
yyb884 = yyj884 > l
} else {
yyb884 = r.CheckBreak()
}
if yyb884 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj884-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DownwardAPIVolumeFile) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym887 := z.EncBinary()
_ = yym887
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep888 := !z.EncBinary()
yy2arr888 := z.EncBasicHandle().StructToArray
var yyq888 [2]bool
_, _, _ = yysep888, yyq888, yy2arr888
const yyr888 bool = false
var yynn888 int
if yyr888 || yy2arr888 {
r.EncodeArrayStart(2)
} else {
yynn888 = 2
for _, b := range yyq888 {
if b {
yynn888++
}
}
r.EncodeMapStart(yynn888)
yynn888 = 0
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym890 := z.EncBinary()
_ = yym890
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym891 := z.EncBinary()
_ = yym891
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy893 := &x.FieldRef
yy893.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy894 := &x.FieldRef
yy894.CodecEncodeSelf(e)
}
if yyr888 || yy2arr888 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *DownwardAPIVolumeFile) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym895 := z.DecBinary()
_ = yym895
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct896 := r.ContainerType()
if yyct896 == codecSelferValueTypeMap1234 {
yyl896 := r.ReadMapStart()
if yyl896 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl896, d)
}
} else if yyct896 == codecSelferValueTypeArray1234 {
yyl896 := r.ReadArrayStart()
if yyl896 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl896, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DownwardAPIVolumeFile) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys897Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys897Slc
var yyhl897 bool = l >= 0
for yyj897 := 0; ; yyj897++ {
if yyhl897 {
if yyj897 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys897Slc = r.DecodeBytes(yys897Slc, true, true)
yys897 := string(yys897Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys897 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "fieldRef":
if r.TryDecodeAsNil() {
x.FieldRef = ObjectFieldSelector{}
} else {
yyv899 := &x.FieldRef
yyv899.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys897)
} // end switch yys897
} // end for yyj897
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *DownwardAPIVolumeFile) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj900 int
var yyb900 bool
var yyhl900 bool = l >= 0
yyj900++
if yyhl900 {
yyb900 = yyj900 > l
} else {
yyb900 = r.CheckBreak()
}
if yyb900 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj900++
if yyhl900 {
yyb900 = yyj900 > l
} else {
yyb900 = r.CheckBreak()
}
if yyb900 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldRef = ObjectFieldSelector{}
} else {
yyv902 := &x.FieldRef
yyv902.CodecDecodeSelf(d)
}
for {
yyj900++
if yyhl900 {
yyb900 = yyj900 > l
} else {
yyb900 = r.CheckBreak()
}
if yyb900 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj900-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerPort) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym903 := z.EncBinary()
_ = yym903
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep904 := !z.EncBinary()
yy2arr904 := z.EncBasicHandle().StructToArray
var yyq904 [5]bool
_, _, _ = yysep904, yyq904, yy2arr904
const yyr904 bool = false
yyq904[0] = x.Name != ""
yyq904[1] = x.HostPort != 0
yyq904[3] = x.Protocol != ""
yyq904[4] = x.HostIP != ""
var yynn904 int
if yyr904 || yy2arr904 {
r.EncodeArrayStart(5)
} else {
yynn904 = 1
for _, b := range yyq904 {
if b {
yynn904++
}
}
r.EncodeMapStart(yynn904)
yynn904 = 0
}
if yyr904 || yy2arr904 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq904[0] {
yym906 := z.EncBinary()
_ = yym906
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq904[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym907 := z.EncBinary()
_ = yym907
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr904 || yy2arr904 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq904[1] {
yym909 := z.EncBinary()
_ = yym909
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq904[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym910 := z.EncBinary()
_ = yym910
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
}
}
if yyr904 || yy2arr904 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym912 := z.EncBinary()
_ = yym912
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym913 := z.EncBinary()
_ = yym913
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
}
if yyr904 || yy2arr904 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq904[3] {
x.Protocol.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq904[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Protocol.CodecEncodeSelf(e)
}
}
if yyr904 || yy2arr904 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq904[4] {
yym916 := z.EncBinary()
_ = yym916
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq904[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym917 := z.EncBinary()
_ = yym917
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr904 || yy2arr904 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ContainerPort) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym918 := z.DecBinary()
_ = yym918
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct919 := r.ContainerType()
if yyct919 == codecSelferValueTypeMap1234 {
yyl919 := r.ReadMapStart()
if yyl919 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl919, d)
}
} else if yyct919 == codecSelferValueTypeArray1234 {
yyl919 := r.ReadArrayStart()
if yyl919 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl919, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys920Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys920Slc
var yyhl920 bool = l >= 0
for yyj920 := 0; ; yyj920++ {
if yyhl920 {
if yyj920 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys920Slc = r.DecodeBytes(yys920Slc, true, true)
yys920 := string(yys920Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys920 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "hostPort":
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
}
case "containerPort":
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "hostIP":
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys920)
} // end switch yys920
} // end for yyj920
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerPort) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj926 int
var yyb926 bool
var yyhl926 bool = l >= 0
yyj926++
if yyhl926 {
yyb926 = yyj926 > l
} else {
yyb926 = r.CheckBreak()
}
if yyb926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj926++
if yyhl926 {
yyb926 = yyj926 > l
} else {
yyb926 = r.CheckBreak()
}
if yyb926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj926++
if yyhl926 {
yyb926 = yyj926 > l
} else {
yyb926 = r.CheckBreak()
}
if yyb926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj926++
if yyhl926 {
yyb926 = yyj926 > l
} else {
yyb926 = r.CheckBreak()
}
if yyb926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj926++
if yyhl926 {
yyb926 = yyj926 > l
} else {
yyb926 = r.CheckBreak()
}
if yyb926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
for {
yyj926++
if yyhl926 {
yyb926 = yyj926 > l
} else {
yyb926 = r.CheckBreak()
}
if yyb926 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj926-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym932 := z.EncBinary()
_ = yym932
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep933 := !z.EncBinary()
yy2arr933 := z.EncBasicHandle().StructToArray
var yyq933 [3]bool
_, _, _ = yysep933, yyq933, yy2arr933
const yyr933 bool = false
yyq933[1] = x.ReadOnly != false
var yynn933 int
if yyr933 || yy2arr933 {
r.EncodeArrayStart(3)
} else {
yynn933 = 2
for _, b := range yyq933 {
if b {
yynn933++
}
}
r.EncodeMapStart(yynn933)
yynn933 = 0
}
if yyr933 || yy2arr933 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym935 := z.EncBinary()
_ = yym935
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym936 := z.EncBinary()
_ = yym936
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr933 || yy2arr933 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq933[1] {
yym938 := z.EncBinary()
_ = yym938
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq933[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym939 := z.EncBinary()
_ = yym939
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr933 || yy2arr933 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym941 := z.EncBinary()
_ = yym941
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("mountPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym942 := z.EncBinary()
_ = yym942
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
}
}
if yyr933 || yy2arr933 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *VolumeMount) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym943 := z.DecBinary()
_ = yym943
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct944 := r.ContainerType()
if yyct944 == codecSelferValueTypeMap1234 {
yyl944 := r.ReadMapStart()
if yyl944 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl944, d)
}
} else if yyct944 == codecSelferValueTypeArray1234 {
yyl944 := r.ReadArrayStart()
if yyl944 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl944, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys945Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys945Slc
var yyhl945 bool = l >= 0
for yyj945 := 0; ; yyj945++ {
if yyhl945 {
if yyj945 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys945Slc = r.DecodeBytes(yys945Slc, true, true)
yys945 := string(yys945Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys945 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "mountPath":
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys945)
} // end switch yys945
} // end for yyj945
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *VolumeMount) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj949 int
var yyb949 bool
var yyhl949 bool = l >= 0
yyj949++
if yyhl949 {
yyb949 = yyj949 > l
} else {
yyb949 = r.CheckBreak()
}
if yyb949 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj949++
if yyhl949 {
yyb949 = yyj949 > l
} else {
yyb949 = r.CheckBreak()
}
if yyb949 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj949++
if yyhl949 {
yyb949 = yyj949 > l
} else {
yyb949 = r.CheckBreak()
}
if yyb949 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
for {
yyj949++
if yyhl949 {
yyb949 = yyj949 > l
} else {
yyb949 = r.CheckBreak()
}
if yyb949 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj949-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EnvVar) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym953 := z.EncBinary()
_ = yym953
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep954 := !z.EncBinary()
yy2arr954 := z.EncBasicHandle().StructToArray
var yyq954 [3]bool
_, _, _ = yysep954, yyq954, yy2arr954
const yyr954 bool = false
yyq954[1] = x.Value != ""
yyq954[2] = x.ValueFrom != nil
var yynn954 int
if yyr954 || yy2arr954 {
r.EncodeArrayStart(3)
} else {
yynn954 = 1
for _, b := range yyq954 {
if b {
yynn954++
}
}
r.EncodeMapStart(yynn954)
yynn954 = 0
}
if yyr954 || yy2arr954 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym956 := z.EncBinary()
_ = yym956
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym957 := z.EncBinary()
_ = yym957
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr954 || yy2arr954 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq954[1] {
yym959 := z.EncBinary()
_ = yym959
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq954[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym960 := z.EncBinary()
_ = yym960
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr954 || yy2arr954 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq954[2] {
if x.ValueFrom == nil {
r.EncodeNil()
} else {
x.ValueFrom.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq954[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("valueFrom"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ValueFrom == nil {
r.EncodeNil()
} else {
x.ValueFrom.CodecEncodeSelf(e)
}
}
}
if yyr954 || yy2arr954 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *EnvVar) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym962 := z.DecBinary()
_ = yym962
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct963 := r.ContainerType()
if yyct963 == codecSelferValueTypeMap1234 {
yyl963 := r.ReadMapStart()
if yyl963 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl963, d)
}
} else if yyct963 == codecSelferValueTypeArray1234 {
yyl963 := r.ReadArrayStart()
if yyl963 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl963, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EnvVar) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys964Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys964Slc
var yyhl964 bool = l >= 0
for yyj964 := 0; ; yyj964++ {
if yyhl964 {
if yyj964 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys964Slc = r.DecodeBytes(yys964Slc, true, true)
yys964 := string(yys964Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys964 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
case "valueFrom":
if r.TryDecodeAsNil() {
if x.ValueFrom != nil {
x.ValueFrom = nil
}
} else {
if x.ValueFrom == nil {
x.ValueFrom = new(EnvVarSource)
}
x.ValueFrom.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys964)
} // end switch yys964
} // end for yyj964
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *EnvVar) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj968 int
var yyb968 bool
var yyhl968 bool = l >= 0
yyj968++
if yyhl968 {
yyb968 = yyj968 > l
} else {
yyb968 = r.CheckBreak()
}
if yyb968 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj968++
if yyhl968 {
yyb968 = yyj968 > l
} else {
yyb968 = r.CheckBreak()
}
if yyb968 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj968++
if yyhl968 {
yyb968 = yyj968 > l
} else {
yyb968 = r.CheckBreak()
}
if yyb968 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ValueFrom != nil {
x.ValueFrom = nil
}
} else {
if x.ValueFrom == nil {
x.ValueFrom = new(EnvVarSource)
}
x.ValueFrom.CodecDecodeSelf(d)
}
for {
yyj968++
if yyhl968 {
yyb968 = yyj968 > l
} else {
yyb968 = r.CheckBreak()
}
if yyb968 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj968-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EnvVarSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym972 := z.EncBinary()
_ = yym972
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep973 := !z.EncBinary()
yy2arr973 := z.EncBasicHandle().StructToArray
var yyq973 [3]bool
_, _, _ = yysep973, yyq973, yy2arr973
const yyr973 bool = false
yyq973[0] = x.FieldRef != nil
yyq973[1] = x.ConfigMapKeyRef != nil
yyq973[2] = x.SecretKeyRef != nil
var yynn973 int
if yyr973 || yy2arr973 {
r.EncodeArrayStart(3)
} else {
yynn973 = 0
for _, b := range yyq973 {
if b {
yynn973++
}
}
r.EncodeMapStart(yynn973)
yynn973 = 0
}
if yyr973 || yy2arr973 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq973[0] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq973[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
}
}
if yyr973 || yy2arr973 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq973[1] {
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq973[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
}
}
if yyr973 || yy2arr973 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq973[2] {
if x.SecretKeyRef == nil {
r.EncodeNil()
} else {
x.SecretKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq973[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretKeyRef == nil {
r.EncodeNil()
} else {
x.SecretKeyRef.CodecEncodeSelf(e)
}
}
}
if yyr973 || yy2arr973 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *EnvVarSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym977 := z.DecBinary()
_ = yym977
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct978 := r.ContainerType()
if yyct978 == codecSelferValueTypeMap1234 {
yyl978 := r.ReadMapStart()
if yyl978 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl978, d)
}
} else if yyct978 == codecSelferValueTypeArray1234 {
yyl978 := r.ReadArrayStart()
if yyl978 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl978, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EnvVarSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys979Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys979Slc
var yyhl979 bool = l >= 0
for yyj979 := 0; ; yyj979++ {
if yyhl979 {
if yyj979 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys979Slc = r.DecodeBytes(yys979Slc, true, true)
yys979 := string(yys979Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys979 {
case "fieldRef":
if r.TryDecodeAsNil() {
if x.FieldRef != nil {
x.FieldRef = nil
}
} else {
if x.FieldRef == nil {
x.FieldRef = new(ObjectFieldSelector)
}
x.FieldRef.CodecDecodeSelf(d)
}
case "configMapKeyRef":
if r.TryDecodeAsNil() {
if x.ConfigMapKeyRef != nil {
x.ConfigMapKeyRef = nil
}
} else {
if x.ConfigMapKeyRef == nil {
x.ConfigMapKeyRef = new(ConfigMapKeySelector)
}
x.ConfigMapKeyRef.CodecDecodeSelf(d)
}
case "secretKeyRef":
if r.TryDecodeAsNil() {
if x.SecretKeyRef != nil {
x.SecretKeyRef = nil
}
} else {
if x.SecretKeyRef == nil {
x.SecretKeyRef = new(SecretKeySelector)
}
x.SecretKeyRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys979)
} // end switch yys979
} // end for yyj979
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *EnvVarSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj983 int
var yyb983 bool
var yyhl983 bool = l >= 0
yyj983++
if yyhl983 {
yyb983 = yyj983 > l
} else {
yyb983 = r.CheckBreak()
}
if yyb983 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FieldRef != nil {
x.FieldRef = nil
}
} else {
if x.FieldRef == nil {
x.FieldRef = new(ObjectFieldSelector)
}
x.FieldRef.CodecDecodeSelf(d)
}
yyj983++
if yyhl983 {
yyb983 = yyj983 > l
} else {
yyb983 = r.CheckBreak()
}
if yyb983 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ConfigMapKeyRef != nil {
x.ConfigMapKeyRef = nil
}
} else {
if x.ConfigMapKeyRef == nil {
x.ConfigMapKeyRef = new(ConfigMapKeySelector)
}
x.ConfigMapKeyRef.CodecDecodeSelf(d)
}
yyj983++
if yyhl983 {
yyb983 = yyj983 > l
} else {
yyb983 = r.CheckBreak()
}
if yyb983 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecretKeyRef != nil {
x.SecretKeyRef = nil
}
} else {
if x.SecretKeyRef == nil {
x.SecretKeyRef = new(SecretKeySelector)
}
x.SecretKeyRef.CodecDecodeSelf(d)
}
for {
yyj983++
if yyhl983 {
yyb983 = yyj983 > l
} else {
yyb983 = r.CheckBreak()
}
if yyb983 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj983-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ObjectFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym987 := z.EncBinary()
_ = yym987
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep988 := !z.EncBinary()
yy2arr988 := z.EncBasicHandle().StructToArray
var yyq988 [2]bool
_, _, _ = yysep988, yyq988, yy2arr988
const yyr988 bool = false
var yynn988 int
if yyr988 || yy2arr988 {
r.EncodeArrayStart(2)
} else {
yynn988 = 2
for _, b := range yyq988 {
if b {
yynn988++
}
}
r.EncodeMapStart(yynn988)
yynn988 = 0
}
if yyr988 || yy2arr988 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym990 := z.EncBinary()
_ = yym990
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym991 := z.EncBinary()
_ = yym991
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr988 || yy2arr988 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym993 := z.EncBinary()
_ = yym993
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym994 := z.EncBinary()
_ = yym994
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
if yyr988 || yy2arr988 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ObjectFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym995 := z.DecBinary()
_ = yym995
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct996 := r.ContainerType()
if yyct996 == codecSelferValueTypeMap1234 {
yyl996 := r.ReadMapStart()
if yyl996 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl996, d)
}
} else if yyct996 == codecSelferValueTypeArray1234 {
yyl996 := r.ReadArrayStart()
if yyl996 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl996, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys997Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys997Slc
var yyhl997 bool = l >= 0
for yyj997 := 0; ; yyj997++ {
if yyhl997 {
if yyj997 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys997Slc = r.DecodeBytes(yys997Slc, true, true)
yys997 := string(yys997Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys997 {
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "fieldPath":
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys997)
} // end switch yys997
} // end for yyj997
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ObjectFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1000 int
var yyb1000 bool
var yyhl1000 bool = l >= 0
yyj1000++
if yyhl1000 {
yyb1000 = yyj1000 > l
} else {
yyb1000 = r.CheckBreak()
}
if yyb1000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1000++
if yyhl1000 {
yyb1000 = yyj1000 > l
} else {
yyb1000 = r.CheckBreak()
}
if yyb1000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj1000++
if yyhl1000 {
yyb1000 = yyj1000 > l
} else {
yyb1000 = r.CheckBreak()
}
if yyb1000 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1000-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ConfigMapKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1003 := z.EncBinary()
_ = yym1003
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1004 := !z.EncBinary()
yy2arr1004 := z.EncBasicHandle().StructToArray
var yyq1004 [2]bool
_, _, _ = yysep1004, yyq1004, yy2arr1004
const yyr1004 bool = false
var yynn1004 int
if yyr1004 || yy2arr1004 {
r.EncodeArrayStart(2)
} else {
yynn1004 = 2
for _, b := range yyq1004 {
if b {
yynn1004++
}
}
r.EncodeMapStart(yynn1004)
yynn1004 = 0
}
if yyr1004 || yy2arr1004 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1006 := z.EncBinary()
_ = yym1006
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1007 := z.EncBinary()
_ = yym1007
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1004 || yy2arr1004 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1009 := z.EncBinary()
_ = yym1009
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1010 := z.EncBinary()
_ = yym1010
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1004 || yy2arr1004 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMapKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1011 := z.DecBinary()
_ = yym1011
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1012 := r.ContainerType()
if yyct1012 == codecSelferValueTypeMap1234 {
yyl1012 := r.ReadMapStart()
if yyl1012 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1012, d)
}
} else if yyct1012 == codecSelferValueTypeArray1234 {
yyl1012 := r.ReadArrayStart()
if yyl1012 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1012, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMapKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1013Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1013Slc
var yyhl1013 bool = l >= 0
for yyj1013 := 0; ; yyj1013++ {
if yyhl1013 {
if yyj1013 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1013Slc = r.DecodeBytes(yys1013Slc, true, true)
yys1013 := string(yys1013Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1013 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1013)
} // end switch yys1013
} // end for yyj1013
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMapKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1016 int
var yyb1016 bool
var yyhl1016 bool = l >= 0
yyj1016++
if yyhl1016 {
yyb1016 = yyj1016 > l
} else {
yyb1016 = r.CheckBreak()
}
if yyb1016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1016++
if yyhl1016 {
yyb1016 = yyj1016 > l
} else {
yyb1016 = r.CheckBreak()
}
if yyb1016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1016++
if yyhl1016 {
yyb1016 = yyj1016 > l
} else {
yyb1016 = r.CheckBreak()
}
if yyb1016 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1016-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1019 := z.EncBinary()
_ = yym1019
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1020 := !z.EncBinary()
yy2arr1020 := z.EncBasicHandle().StructToArray
var yyq1020 [2]bool
_, _, _ = yysep1020, yyq1020, yy2arr1020
const yyr1020 bool = false
var yynn1020 int
if yyr1020 || yy2arr1020 {
r.EncodeArrayStart(2)
} else {
yynn1020 = 2
for _, b := range yyq1020 {
if b {
yynn1020++
}
}
r.EncodeMapStart(yynn1020)
yynn1020 = 0
}
if yyr1020 || yy2arr1020 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1022 := z.EncBinary()
_ = yym1022
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1023 := z.EncBinary()
_ = yym1023
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1020 || yy2arr1020 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1025 := z.EncBinary()
_ = yym1025
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1026 := z.EncBinary()
_ = yym1026
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1020 || yy2arr1020 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1027 := z.DecBinary()
_ = yym1027
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1028 := r.ContainerType()
if yyct1028 == codecSelferValueTypeMap1234 {
yyl1028 := r.ReadMapStart()
if yyl1028 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1028, d)
}
} else if yyct1028 == codecSelferValueTypeArray1234 {
yyl1028 := r.ReadArrayStart()
if yyl1028 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1028, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *SecretKeySelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1029Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1029Slc
var yyhl1029 bool = l >= 0
for yyj1029 := 0; ; yyj1029++ {
if yyhl1029 {
if yyj1029 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1029Slc = r.DecodeBytes(yys1029Slc, true, true)
yys1029 := string(yys1029Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1029 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1029)
} // end switch yys1029
} // end for yyj1029
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1032 int
var yyb1032 bool
var yyhl1032 bool = l >= 0
yyj1032++
if yyhl1032 {
yyb1032 = yyj1032 > l
} else {
yyb1032 = r.CheckBreak()
}
if yyb1032 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1032++
if yyhl1032 {
yyb1032 = yyj1032 > l
} else {
yyb1032 = r.CheckBreak()
}
if yyb1032 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1032++
if yyhl1032 {
yyb1032 = yyj1032 > l
} else {
yyb1032 = r.CheckBreak()
}
if yyb1032 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1032-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *HTTPGetAction) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1035 := z.EncBinary()
_ = yym1035
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1036 := !z.EncBinary()
yy2arr1036 := z.EncBasicHandle().StructToArray
var yyq1036 [4]bool
_, _, _ = yysep1036, yyq1036, yy2arr1036
const yyr1036 bool = false
yyq1036[0] = x.Path != ""
yyq1036[1] = true
yyq1036[2] = x.Host != ""
yyq1036[3] = x.Scheme != ""
var yynn1036 int
if yyr1036 || yy2arr1036 {
r.EncodeArrayStart(4)
} else {
yynn1036 = 0
for _, b := range yyq1036 {
if b {
yynn1036++
}
}
r.EncodeMapStart(yynn1036)
yynn1036 = 0
}
if yyr1036 || yy2arr1036 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1036[0] {
yym1038 := z.EncBinary()
_ = yym1038
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1036[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1039 := z.EncBinary()
_ = yym1039
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr1036 || yy2arr1036 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1036[1] {
yy1041 := &x.Port
yym1042 := z.EncBinary()
_ = yym1042
if false {
} else if z.HasExtensions() && z.EncExt(yy1041) {
} else if !yym1042 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1041)
} else {
z.EncFallback(yy1041)
}
} else {
r.EncodeNil()
}
} else {
if yyq1036[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1043 := &x.Port
yym1044 := z.EncBinary()
_ = yym1044
if false {
} else if z.HasExtensions() && z.EncExt(yy1043) {
} else if !yym1044 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1043)
} else {
z.EncFallback(yy1043)
}
}
}
if yyr1036 || yy2arr1036 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1036[2] {
yym1046 := z.EncBinary()
_ = yym1046
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1036[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1047 := z.EncBinary()
_ = yym1047
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr1036 || yy2arr1036 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1036[3] {
x.Scheme.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1036[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Scheme.CodecEncodeSelf(e)
}
}
if yyr1036 || yy2arr1036 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HTTPGetAction) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1049 := z.DecBinary()
_ = yym1049
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1050 := r.ContainerType()
if yyct1050 == codecSelferValueTypeMap1234 {
yyl1050 := r.ReadMapStart()
if yyl1050 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1050, d)
}
} else if yyct1050 == codecSelferValueTypeArray1234 {
yyl1050 := r.ReadArrayStart()
if yyl1050 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1050, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1051Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1051Slc
var yyhl1051 bool = l >= 0
for yyj1051 := 0; ; yyj1051++ {
if yyhl1051 {
if yyj1051 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1051Slc = r.DecodeBytes(yys1051Slc, true, true)
yys1051 := string(yys1051Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1051 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1053 := &x.Port
yym1054 := z.DecBinary()
_ = yym1054
if false {
} else if z.HasExtensions() && z.DecExt(yyv1053) {
} else if !yym1054 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1053)
} else {
z.DecFallback(yyv1053, false)
}
}
case "host":
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
case "scheme":
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1051)
} // end switch yys1051
} // end for yyj1051
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HTTPGetAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1057 int
var yyb1057 bool
var yyhl1057 bool = l >= 0
yyj1057++
if yyhl1057 {
yyb1057 = yyj1057 > l
} else {
yyb1057 = r.CheckBreak()
}
if yyb1057 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1057++
if yyhl1057 {
yyb1057 = yyj1057 > l
} else {
yyb1057 = r.CheckBreak()
}
if yyb1057 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1059 := &x.Port
yym1060 := z.DecBinary()
_ = yym1060
if false {
} else if z.HasExtensions() && z.DecExt(yyv1059) {
} else if !yym1060 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1059)
} else {
z.DecFallback(yyv1059, false)
}
}
yyj1057++
if yyhl1057 {
yyb1057 = yyj1057 > l
} else {
yyb1057 = r.CheckBreak()
}
if yyb1057 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
yyj1057++
if yyhl1057 {
yyb1057 = yyj1057 > l
} else {
yyb1057 = r.CheckBreak()
}
if yyb1057 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
for {
yyj1057++
if yyhl1057 {
yyb1057 = yyj1057 > l
} else {
yyb1057 = r.CheckBreak()
}
if yyb1057 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1057-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1063 := z.EncBinary()
_ = yym1063
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1064 := z.DecBinary()
_ = yym1064
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1065 := z.EncBinary()
_ = yym1065
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1066 := !z.EncBinary()
yy2arr1066 := z.EncBasicHandle().StructToArray
var yyq1066 [1]bool
_, _, _ = yysep1066, yyq1066, yy2arr1066
const yyr1066 bool = false
yyq1066[0] = true
var yynn1066 int
if yyr1066 || yy2arr1066 {
r.EncodeArrayStart(1)
} else {
yynn1066 = 0
for _, b := range yyq1066 {
if b {
yynn1066++
}
}
r.EncodeMapStart(yynn1066)
yynn1066 = 0
}
if yyr1066 || yy2arr1066 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1066[0] {
yy1068 := &x.Port
yym1069 := z.EncBinary()
_ = yym1069
if false {
} else if z.HasExtensions() && z.EncExt(yy1068) {
} else if !yym1069 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1068)
} else {
z.EncFallback(yy1068)
}
} else {
r.EncodeNil()
}
} else {
if yyq1066[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1070 := &x.Port
yym1071 := z.EncBinary()
_ = yym1071
if false {
} else if z.HasExtensions() && z.EncExt(yy1070) {
} else if !yym1071 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1070)
} else {
z.EncFallback(yy1070)
}
}
}
if yyr1066 || yy2arr1066 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *TCPSocketAction) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1072 := z.DecBinary()
_ = yym1072
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1073 := r.ContainerType()
if yyct1073 == codecSelferValueTypeMap1234 {
yyl1073 := r.ReadMapStart()
if yyl1073 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1073, d)
}
} else if yyct1073 == codecSelferValueTypeArray1234 {
yyl1073 := r.ReadArrayStart()
if yyl1073 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1073, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *TCPSocketAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1074Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1074Slc
var yyhl1074 bool = l >= 0
for yyj1074 := 0; ; yyj1074++ {
if yyhl1074 {
if yyj1074 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1074Slc = r.DecodeBytes(yys1074Slc, true, true)
yys1074 := string(yys1074Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1074 {
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1075 := &x.Port
yym1076 := z.DecBinary()
_ = yym1076
if false {
} else if z.HasExtensions() && z.DecExt(yyv1075) {
} else if !yym1076 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1075)
} else {
z.DecFallback(yyv1075, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1074)
} // end switch yys1074
} // end for yyj1074
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *TCPSocketAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1077 int
var yyb1077 bool
var yyhl1077 bool = l >= 0
yyj1077++
if yyhl1077 {
yyb1077 = yyj1077 > l
} else {
yyb1077 = r.CheckBreak()
}
if yyb1077 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1078 := &x.Port
yym1079 := z.DecBinary()
_ = yym1079
if false {
} else if z.HasExtensions() && z.DecExt(yyv1078) {
} else if !yym1079 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1078)
} else {
z.DecFallback(yyv1078, false)
}
}
for {
yyj1077++
if yyhl1077 {
yyb1077 = yyj1077 > l
} else {
yyb1077 = r.CheckBreak()
}
if yyb1077 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1077-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ExecAction) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1080 := z.EncBinary()
_ = yym1080
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1081 := !z.EncBinary()
yy2arr1081 := z.EncBasicHandle().StructToArray
var yyq1081 [1]bool
_, _, _ = yysep1081, yyq1081, yy2arr1081
const yyr1081 bool = false
yyq1081[0] = len(x.Command) != 0
var yynn1081 int
if yyr1081 || yy2arr1081 {
r.EncodeArrayStart(1)
} else {
yynn1081 = 0
for _, b := range yyq1081 {
if b {
yynn1081++
}
}
r.EncodeMapStart(yynn1081)
yynn1081 = 0
}
if yyr1081 || yy2arr1081 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1081[0] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1083 := z.EncBinary()
_ = yym1083
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1081[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1084 := z.EncBinary()
_ = yym1084
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1081 || yy2arr1081 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ExecAction) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1085 := z.DecBinary()
_ = yym1085
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1086 := r.ContainerType()
if yyct1086 == codecSelferValueTypeMap1234 {
yyl1086 := r.ReadMapStart()
if yyl1086 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1086, d)
}
} else if yyct1086 == codecSelferValueTypeArray1234 {
yyl1086 := r.ReadArrayStart()
if yyl1086 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1086, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ExecAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1087Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1087Slc
var yyhl1087 bool = l >= 0
for yyj1087 := 0; ; yyj1087++ {
if yyhl1087 {
if yyj1087 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1087Slc = r.DecodeBytes(yys1087Slc, true, true)
yys1087 := string(yys1087Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1087 {
case "command":
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1088 := &x.Command
yym1089 := z.DecBinary()
_ = yym1089
if false {
} else {
z.F.DecSliceStringX(yyv1088, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1087)
} // end switch yys1087
} // end for yyj1087
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ExecAction) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1090 int
var yyb1090 bool
var yyhl1090 bool = l >= 0
yyj1090++
if yyhl1090 {
yyb1090 = yyj1090 > l
} else {
yyb1090 = r.CheckBreak()
}
if yyb1090 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1091 := &x.Command
yym1092 := z.DecBinary()
_ = yym1092
if false {
} else {
z.F.DecSliceStringX(yyv1091, false, d)
}
}
for {
yyj1090++
if yyhl1090 {
yyb1090 = yyj1090 > l
} else {
yyb1090 = r.CheckBreak()
}
if yyb1090 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1090-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1093 := z.EncBinary()
_ = yym1093
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1094 := !z.EncBinary()
yy2arr1094 := z.EncBasicHandle().StructToArray
var yyq1094 [8]bool
_, _, _ = yysep1094, yyq1094, yy2arr1094
const yyr1094 bool = false
yyq1094[0] = x.Handler.Exec != nil && x.Exec != nil
yyq1094[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
yyq1094[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
yyq1094[3] = x.InitialDelaySeconds != 0
yyq1094[4] = x.TimeoutSeconds != 0
yyq1094[5] = x.PeriodSeconds != 0
yyq1094[6] = x.SuccessThreshold != 0
yyq1094[7] = x.FailureThreshold != 0
var yynn1094 int
if yyr1094 || yy2arr1094 {
r.EncodeArrayStart(8)
} else {
yynn1094 = 0
for _, b := range yyq1094 {
if b {
yynn1094++
}
}
r.EncodeMapStart(yynn1094)
yynn1094 = 0
}
var yyn1095 bool
if x.Handler.Exec == nil {
yyn1095 = true
goto LABEL1095
}
LABEL1095:
if yyr1094 || yy2arr1094 {
if yyn1095 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1094[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1095 {
r.EncodeNil()
} else {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
}
}
}
var yyn1096 bool
if x.Handler.HTTPGet == nil {
yyn1096 = true
goto LABEL1096
}
LABEL1096:
if yyr1094 || yy2arr1094 {
if yyn1096 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1094[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1096 {
r.EncodeNil()
} else {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
}
}
}
var yyn1097 bool
if x.Handler.TCPSocket == nil {
yyn1097 = true
goto LABEL1097
}
LABEL1097:
if yyr1094 || yy2arr1094 {
if yyn1097 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1094[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1097 {
r.EncodeNil()
} else {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[3] {
yym1099 := z.EncBinary()
_ = yym1099
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1094[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1100 := z.EncBinary()
_ = yym1100
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[4] {
yym1102 := z.EncBinary()
_ = yym1102
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1094[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1103 := z.EncBinary()
_ = yym1103
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[5] {
yym1105 := z.EncBinary()
_ = yym1105
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1094[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1106 := z.EncBinary()
_ = yym1106
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[6] {
yym1108 := z.EncBinary()
_ = yym1108
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1094[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1109 := z.EncBinary()
_ = yym1109
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1094[7] {
yym1111 := z.EncBinary()
_ = yym1111
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1094[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1112 := z.EncBinary()
_ = yym1112
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
}
}
if yyr1094 || yy2arr1094 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Probe) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1113 := z.DecBinary()
_ = yym1113
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1114 := r.ContainerType()
if yyct1114 == codecSelferValueTypeMap1234 {
yyl1114 := r.ReadMapStart()
if yyl1114 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1114, d)
}
} else if yyct1114 == codecSelferValueTypeArray1234 {
yyl1114 := r.ReadArrayStart()
if yyl1114 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1114, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1115Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1115Slc
var yyhl1115 bool = l >= 0
for yyj1115 := 0; ; yyj1115++ {
if yyhl1115 {
if yyj1115 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1115Slc = r.DecodeBytes(yys1115Slc, true, true)
yys1115 := string(yys1115Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1115 {
case "exec":
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
if r.TryDecodeAsNil() {
if x.Exec != nil {
x.Exec = nil
}
} else {
if x.Exec == nil {
x.Exec = new(ExecAction)
}
x.Exec.CodecDecodeSelf(d)
}
case "httpGet":
if x.Handler.HTTPGet == nil {
x.Handler.HTTPGet = new(HTTPGetAction)
}
if r.TryDecodeAsNil() {
if x.HTTPGet != nil {
x.HTTPGet = nil
}
} else {
if x.HTTPGet == nil {
x.HTTPGet = new(HTTPGetAction)
}
x.HTTPGet.CodecDecodeSelf(d)
}
case "tcpSocket":
if x.Handler.TCPSocket == nil {
x.Handler.TCPSocket = new(TCPSocketAction)
}
if r.TryDecodeAsNil() {
if x.TCPSocket != nil {
x.TCPSocket = nil
}
} else {
if x.TCPSocket == nil {
x.TCPSocket = new(TCPSocketAction)
}
x.TCPSocket.CodecDecodeSelf(d)
}
case "initialDelaySeconds":
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
case "timeoutSeconds":
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
case "periodSeconds":
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
case "successThreshold":
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
case "failureThreshold":
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys1115)
} // end switch yys1115
} // end for yyj1115
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Probe) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1124 int
var yyb1124 bool
var yyhl1124 bool = l >= 0
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Exec != nil {
x.Exec = nil
}
} else {
if x.Exec == nil {
x.Exec = new(ExecAction)
}
x.Exec.CodecDecodeSelf(d)
}
if x.Handler.HTTPGet == nil {
x.Handler.HTTPGet = new(HTTPGetAction)
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HTTPGet != nil {
x.HTTPGet = nil
}
} else {
if x.HTTPGet == nil {
x.HTTPGet = new(HTTPGetAction)
}
x.HTTPGet.CodecDecodeSelf(d)
}
if x.Handler.TCPSocket == nil {
x.Handler.TCPSocket = new(TCPSocketAction)
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.TCPSocket != nil {
x.TCPSocket = nil
}
} else {
if x.TCPSocket == nil {
x.TCPSocket = new(TCPSocketAction)
}
x.TCPSocket.CodecDecodeSelf(d)
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj1124++
if yyhl1124 {
yyb1124 = yyj1124 > l
} else {
yyb1124 = r.CheckBreak()
}
if yyb1124 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1124-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1133 := z.EncBinary()
_ = yym1133
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *PullPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1134 := z.DecBinary()
_ = yym1134
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x Capability) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1135 := z.EncBinary()
_ = yym1135
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *Capability) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1136 := z.DecBinary()
_ = yym1136
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *Capabilities) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1137 := z.EncBinary()
_ = yym1137
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1138 := !z.EncBinary()
yy2arr1138 := z.EncBasicHandle().StructToArray
var yyq1138 [2]bool
_, _, _ = yysep1138, yyq1138, yy2arr1138
const yyr1138 bool = false
yyq1138[0] = len(x.Add) != 0
yyq1138[1] = len(x.Drop) != 0
var yynn1138 int
if yyr1138 || yy2arr1138 {
r.EncodeArrayStart(2)
} else {
yynn1138 = 0
for _, b := range yyq1138 {
if b {
yynn1138++
}
}
r.EncodeMapStart(yynn1138)
yynn1138 = 0
}
if yyr1138 || yy2arr1138 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1138[0] {
if x.Add == nil {
r.EncodeNil()
} else {
yym1140 := z.EncBinary()
_ = yym1140
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1138[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("add"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Add == nil {
r.EncodeNil()
} else {
yym1141 := z.EncBinary()
_ = yym1141
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
}
}
if yyr1138 || yy2arr1138 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1138[1] {
if x.Drop == nil {
r.EncodeNil()
} else {
yym1143 := z.EncBinary()
_ = yym1143
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1138[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("drop"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Drop == nil {
r.EncodeNil()
} else {
yym1144 := z.EncBinary()
_ = yym1144
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
}
}
if yyr1138 || yy2arr1138 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Capabilities) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1145 := z.DecBinary()
_ = yym1145
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1146 := r.ContainerType()
if yyct1146 == codecSelferValueTypeMap1234 {
yyl1146 := r.ReadMapStart()
if yyl1146 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1146, d)
}
} else if yyct1146 == codecSelferValueTypeArray1234 {
yyl1146 := r.ReadArrayStart()
if yyl1146 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1146, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Capabilities) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1147Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1147Slc
var yyhl1147 bool = l >= 0
for yyj1147 := 0; ; yyj1147++ {
if yyhl1147 {
if yyj1147 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1147Slc = r.DecodeBytes(yys1147Slc, true, true)
yys1147 := string(yys1147Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1147 {
case "add":
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1148 := &x.Add
yym1149 := z.DecBinary()
_ = yym1149
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1148), d)
}
}
case "drop":
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1150 := &x.Drop
yym1151 := z.DecBinary()
_ = yym1151
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1150), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1147)
} // end switch yys1147
} // end for yyj1147
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Capabilities) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1152 int
var yyb1152 bool
var yyhl1152 bool = l >= 0
yyj1152++
if yyhl1152 {
yyb1152 = yyj1152 > l
} else {
yyb1152 = r.CheckBreak()
}
if yyb1152 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1153 := &x.Add
yym1154 := z.DecBinary()
_ = yym1154
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1153), d)
}
}
yyj1152++
if yyhl1152 {
yyb1152 = yyj1152 > l
} else {
yyb1152 = r.CheckBreak()
}
if yyb1152 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1155 := &x.Drop
yym1156 := z.DecBinary()
_ = yym1156
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1155), d)
}
}
for {
yyj1152++
if yyhl1152 {
yyb1152 = yyj1152 > l
} else {
yyb1152 = r.CheckBreak()
}
if yyb1152 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1152-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1157 := z.EncBinary()
_ = yym1157
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1158 := !z.EncBinary()
yy2arr1158 := z.EncBasicHandle().StructToArray
var yyq1158 [2]bool
_, _, _ = yysep1158, yyq1158, yy2arr1158
const yyr1158 bool = false
yyq1158[0] = len(x.Limits) != 0
yyq1158[1] = len(x.Requests) != 0
var yynn1158 int
if yyr1158 || yy2arr1158 {
r.EncodeArrayStart(2)
} else {
yynn1158 = 0
for _, b := range yyq1158 {
if b {
yynn1158++
}
}
r.EncodeMapStart(yynn1158)
yynn1158 = 0
}
if yyr1158 || yy2arr1158 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1158[0] {
if x.Limits == nil {
r.EncodeNil()
} else {
x.Limits.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1158[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("limits"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Limits == nil {
r.EncodeNil()
} else {
x.Limits.CodecEncodeSelf(e)
}
}
}
if yyr1158 || yy2arr1158 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1158[1] {
if x.Requests == nil {
r.EncodeNil()
} else {
x.Requests.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1158[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requests"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Requests == nil {
r.EncodeNil()
} else {
x.Requests.CodecEncodeSelf(e)
}
}
}
if yyr1158 || yy2arr1158 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ResourceRequirements) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1161 := z.DecBinary()
_ = yym1161
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1162 := r.ContainerType()
if yyct1162 == codecSelferValueTypeMap1234 {
yyl1162 := r.ReadMapStart()
if yyl1162 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1162, d)
}
} else if yyct1162 == codecSelferValueTypeArray1234 {
yyl1162 := r.ReadArrayStart()
if yyl1162 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1162, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ResourceRequirements) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1163Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1163Slc
var yyhl1163 bool = l >= 0
for yyj1163 := 0; ; yyj1163++ {
if yyhl1163 {
if yyj1163 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1163Slc = r.DecodeBytes(yys1163Slc, true, true)
yys1163 := string(yys1163Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1163 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1164 := &x.Limits
yyv1164.CodecDecodeSelf(d)
}
case "requests":
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1165 := &x.Requests
yyv1165.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1163)
} // end switch yys1163
} // end for yyj1163
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ResourceRequirements) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1166 int
var yyb1166 bool
var yyhl1166 bool = l >= 0
yyj1166++
if yyhl1166 {
yyb1166 = yyj1166 > l
} else {
yyb1166 = r.CheckBreak()
}
if yyb1166 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1167 := &x.Limits
yyv1167.CodecDecodeSelf(d)
}
yyj1166++
if yyhl1166 {
yyb1166 = yyj1166 > l
} else {
yyb1166 = r.CheckBreak()
}
if yyb1166 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1168 := &x.Requests
yyv1168.CodecDecodeSelf(d)
}
for {
yyj1166++
if yyhl1166 {
yyb1166 = yyj1166 > l
} else {
yyb1166 = r.CheckBreak()
}
if yyb1166 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1166-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Container) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1169 := z.EncBinary()
_ = yym1169
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1170 := !z.EncBinary()
yy2arr1170 := z.EncBasicHandle().StructToArray
var yyq1170 [18]bool
_, _, _ = yysep1170, yyq1170, yy2arr1170
const yyr1170 bool = false
yyq1170[2] = len(x.Command) != 0
yyq1170[3] = len(x.Args) != 0
yyq1170[4] = x.WorkingDir != ""
yyq1170[5] = len(x.Ports) != 0
yyq1170[6] = len(x.Env) != 0
yyq1170[7] = true
yyq1170[8] = len(x.VolumeMounts) != 0
yyq1170[9] = x.LivenessProbe != nil
yyq1170[10] = x.ReadinessProbe != nil
yyq1170[11] = x.Lifecycle != nil
yyq1170[12] = x.TerminationMessagePath != ""
yyq1170[14] = x.SecurityContext != nil
yyq1170[15] = x.Stdin != false
yyq1170[16] = x.StdinOnce != false
yyq1170[17] = x.TTY != false
var yynn1170 int
if yyr1170 || yy2arr1170 {
r.EncodeArrayStart(18)
} else {
yynn1170 = 3
for _, b := range yyq1170 {
if b {
yynn1170++
}
}
r.EncodeMapStart(yynn1170)
yynn1170 = 0
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1172 := z.EncBinary()
_ = yym1172
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1173 := z.EncBinary()
_ = yym1173
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1175 := z.EncBinary()
_ = yym1175
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("image"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1176 := z.EncBinary()
_ = yym1176
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[2] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1178 := z.EncBinary()
_ = yym1178
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1179 := z.EncBinary()
_ = yym1179
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[3] {
if x.Args == nil {
r.EncodeNil()
} else {
yym1181 := z.EncBinary()
_ = yym1181
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("args"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Args == nil {
r.EncodeNil()
} else {
yym1182 := z.EncBinary()
_ = yym1182
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[4] {
yym1184 := z.EncBinary()
_ = yym1184
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1170[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1185 := z.EncBinary()
_ = yym1185
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[5] {
if x.Ports == nil {
r.EncodeNil()
} else {
yym1187 := z.EncBinary()
_ = yym1187
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ports"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1188 := z.EncBinary()
_ = yym1188
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[6] {
if x.Env == nil {
r.EncodeNil()
} else {
yym1190 := z.EncBinary()
_ = yym1190
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("env"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Env == nil {
r.EncodeNil()
} else {
yym1191 := z.EncBinary()
_ = yym1191
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[7] {
yy1193 := &x.Resources
yy1193.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1170[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1194 := &x.Resources
yy1194.CodecEncodeSelf(e)
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[8] {
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1196 := z.EncBinary()
_ = yym1196
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1197 := z.EncBinary()
_ = yym1197
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[9] {
if x.LivenessProbe == nil {
r.EncodeNil()
} else {
x.LivenessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("livenessProbe"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LivenessProbe == nil {
r.EncodeNil()
} else {
x.LivenessProbe.CodecEncodeSelf(e)
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[10] {
if x.ReadinessProbe == nil {
r.EncodeNil()
} else {
x.ReadinessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readinessProbe"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ReadinessProbe == nil {
r.EncodeNil()
} else {
x.ReadinessProbe.CodecEncodeSelf(e)
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[11] {
if x.Lifecycle == nil {
r.EncodeNil()
} else {
x.Lifecycle.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lifecycle"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Lifecycle == nil {
r.EncodeNil()
} else {
x.Lifecycle.CodecEncodeSelf(e)
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[12] {
yym1202 := z.EncBinary()
_ = yym1202
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1170[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1203 := z.EncBinary()
_ = yym1203
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.ImagePullPolicy.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.ImagePullPolicy.CodecEncodeSelf(e)
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[14] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1170[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("securityContext"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[15] {
yym1207 := z.EncBinary()
_ = yym1207
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1170[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1208 := z.EncBinary()
_ = yym1208
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[16] {
yym1210 := z.EncBinary()
_ = yym1210
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1170[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1211 := z.EncBinary()
_ = yym1211
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1170[17] {
yym1213 := z.EncBinary()
_ = yym1213
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1170[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1214 := z.EncBinary()
_ = yym1214
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr1170 || yy2arr1170 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Container) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1215 := z.DecBinary()
_ = yym1215
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1216 := r.ContainerType()
if yyct1216 == codecSelferValueTypeMap1234 {
yyl1216 := r.ReadMapStart()
if yyl1216 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1216, d)
}
} else if yyct1216 == codecSelferValueTypeArray1234 {
yyl1216 := r.ReadArrayStart()
if yyl1216 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1216, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Container) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1217Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1217Slc
var yyhl1217 bool = l >= 0
for yyj1217 := 0; ; yyj1217++ {
if yyhl1217 {
if yyj1217 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1217Slc = r.DecodeBytes(yys1217Slc, true, true)
yys1217 := string(yys1217Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1217 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "image":
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
case "command":
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1220 := &x.Command
yym1221 := z.DecBinary()
_ = yym1221
if false {
} else {
z.F.DecSliceStringX(yyv1220, false, d)
}
}
case "args":
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1222 := &x.Args
yym1223 := z.DecBinary()
_ = yym1223
if false {
} else {
z.F.DecSliceStringX(yyv1222, false, d)
}
}
case "workingDir":
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1225 := &x.Ports
yym1226 := z.DecBinary()
_ = yym1226
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1225), d)
}
}
case "env":
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1227 := &x.Env
yym1228 := z.DecBinary()
_ = yym1228
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1227), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1229 := &x.Resources
yyv1229.CodecDecodeSelf(d)
}
case "volumeMounts":
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1230 := &x.VolumeMounts
yym1231 := z.DecBinary()
_ = yym1231
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1230), d)
}
}
case "livenessProbe":
if r.TryDecodeAsNil() {
if x.LivenessProbe != nil {
x.LivenessProbe = nil
}
} else {
if x.LivenessProbe == nil {
x.LivenessProbe = new(Probe)
}
x.LivenessProbe.CodecDecodeSelf(d)
}
case "readinessProbe":
if r.TryDecodeAsNil() {
if x.ReadinessProbe != nil {
x.ReadinessProbe = nil
}
} else {
if x.ReadinessProbe == nil {
x.ReadinessProbe = new(Probe)
}
x.ReadinessProbe.CodecDecodeSelf(d)
}
case "lifecycle":
if r.TryDecodeAsNil() {
if x.Lifecycle != nil {
x.Lifecycle = nil
}
} else {
if x.Lifecycle == nil {
x.Lifecycle = new(Lifecycle)
}
x.Lifecycle.CodecDecodeSelf(d)
}
case "terminationMessagePath":
if r.TryDecodeAsNil() {
x.TerminationMessagePath = ""
} else {
x.TerminationMessagePath = string(r.DecodeString())
}
case "imagePullPolicy":
if r.TryDecodeAsNil() {
x.ImagePullPolicy = ""
} else {
x.ImagePullPolicy = PullPolicy(r.DecodeString())
}
case "securityContext":
if r.TryDecodeAsNil() {
if x.SecurityContext != nil {
x.SecurityContext = nil
}
} else {
if x.SecurityContext == nil {
x.SecurityContext = new(SecurityContext)
}
x.SecurityContext.CodecDecodeSelf(d)
}
case "stdin":
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
case "stdinOnce":
if r.TryDecodeAsNil() {
x.StdinOnce = false
} else {
x.StdinOnce = bool(r.DecodeBool())
}
case "tty":
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys1217)
} // end switch yys1217
} // end for yyj1217
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Container) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1241 int
var yyb1241 bool
var yyhl1241 bool = l >= 0
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1244 := &x.Command
yym1245 := z.DecBinary()
_ = yym1245
if false {
} else {
z.F.DecSliceStringX(yyv1244, false, d)
}
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1246 := &x.Args
yym1247 := z.DecBinary()
_ = yym1247
if false {
} else {
z.F.DecSliceStringX(yyv1246, false, d)
}
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1249 := &x.Ports
yym1250 := z.DecBinary()
_ = yym1250
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1249), d)
}
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1251 := &x.Env
yym1252 := z.DecBinary()
_ = yym1252
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1251), d)
}
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1253 := &x.Resources
yyv1253.CodecDecodeSelf(d)
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1254 := &x.VolumeMounts
yym1255 := z.DecBinary()
_ = yym1255
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1254), d)
}
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.LivenessProbe != nil {
x.LivenessProbe = nil
}
} else {
if x.LivenessProbe == nil {
x.LivenessProbe = new(Probe)
}
x.LivenessProbe.CodecDecodeSelf(d)
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ReadinessProbe != nil {
x.ReadinessProbe = nil
}
} else {
if x.ReadinessProbe == nil {
x.ReadinessProbe = new(Probe)
}
x.ReadinessProbe.CodecDecodeSelf(d)
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Lifecycle != nil {
x.Lifecycle = nil
}
} else {
if x.Lifecycle == nil {
x.Lifecycle = new(Lifecycle)
}
x.Lifecycle.CodecDecodeSelf(d)
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TerminationMessagePath = ""
} else {
x.TerminationMessagePath = string(r.DecodeString())
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullPolicy = ""
} else {
x.ImagePullPolicy = PullPolicy(r.DecodeString())
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecurityContext != nil {
x.SecurityContext = nil
}
} else {
if x.SecurityContext == nil {
x.SecurityContext = new(SecurityContext)
}
x.SecurityContext.CodecDecodeSelf(d)
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StdinOnce = false
} else {
x.StdinOnce = bool(r.DecodeBool())
}
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
for {
yyj1241++
if yyhl1241 {
yyb1241 = yyj1241 > l
} else {
yyb1241 = r.CheckBreak()
}
if yyb1241 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1241-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Handler) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1265 := z.EncBinary()
_ = yym1265
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1266 := !z.EncBinary()
yy2arr1266 := z.EncBasicHandle().StructToArray
var yyq1266 [3]bool
_, _, _ = yysep1266, yyq1266, yy2arr1266
const yyr1266 bool = false
yyq1266[0] = x.Exec != nil
yyq1266[1] = x.HTTPGet != nil
yyq1266[2] = x.TCPSocket != nil
var yynn1266 int
if yyr1266 || yy2arr1266 {
r.EncodeArrayStart(3)
} else {
yynn1266 = 0
for _, b := range yyq1266 {
if b {
yynn1266++
}
}
r.EncodeMapStart(yynn1266)
yynn1266 = 0
}
if yyr1266 || yy2arr1266 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1266[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1266[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
}
}
if yyr1266 || yy2arr1266 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1266[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1266[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
}
}
if yyr1266 || yy2arr1266 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1266[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1266[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
}
}
if yyr1266 || yy2arr1266 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Handler) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1270 := z.DecBinary()
_ = yym1270
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1271 := r.ContainerType()
if yyct1271 == codecSelferValueTypeMap1234 {
yyl1271 := r.ReadMapStart()
if yyl1271 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1271, d)
}
} else if yyct1271 == codecSelferValueTypeArray1234 {
yyl1271 := r.ReadArrayStart()
if yyl1271 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1271, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Handler) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1272Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1272Slc
var yyhl1272 bool = l >= 0
for yyj1272 := 0; ; yyj1272++ {
if yyhl1272 {
if yyj1272 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1272Slc = r.DecodeBytes(yys1272Slc, true, true)
yys1272 := string(yys1272Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1272 {
case "exec":
if r.TryDecodeAsNil() {
if x.Exec != nil {
x.Exec = nil
}
} else {
if x.Exec == nil {
x.Exec = new(ExecAction)
}
x.Exec.CodecDecodeSelf(d)
}
case "httpGet":
if r.TryDecodeAsNil() {
if x.HTTPGet != nil {
x.HTTPGet = nil
}
} else {
if x.HTTPGet == nil {
x.HTTPGet = new(HTTPGetAction)
}
x.HTTPGet.CodecDecodeSelf(d)
}
case "tcpSocket":
if r.TryDecodeAsNil() {
if x.TCPSocket != nil {
x.TCPSocket = nil
}
} else {
if x.TCPSocket == nil {
x.TCPSocket = new(TCPSocketAction)
}
x.TCPSocket.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1272)
} // end switch yys1272
} // end for yyj1272
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Handler) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1276 int
var yyb1276 bool
var yyhl1276 bool = l >= 0
yyj1276++
if yyhl1276 {
yyb1276 = yyj1276 > l
} else {
yyb1276 = r.CheckBreak()
}
if yyb1276 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Exec != nil {
x.Exec = nil
}
} else {
if x.Exec == nil {
x.Exec = new(ExecAction)
}
x.Exec.CodecDecodeSelf(d)
}
yyj1276++
if yyhl1276 {
yyb1276 = yyj1276 > l
} else {
yyb1276 = r.CheckBreak()
}
if yyb1276 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.HTTPGet != nil {
x.HTTPGet = nil
}
} else {
if x.HTTPGet == nil {
x.HTTPGet = new(HTTPGetAction)
}
x.HTTPGet.CodecDecodeSelf(d)
}
yyj1276++
if yyhl1276 {
yyb1276 = yyj1276 > l
} else {
yyb1276 = r.CheckBreak()
}
if yyb1276 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.TCPSocket != nil {
x.TCPSocket = nil
}
} else {
if x.TCPSocket == nil {
x.TCPSocket = new(TCPSocketAction)
}
x.TCPSocket.CodecDecodeSelf(d)
}
for {
yyj1276++
if yyhl1276 {
yyb1276 = yyj1276 > l
} else {
yyb1276 = r.CheckBreak()
}
if yyb1276 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1276-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Lifecycle) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1280 := z.EncBinary()
_ = yym1280
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1281 := !z.EncBinary()
yy2arr1281 := z.EncBasicHandle().StructToArray
var yyq1281 [2]bool
_, _, _ = yysep1281, yyq1281, yy2arr1281
const yyr1281 bool = false
yyq1281[0] = x.PostStart != nil
yyq1281[1] = x.PreStop != nil
var yynn1281 int
if yyr1281 || yy2arr1281 {
r.EncodeArrayStart(2)
} else {
yynn1281 = 0
for _, b := range yyq1281 {
if b {
yynn1281++
}
}
r.EncodeMapStart(yynn1281)
yynn1281 = 0
}
if yyr1281 || yy2arr1281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1281[0] {
if x.PostStart == nil {
r.EncodeNil()
} else {
x.PostStart.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1281[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("postStart"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PostStart == nil {
r.EncodeNil()
} else {
x.PostStart.CodecEncodeSelf(e)
}
}
}
if yyr1281 || yy2arr1281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1281[1] {
if x.PreStop == nil {
r.EncodeNil()
} else {
x.PreStop.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1281[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preStop"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreStop == nil {
r.EncodeNil()
} else {
x.PreStop.CodecEncodeSelf(e)
}
}
}
if yyr1281 || yy2arr1281 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Lifecycle) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1284 := z.DecBinary()
_ = yym1284
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1285 := r.ContainerType()
if yyct1285 == codecSelferValueTypeMap1234 {
yyl1285 := r.ReadMapStart()
if yyl1285 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1285, d)
}
} else if yyct1285 == codecSelferValueTypeArray1234 {
yyl1285 := r.ReadArrayStart()
if yyl1285 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1285, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Lifecycle) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1286Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1286Slc
var yyhl1286 bool = l >= 0
for yyj1286 := 0; ; yyj1286++ {
if yyhl1286 {
if yyj1286 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1286Slc = r.DecodeBytes(yys1286Slc, true, true)
yys1286 := string(yys1286Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1286 {
case "postStart":
if r.TryDecodeAsNil() {
if x.PostStart != nil {
x.PostStart = nil
}
} else {
if x.PostStart == nil {
x.PostStart = new(Handler)
}
x.PostStart.CodecDecodeSelf(d)
}
case "preStop":
if r.TryDecodeAsNil() {
if x.PreStop != nil {
x.PreStop = nil
}
} else {
if x.PreStop == nil {
x.PreStop = new(Handler)
}
x.PreStop.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1286)
} // end switch yys1286
} // end for yyj1286
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Lifecycle) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1289 int
var yyb1289 bool
var yyhl1289 bool = l >= 0
yyj1289++
if yyhl1289 {
yyb1289 = yyj1289 > l
} else {
yyb1289 = r.CheckBreak()
}
if yyb1289 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PostStart != nil {
x.PostStart = nil
}
} else {
if x.PostStart == nil {
x.PostStart = new(Handler)
}
x.PostStart.CodecDecodeSelf(d)
}
yyj1289++
if yyhl1289 {
yyb1289 = yyj1289 > l
} else {
yyb1289 = r.CheckBreak()
}
if yyb1289 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PreStop != nil {
x.PreStop = nil
}
} else {
if x.PreStop == nil {
x.PreStop = new(Handler)
}
x.PreStop.CodecDecodeSelf(d)
}
for {
yyj1289++
if yyhl1289 {
yyb1289 = yyj1289 > l
} else {
yyb1289 = r.CheckBreak()
}
if yyb1289 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1289-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1292 := z.EncBinary()
_ = yym1292
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *ConditionStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1293 := z.DecBinary()
_ = yym1293
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *ContainerStateWaiting) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1294 := z.EncBinary()
_ = yym1294
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1295 := !z.EncBinary()
yy2arr1295 := z.EncBasicHandle().StructToArray
var yyq1295 [2]bool
_, _, _ = yysep1295, yyq1295, yy2arr1295
const yyr1295 bool = false
yyq1295[0] = x.Reason != ""
yyq1295[1] = x.Message != ""
var yynn1295 int
if yyr1295 || yy2arr1295 {
r.EncodeArrayStart(2)
} else {
yynn1295 = 0
for _, b := range yyq1295 {
if b {
yynn1295++
}
}
r.EncodeMapStart(yynn1295)
yynn1295 = 0
}
if yyr1295 || yy2arr1295 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1295[0] {
yym1297 := z.EncBinary()
_ = yym1297
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1295[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1298 := z.EncBinary()
_ = yym1298
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1295 || yy2arr1295 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1295[1] {
yym1300 := z.EncBinary()
_ = yym1300
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1295[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1301 := z.EncBinary()
_ = yym1301
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1295 || yy2arr1295 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ContainerStateWaiting) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1302 := z.DecBinary()
_ = yym1302
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1303 := r.ContainerType()
if yyct1303 == codecSelferValueTypeMap1234 {
yyl1303 := r.ReadMapStart()
if yyl1303 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1303, d)
}
} else if yyct1303 == codecSelferValueTypeArray1234 {
yyl1303 := r.ReadArrayStart()
if yyl1303 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1303, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStateWaiting) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1304Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1304Slc
var yyhl1304 bool = l >= 0
for yyj1304 := 0; ; yyj1304++ {
if yyhl1304 {
if yyj1304 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1304Slc = r.DecodeBytes(yys1304Slc, true, true)
yys1304 := string(yys1304Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1304 {
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1304)
} // end switch yys1304
} // end for yyj1304
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerStateWaiting) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1307 int
var yyb1307 bool
var yyhl1307 bool = l >= 0
yyj1307++
if yyhl1307 {
yyb1307 = yyj1307 > l
} else {
yyb1307 = r.CheckBreak()
}
if yyb1307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1307++
if yyhl1307 {
yyb1307 = yyj1307 > l
} else {
yyb1307 = r.CheckBreak()
}
if yyb1307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1307++
if yyhl1307 {
yyb1307 = yyj1307 > l
} else {
yyb1307 = r.CheckBreak()
}
if yyb1307 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1307-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerStateRunning) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1310 := z.EncBinary()
_ = yym1310
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1311 := !z.EncBinary()
yy2arr1311 := z.EncBasicHandle().StructToArray
var yyq1311 [1]bool
_, _, _ = yysep1311, yyq1311, yy2arr1311
const yyr1311 bool = false
yyq1311[0] = true
var yynn1311 int
if yyr1311 || yy2arr1311 {
r.EncodeArrayStart(1)
} else {
yynn1311 = 0
for _, b := range yyq1311 {
if b {
yynn1311++
}
}
r.EncodeMapStart(yynn1311)
yynn1311 = 0
}
if yyr1311 || yy2arr1311 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1311[0] {
yy1313 := &x.StartedAt
yym1314 := z.EncBinary()
_ = yym1314
if false {
} else if z.HasExtensions() && z.EncExt(yy1313) {
} else if yym1314 {
z.EncBinaryMarshal(yy1313)
} else if !yym1314 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1313)
} else {
z.EncFallback(yy1313)
}
} else {
r.EncodeNil()
}
} else {
if yyq1311[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1315 := &x.StartedAt
yym1316 := z.EncBinary()
_ = yym1316
if false {
} else if z.HasExtensions() && z.EncExt(yy1315) {
} else if yym1316 {
z.EncBinaryMarshal(yy1315)
} else if !yym1316 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1315)
} else {
z.EncFallback(yy1315)
}
}
}
if yyr1311 || yy2arr1311 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ContainerStateRunning) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1317 := z.DecBinary()
_ = yym1317
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1318 := r.ContainerType()
if yyct1318 == codecSelferValueTypeMap1234 {
yyl1318 := r.ReadMapStart()
if yyl1318 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1318, d)
}
} else if yyct1318 == codecSelferValueTypeArray1234 {
yyl1318 := r.ReadArrayStart()
if yyl1318 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1318, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1319Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1319Slc
var yyhl1319 bool = l >= 0
for yyj1319 := 0; ; yyj1319++ {
if yyhl1319 {
if yyj1319 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1319Slc = r.DecodeBytes(yys1319Slc, true, true)
yys1319 := string(yys1319Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1319 {
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1320 := &x.StartedAt
yym1321 := z.DecBinary()
_ = yym1321
if false {
} else if z.HasExtensions() && z.DecExt(yyv1320) {
} else if yym1321 {
z.DecBinaryUnmarshal(yyv1320)
} else if !yym1321 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1320)
} else {
z.DecFallback(yyv1320, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1319)
} // end switch yys1319
} // end for yyj1319
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerStateRunning) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1322 int
var yyb1322 bool
var yyhl1322 bool = l >= 0
yyj1322++
if yyhl1322 {
yyb1322 = yyj1322 > l
} else {
yyb1322 = r.CheckBreak()
}
if yyb1322 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1323 := &x.StartedAt
yym1324 := z.DecBinary()
_ = yym1324
if false {
} else if z.HasExtensions() && z.DecExt(yyv1323) {
} else if yym1324 {
z.DecBinaryUnmarshal(yyv1323)
} else if !yym1324 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1323)
} else {
z.DecFallback(yyv1323, false)
}
}
for {
yyj1322++
if yyhl1322 {
yyb1322 = yyj1322 > l
} else {
yyb1322 = r.CheckBreak()
}
if yyb1322 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1322-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerStateTerminated) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1325 := z.EncBinary()
_ = yym1325
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1326 := !z.EncBinary()
yy2arr1326 := z.EncBasicHandle().StructToArray
var yyq1326 [7]bool
_, _, _ = yysep1326, yyq1326, yy2arr1326
const yyr1326 bool = false
yyq1326[1] = x.Signal != 0
yyq1326[2] = x.Reason != ""
yyq1326[3] = x.Message != ""
yyq1326[4] = true
yyq1326[5] = true
yyq1326[6] = x.ContainerID != ""
var yynn1326 int
if yyr1326 || yy2arr1326 {
r.EncodeArrayStart(7)
} else {
yynn1326 = 1
for _, b := range yyq1326 {
if b {
yynn1326++
}
}
r.EncodeMapStart(yynn1326)
yynn1326 = 0
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1328 := z.EncBinary()
_ = yym1328
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1329 := z.EncBinary()
_ = yym1329
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1326[1] {
yym1331 := z.EncBinary()
_ = yym1331
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1326[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("signal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1332 := z.EncBinary()
_ = yym1332
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
}
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1326[2] {
yym1334 := z.EncBinary()
_ = yym1334
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1326[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1335 := z.EncBinary()
_ = yym1335
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1326[3] {
yym1337 := z.EncBinary()
_ = yym1337
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1326[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1338 := z.EncBinary()
_ = yym1338
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1326[4] {
yy1340 := &x.StartedAt
yym1341 := z.EncBinary()
_ = yym1341
if false {
} else if z.HasExtensions() && z.EncExt(yy1340) {
} else if yym1341 {
z.EncBinaryMarshal(yy1340)
} else if !yym1341 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1340)
} else {
z.EncFallback(yy1340)
}
} else {
r.EncodeNil()
}
} else {
if yyq1326[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1342 := &x.StartedAt
yym1343 := z.EncBinary()
_ = yym1343
if false {
} else if z.HasExtensions() && z.EncExt(yy1342) {
} else if yym1343 {
z.EncBinaryMarshal(yy1342)
} else if !yym1343 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1342)
} else {
z.EncFallback(yy1342)
}
}
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1326[5] {
yy1345 := &x.FinishedAt
yym1346 := z.EncBinary()
_ = yym1346
if false {
} else if z.HasExtensions() && z.EncExt(yy1345) {
} else if yym1346 {
z.EncBinaryMarshal(yy1345)
} else if !yym1346 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1345)
} else {
z.EncFallback(yy1345)
}
} else {
r.EncodeNil()
}
} else {
if yyq1326[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1347 := &x.FinishedAt
yym1348 := z.EncBinary()
_ = yym1348
if false {
} else if z.HasExtensions() && z.EncExt(yy1347) {
} else if yym1348 {
z.EncBinaryMarshal(yy1347)
} else if !yym1348 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1347)
} else {
z.EncFallback(yy1347)
}
}
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1326[6] {
yym1350 := z.EncBinary()
_ = yym1350
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1326[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1351 := z.EncBinary()
_ = yym1351
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1326 || yy2arr1326 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ContainerStateTerminated) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1352 := z.DecBinary()
_ = yym1352
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1353 := r.ContainerType()
if yyct1353 == codecSelferValueTypeMap1234 {
yyl1353 := r.ReadMapStart()
if yyl1353 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1353, d)
}
} else if yyct1353 == codecSelferValueTypeArray1234 {
yyl1353 := r.ReadArrayStart()
if yyl1353 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1353, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStateTerminated) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1354Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1354Slc
var yyhl1354 bool = l >= 0
for yyj1354 := 0; ; yyj1354++ {
if yyhl1354 {
if yyj1354 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1354Slc = r.DecodeBytes(yys1354Slc, true, true)
yys1354 := string(yys1354Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1354 {
case "exitCode":
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
}
case "signal":
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
}
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1359 := &x.StartedAt
yym1360 := z.DecBinary()
_ = yym1360
if false {
} else if z.HasExtensions() && z.DecExt(yyv1359) {
} else if yym1360 {
z.DecBinaryUnmarshal(yyv1359)
} else if !yym1360 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1359)
} else {
z.DecFallback(yyv1359, false)
}
}
case "finishedAt":
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1361 := &x.FinishedAt
yym1362 := z.DecBinary()
_ = yym1362
if false {
} else if z.HasExtensions() && z.DecExt(yyv1361) {
} else if yym1362 {
z.DecBinaryUnmarshal(yyv1361)
} else if !yym1362 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1361)
} else {
z.DecFallback(yyv1361, false)
}
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1354)
} // end switch yys1354
} // end for yyj1354
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerStateTerminated) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1364 int
var yyb1364 bool
var yyhl1364 bool = l >= 0
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1369 := &x.StartedAt
yym1370 := z.DecBinary()
_ = yym1370
if false {
} else if z.HasExtensions() && z.DecExt(yyv1369) {
} else if yym1370 {
z.DecBinaryUnmarshal(yyv1369)
} else if !yym1370 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1369)
} else {
z.DecFallback(yyv1369, false)
}
}
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1371 := &x.FinishedAt
yym1372 := z.DecBinary()
_ = yym1372
if false {
} else if z.HasExtensions() && z.DecExt(yyv1371) {
} else if yym1372 {
z.DecBinaryUnmarshal(yyv1371)
} else if !yym1372 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1371)
} else {
z.DecFallback(yyv1371, false)
}
}
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1364-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerState) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1374 := z.EncBinary()
_ = yym1374
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1375 := !z.EncBinary()
yy2arr1375 := z.EncBasicHandle().StructToArray
var yyq1375 [3]bool
_, _, _ = yysep1375, yyq1375, yy2arr1375
const yyr1375 bool = false
yyq1375[0] = x.Waiting != nil
yyq1375[1] = x.Running != nil
yyq1375[2] = x.Terminated != nil
var yynn1375 int
if yyr1375 || yy2arr1375 {
r.EncodeArrayStart(3)
} else {
yynn1375 = 0
for _, b := range yyq1375 {
if b {
yynn1375++
}
}
r.EncodeMapStart(yynn1375)
yynn1375 = 0
}
if yyr1375 || yy2arr1375 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1375[0] {
if x.Waiting == nil {
r.EncodeNil()
} else {
x.Waiting.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1375[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("waiting"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Waiting == nil {
r.EncodeNil()
} else {
x.Waiting.CodecEncodeSelf(e)
}
}
}
if yyr1375 || yy2arr1375 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1375[1] {
if x.Running == nil {
r.EncodeNil()
} else {
x.Running.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1375[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("running"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Running == nil {
r.EncodeNil()
} else {
x.Running.CodecEncodeSelf(e)
}
}
}
if yyr1375 || yy2arr1375 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1375[2] {
if x.Terminated == nil {
r.EncodeNil()
} else {
x.Terminated.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1375[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminated"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Terminated == nil {
r.EncodeNil()
} else {
x.Terminated.CodecEncodeSelf(e)
}
}
}
if yyr1375 || yy2arr1375 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ContainerState) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1379 := z.DecBinary()
_ = yym1379
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1380 := r.ContainerType()
if yyct1380 == codecSelferValueTypeMap1234 {
yyl1380 := r.ReadMapStart()
if yyl1380 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1380, d)
}
} else if yyct1380 == codecSelferValueTypeArray1234 {
yyl1380 := r.ReadArrayStart()
if yyl1380 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1380, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1381Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1381Slc
var yyhl1381 bool = l >= 0
for yyj1381 := 0; ; yyj1381++ {
if yyhl1381 {
if yyj1381 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1381Slc = r.DecodeBytes(yys1381Slc, true, true)
yys1381 := string(yys1381Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1381 {
case "waiting":
if r.TryDecodeAsNil() {
if x.Waiting != nil {
x.Waiting = nil
}
} else {
if x.Waiting == nil {
x.Waiting = new(ContainerStateWaiting)
}
x.Waiting.CodecDecodeSelf(d)
}
case "running":
if r.TryDecodeAsNil() {
if x.Running != nil {
x.Running = nil
}
} else {
if x.Running == nil {
x.Running = new(ContainerStateRunning)
}
x.Running.CodecDecodeSelf(d)
}
case "terminated":
if r.TryDecodeAsNil() {
if x.Terminated != nil {
x.Terminated = nil
}
} else {
if x.Terminated == nil {
x.Terminated = new(ContainerStateTerminated)
}
x.Terminated.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1381)
} // end switch yys1381
} // end for yyj1381
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerState) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1385 int
var yyb1385 bool
var yyhl1385 bool = l >= 0
yyj1385++
if yyhl1385 {
yyb1385 = yyj1385 > l
} else {
yyb1385 = r.CheckBreak()
}
if yyb1385 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Waiting != nil {
x.Waiting = nil
}
} else {
if x.Waiting == nil {
x.Waiting = new(ContainerStateWaiting)
}
x.Waiting.CodecDecodeSelf(d)
}
yyj1385++
if yyhl1385 {
yyb1385 = yyj1385 > l
} else {
yyb1385 = r.CheckBreak()
}
if yyb1385 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Running != nil {
x.Running = nil
}
} else {
if x.Running == nil {
x.Running = new(ContainerStateRunning)
}
x.Running.CodecDecodeSelf(d)
}
yyj1385++
if yyhl1385 {
yyb1385 = yyj1385 > l
} else {
yyb1385 = r.CheckBreak()
}
if yyb1385 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Terminated != nil {
x.Terminated = nil
}
} else {
if x.Terminated == nil {
x.Terminated = new(ContainerStateTerminated)
}
x.Terminated.CodecDecodeSelf(d)
}
for {
yyj1385++
if yyhl1385 {
yyb1385 = yyj1385 > l
} else {
yyb1385 = r.CheckBreak()
}
if yyb1385 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1385-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1389 := z.EncBinary()
_ = yym1389
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1390 := !z.EncBinary()
yy2arr1390 := z.EncBasicHandle().StructToArray
var yyq1390 [8]bool
_, _, _ = yysep1390, yyq1390, yy2arr1390
const yyr1390 bool = false
yyq1390[1] = true
yyq1390[2] = true
yyq1390[7] = x.ContainerID != ""
var yynn1390 int
if yyr1390 || yy2arr1390 {
r.EncodeArrayStart(8)
} else {
yynn1390 = 5
for _, b := range yyq1390 {
if b {
yynn1390++
}
}
r.EncodeMapStart(yynn1390)
yynn1390 = 0
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1392 := z.EncBinary()
_ = yym1392
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1393 := z.EncBinary()
_ = yym1393
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1390[1] {
yy1395 := &x.State
yy1395.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1390[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("state"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1396 := &x.State
yy1396.CodecEncodeSelf(e)
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1390[2] {
yy1398 := &x.LastTerminationState
yy1398.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1390[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1399 := &x.LastTerminationState
yy1399.CodecEncodeSelf(e)
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1401 := z.EncBinary()
_ = yym1401
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ready"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1402 := z.EncBinary()
_ = yym1402
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1404 := z.EncBinary()
_ = yym1404
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1405 := z.EncBinary()
_ = yym1405
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1407 := z.EncBinary()
_ = yym1407
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("image"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1408 := z.EncBinary()
_ = yym1408
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1410 := z.EncBinary()
_ = yym1410
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imageID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1411 := z.EncBinary()
_ = yym1411
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1390[7] {
yym1413 := z.EncBinary()
_ = yym1413
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1390[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1414 := z.EncBinary()
_ = yym1414
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1390 || yy2arr1390 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ContainerStatus) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1415 := z.DecBinary()
_ = yym1415
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1416 := r.ContainerType()
if yyct1416 == codecSelferValueTypeMap1234 {
yyl1416 := r.ReadMapStart()
if yyl1416 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1416, d)
}
} else if yyct1416 == codecSelferValueTypeArray1234 {
yyl1416 := r.ReadArrayStart()
if yyl1416 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1416, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1417Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1417Slc
var yyhl1417 bool = l >= 0
for yyj1417 := 0; ; yyj1417++ {
if yyhl1417 {
if yyj1417 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1417Slc = r.DecodeBytes(yys1417Slc, true, true)
yys1417 := string(yys1417Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1417 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "state":
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1419 := &x.State
yyv1419.CodecDecodeSelf(d)
}
case "lastState":
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1420 := &x.LastTerminationState
yyv1420.CodecDecodeSelf(d)
}
case "ready":
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
case "restartCount":
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
}
case "image":
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
case "imageID":
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1417)
} // end switch yys1417
} // end for yyj1417
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ContainerStatus) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1426 int
var yyb1426 bool
var yyhl1426 bool = l >= 0
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1428 := &x.State
yyv1428.CodecDecodeSelf(d)
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1429 := &x.LastTerminationState
yyv1429.CodecDecodeSelf(d)
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1426-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1435 := z.EncBinary()
_ = yym1435
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *PodPhase) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1436 := z.DecBinary()
_ = yym1436
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x PodConditionType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1437 := z.EncBinary()
_ = yym1437
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *PodConditionType) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1438 := z.DecBinary()
_ = yym1438
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *PodCondition) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1439 := z.EncBinary()
_ = yym1439
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1440 := !z.EncBinary()
yy2arr1440 := z.EncBasicHandle().StructToArray
var yyq1440 [6]bool
_, _, _ = yysep1440, yyq1440, yy2arr1440
const yyr1440 bool = false
yyq1440[2] = true
yyq1440[3] = true
yyq1440[4] = x.Reason != ""
yyq1440[5] = x.Message != ""
var yynn1440 int
if yyr1440 || yy2arr1440 {
r.EncodeArrayStart(6)
} else {
yynn1440 = 2
for _, b := range yyq1440 {
if b {
yynn1440++
}
}
r.EncodeMapStart(yynn1440)
yynn1440 = 0
}
if yyr1440 || yy2arr1440 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Type.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
if yyr1440 || yy2arr1440 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Status.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Status.CodecEncodeSelf(e)
}
if yyr1440 || yy2arr1440 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1440[2] {
yy1444 := &x.LastProbeTime
yym1445 := z.EncBinary()
_ = yym1445
if false {
} else if z.HasExtensions() && z.EncExt(yy1444) {
} else if yym1445 {
z.EncBinaryMarshal(yy1444)
} else if !yym1445 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1444)
} else {
z.EncFallback(yy1444)
}
} else {
r.EncodeNil()
}
} else {
if yyq1440[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1446 := &x.LastProbeTime
yym1447 := z.EncBinary()
_ = yym1447
if false {
} else if z.HasExtensions() && z.EncExt(yy1446) {
} else if yym1447 {
z.EncBinaryMarshal(yy1446)
} else if !yym1447 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1446)
} else {
z.EncFallback(yy1446)
}
}
}
if yyr1440 || yy2arr1440 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1440[3] {
yy1449 := &x.LastTransitionTime
yym1450 := z.EncBinary()
_ = yym1450
if false {
} else if z.HasExtensions() && z.EncExt(yy1449) {
} else if yym1450 {
z.EncBinaryMarshal(yy1449)
} else if !yym1450 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1449)
} else {
z.EncFallback(yy1449)
}
} else {
r.EncodeNil()
}
} else {
if yyq1440[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1451 := &x.LastTransitionTime
yym1452 := z.EncBinary()
_ = yym1452
if false {
} else if z.HasExtensions() && z.EncExt(yy1451) {
} else if yym1452 {
z.EncBinaryMarshal(yy1451)
} else if !yym1452 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1451)
} else {
z.EncFallback(yy1451)
}
}
}
if yyr1440 || yy2arr1440 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1440[4] {
yym1454 := z.EncBinary()
_ = yym1454
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1440[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1455 := z.EncBinary()
_ = yym1455
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1440 || yy2arr1440 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1440[5] {
yym1457 := z.EncBinary()
_ = yym1457
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1440[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1458 := z.EncBinary()
_ = yym1458
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1440 || yy2arr1440 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodCondition) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1459 := z.DecBinary()
_ = yym1459
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1460 := r.ContainerType()
if yyct1460 == codecSelferValueTypeMap1234 {
yyl1460 := r.ReadMapStart()
if yyl1460 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1460, d)
}
} else if yyct1460 == codecSelferValueTypeArray1234 {
yyl1460 := r.ReadArrayStart()
if yyl1460 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1460, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1461Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1461Slc
var yyhl1461 bool = l >= 0
for yyj1461 := 0; ; yyj1461++ {
if yyhl1461 {
if yyj1461 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1461Slc = r.DecodeBytes(yys1461Slc, true, true)
yys1461 := string(yys1461Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1461 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = PodConditionType(r.DecodeString())
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
case "lastProbeTime":
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg2_unversioned.Time{}
} else {
yyv1464 := &x.LastProbeTime
yym1465 := z.DecBinary()
_ = yym1465
if false {
} else if z.HasExtensions() && z.DecExt(yyv1464) {
} else if yym1465 {
z.DecBinaryUnmarshal(yyv1464)
} else if !yym1465 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1464)
} else {
z.DecFallback(yyv1464, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1466 := &x.LastTransitionTime
yym1467 := z.DecBinary()
_ = yym1467
if false {
} else if z.HasExtensions() && z.DecExt(yyv1466) {
} else if yym1467 {
z.DecBinaryUnmarshal(yyv1466)
} else if !yym1467 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1466)
} else {
z.DecFallback(yyv1466, false)
}
}
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1461)
} // end switch yys1461
} // end for yyj1461
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodCondition) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1470 int
var yyb1470 bool
var yyhl1470 bool = l >= 0
yyj1470++
if yyhl1470 {
yyb1470 = yyj1470 > l
} else {
yyb1470 = r.CheckBreak()
}
if yyb1470 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = PodConditionType(r.DecodeString())
}
yyj1470++
if yyhl1470 {
yyb1470 = yyj1470 > l
} else {
yyb1470 = r.CheckBreak()
}
if yyb1470 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj1470++
if yyhl1470 {
yyb1470 = yyj1470 > l
} else {
yyb1470 = r.CheckBreak()
}
if yyb1470 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg2_unversioned.Time{}
} else {
yyv1473 := &x.LastProbeTime
yym1474 := z.DecBinary()
_ = yym1474
if false {
} else if z.HasExtensions() && z.DecExt(yyv1473) {
} else if yym1474 {
z.DecBinaryUnmarshal(yyv1473)
} else if !yym1474 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1473)
} else {
z.DecFallback(yyv1473, false)
}
}
yyj1470++
if yyhl1470 {
yyb1470 = yyj1470 > l
} else {
yyb1470 = r.CheckBreak()
}
if yyb1470 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1475 := &x.LastTransitionTime
yym1476 := z.DecBinary()
_ = yym1476
if false {
} else if z.HasExtensions() && z.DecExt(yyv1475) {
} else if yym1476 {
z.DecBinaryUnmarshal(yyv1475)
} else if !yym1476 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1475)
} else {
z.DecFallback(yyv1475, false)
}
}
yyj1470++
if yyhl1470 {
yyb1470 = yyj1470 > l
} else {
yyb1470 = r.CheckBreak()
}
if yyb1470 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1470++
if yyhl1470 {
yyb1470 = yyj1470 > l
} else {
yyb1470 = r.CheckBreak()
}
if yyb1470 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1470++
if yyhl1470 {
yyb1470 = yyj1470 > l
} else {
yyb1470 = r.CheckBreak()
}
if yyb1470 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1470-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1479 := z.EncBinary()
_ = yym1479
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *RestartPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1480 := z.DecBinary()
_ = yym1480
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *PodList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1481 := z.EncBinary()
_ = yym1481
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1482 := !z.EncBinary()
yy2arr1482 := z.EncBasicHandle().StructToArray
var yyq1482 [4]bool
_, _, _ = yysep1482, yyq1482, yy2arr1482
const yyr1482 bool = false
yyq1482[0] = x.Kind != ""
yyq1482[1] = x.APIVersion != ""
yyq1482[2] = true
var yynn1482 int
if yyr1482 || yy2arr1482 {
r.EncodeArrayStart(4)
} else {
yynn1482 = 1
for _, b := range yyq1482 {
if b {
yynn1482++
}
}
r.EncodeMapStart(yynn1482)
yynn1482 = 0
}
if yyr1482 || yy2arr1482 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1482[0] {
yym1484 := z.EncBinary()
_ = yym1484
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1482[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1485 := z.EncBinary()
_ = yym1485
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1482 || yy2arr1482 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1482[1] {
yym1487 := z.EncBinary()
_ = yym1487
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1482[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1488 := z.EncBinary()
_ = yym1488
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1482 || yy2arr1482 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1482[2] {
yy1490 := &x.ListMeta
yym1491 := z.EncBinary()
_ = yym1491
if false {
} else if z.HasExtensions() && z.EncExt(yy1490) {
} else {
z.EncFallback(yy1490)
}
} else {
r.EncodeNil()
}
} else {
if yyq1482[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1492 := &x.ListMeta
yym1493 := z.EncBinary()
_ = yym1493
if false {
} else if z.HasExtensions() && z.EncExt(yy1492) {
} else {
z.EncFallback(yy1492)
}
}
}
if yyr1482 || yy2arr1482 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1495 := z.EncBinary()
_ = yym1495
if false {
} else {
h.encSlicePod(([]Pod)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1496 := z.EncBinary()
_ = yym1496
if false {
} else {
h.encSlicePod(([]Pod)(x.Items), e)
}
}
}
if yyr1482 || yy2arr1482 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1497 := z.DecBinary()
_ = yym1497
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1498 := r.ContainerType()
if yyct1498 == codecSelferValueTypeMap1234 {
yyl1498 := r.ReadMapStart()
if yyl1498 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1498, d)
}
} else if yyct1498 == codecSelferValueTypeArray1234 {
yyl1498 := r.ReadArrayStart()
if yyl1498 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1498, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1499Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1499Slc
var yyhl1499 bool = l >= 0
for yyj1499 := 0; ; yyj1499++ {
if yyhl1499 {
if yyj1499 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1499Slc = r.DecodeBytes(yys1499Slc, true, true)
yys1499 := string(yys1499Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1499 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1502 := &x.ListMeta
yym1503 := z.DecBinary()
_ = yym1503
if false {
} else if z.HasExtensions() && z.DecExt(yyv1502) {
} else {
z.DecFallback(yyv1502, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1504 := &x.Items
yym1505 := z.DecBinary()
_ = yym1505
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1504), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1499)
} // end switch yys1499
} // end for yyj1499
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1506 int
var yyb1506 bool
var yyhl1506 bool = l >= 0
yyj1506++
if yyhl1506 {
yyb1506 = yyj1506 > l
} else {
yyb1506 = r.CheckBreak()
}
if yyb1506 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1506++
if yyhl1506 {
yyb1506 = yyj1506 > l
} else {
yyb1506 = r.CheckBreak()
}
if yyb1506 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1506++
if yyhl1506 {
yyb1506 = yyj1506 > l
} else {
yyb1506 = r.CheckBreak()
}
if yyb1506 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1509 := &x.ListMeta
yym1510 := z.DecBinary()
_ = yym1510
if false {
} else if z.HasExtensions() && z.DecExt(yyv1509) {
} else {
z.DecFallback(yyv1509, false)
}
}
yyj1506++
if yyhl1506 {
yyb1506 = yyj1506 > l
} else {
yyb1506 = r.CheckBreak()
}
if yyb1506 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1511 := &x.Items
yym1512 := z.DecBinary()
_ = yym1512
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1511), d)
}
}
for {
yyj1506++
if yyhl1506 {
yyb1506 = yyj1506 > l
} else {
yyb1506 = r.CheckBreak()
}
if yyb1506 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1506-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1513 := z.EncBinary()
_ = yym1513
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *DNSPolicy) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1514 := z.DecBinary()
_ = yym1514
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1515 := z.EncBinary()
_ = yym1515
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1516 := !z.EncBinary()
yy2arr1516 := z.EncBasicHandle().StructToArray
var yyq1516 [1]bool
_, _, _ = yysep1516, yyq1516, yy2arr1516
const yyr1516 bool = false
var yynn1516 int
if yyr1516 || yy2arr1516 {
r.EncodeArrayStart(1)
} else {
yynn1516 = 1
for _, b := range yyq1516 {
if b {
yynn1516++
}
}
r.EncodeMapStart(yynn1516)
yynn1516 = 0
}
if yyr1516 || yy2arr1516 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NodeSelectorTerms == nil {
r.EncodeNil()
} else {
yym1518 := z.EncBinary()
_ = yym1518
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 {
yym1519 := z.EncBinary()
_ = yym1519
if false {
} else {
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
}
}
}
if yyr1516 || yy2arr1516 {
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
yym1520 := z.DecBinary()
_ = yym1520
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1521 := r.ContainerType()
if yyct1521 == codecSelferValueTypeMap1234 {
yyl1521 := r.ReadMapStart()
if yyl1521 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1521, d)
}
} else if yyct1521 == codecSelferValueTypeArray1234 {
yyl1521 := r.ReadArrayStart()
if yyl1521 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1521, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1522Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1522Slc
var yyhl1522 bool = l >= 0
for yyj1522 := 0; ; yyj1522++ {
if yyhl1522 {
if yyj1522 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1522Slc = r.DecodeBytes(yys1522Slc, true, true)
yys1522 := string(yys1522Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1522 {
case "nodeSelectorTerms":
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1523 := &x.NodeSelectorTerms
yym1524 := z.DecBinary()
_ = yym1524
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1523), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1522)
} // end switch yys1522
} // end for yyj1522
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 yyj1525 int
var yyb1525 bool
var yyhl1525 bool = l >= 0
yyj1525++
if yyhl1525 {
yyb1525 = yyj1525 > l
} else {
yyb1525 = r.CheckBreak()
}
if yyb1525 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1526 := &x.NodeSelectorTerms
yym1527 := z.DecBinary()
_ = yym1527
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1526), d)
}
}
for {
yyj1525++
if yyhl1525 {
yyb1525 = yyj1525 > l
} else {
yyb1525 = r.CheckBreak()
}
if yyb1525 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1525-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 {
yym1528 := z.EncBinary()
_ = yym1528
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1529 := !z.EncBinary()
yy2arr1529 := z.EncBasicHandle().StructToArray
var yyq1529 [1]bool
_, _, _ = yysep1529, yyq1529, yy2arr1529
const yyr1529 bool = false
var yynn1529 int
if yyr1529 || yy2arr1529 {
r.EncodeArrayStart(1)
} else {
yynn1529 = 1
for _, b := range yyq1529 {
if b {
yynn1529++
}
}
r.EncodeMapStart(yynn1529)
yynn1529 = 0
}
if yyr1529 || yy2arr1529 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.MatchExpressions == nil {
r.EncodeNil()
} else {
yym1531 := z.EncBinary()
_ = yym1531
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 {
yym1532 := z.EncBinary()
_ = yym1532
if false {
} else {
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
}
}
}
if yyr1529 || yy2arr1529 {
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
yym1533 := z.DecBinary()
_ = yym1533
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1534 := r.ContainerType()
if yyct1534 == codecSelferValueTypeMap1234 {
yyl1534 := r.ReadMapStart()
if yyl1534 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1534, d)
}
} else if yyct1534 == codecSelferValueTypeArray1234 {
yyl1534 := r.ReadArrayStart()
if yyl1534 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1534, 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 yys1535Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1535Slc
var yyhl1535 bool = l >= 0
for yyj1535 := 0; ; yyj1535++ {
if yyhl1535 {
if yyj1535 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1535Slc = r.DecodeBytes(yys1535Slc, true, true)
yys1535 := string(yys1535Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1535 {
case "matchExpressions":
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1536 := &x.MatchExpressions
yym1537 := z.DecBinary()
_ = yym1537
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1536), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1535)
} // end switch yys1535
} // end for yyj1535
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 yyj1538 int
var yyb1538 bool
var yyhl1538 bool = l >= 0
yyj1538++
if yyhl1538 {
yyb1538 = yyj1538 > l
} else {
yyb1538 = r.CheckBreak()
}
if yyb1538 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1539 := &x.MatchExpressions
yym1540 := z.DecBinary()
_ = yym1540
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1539), d)
}
}
for {
yyj1538++
if yyhl1538 {
yyb1538 = yyj1538 > l
} else {
yyb1538 = r.CheckBreak()
}
if yyb1538 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1538-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 {
yym1541 := z.EncBinary()
_ = yym1541
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1542 := !z.EncBinary()
yy2arr1542 := z.EncBasicHandle().StructToArray
var yyq1542 [3]bool
_, _, _ = yysep1542, yyq1542, yy2arr1542
const yyr1542 bool = false
yyq1542[2] = len(x.Values) != 0
var yynn1542 int
if yyr1542 || yy2arr1542 {
r.EncodeArrayStart(3)
} else {
yynn1542 = 2
for _, b := range yyq1542 {
if b {
yynn1542++
}
}
r.EncodeMapStart(yynn1542)
yynn1542 = 0
}
if yyr1542 || yy2arr1542 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1544 := z.EncBinary()
_ = yym1544
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)
yym1545 := z.EncBinary()
_ = yym1545
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1542 || yy2arr1542 {
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 yyr1542 || yy2arr1542 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1542[2] {
if x.Values == nil {
r.EncodeNil()
} else {
yym1548 := z.EncBinary()
_ = yym1548
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1542[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("values"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Values == nil {
r.EncodeNil()
} else {
yym1549 := z.EncBinary()
_ = yym1549
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
}
}
if yyr1542 || yy2arr1542 {
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
yym1550 := z.DecBinary()
_ = yym1550
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1551 := r.ContainerType()
if yyct1551 == codecSelferValueTypeMap1234 {
yyl1551 := r.ReadMapStart()
if yyl1551 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1551, d)
}
} else if yyct1551 == codecSelferValueTypeArray1234 {
yyl1551 := r.ReadArrayStart()
if yyl1551 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1551, 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 yys1552Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1552Slc
var yyhl1552 bool = l >= 0
for yyj1552 := 0; ; yyj1552++ {
if yyhl1552 {
if yyj1552 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1552Slc = r.DecodeBytes(yys1552Slc, true, true)
yys1552 := string(yys1552Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1552 {
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 {
yyv1555 := &x.Values
yym1556 := z.DecBinary()
_ = yym1556
if false {
} else {
z.F.DecSliceStringX(yyv1555, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1552)
} // end switch yys1552
} // end for yyj1552
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 yyj1557 int
var yyb1557 bool
var yyhl1557 bool = l >= 0
yyj1557++
if yyhl1557 {
yyb1557 = yyj1557 > l
} else {
yyb1557 = r.CheckBreak()
}
if yyb1557 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1557++
if yyhl1557 {
yyb1557 = yyj1557 > l
} else {
yyb1557 = r.CheckBreak()
}
if yyb1557 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = NodeSelectorOperator(r.DecodeString())
}
yyj1557++
if yyhl1557 {
yyb1557 = yyj1557 > l
} else {
yyb1557 = r.CheckBreak()
}
if yyb1557 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Values = nil
} else {
yyv1560 := &x.Values
yym1561 := z.DecBinary()
_ = yym1561
if false {
} else {
z.F.DecSliceStringX(yyv1560, false, d)
}
}
for {
yyj1557++
if yyhl1557 {
yyb1557 = yyj1557 > l
} else {
yyb1557 = r.CheckBreak()
}
if yyb1557 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1557-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1562 := z.EncBinary()
_ = yym1562
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
yym1563 := z.DecBinary()
_ = yym1563
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 {
yym1564 := z.EncBinary()
_ = yym1564
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1565 := !z.EncBinary()
yy2arr1565 := z.EncBasicHandle().StructToArray
var yyq1565 [1]bool
_, _, _ = yysep1565, yyq1565, yy2arr1565
const yyr1565 bool = false
yyq1565[0] = x.NodeAffinity != nil
var yynn1565 int
if yyr1565 || yy2arr1565 {
r.EncodeArrayStart(1)
} else {
yynn1565 = 0
for _, b := range yyq1565 {
if b {
yynn1565++
}
}
r.EncodeMapStart(yynn1565)
yynn1565 = 0
}
if yyr1565 || yy2arr1565 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1565[0] {
if x.NodeAffinity == nil {
r.EncodeNil()
} else {
x.NodeAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1565[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 yyr1565 || yy2arr1565 {
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
yym1567 := z.DecBinary()
_ = yym1567
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1568 := r.ContainerType()
if yyct1568 == codecSelferValueTypeMap1234 {
yyl1568 := r.ReadMapStart()
if yyl1568 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1568, d)
}
} else if yyct1568 == codecSelferValueTypeArray1234 {
yyl1568 := r.ReadArrayStart()
if yyl1568 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1568, 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 yys1569Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1569Slc
var yyhl1569 bool = l >= 0
for yyj1569 := 0; ; yyj1569++ {
if yyhl1569 {
if yyj1569 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1569Slc = r.DecodeBytes(yys1569Slc, true, true)
yys1569 := string(yys1569Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1569 {
case "nodeAffinity":
if r.TryDecodeAsNil() {
if x.NodeAffinity != nil {
x.NodeAffinity = nil
}
} else {
if x.NodeAffinity == nil {
x.NodeAffinity = new(NodeAffinity)
}
x.NodeAffinity.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1569)
} // end switch yys1569
} // end for yyj1569
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 yyj1571 int
var yyb1571 bool
var yyhl1571 bool = l >= 0
yyj1571++
if yyhl1571 {
yyb1571 = yyj1571 > l
} else {
yyb1571 = r.CheckBreak()
}
if yyb1571 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NodeAffinity != nil {
x.NodeAffinity = nil
}
} else {
if x.NodeAffinity == nil {
x.NodeAffinity = new(NodeAffinity)
}
x.NodeAffinity.CodecDecodeSelf(d)
}
for {
yyj1571++
if yyhl1571 {
yyb1571 = yyj1571 > l
} else {
yyb1571 = r.CheckBreak()
}
if yyb1571 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1571-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 {
yym1573 := z.EncBinary()
_ = yym1573
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1574 := !z.EncBinary()
yy2arr1574 := z.EncBasicHandle().StructToArray
var yyq1574 [3]bool
_, _, _ = yysep1574, yyq1574, yy2arr1574
const yyr1574 bool = false
yyq1574[0] = x.RequiredDuringSchedulingRequiredDuringExecution != nil
yyq1574[1] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil
yyq1574[2] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1574 int
if yyr1574 || yy2arr1574 {
r.EncodeArrayStart(3)
} else {
yynn1574 = 0
for _, b := range yyq1574 {
if b {
yynn1574++
}
}
r.EncodeMapStart(yynn1574)
yynn1574 = 0
}
if yyr1574 || yy2arr1574 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1574[0] {
if x.RequiredDuringSchedulingRequiredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingRequiredDuringExecution.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1574[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingRequiredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingRequiredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingRequiredDuringExecution.CodecEncodeSelf(e)
}
}
}
if yyr1574 || yy2arr1574 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1574[1] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1574[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
}
}
}
if yyr1574 || yy2arr1574 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1574[2] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1578 := z.EncBinary()
_ = yym1578
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1574[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1579 := z.EncBinary()
_ = yym1579
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1574 || yy2arr1574 {
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
yym1580 := z.DecBinary()
_ = yym1580
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1581 := r.ContainerType()
if yyct1581 == codecSelferValueTypeMap1234 {
yyl1581 := r.ReadMapStart()
if yyl1581 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1581, d)
}
} else if yyct1581 == codecSelferValueTypeArray1234 {
yyl1581 := r.ReadArrayStart()
if yyl1581 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1581, 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 yys1582Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1582Slc
var yyhl1582 bool = l >= 0
for yyj1582 := 0; ; yyj1582++ {
if yyhl1582 {
if yyj1582 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1582Slc = r.DecodeBytes(yys1582Slc, true, true)
yys1582 := string(yys1582Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1582 {
case "requiredDuringSchedulingRequiredDuringExecution":
if r.TryDecodeAsNil() {
if x.RequiredDuringSchedulingRequiredDuringExecution != nil {
x.RequiredDuringSchedulingRequiredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingRequiredDuringExecution == nil {
x.RequiredDuringSchedulingRequiredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingRequiredDuringExecution.CodecDecodeSelf(d)
}
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1585 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1586 := z.DecBinary()
_ = yym1586
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1585), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1582)
} // end switch yys1582
} // end for yyj1582
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 yyj1587 int
var yyb1587 bool
var yyhl1587 bool = l >= 0
yyj1587++
if yyhl1587 {
yyb1587 = yyj1587 > l
} else {
yyb1587 = r.CheckBreak()
}
if yyb1587 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RequiredDuringSchedulingRequiredDuringExecution != nil {
x.RequiredDuringSchedulingRequiredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingRequiredDuringExecution == nil {
x.RequiredDuringSchedulingRequiredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingRequiredDuringExecution.CodecDecodeSelf(d)
}
yyj1587++
if yyhl1587 {
yyb1587 = yyj1587 > l
} else {
yyb1587 = r.CheckBreak()
}
if yyb1587 {
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)
}
yyj1587++
if yyhl1587 {
yyb1587 = yyj1587 > l
} else {
yyb1587 = r.CheckBreak()
}
if yyb1587 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1590 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1591 := z.DecBinary()
_ = yym1591
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1590), d)
}
}
for {
yyj1587++
if yyhl1587 {
yyb1587 = yyj1587 > l
} else {
yyb1587 = r.CheckBreak()
}
if yyb1587 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1587-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 {
yym1592 := z.EncBinary()
_ = yym1592
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1593 := !z.EncBinary()
yy2arr1593 := z.EncBasicHandle().StructToArray
var yyq1593 [2]bool
_, _, _ = yysep1593, yyq1593, yy2arr1593
const yyr1593 bool = false
var yynn1593 int
if yyr1593 || yy2arr1593 {
r.EncodeArrayStart(2)
} else {
yynn1593 = 2
for _, b := range yyq1593 {
if b {
yynn1593++
}
}
r.EncodeMapStart(yynn1593)
yynn1593 = 0
}
if yyr1593 || yy2arr1593 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1595 := z.EncBinary()
_ = yym1595
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("weight"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1596 := z.EncBinary()
_ = yym1596
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
}
if yyr1593 || yy2arr1593 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1598 := &x.Preference
yy1598.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1599 := &x.Preference
yy1599.CodecEncodeSelf(e)
}
if yyr1593 || yy2arr1593 {
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
yym1600 := z.DecBinary()
_ = yym1600
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1601 := r.ContainerType()
if yyct1601 == codecSelferValueTypeMap1234 {
yyl1601 := r.ReadMapStart()
if yyl1601 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1601, d)
}
} else if yyct1601 == codecSelferValueTypeArray1234 {
yyl1601 := r.ReadArrayStart()
if yyl1601 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1601, 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 yys1602Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1602Slc
var yyhl1602 bool = l >= 0
for yyj1602 := 0; ; yyj1602++ {
if yyhl1602 {
if yyj1602 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1602Slc = r.DecodeBytes(yys1602Slc, true, true)
yys1602 := string(yys1602Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1602 {
case "weight":
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
case "preference":
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv1604 := &x.Preference
yyv1604.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1602)
} // end switch yys1602
} // end for yyj1602
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 yyj1605 int
var yyb1605 bool
var yyhl1605 bool = l >= 0
yyj1605++
if yyhl1605 {
yyb1605 = yyj1605 > l
} else {
yyb1605 = r.CheckBreak()
}
if yyb1605 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1605++
if yyhl1605 {
yyb1605 = yyj1605 > l
} else {
yyb1605 = r.CheckBreak()
}
if yyb1605 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv1607 := &x.Preference
yyv1607.CodecDecodeSelf(d)
}
for {
yyj1605++
if yyhl1605 {
yyb1605 = yyj1605 > l
} else {
yyb1605 = r.CheckBreak()
}
if yyb1605 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1605-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1608 := z.EncBinary()
_ = yym1608
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1609 := !z.EncBinary()
yy2arr1609 := z.EncBasicHandle().StructToArray
var yyq1609 [11]bool
_, _, _ = yysep1609, yyq1609, yy2arr1609
const yyr1609 bool = false
yyq1609[2] = x.RestartPolicy != ""
yyq1609[3] = x.TerminationGracePeriodSeconds != nil
yyq1609[4] = x.ActiveDeadlineSeconds != nil
yyq1609[5] = x.DNSPolicy != ""
yyq1609[6] = len(x.NodeSelector) != 0
yyq1609[8] = x.NodeName != ""
yyq1609[9] = x.SecurityContext != nil
yyq1609[10] = len(x.ImagePullSecrets) != 0
var yynn1609 int
if yyr1609 || yy2arr1609 {
r.EncodeArrayStart(11)
} else {
yynn1609 = 3
for _, b := range yyq1609 {
if b {
yynn1609++
}
}
r.EncodeMapStart(yynn1609)
yynn1609 = 0
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Volumes == nil {
r.EncodeNil()
} else {
yym1611 := z.EncBinary()
_ = yym1611
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 {
yym1612 := z.EncBinary()
_ = yym1612
if false {
} else {
h.encSliceVolume(([]Volume)(x.Volumes), e)
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Containers == nil {
r.EncodeNil()
} else {
yym1614 := z.EncBinary()
_ = yym1614
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 {
yym1615 := z.EncBinary()
_ = yym1615
if false {
} else {
h.encSliceContainer(([]Container)(x.Containers), e)
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[2] {
x.RestartPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1609[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.RestartPolicy.CodecEncodeSelf(e)
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[3] {
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy1618 := *x.TerminationGracePeriodSeconds
yym1619 := z.EncBinary()
_ = yym1619
if false {
} else {
r.EncodeInt(int64(yy1618))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1609[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy1620 := *x.TerminationGracePeriodSeconds
yym1621 := z.EncBinary()
_ = yym1621
if false {
} else {
r.EncodeInt(int64(yy1620))
}
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[4] {
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy1623 := *x.ActiveDeadlineSeconds
yym1624 := z.EncBinary()
_ = yym1624
if false {
} else {
r.EncodeInt(int64(yy1623))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1609[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy1625 := *x.ActiveDeadlineSeconds
yym1626 := z.EncBinary()
_ = yym1626
if false {
} else {
r.EncodeInt(int64(yy1625))
}
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[5] {
x.DNSPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1609[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.DNSPolicy.CodecEncodeSelf(e)
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[6] {
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym1629 := z.EncBinary()
_ = yym1629
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1609[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym1630 := z.EncBinary()
_ = yym1630
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1632 := z.EncBinary()
_ = yym1632
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)
yym1633 := z.EncBinary()
_ = yym1633
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[8] {
yym1635 := z.EncBinary()
_ = yym1635
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1609[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1636 := z.EncBinary()
_ = yym1636
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[9] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1609[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 yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[10] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym1639 := z.EncBinary()
_ = yym1639
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1609[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym1640 := z.EncBinary()
_ = yym1640
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr1609 || yy2arr1609 {
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
yym1641 := z.DecBinary()
_ = yym1641
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1642 := r.ContainerType()
if yyct1642 == codecSelferValueTypeMap1234 {
yyl1642 := r.ReadMapStart()
if yyl1642 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1642, d)
}
} else if yyct1642 == codecSelferValueTypeArray1234 {
yyl1642 := r.ReadArrayStart()
if yyl1642 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1642, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1643Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1643Slc
var yyhl1643 bool = l >= 0
for yyj1643 := 0; ; yyj1643++ {
if yyhl1643 {
if yyj1643 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1643Slc = r.DecodeBytes(yys1643Slc, true, true)
yys1643 := string(yys1643Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1643 {
case "volumes":
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv1644 := &x.Volumes
yym1645 := z.DecBinary()
_ = yym1645
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv1644), d)
}
}
case "containers":
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv1646 := &x.Containers
yym1647 := z.DecBinary()
_ = yym1647
if false {
} else {
h.decSliceContainer((*[]Container)(yyv1646), 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)
}
yym1650 := z.DecBinary()
_ = yym1650
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)
}
yym1652 := z.DecBinary()
_ = yym1652
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 {
yyv1654 := &x.NodeSelector
yym1655 := z.DecBinary()
_ = yym1655
if false {
} else {
z.F.DecMapStringStringX(yyv1654, 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 {
yyv1659 := &x.ImagePullSecrets
yym1660 := z.DecBinary()
_ = yym1660
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1659), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1643)
} // end switch yys1643
} // end for yyj1643
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 yyj1661 int
var yyb1661 bool
var yyhl1661 bool = l >= 0
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv1662 := &x.Volumes
yym1663 := z.DecBinary()
_ = yym1663
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv1662), d)
}
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv1664 := &x.Containers
yym1665 := z.DecBinary()
_ = yym1665
if false {
} else {
h.decSliceContainer((*[]Container)(yyv1664), d)
}
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartPolicy = ""
} else {
x.RestartPolicy = RestartPolicy(r.DecodeString())
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
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)
}
yym1668 := z.DecBinary()
_ = yym1668
if false {
} else {
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
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)
}
yym1670 := z.DecBinary()
_ = yym1670
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DNSPolicy = ""
} else {
x.DNSPolicy = DNSPolicy(r.DecodeString())
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelector = nil
} else {
yyv1672 := &x.NodeSelector
yym1673 := z.DecBinary()
_ = yym1673
if false {
} else {
z.F.DecMapStringStringX(yyv1672, false, d)
}
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServiceAccountName = ""
} else {
x.ServiceAccountName = string(r.DecodeString())
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeName = ""
} else {
x.NodeName = string(r.DecodeString())
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
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)
}
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv1677 := &x.ImagePullSecrets
yym1678 := z.DecBinary()
_ = yym1678
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1677), d)
}
}
for {
yyj1661++
if yyhl1661 {
yyb1661 = yyj1661 > l
} else {
yyb1661 = r.CheckBreak()
}
if yyb1661 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1661-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 {
yym1679 := z.EncBinary()
_ = yym1679
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1680 := !z.EncBinary()
yy2arr1680 := z.EncBasicHandle().StructToArray
var yyq1680 [8]bool
_, _, _ = yysep1680, yyq1680, yy2arr1680
const yyr1680 bool = false
yyq1680[0] = x.HostNetwork != false
yyq1680[1] = x.HostPID != false
yyq1680[2] = x.HostIPC != false
yyq1680[3] = x.SELinuxOptions != nil
yyq1680[4] = x.RunAsUser != nil
yyq1680[5] = x.RunAsNonRoot != nil
yyq1680[6] = len(x.SupplementalGroups) != 0
yyq1680[7] = x.FSGroup != nil
var yynn1680 int
if yyr1680 || yy2arr1680 {
r.EncodeArrayStart(8)
} else {
yynn1680 = 0
for _, b := range yyq1680 {
if b {
yynn1680++
}
}
r.EncodeMapStart(yynn1680)
yynn1680 = 0
}
if yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[0] {
yym1682 := z.EncBinary()
_ = yym1682
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1680[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1683 := z.EncBinary()
_ = yym1683
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
}
}
if yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[1] {
yym1685 := z.EncBinary()
_ = yym1685
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1680[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1686 := z.EncBinary()
_ = yym1686
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
}
}
if yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[2] {
yym1688 := z.EncBinary()
_ = yym1688
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1680[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1689 := z.EncBinary()
_ = yym1689
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
}
}
if yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[3] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1680[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 yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[4] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy1692 := *x.RunAsUser
yym1693 := z.EncBinary()
_ = yym1693
if false {
} else {
r.EncodeInt(int64(yy1692))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1680[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy1694 := *x.RunAsUser
yym1695 := z.EncBinary()
_ = yym1695
if false {
} else {
r.EncodeInt(int64(yy1694))
}
}
}
}
if yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[5] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy1697 := *x.RunAsNonRoot
yym1698 := z.EncBinary()
_ = yym1698
if false {
} else {
r.EncodeBool(bool(yy1697))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1680[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy1699 := *x.RunAsNonRoot
yym1700 := z.EncBinary()
_ = yym1700
if false {
} else {
r.EncodeBool(bool(yy1699))
}
}
}
}
if yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[6] {
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym1702 := z.EncBinary()
_ = yym1702
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1680[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym1703 := z.EncBinary()
_ = yym1703
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
}
}
if yyr1680 || yy2arr1680 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1680[7] {
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy1705 := *x.FSGroup
yym1706 := z.EncBinary()
_ = yym1706
if false {
} else {
r.EncodeInt(int64(yy1705))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1680[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy1707 := *x.FSGroup
yym1708 := z.EncBinary()
_ = yym1708
if false {
} else {
r.EncodeInt(int64(yy1707))
}
}
}
}
if yyr1680 || yy2arr1680 {
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
yym1709 := z.DecBinary()
_ = yym1709
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1710 := r.ContainerType()
if yyct1710 == codecSelferValueTypeMap1234 {
yyl1710 := r.ReadMapStart()
if yyl1710 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1710, d)
}
} else if yyct1710 == codecSelferValueTypeArray1234 {
yyl1710 := r.ReadArrayStart()
if yyl1710 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1710, 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 yys1711Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1711Slc
var yyhl1711 bool = l >= 0
for yyj1711 := 0; ; yyj1711++ {
if yyhl1711 {
if yyj1711 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1711Slc = r.DecodeBytes(yys1711Slc, true, true)
yys1711 := string(yys1711Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1711 {
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)
}
yym1717 := z.DecBinary()
_ = yym1717
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)
}
yym1719 := z.DecBinary()
_ = yym1719
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "supplementalGroups":
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv1720 := &x.SupplementalGroups
yym1721 := z.DecBinary()
_ = yym1721
if false {
} else {
z.F.DecSliceInt64X(yyv1720, false, d)
}
}
case "fsGroup":
if r.TryDecodeAsNil() {
if x.FSGroup != nil {
x.FSGroup = nil
}
} else {
if x.FSGroup == nil {
x.FSGroup = new(int64)
}
yym1723 := z.DecBinary()
_ = yym1723
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys1711)
} // end switch yys1711
} // end for yyj1711
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 yyj1724 int
var yyb1724 bool
var yyhl1724 bool = l >= 0
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPID = false
} else {
x.HostPID = bool(r.DecodeBool())
}
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIPC = false
} else {
x.HostIPC = bool(r.DecodeBool())
}
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
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)
}
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
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)
}
yym1730 := z.DecBinary()
_ = yym1730
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
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)
}
yym1732 := z.DecBinary()
_ = yym1732
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv1733 := &x.SupplementalGroups
yym1734 := z.DecBinary()
_ = yym1734
if false {
} else {
z.F.DecSliceInt64X(yyv1733, false, d)
}
}
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
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)
}
yym1736 := z.DecBinary()
_ = yym1736
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
for {
yyj1724++
if yyhl1724 {
yyb1724 = yyj1724 > l
} else {
yyb1724 = r.CheckBreak()
}
if yyb1724 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1724-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 {
yym1737 := z.EncBinary()
_ = yym1737
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1738 := !z.EncBinary()
yy2arr1738 := z.EncBasicHandle().StructToArray
var yyq1738 [8]bool
_, _, _ = yysep1738, yyq1738, yy2arr1738
const yyr1738 bool = false
yyq1738[0] = x.Phase != ""
yyq1738[1] = len(x.Conditions) != 0
yyq1738[2] = x.Message != ""
yyq1738[3] = x.Reason != ""
yyq1738[4] = x.HostIP != ""
yyq1738[5] = x.PodIP != ""
yyq1738[6] = x.StartTime != nil
yyq1738[7] = len(x.ContainerStatuses) != 0
var yynn1738 int
if yyr1738 || yy2arr1738 {
r.EncodeArrayStart(8)
} else {
yynn1738 = 0
for _, b := range yyq1738 {
if b {
yynn1738++
}
}
r.EncodeMapStart(yynn1738)
yynn1738 = 0
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1738[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[1] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1741 := z.EncBinary()
_ = yym1741
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1738[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1742 := z.EncBinary()
_ = yym1742
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
}
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[2] {
yym1744 := z.EncBinary()
_ = yym1744
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1738[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1745 := z.EncBinary()
_ = yym1745
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[3] {
yym1747 := z.EncBinary()
_ = yym1747
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1738[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1748 := z.EncBinary()
_ = yym1748
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[4] {
yym1750 := z.EncBinary()
_ = yym1750
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1738[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1751 := z.EncBinary()
_ = yym1751
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[5] {
yym1753 := z.EncBinary()
_ = yym1753
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1738[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1754 := z.EncBinary()
_ = yym1754
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
}
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[6] {
if x.StartTime == nil {
r.EncodeNil()
} else {
yym1756 := z.EncBinary()
_ = yym1756
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym1756 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym1756 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1738[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.StartTime == nil {
r.EncodeNil()
} else {
yym1757 := z.EncBinary()
_ = yym1757
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym1757 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym1757 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
}
}
if yyr1738 || yy2arr1738 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1738[7] {
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym1759 := z.EncBinary()
_ = yym1759
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1738[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym1760 := z.EncBinary()
_ = yym1760
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
}
}
if yyr1738 || yy2arr1738 {
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
yym1761 := z.DecBinary()
_ = yym1761
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1762 := r.ContainerType()
if yyct1762 == codecSelferValueTypeMap1234 {
yyl1762 := r.ReadMapStart()
if yyl1762 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1762, d)
}
} else if yyct1762 == codecSelferValueTypeArray1234 {
yyl1762 := r.ReadArrayStart()
if yyl1762 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1762, 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 yys1763Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1763Slc
var yyhl1763 bool = l >= 0
for yyj1763 := 0; ; yyj1763++ {
if yyhl1763 {
if yyj1763 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1763Slc = r.DecodeBytes(yys1763Slc, true, true)
yys1763 := string(yys1763Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1763 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv1765 := &x.Conditions
yym1766 := z.DecBinary()
_ = yym1766
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv1765), 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)
}
yym1772 := z.DecBinary()
_ = yym1772
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym1772 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym1772 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
case "containerStatuses":
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv1773 := &x.ContainerStatuses
yym1774 := z.DecBinary()
_ = yym1774
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1773), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1763)
} // end switch yys1763
} // end for yyj1763
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 yyj1775 int
var yyb1775 bool
var yyhl1775 bool = l >= 0
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv1777 := &x.Conditions
yym1778 := z.DecBinary()
_ = yym1778
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv1777), d)
}
}
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodIP = ""
} else {
x.PodIP = string(r.DecodeString())
}
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
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)
}
yym1784 := z.DecBinary()
_ = yym1784
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym1784 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym1784 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv1785 := &x.ContainerStatuses
yym1786 := z.DecBinary()
_ = yym1786
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1785), d)
}
}
for {
yyj1775++
if yyhl1775 {
yyb1775 = yyj1775 > l
} else {
yyb1775 = r.CheckBreak()
}
if yyb1775 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1775-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 {
yym1787 := z.EncBinary()
_ = yym1787
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1788 := !z.EncBinary()
yy2arr1788 := z.EncBasicHandle().StructToArray
var yyq1788 [4]bool
_, _, _ = yysep1788, yyq1788, yy2arr1788
const yyr1788 bool = false
yyq1788[0] = x.Kind != ""
yyq1788[1] = x.APIVersion != ""
yyq1788[2] = true
yyq1788[3] = true
var yynn1788 int
if yyr1788 || yy2arr1788 {
r.EncodeArrayStart(4)
} else {
yynn1788 = 0
for _, b := range yyq1788 {
if b {
yynn1788++
}
}
r.EncodeMapStart(yynn1788)
yynn1788 = 0
}
if yyr1788 || yy2arr1788 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1788[0] {
yym1790 := z.EncBinary()
_ = yym1790
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1788[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1791 := z.EncBinary()
_ = yym1791
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1788 || yy2arr1788 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1788[1] {
yym1793 := z.EncBinary()
_ = yym1793
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1788[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1794 := z.EncBinary()
_ = yym1794
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1788 || yy2arr1788 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1788[2] {
yy1796 := &x.ObjectMeta
yy1796.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1788[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1797 := &x.ObjectMeta
yy1797.CodecEncodeSelf(e)
}
}
if yyr1788 || yy2arr1788 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1788[3] {
yy1799 := &x.Status
yy1799.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1788[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1800 := &x.Status
yy1800.CodecEncodeSelf(e)
}
}
if yyr1788 || yy2arr1788 {
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
yym1801 := z.DecBinary()
_ = yym1801
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1802 := r.ContainerType()
if yyct1802 == codecSelferValueTypeMap1234 {
yyl1802 := r.ReadMapStart()
if yyl1802 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1802, d)
}
} else if yyct1802 == codecSelferValueTypeArray1234 {
yyl1802 := r.ReadArrayStart()
if yyl1802 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1802, 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 yys1803Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1803Slc
var yyhl1803 bool = l >= 0
for yyj1803 := 0; ; yyj1803++ {
if yyhl1803 {
if yyj1803 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1803Slc = r.DecodeBytes(yys1803Slc, true, true)
yys1803 := string(yys1803Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1803 {
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 {
yyv1806 := &x.ObjectMeta
yyv1806.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1807 := &x.Status
yyv1807.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1803)
} // end switch yys1803
} // end for yyj1803
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 yyj1808 int
var yyb1808 bool
var yyhl1808 bool = l >= 0
yyj1808++
if yyhl1808 {
yyb1808 = yyj1808 > l
} else {
yyb1808 = r.CheckBreak()
}
if yyb1808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1808++
if yyhl1808 {
yyb1808 = yyj1808 > l
} else {
yyb1808 = r.CheckBreak()
}
if yyb1808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1808++
if yyhl1808 {
yyb1808 = yyj1808 > l
} else {
yyb1808 = r.CheckBreak()
}
if yyb1808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1811 := &x.ObjectMeta
yyv1811.CodecDecodeSelf(d)
}
yyj1808++
if yyhl1808 {
yyb1808 = yyj1808 > l
} else {
yyb1808 = r.CheckBreak()
}
if yyb1808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1812 := &x.Status
yyv1812.CodecDecodeSelf(d)
}
for {
yyj1808++
if yyhl1808 {
yyb1808 = yyj1808 > l
} else {
yyb1808 = r.CheckBreak()
}
if yyb1808 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1808-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 {
yym1813 := z.EncBinary()
_ = yym1813
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1814 := !z.EncBinary()
yy2arr1814 := z.EncBasicHandle().StructToArray
var yyq1814 [5]bool
_, _, _ = yysep1814, yyq1814, yy2arr1814
const yyr1814 bool = false
yyq1814[0] = x.Kind != ""
yyq1814[1] = x.APIVersion != ""
yyq1814[2] = true
yyq1814[3] = true
yyq1814[4] = true
var yynn1814 int
if yyr1814 || yy2arr1814 {
r.EncodeArrayStart(5)
} else {
yynn1814 = 0
for _, b := range yyq1814 {
if b {
yynn1814++
}
}
r.EncodeMapStart(yynn1814)
yynn1814 = 0
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[0] {
yym1816 := z.EncBinary()
_ = yym1816
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1814[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1817 := z.EncBinary()
_ = yym1817
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[1] {
yym1819 := z.EncBinary()
_ = yym1819
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1814[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1820 := z.EncBinary()
_ = yym1820
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[2] {
yy1822 := &x.ObjectMeta
yy1822.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1814[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1823 := &x.ObjectMeta
yy1823.CodecEncodeSelf(e)
}
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[3] {
yy1825 := &x.Spec
yy1825.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1814[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1826 := &x.Spec
yy1826.CodecEncodeSelf(e)
}
}
if yyr1814 || yy2arr1814 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1814[4] {
yy1828 := &x.Status
yy1828.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1814[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1829 := &x.Status
yy1829.CodecEncodeSelf(e)
}
}
if yyr1814 || yy2arr1814 {
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
yym1830 := z.DecBinary()
_ = yym1830
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1831 := r.ContainerType()
if yyct1831 == codecSelferValueTypeMap1234 {
yyl1831 := r.ReadMapStart()
if yyl1831 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1831, d)
}
} else if yyct1831 == codecSelferValueTypeArray1234 {
yyl1831 := r.ReadArrayStart()
if yyl1831 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1831, 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 yys1832Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1832Slc
var yyhl1832 bool = l >= 0
for yyj1832 := 0; ; yyj1832++ {
if yyhl1832 {
if yyj1832 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1832Slc = r.DecodeBytes(yys1832Slc, true, true)
yys1832 := string(yys1832Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1832 {
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 {
yyv1835 := &x.ObjectMeta
yyv1835.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1836 := &x.Spec
yyv1836.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1837 := &x.Status
yyv1837.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1832)
} // end switch yys1832
} // end for yyj1832
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 yyj1838 int
var yyb1838 bool
var yyhl1838 bool = l >= 0
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1841 := &x.ObjectMeta
yyv1841.CodecDecodeSelf(d)
}
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1842 := &x.Spec
yyv1842.CodecDecodeSelf(d)
}
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1843 := &x.Status
yyv1843.CodecDecodeSelf(d)
}
for {
yyj1838++
if yyhl1838 {
yyb1838 = yyj1838 > l
} else {
yyb1838 = r.CheckBreak()
}
if yyb1838 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1838-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 {
yym1844 := z.EncBinary()
_ = yym1844
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1845 := !z.EncBinary()
yy2arr1845 := z.EncBasicHandle().StructToArray
var yyq1845 [2]bool
_, _, _ = yysep1845, yyq1845, yy2arr1845
const yyr1845 bool = false
yyq1845[0] = true
yyq1845[1] = true
var yynn1845 int
if yyr1845 || yy2arr1845 {
r.EncodeArrayStart(2)
} else {
yynn1845 = 0
for _, b := range yyq1845 {
if b {
yynn1845++
}
}
r.EncodeMapStart(yynn1845)
yynn1845 = 0
}
if yyr1845 || yy2arr1845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1845[0] {
yy1847 := &x.ObjectMeta
yy1847.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1845[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1848 := &x.ObjectMeta
yy1848.CodecEncodeSelf(e)
}
}
if yyr1845 || yy2arr1845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1845[1] {
yy1850 := &x.Spec
yy1850.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1845[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1851 := &x.Spec
yy1851.CodecEncodeSelf(e)
}
}
if yyr1845 || yy2arr1845 {
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
yym1852 := z.DecBinary()
_ = yym1852
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1853 := r.ContainerType()
if yyct1853 == codecSelferValueTypeMap1234 {
yyl1853 := r.ReadMapStart()
if yyl1853 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1853, d)
}
} else if yyct1853 == codecSelferValueTypeArray1234 {
yyl1853 := r.ReadArrayStart()
if yyl1853 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1853, 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 yys1854Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1854Slc
var yyhl1854 bool = l >= 0
for yyj1854 := 0; ; yyj1854++ {
if yyhl1854 {
if yyj1854 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1854Slc = r.DecodeBytes(yys1854Slc, true, true)
yys1854 := string(yys1854Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1854 {
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1855 := &x.ObjectMeta
yyv1855.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1856 := &x.Spec
yyv1856.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1854)
} // end switch yys1854
} // end for yyj1854
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 yyj1857 int
var yyb1857 bool
var yyhl1857 bool = l >= 0
yyj1857++
if yyhl1857 {
yyb1857 = yyj1857 > l
} else {
yyb1857 = r.CheckBreak()
}
if yyb1857 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1858 := &x.ObjectMeta
yyv1858.CodecDecodeSelf(d)
}
yyj1857++
if yyhl1857 {
yyb1857 = yyj1857 > l
} else {
yyb1857 = r.CheckBreak()
}
if yyb1857 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1859 := &x.Spec
yyv1859.CodecDecodeSelf(d)
}
for {
yyj1857++
if yyhl1857 {
yyb1857 = yyj1857 > l
} else {
yyb1857 = r.CheckBreak()
}
if yyb1857 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1857-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 {
yym1860 := z.EncBinary()
_ = yym1860
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1861 := !z.EncBinary()
yy2arr1861 := z.EncBasicHandle().StructToArray
var yyq1861 [4]bool
_, _, _ = yysep1861, yyq1861, yy2arr1861
const yyr1861 bool = false
yyq1861[0] = x.Kind != ""
yyq1861[1] = x.APIVersion != ""
yyq1861[2] = true
yyq1861[3] = true
var yynn1861 int
if yyr1861 || yy2arr1861 {
r.EncodeArrayStart(4)
} else {
yynn1861 = 0
for _, b := range yyq1861 {
if b {
yynn1861++
}
}
r.EncodeMapStart(yynn1861)
yynn1861 = 0
}
if yyr1861 || yy2arr1861 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1861[0] {
yym1863 := z.EncBinary()
_ = yym1863
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1861[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1864 := z.EncBinary()
_ = yym1864
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1861 || yy2arr1861 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1861[1] {
yym1866 := z.EncBinary()
_ = yym1866
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1861[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1867 := z.EncBinary()
_ = yym1867
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1861 || yy2arr1861 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1861[2] {
yy1869 := &x.ObjectMeta
yy1869.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1861[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1870 := &x.ObjectMeta
yy1870.CodecEncodeSelf(e)
}
}
if yyr1861 || yy2arr1861 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1861[3] {
yy1872 := &x.Template
yy1872.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1861[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1873 := &x.Template
yy1873.CodecEncodeSelf(e)
}
}
if yyr1861 || yy2arr1861 {
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
yym1874 := z.DecBinary()
_ = yym1874
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1875 := r.ContainerType()
if yyct1875 == codecSelferValueTypeMap1234 {
yyl1875 := r.ReadMapStart()
if yyl1875 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1875, d)
}
} else if yyct1875 == codecSelferValueTypeArray1234 {
yyl1875 := r.ReadArrayStart()
if yyl1875 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1875, 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 yys1876Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1876Slc
var yyhl1876 bool = l >= 0
for yyj1876 := 0; ; yyj1876++ {
if yyhl1876 {
if yyj1876 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1876Slc = r.DecodeBytes(yys1876Slc, true, true)
yys1876 := string(yys1876Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1876 {
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 {
yyv1879 := &x.ObjectMeta
yyv1879.CodecDecodeSelf(d)
}
case "template":
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv1880 := &x.Template
yyv1880.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1876)
} // end switch yys1876
} // end for yyj1876
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 yyj1881 int
var yyb1881 bool
var yyhl1881 bool = l >= 0
yyj1881++
if yyhl1881 {
yyb1881 = yyj1881 > l
} else {
yyb1881 = r.CheckBreak()
}
if yyb1881 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1881++
if yyhl1881 {
yyb1881 = yyj1881 > l
} else {
yyb1881 = r.CheckBreak()
}
if yyb1881 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1881++
if yyhl1881 {
yyb1881 = yyj1881 > l
} else {
yyb1881 = r.CheckBreak()
}
if yyb1881 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1884 := &x.ObjectMeta
yyv1884.CodecDecodeSelf(d)
}
yyj1881++
if yyhl1881 {
yyb1881 = yyj1881 > l
} else {
yyb1881 = r.CheckBreak()
}
if yyb1881 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv1885 := &x.Template
yyv1885.CodecDecodeSelf(d)
}
for {
yyj1881++
if yyhl1881 {
yyb1881 = yyj1881 > l
} else {
yyb1881 = r.CheckBreak()
}
if yyb1881 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1881-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 {
yym1886 := z.EncBinary()
_ = yym1886
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1887 := !z.EncBinary()
yy2arr1887 := z.EncBasicHandle().StructToArray
var yyq1887 [4]bool
_, _, _ = yysep1887, yyq1887, yy2arr1887
const yyr1887 bool = false
yyq1887[0] = x.Kind != ""
yyq1887[1] = x.APIVersion != ""
yyq1887[2] = true
var yynn1887 int
if yyr1887 || yy2arr1887 {
r.EncodeArrayStart(4)
} else {
yynn1887 = 1
for _, b := range yyq1887 {
if b {
yynn1887++
}
}
r.EncodeMapStart(yynn1887)
yynn1887 = 0
}
if yyr1887 || yy2arr1887 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1887[0] {
yym1889 := z.EncBinary()
_ = yym1889
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1887[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1890 := z.EncBinary()
_ = yym1890
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1887 || yy2arr1887 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1887[1] {
yym1892 := z.EncBinary()
_ = yym1892
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1887[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1893 := z.EncBinary()
_ = yym1893
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1887 || yy2arr1887 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1887[2] {
yy1895 := &x.ListMeta
yym1896 := z.EncBinary()
_ = yym1896
if false {
} else if z.HasExtensions() && z.EncExt(yy1895) {
} else {
z.EncFallback(yy1895)
}
} else {
r.EncodeNil()
}
} else {
if yyq1887[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1897 := &x.ListMeta
yym1898 := z.EncBinary()
_ = yym1898
if false {
} else if z.HasExtensions() && z.EncExt(yy1897) {
} else {
z.EncFallback(yy1897)
}
}
}
if yyr1887 || yy2arr1887 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1900 := z.EncBinary()
_ = yym1900
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 {
yym1901 := z.EncBinary()
_ = yym1901
if false {
} else {
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
}
}
}
if yyr1887 || yy2arr1887 {
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
yym1902 := z.DecBinary()
_ = yym1902
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1903 := r.ContainerType()
if yyct1903 == codecSelferValueTypeMap1234 {
yyl1903 := r.ReadMapStart()
if yyl1903 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1903, d)
}
} else if yyct1903 == codecSelferValueTypeArray1234 {
yyl1903 := r.ReadArrayStart()
if yyl1903 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1903, 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 yys1904Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1904Slc
var yyhl1904 bool = l >= 0
for yyj1904 := 0; ; yyj1904++ {
if yyhl1904 {
if yyj1904 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1904Slc = r.DecodeBytes(yys1904Slc, true, true)
yys1904 := string(yys1904Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1904 {
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 {
yyv1907 := &x.ListMeta
yym1908 := z.DecBinary()
_ = yym1908
if false {
} else if z.HasExtensions() && z.DecExt(yyv1907) {
} else {
z.DecFallback(yyv1907, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1909 := &x.Items
yym1910 := z.DecBinary()
_ = yym1910
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv1909), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1904)
} // end switch yys1904
} // end for yyj1904
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 yyj1911 int
var yyb1911 bool
var yyhl1911 bool = l >= 0
yyj1911++
if yyhl1911 {
yyb1911 = yyj1911 > l
} else {
yyb1911 = r.CheckBreak()
}
if yyb1911 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1911++
if yyhl1911 {
yyb1911 = yyj1911 > l
} else {
yyb1911 = r.CheckBreak()
}
if yyb1911 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1911++
if yyhl1911 {
yyb1911 = yyj1911 > l
} else {
yyb1911 = r.CheckBreak()
}
if yyb1911 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1914 := &x.ListMeta
yym1915 := z.DecBinary()
_ = yym1915
if false {
} else if z.HasExtensions() && z.DecExt(yyv1914) {
} else {
z.DecFallback(yyv1914, false)
}
}
yyj1911++
if yyhl1911 {
yyb1911 = yyj1911 > l
} else {
yyb1911 = r.CheckBreak()
}
if yyb1911 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1916 := &x.Items
yym1917 := z.DecBinary()
_ = yym1917
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv1916), d)
}
}
for {
yyj1911++
if yyhl1911 {
yyb1911 = yyj1911 > l
} else {
yyb1911 = r.CheckBreak()
}
if yyb1911 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1911-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 {
yym1918 := z.EncBinary()
_ = yym1918
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1919 := !z.EncBinary()
yy2arr1919 := z.EncBasicHandle().StructToArray
var yyq1919 [3]bool
_, _, _ = yysep1919, yyq1919, yy2arr1919
const yyr1919 bool = false
yyq1919[2] = x.Template != nil
var yynn1919 int
if yyr1919 || yy2arr1919 {
r.EncodeArrayStart(3)
} else {
yynn1919 = 2
for _, b := range yyq1919 {
if b {
yynn1919++
}
}
r.EncodeMapStart(yynn1919)
yynn1919 = 0
}
if yyr1919 || yy2arr1919 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1921 := z.EncBinary()
_ = yym1921
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1922 := z.EncBinary()
_ = yym1922
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr1919 || yy2arr1919 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym1924 := z.EncBinary()
_ = yym1924
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 {
yym1925 := z.EncBinary()
_ = yym1925
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr1919 || yy2arr1919 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1919[2] {
if x.Template == nil {
r.EncodeNil()
} else {
x.Template.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1919[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Template == nil {
r.EncodeNil()
} else {
x.Template.CodecEncodeSelf(e)
}
}
}
if yyr1919 || yy2arr1919 {
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
yym1927 := z.DecBinary()
_ = yym1927
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1928 := r.ContainerType()
if yyct1928 == codecSelferValueTypeMap1234 {
yyl1928 := r.ReadMapStart()
if yyl1928 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1928, d)
}
} else if yyct1928 == codecSelferValueTypeArray1234 {
yyl1928 := r.ReadArrayStart()
if yyl1928 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1928, 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 yys1929Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1929Slc
var yyhl1929 bool = l >= 0
for yyj1929 := 0; ; yyj1929++ {
if yyhl1929 {
if yyj1929 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1929Slc = r.DecodeBytes(yys1929Slc, true, true)
yys1929 := string(yys1929Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1929 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1931 := &x.Selector
yym1932 := z.DecBinary()
_ = yym1932
if false {
} else {
z.F.DecMapStringStringX(yyv1931, 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, yys1929)
} // end switch yys1929
} // end for yyj1929
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 yyj1934 int
var yyb1934 bool
var yyhl1934 bool = l >= 0
yyj1934++
if yyhl1934 {
yyb1934 = yyj1934 > l
} else {
yyb1934 = r.CheckBreak()
}
if yyb1934 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1934++
if yyhl1934 {
yyb1934 = yyj1934 > l
} else {
yyb1934 = r.CheckBreak()
}
if yyb1934 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1936 := &x.Selector
yym1937 := z.DecBinary()
_ = yym1937
if false {
} else {
z.F.DecMapStringStringX(yyv1936, false, d)
}
}
yyj1934++
if yyhl1934 {
yyb1934 = yyj1934 > l
} else {
yyb1934 = r.CheckBreak()
}
if yyb1934 {
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 {
yyj1934++
if yyhl1934 {
yyb1934 = yyj1934 > l
} else {
yyb1934 = r.CheckBreak()
}
if yyb1934 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1934-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ReplicationControllerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1939 := z.EncBinary()
_ = yym1939
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1940 := !z.EncBinary()
yy2arr1940 := z.EncBasicHandle().StructToArray
var yyq1940 [2]bool
_, _, _ = yysep1940, yyq1940, yy2arr1940
const yyr1940 bool = false
yyq1940[1] = x.ObservedGeneration != 0
var yynn1940 int
if yyr1940 || yy2arr1940 {
r.EncodeArrayStart(2)
} else {
yynn1940 = 1
for _, b := range yyq1940 {
if b {
yynn1940++
}
}
r.EncodeMapStart(yynn1940)
yynn1940 = 0
}
if yyr1940 || yy2arr1940 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1942 := z.EncBinary()
_ = yym1942
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1943 := z.EncBinary()
_ = yym1943
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr1940 || yy2arr1940 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1940[1] {
yym1945 := z.EncBinary()
_ = yym1945
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1940[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1946 := z.EncBinary()
_ = yym1946
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
}
}
if yyr1940 || yy2arr1940 {
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
yym1947 := z.DecBinary()
_ = yym1947
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1948 := r.ContainerType()
if yyct1948 == codecSelferValueTypeMap1234 {
yyl1948 := r.ReadMapStart()
if yyl1948 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1948, d)
}
} else if yyct1948 == codecSelferValueTypeArray1234 {
yyl1948 := r.ReadArrayStart()
if yyl1948 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1948, 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 yys1949Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1949Slc
var yyhl1949 bool = l >= 0
for yyj1949 := 0; ; yyj1949++ {
if yyhl1949 {
if yyj1949 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1949Slc = r.DecodeBytes(yys1949Slc, true, true)
yys1949 := string(yys1949Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1949 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
case "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys1949)
} // end switch yys1949
} // end for yyj1949
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 yyj1952 int
var yyb1952 bool
var yyhl1952 bool = l >= 0
yyj1952++
if yyhl1952 {
yyb1952 = yyj1952 > l
} else {
yyb1952 = r.CheckBreak()
}
if yyb1952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1952++
if yyhl1952 {
yyb1952 = yyj1952 > l
} else {
yyb1952 = r.CheckBreak()
}
if yyb1952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
for {
yyj1952++
if yyhl1952 {
yyb1952 = yyj1952 > l
} else {
yyb1952 = r.CheckBreak()
}
if yyb1952 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1952-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 {
yym1955 := z.EncBinary()
_ = yym1955
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1956 := !z.EncBinary()
yy2arr1956 := z.EncBasicHandle().StructToArray
var yyq1956 [5]bool
_, _, _ = yysep1956, yyq1956, yy2arr1956
const yyr1956 bool = false
yyq1956[0] = x.Kind != ""
yyq1956[1] = x.APIVersion != ""
yyq1956[2] = true
yyq1956[3] = true
yyq1956[4] = true
var yynn1956 int
if yyr1956 || yy2arr1956 {
r.EncodeArrayStart(5)
} else {
yynn1956 = 0
for _, b := range yyq1956 {
if b {
yynn1956++
}
}
r.EncodeMapStart(yynn1956)
yynn1956 = 0
}
if yyr1956 || yy2arr1956 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1956[0] {
yym1958 := z.EncBinary()
_ = yym1958
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1956[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1959 := z.EncBinary()
_ = yym1959
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1956 || yy2arr1956 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1956[1] {
yym1961 := z.EncBinary()
_ = yym1961
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1956[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1962 := z.EncBinary()
_ = yym1962
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1956 || yy2arr1956 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1956[2] {
yy1964 := &x.ObjectMeta
yy1964.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1956[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1965 := &x.ObjectMeta
yy1965.CodecEncodeSelf(e)
}
}
if yyr1956 || yy2arr1956 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1956[3] {
yy1967 := &x.Spec
yy1967.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1956[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1968 := &x.Spec
yy1968.CodecEncodeSelf(e)
}
}
if yyr1956 || yy2arr1956 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1956[4] {
yy1970 := &x.Status
yy1970.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1956[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1971 := &x.Status
yy1971.CodecEncodeSelf(e)
}
}
if yyr1956 || yy2arr1956 {
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
yym1972 := z.DecBinary()
_ = yym1972
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1973 := r.ContainerType()
if yyct1973 == codecSelferValueTypeMap1234 {
yyl1973 := r.ReadMapStart()
if yyl1973 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1973, d)
}
} else if yyct1973 == codecSelferValueTypeArray1234 {
yyl1973 := r.ReadArrayStart()
if yyl1973 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1973, 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 yys1974Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1974Slc
var yyhl1974 bool = l >= 0
for yyj1974 := 0; ; yyj1974++ {
if yyhl1974 {
if yyj1974 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1974Slc = r.DecodeBytes(yys1974Slc, true, true)
yys1974 := string(yys1974Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1974 {
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 {
yyv1977 := &x.ObjectMeta
yyv1977.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv1978 := &x.Spec
yyv1978.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv1979 := &x.Status
yyv1979.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1974)
} // end switch yys1974
} // end for yyj1974
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 yyj1980 int
var yyb1980 bool
var yyhl1980 bool = l >= 0
yyj1980++
if yyhl1980 {
yyb1980 = yyj1980 > l
} else {
yyb1980 = r.CheckBreak()
}
if yyb1980 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1980++
if yyhl1980 {
yyb1980 = yyj1980 > l
} else {
yyb1980 = r.CheckBreak()
}
if yyb1980 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1980++
if yyhl1980 {
yyb1980 = yyj1980 > l
} else {
yyb1980 = r.CheckBreak()
}
if yyb1980 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1983 := &x.ObjectMeta
yyv1983.CodecDecodeSelf(d)
}
yyj1980++
if yyhl1980 {
yyb1980 = yyj1980 > l
} else {
yyb1980 = r.CheckBreak()
}
if yyb1980 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv1984 := &x.Spec
yyv1984.CodecDecodeSelf(d)
}
yyj1980++
if yyhl1980 {
yyb1980 = yyj1980 > l
} else {
yyb1980 = r.CheckBreak()
}
if yyb1980 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv1985 := &x.Status
yyv1985.CodecDecodeSelf(d)
}
for {
yyj1980++
if yyhl1980 {
yyb1980 = yyj1980 > l
} else {
yyb1980 = r.CheckBreak()
}
if yyb1980 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1980-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 {
yym1986 := z.EncBinary()
_ = yym1986
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1987 := !z.EncBinary()
yy2arr1987 := z.EncBasicHandle().StructToArray
var yyq1987 [4]bool
_, _, _ = yysep1987, yyq1987, yy2arr1987
const yyr1987 bool = false
yyq1987[0] = x.Kind != ""
yyq1987[1] = x.APIVersion != ""
yyq1987[2] = true
var yynn1987 int
if yyr1987 || yy2arr1987 {
r.EncodeArrayStart(4)
} else {
yynn1987 = 1
for _, b := range yyq1987 {
if b {
yynn1987++
}
}
r.EncodeMapStart(yynn1987)
yynn1987 = 0
}
if yyr1987 || yy2arr1987 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1987[0] {
yym1989 := z.EncBinary()
_ = yym1989
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1987[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1990 := z.EncBinary()
_ = yym1990
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1987 || yy2arr1987 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1987[1] {
yym1992 := z.EncBinary()
_ = yym1992
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1987[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1993 := z.EncBinary()
_ = yym1993
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1987 || yy2arr1987 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1987[2] {
yy1995 := &x.ListMeta
yym1996 := z.EncBinary()
_ = yym1996
if false {
} else if z.HasExtensions() && z.EncExt(yy1995) {
} else {
z.EncFallback(yy1995)
}
} else {
r.EncodeNil()
}
} else {
if yyq1987[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1997 := &x.ListMeta
yym1998 := z.EncBinary()
_ = yym1998
if false {
} else if z.HasExtensions() && z.EncExt(yy1997) {
} else {
z.EncFallback(yy1997)
}
}
}
if yyr1987 || yy2arr1987 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2000 := z.EncBinary()
_ = yym2000
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 {
yym2001 := z.EncBinary()
_ = yym2001
if false {
} else {
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
}
}
}
if yyr1987 || yy2arr1987 {
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
yym2002 := z.DecBinary()
_ = yym2002
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2003 := r.ContainerType()
if yyct2003 == codecSelferValueTypeMap1234 {
yyl2003 := r.ReadMapStart()
if yyl2003 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2003, d)
}
} else if yyct2003 == codecSelferValueTypeArray1234 {
yyl2003 := r.ReadArrayStart()
if yyl2003 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2003, 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 yys2004Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2004Slc
var yyhl2004 bool = l >= 0
for yyj2004 := 0; ; yyj2004++ {
if yyhl2004 {
if yyj2004 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2004Slc = r.DecodeBytes(yys2004Slc, true, true)
yys2004 := string(yys2004Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2004 {
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 {
yyv2007 := &x.ListMeta
yym2008 := z.DecBinary()
_ = yym2008
if false {
} else if z.HasExtensions() && z.DecExt(yyv2007) {
} else {
z.DecFallback(yyv2007, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2009 := &x.Items
yym2010 := z.DecBinary()
_ = yym2010
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2009), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2004)
} // end switch yys2004
} // end for yyj2004
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 yyj2011 int
var yyb2011 bool
var yyhl2011 bool = l >= 0
yyj2011++
if yyhl2011 {
yyb2011 = yyj2011 > l
} else {
yyb2011 = r.CheckBreak()
}
if yyb2011 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2011++
if yyhl2011 {
yyb2011 = yyj2011 > l
} else {
yyb2011 = r.CheckBreak()
}
if yyb2011 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2011++
if yyhl2011 {
yyb2011 = yyj2011 > l
} else {
yyb2011 = r.CheckBreak()
}
if yyb2011 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2014 := &x.ListMeta
yym2015 := z.DecBinary()
_ = yym2015
if false {
} else if z.HasExtensions() && z.DecExt(yyv2014) {
} else {
z.DecFallback(yyv2014, false)
}
}
yyj2011++
if yyhl2011 {
yyb2011 = yyj2011 > l
} else {
yyb2011 = r.CheckBreak()
}
if yyb2011 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2016 := &x.Items
yym2017 := z.DecBinary()
_ = yym2017
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2016), d)
}
}
for {
yyj2011++
if yyhl2011 {
yyb2011 = yyj2011 > l
} else {
yyb2011 = r.CheckBreak()
}
if yyb2011 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2011-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 {
yym2018 := z.EncBinary()
_ = yym2018
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2019 := !z.EncBinary()
yy2arr2019 := z.EncBasicHandle().StructToArray
var yyq2019 [4]bool
_, _, _ = yysep2019, yyq2019, yy2arr2019
const yyr2019 bool = false
yyq2019[0] = x.Kind != ""
yyq2019[1] = x.APIVersion != ""
yyq2019[2] = true
var yynn2019 int
if yyr2019 || yy2arr2019 {
r.EncodeArrayStart(4)
} else {
yynn2019 = 1
for _, b := range yyq2019 {
if b {
yynn2019++
}
}
r.EncodeMapStart(yynn2019)
yynn2019 = 0
}
if yyr2019 || yy2arr2019 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2019[0] {
yym2021 := z.EncBinary()
_ = yym2021
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2019[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2022 := z.EncBinary()
_ = yym2022
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2019 || yy2arr2019 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2019[1] {
yym2024 := z.EncBinary()
_ = yym2024
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2019[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2025 := z.EncBinary()
_ = yym2025
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2019 || yy2arr2019 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2019[2] {
yy2027 := &x.ListMeta
yym2028 := z.EncBinary()
_ = yym2028
if false {
} else if z.HasExtensions() && z.EncExt(yy2027) {
} else {
z.EncFallback(yy2027)
}
} else {
r.EncodeNil()
}
} else {
if yyq2019[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2029 := &x.ListMeta
yym2030 := z.EncBinary()
_ = yym2030
if false {
} else if z.HasExtensions() && z.EncExt(yy2029) {
} else {
z.EncFallback(yy2029)
}
}
}
if yyr2019 || yy2arr2019 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2032 := z.EncBinary()
_ = yym2032
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 {
yym2033 := z.EncBinary()
_ = yym2033
if false {
} else {
h.encSliceService(([]Service)(x.Items), e)
}
}
}
if yyr2019 || yy2arr2019 {
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
yym2034 := z.DecBinary()
_ = yym2034
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2035 := r.ContainerType()
if yyct2035 == codecSelferValueTypeMap1234 {
yyl2035 := r.ReadMapStart()
if yyl2035 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2035, d)
}
} else if yyct2035 == codecSelferValueTypeArray1234 {
yyl2035 := r.ReadArrayStart()
if yyl2035 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2035, 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 yys2036Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2036Slc
var yyhl2036 bool = l >= 0
for yyj2036 := 0; ; yyj2036++ {
if yyhl2036 {
if yyj2036 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2036Slc = r.DecodeBytes(yys2036Slc, true, true)
yys2036 := string(yys2036Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2036 {
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 {
yyv2039 := &x.ListMeta
yym2040 := z.DecBinary()
_ = yym2040
if false {
} else if z.HasExtensions() && z.DecExt(yyv2039) {
} else {
z.DecFallback(yyv2039, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2041 := &x.Items
yym2042 := z.DecBinary()
_ = yym2042
if false {
} else {
h.decSliceService((*[]Service)(yyv2041), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2036)
} // end switch yys2036
} // end for yyj2036
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 yyj2043 int
var yyb2043 bool
var yyhl2043 bool = l >= 0
yyj2043++
if yyhl2043 {
yyb2043 = yyj2043 > l
} else {
yyb2043 = r.CheckBreak()
}
if yyb2043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2043++
if yyhl2043 {
yyb2043 = yyj2043 > l
} else {
yyb2043 = r.CheckBreak()
}
if yyb2043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2043++
if yyhl2043 {
yyb2043 = yyj2043 > l
} else {
yyb2043 = r.CheckBreak()
}
if yyb2043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2046 := &x.ListMeta
yym2047 := z.DecBinary()
_ = yym2047
if false {
} else if z.HasExtensions() && z.DecExt(yyv2046) {
} else {
z.DecFallback(yyv2046, false)
}
}
yyj2043++
if yyhl2043 {
yyb2043 = yyj2043 > l
} else {
yyb2043 = r.CheckBreak()
}
if yyb2043 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2048 := &x.Items
yym2049 := z.DecBinary()
_ = yym2049
if false {
} else {
h.decSliceService((*[]Service)(yyv2048), d)
}
}
for {
yyj2043++
if yyhl2043 {
yyb2043 = yyj2043 > l
} else {
yyb2043 = r.CheckBreak()
}
if yyb2043 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2043-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2050 := z.EncBinary()
_ = yym2050
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
yym2051 := z.DecBinary()
_ = yym2051
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
yym2052 := z.EncBinary()
_ = yym2052
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
yym2053 := z.DecBinary()
_ = yym2053
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 {
yym2054 := z.EncBinary()
_ = yym2054
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2055 := !z.EncBinary()
yy2arr2055 := z.EncBasicHandle().StructToArray
var yyq2055 [1]bool
_, _, _ = yysep2055, yyq2055, yy2arr2055
const yyr2055 bool = false
yyq2055[0] = true
var yynn2055 int
if yyr2055 || yy2arr2055 {
r.EncodeArrayStart(1)
} else {
yynn2055 = 0
for _, b := range yyq2055 {
if b {
yynn2055++
}
}
r.EncodeMapStart(yynn2055)
yynn2055 = 0
}
if yyr2055 || yy2arr2055 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2055[0] {
yy2057 := &x.LoadBalancer
yy2057.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2055[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2058 := &x.LoadBalancer
yy2058.CodecEncodeSelf(e)
}
}
if yyr2055 || yy2arr2055 {
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
yym2059 := z.DecBinary()
_ = yym2059
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2060 := r.ContainerType()
if yyct2060 == codecSelferValueTypeMap1234 {
yyl2060 := r.ReadMapStart()
if yyl2060 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2060, d)
}
} else if yyct2060 == codecSelferValueTypeArray1234 {
yyl2060 := r.ReadArrayStart()
if yyl2060 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2060, 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 yys2061Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2061Slc
var yyhl2061 bool = l >= 0
for yyj2061 := 0; ; yyj2061++ {
if yyhl2061 {
if yyj2061 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2061Slc = r.DecodeBytes(yys2061Slc, true, true)
yys2061 := string(yys2061Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2061 {
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2062 := &x.LoadBalancer
yyv2062.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2061)
} // end switch yys2061
} // end for yyj2061
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 yyj2063 int
var yyb2063 bool
var yyhl2063 bool = l >= 0
yyj2063++
if yyhl2063 {
yyb2063 = yyj2063 > l
} else {
yyb2063 = r.CheckBreak()
}
if yyb2063 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2064 := &x.LoadBalancer
yyv2064.CodecDecodeSelf(d)
}
for {
yyj2063++
if yyhl2063 {
yyb2063 = yyj2063 > l
} else {
yyb2063 = r.CheckBreak()
}
if yyb2063 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2063-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 {
yym2065 := z.EncBinary()
_ = yym2065
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2066 := !z.EncBinary()
yy2arr2066 := z.EncBasicHandle().StructToArray
var yyq2066 [1]bool
_, _, _ = yysep2066, yyq2066, yy2arr2066
const yyr2066 bool = false
yyq2066[0] = len(x.Ingress) != 0
var yynn2066 int
if yyr2066 || yy2arr2066 {
r.EncodeArrayStart(1)
} else {
yynn2066 = 0
for _, b := range yyq2066 {
if b {
yynn2066++
}
}
r.EncodeMapStart(yynn2066)
yynn2066 = 0
}
if yyr2066 || yy2arr2066 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2066[0] {
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2068 := z.EncBinary()
_ = yym2068
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2066[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2069 := z.EncBinary()
_ = yym2069
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
}
}
if yyr2066 || yy2arr2066 {
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
yym2070 := z.DecBinary()
_ = yym2070
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2071 := r.ContainerType()
if yyct2071 == codecSelferValueTypeMap1234 {
yyl2071 := r.ReadMapStart()
if yyl2071 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2071, d)
}
} else if yyct2071 == codecSelferValueTypeArray1234 {
yyl2071 := r.ReadArrayStart()
if yyl2071 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2071, 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 yys2072Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2072Slc
var yyhl2072 bool = l >= 0
for yyj2072 := 0; ; yyj2072++ {
if yyhl2072 {
if yyj2072 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2072Slc = r.DecodeBytes(yys2072Slc, true, true)
yys2072 := string(yys2072Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2072 {
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2073 := &x.Ingress
yym2074 := z.DecBinary()
_ = yym2074
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2073), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2072)
} // end switch yys2072
} // end for yyj2072
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 yyj2075 int
var yyb2075 bool
var yyhl2075 bool = l >= 0
yyj2075++
if yyhl2075 {
yyb2075 = yyj2075 > l
} else {
yyb2075 = r.CheckBreak()
}
if yyb2075 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2076 := &x.Ingress
yym2077 := z.DecBinary()
_ = yym2077
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2076), d)
}
}
for {
yyj2075++
if yyhl2075 {
yyb2075 = yyj2075 > l
} else {
yyb2075 = r.CheckBreak()
}
if yyb2075 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2075-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 {
yym2078 := z.EncBinary()
_ = yym2078
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2079 := !z.EncBinary()
yy2arr2079 := z.EncBasicHandle().StructToArray
var yyq2079 [2]bool
_, _, _ = yysep2079, yyq2079, yy2arr2079
const yyr2079 bool = false
yyq2079[0] = x.IP != ""
yyq2079[1] = x.Hostname != ""
var yynn2079 int
if yyr2079 || yy2arr2079 {
r.EncodeArrayStart(2)
} else {
yynn2079 = 0
for _, b := range yyq2079 {
if b {
yynn2079++
}
}
r.EncodeMapStart(yynn2079)
yynn2079 = 0
}
if yyr2079 || yy2arr2079 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2079[0] {
yym2081 := z.EncBinary()
_ = yym2081
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2079[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ip"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2082 := z.EncBinary()
_ = yym2082
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
}
if yyr2079 || yy2arr2079 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2079[1] {
yym2084 := z.EncBinary()
_ = yym2084
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2079[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2085 := z.EncBinary()
_ = yym2085
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2079 || yy2arr2079 {
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
yym2086 := z.DecBinary()
_ = yym2086
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2087 := r.ContainerType()
if yyct2087 == codecSelferValueTypeMap1234 {
yyl2087 := r.ReadMapStart()
if yyl2087 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2087, d)
}
} else if yyct2087 == codecSelferValueTypeArray1234 {
yyl2087 := r.ReadArrayStart()
if yyl2087 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2087, 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 yys2088Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2088Slc
var yyhl2088 bool = l >= 0
for yyj2088 := 0; ; yyj2088++ {
if yyhl2088 {
if yyj2088 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2088Slc = r.DecodeBytes(yys2088Slc, true, true)
yys2088 := string(yys2088Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2088 {
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, yys2088)
} // end switch yys2088
} // end for yyj2088
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 yyj2091 int
var yyb2091 bool
var yyhl2091 bool = l >= 0
yyj2091++
if yyhl2091 {
yyb2091 = yyj2091 > l
} else {
yyb2091 = r.CheckBreak()
}
if yyb2091 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2091++
if yyhl2091 {
yyb2091 = yyj2091 > l
} else {
yyb2091 = r.CheckBreak()
}
if yyb2091 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
for {
yyj2091++
if yyhl2091 {
yyb2091 = yyj2091 > l
} else {
yyb2091 = r.CheckBreak()
}
if yyb2091 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2091-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 {
yym2094 := z.EncBinary()
_ = yym2094
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2095 := !z.EncBinary()
yy2arr2095 := z.EncBasicHandle().StructToArray
var yyq2095 [7]bool
_, _, _ = yysep2095, yyq2095, yy2arr2095
const yyr2095 bool = false
yyq2095[0] = x.Type != ""
yyq2095[3] = x.ClusterIP != ""
yyq2095[4] = len(x.ExternalIPs) != 0
yyq2095[5] = x.LoadBalancerIP != ""
yyq2095[6] = x.SessionAffinity != ""
var yynn2095 int
if yyr2095 || yy2arr2095 {
r.EncodeArrayStart(7)
} else {
yynn2095 = 2
for _, b := range yyq2095 {
if b {
yynn2095++
}
}
r.EncodeMapStart(yynn2095)
yynn2095 = 0
}
if yyr2095 || yy2arr2095 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2095[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2095[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr2095 || yy2arr2095 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2098 := z.EncBinary()
_ = yym2098
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 {
yym2099 := z.EncBinary()
_ = yym2099
if false {
} else {
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
}
}
}
if yyr2095 || yy2arr2095 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym2101 := z.EncBinary()
_ = yym2101
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 {
yym2102 := z.EncBinary()
_ = yym2102
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2095 || yy2arr2095 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2095[3] {
yym2104 := z.EncBinary()
_ = yym2104
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2095[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2105 := z.EncBinary()
_ = yym2105
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
}
}
if yyr2095 || yy2arr2095 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2095[4] {
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2107 := z.EncBinary()
_ = yym2107
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2095[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2108 := z.EncBinary()
_ = yym2108
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
}
}
if yyr2095 || yy2arr2095 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2095[5] {
yym2110 := z.EncBinary()
_ = yym2110
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2095[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2111 := z.EncBinary()
_ = yym2111
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
}
}
if yyr2095 || yy2arr2095 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2095[6] {
x.SessionAffinity.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2095[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.SessionAffinity.CodecEncodeSelf(e)
}
}
if yyr2095 || yy2arr2095 {
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
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 *ServiceSpec) 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 "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2117 := &x.Ports
yym2118 := z.DecBinary()
_ = yym2118
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2117), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2119 := &x.Selector
yym2120 := z.DecBinary()
_ = yym2120
if false {
} else {
z.F.DecMapStringStringX(yyv2119, false, d)
}
}
case "clusterIP":
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
case "externalIPs":
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2122 := &x.ExternalIPs
yym2123 := z.DecBinary()
_ = yym2123
if false {
} else {
z.F.DecSliceStringX(yyv2122, false, d)
}
}
case "loadBalancerIP":
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
case "sessionAffinity":
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2115)
} // end switch yys2115
} // end for yyj2115
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 yyj2126 int
var yyb2126 bool
var yyhl2126 bool = l >= 0
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2128 := &x.Ports
yym2129 := z.DecBinary()
_ = yym2129
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2128), d)
}
}
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2130 := &x.Selector
yym2131 := z.DecBinary()
_ = yym2131
if false {
} else {
z.F.DecMapStringStringX(yyv2130, false, d)
}
}
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2133 := &x.ExternalIPs
yym2134 := z.DecBinary()
_ = yym2134
if false {
} else {
z.F.DecSliceStringX(yyv2133, false, d)
}
}
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
for {
yyj2126++
if yyhl2126 {
yyb2126 = yyj2126 > l
} else {
yyb2126 = r.CheckBreak()
}
if yyb2126 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2126-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 {
yym2137 := z.EncBinary()
_ = yym2137
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2138 := !z.EncBinary()
yy2arr2138 := z.EncBasicHandle().StructToArray
var yyq2138 [5]bool
_, _, _ = yysep2138, yyq2138, yy2arr2138
const yyr2138 bool = false
var yynn2138 int
if yyr2138 || yy2arr2138 {
r.EncodeArrayStart(5)
} else {
yynn2138 = 5
for _, b := range yyq2138 {
if b {
yynn2138++
}
}
r.EncodeMapStart(yynn2138)
yynn2138 = 0
}
if yyr2138 || yy2arr2138 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2140 := z.EncBinary()
_ = yym2140
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)
yym2141 := z.EncBinary()
_ = yym2141
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2138 || yy2arr2138 {
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 yyr2138 || yy2arr2138 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2144 := z.EncBinary()
_ = yym2144
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2145 := z.EncBinary()
_ = yym2145
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2138 || yy2arr2138 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2147 := &x.TargetPort
yym2148 := z.EncBinary()
_ = yym2148
if false {
} else if z.HasExtensions() && z.EncExt(yy2147) {
} else if !yym2148 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2147)
} else {
z.EncFallback(yy2147)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2149 := &x.TargetPort
yym2150 := z.EncBinary()
_ = yym2150
if false {
} else if z.HasExtensions() && z.EncExt(yy2149) {
} else if !yym2150 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2149)
} else {
z.EncFallback(yy2149)
}
}
if yyr2138 || yy2arr2138 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2152 := z.EncBinary()
_ = yym2152
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2153 := z.EncBinary()
_ = yym2153
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
}
if yyr2138 || yy2arr2138 {
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
yym2154 := z.DecBinary()
_ = yym2154
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2155 := r.ContainerType()
if yyct2155 == codecSelferValueTypeMap1234 {
yyl2155 := r.ReadMapStart()
if yyl2155 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2155, d)
}
} else if yyct2155 == codecSelferValueTypeArray1234 {
yyl2155 := r.ReadArrayStart()
if yyl2155 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2155, 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 yys2156Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2156Slc
var yyhl2156 bool = l >= 0
for yyj2156 := 0; ; yyj2156++ {
if yyhl2156 {
if yyj2156 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2156Slc = r.DecodeBytes(yys2156Slc, true, true)
yys2156 := string(yys2156Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2156 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
case "targetPort":
if r.TryDecodeAsNil() {
x.TargetPort = pkg5_intstr.IntOrString{}
} else {
yyv2160 := &x.TargetPort
yym2161 := z.DecBinary()
_ = yym2161
if false {
} else if z.HasExtensions() && z.DecExt(yyv2160) {
} else if !yym2161 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2160)
} else {
z.DecFallback(yyv2160, false)
}
}
case "nodePort":
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys2156)
} // end switch yys2156
} // end for yyj2156
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 yyj2163 int
var yyb2163 bool
var yyhl2163 bool = l >= 0
yyj2163++
if yyhl2163 {
yyb2163 = yyj2163 > l
} else {
yyb2163 = r.CheckBreak()
}
if yyb2163 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2163++
if yyhl2163 {
yyb2163 = yyj2163 > l
} else {
yyb2163 = r.CheckBreak()
}
if yyb2163 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj2163++
if yyhl2163 {
yyb2163 = yyj2163 > l
} else {
yyb2163 = r.CheckBreak()
}
if yyb2163 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj2163++
if yyhl2163 {
yyb2163 = yyj2163 > l
} else {
yyb2163 = r.CheckBreak()
}
if yyb2163 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPort = pkg5_intstr.IntOrString{}
} else {
yyv2167 := &x.TargetPort
yym2168 := z.DecBinary()
_ = yym2168
if false {
} else if z.HasExtensions() && z.DecExt(yyv2167) {
} else if !yym2168 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2167)
} else {
z.DecFallback(yyv2167, false)
}
}
yyj2163++
if yyhl2163 {
yyb2163 = yyj2163 > l
} else {
yyb2163 = r.CheckBreak()
}
if yyb2163 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj2163++
if yyhl2163 {
yyb2163 = yyj2163 > l
} else {
yyb2163 = r.CheckBreak()
}
if yyb2163 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2163-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Service) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2170 := z.EncBinary()
_ = yym2170
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2171 := !z.EncBinary()
yy2arr2171 := z.EncBasicHandle().StructToArray
var yyq2171 [5]bool
_, _, _ = yysep2171, yyq2171, yy2arr2171
const yyr2171 bool = false
yyq2171[0] = x.Kind != ""
yyq2171[1] = x.APIVersion != ""
yyq2171[2] = true
yyq2171[3] = true
yyq2171[4] = true
var yynn2171 int
if yyr2171 || yy2arr2171 {
r.EncodeArrayStart(5)
} else {
yynn2171 = 0
for _, b := range yyq2171 {
if b {
yynn2171++
}
}
r.EncodeMapStart(yynn2171)
yynn2171 = 0
}
if yyr2171 || yy2arr2171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2171[0] {
yym2173 := z.EncBinary()
_ = yym2173
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2171[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2174 := z.EncBinary()
_ = yym2174
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2171 || yy2arr2171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2171[1] {
yym2176 := z.EncBinary()
_ = yym2176
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2171[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2177 := z.EncBinary()
_ = yym2177
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2171 || yy2arr2171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2171[2] {
yy2179 := &x.ObjectMeta
yy2179.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2171[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2180 := &x.ObjectMeta
yy2180.CodecEncodeSelf(e)
}
}
if yyr2171 || yy2arr2171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2171[3] {
yy2182 := &x.Spec
yy2182.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2171[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2183 := &x.Spec
yy2183.CodecEncodeSelf(e)
}
}
if yyr2171 || yy2arr2171 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2171[4] {
yy2185 := &x.Status
yy2185.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2171[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2186 := &x.Status
yy2186.CodecEncodeSelf(e)
}
}
if yyr2171 || yy2arr2171 {
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
yym2187 := z.DecBinary()
_ = yym2187
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2188 := r.ContainerType()
if yyct2188 == codecSelferValueTypeMap1234 {
yyl2188 := r.ReadMapStart()
if yyl2188 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2188, d)
}
} else if yyct2188 == codecSelferValueTypeArray1234 {
yyl2188 := r.ReadArrayStart()
if yyl2188 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2188, 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 yys2189Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2189Slc
var yyhl2189 bool = l >= 0
for yyj2189 := 0; ; yyj2189++ {
if yyhl2189 {
if yyj2189 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2189Slc = r.DecodeBytes(yys2189Slc, true, true)
yys2189 := string(yys2189Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2189 {
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 {
yyv2192 := &x.ObjectMeta
yyv2192.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2193 := &x.Spec
yyv2193.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2194 := &x.Status
yyv2194.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2189)
} // end switch yys2189
} // end for yyj2189
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 yyj2195 int
var yyb2195 bool
var yyhl2195 bool = l >= 0
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2198 := &x.ObjectMeta
yyv2198.CodecDecodeSelf(d)
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2199 := &x.Spec
yyv2199.CodecDecodeSelf(d)
}
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2200 := &x.Status
yyv2200.CodecDecodeSelf(d)
}
for {
yyj2195++
if yyhl2195 {
yyb2195 = yyj2195 > l
} else {
yyb2195 = r.CheckBreak()
}
if yyb2195 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2195-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 {
yym2201 := z.EncBinary()
_ = yym2201
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2202 := !z.EncBinary()
yy2arr2202 := z.EncBasicHandle().StructToArray
var yyq2202 [5]bool
_, _, _ = yysep2202, yyq2202, yy2arr2202
const yyr2202 bool = false
yyq2202[0] = x.Kind != ""
yyq2202[1] = x.APIVersion != ""
yyq2202[2] = true
yyq2202[4] = len(x.ImagePullSecrets) != 0
var yynn2202 int
if yyr2202 || yy2arr2202 {
r.EncodeArrayStart(5)
} else {
yynn2202 = 1
for _, b := range yyq2202 {
if b {
yynn2202++
}
}
r.EncodeMapStart(yynn2202)
yynn2202 = 0
}
if yyr2202 || yy2arr2202 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2202[0] {
yym2204 := z.EncBinary()
_ = yym2204
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2202[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2205 := z.EncBinary()
_ = yym2205
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2202 || yy2arr2202 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2202[1] {
yym2207 := z.EncBinary()
_ = yym2207
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2202[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2208 := z.EncBinary()
_ = yym2208
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2202 || yy2arr2202 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2202[2] {
yy2210 := &x.ObjectMeta
yy2210.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2202[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2211 := &x.ObjectMeta
yy2211.CodecEncodeSelf(e)
}
}
if yyr2202 || yy2arr2202 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Secrets == nil {
r.EncodeNil()
} else {
yym2213 := z.EncBinary()
_ = yym2213
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 {
yym2214 := z.EncBinary()
_ = yym2214
if false {
} else {
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
}
}
}
if yyr2202 || yy2arr2202 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2202[4] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2216 := z.EncBinary()
_ = yym2216
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2202[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2217 := z.EncBinary()
_ = yym2217
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2202 || yy2arr2202 {
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
yym2218 := z.DecBinary()
_ = yym2218
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2219 := r.ContainerType()
if yyct2219 == codecSelferValueTypeMap1234 {
yyl2219 := r.ReadMapStart()
if yyl2219 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2219, d)
}
} else if yyct2219 == codecSelferValueTypeArray1234 {
yyl2219 := r.ReadArrayStart()
if yyl2219 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2219, 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 yys2220Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2220Slc
var yyhl2220 bool = l >= 0
for yyj2220 := 0; ; yyj2220++ {
if yyhl2220 {
if yyj2220 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2220Slc = r.DecodeBytes(yys2220Slc, true, true)
yys2220 := string(yys2220Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2220 {
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 {
yyv2223 := &x.ObjectMeta
yyv2223.CodecDecodeSelf(d)
}
case "secrets":
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2224 := &x.Secrets
yym2225 := z.DecBinary()
_ = yym2225
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2224), d)
}
}
case "imagePullSecrets":
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2226 := &x.ImagePullSecrets
yym2227 := z.DecBinary()
_ = yym2227
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2226), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2220)
} // end switch yys2220
} // end for yyj2220
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 yyj2228 int
var yyb2228 bool
var yyhl2228 bool = l >= 0
yyj2228++
if yyhl2228 {
yyb2228 = yyj2228 > l
} else {
yyb2228 = r.CheckBreak()
}
if yyb2228 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2228++
if yyhl2228 {
yyb2228 = yyj2228 > l
} else {
yyb2228 = r.CheckBreak()
}
if yyb2228 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2228++
if yyhl2228 {
yyb2228 = yyj2228 > l
} else {
yyb2228 = r.CheckBreak()
}
if yyb2228 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2231 := &x.ObjectMeta
yyv2231.CodecDecodeSelf(d)
}
yyj2228++
if yyhl2228 {
yyb2228 = yyj2228 > l
} else {
yyb2228 = r.CheckBreak()
}
if yyb2228 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2232 := &x.Secrets
yym2233 := z.DecBinary()
_ = yym2233
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2232), d)
}
}
yyj2228++
if yyhl2228 {
yyb2228 = yyj2228 > l
} else {
yyb2228 = r.CheckBreak()
}
if yyb2228 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2234 := &x.ImagePullSecrets
yym2235 := z.DecBinary()
_ = yym2235
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2234), d)
}
}
for {
yyj2228++
if yyhl2228 {
yyb2228 = yyj2228 > l
} else {
yyb2228 = r.CheckBreak()
}
if yyb2228 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2228-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 {
yym2236 := z.EncBinary()
_ = yym2236
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2237 := !z.EncBinary()
yy2arr2237 := z.EncBasicHandle().StructToArray
var yyq2237 [4]bool
_, _, _ = yysep2237, yyq2237, yy2arr2237
const yyr2237 bool = false
yyq2237[0] = x.Kind != ""
yyq2237[1] = x.APIVersion != ""
yyq2237[2] = true
var yynn2237 int
if yyr2237 || yy2arr2237 {
r.EncodeArrayStart(4)
} else {
yynn2237 = 1
for _, b := range yyq2237 {
if b {
yynn2237++
}
}
r.EncodeMapStart(yynn2237)
yynn2237 = 0
}
if yyr2237 || yy2arr2237 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2237[0] {
yym2239 := z.EncBinary()
_ = yym2239
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2237[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2240 := z.EncBinary()
_ = yym2240
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2237 || yy2arr2237 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2237[1] {
yym2242 := z.EncBinary()
_ = yym2242
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2237[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2243 := z.EncBinary()
_ = yym2243
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2237 || yy2arr2237 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2237[2] {
yy2245 := &x.ListMeta
yym2246 := z.EncBinary()
_ = yym2246
if false {
} else if z.HasExtensions() && z.EncExt(yy2245) {
} else {
z.EncFallback(yy2245)
}
} else {
r.EncodeNil()
}
} else {
if yyq2237[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2247 := &x.ListMeta
yym2248 := z.EncBinary()
_ = yym2248
if false {
} else if z.HasExtensions() && z.EncExt(yy2247) {
} else {
z.EncFallback(yy2247)
}
}
}
if yyr2237 || yy2arr2237 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2250 := z.EncBinary()
_ = yym2250
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 {
yym2251 := z.EncBinary()
_ = yym2251
if false {
} else {
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
}
}
}
if yyr2237 || yy2arr2237 {
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
yym2252 := z.DecBinary()
_ = yym2252
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2253 := r.ContainerType()
if yyct2253 == codecSelferValueTypeMap1234 {
yyl2253 := r.ReadMapStart()
if yyl2253 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2253, d)
}
} else if yyct2253 == codecSelferValueTypeArray1234 {
yyl2253 := r.ReadArrayStart()
if yyl2253 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2253, 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 yys2254Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2254Slc
var yyhl2254 bool = l >= 0
for yyj2254 := 0; ; yyj2254++ {
if yyhl2254 {
if yyj2254 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2254Slc = r.DecodeBytes(yys2254Slc, true, true)
yys2254 := string(yys2254Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2254 {
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 {
yyv2257 := &x.ListMeta
yym2258 := z.DecBinary()
_ = yym2258
if false {
} else if z.HasExtensions() && z.DecExt(yyv2257) {
} else {
z.DecFallback(yyv2257, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2259 := &x.Items
yym2260 := z.DecBinary()
_ = yym2260
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2259), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2254)
} // end switch yys2254
} // end for yyj2254
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 yyj2261 int
var yyb2261 bool
var yyhl2261 bool = l >= 0
yyj2261++
if yyhl2261 {
yyb2261 = yyj2261 > l
} else {
yyb2261 = r.CheckBreak()
}
if yyb2261 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2261++
if yyhl2261 {
yyb2261 = yyj2261 > l
} else {
yyb2261 = r.CheckBreak()
}
if yyb2261 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2261++
if yyhl2261 {
yyb2261 = yyj2261 > l
} else {
yyb2261 = r.CheckBreak()
}
if yyb2261 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2264 := &x.ListMeta
yym2265 := z.DecBinary()
_ = yym2265
if false {
} else if z.HasExtensions() && z.DecExt(yyv2264) {
} else {
z.DecFallback(yyv2264, false)
}
}
yyj2261++
if yyhl2261 {
yyb2261 = yyj2261 > l
} else {
yyb2261 = r.CheckBreak()
}
if yyb2261 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2266 := &x.Items
yym2267 := z.DecBinary()
_ = yym2267
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2266), d)
}
}
for {
yyj2261++
if yyhl2261 {
yyb2261 = yyj2261 > l
} else {
yyb2261 = r.CheckBreak()
}
if yyb2261 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2261-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 {
yym2268 := z.EncBinary()
_ = yym2268
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2269 := !z.EncBinary()
yy2arr2269 := z.EncBasicHandle().StructToArray
var yyq2269 [4]bool
_, _, _ = yysep2269, yyq2269, yy2arr2269
const yyr2269 bool = false
yyq2269[0] = x.Kind != ""
yyq2269[1] = x.APIVersion != ""
yyq2269[2] = true
var yynn2269 int
if yyr2269 || yy2arr2269 {
r.EncodeArrayStart(4)
} else {
yynn2269 = 1
for _, b := range yyq2269 {
if b {
yynn2269++
}
}
r.EncodeMapStart(yynn2269)
yynn2269 = 0
}
if yyr2269 || yy2arr2269 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2269[0] {
yym2271 := z.EncBinary()
_ = yym2271
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2269[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2272 := z.EncBinary()
_ = yym2272
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2269 || yy2arr2269 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2269[1] {
yym2274 := z.EncBinary()
_ = yym2274
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2269[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2275 := z.EncBinary()
_ = yym2275
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2269 || yy2arr2269 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2269[2] {
yy2277 := &x.ObjectMeta
yy2277.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2269[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2278 := &x.ObjectMeta
yy2278.CodecEncodeSelf(e)
}
}
if yyr2269 || yy2arr2269 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Subsets == nil {
r.EncodeNil()
} else {
yym2280 := z.EncBinary()
_ = yym2280
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 {
yym2281 := z.EncBinary()
_ = yym2281
if false {
} else {
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
}
}
}
if yyr2269 || yy2arr2269 {
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
yym2282 := z.DecBinary()
_ = yym2282
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2283 := r.ContainerType()
if yyct2283 == codecSelferValueTypeMap1234 {
yyl2283 := r.ReadMapStart()
if yyl2283 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2283, d)
}
} else if yyct2283 == codecSelferValueTypeArray1234 {
yyl2283 := r.ReadArrayStart()
if yyl2283 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2283, 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 yys2284Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2284Slc
var yyhl2284 bool = l >= 0
for yyj2284 := 0; ; yyj2284++ {
if yyhl2284 {
if yyj2284 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2284Slc = r.DecodeBytes(yys2284Slc, true, true)
yys2284 := string(yys2284Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2284 {
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 {
yyv2287 := &x.ObjectMeta
yyv2287.CodecDecodeSelf(d)
}
case "Subsets":
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2288 := &x.Subsets
yym2289 := z.DecBinary()
_ = yym2289
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2288), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2284)
} // end switch yys2284
} // end for yyj2284
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 yyj2290 int
var yyb2290 bool
var yyhl2290 bool = l >= 0
yyj2290++
if yyhl2290 {
yyb2290 = yyj2290 > l
} else {
yyb2290 = r.CheckBreak()
}
if yyb2290 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2290++
if yyhl2290 {
yyb2290 = yyj2290 > l
} else {
yyb2290 = r.CheckBreak()
}
if yyb2290 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2290++
if yyhl2290 {
yyb2290 = yyj2290 > l
} else {
yyb2290 = r.CheckBreak()
}
if yyb2290 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2293 := &x.ObjectMeta
yyv2293.CodecDecodeSelf(d)
}
yyj2290++
if yyhl2290 {
yyb2290 = yyj2290 > l
} else {
yyb2290 = r.CheckBreak()
}
if yyb2290 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2294 := &x.Subsets
yym2295 := z.DecBinary()
_ = yym2295
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2294), d)
}
}
for {
yyj2290++
if yyhl2290 {
yyb2290 = yyj2290 > l
} else {
yyb2290 = r.CheckBreak()
}
if yyb2290 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2290-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 {
yym2296 := z.EncBinary()
_ = yym2296
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2297 := !z.EncBinary()
yy2arr2297 := z.EncBasicHandle().StructToArray
var yyq2297 [3]bool
_, _, _ = yysep2297, yyq2297, yy2arr2297
const yyr2297 bool = false
var yynn2297 int
if yyr2297 || yy2arr2297 {
r.EncodeArrayStart(3)
} else {
yynn2297 = 3
for _, b := range yyq2297 {
if b {
yynn2297++
}
}
r.EncodeMapStart(yynn2297)
yynn2297 = 0
}
if yyr2297 || yy2arr2297 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2299 := z.EncBinary()
_ = yym2299
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 {
yym2300 := z.EncBinary()
_ = yym2300
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
}
}
}
if yyr2297 || yy2arr2297 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NotReadyAddresses == nil {
r.EncodeNil()
} else {
yym2302 := z.EncBinary()
_ = yym2302
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 {
yym2303 := z.EncBinary()
_ = yym2303
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
}
}
}
if yyr2297 || yy2arr2297 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2305 := z.EncBinary()
_ = yym2305
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 {
yym2306 := z.EncBinary()
_ = yym2306
if false {
} else {
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
}
}
}
if yyr2297 || yy2arr2297 {
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
yym2307 := z.DecBinary()
_ = yym2307
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2308 := r.ContainerType()
if yyct2308 == codecSelferValueTypeMap1234 {
yyl2308 := r.ReadMapStart()
if yyl2308 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2308, d)
}
} else if yyct2308 == codecSelferValueTypeArray1234 {
yyl2308 := r.ReadArrayStart()
if yyl2308 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2308, 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 yys2309Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2309Slc
var yyhl2309 bool = l >= 0
for yyj2309 := 0; ; yyj2309++ {
if yyhl2309 {
if yyj2309 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2309Slc = r.DecodeBytes(yys2309Slc, true, true)
yys2309 := string(yys2309Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2309 {
case "Addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2310 := &x.Addresses
yym2311 := z.DecBinary()
_ = yym2311
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2310), d)
}
}
case "NotReadyAddresses":
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2312 := &x.NotReadyAddresses
yym2313 := z.DecBinary()
_ = yym2313
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2312), d)
}
}
case "Ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2314 := &x.Ports
yym2315 := z.DecBinary()
_ = yym2315
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2314), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2309)
} // end switch yys2309
} // end for yyj2309
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 yyj2316 int
var yyb2316 bool
var yyhl2316 bool = l >= 0
yyj2316++
if yyhl2316 {
yyb2316 = yyj2316 > l
} else {
yyb2316 = r.CheckBreak()
}
if yyb2316 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2317 := &x.Addresses
yym2318 := z.DecBinary()
_ = yym2318
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2317), d)
}
}
yyj2316++
if yyhl2316 {
yyb2316 = yyj2316 > l
} else {
yyb2316 = r.CheckBreak()
}
if yyb2316 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2319 := &x.NotReadyAddresses
yym2320 := z.DecBinary()
_ = yym2320
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2319), d)
}
}
yyj2316++
if yyhl2316 {
yyb2316 = yyj2316 > l
} else {
yyb2316 = r.CheckBreak()
}
if yyb2316 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2321 := &x.Ports
yym2322 := z.DecBinary()
_ = yym2322
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2321), d)
}
}
for {
yyj2316++
if yyhl2316 {
yyb2316 = yyj2316 > l
} else {
yyb2316 = r.CheckBreak()
}
if yyb2316 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2316-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2323 := z.EncBinary()
_ = yym2323
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2324 := !z.EncBinary()
yy2arr2324 := z.EncBasicHandle().StructToArray
var yyq2324 [2]bool
_, _, _ = yysep2324, yyq2324, yy2arr2324
const yyr2324 bool = false
var yynn2324 int
if yyr2324 || yy2arr2324 {
r.EncodeArrayStart(2)
} else {
yynn2324 = 2
for _, b := range yyq2324 {
if b {
yynn2324++
}
}
r.EncodeMapStart(yynn2324)
yynn2324 = 0
}
if yyr2324 || yy2arr2324 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2326 := z.EncBinary()
_ = yym2326
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)
yym2327 := z.EncBinary()
_ = yym2327
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
if yyr2324 || yy2arr2324 {
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 yyr2324 || yy2arr2324 {
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
yym2329 := z.DecBinary()
_ = yym2329
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2330 := r.ContainerType()
if yyct2330 == codecSelferValueTypeMap1234 {
yyl2330 := r.ReadMapStart()
if yyl2330 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2330, d)
}
} else if yyct2330 == codecSelferValueTypeArray1234 {
yyl2330 := r.ReadArrayStart()
if yyl2330 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2330, 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 yys2331Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2331Slc
var yyhl2331 bool = l >= 0
for yyj2331 := 0; ; yyj2331++ {
if yyhl2331 {
if yyj2331 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2331Slc = r.DecodeBytes(yys2331Slc, true, true)
yys2331 := string(yys2331Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2331 {
case "IP":
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
case "TargetRef":
if r.TryDecodeAsNil() {
if x.TargetRef != nil {
x.TargetRef = nil
}
} else {
if x.TargetRef == nil {
x.TargetRef = new(ObjectReference)
}
x.TargetRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2331)
} // end switch yys2331
} // end for yyj2331
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 yyj2334 int
var yyb2334 bool
var yyhl2334 bool = l >= 0
yyj2334++
if yyhl2334 {
yyb2334 = yyj2334 > l
} else {
yyb2334 = r.CheckBreak()
}
if yyb2334 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2334++
if yyhl2334 {
yyb2334 = yyj2334 > l
} else {
yyb2334 = r.CheckBreak()
}
if yyb2334 {
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 {
yyj2334++
if yyhl2334 {
yyb2334 = yyj2334 > l
} else {
yyb2334 = r.CheckBreak()
}
if yyb2334 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2334-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 {
yym2337 := z.EncBinary()
_ = yym2337
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2338 := !z.EncBinary()
yy2arr2338 := z.EncBasicHandle().StructToArray
var yyq2338 [3]bool
_, _, _ = yysep2338, yyq2338, yy2arr2338
const yyr2338 bool = false
var yynn2338 int
if yyr2338 || yy2arr2338 {
r.EncodeArrayStart(3)
} else {
yynn2338 = 3
for _, b := range yyq2338 {
if b {
yynn2338++
}
}
r.EncodeMapStart(yynn2338)
yynn2338 = 0
}
if yyr2338 || yy2arr2338 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2340 := z.EncBinary()
_ = yym2340
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)
yym2341 := z.EncBinary()
_ = yym2341
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2338 || yy2arr2338 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2343 := z.EncBinary()
_ = yym2343
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2344 := z.EncBinary()
_ = yym2344
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2338 || yy2arr2338 {
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 yyr2338 || yy2arr2338 {
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
yym2346 := z.DecBinary()
_ = yym2346
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2347 := r.ContainerType()
if yyct2347 == codecSelferValueTypeMap1234 {
yyl2347 := r.ReadMapStart()
if yyl2347 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2347, d)
}
} else if yyct2347 == codecSelferValueTypeArray1234 {
yyl2347 := r.ReadArrayStart()
if yyl2347 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2347, 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 yys2348Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2348Slc
var yyhl2348 bool = l >= 0
for yyj2348 := 0; ; yyj2348++ {
if yyhl2348 {
if yyj2348 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2348Slc = r.DecodeBytes(yys2348Slc, true, true)
yys2348 := string(yys2348Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2348 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
case "Protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2348)
} // end switch yys2348
} // end for yyj2348
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 yyj2352 int
var yyb2352 bool
var yyhl2352 bool = l >= 0
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
for {
yyj2352++
if yyhl2352 {
yyb2352 = yyj2352 > l
} else {
yyb2352 = r.CheckBreak()
}
if yyb2352 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2352-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 {
yym2356 := z.EncBinary()
_ = yym2356
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2357 := !z.EncBinary()
yy2arr2357 := z.EncBasicHandle().StructToArray
var yyq2357 [4]bool
_, _, _ = yysep2357, yyq2357, yy2arr2357
const yyr2357 bool = false
yyq2357[0] = x.Kind != ""
yyq2357[1] = x.APIVersion != ""
yyq2357[2] = true
var yynn2357 int
if yyr2357 || yy2arr2357 {
r.EncodeArrayStart(4)
} else {
yynn2357 = 1
for _, b := range yyq2357 {
if b {
yynn2357++
}
}
r.EncodeMapStart(yynn2357)
yynn2357 = 0
}
if yyr2357 || yy2arr2357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2357[0] {
yym2359 := z.EncBinary()
_ = yym2359
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2357[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2360 := z.EncBinary()
_ = yym2360
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2357 || yy2arr2357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2357[1] {
yym2362 := z.EncBinary()
_ = yym2362
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2357[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2363 := z.EncBinary()
_ = yym2363
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2357 || yy2arr2357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2357[2] {
yy2365 := &x.ListMeta
yym2366 := z.EncBinary()
_ = yym2366
if false {
} else if z.HasExtensions() && z.EncExt(yy2365) {
} else {
z.EncFallback(yy2365)
}
} else {
r.EncodeNil()
}
} else {
if yyq2357[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2367 := &x.ListMeta
yym2368 := z.EncBinary()
_ = yym2368
if false {
} else if z.HasExtensions() && z.EncExt(yy2367) {
} else {
z.EncFallback(yy2367)
}
}
}
if yyr2357 || yy2arr2357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2370 := z.EncBinary()
_ = yym2370
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 {
yym2371 := z.EncBinary()
_ = yym2371
if false {
} else {
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
}
}
}
if yyr2357 || yy2arr2357 {
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
yym2372 := z.DecBinary()
_ = yym2372
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2373 := r.ContainerType()
if yyct2373 == codecSelferValueTypeMap1234 {
yyl2373 := r.ReadMapStart()
if yyl2373 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2373, d)
}
} else if yyct2373 == codecSelferValueTypeArray1234 {
yyl2373 := r.ReadArrayStart()
if yyl2373 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2373, 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 yys2374Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2374Slc
var yyhl2374 bool = l >= 0
for yyj2374 := 0; ; yyj2374++ {
if yyhl2374 {
if yyj2374 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2374Slc = r.DecodeBytes(yys2374Slc, true, true)
yys2374 := string(yys2374Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2374 {
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 {
yyv2377 := &x.ListMeta
yym2378 := z.DecBinary()
_ = yym2378
if false {
} else if z.HasExtensions() && z.DecExt(yyv2377) {
} else {
z.DecFallback(yyv2377, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2379 := &x.Items
yym2380 := z.DecBinary()
_ = yym2380
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2379), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2374)
} // end switch yys2374
} // end for yyj2374
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 yyj2381 int
var yyb2381 bool
var yyhl2381 bool = l >= 0
yyj2381++
if yyhl2381 {
yyb2381 = yyj2381 > l
} else {
yyb2381 = r.CheckBreak()
}
if yyb2381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2381++
if yyhl2381 {
yyb2381 = yyj2381 > l
} else {
yyb2381 = r.CheckBreak()
}
if yyb2381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2381++
if yyhl2381 {
yyb2381 = yyj2381 > l
} else {
yyb2381 = r.CheckBreak()
}
if yyb2381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2384 := &x.ListMeta
yym2385 := z.DecBinary()
_ = yym2385
if false {
} else if z.HasExtensions() && z.DecExt(yyv2384) {
} else {
z.DecFallback(yyv2384, false)
}
}
yyj2381++
if yyhl2381 {
yyb2381 = yyj2381 > l
} else {
yyb2381 = r.CheckBreak()
}
if yyb2381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2386 := &x.Items
yym2387 := z.DecBinary()
_ = yym2387
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2386), d)
}
}
for {
yyj2381++
if yyhl2381 {
yyb2381 = yyj2381 > l
} else {
yyb2381 = r.CheckBreak()
}
if yyb2381 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2381-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 {
yym2388 := z.EncBinary()
_ = yym2388
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2389 := !z.EncBinary()
yy2arr2389 := z.EncBasicHandle().StructToArray
var yyq2389 [4]bool
_, _, _ = yysep2389, yyq2389, yy2arr2389
const yyr2389 bool = false
yyq2389[0] = x.PodCIDR != ""
yyq2389[1] = x.ExternalID != ""
yyq2389[2] = x.ProviderID != ""
yyq2389[3] = x.Unschedulable != false
var yynn2389 int
if yyr2389 || yy2arr2389 {
r.EncodeArrayStart(4)
} else {
yynn2389 = 0
for _, b := range yyq2389 {
if b {
yynn2389++
}
}
r.EncodeMapStart(yynn2389)
yynn2389 = 0
}
if yyr2389 || yy2arr2389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2389[0] {
yym2391 := z.EncBinary()
_ = yym2391
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2389[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2392 := z.EncBinary()
_ = yym2392
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
}
}
if yyr2389 || yy2arr2389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2389[1] {
yym2394 := z.EncBinary()
_ = yym2394
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2389[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2395 := z.EncBinary()
_ = yym2395
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
}
}
if yyr2389 || yy2arr2389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2389[2] {
yym2397 := z.EncBinary()
_ = yym2397
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2389[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2398 := z.EncBinary()
_ = yym2398
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
}
}
if yyr2389 || yy2arr2389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2389[3] {
yym2400 := z.EncBinary()
_ = yym2400
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2389[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2401 := z.EncBinary()
_ = yym2401
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
}
}
if yyr2389 || yy2arr2389 {
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
yym2402 := z.DecBinary()
_ = yym2402
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2403 := r.ContainerType()
if yyct2403 == codecSelferValueTypeMap1234 {
yyl2403 := r.ReadMapStart()
if yyl2403 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2403, d)
}
} else if yyct2403 == codecSelferValueTypeArray1234 {
yyl2403 := r.ReadArrayStart()
if yyl2403 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2403, 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 yys2404Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2404Slc
var yyhl2404 bool = l >= 0
for yyj2404 := 0; ; yyj2404++ {
if yyhl2404 {
if yyj2404 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2404Slc = r.DecodeBytes(yys2404Slc, true, true)
yys2404 := string(yys2404Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2404 {
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, yys2404)
} // end switch yys2404
} // end for yyj2404
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 yyj2409 int
var yyb2409 bool
var yyhl2409 bool = l >= 0
yyj2409++
if yyhl2409 {
yyb2409 = yyj2409 > l
} else {
yyb2409 = r.CheckBreak()
}
if yyb2409 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodCIDR = ""
} else {
x.PodCIDR = string(r.DecodeString())
}
yyj2409++
if yyhl2409 {
yyb2409 = yyj2409 > l
} else {
yyb2409 = r.CheckBreak()
}
if yyb2409 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalID = ""
} else {
x.ExternalID = string(r.DecodeString())
}
yyj2409++
if yyhl2409 {
yyb2409 = yyj2409 > l
} else {
yyb2409 = r.CheckBreak()
}
if yyb2409 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ProviderID = ""
} else {
x.ProviderID = string(r.DecodeString())
}
yyj2409++
if yyhl2409 {
yyb2409 = yyj2409 > l
} else {
yyb2409 = r.CheckBreak()
}
if yyb2409 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Unschedulable = false
} else {
x.Unschedulable = bool(r.DecodeBool())
}
for {
yyj2409++
if yyhl2409 {
yyb2409 = yyj2409 > l
} else {
yyb2409 = r.CheckBreak()
}
if yyb2409 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2409-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 {
yym2414 := z.EncBinary()
_ = yym2414
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2415 := !z.EncBinary()
yy2arr2415 := z.EncBasicHandle().StructToArray
var yyq2415 [1]bool
_, _, _ = yysep2415, yyq2415, yy2arr2415
const yyr2415 bool = false
var yynn2415 int
if yyr2415 || yy2arr2415 {
r.EncodeArrayStart(1)
} else {
yynn2415 = 1
for _, b := range yyq2415 {
if b {
yynn2415++
}
}
r.EncodeMapStart(yynn2415)
yynn2415 = 0
}
if yyr2415 || yy2arr2415 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2417 := z.EncBinary()
_ = yym2417
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2418 := z.EncBinary()
_ = yym2418
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2415 || yy2arr2415 {
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
yym2419 := z.DecBinary()
_ = yym2419
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2420 := r.ContainerType()
if yyct2420 == codecSelferValueTypeMap1234 {
yyl2420 := r.ReadMapStart()
if yyl2420 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2420, d)
}
} else if yyct2420 == codecSelferValueTypeArray1234 {
yyl2420 := r.ReadArrayStart()
if yyl2420 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2420, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DaemonEndpoint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2421Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2421Slc
var yyhl2421 bool = l >= 0
for yyj2421 := 0; ; yyj2421++ {
if yyhl2421 {
if yyj2421 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2421Slc = r.DecodeBytes(yys2421Slc, true, true)
yys2421 := string(yys2421Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2421 {
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys2421)
} // end switch yys2421
} // end for yyj2421
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 yyj2423 int
var yyb2423 bool
var yyhl2423 bool = l >= 0
yyj2423++
if yyhl2423 {
yyb2423 = yyj2423 > l
} else {
yyb2423 = r.CheckBreak()
}
if yyb2423 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj2423++
if yyhl2423 {
yyb2423 = yyj2423 > l
} else {
yyb2423 = r.CheckBreak()
}
if yyb2423 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2423-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeDaemonEndpoints) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2425 := z.EncBinary()
_ = yym2425
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2426 := !z.EncBinary()
yy2arr2426 := z.EncBasicHandle().StructToArray
var yyq2426 [1]bool
_, _, _ = yysep2426, yyq2426, yy2arr2426
const yyr2426 bool = false
yyq2426[0] = true
var yynn2426 int
if yyr2426 || yy2arr2426 {
r.EncodeArrayStart(1)
} else {
yynn2426 = 0
for _, b := range yyq2426 {
if b {
yynn2426++
}
}
r.EncodeMapStart(yynn2426)
yynn2426 = 0
}
if yyr2426 || yy2arr2426 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2426[0] {
yy2428 := &x.KubeletEndpoint
yy2428.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2426[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2429 := &x.KubeletEndpoint
yy2429.CodecEncodeSelf(e)
}
}
if yyr2426 || yy2arr2426 {
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
yym2430 := z.DecBinary()
_ = yym2430
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2431 := r.ContainerType()
if yyct2431 == codecSelferValueTypeMap1234 {
yyl2431 := r.ReadMapStart()
if yyl2431 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2431, d)
}
} else if yyct2431 == codecSelferValueTypeArray1234 {
yyl2431 := r.ReadArrayStart()
if yyl2431 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2431, 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 yys2432Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2432Slc
var yyhl2432 bool = l >= 0
for yyj2432 := 0; ; yyj2432++ {
if yyhl2432 {
if yyj2432 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2432Slc = r.DecodeBytes(yys2432Slc, true, true)
yys2432 := string(yys2432Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2432 {
case "kubeletEndpoint":
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2433 := &x.KubeletEndpoint
yyv2433.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2432)
} // end switch yys2432
} // end for yyj2432
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 yyj2434 int
var yyb2434 bool
var yyhl2434 bool = l >= 0
yyj2434++
if yyhl2434 {
yyb2434 = yyj2434 > l
} else {
yyb2434 = r.CheckBreak()
}
if yyb2434 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2435 := &x.KubeletEndpoint
yyv2435.CodecDecodeSelf(d)
}
for {
yyj2434++
if yyhl2434 {
yyb2434 = yyj2434 > l
} else {
yyb2434 = r.CheckBreak()
}
if yyb2434 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2434-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 {
yym2436 := z.EncBinary()
_ = yym2436
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2437 := !z.EncBinary()
yy2arr2437 := z.EncBasicHandle().StructToArray
var yyq2437 [8]bool
_, _, _ = yysep2437, yyq2437, yy2arr2437
const yyr2437 bool = false
var yynn2437 int
if yyr2437 || yy2arr2437 {
r.EncodeArrayStart(8)
} else {
yynn2437 = 8
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.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("machineID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2440 := z.EncBinary()
_ = yym2440
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2442 := z.EncBinary()
_ = yym2442
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)
yym2443 := z.EncBinary()
_ = yym2443
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2445 := z.EncBinary()
_ = yym2445
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)
yym2446 := z.EncBinary()
_ = yym2446
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2448 := z.EncBinary()
_ = yym2448
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)
yym2449 := z.EncBinary()
_ = yym2449
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2451 := z.EncBinary()
_ = yym2451
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)
yym2452 := z.EncBinary()
_ = yym2452
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2454 := z.EncBinary()
_ = yym2454
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)
yym2455 := z.EncBinary()
_ = yym2455
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2457 := z.EncBinary()
_ = yym2457
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)
yym2458 := z.EncBinary()
_ = yym2458
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2460 := z.EncBinary()
_ = yym2460
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)
yym2461 := z.EncBinary()
_ = yym2461
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
}
}
if yyr2437 || yy2arr2437 {
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
yym2462 := z.DecBinary()
_ = yym2462
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2463 := r.ContainerType()
if yyct2463 == codecSelferValueTypeMap1234 {
yyl2463 := r.ReadMapStart()
if yyl2463 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2463, d)
}
} else if yyct2463 == codecSelferValueTypeArray1234 {
yyl2463 := r.ReadArrayStart()
if yyl2463 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2463, 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 yys2464Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2464Slc
var yyhl2464 bool = l >= 0
for yyj2464 := 0; ; yyj2464++ {
if yyhl2464 {
if yyj2464 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2464Slc = r.DecodeBytes(yys2464Slc, true, true)
yys2464 := string(yys2464Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2464 {
case "machineID":
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
case "systemUUID":
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
case "bootID":
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
case "kernelVersion":
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
case "osImage":
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
case "containerRuntimeVersion":
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
case "kubeletVersion":
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
case "kubeProxyVersion":
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2464)
} // end switch yys2464
} // end for yyj2464
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 yyj2473 int
var yyb2473 bool
var yyhl2473 bool = l >= 0
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
for {
yyj2473++
if yyhl2473 {
yyb2473 = yyj2473 > l
} else {
yyb2473 = r.CheckBreak()
}
if yyb2473 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2473-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 {
yym2482 := z.EncBinary()
_ = yym2482
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2483 := !z.EncBinary()
yy2arr2483 := z.EncBasicHandle().StructToArray
var yyq2483 [8]bool
_, _, _ = yysep2483, yyq2483, yy2arr2483
const yyr2483 bool = false
yyq2483[0] = len(x.Capacity) != 0
yyq2483[1] = len(x.Allocatable) != 0
yyq2483[2] = x.Phase != ""
yyq2483[3] = len(x.Conditions) != 0
yyq2483[4] = len(x.Addresses) != 0
yyq2483[5] = true
yyq2483[6] = true
var yynn2483 int
if yyr2483 || yy2arr2483 {
r.EncodeArrayStart(8)
} else {
yynn2483 = 1
for _, b := range yyq2483 {
if b {
yynn2483++
}
}
r.EncodeMapStart(yynn2483)
yynn2483 = 0
}
if yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2483[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2483[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 yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2483[1] {
if x.Allocatable == nil {
r.EncodeNil()
} else {
x.Allocatable.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2483[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 yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2483[2] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2483[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2483[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2488 := z.EncBinary()
_ = yym2488
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2483[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2489 := z.EncBinary()
_ = yym2489
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
}
}
if yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2483[4] {
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2491 := z.EncBinary()
_ = yym2491
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2483[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2492 := z.EncBinary()
_ = yym2492
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
}
}
if yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2483[5] {
yy2494 := &x.DaemonEndpoints
yy2494.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2483[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2495 := &x.DaemonEndpoints
yy2495.CodecEncodeSelf(e)
}
}
if yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2483[6] {
yy2497 := &x.NodeInfo
yy2497.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2483[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2498 := &x.NodeInfo
yy2498.CodecEncodeSelf(e)
}
}
if yyr2483 || yy2arr2483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Images == nil {
r.EncodeNil()
} else {
yym2500 := z.EncBinary()
_ = yym2500
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("images"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Images == nil {
r.EncodeNil()
} else {
yym2501 := z.EncBinary()
_ = yym2501
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
}
if yyr2483 || yy2arr2483 {
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
yym2502 := z.DecBinary()
_ = yym2502
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2503 := r.ContainerType()
if yyct2503 == codecSelferValueTypeMap1234 {
yyl2503 := r.ReadMapStart()
if yyl2503 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2503, d)
}
} else if yyct2503 == codecSelferValueTypeArray1234 {
yyl2503 := r.ReadArrayStart()
if yyl2503 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2503, 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 yys2504Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2504Slc
var yyhl2504 bool = l >= 0
for yyj2504 := 0; ; yyj2504++ {
if yyhl2504 {
if yyj2504 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2504Slc = r.DecodeBytes(yys2504Slc, true, true)
yys2504 := string(yys2504Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2504 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2505 := &x.Capacity
yyv2505.CodecDecodeSelf(d)
}
case "allocatable":
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2506 := &x.Allocatable
yyv2506.CodecDecodeSelf(d)
}
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2508 := &x.Conditions
yym2509 := z.DecBinary()
_ = yym2509
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2508), d)
}
}
case "addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2510 := &x.Addresses
yym2511 := z.DecBinary()
_ = yym2511
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2510), d)
}
}
case "daemonEndpoints":
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2512 := &x.DaemonEndpoints
yyv2512.CodecDecodeSelf(d)
}
case "nodeInfo":
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2513 := &x.NodeInfo
yyv2513.CodecDecodeSelf(d)
}
case "images":
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2514 := &x.Images
yym2515 := z.DecBinary()
_ = yym2515
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2514), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2504)
} // end switch yys2504
} // end for yyj2504
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 yyj2516 int
var yyb2516 bool
var yyhl2516 bool = l >= 0
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2517 := &x.Capacity
yyv2517.CodecDecodeSelf(d)
}
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2518 := &x.Allocatable
yyv2518.CodecDecodeSelf(d)
}
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2520 := &x.Conditions
yym2521 := z.DecBinary()
_ = yym2521
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2520), d)
}
}
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2522 := &x.Addresses
yym2523 := z.DecBinary()
_ = yym2523
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2522), d)
}
}
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2524 := &x.DaemonEndpoints
yyv2524.CodecDecodeSelf(d)
}
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2525 := &x.NodeInfo
yyv2525.CodecDecodeSelf(d)
}
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2526 := &x.Images
yym2527 := z.DecBinary()
_ = yym2527
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2526), d)
}
}
for {
yyj2516++
if yyhl2516 {
yyb2516 = yyj2516 > l
} else {
yyb2516 = r.CheckBreak()
}
if yyb2516 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2516-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerImage) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2528 := z.EncBinary()
_ = yym2528
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2529 := !z.EncBinary()
yy2arr2529 := z.EncBasicHandle().StructToArray
var yyq2529 [2]bool
_, _, _ = yysep2529, yyq2529, yy2arr2529
const yyr2529 bool = false
yyq2529[1] = x.Size != 0
var yynn2529 int
if yyr2529 || yy2arr2529 {
r.EncodeArrayStart(2)
} else {
yynn2529 = 1
for _, b := range yyq2529 {
if b {
yynn2529++
}
}
r.EncodeMapStart(yynn2529)
yynn2529 = 0
}
if yyr2529 || yy2arr2529 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.RepoTags == nil {
r.EncodeNil()
} else {
yym2531 := z.EncBinary()
_ = yym2531
if false {
} else {
z.F.EncSliceStringV(x.RepoTags, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("repoTags"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RepoTags == nil {
r.EncodeNil()
} else {
yym2532 := z.EncBinary()
_ = yym2532
if false {
} else {
z.F.EncSliceStringV(x.RepoTags, false, e)
}
}
}
if yyr2529 || yy2arr2529 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2529[1] {
yym2534 := z.EncBinary()
_ = yym2534
if false {
} else {
r.EncodeInt(int64(x.Size))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2529[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("size"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2535 := z.EncBinary()
_ = yym2535
if false {
} else {
r.EncodeInt(int64(x.Size))
}
}
}
if yyr2529 || yy2arr2529 {
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
yym2536 := z.DecBinary()
_ = yym2536
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2537 := r.ContainerType()
if yyct2537 == codecSelferValueTypeMap1234 {
yyl2537 := r.ReadMapStart()
if yyl2537 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2537, d)
}
} else if yyct2537 == codecSelferValueTypeArray1234 {
yyl2537 := r.ReadArrayStart()
if yyl2537 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2537, 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 yys2538Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2538Slc
var yyhl2538 bool = l >= 0
for yyj2538 := 0; ; yyj2538++ {
if yyhl2538 {
if yyj2538 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2538Slc = r.DecodeBytes(yys2538Slc, true, true)
yys2538 := string(yys2538Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2538 {
case "repoTags":
if r.TryDecodeAsNil() {
x.RepoTags = nil
} else {
yyv2539 := &x.RepoTags
yym2540 := z.DecBinary()
_ = yym2540
if false {
} else {
z.F.DecSliceStringX(yyv2539, false, d)
}
}
case "size":
if r.TryDecodeAsNil() {
x.Size = 0
} else {
x.Size = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys2538)
} // end switch yys2538
} // end for yyj2538
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 yyj2542 int
var yyb2542 bool
var yyhl2542 bool = l >= 0
yyj2542++
if yyhl2542 {
yyb2542 = yyj2542 > l
} else {
yyb2542 = r.CheckBreak()
}
if yyb2542 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RepoTags = nil
} else {
yyv2543 := &x.RepoTags
yym2544 := z.DecBinary()
_ = yym2544
if false {
} else {
z.F.DecSliceStringX(yyv2543, false, d)
}
}
yyj2542++
if yyhl2542 {
yyb2542 = yyj2542 > l
} else {
yyb2542 = r.CheckBreak()
}
if yyb2542 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Size = 0
} else {
x.Size = int64(r.DecodeInt(64))
}
for {
yyj2542++
if yyhl2542 {
yyb2542 = yyj2542 > l
} else {
yyb2542 = r.CheckBreak()
}
if yyb2542 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2542-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2546 := z.EncBinary()
_ = yym2546
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
yym2547 := z.DecBinary()
_ = yym2547
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
yym2548 := z.EncBinary()
_ = yym2548
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
yym2549 := z.DecBinary()
_ = yym2549
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 {
yym2550 := z.EncBinary()
_ = yym2550
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2551 := !z.EncBinary()
yy2arr2551 := z.EncBasicHandle().StructToArray
var yyq2551 [6]bool
_, _, _ = yysep2551, yyq2551, yy2arr2551
const yyr2551 bool = false
yyq2551[2] = true
yyq2551[3] = true
yyq2551[4] = x.Reason != ""
yyq2551[5] = x.Message != ""
var yynn2551 int
if yyr2551 || yy2arr2551 {
r.EncodeArrayStart(6)
} else {
yynn2551 = 2
for _, b := range yyq2551 {
if b {
yynn2551++
}
}
r.EncodeMapStart(yynn2551)
yynn2551 = 0
}
if yyr2551 || yy2arr2551 {
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 yyr2551 || yy2arr2551 {
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 yyr2551 || yy2arr2551 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2551[2] {
yy2555 := &x.LastHeartbeatTime
yym2556 := z.EncBinary()
_ = yym2556
if false {
} else if z.HasExtensions() && z.EncExt(yy2555) {
} else if yym2556 {
z.EncBinaryMarshal(yy2555)
} else if !yym2556 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2555)
} else {
z.EncFallback(yy2555)
}
} else {
r.EncodeNil()
}
} else {
if yyq2551[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2557 := &x.LastHeartbeatTime
yym2558 := z.EncBinary()
_ = yym2558
if false {
} else if z.HasExtensions() && z.EncExt(yy2557) {
} else if yym2558 {
z.EncBinaryMarshal(yy2557)
} else if !yym2558 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2557)
} else {
z.EncFallback(yy2557)
}
}
}
if yyr2551 || yy2arr2551 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2551[3] {
yy2560 := &x.LastTransitionTime
yym2561 := z.EncBinary()
_ = yym2561
if false {
} else if z.HasExtensions() && z.EncExt(yy2560) {
} else if yym2561 {
z.EncBinaryMarshal(yy2560)
} else if !yym2561 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2560)
} else {
z.EncFallback(yy2560)
}
} else {
r.EncodeNil()
}
} else {
if yyq2551[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2562 := &x.LastTransitionTime
yym2563 := z.EncBinary()
_ = yym2563
if false {
} else if z.HasExtensions() && z.EncExt(yy2562) {
} else if yym2563 {
z.EncBinaryMarshal(yy2562)
} else if !yym2563 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2562)
} else {
z.EncFallback(yy2562)
}
}
}
if yyr2551 || yy2arr2551 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2551[4] {
yym2565 := z.EncBinary()
_ = yym2565
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2551[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2566 := z.EncBinary()
_ = yym2566
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr2551 || yy2arr2551 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2551[5] {
yym2568 := z.EncBinary()
_ = yym2568
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2551[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2569 := z.EncBinary()
_ = yym2569
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr2551 || yy2arr2551 {
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
yym2570 := z.DecBinary()
_ = yym2570
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2571 := r.ContainerType()
if yyct2571 == codecSelferValueTypeMap1234 {
yyl2571 := r.ReadMapStart()
if yyl2571 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2571, d)
}
} else if yyct2571 == codecSelferValueTypeArray1234 {
yyl2571 := r.ReadArrayStart()
if yyl2571 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2571, 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 yys2572Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2572Slc
var yyhl2572 bool = l >= 0
for yyj2572 := 0; ; yyj2572++ {
if yyhl2572 {
if yyj2572 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2572Slc = r.DecodeBytes(yys2572Slc, true, true)
yys2572 := string(yys2572Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2572 {
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 {
yyv2575 := &x.LastHeartbeatTime
yym2576 := z.DecBinary()
_ = yym2576
if false {
} else if z.HasExtensions() && z.DecExt(yyv2575) {
} else if yym2576 {
z.DecBinaryUnmarshal(yyv2575)
} else if !yym2576 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2575)
} else {
z.DecFallback(yyv2575, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv2577 := &x.LastTransitionTime
yym2578 := z.DecBinary()
_ = yym2578
if false {
} else if z.HasExtensions() && z.DecExt(yyv2577) {
} else if yym2578 {
z.DecBinaryUnmarshal(yyv2577)
} else if !yym2578 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2577)
} else {
z.DecFallback(yyv2577, 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, yys2572)
} // end switch yys2572
} // end for yyj2572
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 yyj2581 int
var yyb2581 bool
var yyhl2581 bool = l >= 0
yyj2581++
if yyhl2581 {
yyb2581 = yyj2581 > l
} else {
yyb2581 = r.CheckBreak()
}
if yyb2581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeConditionType(r.DecodeString())
}
yyj2581++
if yyhl2581 {
yyb2581 = yyj2581 > l
} else {
yyb2581 = r.CheckBreak()
}
if yyb2581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj2581++
if yyhl2581 {
yyb2581 = yyj2581 > l
} else {
yyb2581 = r.CheckBreak()
}
if yyb2581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastHeartbeatTime = pkg2_unversioned.Time{}
} else {
yyv2584 := &x.LastHeartbeatTime
yym2585 := z.DecBinary()
_ = yym2585
if false {
} else if z.HasExtensions() && z.DecExt(yyv2584) {
} else if yym2585 {
z.DecBinaryUnmarshal(yyv2584)
} else if !yym2585 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2584)
} else {
z.DecFallback(yyv2584, false)
}
}
yyj2581++
if yyhl2581 {
yyb2581 = yyj2581 > l
} else {
yyb2581 = r.CheckBreak()
}
if yyb2581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv2586 := &x.LastTransitionTime
yym2587 := z.DecBinary()
_ = yym2587
if false {
} else if z.HasExtensions() && z.DecExt(yyv2586) {
} else if yym2587 {
z.DecBinaryUnmarshal(yyv2586)
} else if !yym2587 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2586)
} else {
z.DecFallback(yyv2586, false)
}
}
yyj2581++
if yyhl2581 {
yyb2581 = yyj2581 > l
} else {
yyb2581 = r.CheckBreak()
}
if yyb2581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj2581++
if yyhl2581 {
yyb2581 = yyj2581 > l
} else {
yyb2581 = r.CheckBreak()
}
if yyb2581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj2581++
if yyhl2581 {
yyb2581 = yyj2581 > l
} else {
yyb2581 = r.CheckBreak()
}
if yyb2581 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2581-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2590 := z.EncBinary()
_ = yym2590
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
yym2591 := z.DecBinary()
_ = yym2591
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 {
yym2592 := z.EncBinary()
_ = yym2592
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2593 := !z.EncBinary()
yy2arr2593 := z.EncBasicHandle().StructToArray
var yyq2593 [2]bool
_, _, _ = yysep2593, yyq2593, yy2arr2593
const yyr2593 bool = false
var yynn2593 int
if yyr2593 || yy2arr2593 {
r.EncodeArrayStart(2)
} else {
yynn2593 = 2
for _, b := range yyq2593 {
if b {
yynn2593++
}
}
r.EncodeMapStart(yynn2593)
yynn2593 = 0
}
if yyr2593 || yy2arr2593 {
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 yyr2593 || yy2arr2593 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2596 := z.EncBinary()
_ = yym2596
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)
yym2597 := z.EncBinary()
_ = yym2597
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
}
}
if yyr2593 || yy2arr2593 {
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
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 *NodeAddress) 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 "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, yys2600)
} // end switch yys2600
} // end for yyj2600
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 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.Type = ""
} else {
x.Type = NodeAddressType(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.Address = ""
} else {
x.Address = 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 *NodeResources) 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 [1]bool
_, _, _ = yysep2607, yyq2607, yy2arr2607
const yyr2607 bool = false
yyq2607[0] = len(x.Capacity) != 0
var yynn2607 int
if yyr2607 || yy2arr2607 {
r.EncodeArrayStart(1)
} else {
yynn2607 = 0
for _, b := range yyq2607 {
if b {
yynn2607++
}
}
r.EncodeMapStart(yynn2607)
yynn2607 = 0
}
if yyr2607 || yy2arr2607 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2607[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2607[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 yyr2607 || yy2arr2607 {
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
yym2609 := z.DecBinary()
_ = yym2609
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2610 := r.ContainerType()
if yyct2610 == codecSelferValueTypeMap1234 {
yyl2610 := r.ReadMapStart()
if yyl2610 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2610, d)
}
} else if yyct2610 == codecSelferValueTypeArray1234 {
yyl2610 := r.ReadArrayStart()
if yyl2610 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2610, 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 yys2611Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2611Slc
var yyhl2611 bool = l >= 0
for yyj2611 := 0; ; yyj2611++ {
if yyhl2611 {
if yyj2611 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2611Slc = r.DecodeBytes(yys2611Slc, true, true)
yys2611 := string(yys2611Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2611 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2612 := &x.Capacity
yyv2612.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2611)
} // end switch yys2611
} // end for yyj2611
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 yyj2613 int
var yyb2613 bool
var yyhl2613 bool = l >= 0
yyj2613++
if yyhl2613 {
yyb2613 = yyj2613 > l
} else {
yyb2613 = r.CheckBreak()
}
if yyb2613 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2614 := &x.Capacity
yyv2614.CodecDecodeSelf(d)
}
for {
yyj2613++
if yyhl2613 {
yyb2613 = yyj2613 > l
} else {
yyb2613 = r.CheckBreak()
}
if yyb2613 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2613-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2615 := z.EncBinary()
_ = yym2615
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
yym2616 := z.DecBinary()
_ = yym2616
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 {
yym2617 := z.EncBinary()
_ = yym2617
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
yym2618 := z.DecBinary()
_ = yym2618
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 {
yym2619 := z.EncBinary()
_ = yym2619
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2620 := !z.EncBinary()
yy2arr2620 := z.EncBasicHandle().StructToArray
var yyq2620 [5]bool
_, _, _ = yysep2620, yyq2620, yy2arr2620
const yyr2620 bool = false
yyq2620[0] = x.Kind != ""
yyq2620[1] = x.APIVersion != ""
yyq2620[2] = true
yyq2620[3] = true
yyq2620[4] = true
var yynn2620 int
if yyr2620 || yy2arr2620 {
r.EncodeArrayStart(5)
} else {
yynn2620 = 0
for _, b := range yyq2620 {
if b {
yynn2620++
}
}
r.EncodeMapStart(yynn2620)
yynn2620 = 0
}
if yyr2620 || yy2arr2620 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2620[0] {
yym2622 := z.EncBinary()
_ = yym2622
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2620[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2623 := z.EncBinary()
_ = yym2623
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2620 || yy2arr2620 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2620[1] {
yym2625 := z.EncBinary()
_ = yym2625
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2620[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2626 := z.EncBinary()
_ = yym2626
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2620 || yy2arr2620 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2620[2] {
yy2628 := &x.ObjectMeta
yy2628.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2620[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2629 := &x.ObjectMeta
yy2629.CodecEncodeSelf(e)
}
}
if yyr2620 || yy2arr2620 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2620[3] {
yy2631 := &x.Spec
yy2631.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2620[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2632 := &x.Spec
yy2632.CodecEncodeSelf(e)
}
}
if yyr2620 || yy2arr2620 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2620[4] {
yy2634 := &x.Status
yy2634.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2620[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2635 := &x.Status
yy2635.CodecEncodeSelf(e)
}
}
if yyr2620 || yy2arr2620 {
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
yym2636 := z.DecBinary()
_ = yym2636
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2637 := r.ContainerType()
if yyct2637 == codecSelferValueTypeMap1234 {
yyl2637 := r.ReadMapStart()
if yyl2637 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2637, d)
}
} else if yyct2637 == codecSelferValueTypeArray1234 {
yyl2637 := r.ReadArrayStart()
if yyl2637 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2637, 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 yys2638Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2638Slc
var yyhl2638 bool = l >= 0
for yyj2638 := 0; ; yyj2638++ {
if yyhl2638 {
if yyj2638 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2638Slc = r.DecodeBytes(yys2638Slc, true, true)
yys2638 := string(yys2638Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2638 {
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 {
yyv2641 := &x.ObjectMeta
yyv2641.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv2642 := &x.Spec
yyv2642.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv2643 := &x.Status
yyv2643.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2638)
} // end switch yys2638
} // end for yyj2638
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 yyj2644 int
var yyb2644 bool
var yyhl2644 bool = l >= 0
yyj2644++
if yyhl2644 {
yyb2644 = yyj2644 > l
} else {
yyb2644 = r.CheckBreak()
}
if yyb2644 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2644++
if yyhl2644 {
yyb2644 = yyj2644 > l
} else {
yyb2644 = r.CheckBreak()
}
if yyb2644 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2644++
if yyhl2644 {
yyb2644 = yyj2644 > l
} else {
yyb2644 = r.CheckBreak()
}
if yyb2644 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2647 := &x.ObjectMeta
yyv2647.CodecDecodeSelf(d)
}
yyj2644++
if yyhl2644 {
yyb2644 = yyj2644 > l
} else {
yyb2644 = r.CheckBreak()
}
if yyb2644 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv2648 := &x.Spec
yyv2648.CodecDecodeSelf(d)
}
yyj2644++
if yyhl2644 {
yyb2644 = yyj2644 > l
} else {
yyb2644 = r.CheckBreak()
}
if yyb2644 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv2649 := &x.Status
yyv2649.CodecDecodeSelf(d)
}
for {
yyj2644++
if yyhl2644 {
yyb2644 = yyj2644 > l
} else {
yyb2644 = r.CheckBreak()
}
if yyb2644 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2644-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 {
yym2650 := z.EncBinary()
_ = yym2650
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2651 := !z.EncBinary()
yy2arr2651 := z.EncBasicHandle().StructToArray
var yyq2651 [4]bool
_, _, _ = yysep2651, yyq2651, yy2arr2651
const yyr2651 bool = false
yyq2651[0] = x.Kind != ""
yyq2651[1] = x.APIVersion != ""
yyq2651[2] = true
var yynn2651 int
if yyr2651 || yy2arr2651 {
r.EncodeArrayStart(4)
} else {
yynn2651 = 1
for _, b := range yyq2651 {
if b {
yynn2651++
}
}
r.EncodeMapStart(yynn2651)
yynn2651 = 0
}
if yyr2651 || yy2arr2651 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2651[0] {
yym2653 := z.EncBinary()
_ = yym2653
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2651[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2654 := z.EncBinary()
_ = yym2654
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2651 || yy2arr2651 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2651[1] {
yym2656 := z.EncBinary()
_ = yym2656
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2651[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2657 := z.EncBinary()
_ = yym2657
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2651 || yy2arr2651 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2651[2] {
yy2659 := &x.ListMeta
yym2660 := z.EncBinary()
_ = yym2660
if false {
} else if z.HasExtensions() && z.EncExt(yy2659) {
} else {
z.EncFallback(yy2659)
}
} else {
r.EncodeNil()
}
} else {
if yyq2651[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2661 := &x.ListMeta
yym2662 := z.EncBinary()
_ = yym2662
if false {
} else if z.HasExtensions() && z.EncExt(yy2661) {
} else {
z.EncFallback(yy2661)
}
}
}
if yyr2651 || yy2arr2651 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2664 := z.EncBinary()
_ = yym2664
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 {
yym2665 := z.EncBinary()
_ = yym2665
if false {
} else {
h.encSliceNode(([]Node)(x.Items), e)
}
}
}
if yyr2651 || yy2arr2651 {
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
yym2666 := z.DecBinary()
_ = yym2666
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2667 := r.ContainerType()
if yyct2667 == codecSelferValueTypeMap1234 {
yyl2667 := r.ReadMapStart()
if yyl2667 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2667, d)
}
} else if yyct2667 == codecSelferValueTypeArray1234 {
yyl2667 := r.ReadArrayStart()
if yyl2667 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2667, 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 yys2668Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2668Slc
var yyhl2668 bool = l >= 0
for yyj2668 := 0; ; yyj2668++ {
if yyhl2668 {
if yyj2668 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2668Slc = r.DecodeBytes(yys2668Slc, true, true)
yys2668 := string(yys2668Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2668 {
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 {
yyv2671 := &x.ListMeta
yym2672 := z.DecBinary()
_ = yym2672
if false {
} else if z.HasExtensions() && z.DecExt(yyv2671) {
} else {
z.DecFallback(yyv2671, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2673 := &x.Items
yym2674 := z.DecBinary()
_ = yym2674
if false {
} else {
h.decSliceNode((*[]Node)(yyv2673), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2668)
} // end switch yys2668
} // end for yyj2668
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 yyj2675 int
var yyb2675 bool
var yyhl2675 bool = l >= 0
yyj2675++
if yyhl2675 {
yyb2675 = yyj2675 > l
} else {
yyb2675 = r.CheckBreak()
}
if yyb2675 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2675++
if yyhl2675 {
yyb2675 = yyj2675 > l
} else {
yyb2675 = r.CheckBreak()
}
if yyb2675 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2675++
if yyhl2675 {
yyb2675 = yyj2675 > l
} else {
yyb2675 = r.CheckBreak()
}
if yyb2675 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2678 := &x.ListMeta
yym2679 := z.DecBinary()
_ = yym2679
if false {
} else if z.HasExtensions() && z.DecExt(yyv2678) {
} else {
z.DecFallback(yyv2678, false)
}
}
yyj2675++
if yyhl2675 {
yyb2675 = yyj2675 > l
} else {
yyb2675 = r.CheckBreak()
}
if yyb2675 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2680 := &x.Items
yym2681 := z.DecBinary()
_ = yym2681
if false {
} else {
h.decSliceNode((*[]Node)(yyv2680), d)
}
}
for {
yyj2675++
if yyhl2675 {
yyb2675 = yyj2675 > l
} else {
yyb2675 = r.CheckBreak()
}
if yyb2675 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2675-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 {
yym2682 := z.EncBinary()
_ = yym2682
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2683 := !z.EncBinary()
yy2arr2683 := z.EncBasicHandle().StructToArray
var yyq2683 [1]bool
_, _, _ = yysep2683, yyq2683, yy2arr2683
const yyr2683 bool = false
var yynn2683 int
if yyr2683 || yy2arr2683 {
r.EncodeArrayStart(1)
} else {
yynn2683 = 1
for _, b := range yyq2683 {
if b {
yynn2683++
}
}
r.EncodeMapStart(yynn2683)
yynn2683 = 0
}
if yyr2683 || yy2arr2683 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym2685 := z.EncBinary()
_ = yym2685
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 {
yym2686 := z.EncBinary()
_ = yym2686
if false {
} else {
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
}
}
}
if yyr2683 || yy2arr2683 {
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
yym2687 := z.DecBinary()
_ = yym2687
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2688 := r.ContainerType()
if yyct2688 == codecSelferValueTypeMap1234 {
yyl2688 := r.ReadMapStart()
if yyl2688 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2688, d)
}
} else if yyct2688 == codecSelferValueTypeArray1234 {
yyl2688 := r.ReadArrayStart()
if yyl2688 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2688, 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 yys2689Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2689Slc
var yyhl2689 bool = l >= 0
for yyj2689 := 0; ; yyj2689++ {
if yyhl2689 {
if yyj2689 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2689Slc = r.DecodeBytes(yys2689Slc, true, true)
yys2689 := string(yys2689Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2689 {
case "Finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv2690 := &x.Finalizers
yym2691 := z.DecBinary()
_ = yym2691
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv2690), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2689)
} // end switch yys2689
} // end for yyj2689
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 yyj2692 int
var yyb2692 bool
var yyhl2692 bool = l >= 0
yyj2692++
if yyhl2692 {
yyb2692 = yyj2692 > l
} else {
yyb2692 = r.CheckBreak()
}
if yyb2692 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv2693 := &x.Finalizers
yym2694 := z.DecBinary()
_ = yym2694
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv2693), d)
}
}
for {
yyj2692++
if yyhl2692 {
yyb2692 = yyj2692 > l
} else {
yyb2692 = r.CheckBreak()
}
if yyb2692 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2692-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2695 := z.EncBinary()
_ = yym2695
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
yym2696 := z.DecBinary()
_ = yym2696
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 {
yym2697 := z.EncBinary()
_ = yym2697
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2698 := !z.EncBinary()
yy2arr2698 := z.EncBasicHandle().StructToArray
var yyq2698 [1]bool
_, _, _ = yysep2698, yyq2698, yy2arr2698
const yyr2698 bool = false
yyq2698[0] = x.Phase != ""
var yynn2698 int
if yyr2698 || yy2arr2698 {
r.EncodeArrayStart(1)
} else {
yynn2698 = 0
for _, b := range yyq2698 {
if b {
yynn2698++
}
}
r.EncodeMapStart(yynn2698)
yynn2698 = 0
}
if yyr2698 || yy2arr2698 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2698[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2698[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2698 || yy2arr2698 {
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
yym2700 := z.DecBinary()
_ = yym2700
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2701 := r.ContainerType()
if yyct2701 == codecSelferValueTypeMap1234 {
yyl2701 := r.ReadMapStart()
if yyl2701 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2701, d)
}
} else if yyct2701 == codecSelferValueTypeArray1234 {
yyl2701 := r.ReadArrayStart()
if yyl2701 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2701, 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 yys2702Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2702Slc
var yyhl2702 bool = l >= 0
for yyj2702 := 0; ; yyj2702++ {
if yyhl2702 {
if yyj2702 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2702Slc = r.DecodeBytes(yys2702Slc, true, true)
yys2702 := string(yys2702Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2702 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2702)
} // end switch yys2702
} // end for yyj2702
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 yyj2704 int
var yyb2704 bool
var yyhl2704 bool = l >= 0
yyj2704++
if yyhl2704 {
yyb2704 = yyj2704 > l
} else {
yyb2704 = r.CheckBreak()
}
if yyb2704 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
for {
yyj2704++
if yyhl2704 {
yyb2704 = yyj2704 > l
} else {
yyb2704 = r.CheckBreak()
}
if yyb2704 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2704-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2706 := z.EncBinary()
_ = yym2706
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
yym2707 := z.DecBinary()
_ = yym2707
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 {
yym2708 := z.EncBinary()
_ = yym2708
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2709 := !z.EncBinary()
yy2arr2709 := z.EncBasicHandle().StructToArray
var yyq2709 [5]bool
_, _, _ = yysep2709, yyq2709, yy2arr2709
const yyr2709 bool = false
yyq2709[0] = x.Kind != ""
yyq2709[1] = x.APIVersion != ""
yyq2709[2] = true
yyq2709[3] = true
yyq2709[4] = true
var yynn2709 int
if yyr2709 || yy2arr2709 {
r.EncodeArrayStart(5)
} else {
yynn2709 = 0
for _, b := range yyq2709 {
if b {
yynn2709++
}
}
r.EncodeMapStart(yynn2709)
yynn2709 = 0
}
if yyr2709 || yy2arr2709 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2709[0] {
yym2711 := z.EncBinary()
_ = yym2711
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2709[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2712 := z.EncBinary()
_ = yym2712
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2709 || yy2arr2709 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2709[1] {
yym2714 := z.EncBinary()
_ = yym2714
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2709[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2715 := z.EncBinary()
_ = yym2715
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2709 || yy2arr2709 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2709[2] {
yy2717 := &x.ObjectMeta
yy2717.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2709[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2718 := &x.ObjectMeta
yy2718.CodecEncodeSelf(e)
}
}
if yyr2709 || yy2arr2709 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2709[3] {
yy2720 := &x.Spec
yy2720.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2709[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2721 := &x.Spec
yy2721.CodecEncodeSelf(e)
}
}
if yyr2709 || yy2arr2709 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2709[4] {
yy2723 := &x.Status
yy2723.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2709[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2724 := &x.Status
yy2724.CodecEncodeSelf(e)
}
}
if yyr2709 || yy2arr2709 {
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
yym2725 := z.DecBinary()
_ = yym2725
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2726 := r.ContainerType()
if yyct2726 == codecSelferValueTypeMap1234 {
yyl2726 := r.ReadMapStart()
if yyl2726 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2726, d)
}
} else if yyct2726 == codecSelferValueTypeArray1234 {
yyl2726 := r.ReadArrayStart()
if yyl2726 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2726, 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 yys2727Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2727Slc
var yyhl2727 bool = l >= 0
for yyj2727 := 0; ; yyj2727++ {
if yyhl2727 {
if yyj2727 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2727Slc = r.DecodeBytes(yys2727Slc, true, true)
yys2727 := string(yys2727Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2727 {
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 {
yyv2730 := &x.ObjectMeta
yyv2730.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv2731 := &x.Spec
yyv2731.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv2732 := &x.Status
yyv2732.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2727)
} // end switch yys2727
} // end for yyj2727
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 yyj2733 int
var yyb2733 bool
var yyhl2733 bool = l >= 0
yyj2733++
if yyhl2733 {
yyb2733 = yyj2733 > l
} else {
yyb2733 = r.CheckBreak()
}
if yyb2733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2733++
if yyhl2733 {
yyb2733 = yyj2733 > l
} else {
yyb2733 = r.CheckBreak()
}
if yyb2733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2733++
if yyhl2733 {
yyb2733 = yyj2733 > l
} else {
yyb2733 = r.CheckBreak()
}
if yyb2733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2736 := &x.ObjectMeta
yyv2736.CodecDecodeSelf(d)
}
yyj2733++
if yyhl2733 {
yyb2733 = yyj2733 > l
} else {
yyb2733 = r.CheckBreak()
}
if yyb2733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv2737 := &x.Spec
yyv2737.CodecDecodeSelf(d)
}
yyj2733++
if yyhl2733 {
yyb2733 = yyj2733 > l
} else {
yyb2733 = r.CheckBreak()
}
if yyb2733 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv2738 := &x.Status
yyv2738.CodecDecodeSelf(d)
}
for {
yyj2733++
if yyhl2733 {
yyb2733 = yyj2733 > l
} else {
yyb2733 = r.CheckBreak()
}
if yyb2733 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2733-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 {
yym2739 := z.EncBinary()
_ = yym2739
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2740 := !z.EncBinary()
yy2arr2740 := z.EncBasicHandle().StructToArray
var yyq2740 [4]bool
_, _, _ = yysep2740, yyq2740, yy2arr2740
const yyr2740 bool = false
yyq2740[0] = x.Kind != ""
yyq2740[1] = x.APIVersion != ""
yyq2740[2] = true
var yynn2740 int
if yyr2740 || yy2arr2740 {
r.EncodeArrayStart(4)
} else {
yynn2740 = 1
for _, b := range yyq2740 {
if b {
yynn2740++
}
}
r.EncodeMapStart(yynn2740)
yynn2740 = 0
}
if yyr2740 || yy2arr2740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2740[0] {
yym2742 := z.EncBinary()
_ = yym2742
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2740[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2743 := z.EncBinary()
_ = yym2743
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2740 || yy2arr2740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2740[1] {
yym2745 := z.EncBinary()
_ = yym2745
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2740[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2746 := z.EncBinary()
_ = yym2746
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2740 || yy2arr2740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2740[2] {
yy2748 := &x.ListMeta
yym2749 := z.EncBinary()
_ = yym2749
if false {
} else if z.HasExtensions() && z.EncExt(yy2748) {
} else {
z.EncFallback(yy2748)
}
} else {
r.EncodeNil()
}
} else {
if yyq2740[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2750 := &x.ListMeta
yym2751 := z.EncBinary()
_ = yym2751
if false {
} else if z.HasExtensions() && z.EncExt(yy2750) {
} else {
z.EncFallback(yy2750)
}
}
}
if yyr2740 || yy2arr2740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2753 := z.EncBinary()
_ = yym2753
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 {
yym2754 := z.EncBinary()
_ = yym2754
if false {
} else {
h.encSliceNamespace(([]Namespace)(x.Items), e)
}
}
}
if yyr2740 || yy2arr2740 {
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
yym2755 := z.DecBinary()
_ = yym2755
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2756 := r.ContainerType()
if yyct2756 == codecSelferValueTypeMap1234 {
yyl2756 := r.ReadMapStart()
if yyl2756 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2756, d)
}
} else if yyct2756 == codecSelferValueTypeArray1234 {
yyl2756 := r.ReadArrayStart()
if yyl2756 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2756, 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 yys2757Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2757Slc
var yyhl2757 bool = l >= 0
for yyj2757 := 0; ; yyj2757++ {
if yyhl2757 {
if yyj2757 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2757Slc = r.DecodeBytes(yys2757Slc, true, true)
yys2757 := string(yys2757Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2757 {
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 {
yyv2760 := &x.ListMeta
yym2761 := z.DecBinary()
_ = yym2761
if false {
} else if z.HasExtensions() && z.DecExt(yyv2760) {
} else {
z.DecFallback(yyv2760, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2762 := &x.Items
yym2763 := z.DecBinary()
_ = yym2763
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv2762), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2757)
} // end switch yys2757
} // end for yyj2757
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 yyj2764 int
var yyb2764 bool
var yyhl2764 bool = l >= 0
yyj2764++
if yyhl2764 {
yyb2764 = yyj2764 > l
} else {
yyb2764 = r.CheckBreak()
}
if yyb2764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2764++
if yyhl2764 {
yyb2764 = yyj2764 > l
} else {
yyb2764 = r.CheckBreak()
}
if yyb2764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2764++
if yyhl2764 {
yyb2764 = yyj2764 > l
} else {
yyb2764 = r.CheckBreak()
}
if yyb2764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2767 := &x.ListMeta
yym2768 := z.DecBinary()
_ = yym2768
if false {
} else if z.HasExtensions() && z.DecExt(yyv2767) {
} else {
z.DecFallback(yyv2767, false)
}
}
yyj2764++
if yyhl2764 {
yyb2764 = yyj2764 > l
} else {
yyb2764 = r.CheckBreak()
}
if yyb2764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2769 := &x.Items
yym2770 := z.DecBinary()
_ = yym2770
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv2769), d)
}
}
for {
yyj2764++
if yyhl2764 {
yyb2764 = yyj2764 > l
} else {
yyb2764 = r.CheckBreak()
}
if yyb2764 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2764-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 {
yym2771 := z.EncBinary()
_ = yym2771
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2772 := !z.EncBinary()
yy2arr2772 := z.EncBasicHandle().StructToArray
var yyq2772 [4]bool
_, _, _ = yysep2772, yyq2772, yy2arr2772
const yyr2772 bool = false
yyq2772[0] = x.Kind != ""
yyq2772[1] = x.APIVersion != ""
yyq2772[2] = true
var yynn2772 int
if yyr2772 || yy2arr2772 {
r.EncodeArrayStart(4)
} else {
yynn2772 = 1
for _, b := range yyq2772 {
if b {
yynn2772++
}
}
r.EncodeMapStart(yynn2772)
yynn2772 = 0
}
if yyr2772 || yy2arr2772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2772[0] {
yym2774 := z.EncBinary()
_ = yym2774
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2772[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2775 := z.EncBinary()
_ = yym2775
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2772 || yy2arr2772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2772[1] {
yym2777 := z.EncBinary()
_ = yym2777
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2772[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2778 := z.EncBinary()
_ = yym2778
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2772 || yy2arr2772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2772[2] {
yy2780 := &x.ObjectMeta
yy2780.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2772[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2781 := &x.ObjectMeta
yy2781.CodecEncodeSelf(e)
}
}
if yyr2772 || yy2arr2772 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2783 := &x.Target
yy2783.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("target"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2784 := &x.Target
yy2784.CodecEncodeSelf(e)
}
if yyr2772 || yy2arr2772 {
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
yym2785 := z.DecBinary()
_ = yym2785
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2786 := r.ContainerType()
if yyct2786 == codecSelferValueTypeMap1234 {
yyl2786 := r.ReadMapStart()
if yyl2786 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2786, d)
}
} else if yyct2786 == codecSelferValueTypeArray1234 {
yyl2786 := r.ReadArrayStart()
if yyl2786 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2786, 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 yys2787Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2787Slc
var yyhl2787 bool = l >= 0
for yyj2787 := 0; ; yyj2787++ {
if yyhl2787 {
if yyj2787 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2787Slc = r.DecodeBytes(yys2787Slc, true, true)
yys2787 := string(yys2787Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2787 {
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 {
yyv2790 := &x.ObjectMeta
yyv2790.CodecDecodeSelf(d)
}
case "target":
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv2791 := &x.Target
yyv2791.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2787)
} // end switch yys2787
} // end for yyj2787
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 yyj2792 int
var yyb2792 bool
var yyhl2792 bool = l >= 0
yyj2792++
if yyhl2792 {
yyb2792 = yyj2792 > l
} else {
yyb2792 = r.CheckBreak()
}
if yyb2792 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2792++
if yyhl2792 {
yyb2792 = yyj2792 > l
} else {
yyb2792 = r.CheckBreak()
}
if yyb2792 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2792++
if yyhl2792 {
yyb2792 = yyj2792 > l
} else {
yyb2792 = r.CheckBreak()
}
if yyb2792 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2795 := &x.ObjectMeta
yyv2795.CodecDecodeSelf(d)
}
yyj2792++
if yyhl2792 {
yyb2792 = yyj2792 > l
} else {
yyb2792 = r.CheckBreak()
}
if yyb2792 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv2796 := &x.Target
yyv2796.CodecDecodeSelf(d)
}
for {
yyj2792++
if yyhl2792 {
yyb2792 = yyj2792 > l
} else {
yyb2792 = r.CheckBreak()
}
if yyb2792 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2792-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 {
yym2797 := z.EncBinary()
_ = yym2797
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2798 := !z.EncBinary()
yy2arr2798 := z.EncBasicHandle().StructToArray
var yyq2798 [3]bool
_, _, _ = yysep2798, yyq2798, yy2arr2798
const yyr2798 bool = false
yyq2798[0] = x.Kind != ""
yyq2798[1] = x.APIVersion != ""
var yynn2798 int
if yyr2798 || yy2arr2798 {
r.EncodeArrayStart(3)
} else {
yynn2798 = 1
for _, b := range yyq2798 {
if b {
yynn2798++
}
}
r.EncodeMapStart(yynn2798)
yynn2798 = 0
}
if yyr2798 || yy2arr2798 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2798[0] {
yym2800 := z.EncBinary()
_ = yym2800
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2798[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2801 := z.EncBinary()
_ = yym2801
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2798 || yy2arr2798 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2798[1] {
yym2803 := z.EncBinary()
_ = yym2803
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2798[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2804 := z.EncBinary()
_ = yym2804
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2798 || yy2arr2798 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2806 := *x.GracePeriodSeconds
yym2807 := z.EncBinary()
_ = yym2807
if false {
} else {
r.EncodeInt(int64(yy2806))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2808 := *x.GracePeriodSeconds
yym2809 := z.EncBinary()
_ = yym2809
if false {
} else {
r.EncodeInt(int64(yy2808))
}
}
}
if yyr2798 || yy2arr2798 {
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
yym2810 := z.DecBinary()
_ = yym2810
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2811 := r.ContainerType()
if yyct2811 == codecSelferValueTypeMap1234 {
yyl2811 := r.ReadMapStart()
if yyl2811 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2811, d)
}
} else if yyct2811 == codecSelferValueTypeArray1234 {
yyl2811 := r.ReadArrayStart()
if yyl2811 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2811, 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 yys2812Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2812Slc
var yyhl2812 bool = l >= 0
for yyj2812 := 0; ; yyj2812++ {
if yyhl2812 {
if yyj2812 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2812Slc = r.DecodeBytes(yys2812Slc, true, true)
yys2812 := string(yys2812Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2812 {
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)
}
yym2816 := z.DecBinary()
_ = yym2816
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2812)
} // end switch yys2812
} // end for yyj2812
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 yyj2817 int
var yyb2817 bool
var yyhl2817 bool = l >= 0
yyj2817++
if yyhl2817 {
yyb2817 = yyj2817 > l
} else {
yyb2817 = r.CheckBreak()
}
if yyb2817 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2817++
if yyhl2817 {
yyb2817 = yyj2817 > l
} else {
yyb2817 = r.CheckBreak()
}
if yyb2817 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2817++
if yyhl2817 {
yyb2817 = yyj2817 > l
} else {
yyb2817 = r.CheckBreak()
}
if yyb2817 {
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)
}
yym2821 := z.DecBinary()
_ = yym2821
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj2817++
if yyhl2817 {
yyb2817 = yyj2817 > l
} else {
yyb2817 = r.CheckBreak()
}
if yyb2817 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2817-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 {
yym2822 := z.EncBinary()
_ = yym2822
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2823 := !z.EncBinary()
yy2arr2823 := z.EncBasicHandle().StructToArray
var yyq2823 [4]bool
_, _, _ = yysep2823, yyq2823, yy2arr2823
const yyr2823 bool = false
yyq2823[0] = x.Kind != ""
yyq2823[1] = x.APIVersion != ""
var yynn2823 int
if yyr2823 || yy2arr2823 {
r.EncodeArrayStart(4)
} else {
yynn2823 = 2
for _, b := range yyq2823 {
if b {
yynn2823++
}
}
r.EncodeMapStart(yynn2823)
yynn2823 = 0
}
if yyr2823 || yy2arr2823 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2823[0] {
yym2825 := z.EncBinary()
_ = yym2825
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2823[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2826 := z.EncBinary()
_ = yym2826
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2823 || yy2arr2823 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2823[1] {
yym2828 := z.EncBinary()
_ = yym2828
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2823[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2829 := z.EncBinary()
_ = yym2829
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2823 || yy2arr2823 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2831 := z.EncBinary()
_ = yym2831
if false {
} else {
r.EncodeBool(bool(x.Export))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("export"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2832 := z.EncBinary()
_ = yym2832
if false {
} else {
r.EncodeBool(bool(x.Export))
}
}
if yyr2823 || yy2arr2823 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2834 := z.EncBinary()
_ = yym2834
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exact"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2835 := z.EncBinary()
_ = yym2835
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
}
if yyr2823 || yy2arr2823 {
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
yym2836 := z.DecBinary()
_ = yym2836
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2837 := r.ContainerType()
if yyct2837 == codecSelferValueTypeMap1234 {
yyl2837 := r.ReadMapStart()
if yyl2837 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2837, d)
}
} else if yyct2837 == codecSelferValueTypeArray1234 {
yyl2837 := r.ReadArrayStart()
if yyl2837 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2837, 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 yys2838Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2838Slc
var yyhl2838 bool = l >= 0
for yyj2838 := 0; ; yyj2838++ {
if yyhl2838 {
if yyj2838 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2838Slc = r.DecodeBytes(yys2838Slc, true, true)
yys2838 := string(yys2838Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2838 {
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, yys2838)
} // end switch yys2838
} // end for yyj2838
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 yyj2843 int
var yyb2843 bool
var yyhl2843 bool = l >= 0
yyj2843++
if yyhl2843 {
yyb2843 = yyj2843 > l
} else {
yyb2843 = r.CheckBreak()
}
if yyb2843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2843++
if yyhl2843 {
yyb2843 = yyj2843 > l
} else {
yyb2843 = r.CheckBreak()
}
if yyb2843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2843++
if yyhl2843 {
yyb2843 = yyj2843 > l
} else {
yyb2843 = r.CheckBreak()
}
if yyb2843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
yyj2843++
if yyhl2843 {
yyb2843 = yyj2843 > l
} else {
yyb2843 = r.CheckBreak()
}
if yyb2843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
for {
yyj2843++
if yyhl2843 {
yyb2843 = yyj2843 > l
} else {
yyb2843 = r.CheckBreak()
}
if yyb2843 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2843-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 {
yym2848 := z.EncBinary()
_ = yym2848
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2849 := !z.EncBinary()
yy2arr2849 := z.EncBasicHandle().StructToArray
var yyq2849 [7]bool
_, _, _ = yysep2849, yyq2849, yy2arr2849
const yyr2849 bool = false
yyq2849[0] = x.Kind != ""
yyq2849[1] = x.APIVersion != ""
var yynn2849 int
if yyr2849 || yy2arr2849 {
r.EncodeArrayStart(7)
} else {
yynn2849 = 5
for _, b := range yyq2849 {
if b {
yynn2849++
}
}
r.EncodeMapStart(yynn2849)
yynn2849 = 0
}
if yyr2849 || yy2arr2849 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2849[0] {
yym2851 := z.EncBinary()
_ = yym2851
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2849[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2852 := z.EncBinary()
_ = yym2852
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2849 || yy2arr2849 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2849[1] {
yym2854 := z.EncBinary()
_ = yym2854
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2849[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2855 := z.EncBinary()
_ = yym2855
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2849 || yy2arr2849 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym2857 := z.EncBinary()
_ = yym2857
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 {
yym2858 := z.EncBinary()
_ = yym2858
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
if yyr2849 || yy2arr2849 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldSelector == nil {
r.EncodeNil()
} else {
yym2860 := z.EncBinary()
_ = yym2860
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 {
yym2861 := z.EncBinary()
_ = yym2861
if false {
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
} else {
z.EncFallback(x.FieldSelector)
}
}
}
if yyr2849 || yy2arr2849 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2863 := z.EncBinary()
_ = yym2863
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2864 := z.EncBinary()
_ = yym2864
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
}
if yyr2849 || yy2arr2849 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2866 := z.EncBinary()
_ = yym2866
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)
yym2867 := z.EncBinary()
_ = yym2867
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
if yyr2849 || yy2arr2849 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy2869 := *x.TimeoutSeconds
yym2870 := z.EncBinary()
_ = yym2870
if false {
} else {
r.EncodeInt(int64(yy2869))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy2871 := *x.TimeoutSeconds
yym2872 := z.EncBinary()
_ = yym2872
if false {
} else {
r.EncodeInt(int64(yy2871))
}
}
}
if yyr2849 || yy2arr2849 {
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
yym2873 := z.DecBinary()
_ = yym2873
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2874 := r.ContainerType()
if yyct2874 == codecSelferValueTypeMap1234 {
yyl2874 := r.ReadMapStart()
if yyl2874 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2874, d)
}
} else if yyct2874 == codecSelferValueTypeArray1234 {
yyl2874 := r.ReadArrayStart()
if yyl2874 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2874, 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 yys2875Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2875Slc
var yyhl2875 bool = l >= 0
for yyj2875 := 0; ; yyj2875++ {
if yyhl2875 {
if yyj2875 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2875Slc = r.DecodeBytes(yys2875Slc, true, true)
yys2875 := string(yys2875Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2875 {
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 {
yyv2878 := &x.LabelSelector
yym2879 := z.DecBinary()
_ = yym2879
if false {
} else if z.HasExtensions() && z.DecExt(yyv2878) {
} else {
z.DecFallback(yyv2878, true)
}
}
case "FieldSelector":
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv2880 := &x.FieldSelector
yym2881 := z.DecBinary()
_ = yym2881
if false {
} else if z.HasExtensions() && z.DecExt(yyv2880) {
} else {
z.DecFallback(yyv2880, 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)
}
yym2885 := z.DecBinary()
_ = yym2885
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2875)
} // end switch yys2875
} // end for yyj2875
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 yyj2886 int
var yyb2886 bool
var yyhl2886 bool = l >= 0
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LabelSelector = nil
} else {
yyv2889 := &x.LabelSelector
yym2890 := z.DecBinary()
_ = yym2890
if false {
} else if z.HasExtensions() && z.DecExt(yyv2889) {
} else {
z.DecFallback(yyv2889, true)
}
}
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv2891 := &x.FieldSelector
yym2892 := z.DecBinary()
_ = yym2892
if false {
} else if z.HasExtensions() && z.DecExt(yyv2891) {
} else {
z.DecFallback(yyv2891, true)
}
}
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Watch = false
} else {
x.Watch = bool(r.DecodeBool())
}
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
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)
}
yym2896 := z.DecBinary()
_ = yym2896
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj2886++
if yyhl2886 {
yyb2886 = yyj2886 > l
} else {
yyb2886 = r.CheckBreak()
}
if yyb2886 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2886-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 {
yym2897 := z.EncBinary()
_ = yym2897
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2898 := !z.EncBinary()
yy2arr2898 := z.EncBasicHandle().StructToArray
var yyq2898 [10]bool
_, _, _ = yysep2898, yyq2898, yy2arr2898
const yyr2898 bool = false
yyq2898[0] = x.Kind != ""
yyq2898[1] = x.APIVersion != ""
var yynn2898 int
if yyr2898 || yy2arr2898 {
r.EncodeArrayStart(10)
} else {
yynn2898 = 8
for _, b := range yyq2898 {
if b {
yynn2898++
}
}
r.EncodeMapStart(yynn2898)
yynn2898 = 0
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2898[0] {
yym2900 := z.EncBinary()
_ = yym2900
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2898[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2901 := z.EncBinary()
_ = yym2901
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2898[1] {
yym2903 := z.EncBinary()
_ = yym2903
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2898[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2904 := z.EncBinary()
_ = yym2904
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2906 := z.EncBinary()
_ = yym2906
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)
yym2907 := z.EncBinary()
_ = yym2907
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2909 := z.EncBinary()
_ = yym2909
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2910 := z.EncBinary()
_ = yym2910
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2912 := z.EncBinary()
_ = yym2912
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2913 := z.EncBinary()
_ = yym2913
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy2915 := *x.SinceSeconds
yym2916 := z.EncBinary()
_ = yym2916
if false {
} else {
r.EncodeInt(int64(yy2915))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy2917 := *x.SinceSeconds
yym2918 := z.EncBinary()
_ = yym2918
if false {
} else {
r.EncodeInt(int64(yy2917))
}
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceTime == nil {
r.EncodeNil()
} else {
yym2920 := z.EncBinary()
_ = yym2920
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym2920 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym2920 && 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 {
yym2921 := z.EncBinary()
_ = yym2921
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym2921 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym2921 && z.IsJSONHandle() {
z.EncJSONMarshal(x.SinceTime)
} else {
z.EncFallback(x.SinceTime)
}
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2923 := z.EncBinary()
_ = yym2923
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2924 := z.EncBinary()
_ = yym2924
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy2926 := *x.TailLines
yym2927 := z.EncBinary()
_ = yym2927
if false {
} else {
r.EncodeInt(int64(yy2926))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy2928 := *x.TailLines
yym2929 := z.EncBinary()
_ = yym2929
if false {
} else {
r.EncodeInt(int64(yy2928))
}
}
}
if yyr2898 || yy2arr2898 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy2931 := *x.LimitBytes
yym2932 := z.EncBinary()
_ = yym2932
if false {
} else {
r.EncodeInt(int64(yy2931))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy2933 := *x.LimitBytes
yym2934 := z.EncBinary()
_ = yym2934
if false {
} else {
r.EncodeInt(int64(yy2933))
}
}
}
if yyr2898 || yy2arr2898 {
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
yym2935 := z.DecBinary()
_ = yym2935
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2936 := r.ContainerType()
if yyct2936 == codecSelferValueTypeMap1234 {
yyl2936 := r.ReadMapStart()
if yyl2936 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2936, d)
}
} else if yyct2936 == codecSelferValueTypeArray1234 {
yyl2936 := r.ReadArrayStart()
if yyl2936 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2936, 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 yys2937Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2937Slc
var yyhl2937 bool = l >= 0
for yyj2937 := 0; ; yyj2937++ {
if yyhl2937 {
if yyj2937 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2937Slc = r.DecodeBytes(yys2937Slc, true, true)
yys2937 := string(yys2937Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2937 {
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)
}
yym2944 := z.DecBinary()
_ = yym2944
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)
}
yym2946 := z.DecBinary()
_ = yym2946
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym2946 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym2946 && 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)
}
yym2949 := z.DecBinary()
_ = yym2949
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)
}
yym2951 := z.DecBinary()
_ = yym2951
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2937)
} // end switch yys2937
} // end for yyj2937
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 yyj2952 int
var yyb2952 bool
var yyhl2952 bool = l >= 0
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Follow = false
} else {
x.Follow = bool(r.DecodeBool())
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Previous = false
} else {
x.Previous = bool(r.DecodeBool())
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
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)
}
yym2959 := z.DecBinary()
_ = yym2959
if false {
} else {
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
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)
}
yym2961 := z.DecBinary()
_ = yym2961
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym2961 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym2961 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.SinceTime)
} else {
z.DecFallback(x.SinceTime, false)
}
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Timestamps = false
} else {
x.Timestamps = bool(r.DecodeBool())
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
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)
}
yym2964 := z.DecBinary()
_ = yym2964
if false {
} else {
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
}
}
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
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)
}
yym2966 := z.DecBinary()
_ = yym2966
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
for {
yyj2952++
if yyhl2952 {
yyb2952 = yyj2952 > l
} else {
yyb2952 = r.CheckBreak()
}
if yyb2952 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2952-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 {
yym2967 := z.EncBinary()
_ = yym2967
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2968 := !z.EncBinary()
yy2arr2968 := z.EncBasicHandle().StructToArray
var yyq2968 [7]bool
_, _, _ = yysep2968, yyq2968, yy2arr2968
const yyr2968 bool = false
yyq2968[0] = x.Kind != ""
yyq2968[1] = x.APIVersion != ""
yyq2968[2] = x.Stdin != false
yyq2968[3] = x.Stdout != false
yyq2968[4] = x.Stderr != false
yyq2968[5] = x.TTY != false
yyq2968[6] = x.Container != ""
var yynn2968 int
if yyr2968 || yy2arr2968 {
r.EncodeArrayStart(7)
} else {
yynn2968 = 0
for _, b := range yyq2968 {
if b {
yynn2968++
}
}
r.EncodeMapStart(yynn2968)
yynn2968 = 0
}
if yyr2968 || yy2arr2968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2968[0] {
yym2970 := z.EncBinary()
_ = yym2970
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2968[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2971 := z.EncBinary()
_ = yym2971
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2968 || yy2arr2968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2968[1] {
yym2973 := z.EncBinary()
_ = yym2973
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2968[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2974 := z.EncBinary()
_ = yym2974
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2968 || yy2arr2968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2968[2] {
yym2976 := z.EncBinary()
_ = yym2976
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2968[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2977 := z.EncBinary()
_ = yym2977
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr2968 || yy2arr2968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2968[3] {
yym2979 := z.EncBinary()
_ = yym2979
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2968[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2980 := z.EncBinary()
_ = yym2980
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
}
if yyr2968 || yy2arr2968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2968[4] {
yym2982 := z.EncBinary()
_ = yym2982
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2968[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2983 := z.EncBinary()
_ = yym2983
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
}
if yyr2968 || yy2arr2968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2968[5] {
yym2985 := z.EncBinary()
_ = yym2985
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2968[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2986 := z.EncBinary()
_ = yym2986
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr2968 || yy2arr2968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2968[6] {
yym2988 := z.EncBinary()
_ = yym2988
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2968[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("container"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2989 := z.EncBinary()
_ = yym2989
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
}
if yyr2968 || yy2arr2968 {
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
yym2990 := z.DecBinary()
_ = yym2990
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2991 := r.ContainerType()
if yyct2991 == codecSelferValueTypeMap1234 {
yyl2991 := r.ReadMapStart()
if yyl2991 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2991, d)
}
} else if yyct2991 == codecSelferValueTypeArray1234 {
yyl2991 := r.ReadArrayStart()
if yyl2991 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2991, 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 yys2992Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2992Slc
var yyhl2992 bool = l >= 0
for yyj2992 := 0; ; yyj2992++ {
if yyhl2992 {
if yyj2992 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2992Slc = r.DecodeBytes(yys2992Slc, true, true)
yys2992 := string(yys2992Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2992 {
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, yys2992)
} // end switch yys2992
} // end for yyj2992
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 yyj3000 int
var yyb3000 bool
var yyhl3000 bool = l >= 0
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
for {
yyj3000++
if yyhl3000 {
yyb3000 = yyj3000 > l
} else {
yyb3000 = r.CheckBreak()
}
if yyb3000 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3000-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodExecOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3008 := z.EncBinary()
_ = yym3008
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3009 := !z.EncBinary()
yy2arr3009 := z.EncBasicHandle().StructToArray
var yyq3009 [8]bool
_, _, _ = yysep3009, yyq3009, yy2arr3009
const yyr3009 bool = false
yyq3009[0] = x.Kind != ""
yyq3009[1] = x.APIVersion != ""
var yynn3009 int
if yyr3009 || yy2arr3009 {
r.EncodeArrayStart(8)
} else {
yynn3009 = 6
for _, b := range yyq3009 {
if b {
yynn3009++
}
}
r.EncodeMapStart(yynn3009)
yynn3009 = 0
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3009[0] {
yym3011 := z.EncBinary()
_ = yym3011
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3009[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3012 := z.EncBinary()
_ = yym3012
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3009[1] {
yym3014 := z.EncBinary()
_ = yym3014
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3009[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3015 := z.EncBinary()
_ = yym3015
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3017 := z.EncBinary()
_ = yym3017
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3018 := z.EncBinary()
_ = yym3018
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3020 := z.EncBinary()
_ = yym3020
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3021 := z.EncBinary()
_ = yym3021
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3023 := z.EncBinary()
_ = yym3023
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3024 := z.EncBinary()
_ = yym3024
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3026 := z.EncBinary()
_ = yym3026
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3027 := z.EncBinary()
_ = yym3027
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3029 := z.EncBinary()
_ = yym3029
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)
yym3030 := z.EncBinary()
_ = yym3030
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3009 || yy2arr3009 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym3032 := z.EncBinary()
_ = yym3032
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 {
yym3033 := z.EncBinary()
_ = yym3033
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
if yyr3009 || yy2arr3009 {
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
yym3034 := z.DecBinary()
_ = yym3034
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3035 := r.ContainerType()
if yyct3035 == codecSelferValueTypeMap1234 {
yyl3035 := r.ReadMapStart()
if yyl3035 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3035, d)
}
} else if yyct3035 == codecSelferValueTypeArray1234 {
yyl3035 := r.ReadArrayStart()
if yyl3035 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3035, 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 yys3036Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3036Slc
var yyhl3036 bool = l >= 0
for yyj3036 := 0; ; yyj3036++ {
if yyhl3036 {
if yyj3036 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3036Slc = r.DecodeBytes(yys3036Slc, true, true)
yys3036 := string(yys3036Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3036 {
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 {
yyv3044 := &x.Command
yym3045 := z.DecBinary()
_ = yym3045
if false {
} else {
z.F.DecSliceStringX(yyv3044, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3036)
} // end switch yys3036
} // end for yyj3036
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 yyj3046 int
var yyb3046 bool
var yyhl3046 bool = l >= 0
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv3054 := &x.Command
yym3055 := z.DecBinary()
_ = yym3055
if false {
} else {
z.F.DecSliceStringX(yyv3054, false, d)
}
}
for {
yyj3046++
if yyhl3046 {
yyb3046 = yyj3046 > l
} else {
yyb3046 = r.CheckBreak()
}
if yyb3046 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3046-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 {
yym3056 := z.EncBinary()
_ = yym3056
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3057 := !z.EncBinary()
yy2arr3057 := z.EncBasicHandle().StructToArray
var yyq3057 [3]bool
_, _, _ = yysep3057, yyq3057, yy2arr3057
const yyr3057 bool = false
yyq3057[0] = x.Kind != ""
yyq3057[1] = x.APIVersion != ""
var yynn3057 int
if yyr3057 || yy2arr3057 {
r.EncodeArrayStart(3)
} else {
yynn3057 = 1
for _, b := range yyq3057 {
if b {
yynn3057++
}
}
r.EncodeMapStart(yynn3057)
yynn3057 = 0
}
if yyr3057 || yy2arr3057 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3057[0] {
yym3059 := z.EncBinary()
_ = yym3059
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3057[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3060 := z.EncBinary()
_ = yym3060
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3057 || yy2arr3057 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3057[1] {
yym3062 := z.EncBinary()
_ = yym3062
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3057[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3063 := z.EncBinary()
_ = yym3063
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3057 || yy2arr3057 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3065 := z.EncBinary()
_ = yym3065
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)
yym3066 := z.EncBinary()
_ = yym3066
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3057 || yy2arr3057 {
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
yym3067 := z.DecBinary()
_ = yym3067
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3068 := r.ContainerType()
if yyct3068 == codecSelferValueTypeMap1234 {
yyl3068 := r.ReadMapStart()
if yyl3068 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3068, d)
}
} else if yyct3068 == codecSelferValueTypeArray1234 {
yyl3068 := r.ReadArrayStart()
if yyl3068 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3068, 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 yys3069Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3069Slc
var yyhl3069 bool = l >= 0
for yyj3069 := 0; ; yyj3069++ {
if yyhl3069 {
if yyj3069 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3069Slc = r.DecodeBytes(yys3069Slc, true, true)
yys3069 := string(yys3069Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3069 {
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, yys3069)
} // end switch yys3069
} // end for yyj3069
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 yyj3073 int
var yyb3073 bool
var yyhl3073 bool = l >= 0
yyj3073++
if yyhl3073 {
yyb3073 = yyj3073 > l
} else {
yyb3073 = r.CheckBreak()
}
if yyb3073 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3073++
if yyhl3073 {
yyb3073 = yyj3073 > l
} else {
yyb3073 = r.CheckBreak()
}
if yyb3073 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3073++
if yyhl3073 {
yyb3073 = yyj3073 > l
} else {
yyb3073 = r.CheckBreak()
}
if yyb3073 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3073++
if yyhl3073 {
yyb3073 = yyj3073 > l
} else {
yyb3073 = r.CheckBreak()
}
if yyb3073 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3073-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 {
yym3077 := z.EncBinary()
_ = yym3077
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3078 := !z.EncBinary()
yy2arr3078 := z.EncBasicHandle().StructToArray
var yyq3078 [7]bool
_, _, _ = yysep3078, yyq3078, yy2arr3078
const yyr3078 bool = false
yyq3078[0] = x.Kind != ""
yyq3078[1] = x.Namespace != ""
yyq3078[2] = x.Name != ""
yyq3078[3] = x.UID != ""
yyq3078[4] = x.APIVersion != ""
yyq3078[5] = x.ResourceVersion != ""
yyq3078[6] = x.FieldPath != ""
var yynn3078 int
if yyr3078 || yy2arr3078 {
r.EncodeArrayStart(7)
} else {
yynn3078 = 0
for _, b := range yyq3078 {
if b {
yynn3078++
}
}
r.EncodeMapStart(yynn3078)
yynn3078 = 0
}
if yyr3078 || yy2arr3078 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3078[0] {
yym3080 := z.EncBinary()
_ = yym3080
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3078[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3081 := z.EncBinary()
_ = yym3081
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3078 || yy2arr3078 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3078[1] {
yym3083 := z.EncBinary()
_ = yym3083
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3078[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3084 := z.EncBinary()
_ = yym3084
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr3078 || yy2arr3078 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3078[2] {
yym3086 := z.EncBinary()
_ = yym3086
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3078[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3087 := z.EncBinary()
_ = yym3087
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr3078 || yy2arr3078 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3078[3] {
yym3089 := z.EncBinary()
_ = yym3089
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 yyq3078[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3090 := z.EncBinary()
_ = yym3090
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr3078 || yy2arr3078 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3078[4] {
yym3092 := z.EncBinary()
_ = yym3092
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3078[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3093 := z.EncBinary()
_ = yym3093
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3078 || yy2arr3078 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3078[5] {
yym3095 := z.EncBinary()
_ = yym3095
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3078[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3096 := z.EncBinary()
_ = yym3096
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr3078 || yy2arr3078 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3078[6] {
yym3098 := z.EncBinary()
_ = yym3098
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3078[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3099 := z.EncBinary()
_ = yym3099
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
}
if yyr3078 || yy2arr3078 {
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
yym3100 := z.DecBinary()
_ = yym3100
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3101 := r.ContainerType()
if yyct3101 == codecSelferValueTypeMap1234 {
yyl3101 := r.ReadMapStart()
if yyl3101 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3101, d)
}
} else if yyct3101 == codecSelferValueTypeArray1234 {
yyl3101 := r.ReadArrayStart()
if yyl3101 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3101, 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 yys3102Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3102Slc
var yyhl3102 bool = l >= 0
for yyj3102 := 0; ; yyj3102++ {
if yyhl3102 {
if yyj3102 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3102Slc = r.DecodeBytes(yys3102Slc, true, true)
yys3102 := string(yys3102Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3102 {
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, yys3102)
} // end switch yys3102
} // end for yyj3102
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 yyj3110 int
var yyb3110 bool
var yyhl3110 bool = l >= 0
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj3110++
if yyhl3110 {
yyb3110 = yyj3110 > l
} else {
yyb3110 = r.CheckBreak()
}
if yyb3110 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3110-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 {
yym3118 := z.EncBinary()
_ = yym3118
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3119 := !z.EncBinary()
yy2arr3119 := z.EncBasicHandle().StructToArray
var yyq3119 [1]bool
_, _, _ = yysep3119, yyq3119, yy2arr3119
const yyr3119 bool = false
var yynn3119 int
if yyr3119 || yy2arr3119 {
r.EncodeArrayStart(1)
} else {
yynn3119 = 1
for _, b := range yyq3119 {
if b {
yynn3119++
}
}
r.EncodeMapStart(yynn3119)
yynn3119 = 0
}
if yyr3119 || yy2arr3119 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3121 := z.EncBinary()
_ = yym3121
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)
yym3122 := z.EncBinary()
_ = yym3122
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3119 || yy2arr3119 {
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
yym3123 := z.DecBinary()
_ = yym3123
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3124 := r.ContainerType()
if yyct3124 == codecSelferValueTypeMap1234 {
yyl3124 := r.ReadMapStart()
if yyl3124 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3124, d)
}
} else if yyct3124 == codecSelferValueTypeArray1234 {
yyl3124 := r.ReadArrayStart()
if yyl3124 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3124, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3125Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3125Slc
var yyhl3125 bool = l >= 0
for yyj3125 := 0; ; yyj3125++ {
if yyhl3125 {
if yyj3125 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3125Slc = r.DecodeBytes(yys3125Slc, true, true)
yys3125 := string(yys3125Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3125 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3125)
} // end switch yys3125
} // end for yyj3125
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 yyj3127 int
var yyb3127 bool
var yyhl3127 bool = l >= 0
yyj3127++
if yyhl3127 {
yyb3127 = yyj3127 > l
} else {
yyb3127 = r.CheckBreak()
}
if yyb3127 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj3127++
if yyhl3127 {
yyb3127 = yyj3127 > l
} else {
yyb3127 = r.CheckBreak()
}
if yyb3127 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3127-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 {
yym3129 := z.EncBinary()
_ = yym3129
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3130 := !z.EncBinary()
yy2arr3130 := z.EncBasicHandle().StructToArray
var yyq3130 [3]bool
_, _, _ = yysep3130, yyq3130, yy2arr3130
const yyr3130 bool = false
yyq3130[0] = x.Kind != ""
yyq3130[1] = x.APIVersion != ""
yyq3130[2] = true
var yynn3130 int
if yyr3130 || yy2arr3130 {
r.EncodeArrayStart(3)
} else {
yynn3130 = 0
for _, b := range yyq3130 {
if b {
yynn3130++
}
}
r.EncodeMapStart(yynn3130)
yynn3130 = 0
}
if yyr3130 || yy2arr3130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3130[0] {
yym3132 := z.EncBinary()
_ = yym3132
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3130[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3133 := z.EncBinary()
_ = yym3133
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3130 || yy2arr3130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3130[1] {
yym3135 := z.EncBinary()
_ = yym3135
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3130[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3136 := z.EncBinary()
_ = yym3136
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3130 || yy2arr3130 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3130[2] {
yy3138 := &x.Reference
yy3138.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3130[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3139 := &x.Reference
yy3139.CodecEncodeSelf(e)
}
}
if yyr3130 || yy2arr3130 {
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
yym3140 := z.DecBinary()
_ = yym3140
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3141 := r.ContainerType()
if yyct3141 == codecSelferValueTypeMap1234 {
yyl3141 := r.ReadMapStart()
if yyl3141 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3141, d)
}
} else if yyct3141 == codecSelferValueTypeArray1234 {
yyl3141 := r.ReadArrayStart()
if yyl3141 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3141, 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 yys3142Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3142Slc
var yyhl3142 bool = l >= 0
for yyj3142 := 0; ; yyj3142++ {
if yyhl3142 {
if yyj3142 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3142Slc = r.DecodeBytes(yys3142Slc, true, true)
yys3142 := string(yys3142Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3142 {
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 {
yyv3145 := &x.Reference
yyv3145.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3142)
} // end switch yys3142
} // end for yyj3142
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 yyj3146 int
var yyb3146 bool
var yyhl3146 bool = l >= 0
yyj3146++
if yyhl3146 {
yyb3146 = yyj3146 > l
} else {
yyb3146 = r.CheckBreak()
}
if yyb3146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3146++
if yyhl3146 {
yyb3146 = yyj3146 > l
} else {
yyb3146 = r.CheckBreak()
}
if yyb3146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3146++
if yyhl3146 {
yyb3146 = yyj3146 > l
} else {
yyb3146 = r.CheckBreak()
}
if yyb3146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reference = ObjectReference{}
} else {
yyv3149 := &x.Reference
yyv3149.CodecDecodeSelf(d)
}
for {
yyj3146++
if yyhl3146 {
yyb3146 = yyj3146 > l
} else {
yyb3146 = r.CheckBreak()
}
if yyb3146 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3146-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EventSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3150 := z.EncBinary()
_ = yym3150
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3151 := !z.EncBinary()
yy2arr3151 := z.EncBasicHandle().StructToArray
var yyq3151 [2]bool
_, _, _ = yysep3151, yyq3151, yy2arr3151
const yyr3151 bool = false
yyq3151[0] = x.Component != ""
yyq3151[1] = x.Host != ""
var yynn3151 int
if yyr3151 || yy2arr3151 {
r.EncodeArrayStart(2)
} else {
yynn3151 = 0
for _, b := range yyq3151 {
if b {
yynn3151++
}
}
r.EncodeMapStart(yynn3151)
yynn3151 = 0
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[0] {
yym3153 := z.EncBinary()
_ = yym3153
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3151[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("component"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3154 := z.EncBinary()
_ = yym3154
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[1] {
yym3156 := z.EncBinary()
_ = yym3156
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3151[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3157 := z.EncBinary()
_ = yym3157
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr3151 || yy2arr3151 {
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
yym3158 := z.DecBinary()
_ = yym3158
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3159 := r.ContainerType()
if yyct3159 == codecSelferValueTypeMap1234 {
yyl3159 := r.ReadMapStart()
if yyl3159 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3159, d)
}
} else if yyct3159 == codecSelferValueTypeArray1234 {
yyl3159 := r.ReadArrayStart()
if yyl3159 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3159, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EventSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3160Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3160Slc
var yyhl3160 bool = l >= 0
for yyj3160 := 0; ; yyj3160++ {
if yyhl3160 {
if yyj3160 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3160Slc = r.DecodeBytes(yys3160Slc, true, true)
yys3160 := string(yys3160Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3160 {
case "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, yys3160)
} // end switch yys3160
} // end for yyj3160
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 yyj3163 int
var yyb3163 bool
var yyhl3163 bool = l >= 0
yyj3163++
if yyhl3163 {
yyb3163 = yyj3163 > l
} else {
yyb3163 = r.CheckBreak()
}
if yyb3163 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Component = ""
} else {
x.Component = string(r.DecodeString())
}
yyj3163++
if yyhl3163 {
yyb3163 = yyj3163 > l
} else {
yyb3163 = r.CheckBreak()
}
if yyb3163 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
for {
yyj3163++
if yyhl3163 {
yyb3163 = yyj3163 > l
} else {
yyb3163 = r.CheckBreak()
}
if yyb3163 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3163-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 {
yym3166 := z.EncBinary()
_ = yym3166
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3167 := !z.EncBinary()
yy2arr3167 := z.EncBasicHandle().StructToArray
var yyq3167 [11]bool
_, _, _ = yysep3167, yyq3167, yy2arr3167
const yyr3167 bool = false
yyq3167[0] = x.Kind != ""
yyq3167[1] = x.APIVersion != ""
yyq3167[2] = true
yyq3167[3] = true
yyq3167[4] = x.Reason != ""
yyq3167[5] = x.Message != ""
yyq3167[6] = true
yyq3167[7] = true
yyq3167[8] = true
yyq3167[9] = x.Count != 0
yyq3167[10] = x.Type != ""
var yynn3167 int
if yyr3167 || yy2arr3167 {
r.EncodeArrayStart(11)
} else {
yynn3167 = 0
for _, b := range yyq3167 {
if b {
yynn3167++
}
}
r.EncodeMapStart(yynn3167)
yynn3167 = 0
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[0] {
yym3169 := z.EncBinary()
_ = yym3169
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3167[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3170 := z.EncBinary()
_ = yym3170
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[1] {
yym3172 := z.EncBinary()
_ = yym3172
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3167[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3173 := z.EncBinary()
_ = yym3173
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[2] {
yy3175 := &x.ObjectMeta
yy3175.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3167[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3176 := &x.ObjectMeta
yy3176.CodecEncodeSelf(e)
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[3] {
yy3178 := &x.InvolvedObject
yy3178.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3167[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3179 := &x.InvolvedObject
yy3179.CodecEncodeSelf(e)
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[4] {
yym3181 := z.EncBinary()
_ = yym3181
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3167[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3182 := z.EncBinary()
_ = yym3182
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[5] {
yym3184 := z.EncBinary()
_ = yym3184
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3167[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3185 := z.EncBinary()
_ = yym3185
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[6] {
yy3187 := &x.Source
yy3187.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3167[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("source"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3188 := &x.Source
yy3188.CodecEncodeSelf(e)
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[7] {
yy3190 := &x.FirstTimestamp
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 yyq3167[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3192 := &x.FirstTimestamp
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 yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[8] {
yy3195 := &x.LastTimestamp
yym3196 := z.EncBinary()
_ = yym3196
if false {
} else if z.HasExtensions() && z.EncExt(yy3195) {
} else if yym3196 {
z.EncBinaryMarshal(yy3195)
} else if !yym3196 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3195)
} else {
z.EncFallback(yy3195)
}
} else {
r.EncodeNil()
}
} else {
if yyq3167[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3197 := &x.LastTimestamp
yym3198 := z.EncBinary()
_ = yym3198
if false {
} else if z.HasExtensions() && z.EncExt(yy3197) {
} else if yym3198 {
z.EncBinaryMarshal(yy3197)
} else if !yym3198 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3197)
} else {
z.EncFallback(yy3197)
}
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[9] {
yym3200 := z.EncBinary()
_ = yym3200
if false {
} else {
r.EncodeInt(int64(x.Count))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3167[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("count"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3201 := z.EncBinary()
_ = yym3201
if false {
} else {
r.EncodeInt(int64(x.Count))
}
}
}
if yyr3167 || yy2arr3167 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3167[10] {
yym3203 := z.EncBinary()
_ = yym3203
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3167[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3204 := z.EncBinary()
_ = yym3204
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3167 || yy2arr3167 {
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
yym3205 := z.DecBinary()
_ = yym3205
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3206 := r.ContainerType()
if yyct3206 == codecSelferValueTypeMap1234 {
yyl3206 := r.ReadMapStart()
if yyl3206 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3206, d)
}
} else if yyct3206 == codecSelferValueTypeArray1234 {
yyl3206 := r.ReadArrayStart()
if yyl3206 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3206, 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 yys3207Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3207Slc
var yyhl3207 bool = l >= 0
for yyj3207 := 0; ; yyj3207++ {
if yyhl3207 {
if yyj3207 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3207Slc = r.DecodeBytes(yys3207Slc, true, true)
yys3207 := string(yys3207Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3207 {
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 {
yyv3210 := &x.ObjectMeta
yyv3210.CodecDecodeSelf(d)
}
case "involvedObject":
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3211 := &x.InvolvedObject
yyv3211.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 {
yyv3214 := &x.Source
yyv3214.CodecDecodeSelf(d)
}
case "firstTimestamp":
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3215 := &x.FirstTimestamp
yym3216 := z.DecBinary()
_ = yym3216
if false {
} else if z.HasExtensions() && z.DecExt(yyv3215) {
} else if yym3216 {
z.DecBinaryUnmarshal(yyv3215)
} else if !yym3216 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3215)
} else {
z.DecFallback(yyv3215, false)
}
}
case "lastTimestamp":
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3217 := &x.LastTimestamp
yym3218 := z.DecBinary()
_ = yym3218
if false {
} else if z.HasExtensions() && z.DecExt(yyv3217) {
} else if yym3218 {
z.DecBinaryUnmarshal(yyv3217)
} else if !yym3218 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3217)
} else {
z.DecFallback(yyv3217, false)
}
}
case "count":
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3207)
} // end switch yys3207
} // end for yyj3207
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 yyj3221 int
var yyb3221 bool
var yyhl3221 bool = l >= 0
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3224 := &x.ObjectMeta
yyv3224.CodecDecodeSelf(d)
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3225 := &x.InvolvedObject
yyv3225.CodecDecodeSelf(d)
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Source = EventSource{}
} else {
yyv3228 := &x.Source
yyv3228.CodecDecodeSelf(d)
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3229 := &x.FirstTimestamp
yym3230 := z.DecBinary()
_ = yym3230
if false {
} else if z.HasExtensions() && z.DecExt(yyv3229) {
} else if yym3230 {
z.DecBinaryUnmarshal(yyv3229)
} else if !yym3230 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3229)
} else {
z.DecFallback(yyv3229, false)
}
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3231 := &x.LastTimestamp
yym3232 := z.DecBinary()
_ = yym3232
if false {
} else if z.HasExtensions() && z.DecExt(yyv3231) {
} else if yym3232 {
z.DecBinaryUnmarshal(yyv3231)
} else if !yym3232 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3231)
} else {
z.DecFallback(yyv3231, false)
}
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
for {
yyj3221++
if yyhl3221 {
yyb3221 = yyj3221 > l
} else {
yyb3221 = r.CheckBreak()
}
if yyb3221 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3221-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 {
yym3235 := z.EncBinary()
_ = yym3235
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3236 := !z.EncBinary()
yy2arr3236 := z.EncBasicHandle().StructToArray
var yyq3236 [4]bool
_, _, _ = yysep3236, yyq3236, yy2arr3236
const yyr3236 bool = false
yyq3236[0] = x.Kind != ""
yyq3236[1] = x.APIVersion != ""
yyq3236[2] = true
var yynn3236 int
if yyr3236 || yy2arr3236 {
r.EncodeArrayStart(4)
} else {
yynn3236 = 1
for _, b := range yyq3236 {
if b {
yynn3236++
}
}
r.EncodeMapStart(yynn3236)
yynn3236 = 0
}
if yyr3236 || yy2arr3236 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3236[0] {
yym3238 := z.EncBinary()
_ = yym3238
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3236[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3239 := z.EncBinary()
_ = yym3239
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3236 || yy2arr3236 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3236[1] {
yym3241 := z.EncBinary()
_ = yym3241
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3236[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3242 := z.EncBinary()
_ = yym3242
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3236 || yy2arr3236 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3236[2] {
yy3244 := &x.ListMeta
yym3245 := z.EncBinary()
_ = yym3245
if false {
} else if z.HasExtensions() && z.EncExt(yy3244) {
} else {
z.EncFallback(yy3244)
}
} else {
r.EncodeNil()
}
} else {
if yyq3236[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3246 := &x.ListMeta
yym3247 := z.EncBinary()
_ = yym3247
if false {
} else if z.HasExtensions() && z.EncExt(yy3246) {
} else {
z.EncFallback(yy3246)
}
}
}
if yyr3236 || yy2arr3236 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3249 := z.EncBinary()
_ = yym3249
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 {
yym3250 := z.EncBinary()
_ = yym3250
if false {
} else {
h.encSliceEvent(([]Event)(x.Items), e)
}
}
}
if yyr3236 || yy2arr3236 {
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
yym3251 := z.DecBinary()
_ = yym3251
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3252 := r.ContainerType()
if yyct3252 == codecSelferValueTypeMap1234 {
yyl3252 := r.ReadMapStart()
if yyl3252 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3252, d)
}
} else if yyct3252 == codecSelferValueTypeArray1234 {
yyl3252 := r.ReadArrayStart()
if yyl3252 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3252, 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 yys3253Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3253Slc
var yyhl3253 bool = l >= 0
for yyj3253 := 0; ; yyj3253++ {
if yyhl3253 {
if yyj3253 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3253Slc = r.DecodeBytes(yys3253Slc, true, true)
yys3253 := string(yys3253Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3253 {
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 {
yyv3256 := &x.ListMeta
yym3257 := z.DecBinary()
_ = yym3257
if false {
} else if z.HasExtensions() && z.DecExt(yyv3256) {
} else {
z.DecFallback(yyv3256, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3258 := &x.Items
yym3259 := z.DecBinary()
_ = yym3259
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3258), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3253)
} // end switch yys3253
} // end for yyj3253
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 yyj3260 int
var yyb3260 bool
var yyhl3260 bool = l >= 0
yyj3260++
if yyhl3260 {
yyb3260 = yyj3260 > l
} else {
yyb3260 = r.CheckBreak()
}
if yyb3260 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3260++
if yyhl3260 {
yyb3260 = yyj3260 > l
} else {
yyb3260 = r.CheckBreak()
}
if yyb3260 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3260++
if yyhl3260 {
yyb3260 = yyj3260 > l
} else {
yyb3260 = r.CheckBreak()
}
if yyb3260 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3263 := &x.ListMeta
yym3264 := z.DecBinary()
_ = yym3264
if false {
} else if z.HasExtensions() && z.DecExt(yyv3263) {
} else {
z.DecFallback(yyv3263, false)
}
}
yyj3260++
if yyhl3260 {
yyb3260 = yyj3260 > l
} else {
yyb3260 = r.CheckBreak()
}
if yyb3260 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3265 := &x.Items
yym3266 := z.DecBinary()
_ = yym3266
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3265), d)
}
}
for {
yyj3260++
if yyhl3260 {
yyb3260 = yyj3260 > l
} else {
yyb3260 = r.CheckBreak()
}
if yyb3260 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3260-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 {
yym3267 := z.EncBinary()
_ = yym3267
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3268 := !z.EncBinary()
yy2arr3268 := z.EncBasicHandle().StructToArray
var yyq3268 [4]bool
_, _, _ = yysep3268, yyq3268, yy2arr3268
const yyr3268 bool = false
yyq3268[0] = x.Kind != ""
yyq3268[1] = x.APIVersion != ""
yyq3268[2] = true
var yynn3268 int
if yyr3268 || yy2arr3268 {
r.EncodeArrayStart(4)
} else {
yynn3268 = 1
for _, b := range yyq3268 {
if b {
yynn3268++
}
}
r.EncodeMapStart(yynn3268)
yynn3268 = 0
}
if yyr3268 || yy2arr3268 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3268[0] {
yym3270 := z.EncBinary()
_ = yym3270
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3268[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3271 := z.EncBinary()
_ = yym3271
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3268 || yy2arr3268 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3268[1] {
yym3273 := z.EncBinary()
_ = yym3273
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3268[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3274 := z.EncBinary()
_ = yym3274
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3268 || yy2arr3268 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3268[2] {
yy3276 := &x.ListMeta
yym3277 := z.EncBinary()
_ = yym3277
if false {
} else if z.HasExtensions() && z.EncExt(yy3276) {
} else {
z.EncFallback(yy3276)
}
} else {
r.EncodeNil()
}
} else {
if yyq3268[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3278 := &x.ListMeta
yym3279 := z.EncBinary()
_ = yym3279
if false {
} else if z.HasExtensions() && z.EncExt(yy3278) {
} else {
z.EncFallback(yy3278)
}
}
}
if yyr3268 || yy2arr3268 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3281 := z.EncBinary()
_ = yym3281
if false {
} else {
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3282 := z.EncBinary()
_ = yym3282
if false {
} else {
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
}
}
}
if yyr3268 || yy2arr3268 {
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
yym3283 := z.DecBinary()
_ = yym3283
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3284 := r.ContainerType()
if yyct3284 == codecSelferValueTypeMap1234 {
yyl3284 := r.ReadMapStart()
if yyl3284 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3284, d)
}
} else if yyct3284 == codecSelferValueTypeArray1234 {
yyl3284 := r.ReadArrayStart()
if yyl3284 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3284, 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 yys3285Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3285Slc
var yyhl3285 bool = l >= 0
for yyj3285 := 0; ; yyj3285++ {
if yyhl3285 {
if yyj3285 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3285Slc = r.DecodeBytes(yys3285Slc, true, true)
yys3285 := string(yys3285Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3285 {
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 {
yyv3288 := &x.ListMeta
yym3289 := z.DecBinary()
_ = yym3289
if false {
} else if z.HasExtensions() && z.DecExt(yyv3288) {
} else {
z.DecFallback(yyv3288, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3290 := &x.Items
yym3291 := z.DecBinary()
_ = yym3291
if false {
} else {
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3290), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3285)
} // end switch yys3285
} // end for yyj3285
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 yyj3292 int
var yyb3292 bool
var yyhl3292 bool = l >= 0
yyj3292++
if yyhl3292 {
yyb3292 = yyj3292 > l
} else {
yyb3292 = r.CheckBreak()
}
if yyb3292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3292++
if yyhl3292 {
yyb3292 = yyj3292 > l
} else {
yyb3292 = r.CheckBreak()
}
if yyb3292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3292++
if yyhl3292 {
yyb3292 = yyj3292 > l
} else {
yyb3292 = r.CheckBreak()
}
if yyb3292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3295 := &x.ListMeta
yym3296 := z.DecBinary()
_ = yym3296
if false {
} else if z.HasExtensions() && z.DecExt(yyv3295) {
} else {
z.DecFallback(yyv3295, false)
}
}
yyj3292++
if yyhl3292 {
yyb3292 = yyj3292 > l
} else {
yyb3292 = r.CheckBreak()
}
if yyb3292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3297 := &x.Items
yym3298 := z.DecBinary()
_ = yym3298
if false {
} else {
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3297), d)
}
}
for {
yyj3292++
if yyhl3292 {
yyb3292 = yyj3292 > l
} else {
yyb3292 = r.CheckBreak()
}
if yyb3292 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3292-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3299 := z.EncBinary()
_ = yym3299
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
yym3300 := z.DecBinary()
_ = yym3300
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 {
yym3301 := z.EncBinary()
_ = yym3301
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3302 := !z.EncBinary()
yy2arr3302 := z.EncBasicHandle().StructToArray
var yyq3302 [6]bool
_, _, _ = yysep3302, yyq3302, yy2arr3302
const yyr3302 bool = false
yyq3302[0] = x.Type != ""
yyq3302[1] = len(x.Max) != 0
yyq3302[2] = len(x.Min) != 0
yyq3302[3] = len(x.Default) != 0
yyq3302[4] = len(x.DefaultRequest) != 0
yyq3302[5] = len(x.MaxLimitRequestRatio) != 0
var yynn3302 int
if yyr3302 || yy2arr3302 {
r.EncodeArrayStart(6)
} else {
yynn3302 = 0
for _, b := range yyq3302 {
if b {
yynn3302++
}
}
r.EncodeMapStart(yynn3302)
yynn3302 = 0
}
if yyr3302 || yy2arr3302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3302[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3302[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3302 || yy2arr3302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3302[1] {
if x.Max == nil {
r.EncodeNil()
} else {
x.Max.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3302[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 yyr3302 || yy2arr3302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3302[2] {
if x.Min == nil {
r.EncodeNil()
} else {
x.Min.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3302[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 yyr3302 || yy2arr3302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3302[3] {
if x.Default == nil {
r.EncodeNil()
} else {
x.Default.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3302[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 yyr3302 || yy2arr3302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3302[4] {
if x.DefaultRequest == nil {
r.EncodeNil()
} else {
x.DefaultRequest.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3302[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 yyr3302 || yy2arr3302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3302[5] {
if x.MaxLimitRequestRatio == nil {
r.EncodeNil()
} else {
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3302[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 yyr3302 || yy2arr3302 {
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
yym3309 := z.DecBinary()
_ = yym3309
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3310 := r.ContainerType()
if yyct3310 == codecSelferValueTypeMap1234 {
yyl3310 := r.ReadMapStart()
if yyl3310 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3310, d)
}
} else if yyct3310 == codecSelferValueTypeArray1234 {
yyl3310 := r.ReadArrayStart()
if yyl3310 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3310, 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 yys3311Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3311Slc
var yyhl3311 bool = l >= 0
for yyj3311 := 0; ; yyj3311++ {
if yyhl3311 {
if yyj3311 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3311Slc = r.DecodeBytes(yys3311Slc, true, true)
yys3311 := string(yys3311Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3311 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
case "max":
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3313 := &x.Max
yyv3313.CodecDecodeSelf(d)
}
case "min":
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3314 := &x.Min
yyv3314.CodecDecodeSelf(d)
}
case "default":
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3315 := &x.Default
yyv3315.CodecDecodeSelf(d)
}
case "defaultRequest":
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3316 := &x.DefaultRequest
yyv3316.CodecDecodeSelf(d)
}
case "maxLimitRequestRatio":
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3317 := &x.MaxLimitRequestRatio
yyv3317.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3311)
} // end switch yys3311
} // end for yyj3311
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 yyj3318 int
var yyb3318 bool
var yyhl3318 bool = l >= 0
yyj3318++
if yyhl3318 {
yyb3318 = yyj3318 > l
} else {
yyb3318 = r.CheckBreak()
}
if yyb3318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
yyj3318++
if yyhl3318 {
yyb3318 = yyj3318 > l
} else {
yyb3318 = r.CheckBreak()
}
if yyb3318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3320 := &x.Max
yyv3320.CodecDecodeSelf(d)
}
yyj3318++
if yyhl3318 {
yyb3318 = yyj3318 > l
} else {
yyb3318 = r.CheckBreak()
}
if yyb3318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3321 := &x.Min
yyv3321.CodecDecodeSelf(d)
}
yyj3318++
if yyhl3318 {
yyb3318 = yyj3318 > l
} else {
yyb3318 = r.CheckBreak()
}
if yyb3318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3322 := &x.Default
yyv3322.CodecDecodeSelf(d)
}
yyj3318++
if yyhl3318 {
yyb3318 = yyj3318 > l
} else {
yyb3318 = r.CheckBreak()
}
if yyb3318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3323 := &x.DefaultRequest
yyv3323.CodecDecodeSelf(d)
}
yyj3318++
if yyhl3318 {
yyb3318 = yyj3318 > l
} else {
yyb3318 = r.CheckBreak()
}
if yyb3318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3324 := &x.MaxLimitRequestRatio
yyv3324.CodecDecodeSelf(d)
}
for {
yyj3318++
if yyhl3318 {
yyb3318 = yyj3318 > l
} else {
yyb3318 = r.CheckBreak()
}
if yyb3318 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3318-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 {
yym3325 := z.EncBinary()
_ = yym3325
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3326 := !z.EncBinary()
yy2arr3326 := z.EncBasicHandle().StructToArray
var yyq3326 [1]bool
_, _, _ = yysep3326, yyq3326, yy2arr3326
const yyr3326 bool = false
var yynn3326 int
if yyr3326 || yy2arr3326 {
r.EncodeArrayStart(1)
} else {
yynn3326 = 1
for _, b := range yyq3326 {
if b {
yynn3326++
}
}
r.EncodeMapStart(yynn3326)
yynn3326 = 0
}
if yyr3326 || yy2arr3326 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Limits == nil {
r.EncodeNil()
} else {
yym3328 := z.EncBinary()
_ = yym3328
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 {
yym3329 := z.EncBinary()
_ = yym3329
if false {
} else {
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
}
}
}
if yyr3326 || yy2arr3326 {
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
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 *LimitRangeSpec) 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 "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3333 := &x.Limits
yym3334 := z.DecBinary()
_ = yym3334
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3333), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3332)
} // end switch yys3332
} // end for yyj3332
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 yyj3335 int
var yyb3335 bool
var yyhl3335 bool = l >= 0
yyj3335++
if yyhl3335 {
yyb3335 = yyj3335 > l
} else {
yyb3335 = r.CheckBreak()
}
if yyb3335 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3336 := &x.Limits
yym3337 := z.DecBinary()
_ = yym3337
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3336), d)
}
}
for {
yyj3335++
if yyhl3335 {
yyb3335 = yyj3335 > l
} else {
yyb3335 = r.CheckBreak()
}
if yyb3335 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3335-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 {
yym3338 := z.EncBinary()
_ = yym3338
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3339 := !z.EncBinary()
yy2arr3339 := z.EncBasicHandle().StructToArray
var yyq3339 [4]bool
_, _, _ = yysep3339, yyq3339, yy2arr3339
const yyr3339 bool = false
yyq3339[0] = x.Kind != ""
yyq3339[1] = x.APIVersion != ""
yyq3339[2] = true
yyq3339[3] = true
var yynn3339 int
if yyr3339 || yy2arr3339 {
r.EncodeArrayStart(4)
} 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_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *LimitRange) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3352 := z.DecBinary()
_ = yym3352
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3353 := r.ContainerType()
if yyct3353 == codecSelferValueTypeMap1234 {
yyl3353 := r.ReadMapStart()
if yyl3353 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3353, d)
}
} else if yyct3353 == codecSelferValueTypeArray1234 {
yyl3353 := r.ReadArrayStart()
if yyl3353 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3353, 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 yys3354Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3354Slc
var yyhl3354 bool = l >= 0
for yyj3354 := 0; ; yyj3354++ {
if yyhl3354 {
if yyj3354 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3354Slc = r.DecodeBytes(yys3354Slc, true, true)
yys3354 := string(yys3354Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3354 {
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 {
yyv3357 := &x.ObjectMeta
yyv3357.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3358 := &x.Spec
yyv3358.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3354)
} // end switch yys3354
} // end for yyj3354
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 yyj3359 int
var yyb3359 bool
var yyhl3359 bool = l >= 0
yyj3359++
if yyhl3359 {
yyb3359 = yyj3359 > l
} else {
yyb3359 = r.CheckBreak()
}
if yyb3359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3359++
if yyhl3359 {
yyb3359 = yyj3359 > l
} else {
yyb3359 = r.CheckBreak()
}
if yyb3359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3359++
if yyhl3359 {
yyb3359 = yyj3359 > l
} else {
yyb3359 = r.CheckBreak()
}
if yyb3359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3362 := &x.ObjectMeta
yyv3362.CodecDecodeSelf(d)
}
yyj3359++
if yyhl3359 {
yyb3359 = yyj3359 > l
} else {
yyb3359 = r.CheckBreak()
}
if yyb3359 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3363 := &x.Spec
yyv3363.CodecDecodeSelf(d)
}
for {
yyj3359++
if yyhl3359 {
yyb3359 = yyj3359 > l
} else {
yyb3359 = r.CheckBreak()
}
if yyb3359 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3359-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 {
yym3364 := z.EncBinary()
_ = yym3364
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3365 := !z.EncBinary()
yy2arr3365 := z.EncBasicHandle().StructToArray
var yyq3365 [4]bool
_, _, _ = yysep3365, yyq3365, yy2arr3365
const yyr3365 bool = false
yyq3365[0] = x.Kind != ""
yyq3365[1] = x.APIVersion != ""
yyq3365[2] = true
var yynn3365 int
if yyr3365 || yy2arr3365 {
r.EncodeArrayStart(4)
} else {
yynn3365 = 1
for _, b := range yyq3365 {
if b {
yynn3365++
}
}
r.EncodeMapStart(yynn3365)
yynn3365 = 0
}
if yyr3365 || yy2arr3365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3365[0] {
yym3367 := z.EncBinary()
_ = yym3367
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3365[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3368 := z.EncBinary()
_ = yym3368
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3365 || yy2arr3365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3365[1] {
yym3370 := z.EncBinary()
_ = yym3370
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3365[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3371 := z.EncBinary()
_ = yym3371
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3365 || yy2arr3365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3365[2] {
yy3373 := &x.ListMeta
yym3374 := z.EncBinary()
_ = yym3374
if false {
} else if z.HasExtensions() && z.EncExt(yy3373) {
} else {
z.EncFallback(yy3373)
}
} else {
r.EncodeNil()
}
} else {
if yyq3365[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3375 := &x.ListMeta
yym3376 := z.EncBinary()
_ = yym3376
if false {
} else if z.HasExtensions() && z.EncExt(yy3375) {
} else {
z.EncFallback(yy3375)
}
}
}
if yyr3365 || yy2arr3365 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3378 := z.EncBinary()
_ = yym3378
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 {
yym3379 := z.EncBinary()
_ = yym3379
if false {
} else {
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
}
}
}
if yyr3365 || yy2arr3365 {
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
yym3380 := z.DecBinary()
_ = yym3380
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3381 := r.ContainerType()
if yyct3381 == codecSelferValueTypeMap1234 {
yyl3381 := r.ReadMapStart()
if yyl3381 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3381, d)
}
} else if yyct3381 == codecSelferValueTypeArray1234 {
yyl3381 := r.ReadArrayStart()
if yyl3381 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3381, 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 yys3382Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3382Slc
var yyhl3382 bool = l >= 0
for yyj3382 := 0; ; yyj3382++ {
if yyhl3382 {
if yyj3382 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3382Slc = r.DecodeBytes(yys3382Slc, true, true)
yys3382 := string(yys3382Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3382 {
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 {
yyv3385 := &x.ListMeta
yym3386 := z.DecBinary()
_ = yym3386
if false {
} else if z.HasExtensions() && z.DecExt(yyv3385) {
} else {
z.DecFallback(yyv3385, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3387 := &x.Items
yym3388 := z.DecBinary()
_ = yym3388
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv3387), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3382)
} // end switch yys3382
} // end for yyj3382
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 yyj3389 int
var yyb3389 bool
var yyhl3389 bool = l >= 0
yyj3389++
if yyhl3389 {
yyb3389 = yyj3389 > l
} else {
yyb3389 = r.CheckBreak()
}
if yyb3389 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3389++
if yyhl3389 {
yyb3389 = yyj3389 > l
} else {
yyb3389 = r.CheckBreak()
}
if yyb3389 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3389++
if yyhl3389 {
yyb3389 = yyj3389 > l
} else {
yyb3389 = r.CheckBreak()
}
if yyb3389 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3392 := &x.ListMeta
yym3393 := z.DecBinary()
_ = yym3393
if false {
} else if z.HasExtensions() && z.DecExt(yyv3392) {
} else {
z.DecFallback(yyv3392, false)
}
}
yyj3389++
if yyhl3389 {
yyb3389 = yyj3389 > l
} else {
yyb3389 = r.CheckBreak()
}
if yyb3389 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3394 := &x.Items
yym3395 := z.DecBinary()
_ = yym3395
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv3394), d)
}
}
for {
yyj3389++
if yyhl3389 {
yyb3389 = yyj3389 > l
} else {
yyb3389 = r.CheckBreak()
}
if yyb3389 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3389-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3396 := z.EncBinary()
_ = yym3396
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3397 := !z.EncBinary()
yy2arr3397 := z.EncBasicHandle().StructToArray
var yyq3397 [1]bool
_, _, _ = yysep3397, yyq3397, yy2arr3397
const yyr3397 bool = false
yyq3397[0] = len(x.Hard) != 0
var yynn3397 int
if yyr3397 || yy2arr3397 {
r.EncodeArrayStart(1)
} else {
yynn3397 = 0
for _, b := range yyq3397 {
if b {
yynn3397++
}
}
r.EncodeMapStart(yynn3397)
yynn3397 = 0
}
if yyr3397 || yy2arr3397 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3397[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3397[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 yyr3397 || yy2arr3397 {
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
yym3399 := z.DecBinary()
_ = yym3399
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3400 := r.ContainerType()
if yyct3400 == codecSelferValueTypeMap1234 {
yyl3400 := r.ReadMapStart()
if yyl3400 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3400, d)
}
} else if yyct3400 == codecSelferValueTypeArray1234 {
yyl3400 := r.ReadArrayStart()
if yyl3400 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3400, 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 yys3401Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3401Slc
var yyhl3401 bool = l >= 0
for yyj3401 := 0; ; yyj3401++ {
if yyhl3401 {
if yyj3401 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3401Slc = r.DecodeBytes(yys3401Slc, true, true)
yys3401 := string(yys3401Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3401 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3402 := &x.Hard
yyv3402.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3401)
} // end switch yys3401
} // end for yyj3401
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 yyj3403 int
var yyb3403 bool
var yyhl3403 bool = l >= 0
yyj3403++
if yyhl3403 {
yyb3403 = yyj3403 > l
} else {
yyb3403 = r.CheckBreak()
}
if yyb3403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3404 := &x.Hard
yyv3404.CodecDecodeSelf(d)
}
for {
yyj3403++
if yyhl3403 {
yyb3403 = yyj3403 > l
} else {
yyb3403 = r.CheckBreak()
}
if yyb3403 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3403-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 {
yym3405 := z.EncBinary()
_ = yym3405
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3406 := !z.EncBinary()
yy2arr3406 := z.EncBasicHandle().StructToArray
var yyq3406 [2]bool
_, _, _ = yysep3406, yyq3406, yy2arr3406
const yyr3406 bool = false
yyq3406[0] = len(x.Hard) != 0
yyq3406[1] = len(x.Used) != 0
var yynn3406 int
if yyr3406 || yy2arr3406 {
r.EncodeArrayStart(2)
} else {
yynn3406 = 0
for _, b := range yyq3406 {
if b {
yynn3406++
}
}
r.EncodeMapStart(yynn3406)
yynn3406 = 0
}
if yyr3406 || yy2arr3406 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3406[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3406[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 yyr3406 || yy2arr3406 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3406[1] {
if x.Used == nil {
r.EncodeNil()
} else {
x.Used.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3406[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 yyr3406 || yy2arr3406 {
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
yym3409 := z.DecBinary()
_ = yym3409
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3410 := r.ContainerType()
if yyct3410 == codecSelferValueTypeMap1234 {
yyl3410 := r.ReadMapStart()
if yyl3410 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3410, d)
}
} else if yyct3410 == codecSelferValueTypeArray1234 {
yyl3410 := r.ReadArrayStart()
if yyl3410 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3410, 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 yys3411Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3411Slc
var yyhl3411 bool = l >= 0
for yyj3411 := 0; ; yyj3411++ {
if yyhl3411 {
if yyj3411 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3411Slc = r.DecodeBytes(yys3411Slc, true, true)
yys3411 := string(yys3411Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3411 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3412 := &x.Hard
yyv3412.CodecDecodeSelf(d)
}
case "used":
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv3413 := &x.Used
yyv3413.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3411)
} // end switch yys3411
} // end for yyj3411
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 yyj3414 int
var yyb3414 bool
var yyhl3414 bool = l >= 0
yyj3414++
if yyhl3414 {
yyb3414 = yyj3414 > l
} else {
yyb3414 = r.CheckBreak()
}
if yyb3414 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3415 := &x.Hard
yyv3415.CodecDecodeSelf(d)
}
yyj3414++
if yyhl3414 {
yyb3414 = yyj3414 > l
} else {
yyb3414 = r.CheckBreak()
}
if yyb3414 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv3416 := &x.Used
yyv3416.CodecDecodeSelf(d)
}
for {
yyj3414++
if yyhl3414 {
yyb3414 = yyj3414 > l
} else {
yyb3414 = r.CheckBreak()
}
if yyb3414 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3414-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 {
yym3417 := z.EncBinary()
_ = yym3417
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3418 := !z.EncBinary()
yy2arr3418 := z.EncBasicHandle().StructToArray
var yyq3418 [5]bool
_, _, _ = yysep3418, yyq3418, yy2arr3418
const yyr3418 bool = false
yyq3418[0] = x.Kind != ""
yyq3418[1] = x.APIVersion != ""
yyq3418[2] = true
yyq3418[3] = true
yyq3418[4] = true
var yynn3418 int
if yyr3418 || yy2arr3418 {
r.EncodeArrayStart(5)
} else {
yynn3418 = 0
for _, b := range yyq3418 {
if b {
yynn3418++
}
}
r.EncodeMapStart(yynn3418)
yynn3418 = 0
}
if yyr3418 || yy2arr3418 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3418[0] {
yym3420 := z.EncBinary()
_ = yym3420
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3418[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3421 := z.EncBinary()
_ = yym3421
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3418 || yy2arr3418 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3418[1] {
yym3423 := z.EncBinary()
_ = yym3423
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3418[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3424 := z.EncBinary()
_ = yym3424
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3418 || yy2arr3418 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3418[2] {
yy3426 := &x.ObjectMeta
yy3426.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3418[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3427 := &x.ObjectMeta
yy3427.CodecEncodeSelf(e)
}
}
if yyr3418 || yy2arr3418 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3418[3] {
yy3429 := &x.Spec
yy3429.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3418[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3430 := &x.Spec
yy3430.CodecEncodeSelf(e)
}
}
if yyr3418 || yy2arr3418 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3418[4] {
yy3432 := &x.Status
yy3432.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3418[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3433 := &x.Status
yy3433.CodecEncodeSelf(e)
}
}
if yyr3418 || yy2arr3418 {
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
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 *ResourceQuota) 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 "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 {
yyv3439 := &x.ObjectMeta
yyv3439.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv3440 := &x.Spec
yyv3440.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv3441 := &x.Status
yyv3441.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3436)
} // end switch yys3436
} // end for yyj3436
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 yyj3442 int
var yyb3442 bool
var yyhl3442 bool = l >= 0
yyj3442++
if yyhl3442 {
yyb3442 = yyj3442 > l
} else {
yyb3442 = r.CheckBreak()
}
if yyb3442 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3442++
if yyhl3442 {
yyb3442 = yyj3442 > l
} else {
yyb3442 = r.CheckBreak()
}
if yyb3442 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3442++
if yyhl3442 {
yyb3442 = yyj3442 > l
} else {
yyb3442 = r.CheckBreak()
}
if yyb3442 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3445 := &x.ObjectMeta
yyv3445.CodecDecodeSelf(d)
}
yyj3442++
if yyhl3442 {
yyb3442 = yyj3442 > l
} else {
yyb3442 = r.CheckBreak()
}
if yyb3442 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv3446 := &x.Spec
yyv3446.CodecDecodeSelf(d)
}
yyj3442++
if yyhl3442 {
yyb3442 = yyj3442 > l
} else {
yyb3442 = r.CheckBreak()
}
if yyb3442 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv3447 := &x.Status
yyv3447.CodecDecodeSelf(d)
}
for {
yyj3442++
if yyhl3442 {
yyb3442 = yyj3442 > l
} else {
yyb3442 = r.CheckBreak()
}
if yyb3442 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3442-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 {
yym3448 := z.EncBinary()
_ = yym3448
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3449 := !z.EncBinary()
yy2arr3449 := z.EncBasicHandle().StructToArray
var yyq3449 [4]bool
_, _, _ = yysep3449, yyq3449, yy2arr3449
const yyr3449 bool = false
yyq3449[0] = x.Kind != ""
yyq3449[1] = x.APIVersion != ""
yyq3449[2] = true
var yynn3449 int
if yyr3449 || yy2arr3449 {
r.EncodeArrayStart(4)
} else {
yynn3449 = 1
for _, b := range yyq3449 {
if b {
yynn3449++
}
}
r.EncodeMapStart(yynn3449)
yynn3449 = 0
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3449[0] {
yym3451 := z.EncBinary()
_ = yym3451
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3449[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3452 := z.EncBinary()
_ = yym3452
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3449[1] {
yym3454 := z.EncBinary()
_ = yym3454
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3449[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3455 := z.EncBinary()
_ = yym3455
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3449[2] {
yy3457 := &x.ListMeta
yym3458 := z.EncBinary()
_ = yym3458
if false {
} else if z.HasExtensions() && z.EncExt(yy3457) {
} else {
z.EncFallback(yy3457)
}
} else {
r.EncodeNil()
}
} else {
if yyq3449[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3459 := &x.ListMeta
yym3460 := z.EncBinary()
_ = yym3460
if false {
} else if z.HasExtensions() && z.EncExt(yy3459) {
} else {
z.EncFallback(yy3459)
}
}
}
if yyr3449 || yy2arr3449 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3462 := z.EncBinary()
_ = yym3462
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 {
yym3463 := z.EncBinary()
_ = yym3463
if false {
} else {
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
}
}
}
if yyr3449 || yy2arr3449 {
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
yym3464 := z.DecBinary()
_ = yym3464
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3465 := r.ContainerType()
if yyct3465 == codecSelferValueTypeMap1234 {
yyl3465 := r.ReadMapStart()
if yyl3465 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3465, d)
}
} else if yyct3465 == codecSelferValueTypeArray1234 {
yyl3465 := r.ReadArrayStart()
if yyl3465 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3465, 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 yys3466Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3466Slc
var yyhl3466 bool = l >= 0
for yyj3466 := 0; ; yyj3466++ {
if yyhl3466 {
if yyj3466 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3466Slc = r.DecodeBytes(yys3466Slc, true, true)
yys3466 := string(yys3466Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3466 {
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 {
yyv3469 := &x.ListMeta
yym3470 := z.DecBinary()
_ = yym3470
if false {
} else if z.HasExtensions() && z.DecExt(yyv3469) {
} else {
z.DecFallback(yyv3469, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3471 := &x.Items
yym3472 := z.DecBinary()
_ = yym3472
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3471), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3466)
} // end switch yys3466
} // end for yyj3466
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 yyj3473 int
var yyb3473 bool
var yyhl3473 bool = l >= 0
yyj3473++
if yyhl3473 {
yyb3473 = yyj3473 > l
} else {
yyb3473 = r.CheckBreak()
}
if yyb3473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3473++
if yyhl3473 {
yyb3473 = yyj3473 > l
} else {
yyb3473 = r.CheckBreak()
}
if yyb3473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3473++
if yyhl3473 {
yyb3473 = yyj3473 > l
} else {
yyb3473 = r.CheckBreak()
}
if yyb3473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3476 := &x.ListMeta
yym3477 := z.DecBinary()
_ = yym3477
if false {
} else if z.HasExtensions() && z.DecExt(yyv3476) {
} else {
z.DecFallback(yyv3476, false)
}
}
yyj3473++
if yyhl3473 {
yyb3473 = yyj3473 > l
} else {
yyb3473 = r.CheckBreak()
}
if yyb3473 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3478 := &x.Items
yym3479 := z.DecBinary()
_ = yym3479
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3478), d)
}
}
for {
yyj3473++
if yyhl3473 {
yyb3473 = yyj3473 > l
} else {
yyb3473 = r.CheckBreak()
}
if yyb3473 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3473-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 {
yym3480 := z.EncBinary()
_ = yym3480
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3481 := !z.EncBinary()
yy2arr3481 := z.EncBasicHandle().StructToArray
var yyq3481 [5]bool
_, _, _ = yysep3481, yyq3481, yy2arr3481
const yyr3481 bool = false
yyq3481[0] = x.Kind != ""
yyq3481[1] = x.APIVersion != ""
yyq3481[2] = true
yyq3481[3] = len(x.Data) != 0
yyq3481[4] = x.Type != ""
var yynn3481 int
if yyr3481 || yy2arr3481 {
r.EncodeArrayStart(5)
} else {
yynn3481 = 0
for _, b := range yyq3481 {
if b {
yynn3481++
}
}
r.EncodeMapStart(yynn3481)
yynn3481 = 0
}
if yyr3481 || yy2arr3481 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3481[0] {
yym3483 := z.EncBinary()
_ = yym3483
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3481[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3484 := z.EncBinary()
_ = yym3484
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3481 || yy2arr3481 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3481[1] {
yym3486 := z.EncBinary()
_ = yym3486
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3481[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3487 := z.EncBinary()
_ = yym3487
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3481 || yy2arr3481 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3481[2] {
yy3489 := &x.ObjectMeta
yy3489.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3481[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3490 := &x.ObjectMeta
yy3490.CodecEncodeSelf(e)
}
}
if yyr3481 || yy2arr3481 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3481[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym3492 := z.EncBinary()
_ = yym3492
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3481[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym3493 := z.EncBinary()
_ = yym3493
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
}
}
if yyr3481 || yy2arr3481 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3481[4] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3481[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3481 || yy2arr3481 {
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
yym3495 := z.DecBinary()
_ = yym3495
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3496 := r.ContainerType()
if yyct3496 == codecSelferValueTypeMap1234 {
yyl3496 := r.ReadMapStart()
if yyl3496 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3496, d)
}
} else if yyct3496 == codecSelferValueTypeArray1234 {
yyl3496 := r.ReadArrayStart()
if yyl3496 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3496, 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 yys3497Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3497Slc
var yyhl3497 bool = l >= 0
for yyj3497 := 0; ; yyj3497++ {
if yyhl3497 {
if yyj3497 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3497Slc = r.DecodeBytes(yys3497Slc, true, true)
yys3497 := string(yys3497Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3497 {
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 {
yyv3500 := &x.ObjectMeta
yyv3500.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3501 := &x.Data
yym3502 := z.DecBinary()
_ = yym3502
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3501), d)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3497)
} // end switch yys3497
} // end for yyj3497
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 yyj3504 int
var yyb3504 bool
var yyhl3504 bool = l >= 0
yyj3504++
if yyhl3504 {
yyb3504 = yyj3504 > l
} else {
yyb3504 = r.CheckBreak()
}
if yyb3504 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3504++
if yyhl3504 {
yyb3504 = yyj3504 > l
} else {
yyb3504 = r.CheckBreak()
}
if yyb3504 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3504++
if yyhl3504 {
yyb3504 = yyj3504 > l
} else {
yyb3504 = r.CheckBreak()
}
if yyb3504 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3507 := &x.ObjectMeta
yyv3507.CodecDecodeSelf(d)
}
yyj3504++
if yyhl3504 {
yyb3504 = yyj3504 > l
} else {
yyb3504 = r.CheckBreak()
}
if yyb3504 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3508 := &x.Data
yym3509 := z.DecBinary()
_ = yym3509
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3508), d)
}
}
yyj3504++
if yyhl3504 {
yyb3504 = yyj3504 > l
} else {
yyb3504 = r.CheckBreak()
}
if yyb3504 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
for {
yyj3504++
if yyhl3504 {
yyb3504 = yyj3504 > l
} else {
yyb3504 = r.CheckBreak()
}
if yyb3504 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3504-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3511 := z.EncBinary()
_ = yym3511
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
yym3512 := z.DecBinary()
_ = yym3512
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 {
yym3513 := z.EncBinary()
_ = yym3513
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3514 := !z.EncBinary()
yy2arr3514 := z.EncBasicHandle().StructToArray
var yyq3514 [4]bool
_, _, _ = yysep3514, yyq3514, yy2arr3514
const yyr3514 bool = false
yyq3514[0] = x.Kind != ""
yyq3514[1] = x.APIVersion != ""
yyq3514[2] = true
var yynn3514 int
if yyr3514 || yy2arr3514 {
r.EncodeArrayStart(4)
} else {
yynn3514 = 1
for _, b := range yyq3514 {
if b {
yynn3514++
}
}
r.EncodeMapStart(yynn3514)
yynn3514 = 0
}
if yyr3514 || yy2arr3514 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3514[0] {
yym3516 := z.EncBinary()
_ = yym3516
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3514[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3517 := z.EncBinary()
_ = yym3517
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3514 || yy2arr3514 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3514[1] {
yym3519 := z.EncBinary()
_ = yym3519
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3514[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3520 := z.EncBinary()
_ = yym3520
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3514 || yy2arr3514 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3514[2] {
yy3522 := &x.ListMeta
yym3523 := z.EncBinary()
_ = yym3523
if false {
} else if z.HasExtensions() && z.EncExt(yy3522) {
} else {
z.EncFallback(yy3522)
}
} else {
r.EncodeNil()
}
} else {
if yyq3514[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3524 := &x.ListMeta
yym3525 := z.EncBinary()
_ = yym3525
if false {
} else if z.HasExtensions() && z.EncExt(yy3524) {
} else {
z.EncFallback(yy3524)
}
}
}
if yyr3514 || yy2arr3514 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3527 := z.EncBinary()
_ = yym3527
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 {
yym3528 := z.EncBinary()
_ = yym3528
if false {
} else {
h.encSliceSecret(([]Secret)(x.Items), e)
}
}
}
if yyr3514 || yy2arr3514 {
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
yym3529 := z.DecBinary()
_ = yym3529
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3530 := r.ContainerType()
if yyct3530 == codecSelferValueTypeMap1234 {
yyl3530 := r.ReadMapStart()
if yyl3530 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3530, d)
}
} else if yyct3530 == codecSelferValueTypeArray1234 {
yyl3530 := r.ReadArrayStart()
if yyl3530 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3530, 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 yys3531Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3531Slc
var yyhl3531 bool = l >= 0
for yyj3531 := 0; ; yyj3531++ {
if yyhl3531 {
if yyj3531 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3531Slc = r.DecodeBytes(yys3531Slc, true, true)
yys3531 := string(yys3531Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3531 {
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 {
yyv3534 := &x.ListMeta
yym3535 := z.DecBinary()
_ = yym3535
if false {
} else if z.HasExtensions() && z.DecExt(yyv3534) {
} else {
z.DecFallback(yyv3534, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3536 := &x.Items
yym3537 := z.DecBinary()
_ = yym3537
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv3536), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3531)
} // end switch yys3531
} // end for yyj3531
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 yyj3538 int
var yyb3538 bool
var yyhl3538 bool = l >= 0
yyj3538++
if yyhl3538 {
yyb3538 = yyj3538 > l
} else {
yyb3538 = r.CheckBreak()
}
if yyb3538 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3538++
if yyhl3538 {
yyb3538 = yyj3538 > l
} else {
yyb3538 = r.CheckBreak()
}
if yyb3538 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3538++
if yyhl3538 {
yyb3538 = yyj3538 > l
} else {
yyb3538 = r.CheckBreak()
}
if yyb3538 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3541 := &x.ListMeta
yym3542 := z.DecBinary()
_ = yym3542
if false {
} else if z.HasExtensions() && z.DecExt(yyv3541) {
} else {
z.DecFallback(yyv3541, false)
}
}
yyj3538++
if yyhl3538 {
yyb3538 = yyj3538 > l
} else {
yyb3538 = r.CheckBreak()
}
if yyb3538 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3543 := &x.Items
yym3544 := z.DecBinary()
_ = yym3544
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv3543), d)
}
}
for {
yyj3538++
if yyhl3538 {
yyb3538 = yyj3538 > l
} else {
yyb3538 = r.CheckBreak()
}
if yyb3538 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3538-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 {
yym3545 := z.EncBinary()
_ = yym3545
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3546 := !z.EncBinary()
yy2arr3546 := z.EncBasicHandle().StructToArray
var yyq3546 [4]bool
_, _, _ = yysep3546, yyq3546, yy2arr3546
const yyr3546 bool = false
yyq3546[0] = x.Kind != ""
yyq3546[1] = x.APIVersion != ""
yyq3546[2] = true
yyq3546[3] = len(x.Data) != 0
var yynn3546 int
if yyr3546 || yy2arr3546 {
r.EncodeArrayStart(4)
} else {
yynn3546 = 0
for _, b := range yyq3546 {
if b {
yynn3546++
}
}
r.EncodeMapStart(yynn3546)
yynn3546 = 0
}
if yyr3546 || yy2arr3546 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3546[0] {
yym3548 := z.EncBinary()
_ = yym3548
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3546[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3549 := z.EncBinary()
_ = yym3549
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3546 || yy2arr3546 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3546[1] {
yym3551 := z.EncBinary()
_ = yym3551
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3546[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3552 := z.EncBinary()
_ = yym3552
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3546 || yy2arr3546 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3546[2] {
yy3554 := &x.ObjectMeta
yy3554.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3546[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3555 := &x.ObjectMeta
yy3555.CodecEncodeSelf(e)
}
}
if yyr3546 || yy2arr3546 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3546[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym3557 := z.EncBinary()
_ = yym3557
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3546[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym3558 := z.EncBinary()
_ = yym3558
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
}
}
if yyr3546 || yy2arr3546 {
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
yym3559 := z.DecBinary()
_ = yym3559
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3560 := r.ContainerType()
if yyct3560 == codecSelferValueTypeMap1234 {
yyl3560 := r.ReadMapStart()
if yyl3560 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3560, d)
}
} else if yyct3560 == codecSelferValueTypeArray1234 {
yyl3560 := r.ReadArrayStart()
if yyl3560 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3560, 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 yys3561Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3561Slc
var yyhl3561 bool = l >= 0
for yyj3561 := 0; ; yyj3561++ {
if yyhl3561 {
if yyj3561 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3561Slc = r.DecodeBytes(yys3561Slc, true, true)
yys3561 := string(yys3561Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3561 {
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 {
yyv3564 := &x.ObjectMeta
yyv3564.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3565 := &x.Data
yym3566 := z.DecBinary()
_ = yym3566
if false {
} else {
z.F.DecMapStringStringX(yyv3565, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3561)
} // end switch yys3561
} // end for yyj3561
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 yyj3567 int
var yyb3567 bool
var yyhl3567 bool = l >= 0
yyj3567++
if yyhl3567 {
yyb3567 = yyj3567 > l
} else {
yyb3567 = r.CheckBreak()
}
if yyb3567 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3567++
if yyhl3567 {
yyb3567 = yyj3567 > l
} else {
yyb3567 = r.CheckBreak()
}
if yyb3567 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3567++
if yyhl3567 {
yyb3567 = yyj3567 > l
} else {
yyb3567 = r.CheckBreak()
}
if yyb3567 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3570 := &x.ObjectMeta
yyv3570.CodecDecodeSelf(d)
}
yyj3567++
if yyhl3567 {
yyb3567 = yyj3567 > l
} else {
yyb3567 = r.CheckBreak()
}
if yyb3567 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3571 := &x.Data
yym3572 := z.DecBinary()
_ = yym3572
if false {
} else {
z.F.DecMapStringStringX(yyv3571, false, d)
}
}
for {
yyj3567++
if yyhl3567 {
yyb3567 = yyj3567 > l
} else {
yyb3567 = r.CheckBreak()
}
if yyb3567 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3567-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 {
yym3573 := z.EncBinary()
_ = yym3573
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3574 := !z.EncBinary()
yy2arr3574 := z.EncBasicHandle().StructToArray
var yyq3574 [4]bool
_, _, _ = yysep3574, yyq3574, yy2arr3574
const yyr3574 bool = false
yyq3574[0] = x.Kind != ""
yyq3574[1] = x.APIVersion != ""
yyq3574[2] = true
yyq3574[3] = len(x.Items) != 0
var yynn3574 int
if yyr3574 || yy2arr3574 {
r.EncodeArrayStart(4)
} else {
yynn3574 = 0
for _, b := range yyq3574 {
if b {
yynn3574++
}
}
r.EncodeMapStart(yynn3574)
yynn3574 = 0
}
if yyr3574 || yy2arr3574 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3574[0] {
yym3576 := z.EncBinary()
_ = yym3576
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3574[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3577 := z.EncBinary()
_ = yym3577
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3574 || yy2arr3574 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3574[1] {
yym3579 := z.EncBinary()
_ = yym3579
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3574[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3580 := z.EncBinary()
_ = yym3580
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3574 || yy2arr3574 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3574[2] {
yy3582 := &x.ListMeta
yym3583 := z.EncBinary()
_ = yym3583
if false {
} else if z.HasExtensions() && z.EncExt(yy3582) {
} else {
z.EncFallback(yy3582)
}
} else {
r.EncodeNil()
}
} else {
if yyq3574[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3584 := &x.ListMeta
yym3585 := z.EncBinary()
_ = yym3585
if false {
} else if z.HasExtensions() && z.EncExt(yy3584) {
} else {
z.EncFallback(yy3584)
}
}
}
if yyr3574 || yy2arr3574 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3574[3] {
if x.Items == nil {
r.EncodeNil()
} else {
yym3587 := z.EncBinary()
_ = yym3587
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3574[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3588 := z.EncBinary()
_ = yym3588
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
}
}
if yyr3574 || yy2arr3574 {
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
yym3589 := z.DecBinary()
_ = yym3589
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3590 := r.ContainerType()
if yyct3590 == codecSelferValueTypeMap1234 {
yyl3590 := r.ReadMapStart()
if yyl3590 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3590, d)
}
} else if yyct3590 == codecSelferValueTypeArray1234 {
yyl3590 := r.ReadArrayStart()
if yyl3590 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3590, 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 yys3591Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3591Slc
var yyhl3591 bool = l >= 0
for yyj3591 := 0; ; yyj3591++ {
if yyhl3591 {
if yyj3591 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3591Slc = r.DecodeBytes(yys3591Slc, true, true)
yys3591 := string(yys3591Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3591 {
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 {
yyv3594 := &x.ListMeta
yym3595 := z.DecBinary()
_ = yym3595
if false {
} else if z.HasExtensions() && z.DecExt(yyv3594) {
} else {
z.DecFallback(yyv3594, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3596 := &x.Items
yym3597 := z.DecBinary()
_ = yym3597
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv3596), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3591)
} // end switch yys3591
} // end for yyj3591
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 yyj3598 int
var yyb3598 bool
var yyhl3598 bool = l >= 0
yyj3598++
if yyhl3598 {
yyb3598 = yyj3598 > l
} else {
yyb3598 = r.CheckBreak()
}
if yyb3598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3598++
if yyhl3598 {
yyb3598 = yyj3598 > l
} else {
yyb3598 = r.CheckBreak()
}
if yyb3598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3598++
if yyhl3598 {
yyb3598 = yyj3598 > l
} else {
yyb3598 = r.CheckBreak()
}
if yyb3598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3601 := &x.ListMeta
yym3602 := z.DecBinary()
_ = yym3602
if false {
} else if z.HasExtensions() && z.DecExt(yyv3601) {
} else {
z.DecFallback(yyv3601, false)
}
}
yyj3598++
if yyhl3598 {
yyb3598 = yyj3598 > l
} else {
yyb3598 = r.CheckBreak()
}
if yyb3598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3603 := &x.Items
yym3604 := z.DecBinary()
_ = yym3604
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv3603), d)
}
}
for {
yyj3598++
if yyhl3598 {
yyb3598 = yyj3598 > l
} else {
yyb3598 = r.CheckBreak()
}
if yyb3598 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3598-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3605 := z.EncBinary()
_ = yym3605
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
yym3606 := z.DecBinary()
_ = yym3606
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
yym3607 := z.EncBinary()
_ = yym3607
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
yym3608 := z.DecBinary()
_ = yym3608
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 {
yym3609 := z.EncBinary()
_ = yym3609
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3610 := !z.EncBinary()
yy2arr3610 := z.EncBasicHandle().StructToArray
var yyq3610 [4]bool
_, _, _ = yysep3610, yyq3610, yy2arr3610
const yyr3610 bool = false
yyq3610[2] = x.Message != ""
yyq3610[3] = x.Error != ""
var yynn3610 int
if yyr3610 || yy2arr3610 {
r.EncodeArrayStart(4)
} else {
yynn3610 = 2
for _, b := range yyq3610 {
if b {
yynn3610++
}
}
r.EncodeMapStart(yynn3610)
yynn3610 = 0
}
if yyr3610 || yy2arr3610 {
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 yyr3610 || yy2arr3610 {
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 yyr3610 || yy2arr3610 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3610[2] {
yym3614 := z.EncBinary()
_ = yym3614
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3610[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3615 := z.EncBinary()
_ = yym3615
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3610 || yy2arr3610 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3610[3] {
yym3617 := z.EncBinary()
_ = yym3617
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3610[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("error"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3618 := z.EncBinary()
_ = yym3618
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
}
}
if yyr3610 || yy2arr3610 {
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
yym3619 := z.DecBinary()
_ = yym3619
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3620 := r.ContainerType()
if yyct3620 == codecSelferValueTypeMap1234 {
yyl3620 := r.ReadMapStart()
if yyl3620 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3620, d)
}
} else if yyct3620 == codecSelferValueTypeArray1234 {
yyl3620 := r.ReadArrayStart()
if yyl3620 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3620, 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 yys3621Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3621Slc
var yyhl3621 bool = l >= 0
for yyj3621 := 0; ; yyj3621++ {
if yyhl3621 {
if yyj3621 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3621Slc = r.DecodeBytes(yys3621Slc, true, true)
yys3621 := string(yys3621Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3621 {
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, yys3621)
} // end switch yys3621
} // end for yyj3621
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 yyj3626 int
var yyb3626 bool
var yyhl3626 bool = l >= 0
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ComponentConditionType(r.DecodeString())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Error = ""
} else {
x.Error = string(r.DecodeString())
}
for {
yyj3626++
if yyhl3626 {
yyb3626 = yyj3626 > l
} else {
yyb3626 = r.CheckBreak()
}
if yyb3626 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3626-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 {
yym3631 := z.EncBinary()
_ = yym3631
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3632 := !z.EncBinary()
yy2arr3632 := z.EncBasicHandle().StructToArray
var yyq3632 [4]bool
_, _, _ = yysep3632, yyq3632, yy2arr3632
const yyr3632 bool = false
yyq3632[0] = x.Kind != ""
yyq3632[1] = x.APIVersion != ""
yyq3632[2] = true
yyq3632[3] = len(x.Conditions) != 0
var yynn3632 int
if yyr3632 || yy2arr3632 {
r.EncodeArrayStart(4)
} else {
yynn3632 = 0
for _, b := range yyq3632 {
if b {
yynn3632++
}
}
r.EncodeMapStart(yynn3632)
yynn3632 = 0
}
if yyr3632 || yy2arr3632 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3632[0] {
yym3634 := z.EncBinary()
_ = yym3634
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3632[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3635 := z.EncBinary()
_ = yym3635
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3632 || yy2arr3632 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3632[1] {
yym3637 := z.EncBinary()
_ = yym3637
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3632[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3638 := z.EncBinary()
_ = yym3638
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3632 || yy2arr3632 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3632[2] {
yy3640 := &x.ObjectMeta
yy3640.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3632[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3641 := &x.ObjectMeta
yy3641.CodecEncodeSelf(e)
}
}
if yyr3632 || yy2arr3632 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3632[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3643 := z.EncBinary()
_ = yym3643
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3632[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3644 := z.EncBinary()
_ = yym3644
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
}
}
if yyr3632 || yy2arr3632 {
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
yym3645 := z.DecBinary()
_ = yym3645
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3646 := r.ContainerType()
if yyct3646 == codecSelferValueTypeMap1234 {
yyl3646 := r.ReadMapStart()
if yyl3646 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3646, d)
}
} else if yyct3646 == codecSelferValueTypeArray1234 {
yyl3646 := r.ReadArrayStart()
if yyl3646 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3646, 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 yys3647Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3647Slc
var yyhl3647 bool = l >= 0
for yyj3647 := 0; ; yyj3647++ {
if yyhl3647 {
if yyj3647 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3647Slc = r.DecodeBytes(yys3647Slc, true, true)
yys3647 := string(yys3647Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3647 {
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 {
yyv3650 := &x.ObjectMeta
yyv3650.CodecDecodeSelf(d)
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3651 := &x.Conditions
yym3652 := z.DecBinary()
_ = yym3652
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3651), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3647)
} // end switch yys3647
} // end for yyj3647
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 yyj3653 int
var yyb3653 bool
var yyhl3653 bool = l >= 0
yyj3653++
if yyhl3653 {
yyb3653 = yyj3653 > l
} else {
yyb3653 = r.CheckBreak()
}
if yyb3653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3653++
if yyhl3653 {
yyb3653 = yyj3653 > l
} else {
yyb3653 = r.CheckBreak()
}
if yyb3653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3653++
if yyhl3653 {
yyb3653 = yyj3653 > l
} else {
yyb3653 = r.CheckBreak()
}
if yyb3653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3656 := &x.ObjectMeta
yyv3656.CodecDecodeSelf(d)
}
yyj3653++
if yyhl3653 {
yyb3653 = yyj3653 > l
} else {
yyb3653 = r.CheckBreak()
}
if yyb3653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3657 := &x.Conditions
yym3658 := z.DecBinary()
_ = yym3658
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3657), d)
}
}
for {
yyj3653++
if yyhl3653 {
yyb3653 = yyj3653 > l
} else {
yyb3653 = r.CheckBreak()
}
if yyb3653 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3653-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 {
yym3659 := z.EncBinary()
_ = yym3659
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3660 := !z.EncBinary()
yy2arr3660 := z.EncBasicHandle().StructToArray
var yyq3660 [4]bool
_, _, _ = yysep3660, yyq3660, yy2arr3660
const yyr3660 bool = false
yyq3660[0] = x.Kind != ""
yyq3660[1] = x.APIVersion != ""
yyq3660[2] = true
var yynn3660 int
if yyr3660 || yy2arr3660 {
r.EncodeArrayStart(4)
} else {
yynn3660 = 1
for _, b := range yyq3660 {
if b {
yynn3660++
}
}
r.EncodeMapStart(yynn3660)
yynn3660 = 0
}
if yyr3660 || yy2arr3660 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3660[0] {
yym3662 := z.EncBinary()
_ = yym3662
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3660[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3663 := z.EncBinary()
_ = yym3663
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3660 || yy2arr3660 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3660[1] {
yym3665 := z.EncBinary()
_ = yym3665
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3660[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3666 := z.EncBinary()
_ = yym3666
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3660 || yy2arr3660 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3660[2] {
yy3668 := &x.ListMeta
yym3669 := z.EncBinary()
_ = yym3669
if false {
} else if z.HasExtensions() && z.EncExt(yy3668) {
} else {
z.EncFallback(yy3668)
}
} else {
r.EncodeNil()
}
} else {
if yyq3660[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3670 := &x.ListMeta
yym3671 := z.EncBinary()
_ = yym3671
if false {
} else if z.HasExtensions() && z.EncExt(yy3670) {
} else {
z.EncFallback(yy3670)
}
}
}
if yyr3660 || yy2arr3660 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3673 := z.EncBinary()
_ = yym3673
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 {
yym3674 := z.EncBinary()
_ = yym3674
if false {
} else {
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
}
}
}
if yyr3660 || yy2arr3660 {
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
yym3675 := z.DecBinary()
_ = yym3675
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3676 := r.ContainerType()
if yyct3676 == codecSelferValueTypeMap1234 {
yyl3676 := r.ReadMapStart()
if yyl3676 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3676, d)
}
} else if yyct3676 == codecSelferValueTypeArray1234 {
yyl3676 := r.ReadArrayStart()
if yyl3676 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3676, 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 yys3677Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3677Slc
var yyhl3677 bool = l >= 0
for yyj3677 := 0; ; yyj3677++ {
if yyhl3677 {
if yyj3677 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3677Slc = r.DecodeBytes(yys3677Slc, true, true)
yys3677 := string(yys3677Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3677 {
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 {
yyv3680 := &x.ListMeta
yym3681 := z.DecBinary()
_ = yym3681
if false {
} else if z.HasExtensions() && z.DecExt(yyv3680) {
} else {
z.DecFallback(yyv3680, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3682 := &x.Items
yym3683 := z.DecBinary()
_ = yym3683
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3682), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3677)
} // end switch yys3677
} // end for yyj3677
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 yyj3684 int
var yyb3684 bool
var yyhl3684 bool = l >= 0
yyj3684++
if yyhl3684 {
yyb3684 = yyj3684 > l
} else {
yyb3684 = r.CheckBreak()
}
if yyb3684 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3684++
if yyhl3684 {
yyb3684 = yyj3684 > l
} else {
yyb3684 = r.CheckBreak()
}
if yyb3684 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3684++
if yyhl3684 {
yyb3684 = yyj3684 > l
} else {
yyb3684 = r.CheckBreak()
}
if yyb3684 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3687 := &x.ListMeta
yym3688 := z.DecBinary()
_ = yym3688
if false {
} else if z.HasExtensions() && z.DecExt(yyv3687) {
} else {
z.DecFallback(yyv3687, false)
}
}
yyj3684++
if yyhl3684 {
yyb3684 = yyj3684 > l
} else {
yyb3684 = r.CheckBreak()
}
if yyb3684 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3689 := &x.Items
yym3690 := z.DecBinary()
_ = yym3690
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3689), d)
}
}
for {
yyj3684++
if yyhl3684 {
yyb3684 = yyj3684 > l
} else {
yyb3684 = r.CheckBreak()
}
if yyb3684 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3684-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 {
yym3691 := z.EncBinary()
_ = yym3691
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3692 := !z.EncBinary()
yy2arr3692 := z.EncBasicHandle().StructToArray
var yyq3692 [5]bool
_, _, _ = yysep3692, yyq3692, yy2arr3692
const yyr3692 bool = false
yyq3692[0] = x.Capabilities != nil
yyq3692[1] = x.Privileged != nil
yyq3692[2] = x.SELinuxOptions != nil
yyq3692[3] = x.RunAsUser != nil
yyq3692[4] = x.RunAsNonRoot != nil
var yynn3692 int
if yyr3692 || yy2arr3692 {
r.EncodeArrayStart(5)
} else {
yynn3692 = 0
for _, b := range yyq3692 {
if b {
yynn3692++
}
}
r.EncodeMapStart(yynn3692)
yynn3692 = 0
}
if yyr3692 || yy2arr3692 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3692[0] {
if x.Capabilities == nil {
r.EncodeNil()
} else {
x.Capabilities.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3692[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 yyr3692 || yy2arr3692 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3692[1] {
if x.Privileged == nil {
r.EncodeNil()
} else {
yy3695 := *x.Privileged
yym3696 := z.EncBinary()
_ = yym3696
if false {
} else {
r.EncodeBool(bool(yy3695))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3692[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Privileged == nil {
r.EncodeNil()
} else {
yy3697 := *x.Privileged
yym3698 := z.EncBinary()
_ = yym3698
if false {
} else {
r.EncodeBool(bool(yy3697))
}
}
}
}
if yyr3692 || yy2arr3692 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3692[2] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3692[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 yyr3692 || yy2arr3692 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3692[3] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy3701 := *x.RunAsUser
yym3702 := z.EncBinary()
_ = yym3702
if false {
} else {
r.EncodeInt(int64(yy3701))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3692[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy3703 := *x.RunAsUser
yym3704 := z.EncBinary()
_ = yym3704
if false {
} else {
r.EncodeInt(int64(yy3703))
}
}
}
}
if yyr3692 || yy2arr3692 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3692[4] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy3706 := *x.RunAsNonRoot
yym3707 := z.EncBinary()
_ = yym3707
if false {
} else {
r.EncodeBool(bool(yy3706))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3692[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy3708 := *x.RunAsNonRoot
yym3709 := z.EncBinary()
_ = yym3709
if false {
} else {
r.EncodeBool(bool(yy3708))
}
}
}
}
if yyr3692 || yy2arr3692 {
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
yym3710 := z.DecBinary()
_ = yym3710
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3711 := r.ContainerType()
if yyct3711 == codecSelferValueTypeMap1234 {
yyl3711 := r.ReadMapStart()
if yyl3711 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3711, d)
}
} else if yyct3711 == codecSelferValueTypeArray1234 {
yyl3711 := r.ReadArrayStart()
if yyl3711 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3711, 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 yys3712Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3712Slc
var yyhl3712 bool = l >= 0
for yyj3712 := 0; ; yyj3712++ {
if yyhl3712 {
if yyj3712 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3712Slc = r.DecodeBytes(yys3712Slc, true, true)
yys3712 := string(yys3712Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3712 {
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)
}
yym3715 := z.DecBinary()
_ = yym3715
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)
}
yym3718 := z.DecBinary()
_ = yym3718
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)
}
yym3720 := z.DecBinary()
_ = yym3720
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3712)
} // end switch yys3712
} // end for yyj3712
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 yyj3721 int
var yyb3721 bool
var yyhl3721 bool = l >= 0
yyj3721++
if yyhl3721 {
yyb3721 = yyj3721 > l
} else {
yyb3721 = r.CheckBreak()
}
if yyb3721 {
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)
}
yyj3721++
if yyhl3721 {
yyb3721 = yyj3721 > l
} else {
yyb3721 = r.CheckBreak()
}
if yyb3721 {
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)
}
yym3724 := z.DecBinary()
_ = yym3724
if false {
} else {
*((*bool)(x.Privileged)) = r.DecodeBool()
}
}
yyj3721++
if yyhl3721 {
yyb3721 = yyj3721 > l
} else {
yyb3721 = r.CheckBreak()
}
if yyb3721 {
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)
}
yyj3721++
if yyhl3721 {
yyb3721 = yyj3721 > l
} else {
yyb3721 = r.CheckBreak()
}
if yyb3721 {
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)
}
yym3727 := z.DecBinary()
_ = yym3727
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj3721++
if yyhl3721 {
yyb3721 = yyj3721 > l
} else {
yyb3721 = r.CheckBreak()
}
if yyb3721 {
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)
}
yym3729 := z.DecBinary()
_ = yym3729
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
for {
yyj3721++
if yyhl3721 {
yyb3721 = yyj3721 > l
} else {
yyb3721 = r.CheckBreak()
}
if yyb3721 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3721-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 {
yym3730 := z.EncBinary()
_ = yym3730
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3731 := !z.EncBinary()
yy2arr3731 := z.EncBasicHandle().StructToArray
var yyq3731 [4]bool
_, _, _ = yysep3731, yyq3731, yy2arr3731
const yyr3731 bool = false
yyq3731[0] = x.User != ""
yyq3731[1] = x.Role != ""
yyq3731[2] = x.Type != ""
yyq3731[3] = x.Level != ""
var yynn3731 int
if yyr3731 || yy2arr3731 {
r.EncodeArrayStart(4)
} else {
yynn3731 = 0
for _, b := range yyq3731 {
if b {
yynn3731++
}
}
r.EncodeMapStart(yynn3731)
yynn3731 = 0
}
if yyr3731 || yy2arr3731 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3731[0] {
yym3733 := z.EncBinary()
_ = yym3733
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3731[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3734 := z.EncBinary()
_ = yym3734
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr3731 || yy2arr3731 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3731[1] {
yym3736 := z.EncBinary()
_ = yym3736
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3731[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("role"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3737 := z.EncBinary()
_ = yym3737
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
}
}
if yyr3731 || yy2arr3731 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3731[2] {
yym3739 := z.EncBinary()
_ = yym3739
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3731[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3740 := z.EncBinary()
_ = yym3740
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3731 || yy2arr3731 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3731[3] {
yym3742 := z.EncBinary()
_ = yym3742
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3731[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("level"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3743 := z.EncBinary()
_ = yym3743
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
}
}
if yyr3731 || yy2arr3731 {
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
yym3744 := z.DecBinary()
_ = yym3744
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3745 := r.ContainerType()
if yyct3745 == codecSelferValueTypeMap1234 {
yyl3745 := r.ReadMapStart()
if yyl3745 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3745, d)
}
} else if yyct3745 == codecSelferValueTypeArray1234 {
yyl3745 := r.ReadArrayStart()
if yyl3745 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3745, 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 yys3746Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3746Slc
var yyhl3746 bool = l >= 0
for yyj3746 := 0; ; yyj3746++ {
if yyhl3746 {
if yyj3746 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3746Slc = r.DecodeBytes(yys3746Slc, true, true)
yys3746 := string(yys3746Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3746 {
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, yys3746)
} // end switch yys3746
} // end for yyj3746
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 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.User = ""
} else {
x.User = 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.Role = ""
} else {
x.Role = 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.Type = ""
} else {
x.Type = 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.Level = ""
} else {
x.Level = 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 *RangeAllocation) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3756 := z.EncBinary()
_ = yym3756
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3757 := !z.EncBinary()
yy2arr3757 := z.EncBasicHandle().StructToArray
var yyq3757 [5]bool
_, _, _ = yysep3757, yyq3757, yy2arr3757
const yyr3757 bool = false
yyq3757[0] = x.Kind != ""
yyq3757[1] = x.APIVersion != ""
yyq3757[2] = true
var yynn3757 int
if yyr3757 || yy2arr3757 {
r.EncodeArrayStart(5)
} else {
yynn3757 = 2
for _, b := range yyq3757 {
if b {
yynn3757++
}
}
r.EncodeMapStart(yynn3757)
yynn3757 = 0
}
if yyr3757 || yy2arr3757 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3757[0] {
yym3759 := z.EncBinary()
_ = yym3759
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3757[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3760 := z.EncBinary()
_ = yym3760
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3757 || yy2arr3757 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3757[1] {
yym3762 := z.EncBinary()
_ = yym3762
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3757[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3763 := z.EncBinary()
_ = yym3763
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3757 || yy2arr3757 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3757[2] {
yy3765 := &x.ObjectMeta
yy3765.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3757[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3766 := &x.ObjectMeta
yy3766.CodecEncodeSelf(e)
}
}
if yyr3757 || yy2arr3757 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3768 := z.EncBinary()
_ = yym3768
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)
yym3769 := z.EncBinary()
_ = yym3769
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
}
}
if yyr3757 || yy2arr3757 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym3771 := z.EncBinary()
_ = yym3771
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 {
yym3772 := z.EncBinary()
_ = yym3772
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
if yyr3757 || yy2arr3757 {
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
yym3773 := z.DecBinary()
_ = yym3773
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3774 := r.ContainerType()
if yyct3774 == codecSelferValueTypeMap1234 {
yyl3774 := r.ReadMapStart()
if yyl3774 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3774, d)
}
} else if yyct3774 == codecSelferValueTypeArray1234 {
yyl3774 := r.ReadArrayStart()
if yyl3774 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3774, 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 yys3775Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3775Slc
var yyhl3775 bool = l >= 0
for yyj3775 := 0; ; yyj3775++ {
if yyhl3775 {
if yyj3775 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3775Slc = r.DecodeBytes(yys3775Slc, true, true)
yys3775 := string(yys3775Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3775 {
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 {
yyv3778 := &x.ObjectMeta
yyv3778.CodecDecodeSelf(d)
}
case "range":
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3780 := &x.Data
yym3781 := z.DecBinary()
_ = yym3781
if false {
} else {
*yyv3780 = r.DecodeBytes(*(*[]byte)(yyv3780), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys3775)
} // end switch yys3775
} // end for yyj3775
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 yyj3782 int
var yyb3782 bool
var yyhl3782 bool = l >= 0
yyj3782++
if yyhl3782 {
yyb3782 = yyj3782 > l
} else {
yyb3782 = r.CheckBreak()
}
if yyb3782 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3782++
if yyhl3782 {
yyb3782 = yyj3782 > l
} else {
yyb3782 = r.CheckBreak()
}
if yyb3782 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3782++
if yyhl3782 {
yyb3782 = yyj3782 > l
} else {
yyb3782 = r.CheckBreak()
}
if yyb3782 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3785 := &x.ObjectMeta
yyv3785.CodecDecodeSelf(d)
}
yyj3782++
if yyhl3782 {
yyb3782 = yyj3782 > l
} else {
yyb3782 = r.CheckBreak()
}
if yyb3782 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
yyj3782++
if yyhl3782 {
yyb3782 = yyj3782 > l
} else {
yyb3782 = r.CheckBreak()
}
if yyb3782 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3787 := &x.Data
yym3788 := z.DecBinary()
_ = yym3788
if false {
} else {
*yyv3787 = r.DecodeBytes(*(*[]byte)(yyv3787), false, false)
}
}
for {
yyj3782++
if yyhl3782 {
yyb3782 = yyj3782 > l
} else {
yyb3782 = r.CheckBreak()
}
if yyb3782 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3782-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv3789 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3789.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
yyv3790 := *v
yyh3790, yyl3790 := z.DecSliceHelperStart()
var yyc3790 bool
if yyl3790 == 0 {
if yyv3790 == nil {
yyv3790 = []PersistentVolumeAccessMode{}
yyc3790 = true
} else if len(yyv3790) != 0 {
yyv3790 = yyv3790[:0]
yyc3790 = true
}
} else if yyl3790 > 0 {
var yyrr3790, yyrl3790 int
var yyrt3790 bool
if yyl3790 > cap(yyv3790) {
yyrl3790, yyrt3790 = z.DecInferLen(yyl3790, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3790 {
if yyrl3790 <= cap(yyv3790) {
yyv3790 = yyv3790[:yyrl3790]
} else {
yyv3790 = make([]PersistentVolumeAccessMode, yyrl3790)
}
} else {
yyv3790 = make([]PersistentVolumeAccessMode, yyrl3790)
}
yyc3790 = true
yyrr3790 = len(yyv3790)
} else if yyl3790 != len(yyv3790) {
yyv3790 = yyv3790[:yyl3790]
yyc3790 = true
}
yyj3790 := 0
for ; yyj3790 < yyrr3790; yyj3790++ {
yyh3790.ElemContainerState(yyj3790)
if r.TryDecodeAsNil() {
yyv3790[yyj3790] = ""
} else {
yyv3790[yyj3790] = PersistentVolumeAccessMode(r.DecodeString())
}
}
if yyrt3790 {
for ; yyj3790 < yyl3790; yyj3790++ {
yyv3790 = append(yyv3790, "")
yyh3790.ElemContainerState(yyj3790)
if r.TryDecodeAsNil() {
yyv3790[yyj3790] = ""
} else {
yyv3790[yyj3790] = PersistentVolumeAccessMode(r.DecodeString())
}
}
}
} else {
yyj3790 := 0
for ; !r.CheckBreak(); yyj3790++ {
if yyj3790 >= len(yyv3790) {
yyv3790 = append(yyv3790, "") // var yyz3790 PersistentVolumeAccessMode
yyc3790 = true
}
yyh3790.ElemContainerState(yyj3790)
if yyj3790 < len(yyv3790) {
if r.TryDecodeAsNil() {
yyv3790[yyj3790] = ""
} else {
yyv3790[yyj3790] = PersistentVolumeAccessMode(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3790 < len(yyv3790) {
yyv3790 = yyv3790[:yyj3790]
yyc3790 = true
} else if yyj3790 == 0 && yyv3790 == nil {
yyv3790 = []PersistentVolumeAccessMode{}
yyc3790 = true
}
}
yyh3790.End()
if yyc3790 {
*v = yyv3790
}
}
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 _, yyv3794 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3795 := &yyv3794
yy3795.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
yyv3796 := *v
yyh3796, yyl3796 := z.DecSliceHelperStart()
var yyc3796 bool
if yyl3796 == 0 {
if yyv3796 == nil {
yyv3796 = []PersistentVolume{}
yyc3796 = true
} else if len(yyv3796) != 0 {
yyv3796 = yyv3796[:0]
yyc3796 = true
}
} else if yyl3796 > 0 {
var yyrr3796, yyrl3796 int
var yyrt3796 bool
if yyl3796 > cap(yyv3796) {
yyrg3796 := len(yyv3796) > 0
yyv23796 := yyv3796
yyrl3796, yyrt3796 = z.DecInferLen(yyl3796, z.DecBasicHandle().MaxInitLen, 392)
if yyrt3796 {
if yyrl3796 <= cap(yyv3796) {
yyv3796 = yyv3796[:yyrl3796]
} else {
yyv3796 = make([]PersistentVolume, yyrl3796)
}
} else {
yyv3796 = make([]PersistentVolume, yyrl3796)
}
yyc3796 = true
yyrr3796 = len(yyv3796)
if yyrg3796 {
copy(yyv3796, yyv23796)
}
} else if yyl3796 != len(yyv3796) {
yyv3796 = yyv3796[:yyl3796]
yyc3796 = true
}
yyj3796 := 0
for ; yyj3796 < yyrr3796; yyj3796++ {
yyh3796.ElemContainerState(yyj3796)
if r.TryDecodeAsNil() {
yyv3796[yyj3796] = PersistentVolume{}
} else {
yyv3797 := &yyv3796[yyj3796]
yyv3797.CodecDecodeSelf(d)
}
}
if yyrt3796 {
for ; yyj3796 < yyl3796; yyj3796++ {
yyv3796 = append(yyv3796, PersistentVolume{})
yyh3796.ElemContainerState(yyj3796)
if r.TryDecodeAsNil() {
yyv3796[yyj3796] = PersistentVolume{}
} else {
yyv3798 := &yyv3796[yyj3796]
yyv3798.CodecDecodeSelf(d)
}
}
}
} else {
yyj3796 := 0
for ; !r.CheckBreak(); yyj3796++ {
if yyj3796 >= len(yyv3796) {
yyv3796 = append(yyv3796, PersistentVolume{}) // var yyz3796 PersistentVolume
yyc3796 = true
}
yyh3796.ElemContainerState(yyj3796)
if yyj3796 < len(yyv3796) {
if r.TryDecodeAsNil() {
yyv3796[yyj3796] = PersistentVolume{}
} else {
yyv3799 := &yyv3796[yyj3796]
yyv3799.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3796 < len(yyv3796) {
yyv3796 = yyv3796[:yyj3796]
yyc3796 = true
} else if yyj3796 == 0 && yyv3796 == nil {
yyv3796 = []PersistentVolume{}
yyc3796 = true
}
}
yyh3796.End()
if yyc3796 {
*v = yyv3796
}
}
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 _, yyv3800 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3801 := &yyv3800
yy3801.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
yyv3802 := *v
yyh3802, yyl3802 := z.DecSliceHelperStart()
var yyc3802 bool
if yyl3802 == 0 {
if yyv3802 == nil {
yyv3802 = []PersistentVolumeClaim{}
yyc3802 = true
} else if len(yyv3802) != 0 {
yyv3802 = yyv3802[:0]
yyc3802 = true
}
} else if yyl3802 > 0 {
var yyrr3802, yyrl3802 int
var yyrt3802 bool
if yyl3802 > cap(yyv3802) {
yyrg3802 := len(yyv3802) > 0
yyv23802 := yyv3802
yyrl3802, yyrt3802 = z.DecInferLen(yyl3802, z.DecBasicHandle().MaxInitLen, 296)
if yyrt3802 {
if yyrl3802 <= cap(yyv3802) {
yyv3802 = yyv3802[:yyrl3802]
} else {
yyv3802 = make([]PersistentVolumeClaim, yyrl3802)
}
} else {
yyv3802 = make([]PersistentVolumeClaim, yyrl3802)
}
yyc3802 = true
yyrr3802 = len(yyv3802)
if yyrg3802 {
copy(yyv3802, yyv23802)
}
} else if yyl3802 != len(yyv3802) {
yyv3802 = yyv3802[:yyl3802]
yyc3802 = true
}
yyj3802 := 0
for ; yyj3802 < yyrr3802; yyj3802++ {
yyh3802.ElemContainerState(yyj3802)
if r.TryDecodeAsNil() {
yyv3802[yyj3802] = PersistentVolumeClaim{}
} else {
yyv3803 := &yyv3802[yyj3802]
yyv3803.CodecDecodeSelf(d)
}
}
if yyrt3802 {
for ; yyj3802 < yyl3802; yyj3802++ {
yyv3802 = append(yyv3802, PersistentVolumeClaim{})
yyh3802.ElemContainerState(yyj3802)
if r.TryDecodeAsNil() {
yyv3802[yyj3802] = PersistentVolumeClaim{}
} else {
yyv3804 := &yyv3802[yyj3802]
yyv3804.CodecDecodeSelf(d)
}
}
}
} else {
yyj3802 := 0
for ; !r.CheckBreak(); yyj3802++ {
if yyj3802 >= len(yyv3802) {
yyv3802 = append(yyv3802, PersistentVolumeClaim{}) // var yyz3802 PersistentVolumeClaim
yyc3802 = true
}
yyh3802.ElemContainerState(yyj3802)
if yyj3802 < len(yyv3802) {
if r.TryDecodeAsNil() {
yyv3802[yyj3802] = PersistentVolumeClaim{}
} else {
yyv3805 := &yyv3802[yyj3802]
yyv3805.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3802 < len(yyv3802) {
yyv3802 = yyv3802[:yyj3802]
yyc3802 = true
} else if yyj3802 == 0 && yyv3802 == nil {
yyv3802 = []PersistentVolumeClaim{}
yyc3802 = true
}
}
yyh3802.End()
if yyc3802 {
*v = yyv3802
}
}
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 _, yyv3806 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3807 := &yyv3806
yy3807.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
yyv3808 := *v
yyh3808, yyl3808 := z.DecSliceHelperStart()
var yyc3808 bool
if yyl3808 == 0 {
if yyv3808 == nil {
yyv3808 = []DownwardAPIVolumeFile{}
yyc3808 = true
} else if len(yyv3808) != 0 {
yyv3808 = yyv3808[:0]
yyc3808 = true
}
} else if yyl3808 > 0 {
var yyrr3808, yyrl3808 int
var yyrt3808 bool
if yyl3808 > cap(yyv3808) {
yyrg3808 := len(yyv3808) > 0
yyv23808 := yyv3808
yyrl3808, yyrt3808 = z.DecInferLen(yyl3808, z.DecBasicHandle().MaxInitLen, 48)
if yyrt3808 {
if yyrl3808 <= cap(yyv3808) {
yyv3808 = yyv3808[:yyrl3808]
} else {
yyv3808 = make([]DownwardAPIVolumeFile, yyrl3808)
}
} else {
yyv3808 = make([]DownwardAPIVolumeFile, yyrl3808)
}
yyc3808 = true
yyrr3808 = len(yyv3808)
if yyrg3808 {
copy(yyv3808, yyv23808)
}
} else if yyl3808 != len(yyv3808) {
yyv3808 = yyv3808[:yyl3808]
yyc3808 = true
}
yyj3808 := 0
for ; yyj3808 < yyrr3808; yyj3808++ {
yyh3808.ElemContainerState(yyj3808)
if r.TryDecodeAsNil() {
yyv3808[yyj3808] = DownwardAPIVolumeFile{}
} else {
yyv3809 := &yyv3808[yyj3808]
yyv3809.CodecDecodeSelf(d)
}
}
if yyrt3808 {
for ; yyj3808 < yyl3808; yyj3808++ {
yyv3808 = append(yyv3808, DownwardAPIVolumeFile{})
yyh3808.ElemContainerState(yyj3808)
if r.TryDecodeAsNil() {
yyv3808[yyj3808] = DownwardAPIVolumeFile{}
} else {
yyv3810 := &yyv3808[yyj3808]
yyv3810.CodecDecodeSelf(d)
}
}
}
} else {
yyj3808 := 0
for ; !r.CheckBreak(); yyj3808++ {
if yyj3808 >= len(yyv3808) {
yyv3808 = append(yyv3808, DownwardAPIVolumeFile{}) // var yyz3808 DownwardAPIVolumeFile
yyc3808 = true
}
yyh3808.ElemContainerState(yyj3808)
if yyj3808 < len(yyv3808) {
if r.TryDecodeAsNil() {
yyv3808[yyj3808] = DownwardAPIVolumeFile{}
} else {
yyv3811 := &yyv3808[yyj3808]
yyv3811.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3808 < len(yyv3808) {
yyv3808 = yyv3808[:yyj3808]
yyc3808 = true
} else if yyj3808 == 0 && yyv3808 == nil {
yyv3808 = []DownwardAPIVolumeFile{}
yyc3808 = true
}
}
yyh3808.End()
if yyc3808 {
*v = yyv3808
}
}
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 _, yyv3812 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3812.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
yyv3813 := *v
yyh3813, yyl3813 := z.DecSliceHelperStart()
var yyc3813 bool
if yyl3813 == 0 {
if yyv3813 == nil {
yyv3813 = []Capability{}
yyc3813 = true
} else if len(yyv3813) != 0 {
yyv3813 = yyv3813[:0]
yyc3813 = true
}
} else if yyl3813 > 0 {
var yyrr3813, yyrl3813 int
var yyrt3813 bool
if yyl3813 > cap(yyv3813) {
yyrl3813, yyrt3813 = z.DecInferLen(yyl3813, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3813 {
if yyrl3813 <= cap(yyv3813) {
yyv3813 = yyv3813[:yyrl3813]
} else {
yyv3813 = make([]Capability, yyrl3813)
}
} else {
yyv3813 = make([]Capability, yyrl3813)
}
yyc3813 = true
yyrr3813 = len(yyv3813)
} else if yyl3813 != len(yyv3813) {
yyv3813 = yyv3813[:yyl3813]
yyc3813 = true
}
yyj3813 := 0
for ; yyj3813 < yyrr3813; yyj3813++ {
yyh3813.ElemContainerState(yyj3813)
if r.TryDecodeAsNil() {
yyv3813[yyj3813] = ""
} else {
yyv3813[yyj3813] = Capability(r.DecodeString())
}
}
if yyrt3813 {
for ; yyj3813 < yyl3813; yyj3813++ {
yyv3813 = append(yyv3813, "")
yyh3813.ElemContainerState(yyj3813)
if r.TryDecodeAsNil() {
yyv3813[yyj3813] = ""
} else {
yyv3813[yyj3813] = Capability(r.DecodeString())
}
}
}
} else {
yyj3813 := 0
for ; !r.CheckBreak(); yyj3813++ {
if yyj3813 >= len(yyv3813) {
yyv3813 = append(yyv3813, "") // var yyz3813 Capability
yyc3813 = true
}
yyh3813.ElemContainerState(yyj3813)
if yyj3813 < len(yyv3813) {
if r.TryDecodeAsNil() {
yyv3813[yyj3813] = ""
} else {
yyv3813[yyj3813] = Capability(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3813 < len(yyv3813) {
yyv3813 = yyv3813[:yyj3813]
yyc3813 = true
} else if yyj3813 == 0 && yyv3813 == nil {
yyv3813 = []Capability{}
yyc3813 = true
}
}
yyh3813.End()
if yyc3813 {
*v = yyv3813
}
}
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 _, yyv3817 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3818 := &yyv3817
yy3818.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
yyv3819 := *v
yyh3819, yyl3819 := z.DecSliceHelperStart()
var yyc3819 bool
if yyl3819 == 0 {
if yyv3819 == nil {
yyv3819 = []ContainerPort{}
yyc3819 = true
} else if len(yyv3819) != 0 {
yyv3819 = yyv3819[:0]
yyc3819 = true
}
} else if yyl3819 > 0 {
var yyrr3819, yyrl3819 int
var yyrt3819 bool
if yyl3819 > cap(yyv3819) {
yyrg3819 := len(yyv3819) > 0
yyv23819 := yyv3819
yyrl3819, yyrt3819 = z.DecInferLen(yyl3819, z.DecBasicHandle().MaxInitLen, 64)
if yyrt3819 {
if yyrl3819 <= cap(yyv3819) {
yyv3819 = yyv3819[:yyrl3819]
} else {
yyv3819 = make([]ContainerPort, yyrl3819)
}
} else {
yyv3819 = make([]ContainerPort, yyrl3819)
}
yyc3819 = true
yyrr3819 = len(yyv3819)
if yyrg3819 {
copy(yyv3819, yyv23819)
}
} else if yyl3819 != len(yyv3819) {
yyv3819 = yyv3819[:yyl3819]
yyc3819 = true
}
yyj3819 := 0
for ; yyj3819 < yyrr3819; yyj3819++ {
yyh3819.ElemContainerState(yyj3819)
if r.TryDecodeAsNil() {
yyv3819[yyj3819] = ContainerPort{}
} else {
yyv3820 := &yyv3819[yyj3819]
yyv3820.CodecDecodeSelf(d)
}
}
if yyrt3819 {
for ; yyj3819 < yyl3819; yyj3819++ {
yyv3819 = append(yyv3819, ContainerPort{})
yyh3819.ElemContainerState(yyj3819)
if r.TryDecodeAsNil() {
yyv3819[yyj3819] = ContainerPort{}
} else {
yyv3821 := &yyv3819[yyj3819]
yyv3821.CodecDecodeSelf(d)
}
}
}
} else {
yyj3819 := 0
for ; !r.CheckBreak(); yyj3819++ {
if yyj3819 >= len(yyv3819) {
yyv3819 = append(yyv3819, ContainerPort{}) // var yyz3819 ContainerPort
yyc3819 = true
}
yyh3819.ElemContainerState(yyj3819)
if yyj3819 < len(yyv3819) {
if r.TryDecodeAsNil() {
yyv3819[yyj3819] = ContainerPort{}
} else {
yyv3822 := &yyv3819[yyj3819]
yyv3822.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3819 < len(yyv3819) {
yyv3819 = yyv3819[:yyj3819]
yyc3819 = true
} else if yyj3819 == 0 && yyv3819 == nil {
yyv3819 = []ContainerPort{}
yyc3819 = true
}
}
yyh3819.End()
if yyc3819 {
*v = yyv3819
}
}
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 _, yyv3823 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3824 := &yyv3823
yy3824.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
yyv3825 := *v
yyh3825, yyl3825 := z.DecSliceHelperStart()
var yyc3825 bool
if yyl3825 == 0 {
if yyv3825 == nil {
yyv3825 = []EnvVar{}
yyc3825 = true
} else if len(yyv3825) != 0 {
yyv3825 = yyv3825[:0]
yyc3825 = true
}
} else if yyl3825 > 0 {
var yyrr3825, yyrl3825 int
var yyrt3825 bool
if yyl3825 > cap(yyv3825) {
yyrg3825 := len(yyv3825) > 0
yyv23825 := yyv3825
yyrl3825, yyrt3825 = z.DecInferLen(yyl3825, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3825 {
if yyrl3825 <= cap(yyv3825) {
yyv3825 = yyv3825[:yyrl3825]
} else {
yyv3825 = make([]EnvVar, yyrl3825)
}
} else {
yyv3825 = make([]EnvVar, yyrl3825)
}
yyc3825 = true
yyrr3825 = len(yyv3825)
if yyrg3825 {
copy(yyv3825, yyv23825)
}
} else if yyl3825 != len(yyv3825) {
yyv3825 = yyv3825[:yyl3825]
yyc3825 = true
}
yyj3825 := 0
for ; yyj3825 < yyrr3825; yyj3825++ {
yyh3825.ElemContainerState(yyj3825)
if r.TryDecodeAsNil() {
yyv3825[yyj3825] = EnvVar{}
} else {
yyv3826 := &yyv3825[yyj3825]
yyv3826.CodecDecodeSelf(d)
}
}
if yyrt3825 {
for ; yyj3825 < yyl3825; yyj3825++ {
yyv3825 = append(yyv3825, EnvVar{})
yyh3825.ElemContainerState(yyj3825)
if r.TryDecodeAsNil() {
yyv3825[yyj3825] = EnvVar{}
} else {
yyv3827 := &yyv3825[yyj3825]
yyv3827.CodecDecodeSelf(d)
}
}
}
} else {
yyj3825 := 0
for ; !r.CheckBreak(); yyj3825++ {
if yyj3825 >= len(yyv3825) {
yyv3825 = append(yyv3825, EnvVar{}) // var yyz3825 EnvVar
yyc3825 = true
}
yyh3825.ElemContainerState(yyj3825)
if yyj3825 < len(yyv3825) {
if r.TryDecodeAsNil() {
yyv3825[yyj3825] = EnvVar{}
} else {
yyv3828 := &yyv3825[yyj3825]
yyv3828.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3825 < len(yyv3825) {
yyv3825 = yyv3825[:yyj3825]
yyc3825 = true
} else if yyj3825 == 0 && yyv3825 == nil {
yyv3825 = []EnvVar{}
yyc3825 = true
}
}
yyh3825.End()
if yyc3825 {
*v = yyv3825
}
}
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 _, yyv3829 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3830 := &yyv3829
yy3830.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
yyv3831 := *v
yyh3831, yyl3831 := z.DecSliceHelperStart()
var yyc3831 bool
if yyl3831 == 0 {
if yyv3831 == nil {
yyv3831 = []VolumeMount{}
yyc3831 = true
} else if len(yyv3831) != 0 {
yyv3831 = yyv3831[:0]
yyc3831 = true
}
} else if yyl3831 > 0 {
var yyrr3831, yyrl3831 int
var yyrt3831 bool
if yyl3831 > cap(yyv3831) {
yyrg3831 := len(yyv3831) > 0
yyv23831 := yyv3831
yyrl3831, yyrt3831 = z.DecInferLen(yyl3831, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3831 {
if yyrl3831 <= cap(yyv3831) {
yyv3831 = yyv3831[:yyrl3831]
} else {
yyv3831 = make([]VolumeMount, yyrl3831)
}
} else {
yyv3831 = make([]VolumeMount, yyrl3831)
}
yyc3831 = true
yyrr3831 = len(yyv3831)
if yyrg3831 {
copy(yyv3831, yyv23831)
}
} else if yyl3831 != len(yyv3831) {
yyv3831 = yyv3831[:yyl3831]
yyc3831 = true
}
yyj3831 := 0
for ; yyj3831 < yyrr3831; yyj3831++ {
yyh3831.ElemContainerState(yyj3831)
if r.TryDecodeAsNil() {
yyv3831[yyj3831] = VolumeMount{}
} else {
yyv3832 := &yyv3831[yyj3831]
yyv3832.CodecDecodeSelf(d)
}
}
if yyrt3831 {
for ; yyj3831 < yyl3831; yyj3831++ {
yyv3831 = append(yyv3831, VolumeMount{})
yyh3831.ElemContainerState(yyj3831)
if r.TryDecodeAsNil() {
yyv3831[yyj3831] = VolumeMount{}
} else {
yyv3833 := &yyv3831[yyj3831]
yyv3833.CodecDecodeSelf(d)
}
}
}
} else {
yyj3831 := 0
for ; !r.CheckBreak(); yyj3831++ {
if yyj3831 >= len(yyv3831) {
yyv3831 = append(yyv3831, VolumeMount{}) // var yyz3831 VolumeMount
yyc3831 = true
}
yyh3831.ElemContainerState(yyj3831)
if yyj3831 < len(yyv3831) {
if r.TryDecodeAsNil() {
yyv3831[yyj3831] = VolumeMount{}
} else {
yyv3834 := &yyv3831[yyj3831]
yyv3834.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3831 < len(yyv3831) {
yyv3831 = yyv3831[:yyj3831]
yyc3831 = true
} else if yyj3831 == 0 && yyv3831 == nil {
yyv3831 = []VolumeMount{}
yyc3831 = true
}
}
yyh3831.End()
if yyc3831 {
*v = yyv3831
}
}
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 _, yyv3835 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3836 := &yyv3835
yy3836.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
yyv3837 := *v
yyh3837, yyl3837 := z.DecSliceHelperStart()
var yyc3837 bool
if yyl3837 == 0 {
if yyv3837 == nil {
yyv3837 = []Pod{}
yyc3837 = true
} else if len(yyv3837) != 0 {
yyv3837 = yyv3837[:0]
yyc3837 = true
}
} else if yyl3837 > 0 {
var yyrr3837, yyrl3837 int
var yyrt3837 bool
if yyl3837 > cap(yyv3837) {
yyrg3837 := len(yyv3837) > 0
yyv23837 := yyv3837
yyrl3837, yyrt3837 = z.DecInferLen(yyl3837, z.DecBasicHandle().MaxInitLen, 496)
if yyrt3837 {
if yyrl3837 <= cap(yyv3837) {
yyv3837 = yyv3837[:yyrl3837]
} else {
yyv3837 = make([]Pod, yyrl3837)
}
} else {
yyv3837 = make([]Pod, yyrl3837)
}
yyc3837 = true
yyrr3837 = len(yyv3837)
if yyrg3837 {
copy(yyv3837, yyv23837)
}
} else if yyl3837 != len(yyv3837) {
yyv3837 = yyv3837[:yyl3837]
yyc3837 = true
}
yyj3837 := 0
for ; yyj3837 < yyrr3837; yyj3837++ {
yyh3837.ElemContainerState(yyj3837)
if r.TryDecodeAsNil() {
yyv3837[yyj3837] = Pod{}
} else {
yyv3838 := &yyv3837[yyj3837]
yyv3838.CodecDecodeSelf(d)
}
}
if yyrt3837 {
for ; yyj3837 < yyl3837; yyj3837++ {
yyv3837 = append(yyv3837, Pod{})
yyh3837.ElemContainerState(yyj3837)
if r.TryDecodeAsNil() {
yyv3837[yyj3837] = Pod{}
} else {
yyv3839 := &yyv3837[yyj3837]
yyv3839.CodecDecodeSelf(d)
}
}
}
} else {
yyj3837 := 0
for ; !r.CheckBreak(); yyj3837++ {
if yyj3837 >= len(yyv3837) {
yyv3837 = append(yyv3837, Pod{}) // var yyz3837 Pod
yyc3837 = true
}
yyh3837.ElemContainerState(yyj3837)
if yyj3837 < len(yyv3837) {
if r.TryDecodeAsNil() {
yyv3837[yyj3837] = Pod{}
} else {
yyv3840 := &yyv3837[yyj3837]
yyv3840.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3837 < len(yyv3837) {
yyv3837 = yyv3837[:yyj3837]
yyc3837 = true
} else if yyj3837 == 0 && yyv3837 == nil {
yyv3837 = []Pod{}
yyc3837 = true
}
}
yyh3837.End()
if yyc3837 {
*v = yyv3837
}
}
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 _, yyv3841 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3842 := &yyv3841
yy3842.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
yyv3843 := *v
yyh3843, yyl3843 := z.DecSliceHelperStart()
var yyc3843 bool
if yyl3843 == 0 {
if yyv3843 == nil {
yyv3843 = []NodeSelectorTerm{}
yyc3843 = true
} else if len(yyv3843) != 0 {
yyv3843 = yyv3843[:0]
yyc3843 = true
}
} else if yyl3843 > 0 {
var yyrr3843, yyrl3843 int
var yyrt3843 bool
if yyl3843 > cap(yyv3843) {
yyrg3843 := len(yyv3843) > 0
yyv23843 := yyv3843
yyrl3843, yyrt3843 = z.DecInferLen(yyl3843, z.DecBasicHandle().MaxInitLen, 24)
if yyrt3843 {
if yyrl3843 <= cap(yyv3843) {
yyv3843 = yyv3843[:yyrl3843]
} else {
yyv3843 = make([]NodeSelectorTerm, yyrl3843)
}
} else {
yyv3843 = make([]NodeSelectorTerm, yyrl3843)
}
yyc3843 = true
yyrr3843 = len(yyv3843)
if yyrg3843 {
copy(yyv3843, yyv23843)
}
} else if yyl3843 != len(yyv3843) {
yyv3843 = yyv3843[:yyl3843]
yyc3843 = true
}
yyj3843 := 0
for ; yyj3843 < yyrr3843; yyj3843++ {
yyh3843.ElemContainerState(yyj3843)
if r.TryDecodeAsNil() {
yyv3843[yyj3843] = NodeSelectorTerm{}
} else {
yyv3844 := &yyv3843[yyj3843]
yyv3844.CodecDecodeSelf(d)
}
}
if yyrt3843 {
for ; yyj3843 < yyl3843; yyj3843++ {
yyv3843 = append(yyv3843, NodeSelectorTerm{})
yyh3843.ElemContainerState(yyj3843)
if r.TryDecodeAsNil() {
yyv3843[yyj3843] = NodeSelectorTerm{}
} else {
yyv3845 := &yyv3843[yyj3843]
yyv3845.CodecDecodeSelf(d)
}
}
}
} else {
yyj3843 := 0
for ; !r.CheckBreak(); yyj3843++ {
if yyj3843 >= len(yyv3843) {
yyv3843 = append(yyv3843, NodeSelectorTerm{}) // var yyz3843 NodeSelectorTerm
yyc3843 = true
}
yyh3843.ElemContainerState(yyj3843)
if yyj3843 < len(yyv3843) {
if r.TryDecodeAsNil() {
yyv3843[yyj3843] = NodeSelectorTerm{}
} else {
yyv3846 := &yyv3843[yyj3843]
yyv3846.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3843 < len(yyv3843) {
yyv3843 = yyv3843[:yyj3843]
yyc3843 = true
} else if yyj3843 == 0 && yyv3843 == nil {
yyv3843 = []NodeSelectorTerm{}
yyc3843 = true
}
}
yyh3843.End()
if yyc3843 {
*v = yyv3843
}
}
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 _, yyv3847 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3848 := &yyv3847
yy3848.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
yyv3849 := *v
yyh3849, yyl3849 := z.DecSliceHelperStart()
var yyc3849 bool
if yyl3849 == 0 {
if yyv3849 == nil {
yyv3849 = []NodeSelectorRequirement{}
yyc3849 = true
} else if len(yyv3849) != 0 {
yyv3849 = yyv3849[:0]
yyc3849 = true
}
} else if yyl3849 > 0 {
var yyrr3849, yyrl3849 int
var yyrt3849 bool
if yyl3849 > cap(yyv3849) {
yyrg3849 := len(yyv3849) > 0
yyv23849 := yyv3849
yyrl3849, yyrt3849 = z.DecInferLen(yyl3849, z.DecBasicHandle().MaxInitLen, 56)
if yyrt3849 {
if yyrl3849 <= cap(yyv3849) {
yyv3849 = yyv3849[:yyrl3849]
} else {
yyv3849 = make([]NodeSelectorRequirement, yyrl3849)
}
} else {
yyv3849 = make([]NodeSelectorRequirement, yyrl3849)
}
yyc3849 = true
yyrr3849 = len(yyv3849)
if yyrg3849 {
copy(yyv3849, yyv23849)
}
} else if yyl3849 != len(yyv3849) {
yyv3849 = yyv3849[:yyl3849]
yyc3849 = true
}
yyj3849 := 0
for ; yyj3849 < yyrr3849; yyj3849++ {
yyh3849.ElemContainerState(yyj3849)
if r.TryDecodeAsNil() {
yyv3849[yyj3849] = NodeSelectorRequirement{}
} else {
yyv3850 := &yyv3849[yyj3849]
yyv3850.CodecDecodeSelf(d)
}
}
if yyrt3849 {
for ; yyj3849 < yyl3849; yyj3849++ {
yyv3849 = append(yyv3849, NodeSelectorRequirement{})
yyh3849.ElemContainerState(yyj3849)
if r.TryDecodeAsNil() {
yyv3849[yyj3849] = NodeSelectorRequirement{}
} else {
yyv3851 := &yyv3849[yyj3849]
yyv3851.CodecDecodeSelf(d)
}
}
}
} else {
yyj3849 := 0
for ; !r.CheckBreak(); yyj3849++ {
if yyj3849 >= len(yyv3849) {
yyv3849 = append(yyv3849, NodeSelectorRequirement{}) // var yyz3849 NodeSelectorRequirement
yyc3849 = true
}
yyh3849.ElemContainerState(yyj3849)
if yyj3849 < len(yyv3849) {
if r.TryDecodeAsNil() {
yyv3849[yyj3849] = NodeSelectorRequirement{}
} else {
yyv3852 := &yyv3849[yyj3849]
yyv3852.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3849 < len(yyv3849) {
yyv3849 = yyv3849[:yyj3849]
yyc3849 = true
} else if yyj3849 == 0 && yyv3849 == nil {
yyv3849 = []NodeSelectorRequirement{}
yyc3849 = true
}
}
yyh3849.End()
if yyc3849 {
*v = yyv3849
}
}
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 _, yyv3853 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3854 := &yyv3853
yy3854.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
yyv3855 := *v
yyh3855, yyl3855 := z.DecSliceHelperStart()
var yyc3855 bool
if yyl3855 == 0 {
if yyv3855 == nil {
yyv3855 = []PreferredSchedulingTerm{}
yyc3855 = true
} else if len(yyv3855) != 0 {
yyv3855 = yyv3855[:0]
yyc3855 = true
}
} else if yyl3855 > 0 {
var yyrr3855, yyrl3855 int
var yyrt3855 bool
if yyl3855 > cap(yyv3855) {
yyrg3855 := len(yyv3855) > 0
yyv23855 := yyv3855
yyrl3855, yyrt3855 = z.DecInferLen(yyl3855, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3855 {
if yyrl3855 <= cap(yyv3855) {
yyv3855 = yyv3855[:yyrl3855]
} else {
yyv3855 = make([]PreferredSchedulingTerm, yyrl3855)
}
} else {
yyv3855 = make([]PreferredSchedulingTerm, yyrl3855)
}
yyc3855 = true
yyrr3855 = len(yyv3855)
if yyrg3855 {
copy(yyv3855, yyv23855)
}
} else if yyl3855 != len(yyv3855) {
yyv3855 = yyv3855[:yyl3855]
yyc3855 = true
}
yyj3855 := 0
for ; yyj3855 < yyrr3855; yyj3855++ {
yyh3855.ElemContainerState(yyj3855)
if r.TryDecodeAsNil() {
yyv3855[yyj3855] = PreferredSchedulingTerm{}
} else {
yyv3856 := &yyv3855[yyj3855]
yyv3856.CodecDecodeSelf(d)
}
}
if yyrt3855 {
for ; yyj3855 < yyl3855; yyj3855++ {
yyv3855 = append(yyv3855, PreferredSchedulingTerm{})
yyh3855.ElemContainerState(yyj3855)
if r.TryDecodeAsNil() {
yyv3855[yyj3855] = PreferredSchedulingTerm{}
} else {
yyv3857 := &yyv3855[yyj3855]
yyv3857.CodecDecodeSelf(d)
}
}
}
} else {
yyj3855 := 0
for ; !r.CheckBreak(); yyj3855++ {
if yyj3855 >= len(yyv3855) {
yyv3855 = append(yyv3855, PreferredSchedulingTerm{}) // var yyz3855 PreferredSchedulingTerm
yyc3855 = true
}
yyh3855.ElemContainerState(yyj3855)
if yyj3855 < len(yyv3855) {
if r.TryDecodeAsNil() {
yyv3855[yyj3855] = PreferredSchedulingTerm{}
} else {
yyv3858 := &yyv3855[yyj3855]
yyv3858.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3855 < len(yyv3855) {
yyv3855 = yyv3855[:yyj3855]
yyc3855 = true
} else if yyj3855 == 0 && yyv3855 == nil {
yyv3855 = []PreferredSchedulingTerm{}
yyc3855 = true
}
}
yyh3855.End()
if yyc3855 {
*v = yyv3855
}
}
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 _, yyv3859 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3860 := &yyv3859
yy3860.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
yyv3861 := *v
yyh3861, yyl3861 := z.DecSliceHelperStart()
var yyc3861 bool
if yyl3861 == 0 {
if yyv3861 == nil {
yyv3861 = []Volume{}
yyc3861 = true
} else if len(yyv3861) != 0 {
yyv3861 = yyv3861[:0]
yyc3861 = true
}
} else if yyl3861 > 0 {
var yyrr3861, yyrl3861 int
var yyrt3861 bool
if yyl3861 > cap(yyv3861) {
yyrg3861 := len(yyv3861) > 0
yyv23861 := yyv3861
yyrl3861, yyrt3861 = z.DecInferLen(yyl3861, z.DecBasicHandle().MaxInitLen, 152)
if yyrt3861 {
if yyrl3861 <= cap(yyv3861) {
yyv3861 = yyv3861[:yyrl3861]
} else {
yyv3861 = make([]Volume, yyrl3861)
}
} else {
yyv3861 = make([]Volume, yyrl3861)
}
yyc3861 = true
yyrr3861 = len(yyv3861)
if yyrg3861 {
copy(yyv3861, yyv23861)
}
} else if yyl3861 != len(yyv3861) {
yyv3861 = yyv3861[:yyl3861]
yyc3861 = true
}
yyj3861 := 0
for ; yyj3861 < yyrr3861; yyj3861++ {
yyh3861.ElemContainerState(yyj3861)
if r.TryDecodeAsNil() {
yyv3861[yyj3861] = Volume{}
} else {
yyv3862 := &yyv3861[yyj3861]
yyv3862.CodecDecodeSelf(d)
}
}
if yyrt3861 {
for ; yyj3861 < yyl3861; yyj3861++ {
yyv3861 = append(yyv3861, Volume{})
yyh3861.ElemContainerState(yyj3861)
if r.TryDecodeAsNil() {
yyv3861[yyj3861] = Volume{}
} else {
yyv3863 := &yyv3861[yyj3861]
yyv3863.CodecDecodeSelf(d)
}
}
}
} else {
yyj3861 := 0
for ; !r.CheckBreak(); yyj3861++ {
if yyj3861 >= len(yyv3861) {
yyv3861 = append(yyv3861, Volume{}) // var yyz3861 Volume
yyc3861 = true
}
yyh3861.ElemContainerState(yyj3861)
if yyj3861 < len(yyv3861) {
if r.TryDecodeAsNil() {
yyv3861[yyj3861] = Volume{}
} else {
yyv3864 := &yyv3861[yyj3861]
yyv3864.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3861 < len(yyv3861) {
yyv3861 = yyv3861[:yyj3861]
yyc3861 = true
} else if yyj3861 == 0 && yyv3861 == nil {
yyv3861 = []Volume{}
yyc3861 = true
}
}
yyh3861.End()
if yyc3861 {
*v = yyv3861
}
}
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 _, yyv3865 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3866 := &yyv3865
yy3866.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
yyv3867 := *v
yyh3867, yyl3867 := z.DecSliceHelperStart()
var yyc3867 bool
if yyl3867 == 0 {
if yyv3867 == nil {
yyv3867 = []Container{}
yyc3867 = true
} else if len(yyv3867) != 0 {
yyv3867 = yyv3867[:0]
yyc3867 = true
}
} else if yyl3867 > 0 {
var yyrr3867, yyrl3867 int
var yyrt3867 bool
if yyl3867 > cap(yyv3867) {
yyrg3867 := len(yyv3867) > 0
yyv23867 := yyv3867
yyrl3867, yyrt3867 = z.DecInferLen(yyl3867, z.DecBasicHandle().MaxInitLen, 256)
if yyrt3867 {
if yyrl3867 <= cap(yyv3867) {
yyv3867 = yyv3867[:yyrl3867]
} else {
yyv3867 = make([]Container, yyrl3867)
}
} else {
yyv3867 = make([]Container, yyrl3867)
}
yyc3867 = true
yyrr3867 = len(yyv3867)
if yyrg3867 {
copy(yyv3867, yyv23867)
}
} else if yyl3867 != len(yyv3867) {
yyv3867 = yyv3867[:yyl3867]
yyc3867 = true
}
yyj3867 := 0
for ; yyj3867 < yyrr3867; yyj3867++ {
yyh3867.ElemContainerState(yyj3867)
if r.TryDecodeAsNil() {
yyv3867[yyj3867] = Container{}
} else {
yyv3868 := &yyv3867[yyj3867]
yyv3868.CodecDecodeSelf(d)
}
}
if yyrt3867 {
for ; yyj3867 < yyl3867; yyj3867++ {
yyv3867 = append(yyv3867, Container{})
yyh3867.ElemContainerState(yyj3867)
if r.TryDecodeAsNil() {
yyv3867[yyj3867] = Container{}
} else {
yyv3869 := &yyv3867[yyj3867]
yyv3869.CodecDecodeSelf(d)
}
}
}
} else {
yyj3867 := 0
for ; !r.CheckBreak(); yyj3867++ {
if yyj3867 >= len(yyv3867) {
yyv3867 = append(yyv3867, Container{}) // var yyz3867 Container
yyc3867 = true
}
yyh3867.ElemContainerState(yyj3867)
if yyj3867 < len(yyv3867) {
if r.TryDecodeAsNil() {
yyv3867[yyj3867] = Container{}
} else {
yyv3870 := &yyv3867[yyj3867]
yyv3870.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3867 < len(yyv3867) {
yyv3867 = yyv3867[:yyj3867]
yyc3867 = true
} else if yyj3867 == 0 && yyv3867 == nil {
yyv3867 = []Container{}
yyc3867 = true
}
}
yyh3867.End()
if yyc3867 {
*v = yyv3867
}
}
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 _, yyv3871 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3872 := &yyv3871
yy3872.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
yyv3873 := *v
yyh3873, yyl3873 := z.DecSliceHelperStart()
var yyc3873 bool
if yyl3873 == 0 {
if yyv3873 == nil {
yyv3873 = []LocalObjectReference{}
yyc3873 = true
} else if len(yyv3873) != 0 {
yyv3873 = yyv3873[:0]
yyc3873 = true
}
} else if yyl3873 > 0 {
var yyrr3873, yyrl3873 int
var yyrt3873 bool
if yyl3873 > cap(yyv3873) {
yyrg3873 := len(yyv3873) > 0
yyv23873 := yyv3873
yyrl3873, yyrt3873 = z.DecInferLen(yyl3873, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3873 {
if yyrl3873 <= cap(yyv3873) {
yyv3873 = yyv3873[:yyrl3873]
} else {
yyv3873 = make([]LocalObjectReference, yyrl3873)
}
} else {
yyv3873 = make([]LocalObjectReference, yyrl3873)
}
yyc3873 = true
yyrr3873 = len(yyv3873)
if yyrg3873 {
copy(yyv3873, yyv23873)
}
} else if yyl3873 != len(yyv3873) {
yyv3873 = yyv3873[:yyl3873]
yyc3873 = true
}
yyj3873 := 0
for ; yyj3873 < yyrr3873; yyj3873++ {
yyh3873.ElemContainerState(yyj3873)
if r.TryDecodeAsNil() {
yyv3873[yyj3873] = LocalObjectReference{}
} else {
yyv3874 := &yyv3873[yyj3873]
yyv3874.CodecDecodeSelf(d)
}
}
if yyrt3873 {
for ; yyj3873 < yyl3873; yyj3873++ {
yyv3873 = append(yyv3873, LocalObjectReference{})
yyh3873.ElemContainerState(yyj3873)
if r.TryDecodeAsNil() {
yyv3873[yyj3873] = LocalObjectReference{}
} else {
yyv3875 := &yyv3873[yyj3873]
yyv3875.CodecDecodeSelf(d)
}
}
}
} else {
yyj3873 := 0
for ; !r.CheckBreak(); yyj3873++ {
if yyj3873 >= len(yyv3873) {
yyv3873 = append(yyv3873, LocalObjectReference{}) // var yyz3873 LocalObjectReference
yyc3873 = true
}
yyh3873.ElemContainerState(yyj3873)
if yyj3873 < len(yyv3873) {
if r.TryDecodeAsNil() {
yyv3873[yyj3873] = LocalObjectReference{}
} else {
yyv3876 := &yyv3873[yyj3873]
yyv3876.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3873 < len(yyv3873) {
yyv3873 = yyv3873[:yyj3873]
yyc3873 = true
} else if yyj3873 == 0 && yyv3873 == nil {
yyv3873 = []LocalObjectReference{}
yyc3873 = true
}
}
yyh3873.End()
if yyc3873 {
*v = yyv3873
}
}
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 _, yyv3877 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3878 := &yyv3877
yy3878.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
yyv3879 := *v
yyh3879, yyl3879 := z.DecSliceHelperStart()
var yyc3879 bool
if yyl3879 == 0 {
if yyv3879 == nil {
yyv3879 = []PodCondition{}
yyc3879 = true
} else if len(yyv3879) != 0 {
yyv3879 = yyv3879[:0]
yyc3879 = true
}
} else if yyl3879 > 0 {
var yyrr3879, yyrl3879 int
var yyrt3879 bool
if yyl3879 > cap(yyv3879) {
yyrg3879 := len(yyv3879) > 0
yyv23879 := yyv3879
yyrl3879, yyrt3879 = z.DecInferLen(yyl3879, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3879 {
if yyrl3879 <= cap(yyv3879) {
yyv3879 = yyv3879[:yyrl3879]
} else {
yyv3879 = make([]PodCondition, yyrl3879)
}
} else {
yyv3879 = make([]PodCondition, yyrl3879)
}
yyc3879 = true
yyrr3879 = len(yyv3879)
if yyrg3879 {
copy(yyv3879, yyv23879)
}
} else if yyl3879 != len(yyv3879) {
yyv3879 = yyv3879[:yyl3879]
yyc3879 = true
}
yyj3879 := 0
for ; yyj3879 < yyrr3879; yyj3879++ {
yyh3879.ElemContainerState(yyj3879)
if r.TryDecodeAsNil() {
yyv3879[yyj3879] = PodCondition{}
} else {
yyv3880 := &yyv3879[yyj3879]
yyv3880.CodecDecodeSelf(d)
}
}
if yyrt3879 {
for ; yyj3879 < yyl3879; yyj3879++ {
yyv3879 = append(yyv3879, PodCondition{})
yyh3879.ElemContainerState(yyj3879)
if r.TryDecodeAsNil() {
yyv3879[yyj3879] = PodCondition{}
} else {
yyv3881 := &yyv3879[yyj3879]
yyv3881.CodecDecodeSelf(d)
}
}
}
} else {
yyj3879 := 0
for ; !r.CheckBreak(); yyj3879++ {
if yyj3879 >= len(yyv3879) {
yyv3879 = append(yyv3879, PodCondition{}) // var yyz3879 PodCondition
yyc3879 = true
}
yyh3879.ElemContainerState(yyj3879)
if yyj3879 < len(yyv3879) {
if r.TryDecodeAsNil() {
yyv3879[yyj3879] = PodCondition{}
} else {
yyv3882 := &yyv3879[yyj3879]
yyv3882.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3879 < len(yyv3879) {
yyv3879 = yyv3879[:yyj3879]
yyc3879 = true
} else if yyj3879 == 0 && yyv3879 == nil {
yyv3879 = []PodCondition{}
yyc3879 = true
}
}
yyh3879.End()
if yyc3879 {
*v = yyv3879
}
}
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 _, yyv3883 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3884 := &yyv3883
yy3884.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
yyv3885 := *v
yyh3885, yyl3885 := z.DecSliceHelperStart()
var yyc3885 bool
if yyl3885 == 0 {
if yyv3885 == nil {
yyv3885 = []ContainerStatus{}
yyc3885 = true
} else if len(yyv3885) != 0 {
yyv3885 = yyv3885[:0]
yyc3885 = true
}
} else if yyl3885 > 0 {
var yyrr3885, yyrl3885 int
var yyrt3885 bool
if yyl3885 > cap(yyv3885) {
yyrg3885 := len(yyv3885) > 0
yyv23885 := yyv3885
yyrl3885, yyrt3885 = z.DecInferLen(yyl3885, z.DecBasicHandle().MaxInitLen, 128)
if yyrt3885 {
if yyrl3885 <= cap(yyv3885) {
yyv3885 = yyv3885[:yyrl3885]
} else {
yyv3885 = make([]ContainerStatus, yyrl3885)
}
} else {
yyv3885 = make([]ContainerStatus, yyrl3885)
}
yyc3885 = true
yyrr3885 = len(yyv3885)
if yyrg3885 {
copy(yyv3885, yyv23885)
}
} else if yyl3885 != len(yyv3885) {
yyv3885 = yyv3885[:yyl3885]
yyc3885 = true
}
yyj3885 := 0
for ; yyj3885 < yyrr3885; yyj3885++ {
yyh3885.ElemContainerState(yyj3885)
if r.TryDecodeAsNil() {
yyv3885[yyj3885] = ContainerStatus{}
} else {
yyv3886 := &yyv3885[yyj3885]
yyv3886.CodecDecodeSelf(d)
}
}
if yyrt3885 {
for ; yyj3885 < yyl3885; yyj3885++ {
yyv3885 = append(yyv3885, ContainerStatus{})
yyh3885.ElemContainerState(yyj3885)
if r.TryDecodeAsNil() {
yyv3885[yyj3885] = ContainerStatus{}
} else {
yyv3887 := &yyv3885[yyj3885]
yyv3887.CodecDecodeSelf(d)
}
}
}
} else {
yyj3885 := 0
for ; !r.CheckBreak(); yyj3885++ {
if yyj3885 >= len(yyv3885) {
yyv3885 = append(yyv3885, ContainerStatus{}) // var yyz3885 ContainerStatus
yyc3885 = true
}
yyh3885.ElemContainerState(yyj3885)
if yyj3885 < len(yyv3885) {
if r.TryDecodeAsNil() {
yyv3885[yyj3885] = ContainerStatus{}
} else {
yyv3888 := &yyv3885[yyj3885]
yyv3888.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3885 < len(yyv3885) {
yyv3885 = yyv3885[:yyj3885]
yyc3885 = true
} else if yyj3885 == 0 && yyv3885 == nil {
yyv3885 = []ContainerStatus{}
yyc3885 = true
}
}
yyh3885.End()
if yyc3885 {
*v = yyv3885
}
}
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 _, yyv3889 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3890 := &yyv3889
yy3890.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
yyv3891 := *v
yyh3891, yyl3891 := z.DecSliceHelperStart()
var yyc3891 bool
if yyl3891 == 0 {
if yyv3891 == nil {
yyv3891 = []PodTemplate{}
yyc3891 = true
} else if len(yyv3891) != 0 {
yyv3891 = yyv3891[:0]
yyc3891 = true
}
} else if yyl3891 > 0 {
var yyrr3891, yyrl3891 int
var yyrt3891 bool
if yyl3891 > cap(yyv3891) {
yyrg3891 := len(yyv3891) > 0
yyv23891 := yyv3891
yyrl3891, yyrt3891 = z.DecInferLen(yyl3891, z.DecBasicHandle().MaxInitLen, 520)
if yyrt3891 {
if yyrl3891 <= cap(yyv3891) {
yyv3891 = yyv3891[:yyrl3891]
} else {
yyv3891 = make([]PodTemplate, yyrl3891)
}
} else {
yyv3891 = make([]PodTemplate, yyrl3891)
}
yyc3891 = true
yyrr3891 = len(yyv3891)
if yyrg3891 {
copy(yyv3891, yyv23891)
}
} else if yyl3891 != len(yyv3891) {
yyv3891 = yyv3891[:yyl3891]
yyc3891 = true
}
yyj3891 := 0
for ; yyj3891 < yyrr3891; yyj3891++ {
yyh3891.ElemContainerState(yyj3891)
if r.TryDecodeAsNil() {
yyv3891[yyj3891] = PodTemplate{}
} else {
yyv3892 := &yyv3891[yyj3891]
yyv3892.CodecDecodeSelf(d)
}
}
if yyrt3891 {
for ; yyj3891 < yyl3891; yyj3891++ {
yyv3891 = append(yyv3891, PodTemplate{})
yyh3891.ElemContainerState(yyj3891)
if r.TryDecodeAsNil() {
yyv3891[yyj3891] = PodTemplate{}
} else {
yyv3893 := &yyv3891[yyj3891]
yyv3893.CodecDecodeSelf(d)
}
}
}
} else {
yyj3891 := 0
for ; !r.CheckBreak(); yyj3891++ {
if yyj3891 >= len(yyv3891) {
yyv3891 = append(yyv3891, PodTemplate{}) // var yyz3891 PodTemplate
yyc3891 = true
}
yyh3891.ElemContainerState(yyj3891)
if yyj3891 < len(yyv3891) {
if r.TryDecodeAsNil() {
yyv3891[yyj3891] = PodTemplate{}
} else {
yyv3894 := &yyv3891[yyj3891]
yyv3894.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3891 < len(yyv3891) {
yyv3891 = yyv3891[:yyj3891]
yyc3891 = true
} else if yyj3891 == 0 && yyv3891 == nil {
yyv3891 = []PodTemplate{}
yyc3891 = true
}
}
yyh3891.End()
if yyc3891 {
*v = yyv3891
}
}
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 _, yyv3895 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3896 := &yyv3895
yy3896.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
yyv3897 := *v
yyh3897, yyl3897 := z.DecSliceHelperStart()
var yyc3897 bool
if yyl3897 == 0 {
if yyv3897 == nil {
yyv3897 = []ReplicationController{}
yyc3897 = true
} else if len(yyv3897) != 0 {
yyv3897 = yyv3897[:0]
yyc3897 = true
}
} else if yyl3897 > 0 {
var yyrr3897, yyrl3897 int
var yyrt3897 bool
if yyl3897 > cap(yyv3897) {
yyrg3897 := len(yyv3897) > 0
yyv23897 := yyv3897
yyrl3897, yyrt3897 = z.DecInferLen(yyl3897, z.DecBasicHandle().MaxInitLen, 232)
if yyrt3897 {
if yyrl3897 <= cap(yyv3897) {
yyv3897 = yyv3897[:yyrl3897]
} else {
yyv3897 = make([]ReplicationController, yyrl3897)
}
} else {
yyv3897 = make([]ReplicationController, yyrl3897)
}
yyc3897 = true
yyrr3897 = len(yyv3897)
if yyrg3897 {
copy(yyv3897, yyv23897)
}
} else if yyl3897 != len(yyv3897) {
yyv3897 = yyv3897[:yyl3897]
yyc3897 = true
}
yyj3897 := 0
for ; yyj3897 < yyrr3897; yyj3897++ {
yyh3897.ElemContainerState(yyj3897)
if r.TryDecodeAsNil() {
yyv3897[yyj3897] = ReplicationController{}
} else {
yyv3898 := &yyv3897[yyj3897]
yyv3898.CodecDecodeSelf(d)
}
}
if yyrt3897 {
for ; yyj3897 < yyl3897; yyj3897++ {
yyv3897 = append(yyv3897, ReplicationController{})
yyh3897.ElemContainerState(yyj3897)
if r.TryDecodeAsNil() {
yyv3897[yyj3897] = ReplicationController{}
} else {
yyv3899 := &yyv3897[yyj3897]
yyv3899.CodecDecodeSelf(d)
}
}
}
} else {
yyj3897 := 0
for ; !r.CheckBreak(); yyj3897++ {
if yyj3897 >= len(yyv3897) {
yyv3897 = append(yyv3897, ReplicationController{}) // var yyz3897 ReplicationController
yyc3897 = true
}
yyh3897.ElemContainerState(yyj3897)
if yyj3897 < len(yyv3897) {
if r.TryDecodeAsNil() {
yyv3897[yyj3897] = ReplicationController{}
} else {
yyv3900 := &yyv3897[yyj3897]
yyv3900.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3897 < len(yyv3897) {
yyv3897 = yyv3897[:yyj3897]
yyc3897 = true
} else if yyj3897 == 0 && yyv3897 == nil {
yyv3897 = []ReplicationController{}
yyc3897 = true
}
}
yyh3897.End()
if yyc3897 {
*v = yyv3897
}
}
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 _, yyv3901 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3902 := &yyv3901
yy3902.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
yyv3903 := *v
yyh3903, yyl3903 := z.DecSliceHelperStart()
var yyc3903 bool
if yyl3903 == 0 {
if yyv3903 == nil {
yyv3903 = []Service{}
yyc3903 = true
} else if len(yyv3903) != 0 {
yyv3903 = yyv3903[:0]
yyc3903 = true
}
} else if yyl3903 > 0 {
var yyrr3903, yyrl3903 int
var yyrt3903 bool
if yyl3903 > cap(yyv3903) {
yyrg3903 := len(yyv3903) > 0
yyv23903 := yyv3903
yyrl3903, yyrt3903 = z.DecInferLen(yyl3903, z.DecBasicHandle().MaxInitLen, 336)
if yyrt3903 {
if yyrl3903 <= cap(yyv3903) {
yyv3903 = yyv3903[:yyrl3903]
} else {
yyv3903 = make([]Service, yyrl3903)
}
} else {
yyv3903 = make([]Service, yyrl3903)
}
yyc3903 = true
yyrr3903 = len(yyv3903)
if yyrg3903 {
copy(yyv3903, yyv23903)
}
} else if yyl3903 != len(yyv3903) {
yyv3903 = yyv3903[:yyl3903]
yyc3903 = true
}
yyj3903 := 0
for ; yyj3903 < yyrr3903; yyj3903++ {
yyh3903.ElemContainerState(yyj3903)
if r.TryDecodeAsNil() {
yyv3903[yyj3903] = Service{}
} else {
yyv3904 := &yyv3903[yyj3903]
yyv3904.CodecDecodeSelf(d)
}
}
if yyrt3903 {
for ; yyj3903 < yyl3903; yyj3903++ {
yyv3903 = append(yyv3903, Service{})
yyh3903.ElemContainerState(yyj3903)
if r.TryDecodeAsNil() {
yyv3903[yyj3903] = Service{}
} else {
yyv3905 := &yyv3903[yyj3903]
yyv3905.CodecDecodeSelf(d)
}
}
}
} else {
yyj3903 := 0
for ; !r.CheckBreak(); yyj3903++ {
if yyj3903 >= len(yyv3903) {
yyv3903 = append(yyv3903, Service{}) // var yyz3903 Service
yyc3903 = true
}
yyh3903.ElemContainerState(yyj3903)
if yyj3903 < len(yyv3903) {
if r.TryDecodeAsNil() {
yyv3903[yyj3903] = Service{}
} else {
yyv3906 := &yyv3903[yyj3903]
yyv3906.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3903 < len(yyv3903) {
yyv3903 = yyv3903[:yyj3903]
yyc3903 = true
} else if yyj3903 == 0 && yyv3903 == nil {
yyv3903 = []Service{}
yyc3903 = true
}
}
yyh3903.End()
if yyc3903 {
*v = yyv3903
}
}
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 _, yyv3907 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3908 := &yyv3907
yy3908.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
yyv3909 := *v
yyh3909, yyl3909 := z.DecSliceHelperStart()
var yyc3909 bool
if yyl3909 == 0 {
if yyv3909 == nil {
yyv3909 = []LoadBalancerIngress{}
yyc3909 = true
} else if len(yyv3909) != 0 {
yyv3909 = yyv3909[:0]
yyc3909 = true
}
} else if yyl3909 > 0 {
var yyrr3909, yyrl3909 int
var yyrt3909 bool
if yyl3909 > cap(yyv3909) {
yyrg3909 := len(yyv3909) > 0
yyv23909 := yyv3909
yyrl3909, yyrt3909 = z.DecInferLen(yyl3909, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3909 {
if yyrl3909 <= cap(yyv3909) {
yyv3909 = yyv3909[:yyrl3909]
} else {
yyv3909 = make([]LoadBalancerIngress, yyrl3909)
}
} else {
yyv3909 = make([]LoadBalancerIngress, yyrl3909)
}
yyc3909 = true
yyrr3909 = len(yyv3909)
if yyrg3909 {
copy(yyv3909, yyv23909)
}
} else if yyl3909 != len(yyv3909) {
yyv3909 = yyv3909[:yyl3909]
yyc3909 = true
}
yyj3909 := 0
for ; yyj3909 < yyrr3909; yyj3909++ {
yyh3909.ElemContainerState(yyj3909)
if r.TryDecodeAsNil() {
yyv3909[yyj3909] = LoadBalancerIngress{}
} else {
yyv3910 := &yyv3909[yyj3909]
yyv3910.CodecDecodeSelf(d)
}
}
if yyrt3909 {
for ; yyj3909 < yyl3909; yyj3909++ {
yyv3909 = append(yyv3909, LoadBalancerIngress{})
yyh3909.ElemContainerState(yyj3909)
if r.TryDecodeAsNil() {
yyv3909[yyj3909] = LoadBalancerIngress{}
} else {
yyv3911 := &yyv3909[yyj3909]
yyv3911.CodecDecodeSelf(d)
}
}
}
} else {
yyj3909 := 0
for ; !r.CheckBreak(); yyj3909++ {
if yyj3909 >= len(yyv3909) {
yyv3909 = append(yyv3909, LoadBalancerIngress{}) // var yyz3909 LoadBalancerIngress
yyc3909 = true
}
yyh3909.ElemContainerState(yyj3909)
if yyj3909 < len(yyv3909) {
if r.TryDecodeAsNil() {
yyv3909[yyj3909] = LoadBalancerIngress{}
} else {
yyv3912 := &yyv3909[yyj3909]
yyv3912.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3909 < len(yyv3909) {
yyv3909 = yyv3909[:yyj3909]
yyc3909 = true
} else if yyj3909 == 0 && yyv3909 == nil {
yyv3909 = []LoadBalancerIngress{}
yyc3909 = true
}
}
yyh3909.End()
if yyc3909 {
*v = yyv3909
}
}
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 _, yyv3913 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3914 := &yyv3913
yy3914.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
yyv3915 := *v
yyh3915, yyl3915 := z.DecSliceHelperStart()
var yyc3915 bool
if yyl3915 == 0 {
if yyv3915 == nil {
yyv3915 = []ServicePort{}
yyc3915 = true
} else if len(yyv3915) != 0 {
yyv3915 = yyv3915[:0]
yyc3915 = true
}
} else if yyl3915 > 0 {
var yyrr3915, yyrl3915 int
var yyrt3915 bool
if yyl3915 > cap(yyv3915) {
yyrg3915 := len(yyv3915) > 0
yyv23915 := yyv3915
yyrl3915, yyrt3915 = z.DecInferLen(yyl3915, z.DecBasicHandle().MaxInitLen, 80)
if yyrt3915 {
if yyrl3915 <= cap(yyv3915) {
yyv3915 = yyv3915[:yyrl3915]
} else {
yyv3915 = make([]ServicePort, yyrl3915)
}
} else {
yyv3915 = make([]ServicePort, yyrl3915)
}
yyc3915 = true
yyrr3915 = len(yyv3915)
if yyrg3915 {
copy(yyv3915, yyv23915)
}
} else if yyl3915 != len(yyv3915) {
yyv3915 = yyv3915[:yyl3915]
yyc3915 = true
}
yyj3915 := 0
for ; yyj3915 < yyrr3915; yyj3915++ {
yyh3915.ElemContainerState(yyj3915)
if r.TryDecodeAsNil() {
yyv3915[yyj3915] = ServicePort{}
} else {
yyv3916 := &yyv3915[yyj3915]
yyv3916.CodecDecodeSelf(d)
}
}
if yyrt3915 {
for ; yyj3915 < yyl3915; yyj3915++ {
yyv3915 = append(yyv3915, ServicePort{})
yyh3915.ElemContainerState(yyj3915)
if r.TryDecodeAsNil() {
yyv3915[yyj3915] = ServicePort{}
} else {
yyv3917 := &yyv3915[yyj3915]
yyv3917.CodecDecodeSelf(d)
}
}
}
} else {
yyj3915 := 0
for ; !r.CheckBreak(); yyj3915++ {
if yyj3915 >= len(yyv3915) {
yyv3915 = append(yyv3915, ServicePort{}) // var yyz3915 ServicePort
yyc3915 = true
}
yyh3915.ElemContainerState(yyj3915)
if yyj3915 < len(yyv3915) {
if r.TryDecodeAsNil() {
yyv3915[yyj3915] = ServicePort{}
} else {
yyv3918 := &yyv3915[yyj3915]
yyv3918.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3915 < len(yyv3915) {
yyv3915 = yyv3915[:yyj3915]
yyc3915 = true
} else if yyj3915 == 0 && yyv3915 == nil {
yyv3915 = []ServicePort{}
yyc3915 = true
}
}
yyh3915.End()
if yyc3915 {
*v = yyv3915
}
}
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 _, yyv3919 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3920 := &yyv3919
yy3920.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
yyv3921 := *v
yyh3921, yyl3921 := z.DecSliceHelperStart()
var yyc3921 bool
if yyl3921 == 0 {
if yyv3921 == nil {
yyv3921 = []ObjectReference{}
yyc3921 = true
} else if len(yyv3921) != 0 {
yyv3921 = yyv3921[:0]
yyc3921 = true
}
} else if yyl3921 > 0 {
var yyrr3921, yyrl3921 int
var yyrt3921 bool
if yyl3921 > cap(yyv3921) {
yyrg3921 := len(yyv3921) > 0
yyv23921 := yyv3921
yyrl3921, yyrt3921 = z.DecInferLen(yyl3921, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3921 {
if yyrl3921 <= cap(yyv3921) {
yyv3921 = yyv3921[:yyrl3921]
} else {
yyv3921 = make([]ObjectReference, yyrl3921)
}
} else {
yyv3921 = make([]ObjectReference, yyrl3921)
}
yyc3921 = true
yyrr3921 = len(yyv3921)
if yyrg3921 {
copy(yyv3921, yyv23921)
}
} else if yyl3921 != len(yyv3921) {
yyv3921 = yyv3921[:yyl3921]
yyc3921 = true
}
yyj3921 := 0
for ; yyj3921 < yyrr3921; yyj3921++ {
yyh3921.ElemContainerState(yyj3921)
if r.TryDecodeAsNil() {
yyv3921[yyj3921] = ObjectReference{}
} else {
yyv3922 := &yyv3921[yyj3921]
yyv3922.CodecDecodeSelf(d)
}
}
if yyrt3921 {
for ; yyj3921 < yyl3921; yyj3921++ {
yyv3921 = append(yyv3921, ObjectReference{})
yyh3921.ElemContainerState(yyj3921)
if r.TryDecodeAsNil() {
yyv3921[yyj3921] = ObjectReference{}
} else {
yyv3923 := &yyv3921[yyj3921]
yyv3923.CodecDecodeSelf(d)
}
}
}
} else {
yyj3921 := 0
for ; !r.CheckBreak(); yyj3921++ {
if yyj3921 >= len(yyv3921) {
yyv3921 = append(yyv3921, ObjectReference{}) // var yyz3921 ObjectReference
yyc3921 = true
}
yyh3921.ElemContainerState(yyj3921)
if yyj3921 < len(yyv3921) {
if r.TryDecodeAsNil() {
yyv3921[yyj3921] = ObjectReference{}
} else {
yyv3924 := &yyv3921[yyj3921]
yyv3924.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3921 < len(yyv3921) {
yyv3921 = yyv3921[:yyj3921]
yyc3921 = true
} else if yyj3921 == 0 && yyv3921 == nil {
yyv3921 = []ObjectReference{}
yyc3921 = true
}
}
yyh3921.End()
if yyc3921 {
*v = yyv3921
}
}
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 _, yyv3925 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3926 := &yyv3925
yy3926.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
yyv3927 := *v
yyh3927, yyl3927 := z.DecSliceHelperStart()
var yyc3927 bool
if yyl3927 == 0 {
if yyv3927 == nil {
yyv3927 = []ServiceAccount{}
yyc3927 = true
} else if len(yyv3927) != 0 {
yyv3927 = yyv3927[:0]
yyc3927 = true
}
} else if yyl3927 > 0 {
var yyrr3927, yyrl3927 int
var yyrt3927 bool
if yyl3927 > cap(yyv3927) {
yyrg3927 := len(yyv3927) > 0
yyv23927 := yyv3927
yyrl3927, yyrt3927 = z.DecInferLen(yyl3927, z.DecBasicHandle().MaxInitLen, 240)
if yyrt3927 {
if yyrl3927 <= cap(yyv3927) {
yyv3927 = yyv3927[:yyrl3927]
} else {
yyv3927 = make([]ServiceAccount, yyrl3927)
}
} else {
yyv3927 = make([]ServiceAccount, yyrl3927)
}
yyc3927 = true
yyrr3927 = len(yyv3927)
if yyrg3927 {
copy(yyv3927, yyv23927)
}
} else if yyl3927 != len(yyv3927) {
yyv3927 = yyv3927[:yyl3927]
yyc3927 = true
}
yyj3927 := 0
for ; yyj3927 < yyrr3927; yyj3927++ {
yyh3927.ElemContainerState(yyj3927)
if r.TryDecodeAsNil() {
yyv3927[yyj3927] = ServiceAccount{}
} else {
yyv3928 := &yyv3927[yyj3927]
yyv3928.CodecDecodeSelf(d)
}
}
if yyrt3927 {
for ; yyj3927 < yyl3927; yyj3927++ {
yyv3927 = append(yyv3927, ServiceAccount{})
yyh3927.ElemContainerState(yyj3927)
if r.TryDecodeAsNil() {
yyv3927[yyj3927] = ServiceAccount{}
} else {
yyv3929 := &yyv3927[yyj3927]
yyv3929.CodecDecodeSelf(d)
}
}
}
} else {
yyj3927 := 0
for ; !r.CheckBreak(); yyj3927++ {
if yyj3927 >= len(yyv3927) {
yyv3927 = append(yyv3927, ServiceAccount{}) // var yyz3927 ServiceAccount
yyc3927 = true
}
yyh3927.ElemContainerState(yyj3927)
if yyj3927 < len(yyv3927) {
if r.TryDecodeAsNil() {
yyv3927[yyj3927] = ServiceAccount{}
} else {
yyv3930 := &yyv3927[yyj3927]
yyv3930.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3927 < len(yyv3927) {
yyv3927 = yyv3927[:yyj3927]
yyc3927 = true
} else if yyj3927 == 0 && yyv3927 == nil {
yyv3927 = []ServiceAccount{}
yyc3927 = true
}
}
yyh3927.End()
if yyc3927 {
*v = yyv3927
}
}
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 _, yyv3931 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3932 := &yyv3931
yy3932.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
yyv3933 := *v
yyh3933, yyl3933 := z.DecSliceHelperStart()
var yyc3933 bool
if yyl3933 == 0 {
if yyv3933 == nil {
yyv3933 = []EndpointSubset{}
yyc3933 = true
} else if len(yyv3933) != 0 {
yyv3933 = yyv3933[:0]
yyc3933 = true
}
} else if yyl3933 > 0 {
var yyrr3933, yyrl3933 int
var yyrt3933 bool
if yyl3933 > cap(yyv3933) {
yyrg3933 := len(yyv3933) > 0
yyv23933 := yyv3933
yyrl3933, yyrt3933 = z.DecInferLen(yyl3933, z.DecBasicHandle().MaxInitLen, 72)
if yyrt3933 {
if yyrl3933 <= cap(yyv3933) {
yyv3933 = yyv3933[:yyrl3933]
} else {
yyv3933 = make([]EndpointSubset, yyrl3933)
}
} else {
yyv3933 = make([]EndpointSubset, yyrl3933)
}
yyc3933 = true
yyrr3933 = len(yyv3933)
if yyrg3933 {
copy(yyv3933, yyv23933)
}
} else if yyl3933 != len(yyv3933) {
yyv3933 = yyv3933[:yyl3933]
yyc3933 = true
}
yyj3933 := 0
for ; yyj3933 < yyrr3933; yyj3933++ {
yyh3933.ElemContainerState(yyj3933)
if r.TryDecodeAsNil() {
yyv3933[yyj3933] = EndpointSubset{}
} else {
yyv3934 := &yyv3933[yyj3933]
yyv3934.CodecDecodeSelf(d)
}
}
if yyrt3933 {
for ; yyj3933 < yyl3933; yyj3933++ {
yyv3933 = append(yyv3933, EndpointSubset{})
yyh3933.ElemContainerState(yyj3933)
if r.TryDecodeAsNil() {
yyv3933[yyj3933] = EndpointSubset{}
} else {
yyv3935 := &yyv3933[yyj3933]
yyv3935.CodecDecodeSelf(d)
}
}
}
} else {
yyj3933 := 0
for ; !r.CheckBreak(); yyj3933++ {
if yyj3933 >= len(yyv3933) {
yyv3933 = append(yyv3933, EndpointSubset{}) // var yyz3933 EndpointSubset
yyc3933 = true
}
yyh3933.ElemContainerState(yyj3933)
if yyj3933 < len(yyv3933) {
if r.TryDecodeAsNil() {
yyv3933[yyj3933] = EndpointSubset{}
} else {
yyv3936 := &yyv3933[yyj3933]
yyv3936.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3933 < len(yyv3933) {
yyv3933 = yyv3933[:yyj3933]
yyc3933 = true
} else if yyj3933 == 0 && yyv3933 == nil {
yyv3933 = []EndpointSubset{}
yyc3933 = true
}
}
yyh3933.End()
if yyc3933 {
*v = yyv3933
}
}
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 _, yyv3937 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3938 := &yyv3937
yy3938.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
yyv3939 := *v
yyh3939, yyl3939 := z.DecSliceHelperStart()
var yyc3939 bool
if yyl3939 == 0 {
if yyv3939 == nil {
yyv3939 = []EndpointAddress{}
yyc3939 = true
} else if len(yyv3939) != 0 {
yyv3939 = yyv3939[:0]
yyc3939 = true
}
} else if yyl3939 > 0 {
var yyrr3939, yyrl3939 int
var yyrt3939 bool
if yyl3939 > cap(yyv3939) {
yyrg3939 := len(yyv3939) > 0
yyv23939 := yyv3939
yyrl3939, yyrt3939 = z.DecInferLen(yyl3939, z.DecBasicHandle().MaxInitLen, 24)
if yyrt3939 {
if yyrl3939 <= cap(yyv3939) {
yyv3939 = yyv3939[:yyrl3939]
} else {
yyv3939 = make([]EndpointAddress, yyrl3939)
}
} else {
yyv3939 = make([]EndpointAddress, yyrl3939)
}
yyc3939 = true
yyrr3939 = len(yyv3939)
if yyrg3939 {
copy(yyv3939, yyv23939)
}
} else if yyl3939 != len(yyv3939) {
yyv3939 = yyv3939[:yyl3939]
yyc3939 = true
}
yyj3939 := 0
for ; yyj3939 < yyrr3939; yyj3939++ {
yyh3939.ElemContainerState(yyj3939)
if r.TryDecodeAsNil() {
yyv3939[yyj3939] = EndpointAddress{}
} else {
yyv3940 := &yyv3939[yyj3939]
yyv3940.CodecDecodeSelf(d)
}
}
if yyrt3939 {
for ; yyj3939 < yyl3939; yyj3939++ {
yyv3939 = append(yyv3939, EndpointAddress{})
yyh3939.ElemContainerState(yyj3939)
if r.TryDecodeAsNil() {
yyv3939[yyj3939] = EndpointAddress{}
} else {
yyv3941 := &yyv3939[yyj3939]
yyv3941.CodecDecodeSelf(d)
}
}
}
} else {
yyj3939 := 0
for ; !r.CheckBreak(); yyj3939++ {
if yyj3939 >= len(yyv3939) {
yyv3939 = append(yyv3939, EndpointAddress{}) // var yyz3939 EndpointAddress
yyc3939 = true
}
yyh3939.ElemContainerState(yyj3939)
if yyj3939 < len(yyv3939) {
if r.TryDecodeAsNil() {
yyv3939[yyj3939] = EndpointAddress{}
} else {
yyv3942 := &yyv3939[yyj3939]
yyv3942.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3939 < len(yyv3939) {
yyv3939 = yyv3939[:yyj3939]
yyc3939 = true
} else if yyj3939 == 0 && yyv3939 == nil {
yyv3939 = []EndpointAddress{}
yyc3939 = true
}
}
yyh3939.End()
if yyc3939 {
*v = yyv3939
}
}
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 _, yyv3943 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3944 := &yyv3943
yy3944.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
yyv3945 := *v
yyh3945, yyl3945 := z.DecSliceHelperStart()
var yyc3945 bool
if yyl3945 == 0 {
if yyv3945 == nil {
yyv3945 = []EndpointPort{}
yyc3945 = true
} else if len(yyv3945) != 0 {
yyv3945 = yyv3945[:0]
yyc3945 = true
}
} else if yyl3945 > 0 {
var yyrr3945, yyrl3945 int
var yyrt3945 bool
if yyl3945 > cap(yyv3945) {
yyrg3945 := len(yyv3945) > 0
yyv23945 := yyv3945
yyrl3945, yyrt3945 = z.DecInferLen(yyl3945, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3945 {
if yyrl3945 <= cap(yyv3945) {
yyv3945 = yyv3945[:yyrl3945]
} else {
yyv3945 = make([]EndpointPort, yyrl3945)
}
} else {
yyv3945 = make([]EndpointPort, yyrl3945)
}
yyc3945 = true
yyrr3945 = len(yyv3945)
if yyrg3945 {
copy(yyv3945, yyv23945)
}
} else if yyl3945 != len(yyv3945) {
yyv3945 = yyv3945[:yyl3945]
yyc3945 = true
}
yyj3945 := 0
for ; yyj3945 < yyrr3945; yyj3945++ {
yyh3945.ElemContainerState(yyj3945)
if r.TryDecodeAsNil() {
yyv3945[yyj3945] = EndpointPort{}
} else {
yyv3946 := &yyv3945[yyj3945]
yyv3946.CodecDecodeSelf(d)
}
}
if yyrt3945 {
for ; yyj3945 < yyl3945; yyj3945++ {
yyv3945 = append(yyv3945, EndpointPort{})
yyh3945.ElemContainerState(yyj3945)
if r.TryDecodeAsNil() {
yyv3945[yyj3945] = EndpointPort{}
} else {
yyv3947 := &yyv3945[yyj3945]
yyv3947.CodecDecodeSelf(d)
}
}
}
} else {
yyj3945 := 0
for ; !r.CheckBreak(); yyj3945++ {
if yyj3945 >= len(yyv3945) {
yyv3945 = append(yyv3945, EndpointPort{}) // var yyz3945 EndpointPort
yyc3945 = true
}
yyh3945.ElemContainerState(yyj3945)
if yyj3945 < len(yyv3945) {
if r.TryDecodeAsNil() {
yyv3945[yyj3945] = EndpointPort{}
} else {
yyv3948 := &yyv3945[yyj3945]
yyv3948.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3945 < len(yyv3945) {
yyv3945 = yyv3945[:yyj3945]
yyc3945 = true
} else if yyj3945 == 0 && yyv3945 == nil {
yyv3945 = []EndpointPort{}
yyc3945 = true
}
}
yyh3945.End()
if yyc3945 {
*v = yyv3945
}
}
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 _, yyv3949 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3950 := &yyv3949
yy3950.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
yyv3951 := *v
yyh3951, yyl3951 := z.DecSliceHelperStart()
var yyc3951 bool
if yyl3951 == 0 {
if yyv3951 == nil {
yyv3951 = []Endpoints{}
yyc3951 = true
} else if len(yyv3951) != 0 {
yyv3951 = yyv3951[:0]
yyc3951 = true
}
} else if yyl3951 > 0 {
var yyrr3951, yyrl3951 int
var yyrt3951 bool
if yyl3951 > cap(yyv3951) {
yyrg3951 := len(yyv3951) > 0
yyv23951 := yyv3951
yyrl3951, yyrt3951 = z.DecInferLen(yyl3951, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3951 {
if yyrl3951 <= cap(yyv3951) {
yyv3951 = yyv3951[:yyrl3951]
} else {
yyv3951 = make([]Endpoints, yyrl3951)
}
} else {
yyv3951 = make([]Endpoints, yyrl3951)
}
yyc3951 = true
yyrr3951 = len(yyv3951)
if yyrg3951 {
copy(yyv3951, yyv23951)
}
} else if yyl3951 != len(yyv3951) {
yyv3951 = yyv3951[:yyl3951]
yyc3951 = true
}
yyj3951 := 0
for ; yyj3951 < yyrr3951; yyj3951++ {
yyh3951.ElemContainerState(yyj3951)
if r.TryDecodeAsNil() {
yyv3951[yyj3951] = Endpoints{}
} else {
yyv3952 := &yyv3951[yyj3951]
yyv3952.CodecDecodeSelf(d)
}
}
if yyrt3951 {
for ; yyj3951 < yyl3951; yyj3951++ {
yyv3951 = append(yyv3951, Endpoints{})
yyh3951.ElemContainerState(yyj3951)
if r.TryDecodeAsNil() {
yyv3951[yyj3951] = Endpoints{}
} else {
yyv3953 := &yyv3951[yyj3951]
yyv3953.CodecDecodeSelf(d)
}
}
}
} else {
yyj3951 := 0
for ; !r.CheckBreak(); yyj3951++ {
if yyj3951 >= len(yyv3951) {
yyv3951 = append(yyv3951, Endpoints{}) // var yyz3951 Endpoints
yyc3951 = true
}
yyh3951.ElemContainerState(yyj3951)
if yyj3951 < len(yyv3951) {
if r.TryDecodeAsNil() {
yyv3951[yyj3951] = Endpoints{}
} else {
yyv3954 := &yyv3951[yyj3951]
yyv3954.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3951 < len(yyv3951) {
yyv3951 = yyv3951[:yyj3951]
yyc3951 = true
} else if yyj3951 == 0 && yyv3951 == nil {
yyv3951 = []Endpoints{}
yyc3951 = true
}
}
yyh3951.End()
if yyc3951 {
*v = yyv3951
}
}
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 _, yyv3955 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3956 := &yyv3955
yy3956.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
yyv3957 := *v
yyh3957, yyl3957 := z.DecSliceHelperStart()
var yyc3957 bool
if yyl3957 == 0 {
if yyv3957 == nil {
yyv3957 = []NodeCondition{}
yyc3957 = true
} else if len(yyv3957) != 0 {
yyv3957 = yyv3957[:0]
yyc3957 = true
}
} else if yyl3957 > 0 {
var yyrr3957, yyrl3957 int
var yyrt3957 bool
if yyl3957 > cap(yyv3957) {
yyrg3957 := len(yyv3957) > 0
yyv23957 := yyv3957
yyrl3957, yyrt3957 = z.DecInferLen(yyl3957, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3957 {
if yyrl3957 <= cap(yyv3957) {
yyv3957 = yyv3957[:yyrl3957]
} else {
yyv3957 = make([]NodeCondition, yyrl3957)
}
} else {
yyv3957 = make([]NodeCondition, yyrl3957)
}
yyc3957 = true
yyrr3957 = len(yyv3957)
if yyrg3957 {
copy(yyv3957, yyv23957)
}
} else if yyl3957 != len(yyv3957) {
yyv3957 = yyv3957[:yyl3957]
yyc3957 = true
}
yyj3957 := 0
for ; yyj3957 < yyrr3957; yyj3957++ {
yyh3957.ElemContainerState(yyj3957)
if r.TryDecodeAsNil() {
yyv3957[yyj3957] = NodeCondition{}
} else {
yyv3958 := &yyv3957[yyj3957]
yyv3958.CodecDecodeSelf(d)
}
}
if yyrt3957 {
for ; yyj3957 < yyl3957; yyj3957++ {
yyv3957 = append(yyv3957, NodeCondition{})
yyh3957.ElemContainerState(yyj3957)
if r.TryDecodeAsNil() {
yyv3957[yyj3957] = NodeCondition{}
} else {
yyv3959 := &yyv3957[yyj3957]
yyv3959.CodecDecodeSelf(d)
}
}
}
} else {
yyj3957 := 0
for ; !r.CheckBreak(); yyj3957++ {
if yyj3957 >= len(yyv3957) {
yyv3957 = append(yyv3957, NodeCondition{}) // var yyz3957 NodeCondition
yyc3957 = true
}
yyh3957.ElemContainerState(yyj3957)
if yyj3957 < len(yyv3957) {
if r.TryDecodeAsNil() {
yyv3957[yyj3957] = NodeCondition{}
} else {
yyv3960 := &yyv3957[yyj3957]
yyv3960.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3957 < len(yyv3957) {
yyv3957 = yyv3957[:yyj3957]
yyc3957 = true
} else if yyj3957 == 0 && yyv3957 == nil {
yyv3957 = []NodeCondition{}
yyc3957 = true
}
}
yyh3957.End()
if yyc3957 {
*v = yyv3957
}
}
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 _, yyv3961 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3962 := &yyv3961
yy3962.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
yyv3963 := *v
yyh3963, yyl3963 := z.DecSliceHelperStart()
var yyc3963 bool
if yyl3963 == 0 {
if yyv3963 == nil {
yyv3963 = []NodeAddress{}
yyc3963 = true
} else if len(yyv3963) != 0 {
yyv3963 = yyv3963[:0]
yyc3963 = true
}
} else if yyl3963 > 0 {
var yyrr3963, yyrl3963 int
var yyrt3963 bool
if yyl3963 > cap(yyv3963) {
yyrg3963 := len(yyv3963) > 0
yyv23963 := yyv3963
yyrl3963, yyrt3963 = z.DecInferLen(yyl3963, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3963 {
if yyrl3963 <= cap(yyv3963) {
yyv3963 = yyv3963[:yyrl3963]
} else {
yyv3963 = make([]NodeAddress, yyrl3963)
}
} else {
yyv3963 = make([]NodeAddress, yyrl3963)
}
yyc3963 = true
yyrr3963 = len(yyv3963)
if yyrg3963 {
copy(yyv3963, yyv23963)
}
} else if yyl3963 != len(yyv3963) {
yyv3963 = yyv3963[:yyl3963]
yyc3963 = true
}
yyj3963 := 0
for ; yyj3963 < yyrr3963; yyj3963++ {
yyh3963.ElemContainerState(yyj3963)
if r.TryDecodeAsNil() {
yyv3963[yyj3963] = NodeAddress{}
} else {
yyv3964 := &yyv3963[yyj3963]
yyv3964.CodecDecodeSelf(d)
}
}
if yyrt3963 {
for ; yyj3963 < yyl3963; yyj3963++ {
yyv3963 = append(yyv3963, NodeAddress{})
yyh3963.ElemContainerState(yyj3963)
if r.TryDecodeAsNil() {
yyv3963[yyj3963] = NodeAddress{}
} else {
yyv3965 := &yyv3963[yyj3963]
yyv3965.CodecDecodeSelf(d)
}
}
}
} else {
yyj3963 := 0
for ; !r.CheckBreak(); yyj3963++ {
if yyj3963 >= len(yyv3963) {
yyv3963 = append(yyv3963, NodeAddress{}) // var yyz3963 NodeAddress
yyc3963 = true
}
yyh3963.ElemContainerState(yyj3963)
if yyj3963 < len(yyv3963) {
if r.TryDecodeAsNil() {
yyv3963[yyj3963] = NodeAddress{}
} else {
yyv3966 := &yyv3963[yyj3963]
yyv3966.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3963 < len(yyv3963) {
yyv3963 = yyv3963[:yyj3963]
yyc3963 = true
} else if yyj3963 == 0 && yyv3963 == nil {
yyv3963 = []NodeAddress{}
yyc3963 = true
}
}
yyh3963.End()
if yyc3963 {
*v = yyv3963
}
}
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 _, yyv3967 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3968 := &yyv3967
yy3968.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
yyv3969 := *v
yyh3969, yyl3969 := z.DecSliceHelperStart()
var yyc3969 bool
if yyl3969 == 0 {
if yyv3969 == nil {
yyv3969 = []ContainerImage{}
yyc3969 = true
} else if len(yyv3969) != 0 {
yyv3969 = yyv3969[:0]
yyc3969 = true
}
} else if yyl3969 > 0 {
var yyrr3969, yyrl3969 int
var yyrt3969 bool
if yyl3969 > cap(yyv3969) {
yyrg3969 := len(yyv3969) > 0
yyv23969 := yyv3969
yyrl3969, yyrt3969 = z.DecInferLen(yyl3969, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3969 {
if yyrl3969 <= cap(yyv3969) {
yyv3969 = yyv3969[:yyrl3969]
} else {
yyv3969 = make([]ContainerImage, yyrl3969)
}
} else {
yyv3969 = make([]ContainerImage, yyrl3969)
}
yyc3969 = true
yyrr3969 = len(yyv3969)
if yyrg3969 {
copy(yyv3969, yyv23969)
}
} else if yyl3969 != len(yyv3969) {
yyv3969 = yyv3969[:yyl3969]
yyc3969 = true
}
yyj3969 := 0
for ; yyj3969 < yyrr3969; yyj3969++ {
yyh3969.ElemContainerState(yyj3969)
if r.TryDecodeAsNil() {
yyv3969[yyj3969] = ContainerImage{}
} else {
yyv3970 := &yyv3969[yyj3969]
yyv3970.CodecDecodeSelf(d)
}
}
if yyrt3969 {
for ; yyj3969 < yyl3969; yyj3969++ {
yyv3969 = append(yyv3969, ContainerImage{})
yyh3969.ElemContainerState(yyj3969)
if r.TryDecodeAsNil() {
yyv3969[yyj3969] = ContainerImage{}
} else {
yyv3971 := &yyv3969[yyj3969]
yyv3971.CodecDecodeSelf(d)
}
}
}
} else {
yyj3969 := 0
for ; !r.CheckBreak(); yyj3969++ {
if yyj3969 >= len(yyv3969) {
yyv3969 = append(yyv3969, ContainerImage{}) // var yyz3969 ContainerImage
yyc3969 = true
}
yyh3969.ElemContainerState(yyj3969)
if yyj3969 < len(yyv3969) {
if r.TryDecodeAsNil() {
yyv3969[yyj3969] = ContainerImage{}
} else {
yyv3972 := &yyv3969[yyj3969]
yyv3972.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3969 < len(yyv3969) {
yyv3969 = yyv3969[:yyj3969]
yyc3969 = true
} else if yyj3969 == 0 && yyv3969 == nil {
yyv3969 = []ContainerImage{}
yyc3969 = true
}
}
yyh3969.End()
if yyc3969 {
*v = yyv3969
}
}
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 yyk3973, yyv3973 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yyk3973.CodecEncodeSelf(e)
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3974 := &yyv3973
yym3975 := z.EncBinary()
_ = yym3975
if false {
} else if z.HasExtensions() && z.EncExt(yy3974) {
} else if !yym3975 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3974)
} else {
z.EncFallback(yy3974)
}
}
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv3976 := *v
yyl3976 := r.ReadMapStart()
yybh3976 := z.DecBasicHandle()
if yyv3976 == nil {
yyrl3976, _ := z.DecInferLen(yyl3976, yybh3976.MaxInitLen, 40)
yyv3976 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3976)
*v = yyv3976
}
var yymk3976 ResourceName
var yymv3976 pkg3_resource.Quantity
var yymg3976 bool
if yybh3976.MapValueReset {
yymg3976 = true
}
if yyl3976 > 0 {
for yyj3976 := 0; yyj3976 < yyl3976; yyj3976++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3976 = ""
} else {
yymk3976 = ResourceName(r.DecodeString())
}
if yymg3976 {
yymv3976 = yyv3976[yymk3976]
} else {
yymv3976 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3976 = pkg3_resource.Quantity{}
} else {
yyv3978 := &yymv3976
yym3979 := z.DecBinary()
_ = yym3979
if false {
} else if z.HasExtensions() && z.DecExt(yyv3978) {
} else if !yym3979 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3978)
} else {
z.DecFallback(yyv3978, false)
}
}
if yyv3976 != nil {
yyv3976[yymk3976] = yymv3976
}
}
} else if yyl3976 < 0 {
for yyj3976 := 0; !r.CheckBreak(); yyj3976++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3976 = ""
} else {
yymk3976 = ResourceName(r.DecodeString())
}
if yymg3976 {
yymv3976 = yyv3976[yymk3976]
} else {
yymv3976 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3976 = pkg3_resource.Quantity{}
} else {
yyv3981 := &yymv3976
yym3982 := z.DecBinary()
_ = yym3982
if false {
} else if z.HasExtensions() && z.DecExt(yyv3981) {
} else if !yym3982 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3981)
} else {
z.DecFallback(yyv3981, false)
}
}
if yyv3976 != nil {
yyv3976[yymk3976] = yymv3976
}
}
} // 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 _, yyv3983 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3984 := &yyv3983
yy3984.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
yyv3985 := *v
yyh3985, yyl3985 := z.DecSliceHelperStart()
var yyc3985 bool
if yyl3985 == 0 {
if yyv3985 == nil {
yyv3985 = []Node{}
yyc3985 = true
} else if len(yyv3985) != 0 {
yyv3985 = yyv3985[:0]
yyc3985 = true
}
} else if yyl3985 > 0 {
var yyrr3985, yyrl3985 int
var yyrt3985 bool
if yyl3985 > cap(yyv3985) {
yyrg3985 := len(yyv3985) > 0
yyv23985 := yyv3985
yyrl3985, yyrt3985 = z.DecInferLen(yyl3985, z.DecBasicHandle().MaxInitLen, 488)
if yyrt3985 {
if yyrl3985 <= cap(yyv3985) {
yyv3985 = yyv3985[:yyrl3985]
} else {
yyv3985 = make([]Node, yyrl3985)
}
} else {
yyv3985 = make([]Node, yyrl3985)
}
yyc3985 = true
yyrr3985 = len(yyv3985)
if yyrg3985 {
copy(yyv3985, yyv23985)
}
} else if yyl3985 != len(yyv3985) {
yyv3985 = yyv3985[:yyl3985]
yyc3985 = true
}
yyj3985 := 0
for ; yyj3985 < yyrr3985; yyj3985++ {
yyh3985.ElemContainerState(yyj3985)
if r.TryDecodeAsNil() {
yyv3985[yyj3985] = Node{}
} else {
yyv3986 := &yyv3985[yyj3985]
yyv3986.CodecDecodeSelf(d)
}
}
if yyrt3985 {
for ; yyj3985 < yyl3985; yyj3985++ {
yyv3985 = append(yyv3985, Node{})
yyh3985.ElemContainerState(yyj3985)
if r.TryDecodeAsNil() {
yyv3985[yyj3985] = Node{}
} else {
yyv3987 := &yyv3985[yyj3985]
yyv3987.CodecDecodeSelf(d)
}
}
}
} else {
yyj3985 := 0
for ; !r.CheckBreak(); yyj3985++ {
if yyj3985 >= len(yyv3985) {
yyv3985 = append(yyv3985, Node{}) // var yyz3985 Node
yyc3985 = true
}
yyh3985.ElemContainerState(yyj3985)
if yyj3985 < len(yyv3985) {
if r.TryDecodeAsNil() {
yyv3985[yyj3985] = Node{}
} else {
yyv3988 := &yyv3985[yyj3985]
yyv3988.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3985 < len(yyv3985) {
yyv3985 = yyv3985[:yyj3985]
yyc3985 = true
} else if yyj3985 == 0 && yyv3985 == nil {
yyv3985 = []Node{}
yyc3985 = true
}
}
yyh3985.End()
if yyc3985 {
*v = yyv3985
}
}
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 _, yyv3989 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3989.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
yyv3990 := *v
yyh3990, yyl3990 := z.DecSliceHelperStart()
var yyc3990 bool
if yyl3990 == 0 {
if yyv3990 == nil {
yyv3990 = []FinalizerName{}
yyc3990 = true
} else if len(yyv3990) != 0 {
yyv3990 = yyv3990[:0]
yyc3990 = true
}
} else if yyl3990 > 0 {
var yyrr3990, yyrl3990 int
var yyrt3990 bool
if yyl3990 > cap(yyv3990) {
yyrl3990, yyrt3990 = z.DecInferLen(yyl3990, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3990 {
if yyrl3990 <= cap(yyv3990) {
yyv3990 = yyv3990[:yyrl3990]
} else {
yyv3990 = make([]FinalizerName, yyrl3990)
}
} else {
yyv3990 = make([]FinalizerName, yyrl3990)
}
yyc3990 = true
yyrr3990 = len(yyv3990)
} else if yyl3990 != len(yyv3990) {
yyv3990 = yyv3990[:yyl3990]
yyc3990 = true
}
yyj3990 := 0
for ; yyj3990 < yyrr3990; yyj3990++ {
yyh3990.ElemContainerState(yyj3990)
if r.TryDecodeAsNil() {
yyv3990[yyj3990] = ""
} else {
yyv3990[yyj3990] = FinalizerName(r.DecodeString())
}
}
if yyrt3990 {
for ; yyj3990 < yyl3990; yyj3990++ {
yyv3990 = append(yyv3990, "")
yyh3990.ElemContainerState(yyj3990)
if r.TryDecodeAsNil() {
yyv3990[yyj3990] = ""
} else {
yyv3990[yyj3990] = FinalizerName(r.DecodeString())
}
}
}
} else {
yyj3990 := 0
for ; !r.CheckBreak(); yyj3990++ {
if yyj3990 >= len(yyv3990) {
yyv3990 = append(yyv3990, "") // var yyz3990 FinalizerName
yyc3990 = true
}
yyh3990.ElemContainerState(yyj3990)
if yyj3990 < len(yyv3990) {
if r.TryDecodeAsNil() {
yyv3990[yyj3990] = ""
} else {
yyv3990[yyj3990] = FinalizerName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3990 < len(yyv3990) {
yyv3990 = yyv3990[:yyj3990]
yyc3990 = true
} else if yyj3990 == 0 && yyv3990 == nil {
yyv3990 = []FinalizerName{}
yyc3990 = true
}
}
yyh3990.End()
if yyc3990 {
*v = yyv3990
}
}
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 _, yyv3994 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3995 := &yyv3994
yy3995.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
yyv3996 := *v
yyh3996, yyl3996 := z.DecSliceHelperStart()
var yyc3996 bool
if yyl3996 == 0 {
if yyv3996 == nil {
yyv3996 = []Namespace{}
yyc3996 = true
} else if len(yyv3996) != 0 {
yyv3996 = yyv3996[:0]
yyc3996 = true
}
} else if yyl3996 > 0 {
var yyrr3996, yyrl3996 int
var yyrt3996 bool
if yyl3996 > cap(yyv3996) {
yyrg3996 := len(yyv3996) > 0
yyv23996 := yyv3996
yyrl3996, yyrt3996 = z.DecInferLen(yyl3996, z.DecBasicHandle().MaxInitLen, 232)
if yyrt3996 {
if yyrl3996 <= cap(yyv3996) {
yyv3996 = yyv3996[:yyrl3996]
} else {
yyv3996 = make([]Namespace, yyrl3996)
}
} else {
yyv3996 = make([]Namespace, yyrl3996)
}
yyc3996 = true
yyrr3996 = len(yyv3996)
if yyrg3996 {
copy(yyv3996, yyv23996)
}
} else if yyl3996 != len(yyv3996) {
yyv3996 = yyv3996[:yyl3996]
yyc3996 = true
}
yyj3996 := 0
for ; yyj3996 < yyrr3996; yyj3996++ {
yyh3996.ElemContainerState(yyj3996)
if r.TryDecodeAsNil() {
yyv3996[yyj3996] = Namespace{}
} else {
yyv3997 := &yyv3996[yyj3996]
yyv3997.CodecDecodeSelf(d)
}
}
if yyrt3996 {
for ; yyj3996 < yyl3996; yyj3996++ {
yyv3996 = append(yyv3996, Namespace{})
yyh3996.ElemContainerState(yyj3996)
if r.TryDecodeAsNil() {
yyv3996[yyj3996] = Namespace{}
} else {
yyv3998 := &yyv3996[yyj3996]
yyv3998.CodecDecodeSelf(d)
}
}
}
} else {
yyj3996 := 0
for ; !r.CheckBreak(); yyj3996++ {
if yyj3996 >= len(yyv3996) {
yyv3996 = append(yyv3996, Namespace{}) // var yyz3996 Namespace
yyc3996 = true
}
yyh3996.ElemContainerState(yyj3996)
if yyj3996 < len(yyv3996) {
if r.TryDecodeAsNil() {
yyv3996[yyj3996] = Namespace{}
} else {
yyv3999 := &yyv3996[yyj3996]
yyv3999.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3996 < len(yyv3996) {
yyv3996 = yyv3996[:yyj3996]
yyc3996 = true
} else if yyj3996 == 0 && yyv3996 == nil {
yyv3996 = []Namespace{}
yyc3996 = true
}
}
yyh3996.End()
if yyc3996 {
*v = yyv3996
}
}
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 _, yyv4000 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4001 := &yyv4000
yy4001.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
yyv4002 := *v
yyh4002, yyl4002 := z.DecSliceHelperStart()
var yyc4002 bool
if yyl4002 == 0 {
if yyv4002 == nil {
yyv4002 = []Event{}
yyc4002 = true
} else if len(yyv4002) != 0 {
yyv4002 = yyv4002[:0]
yyc4002 = true
}
} else if yyl4002 > 0 {
var yyrr4002, yyrl4002 int
var yyrt4002 bool
if yyl4002 > cap(yyv4002) {
yyrg4002 := len(yyv4002) > 0
yyv24002 := yyv4002
yyrl4002, yyrt4002 = z.DecInferLen(yyl4002, z.DecBasicHandle().MaxInitLen, 440)
if yyrt4002 {
if yyrl4002 <= cap(yyv4002) {
yyv4002 = yyv4002[:yyrl4002]
} else {
yyv4002 = make([]Event, yyrl4002)
}
} else {
yyv4002 = make([]Event, yyrl4002)
}
yyc4002 = true
yyrr4002 = len(yyv4002)
if yyrg4002 {
copy(yyv4002, yyv24002)
}
} else if yyl4002 != len(yyv4002) {
yyv4002 = yyv4002[:yyl4002]
yyc4002 = true
}
yyj4002 := 0
for ; yyj4002 < yyrr4002; yyj4002++ {
yyh4002.ElemContainerState(yyj4002)
if r.TryDecodeAsNil() {
yyv4002[yyj4002] = Event{}
} else {
yyv4003 := &yyv4002[yyj4002]
yyv4003.CodecDecodeSelf(d)
}
}
if yyrt4002 {
for ; yyj4002 < yyl4002; yyj4002++ {
yyv4002 = append(yyv4002, Event{})
yyh4002.ElemContainerState(yyj4002)
if r.TryDecodeAsNil() {
yyv4002[yyj4002] = Event{}
} else {
yyv4004 := &yyv4002[yyj4002]
yyv4004.CodecDecodeSelf(d)
}
}
}
} else {
yyj4002 := 0
for ; !r.CheckBreak(); yyj4002++ {
if yyj4002 >= len(yyv4002) {
yyv4002 = append(yyv4002, Event{}) // var yyz4002 Event
yyc4002 = true
}
yyh4002.ElemContainerState(yyj4002)
if yyj4002 < len(yyv4002) {
if r.TryDecodeAsNil() {
yyv4002[yyj4002] = Event{}
} else {
yyv4005 := &yyv4002[yyj4002]
yyv4005.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4002 < len(yyv4002) {
yyv4002 = yyv4002[:yyj4002]
yyc4002 = true
} else if yyj4002 == 0 && yyv4002 == nil {
yyv4002 = []Event{}
yyc4002 = true
}
}
yyh4002.End()
if yyc4002 {
*v = yyv4002
}
}
func (x codecSelfer1234) encSliceruntime_Object(v []pkg8_runtime.Object, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4006 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyv4006 == nil {
r.EncodeNil()
} else {
yym4007 := z.EncBinary()
_ = yym4007
if false {
} else if z.HasExtensions() && z.EncExt(yyv4006) {
} else {
z.EncFallback(yyv4006)
}
}
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg8_runtime.Object, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4008 := *v
yyh4008, yyl4008 := z.DecSliceHelperStart()
var yyc4008 bool
if yyl4008 == 0 {
if yyv4008 == nil {
yyv4008 = []pkg8_runtime.Object{}
yyc4008 = true
} else if len(yyv4008) != 0 {
yyv4008 = yyv4008[:0]
yyc4008 = true
}
} else if yyl4008 > 0 {
var yyrr4008, yyrl4008 int
var yyrt4008 bool
if yyl4008 > cap(yyv4008) {
yyrg4008 := len(yyv4008) > 0
yyv24008 := yyv4008
yyrl4008, yyrt4008 = z.DecInferLen(yyl4008, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4008 {
if yyrl4008 <= cap(yyv4008) {
yyv4008 = yyv4008[:yyrl4008]
} else {
yyv4008 = make([]pkg8_runtime.Object, yyrl4008)
}
} else {
yyv4008 = make([]pkg8_runtime.Object, yyrl4008)
}
yyc4008 = true
yyrr4008 = len(yyv4008)
if yyrg4008 {
copy(yyv4008, yyv24008)
}
} else if yyl4008 != len(yyv4008) {
yyv4008 = yyv4008[:yyl4008]
yyc4008 = true
}
yyj4008 := 0
for ; yyj4008 < yyrr4008; yyj4008++ {
yyh4008.ElemContainerState(yyj4008)
if r.TryDecodeAsNil() {
yyv4008[yyj4008] = nil
} else {
yyv4009 := &yyv4008[yyj4008]
yym4010 := z.DecBinary()
_ = yym4010
if false {
} else if z.HasExtensions() && z.DecExt(yyv4009) {
} else {
z.DecFallback(yyv4009, true)
}
}
}
if yyrt4008 {
for ; yyj4008 < yyl4008; yyj4008++ {
yyv4008 = append(yyv4008, nil)
yyh4008.ElemContainerState(yyj4008)
if r.TryDecodeAsNil() {
yyv4008[yyj4008] = nil
} else {
yyv4011 := &yyv4008[yyj4008]
yym4012 := z.DecBinary()
_ = yym4012
if false {
} else if z.HasExtensions() && z.DecExt(yyv4011) {
} else {
z.DecFallback(yyv4011, true)
}
}
}
}
} else {
yyj4008 := 0
for ; !r.CheckBreak(); yyj4008++ {
if yyj4008 >= len(yyv4008) {
yyv4008 = append(yyv4008, nil) // var yyz4008 pkg8_runtime.Object
yyc4008 = true
}
yyh4008.ElemContainerState(yyj4008)
if yyj4008 < len(yyv4008) {
if r.TryDecodeAsNil() {
yyv4008[yyj4008] = nil
} else {
yyv4013 := &yyv4008[yyj4008]
yym4014 := z.DecBinary()
_ = yym4014
if false {
} else if z.HasExtensions() && z.DecExt(yyv4013) {
} else {
z.DecFallback(yyv4013, true)
}
}
} else {
z.DecSwallow()
}
}
if yyj4008 < len(yyv4008) {
yyv4008 = yyv4008[:yyj4008]
yyc4008 = true
} else if yyj4008 == 0 && yyv4008 == nil {
yyv4008 = []pkg8_runtime.Object{}
yyc4008 = true
}
}
yyh4008.End()
if yyc4008 {
*v = yyv4008
}
}
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 _, yyv4015 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4016 := &yyv4015
yy4016.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
yyv4017 := *v
yyh4017, yyl4017 := z.DecSliceHelperStart()
var yyc4017 bool
if yyl4017 == 0 {
if yyv4017 == nil {
yyv4017 = []LimitRangeItem{}
yyc4017 = true
} else if len(yyv4017) != 0 {
yyv4017 = yyv4017[:0]
yyc4017 = true
}
} else if yyl4017 > 0 {
var yyrr4017, yyrl4017 int
var yyrt4017 bool
if yyl4017 > cap(yyv4017) {
yyrg4017 := len(yyv4017) > 0
yyv24017 := yyv4017
yyrl4017, yyrt4017 = z.DecInferLen(yyl4017, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4017 {
if yyrl4017 <= cap(yyv4017) {
yyv4017 = yyv4017[:yyrl4017]
} else {
yyv4017 = make([]LimitRangeItem, yyrl4017)
}
} else {
yyv4017 = make([]LimitRangeItem, yyrl4017)
}
yyc4017 = true
yyrr4017 = len(yyv4017)
if yyrg4017 {
copy(yyv4017, yyv24017)
}
} else if yyl4017 != len(yyv4017) {
yyv4017 = yyv4017[:yyl4017]
yyc4017 = true
}
yyj4017 := 0
for ; yyj4017 < yyrr4017; yyj4017++ {
yyh4017.ElemContainerState(yyj4017)
if r.TryDecodeAsNil() {
yyv4017[yyj4017] = LimitRangeItem{}
} else {
yyv4018 := &yyv4017[yyj4017]
yyv4018.CodecDecodeSelf(d)
}
}
if yyrt4017 {
for ; yyj4017 < yyl4017; yyj4017++ {
yyv4017 = append(yyv4017, LimitRangeItem{})
yyh4017.ElemContainerState(yyj4017)
if r.TryDecodeAsNil() {
yyv4017[yyj4017] = LimitRangeItem{}
} else {
yyv4019 := &yyv4017[yyj4017]
yyv4019.CodecDecodeSelf(d)
}
}
}
} else {
yyj4017 := 0
for ; !r.CheckBreak(); yyj4017++ {
if yyj4017 >= len(yyv4017) {
yyv4017 = append(yyv4017, LimitRangeItem{}) // var yyz4017 LimitRangeItem
yyc4017 = true
}
yyh4017.ElemContainerState(yyj4017)
if yyj4017 < len(yyv4017) {
if r.TryDecodeAsNil() {
yyv4017[yyj4017] = LimitRangeItem{}
} else {
yyv4020 := &yyv4017[yyj4017]
yyv4020.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4017 < len(yyv4017) {
yyv4017 = yyv4017[:yyj4017]
yyc4017 = true
} else if yyj4017 == 0 && yyv4017 == nil {
yyv4017 = []LimitRangeItem{}
yyc4017 = true
}
}
yyh4017.End()
if yyc4017 {
*v = yyv4017
}
}
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 _, yyv4021 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4022 := &yyv4021
yy4022.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
yyv4023 := *v
yyh4023, yyl4023 := z.DecSliceHelperStart()
var yyc4023 bool
if yyl4023 == 0 {
if yyv4023 == nil {
yyv4023 = []LimitRange{}
yyc4023 = true
} else if len(yyv4023) != 0 {
yyv4023 = yyv4023[:0]
yyc4023 = true
}
} else if yyl4023 > 0 {
var yyrr4023, yyrl4023 int
var yyrt4023 bool
if yyl4023 > cap(yyv4023) {
yyrg4023 := len(yyv4023) > 0
yyv24023 := yyv4023
yyrl4023, yyrt4023 = z.DecInferLen(yyl4023, z.DecBasicHandle().MaxInitLen, 216)
if yyrt4023 {
if yyrl4023 <= cap(yyv4023) {
yyv4023 = yyv4023[:yyrl4023]
} else {
yyv4023 = make([]LimitRange, yyrl4023)
}
} else {
yyv4023 = make([]LimitRange, yyrl4023)
}
yyc4023 = true
yyrr4023 = len(yyv4023)
if yyrg4023 {
copy(yyv4023, yyv24023)
}
} else if yyl4023 != len(yyv4023) {
yyv4023 = yyv4023[:yyl4023]
yyc4023 = true
}
yyj4023 := 0
for ; yyj4023 < yyrr4023; yyj4023++ {
yyh4023.ElemContainerState(yyj4023)
if r.TryDecodeAsNil() {
yyv4023[yyj4023] = LimitRange{}
} else {
yyv4024 := &yyv4023[yyj4023]
yyv4024.CodecDecodeSelf(d)
}
}
if yyrt4023 {
for ; yyj4023 < yyl4023; yyj4023++ {
yyv4023 = append(yyv4023, LimitRange{})
yyh4023.ElemContainerState(yyj4023)
if r.TryDecodeAsNil() {
yyv4023[yyj4023] = LimitRange{}
} else {
yyv4025 := &yyv4023[yyj4023]
yyv4025.CodecDecodeSelf(d)
}
}
}
} else {
yyj4023 := 0
for ; !r.CheckBreak(); yyj4023++ {
if yyj4023 >= len(yyv4023) {
yyv4023 = append(yyv4023, LimitRange{}) // var yyz4023 LimitRange
yyc4023 = true
}
yyh4023.ElemContainerState(yyj4023)
if yyj4023 < len(yyv4023) {
if r.TryDecodeAsNil() {
yyv4023[yyj4023] = LimitRange{}
} else {
yyv4026 := &yyv4023[yyj4023]
yyv4026.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4023 < len(yyv4023) {
yyv4023 = yyv4023[:yyj4023]
yyc4023 = true
} else if yyj4023 == 0 && yyv4023 == nil {
yyv4023 = []LimitRange{}
yyc4023 = true
}
}
yyh4023.End()
if yyc4023 {
*v = yyv4023
}
}
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 _, yyv4027 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4028 := &yyv4027
yy4028.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
yyv4029 := *v
yyh4029, yyl4029 := z.DecSliceHelperStart()
var yyc4029 bool
if yyl4029 == 0 {
if yyv4029 == nil {
yyv4029 = []ResourceQuota{}
yyc4029 = true
} else if len(yyv4029) != 0 {
yyv4029 = yyv4029[:0]
yyc4029 = true
}
} else if yyl4029 > 0 {
var yyrr4029, yyrl4029 int
var yyrt4029 bool
if yyl4029 > cap(yyv4029) {
yyrg4029 := len(yyv4029) > 0
yyv24029 := yyv4029
yyrl4029, yyrt4029 = z.DecInferLen(yyl4029, z.DecBasicHandle().MaxInitLen, 216)
if yyrt4029 {
if yyrl4029 <= cap(yyv4029) {
yyv4029 = yyv4029[:yyrl4029]
} else {
yyv4029 = make([]ResourceQuota, yyrl4029)
}
} else {
yyv4029 = make([]ResourceQuota, yyrl4029)
}
yyc4029 = true
yyrr4029 = len(yyv4029)
if yyrg4029 {
copy(yyv4029, yyv24029)
}
} else if yyl4029 != len(yyv4029) {
yyv4029 = yyv4029[:yyl4029]
yyc4029 = true
}
yyj4029 := 0
for ; yyj4029 < yyrr4029; yyj4029++ {
yyh4029.ElemContainerState(yyj4029)
if r.TryDecodeAsNil() {
yyv4029[yyj4029] = ResourceQuota{}
} else {
yyv4030 := &yyv4029[yyj4029]
yyv4030.CodecDecodeSelf(d)
}
}
if yyrt4029 {
for ; yyj4029 < yyl4029; yyj4029++ {
yyv4029 = append(yyv4029, ResourceQuota{})
yyh4029.ElemContainerState(yyj4029)
if r.TryDecodeAsNil() {
yyv4029[yyj4029] = ResourceQuota{}
} else {
yyv4031 := &yyv4029[yyj4029]
yyv4031.CodecDecodeSelf(d)
}
}
}
} else {
yyj4029 := 0
for ; !r.CheckBreak(); yyj4029++ {
if yyj4029 >= len(yyv4029) {
yyv4029 = append(yyv4029, ResourceQuota{}) // var yyz4029 ResourceQuota
yyc4029 = true
}
yyh4029.ElemContainerState(yyj4029)
if yyj4029 < len(yyv4029) {
if r.TryDecodeAsNil() {
yyv4029[yyj4029] = ResourceQuota{}
} else {
yyv4032 := &yyv4029[yyj4029]
yyv4032.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4029 < len(yyv4029) {
yyv4029 = yyv4029[:yyj4029]
yyc4029 = true
} else if yyj4029 == 0 && yyv4029 == nil {
yyv4029 = []ResourceQuota{}
yyc4029 = true
}
}
yyh4029.End()
if yyc4029 {
*v = yyv4029
}
}
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 yyk4033, yyv4033 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym4034 := z.EncBinary()
_ = yym4034
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yyk4033))
}
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyv4033 == nil {
r.EncodeNil()
} else {
yym4035 := z.EncBinary()
_ = yym4035
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4033))
}
}
}
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
yyv4036 := *v
yyl4036 := r.ReadMapStart()
yybh4036 := z.DecBasicHandle()
if yyv4036 == nil {
yyrl4036, _ := z.DecInferLen(yyl4036, yybh4036.MaxInitLen, 40)
yyv4036 = make(map[string][]uint8, yyrl4036)
*v = yyv4036
}
var yymk4036 string
var yymv4036 []uint8
var yymg4036 bool
if yybh4036.MapValueReset {
yymg4036 = true
}
if yyl4036 > 0 {
for yyj4036 := 0; yyj4036 < yyl4036; yyj4036++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4036 = ""
} else {
yymk4036 = string(r.DecodeString())
}
if yymg4036 {
yymv4036 = yyv4036[yymk4036]
} else {
yymv4036 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4036 = nil
} else {
yyv4038 := &yymv4036
yym4039 := z.DecBinary()
_ = yym4039
if false {
} else {
*yyv4038 = r.DecodeBytes(*(*[]byte)(yyv4038), false, false)
}
}
if yyv4036 != nil {
yyv4036[yymk4036] = yymv4036
}
}
} else if yyl4036 < 0 {
for yyj4036 := 0; !r.CheckBreak(); yyj4036++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4036 = ""
} else {
yymk4036 = string(r.DecodeString())
}
if yymg4036 {
yymv4036 = yyv4036[yymk4036]
} else {
yymv4036 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4036 = nil
} else {
yyv4041 := &yymv4036
yym4042 := z.DecBinary()
_ = yym4042
if false {
} else {
*yyv4041 = r.DecodeBytes(*(*[]byte)(yyv4041), false, false)
}
}
if yyv4036 != nil {
yyv4036[yymk4036] = yymv4036
}
}
} // 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 _, yyv4043 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4044 := &yyv4043
yy4044.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
yyv4045 := *v
yyh4045, yyl4045 := z.DecSliceHelperStart()
var yyc4045 bool
if yyl4045 == 0 {
if yyv4045 == nil {
yyv4045 = []Secret{}
yyc4045 = true
} else if len(yyv4045) != 0 {
yyv4045 = yyv4045[:0]
yyc4045 = true
}
} else if yyl4045 > 0 {
var yyrr4045, yyrl4045 int
var yyrt4045 bool
if yyl4045 > cap(yyv4045) {
yyrg4045 := len(yyv4045) > 0
yyv24045 := yyv4045
yyrl4045, yyrt4045 = z.DecInferLen(yyl4045, z.DecBasicHandle().MaxInitLen, 216)
if yyrt4045 {
if yyrl4045 <= cap(yyv4045) {
yyv4045 = yyv4045[:yyrl4045]
} else {
yyv4045 = make([]Secret, yyrl4045)
}
} else {
yyv4045 = make([]Secret, yyrl4045)
}
yyc4045 = true
yyrr4045 = len(yyv4045)
if yyrg4045 {
copy(yyv4045, yyv24045)
}
} else if yyl4045 != len(yyv4045) {
yyv4045 = yyv4045[:yyl4045]
yyc4045 = true
}
yyj4045 := 0
for ; yyj4045 < yyrr4045; yyj4045++ {
yyh4045.ElemContainerState(yyj4045)
if r.TryDecodeAsNil() {
yyv4045[yyj4045] = Secret{}
} else {
yyv4046 := &yyv4045[yyj4045]
yyv4046.CodecDecodeSelf(d)
}
}
if yyrt4045 {
for ; yyj4045 < yyl4045; yyj4045++ {
yyv4045 = append(yyv4045, Secret{})
yyh4045.ElemContainerState(yyj4045)
if r.TryDecodeAsNil() {
yyv4045[yyj4045] = Secret{}
} else {
yyv4047 := &yyv4045[yyj4045]
yyv4047.CodecDecodeSelf(d)
}
}
}
} else {
yyj4045 := 0
for ; !r.CheckBreak(); yyj4045++ {
if yyj4045 >= len(yyv4045) {
yyv4045 = append(yyv4045, Secret{}) // var yyz4045 Secret
yyc4045 = true
}
yyh4045.ElemContainerState(yyj4045)
if yyj4045 < len(yyv4045) {
if r.TryDecodeAsNil() {
yyv4045[yyj4045] = Secret{}
} else {
yyv4048 := &yyv4045[yyj4045]
yyv4048.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4045 < len(yyv4045) {
yyv4045 = yyv4045[:yyj4045]
yyc4045 = true
} else if yyj4045 == 0 && yyv4045 == nil {
yyv4045 = []Secret{}
yyc4045 = true
}
}
yyh4045.End()
if yyc4045 {
*v = yyv4045
}
}
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 _, yyv4049 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4050 := &yyv4049
yy4050.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
yyv4051 := *v
yyh4051, yyl4051 := z.DecSliceHelperStart()
var yyc4051 bool
if yyl4051 == 0 {
if yyv4051 == nil {
yyv4051 = []ConfigMap{}
yyc4051 = true
} else if len(yyv4051) != 0 {
yyv4051 = yyv4051[:0]
yyc4051 = true
}
} else if yyl4051 > 0 {
var yyrr4051, yyrl4051 int
var yyrt4051 bool
if yyl4051 > cap(yyv4051) {
yyrg4051 := len(yyv4051) > 0
yyv24051 := yyv4051
yyrl4051, yyrt4051 = z.DecInferLen(yyl4051, z.DecBasicHandle().MaxInitLen, 200)
if yyrt4051 {
if yyrl4051 <= cap(yyv4051) {
yyv4051 = yyv4051[:yyrl4051]
} else {
yyv4051 = make([]ConfigMap, yyrl4051)
}
} else {
yyv4051 = make([]ConfigMap, yyrl4051)
}
yyc4051 = true
yyrr4051 = len(yyv4051)
if yyrg4051 {
copy(yyv4051, yyv24051)
}
} else if yyl4051 != len(yyv4051) {
yyv4051 = yyv4051[:yyl4051]
yyc4051 = true
}
yyj4051 := 0
for ; yyj4051 < yyrr4051; yyj4051++ {
yyh4051.ElemContainerState(yyj4051)
if r.TryDecodeAsNil() {
yyv4051[yyj4051] = ConfigMap{}
} else {
yyv4052 := &yyv4051[yyj4051]
yyv4052.CodecDecodeSelf(d)
}
}
if yyrt4051 {
for ; yyj4051 < yyl4051; yyj4051++ {
yyv4051 = append(yyv4051, ConfigMap{})
yyh4051.ElemContainerState(yyj4051)
if r.TryDecodeAsNil() {
yyv4051[yyj4051] = ConfigMap{}
} else {
yyv4053 := &yyv4051[yyj4051]
yyv4053.CodecDecodeSelf(d)
}
}
}
} else {
yyj4051 := 0
for ; !r.CheckBreak(); yyj4051++ {
if yyj4051 >= len(yyv4051) {
yyv4051 = append(yyv4051, ConfigMap{}) // var yyz4051 ConfigMap
yyc4051 = true
}
yyh4051.ElemContainerState(yyj4051)
if yyj4051 < len(yyv4051) {
if r.TryDecodeAsNil() {
yyv4051[yyj4051] = ConfigMap{}
} else {
yyv4054 := &yyv4051[yyj4051]
yyv4054.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4051 < len(yyv4051) {
yyv4051 = yyv4051[:yyj4051]
yyc4051 = true
} else if yyj4051 == 0 && yyv4051 == nil {
yyv4051 = []ConfigMap{}
yyc4051 = true
}
}
yyh4051.End()
if yyc4051 {
*v = yyv4051
}
}
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 _, yyv4055 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4056 := &yyv4055
yy4056.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
yyv4057 := *v
yyh4057, yyl4057 := z.DecSliceHelperStart()
var yyc4057 bool
if yyl4057 == 0 {
if yyv4057 == nil {
yyv4057 = []ComponentCondition{}
yyc4057 = true
} else if len(yyv4057) != 0 {
yyv4057 = yyv4057[:0]
yyc4057 = true
}
} else if yyl4057 > 0 {
var yyrr4057, yyrl4057 int
var yyrt4057 bool
if yyl4057 > cap(yyv4057) {
yyrg4057 := len(yyv4057) > 0
yyv24057 := yyv4057
yyrl4057, yyrt4057 = z.DecInferLen(yyl4057, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4057 {
if yyrl4057 <= cap(yyv4057) {
yyv4057 = yyv4057[:yyrl4057]
} else {
yyv4057 = make([]ComponentCondition, yyrl4057)
}
} else {
yyv4057 = make([]ComponentCondition, yyrl4057)
}
yyc4057 = true
yyrr4057 = len(yyv4057)
if yyrg4057 {
copy(yyv4057, yyv24057)
}
} else if yyl4057 != len(yyv4057) {
yyv4057 = yyv4057[:yyl4057]
yyc4057 = true
}
yyj4057 := 0
for ; yyj4057 < yyrr4057; yyj4057++ {
yyh4057.ElemContainerState(yyj4057)
if r.TryDecodeAsNil() {
yyv4057[yyj4057] = ComponentCondition{}
} else {
yyv4058 := &yyv4057[yyj4057]
yyv4058.CodecDecodeSelf(d)
}
}
if yyrt4057 {
for ; yyj4057 < yyl4057; yyj4057++ {
yyv4057 = append(yyv4057, ComponentCondition{})
yyh4057.ElemContainerState(yyj4057)
if r.TryDecodeAsNil() {
yyv4057[yyj4057] = ComponentCondition{}
} else {
yyv4059 := &yyv4057[yyj4057]
yyv4059.CodecDecodeSelf(d)
}
}
}
} else {
yyj4057 := 0
for ; !r.CheckBreak(); yyj4057++ {
if yyj4057 >= len(yyv4057) {
yyv4057 = append(yyv4057, ComponentCondition{}) // var yyz4057 ComponentCondition
yyc4057 = true
}
yyh4057.ElemContainerState(yyj4057)
if yyj4057 < len(yyv4057) {
if r.TryDecodeAsNil() {
yyv4057[yyj4057] = ComponentCondition{}
} else {
yyv4060 := &yyv4057[yyj4057]
yyv4060.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4057 < len(yyv4057) {
yyv4057 = yyv4057[:yyj4057]
yyc4057 = true
} else if yyj4057 == 0 && yyv4057 == nil {
yyv4057 = []ComponentCondition{}
yyc4057 = true
}
}
yyh4057.End()
if yyc4057 {
*v = yyv4057
}
}
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 _, yyv4061 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4062 := &yyv4061
yy4062.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
yyv4063 := *v
yyh4063, yyl4063 := z.DecSliceHelperStart()
var yyc4063 bool
if yyl4063 == 0 {
if yyv4063 == nil {
yyv4063 = []ComponentStatus{}
yyc4063 = true
} else if len(yyv4063) != 0 {
yyv4063 = yyv4063[:0]
yyc4063 = true
}
} else if yyl4063 > 0 {
var yyrr4063, yyrl4063 int
var yyrt4063 bool
if yyl4063 > cap(yyv4063) {
yyrg4063 := len(yyv4063) > 0
yyv24063 := yyv4063
yyrl4063, yyrt4063 = z.DecInferLen(yyl4063, z.DecBasicHandle().MaxInitLen, 216)
if yyrt4063 {
if yyrl4063 <= cap(yyv4063) {
yyv4063 = yyv4063[:yyrl4063]
} else {
yyv4063 = make([]ComponentStatus, yyrl4063)
}
} else {
yyv4063 = make([]ComponentStatus, yyrl4063)
}
yyc4063 = true
yyrr4063 = len(yyv4063)
if yyrg4063 {
copy(yyv4063, yyv24063)
}
} else if yyl4063 != len(yyv4063) {
yyv4063 = yyv4063[:yyl4063]
yyc4063 = true
}
yyj4063 := 0
for ; yyj4063 < yyrr4063; yyj4063++ {
yyh4063.ElemContainerState(yyj4063)
if r.TryDecodeAsNil() {
yyv4063[yyj4063] = ComponentStatus{}
} else {
yyv4064 := &yyv4063[yyj4063]
yyv4064.CodecDecodeSelf(d)
}
}
if yyrt4063 {
for ; yyj4063 < yyl4063; yyj4063++ {
yyv4063 = append(yyv4063, ComponentStatus{})
yyh4063.ElemContainerState(yyj4063)
if r.TryDecodeAsNil() {
yyv4063[yyj4063] = ComponentStatus{}
} else {
yyv4065 := &yyv4063[yyj4063]
yyv4065.CodecDecodeSelf(d)
}
}
}
} else {
yyj4063 := 0
for ; !r.CheckBreak(); yyj4063++ {
if yyj4063 >= len(yyv4063) {
yyv4063 = append(yyv4063, ComponentStatus{}) // var yyz4063 ComponentStatus
yyc4063 = true
}
yyh4063.ElemContainerState(yyj4063)
if yyj4063 < len(yyv4063) {
if r.TryDecodeAsNil() {
yyv4063[yyj4063] = ComponentStatus{}
} else {
yyv4066 := &yyv4063[yyj4063]
yyv4066.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4063 < len(yyv4063) {
yyv4063 = yyv4063[:yyj4063]
yyc4063 = true
} else if yyj4063 == 0 && yyv4063 == nil {
yyv4063 = []ComponentStatus{}
yyc4063 = true
}
}
yyh4063.End()
if yyc4063 {
*v = yyv4063
}
}