kubernetes/pkg/api/types.generated.go
2016-01-14 10:40:56 -05:00

49433 lines
1.1 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
var yynn708 int
if yyr708 || yy2arr708 {
r.EncodeArrayStart(1)
} else {
yynn708 = 1
for _, b := range yyq708 {
if b {
yynn708++
}
}
r.EncodeMapStart(yynn708)
yynn708 = 0
}
if yyr708 || yy2arr708 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym710 := z.EncBinary()
_ = yym710
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
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 [5]bool
_, _, _ = yysep828, yyq828, yy2arr828
const yyr828 bool = false
yyq828[1] = x.User != ""
yyq828[2] = x.SecretFile != ""
yyq828[3] = x.SecretRef != nil
yyq828[4] = x.ReadOnly != false
var yynn828 int
if yyr828 || yy2arr828 {
r.EncodeArrayStart(5)
} 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.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq828[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym834 := z.EncBinary()
_ = yym834
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[2] {
yym836 := z.EncBinary()
_ = yym836
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq828[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym837 := z.EncBinary()
_ = yym837
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[3] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq828[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr828 || yy2arr828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq828[4] {
yym840 := z.EncBinary()
_ = yym840
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq828[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym841 := z.EncBinary()
_ = yym841
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
yym842 := z.DecBinary()
_ = yym842
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct843 := r.ContainerType()
if yyct843 == codecSelferValueTypeMap1234 {
yyl843 := r.ReadMapStart()
if yyl843 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl843, d)
}
} else if yyct843 == codecSelferValueTypeArray1234 {
yyl843 := r.ReadArrayStart()
if yyl843 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl843, 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 yys844Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys844Slc
var yyhl844 bool = l >= 0
for yyj844 := 0; ; yyj844++ {
if yyhl844 {
if yyj844 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys844Slc = r.DecodeBytes(yys844Slc, true, true)
yys844 := string(yys844Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys844 {
case "monitors":
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv845 := &x.Monitors
yym846 := z.DecBinary()
_ = yym846
if false {
} else {
z.F.DecSliceStringX(yyv845, false, d)
}
}
case "user":
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
case "secretFile":
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys844)
} // end switch yys844
} // end for yyj844
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 yyj851 int
var yyb851 bool
var yyhl851 bool = l >= 0
yyj851++
if yyhl851 {
yyb851 = yyj851 > l
} else {
yyb851 = r.CheckBreak()
}
if yyb851 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv852 := &x.Monitors
yym853 := z.DecBinary()
_ = yym853
if false {
} else {
z.F.DecSliceStringX(yyv852, false, d)
}
}
yyj851++
if yyhl851 {
yyb851 = yyj851 > l
} else {
yyb851 = r.CheckBreak()
}
if yyb851 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj851++
if yyhl851 {
yyb851 = yyj851 > l
} else {
yyb851 = r.CheckBreak()
}
if yyb851 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
yyj851++
if yyhl851 {
yyb851 = yyj851 > l
} else {
yyb851 = r.CheckBreak()
}
if yyb851 {
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)
}
yyj851++
if yyhl851 {
yyb851 = yyj851 > l
} else {
yyb851 = r.CheckBreak()
}
if yyb851 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj851++
if yyhl851 {
yyb851 = yyj851 > l
} else {
yyb851 = r.CheckBreak()
}
if yyb851 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj851-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 {
yym858 := z.EncBinary()
_ = yym858
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep859 := !z.EncBinary()
yy2arr859 := z.EncBasicHandle().StructToArray
var yyq859 [1]bool
_, _, _ = yysep859, yyq859, yy2arr859
const yyr859 bool = false
var yynn859 int
if yyr859 || yy2arr859 {
r.EncodeArrayStart(1)
} else {
yynn859 = 1
for _, b := range yyq859 {
if b {
yynn859++
}
}
r.EncodeMapStart(yynn859)
yynn859 = 0
}
if yyr859 || yy2arr859 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym861 := z.EncBinary()
_ = yym861
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)
yym862 := z.EncBinary()
_ = yym862
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
}
}
if yyr859 || yy2arr859 {
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
yym863 := z.DecBinary()
_ = yym863
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct864 := r.ContainerType()
if yyct864 == codecSelferValueTypeMap1234 {
yyl864 := r.ReadMapStart()
if yyl864 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl864, d)
}
} else if yyct864 == codecSelferValueTypeArray1234 {
yyl864 := r.ReadArrayStart()
if yyl864 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl864, 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 yys865Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys865Slc
var yyhl865 bool = l >= 0
for yyj865 := 0; ; yyj865++ {
if yyhl865 {
if yyj865 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys865Slc = r.DecodeBytes(yys865Slc, true, true)
yys865 := string(yys865Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys865 {
case "datasetName":
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys865)
} // end switch yys865
} // end for yyj865
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 yyj867 int
var yyb867 bool
var yyhl867 bool = l >= 0
yyj867++
if yyhl867 {
yyb867 = yyj867 > l
} else {
yyb867 = r.CheckBreak()
}
if yyb867 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
for {
yyj867++
if yyhl867 {
yyb867 = yyj867 > l
} else {
yyb867 = r.CheckBreak()
}
if yyb867 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj867-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 {
yym869 := z.EncBinary()
_ = yym869
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep870 := !z.EncBinary()
yy2arr870 := z.EncBasicHandle().StructToArray
var yyq870 [1]bool
_, _, _ = yysep870, yyq870, yy2arr870
const yyr870 bool = false
yyq870[0] = len(x.Items) != 0
var yynn870 int
if yyr870 || yy2arr870 {
r.EncodeArrayStart(1)
} else {
yynn870 = 0
for _, b := range yyq870 {
if b {
yynn870++
}
}
r.EncodeMapStart(yynn870)
yynn870 = 0
}
if yyr870 || yy2arr870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq870[0] {
if x.Items == nil {
r.EncodeNil()
} else {
yym872 := z.EncBinary()
_ = yym872
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq870[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym873 := z.EncBinary()
_ = yym873
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
}
}
if yyr870 || yy2arr870 {
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
yym874 := z.DecBinary()
_ = yym874
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct875 := r.ContainerType()
if yyct875 == codecSelferValueTypeMap1234 {
yyl875 := r.ReadMapStart()
if yyl875 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl875, d)
}
} else if yyct875 == codecSelferValueTypeArray1234 {
yyl875 := r.ReadArrayStart()
if yyl875 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl875, 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 yys876Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys876Slc
var yyhl876 bool = l >= 0
for yyj876 := 0; ; yyj876++ {
if yyhl876 {
if yyj876 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys876Slc = r.DecodeBytes(yys876Slc, true, true)
yys876 := string(yys876Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys876 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv877 := &x.Items
yym878 := z.DecBinary()
_ = yym878
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv877), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys876)
} // end switch yys876
} // end for yyj876
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 yyj879 int
var yyb879 bool
var yyhl879 bool = l >= 0
yyj879++
if yyhl879 {
yyb879 = yyj879 > l
} else {
yyb879 = r.CheckBreak()
}
if yyb879 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv880 := &x.Items
yym881 := z.DecBinary()
_ = yym881
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv880), d)
}
}
for {
yyj879++
if yyhl879 {
yyb879 = yyj879 > l
} else {
yyb879 = r.CheckBreak()
}
if yyb879 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj879-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 {
yym882 := z.EncBinary()
_ = yym882
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep883 := !z.EncBinary()
yy2arr883 := z.EncBasicHandle().StructToArray
var yyq883 [2]bool
_, _, _ = yysep883, yyq883, yy2arr883
const yyr883 bool = false
var yynn883 int
if yyr883 || yy2arr883 {
r.EncodeArrayStart(2)
} else {
yynn883 = 2
for _, b := range yyq883 {
if b {
yynn883++
}
}
r.EncodeMapStart(yynn883)
yynn883 = 0
}
if yyr883 || yy2arr883 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym885 := z.EncBinary()
_ = yym885
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)
yym886 := z.EncBinary()
_ = yym886
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr883 || yy2arr883 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy888 := &x.FieldRef
yy888.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy889 := &x.FieldRef
yy889.CodecEncodeSelf(e)
}
if yyr883 || yy2arr883 {
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
yym890 := z.DecBinary()
_ = yym890
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct891 := r.ContainerType()
if yyct891 == codecSelferValueTypeMap1234 {
yyl891 := r.ReadMapStart()
if yyl891 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl891, d)
}
} else if yyct891 == codecSelferValueTypeArray1234 {
yyl891 := r.ReadArrayStart()
if yyl891 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl891, 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 yys892Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys892Slc
var yyhl892 bool = l >= 0
for yyj892 := 0; ; yyj892++ {
if yyhl892 {
if yyj892 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys892Slc = r.DecodeBytes(yys892Slc, true, true)
yys892 := string(yys892Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys892 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "fieldRef":
if r.TryDecodeAsNil() {
x.FieldRef = ObjectFieldSelector{}
} else {
yyv894 := &x.FieldRef
yyv894.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys892)
} // end switch yys892
} // end for yyj892
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 yyj895 int
var yyb895 bool
var yyhl895 bool = l >= 0
yyj895++
if yyhl895 {
yyb895 = yyj895 > l
} else {
yyb895 = r.CheckBreak()
}
if yyb895 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj895++
if yyhl895 {
yyb895 = yyj895 > l
} else {
yyb895 = r.CheckBreak()
}
if yyb895 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldRef = ObjectFieldSelector{}
} else {
yyv897 := &x.FieldRef
yyv897.CodecDecodeSelf(d)
}
for {
yyj895++
if yyhl895 {
yyb895 = yyj895 > l
} else {
yyb895 = r.CheckBreak()
}
if yyb895 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj895-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 {
yym898 := z.EncBinary()
_ = yym898
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep899 := !z.EncBinary()
yy2arr899 := z.EncBasicHandle().StructToArray
var yyq899 [5]bool
_, _, _ = yysep899, yyq899, yy2arr899
const yyr899 bool = false
yyq899[0] = x.Name != ""
yyq899[1] = x.HostPort != 0
yyq899[3] = x.Protocol != ""
yyq899[4] = x.HostIP != ""
var yynn899 int
if yyr899 || yy2arr899 {
r.EncodeArrayStart(5)
} else {
yynn899 = 1
for _, b := range yyq899 {
if b {
yynn899++
}
}
r.EncodeMapStart(yynn899)
yynn899 = 0
}
if yyr899 || yy2arr899 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq899[0] {
yym901 := z.EncBinary()
_ = yym901
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq899[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym902 := z.EncBinary()
_ = yym902
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr899 || yy2arr899 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq899[1] {
yym904 := z.EncBinary()
_ = yym904
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq899[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym905 := z.EncBinary()
_ = yym905
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
}
}
if yyr899 || yy2arr899 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym907 := z.EncBinary()
_ = yym907
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym908 := z.EncBinary()
_ = yym908
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
}
if yyr899 || yy2arr899 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq899[3] {
x.Protocol.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq899[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Protocol.CodecEncodeSelf(e)
}
}
if yyr899 || yy2arr899 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq899[4] {
yym911 := z.EncBinary()
_ = yym911
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq899[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym912 := z.EncBinary()
_ = yym912
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr899 || yy2arr899 {
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
yym913 := z.DecBinary()
_ = yym913
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct914 := r.ContainerType()
if yyct914 == codecSelferValueTypeMap1234 {
yyl914 := r.ReadMapStart()
if yyl914 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl914, d)
}
} else if yyct914 == codecSelferValueTypeArray1234 {
yyl914 := r.ReadArrayStart()
if yyl914 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl914, 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 yys915Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys915Slc
var yyhl915 bool = l >= 0
for yyj915 := 0; ; yyj915++ {
if yyhl915 {
if yyj915 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys915Slc = r.DecodeBytes(yys915Slc, true, true)
yys915 := string(yys915Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys915 {
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, yys915)
} // end switch yys915
} // end for yyj915
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 yyj921 int
var yyb921 bool
var yyhl921 bool = l >= 0
yyj921++
if yyhl921 {
yyb921 = yyj921 > l
} else {
yyb921 = r.CheckBreak()
}
if yyb921 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj921++
if yyhl921 {
yyb921 = yyj921 > l
} else {
yyb921 = r.CheckBreak()
}
if yyb921 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj921++
if yyhl921 {
yyb921 = yyj921 > l
} else {
yyb921 = r.CheckBreak()
}
if yyb921 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj921++
if yyhl921 {
yyb921 = yyj921 > l
} else {
yyb921 = r.CheckBreak()
}
if yyb921 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj921++
if yyhl921 {
yyb921 = yyj921 > l
} else {
yyb921 = r.CheckBreak()
}
if yyb921 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
for {
yyj921++
if yyhl921 {
yyb921 = yyj921 > l
} else {
yyb921 = r.CheckBreak()
}
if yyb921 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj921-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *VolumeMount) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym927 := z.EncBinary()
_ = yym927
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep928 := !z.EncBinary()
yy2arr928 := z.EncBasicHandle().StructToArray
var yyq928 [3]bool
_, _, _ = yysep928, yyq928, yy2arr928
const yyr928 bool = false
yyq928[1] = x.ReadOnly != false
var yynn928 int
if yyr928 || yy2arr928 {
r.EncodeArrayStart(3)
} else {
yynn928 = 2
for _, b := range yyq928 {
if b {
yynn928++
}
}
r.EncodeMapStart(yynn928)
yynn928 = 0
}
if yyr928 || yy2arr928 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym930 := z.EncBinary()
_ = yym930
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)
yym931 := z.EncBinary()
_ = yym931
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr928 || yy2arr928 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq928[1] {
yym933 := z.EncBinary()
_ = yym933
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq928[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym934 := z.EncBinary()
_ = yym934
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr928 || yy2arr928 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym936 := z.EncBinary()
_ = yym936
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)
yym937 := z.EncBinary()
_ = yym937
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
}
}
if yyr928 || yy2arr928 {
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
yym938 := z.DecBinary()
_ = yym938
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct939 := r.ContainerType()
if yyct939 == codecSelferValueTypeMap1234 {
yyl939 := r.ReadMapStart()
if yyl939 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl939, d)
}
} else if yyct939 == codecSelferValueTypeArray1234 {
yyl939 := r.ReadArrayStart()
if yyl939 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl939, 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 yys940Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys940Slc
var yyhl940 bool = l >= 0
for yyj940 := 0; ; yyj940++ {
if yyhl940 {
if yyj940 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys940Slc = r.DecodeBytes(yys940Slc, true, true)
yys940 := string(yys940Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys940 {
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, yys940)
} // end switch yys940
} // end for yyj940
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 yyj944 int
var yyb944 bool
var yyhl944 bool = l >= 0
yyj944++
if yyhl944 {
yyb944 = yyj944 > l
} else {
yyb944 = r.CheckBreak()
}
if yyb944 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj944++
if yyhl944 {
yyb944 = yyj944 > l
} else {
yyb944 = r.CheckBreak()
}
if yyb944 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj944++
if yyhl944 {
yyb944 = yyj944 > l
} else {
yyb944 = r.CheckBreak()
}
if yyb944 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
for {
yyj944++
if yyhl944 {
yyb944 = yyj944 > l
} else {
yyb944 = r.CheckBreak()
}
if yyb944 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj944-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 {
yym948 := z.EncBinary()
_ = yym948
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep949 := !z.EncBinary()
yy2arr949 := z.EncBasicHandle().StructToArray
var yyq949 [3]bool
_, _, _ = yysep949, yyq949, yy2arr949
const yyr949 bool = false
yyq949[1] = x.Value != ""
yyq949[2] = x.ValueFrom != nil
var yynn949 int
if yyr949 || yy2arr949 {
r.EncodeArrayStart(3)
} else {
yynn949 = 1
for _, b := range yyq949 {
if b {
yynn949++
}
}
r.EncodeMapStart(yynn949)
yynn949 = 0
}
if yyr949 || yy2arr949 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym951 := z.EncBinary()
_ = yym951
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)
yym952 := z.EncBinary()
_ = yym952
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr949 || yy2arr949 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq949[1] {
yym954 := z.EncBinary()
_ = yym954
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq949[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym955 := z.EncBinary()
_ = yym955
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr949 || yy2arr949 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq949[2] {
if x.ValueFrom == nil {
r.EncodeNil()
} else {
x.ValueFrom.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq949[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 yyr949 || yy2arr949 {
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
yym957 := z.DecBinary()
_ = yym957
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct958 := r.ContainerType()
if yyct958 == codecSelferValueTypeMap1234 {
yyl958 := r.ReadMapStart()
if yyl958 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl958, d)
}
} else if yyct958 == codecSelferValueTypeArray1234 {
yyl958 := r.ReadArrayStart()
if yyl958 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl958, 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 yys959Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys959Slc
var yyhl959 bool = l >= 0
for yyj959 := 0; ; yyj959++ {
if yyhl959 {
if yyj959 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys959Slc = r.DecodeBytes(yys959Slc, true, true)
yys959 := string(yys959Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys959 {
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, yys959)
} // end switch yys959
} // end for yyj959
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 yyj963 int
var yyb963 bool
var yyhl963 bool = l >= 0
yyj963++
if yyhl963 {
yyb963 = yyj963 > l
} else {
yyb963 = r.CheckBreak()
}
if yyb963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj963++
if yyhl963 {
yyb963 = yyj963 > l
} else {
yyb963 = r.CheckBreak()
}
if yyb963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj963++
if yyhl963 {
yyb963 = yyj963 > l
} else {
yyb963 = r.CheckBreak()
}
if yyb963 {
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 {
yyj963++
if yyhl963 {
yyb963 = yyj963 > l
} else {
yyb963 = r.CheckBreak()
}
if yyb963 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj963-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 {
yym967 := z.EncBinary()
_ = yym967
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep968 := !z.EncBinary()
yy2arr968 := z.EncBasicHandle().StructToArray
var yyq968 [2]bool
_, _, _ = yysep968, yyq968, yy2arr968
const yyr968 bool = false
yyq968[0] = x.FieldRef != nil
yyq968[1] = x.ConfigMapKeyRef != nil
var yynn968 int
if yyr968 || yy2arr968 {
r.EncodeArrayStart(2)
} else {
yynn968 = 0
for _, b := range yyq968 {
if b {
yynn968++
}
}
r.EncodeMapStart(yynn968)
yynn968 = 0
}
if yyr968 || yy2arr968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq968[0] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq968[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 yyr968 || yy2arr968 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq968[1] {
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq968[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 yyr968 || yy2arr968 {
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
yym971 := z.DecBinary()
_ = yym971
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct972 := r.ContainerType()
if yyct972 == codecSelferValueTypeMap1234 {
yyl972 := r.ReadMapStart()
if yyl972 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl972, d)
}
} else if yyct972 == codecSelferValueTypeArray1234 {
yyl972 := r.ReadArrayStart()
if yyl972 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl972, 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 yys973Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys973Slc
var yyhl973 bool = l >= 0
for yyj973 := 0; ; yyj973++ {
if yyhl973 {
if yyj973 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys973Slc = r.DecodeBytes(yys973Slc, true, true)
yys973 := string(yys973Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys973 {
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)
}
default:
z.DecStructFieldNotFound(-1, yys973)
} // end switch yys973
} // end for yyj973
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 yyj976 int
var yyb976 bool
var yyhl976 bool = l >= 0
yyj976++
if yyhl976 {
yyb976 = yyj976 > l
} else {
yyb976 = r.CheckBreak()
}
if yyb976 {
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)
}
yyj976++
if yyhl976 {
yyb976 = yyj976 > l
} else {
yyb976 = r.CheckBreak()
}
if yyb976 {
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)
}
for {
yyj976++
if yyhl976 {
yyb976 = yyj976 > l
} else {
yyb976 = r.CheckBreak()
}
if yyb976 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj976-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 {
yym979 := z.EncBinary()
_ = yym979
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep980 := !z.EncBinary()
yy2arr980 := z.EncBasicHandle().StructToArray
var yyq980 [2]bool
_, _, _ = yysep980, yyq980, yy2arr980
const yyr980 bool = false
var yynn980 int
if yyr980 || yy2arr980 {
r.EncodeArrayStart(2)
} else {
yynn980 = 2
for _, b := range yyq980 {
if b {
yynn980++
}
}
r.EncodeMapStart(yynn980)
yynn980 = 0
}
if yyr980 || yy2arr980 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym982 := z.EncBinary()
_ = yym982
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)
yym983 := z.EncBinary()
_ = yym983
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr980 || yy2arr980 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym985 := z.EncBinary()
_ = yym985
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)
yym986 := z.EncBinary()
_ = yym986
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
if yyr980 || yy2arr980 {
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
yym987 := z.DecBinary()
_ = yym987
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct988 := r.ContainerType()
if yyct988 == codecSelferValueTypeMap1234 {
yyl988 := r.ReadMapStart()
if yyl988 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl988, d)
}
} else if yyct988 == codecSelferValueTypeArray1234 {
yyl988 := r.ReadArrayStart()
if yyl988 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl988, 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 yys989Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys989Slc
var yyhl989 bool = l >= 0
for yyj989 := 0; ; yyj989++ {
if yyhl989 {
if yyj989 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys989Slc = r.DecodeBytes(yys989Slc, true, true)
yys989 := string(yys989Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys989 {
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, yys989)
} // end switch yys989
} // end for yyj989
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 yyj992 int
var yyb992 bool
var yyhl992 bool = l >= 0
yyj992++
if yyhl992 {
yyb992 = yyj992 > l
} else {
yyb992 = r.CheckBreak()
}
if yyb992 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj992++
if yyhl992 {
yyb992 = yyj992 > l
} else {
yyb992 = r.CheckBreak()
}
if yyb992 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj992++
if yyhl992 {
yyb992 = yyj992 > l
} else {
yyb992 = r.CheckBreak()
}
if yyb992 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj992-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 {
yym995 := z.EncBinary()
_ = yym995
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep996 := !z.EncBinary()
yy2arr996 := z.EncBasicHandle().StructToArray
var yyq996 [2]bool
_, _, _ = yysep996, yyq996, yy2arr996
const yyr996 bool = false
var yynn996 int
if yyr996 || yy2arr996 {
r.EncodeArrayStart(2)
} else {
yynn996 = 2
for _, b := range yyq996 {
if b {
yynn996++
}
}
r.EncodeMapStart(yynn996)
yynn996 = 0
}
if yyr996 || yy2arr996 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym998 := z.EncBinary()
_ = yym998
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)
yym999 := z.EncBinary()
_ = yym999
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr996 || yy2arr996 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1001 := z.EncBinary()
_ = yym1001
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)
yym1002 := z.EncBinary()
_ = yym1002
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr996 || yy2arr996 {
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
yym1003 := z.DecBinary()
_ = yym1003
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1004 := r.ContainerType()
if yyct1004 == codecSelferValueTypeMap1234 {
yyl1004 := r.ReadMapStart()
if yyl1004 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1004, d)
}
} else if yyct1004 == codecSelferValueTypeArray1234 {
yyl1004 := r.ReadArrayStart()
if yyl1004 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1004, 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 yys1005Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1005Slc
var yyhl1005 bool = l >= 0
for yyj1005 := 0; ; yyj1005++ {
if yyhl1005 {
if yyj1005 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1005Slc = r.DecodeBytes(yys1005Slc, true, true)
yys1005 := string(yys1005Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1005 {
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, yys1005)
} // end switch yys1005
} // end for yyj1005
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 yyj1008 int
var yyb1008 bool
var yyhl1008 bool = l >= 0
yyj1008++
if yyhl1008 {
yyb1008 = yyj1008 > l
} else {
yyb1008 = r.CheckBreak()
}
if yyb1008 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1008++
if yyhl1008 {
yyb1008 = yyj1008 > l
} else {
yyb1008 = r.CheckBreak()
}
if yyb1008 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1008++
if yyhl1008 {
yyb1008 = yyj1008 > l
} else {
yyb1008 = r.CheckBreak()
}
if yyb1008 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1008-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 {
yym1011 := z.EncBinary()
_ = yym1011
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1012 := !z.EncBinary()
yy2arr1012 := z.EncBasicHandle().StructToArray
var yyq1012 [4]bool
_, _, _ = yysep1012, yyq1012, yy2arr1012
const yyr1012 bool = false
yyq1012[0] = x.Path != ""
yyq1012[1] = true
yyq1012[2] = x.Host != ""
yyq1012[3] = x.Scheme != ""
var yynn1012 int
if yyr1012 || yy2arr1012 {
r.EncodeArrayStart(4)
} else {
yynn1012 = 0
for _, b := range yyq1012 {
if b {
yynn1012++
}
}
r.EncodeMapStart(yynn1012)
yynn1012 = 0
}
if yyr1012 || yy2arr1012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1012[0] {
yym1014 := z.EncBinary()
_ = yym1014
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1012[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1015 := z.EncBinary()
_ = yym1015
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr1012 || yy2arr1012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1012[1] {
yy1017 := &x.Port
yym1018 := z.EncBinary()
_ = yym1018
if false {
} else if z.HasExtensions() && z.EncExt(yy1017) {
} else if !yym1018 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1017)
} else {
z.EncFallback(yy1017)
}
} else {
r.EncodeNil()
}
} else {
if yyq1012[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1019 := &x.Port
yym1020 := z.EncBinary()
_ = yym1020
if false {
} else if z.HasExtensions() && z.EncExt(yy1019) {
} else if !yym1020 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1019)
} else {
z.EncFallback(yy1019)
}
}
}
if yyr1012 || yy2arr1012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1012[2] {
yym1022 := z.EncBinary()
_ = yym1022
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1012[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1023 := z.EncBinary()
_ = yym1023
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr1012 || yy2arr1012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1012[3] {
x.Scheme.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1012[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Scheme.CodecEncodeSelf(e)
}
}
if yyr1012 || yy2arr1012 {
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
yym1025 := z.DecBinary()
_ = yym1025
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1026 := r.ContainerType()
if yyct1026 == codecSelferValueTypeMap1234 {
yyl1026 := r.ReadMapStart()
if yyl1026 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1026, d)
}
} else if yyct1026 == codecSelferValueTypeArray1234 {
yyl1026 := r.ReadArrayStart()
if yyl1026 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1026, 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 yys1027Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1027Slc
var yyhl1027 bool = l >= 0
for yyj1027 := 0; ; yyj1027++ {
if yyhl1027 {
if yyj1027 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1027Slc = r.DecodeBytes(yys1027Slc, true, true)
yys1027 := string(yys1027Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1027 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1029 := &x.Port
yym1030 := z.DecBinary()
_ = yym1030
if false {
} else if z.HasExtensions() && z.DecExt(yyv1029) {
} else if !yym1030 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1029)
} else {
z.DecFallback(yyv1029, 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, yys1027)
} // end switch yys1027
} // end for yyj1027
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 yyj1033 int
var yyb1033 bool
var yyhl1033 bool = l >= 0
yyj1033++
if yyhl1033 {
yyb1033 = yyj1033 > l
} else {
yyb1033 = r.CheckBreak()
}
if yyb1033 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1033++
if yyhl1033 {
yyb1033 = yyj1033 > l
} else {
yyb1033 = r.CheckBreak()
}
if yyb1033 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1035 := &x.Port
yym1036 := z.DecBinary()
_ = yym1036
if false {
} else if z.HasExtensions() && z.DecExt(yyv1035) {
} else if !yym1036 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1035)
} else {
z.DecFallback(yyv1035, false)
}
}
yyj1033++
if yyhl1033 {
yyb1033 = yyj1033 > l
} else {
yyb1033 = r.CheckBreak()
}
if yyb1033 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
yyj1033++
if yyhl1033 {
yyb1033 = yyj1033 > l
} else {
yyb1033 = r.CheckBreak()
}
if yyb1033 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
for {
yyj1033++
if yyhl1033 {
yyb1033 = yyj1033 > l
} else {
yyb1033 = r.CheckBreak()
}
if yyb1033 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1033-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1039 := z.EncBinary()
_ = yym1039
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *URIScheme) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1040 := z.DecBinary()
_ = yym1040
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *TCPSocketAction) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1041 := z.EncBinary()
_ = yym1041
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1042 := !z.EncBinary()
yy2arr1042 := z.EncBasicHandle().StructToArray
var yyq1042 [1]bool
_, _, _ = yysep1042, yyq1042, yy2arr1042
const yyr1042 bool = false
yyq1042[0] = true
var yynn1042 int
if yyr1042 || yy2arr1042 {
r.EncodeArrayStart(1)
} else {
yynn1042 = 0
for _, b := range yyq1042 {
if b {
yynn1042++
}
}
r.EncodeMapStart(yynn1042)
yynn1042 = 0
}
if yyr1042 || yy2arr1042 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1042[0] {
yy1044 := &x.Port
yym1045 := z.EncBinary()
_ = yym1045
if false {
} else if z.HasExtensions() && z.EncExt(yy1044) {
} else if !yym1045 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1044)
} else {
z.EncFallback(yy1044)
}
} else {
r.EncodeNil()
}
} else {
if yyq1042[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1046 := &x.Port
yym1047 := z.EncBinary()
_ = yym1047
if false {
} else if z.HasExtensions() && z.EncExt(yy1046) {
} else if !yym1047 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1046)
} else {
z.EncFallback(yy1046)
}
}
}
if yyr1042 || yy2arr1042 {
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
yym1048 := z.DecBinary()
_ = yym1048
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1049 := r.ContainerType()
if yyct1049 == codecSelferValueTypeMap1234 {
yyl1049 := r.ReadMapStart()
if yyl1049 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1049, d)
}
} else if yyct1049 == codecSelferValueTypeArray1234 {
yyl1049 := r.ReadArrayStart()
if yyl1049 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1049, 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 yys1050Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1050Slc
var yyhl1050 bool = l >= 0
for yyj1050 := 0; ; yyj1050++ {
if yyhl1050 {
if yyj1050 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1050Slc = r.DecodeBytes(yys1050Slc, true, true)
yys1050 := string(yys1050Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1050 {
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1051 := &x.Port
yym1052 := z.DecBinary()
_ = yym1052
if false {
} else if z.HasExtensions() && z.DecExt(yyv1051) {
} else if !yym1052 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1051)
} else {
z.DecFallback(yyv1051, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1050)
} // end switch yys1050
} // end for yyj1050
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 yyj1053 int
var yyb1053 bool
var yyhl1053 bool = l >= 0
yyj1053++
if yyhl1053 {
yyb1053 = yyj1053 > l
} else {
yyb1053 = r.CheckBreak()
}
if yyb1053 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv1054 := &x.Port
yym1055 := z.DecBinary()
_ = yym1055
if false {
} else if z.HasExtensions() && z.DecExt(yyv1054) {
} else if !yym1055 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1054)
} else {
z.DecFallback(yyv1054, false)
}
}
for {
yyj1053++
if yyhl1053 {
yyb1053 = yyj1053 > l
} else {
yyb1053 = r.CheckBreak()
}
if yyb1053 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1053-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 {
yym1056 := z.EncBinary()
_ = yym1056
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1057 := !z.EncBinary()
yy2arr1057 := z.EncBasicHandle().StructToArray
var yyq1057 [1]bool
_, _, _ = yysep1057, yyq1057, yy2arr1057
const yyr1057 bool = false
yyq1057[0] = len(x.Command) != 0
var yynn1057 int
if yyr1057 || yy2arr1057 {
r.EncodeArrayStart(1)
} else {
yynn1057 = 0
for _, b := range yyq1057 {
if b {
yynn1057++
}
}
r.EncodeMapStart(yynn1057)
yynn1057 = 0
}
if yyr1057 || yy2arr1057 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1057[0] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1059 := z.EncBinary()
_ = yym1059
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1057[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1060 := z.EncBinary()
_ = yym1060
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1057 || yy2arr1057 {
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
yym1061 := z.DecBinary()
_ = yym1061
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1062 := r.ContainerType()
if yyct1062 == codecSelferValueTypeMap1234 {
yyl1062 := r.ReadMapStart()
if yyl1062 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1062, d)
}
} else if yyct1062 == codecSelferValueTypeArray1234 {
yyl1062 := r.ReadArrayStart()
if yyl1062 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1062, 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 yys1063Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1063Slc
var yyhl1063 bool = l >= 0
for yyj1063 := 0; ; yyj1063++ {
if yyhl1063 {
if yyj1063 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1063Slc = r.DecodeBytes(yys1063Slc, true, true)
yys1063 := string(yys1063Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1063 {
case "command":
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1064 := &x.Command
yym1065 := z.DecBinary()
_ = yym1065
if false {
} else {
z.F.DecSliceStringX(yyv1064, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1063)
} // end switch yys1063
} // end for yyj1063
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 yyj1066 int
var yyb1066 bool
var yyhl1066 bool = l >= 0
yyj1066++
if yyhl1066 {
yyb1066 = yyj1066 > l
} else {
yyb1066 = r.CheckBreak()
}
if yyb1066 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1067 := &x.Command
yym1068 := z.DecBinary()
_ = yym1068
if false {
} else {
z.F.DecSliceStringX(yyv1067, false, d)
}
}
for {
yyj1066++
if yyhl1066 {
yyb1066 = yyj1066 > l
} else {
yyb1066 = r.CheckBreak()
}
if yyb1066 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1066-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 {
yym1069 := z.EncBinary()
_ = yym1069
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1070 := !z.EncBinary()
yy2arr1070 := z.EncBasicHandle().StructToArray
var yyq1070 [8]bool
_, _, _ = yysep1070, yyq1070, yy2arr1070
const yyr1070 bool = false
yyq1070[0] = x.Handler.Exec != nil && x.Exec != nil
yyq1070[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
yyq1070[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
yyq1070[3] = x.InitialDelaySeconds != 0
yyq1070[4] = x.TimeoutSeconds != 0
yyq1070[5] = x.PeriodSeconds != 0
yyq1070[6] = x.SuccessThreshold != 0
yyq1070[7] = x.FailureThreshold != 0
var yynn1070 int
if yyr1070 || yy2arr1070 {
r.EncodeArrayStart(8)
} else {
yynn1070 = 0
for _, b := range yyq1070 {
if b {
yynn1070++
}
}
r.EncodeMapStart(yynn1070)
yynn1070 = 0
}
var yyn1071 bool
if x.Handler.Exec == nil {
yyn1071 = true
goto LABEL1071
}
LABEL1071:
if yyr1070 || yy2arr1070 {
if yyn1071 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1070[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1071 {
r.EncodeNil()
} else {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
}
}
}
var yyn1072 bool
if x.Handler.HTTPGet == nil {
yyn1072 = true
goto LABEL1072
}
LABEL1072:
if yyr1070 || yy2arr1070 {
if yyn1072 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1070[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1072 {
r.EncodeNil()
} else {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
}
}
}
var yyn1073 bool
if x.Handler.TCPSocket == nil {
yyn1073 = true
goto LABEL1073
}
LABEL1073:
if yyr1070 || yy2arr1070 {
if yyn1073 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1070[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1073 {
r.EncodeNil()
} else {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
}
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[3] {
yym1075 := z.EncBinary()
_ = yym1075
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1070[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1076 := z.EncBinary()
_ = yym1076
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[4] {
yym1078 := z.EncBinary()
_ = yym1078
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1070[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1079 := z.EncBinary()
_ = yym1079
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[5] {
yym1081 := z.EncBinary()
_ = yym1081
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1070[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1082 := z.EncBinary()
_ = yym1082
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[6] {
yym1084 := z.EncBinary()
_ = yym1084
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1070[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1085 := z.EncBinary()
_ = yym1085
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[7] {
yym1087 := z.EncBinary()
_ = yym1087
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1070[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1088 := z.EncBinary()
_ = yym1088
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
}
}
if yyr1070 || yy2arr1070 {
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
yym1089 := z.DecBinary()
_ = yym1089
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1090 := r.ContainerType()
if yyct1090 == codecSelferValueTypeMap1234 {
yyl1090 := r.ReadMapStart()
if yyl1090 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1090, d)
}
} else if yyct1090 == codecSelferValueTypeArray1234 {
yyl1090 := r.ReadArrayStart()
if yyl1090 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1090, 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 yys1091Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1091Slc
var yyhl1091 bool = l >= 0
for yyj1091 := 0; ; yyj1091++ {
if yyhl1091 {
if yyj1091 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1091Slc = r.DecodeBytes(yys1091Slc, true, true)
yys1091 := string(yys1091Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1091 {
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, yys1091)
} // end switch yys1091
} // end for yyj1091
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 yyj1100 int
var yyb1100 bool
var yyhl1100 bool = l >= 0
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
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)
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
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)
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
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)
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj1100++
if yyhl1100 {
yyb1100 = yyj1100 > l
} else {
yyb1100 = r.CheckBreak()
}
if yyb1100 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1100-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1109 := z.EncBinary()
_ = yym1109
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
yym1110 := z.DecBinary()
_ = yym1110
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
yym1111 := z.EncBinary()
_ = yym1111
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
yym1112 := z.DecBinary()
_ = yym1112
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 {
yym1113 := z.EncBinary()
_ = yym1113
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1114 := !z.EncBinary()
yy2arr1114 := z.EncBasicHandle().StructToArray
var yyq1114 [2]bool
_, _, _ = yysep1114, yyq1114, yy2arr1114
const yyr1114 bool = false
yyq1114[0] = len(x.Add) != 0
yyq1114[1] = len(x.Drop) != 0
var yynn1114 int
if yyr1114 || yy2arr1114 {
r.EncodeArrayStart(2)
} else {
yynn1114 = 0
for _, b := range yyq1114 {
if b {
yynn1114++
}
}
r.EncodeMapStart(yynn1114)
yynn1114 = 0
}
if yyr1114 || yy2arr1114 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1114[0] {
if x.Add == nil {
r.EncodeNil()
} else {
yym1116 := z.EncBinary()
_ = yym1116
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1114[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("add"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Add == nil {
r.EncodeNil()
} else {
yym1117 := z.EncBinary()
_ = yym1117
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
}
}
if yyr1114 || yy2arr1114 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1114[1] {
if x.Drop == nil {
r.EncodeNil()
} else {
yym1119 := z.EncBinary()
_ = yym1119
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1114[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("drop"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Drop == nil {
r.EncodeNil()
} else {
yym1120 := z.EncBinary()
_ = yym1120
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
}
}
if yyr1114 || yy2arr1114 {
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
yym1121 := z.DecBinary()
_ = yym1121
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1122 := r.ContainerType()
if yyct1122 == codecSelferValueTypeMap1234 {
yyl1122 := r.ReadMapStart()
if yyl1122 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1122, d)
}
} else if yyct1122 == codecSelferValueTypeArray1234 {
yyl1122 := r.ReadArrayStart()
if yyl1122 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1122, 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 yys1123Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1123Slc
var yyhl1123 bool = l >= 0
for yyj1123 := 0; ; yyj1123++ {
if yyhl1123 {
if yyj1123 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1123Slc = r.DecodeBytes(yys1123Slc, true, true)
yys1123 := string(yys1123Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1123 {
case "add":
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1124 := &x.Add
yym1125 := z.DecBinary()
_ = yym1125
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1124), d)
}
}
case "drop":
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1126 := &x.Drop
yym1127 := z.DecBinary()
_ = yym1127
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1126), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1123)
} // end switch yys1123
} // end for yyj1123
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 yyj1128 int
var yyb1128 bool
var yyhl1128 bool = l >= 0
yyj1128++
if yyhl1128 {
yyb1128 = yyj1128 > l
} else {
yyb1128 = r.CheckBreak()
}
if yyb1128 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1129 := &x.Add
yym1130 := z.DecBinary()
_ = yym1130
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1129), d)
}
}
yyj1128++
if yyhl1128 {
yyb1128 = yyj1128 > l
} else {
yyb1128 = r.CheckBreak()
}
if yyb1128 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1131 := &x.Drop
yym1132 := z.DecBinary()
_ = yym1132
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1131), d)
}
}
for {
yyj1128++
if yyhl1128 {
yyb1128 = yyj1128 > l
} else {
yyb1128 = r.CheckBreak()
}
if yyb1128 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1128-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 {
yym1133 := z.EncBinary()
_ = yym1133
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1134 := !z.EncBinary()
yy2arr1134 := z.EncBasicHandle().StructToArray
var yyq1134 [2]bool
_, _, _ = yysep1134, yyq1134, yy2arr1134
const yyr1134 bool = false
yyq1134[0] = len(x.Limits) != 0
yyq1134[1] = len(x.Requests) != 0
var yynn1134 int
if yyr1134 || yy2arr1134 {
r.EncodeArrayStart(2)
} else {
yynn1134 = 0
for _, b := range yyq1134 {
if b {
yynn1134++
}
}
r.EncodeMapStart(yynn1134)
yynn1134 = 0
}
if yyr1134 || yy2arr1134 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1134[0] {
if x.Limits == nil {
r.EncodeNil()
} else {
x.Limits.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1134[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 yyr1134 || yy2arr1134 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1134[1] {
if x.Requests == nil {
r.EncodeNil()
} else {
x.Requests.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1134[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 yyr1134 || yy2arr1134 {
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
yym1137 := z.DecBinary()
_ = yym1137
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1138 := r.ContainerType()
if yyct1138 == codecSelferValueTypeMap1234 {
yyl1138 := r.ReadMapStart()
if yyl1138 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1138, d)
}
} else if yyct1138 == codecSelferValueTypeArray1234 {
yyl1138 := r.ReadArrayStart()
if yyl1138 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1138, 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 yys1139Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1139Slc
var yyhl1139 bool = l >= 0
for yyj1139 := 0; ; yyj1139++ {
if yyhl1139 {
if yyj1139 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1139Slc = r.DecodeBytes(yys1139Slc, true, true)
yys1139 := string(yys1139Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1139 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1140 := &x.Limits
yyv1140.CodecDecodeSelf(d)
}
case "requests":
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1141 := &x.Requests
yyv1141.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1139)
} // end switch yys1139
} // end for yyj1139
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 yyj1142 int
var yyb1142 bool
var yyhl1142 bool = l >= 0
yyj1142++
if yyhl1142 {
yyb1142 = yyj1142 > l
} else {
yyb1142 = r.CheckBreak()
}
if yyb1142 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1143 := &x.Limits
yyv1143.CodecDecodeSelf(d)
}
yyj1142++
if yyhl1142 {
yyb1142 = yyj1142 > l
} else {
yyb1142 = r.CheckBreak()
}
if yyb1142 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1144 := &x.Requests
yyv1144.CodecDecodeSelf(d)
}
for {
yyj1142++
if yyhl1142 {
yyb1142 = yyj1142 > l
} else {
yyb1142 = r.CheckBreak()
}
if yyb1142 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1142-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 {
yym1145 := z.EncBinary()
_ = yym1145
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1146 := !z.EncBinary()
yy2arr1146 := z.EncBasicHandle().StructToArray
var yyq1146 [18]bool
_, _, _ = yysep1146, yyq1146, yy2arr1146
const yyr1146 bool = false
yyq1146[2] = len(x.Command) != 0
yyq1146[3] = len(x.Args) != 0
yyq1146[4] = x.WorkingDir != ""
yyq1146[5] = len(x.Ports) != 0
yyq1146[6] = len(x.Env) != 0
yyq1146[7] = true
yyq1146[8] = len(x.VolumeMounts) != 0
yyq1146[9] = x.LivenessProbe != nil
yyq1146[10] = x.ReadinessProbe != nil
yyq1146[11] = x.Lifecycle != nil
yyq1146[12] = x.TerminationMessagePath != ""
yyq1146[14] = x.SecurityContext != nil
yyq1146[15] = x.Stdin != false
yyq1146[16] = x.StdinOnce != false
yyq1146[17] = x.TTY != false
var yynn1146 int
if yyr1146 || yy2arr1146 {
r.EncodeArrayStart(18)
} else {
yynn1146 = 3
for _, b := range yyq1146 {
if b {
yynn1146++
}
}
r.EncodeMapStart(yynn1146)
yynn1146 = 0
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1148 := z.EncBinary()
_ = yym1148
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)
yym1149 := z.EncBinary()
_ = yym1149
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1151 := z.EncBinary()
_ = yym1151
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)
yym1152 := z.EncBinary()
_ = yym1152
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[2] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1154 := z.EncBinary()
_ = yym1154
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1155 := z.EncBinary()
_ = yym1155
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[3] {
if x.Args == nil {
r.EncodeNil()
} else {
yym1157 := z.EncBinary()
_ = yym1157
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("args"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Args == nil {
r.EncodeNil()
} else {
yym1158 := z.EncBinary()
_ = yym1158
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[4] {
yym1160 := z.EncBinary()
_ = yym1160
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1146[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1161 := z.EncBinary()
_ = yym1161
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[5] {
if x.Ports == nil {
r.EncodeNil()
} else {
yym1163 := z.EncBinary()
_ = yym1163
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ports"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1164 := z.EncBinary()
_ = yym1164
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[6] {
if x.Env == nil {
r.EncodeNil()
} else {
yym1166 := z.EncBinary()
_ = yym1166
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("env"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Env == nil {
r.EncodeNil()
} else {
yym1167 := z.EncBinary()
_ = yym1167
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[7] {
yy1169 := &x.Resources
yy1169.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1146[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1170 := &x.Resources
yy1170.CodecEncodeSelf(e)
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[8] {
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1172 := z.EncBinary()
_ = yym1172
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1173 := z.EncBinary()
_ = yym1173
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[9] {
if x.LivenessProbe == nil {
r.EncodeNil()
} else {
x.LivenessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[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 yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[10] {
if x.ReadinessProbe == nil {
r.EncodeNil()
} else {
x.ReadinessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[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 yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[11] {
if x.Lifecycle == nil {
r.EncodeNil()
} else {
x.Lifecycle.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[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 yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[12] {
yym1178 := z.EncBinary()
_ = yym1178
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1146[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1179 := z.EncBinary()
_ = yym1179
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
}
}
if yyr1146 || yy2arr1146 {
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 yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[14] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1146[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 yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[15] {
yym1183 := z.EncBinary()
_ = yym1183
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1146[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1184 := z.EncBinary()
_ = yym1184
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[16] {
yym1186 := z.EncBinary()
_ = yym1186
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1146[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1187 := z.EncBinary()
_ = yym1187
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
}
}
if yyr1146 || yy2arr1146 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1146[17] {
yym1189 := z.EncBinary()
_ = yym1189
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1146[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1190 := z.EncBinary()
_ = yym1190
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr1146 || yy2arr1146 {
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
yym1191 := z.DecBinary()
_ = yym1191
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1192 := r.ContainerType()
if yyct1192 == codecSelferValueTypeMap1234 {
yyl1192 := r.ReadMapStart()
if yyl1192 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1192, d)
}
} else if yyct1192 == codecSelferValueTypeArray1234 {
yyl1192 := r.ReadArrayStart()
if yyl1192 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1192, 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 yys1193Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1193Slc
var yyhl1193 bool = l >= 0
for yyj1193 := 0; ; yyj1193++ {
if yyhl1193 {
if yyj1193 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1193Slc = r.DecodeBytes(yys1193Slc, true, true)
yys1193 := string(yys1193Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1193 {
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 {
yyv1196 := &x.Command
yym1197 := z.DecBinary()
_ = yym1197
if false {
} else {
z.F.DecSliceStringX(yyv1196, false, d)
}
}
case "args":
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1198 := &x.Args
yym1199 := z.DecBinary()
_ = yym1199
if false {
} else {
z.F.DecSliceStringX(yyv1198, false, d)
}
}
case "workingDir":
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1201 := &x.Ports
yym1202 := z.DecBinary()
_ = yym1202
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1201), d)
}
}
case "env":
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1203 := &x.Env
yym1204 := z.DecBinary()
_ = yym1204
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1203), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1205 := &x.Resources
yyv1205.CodecDecodeSelf(d)
}
case "volumeMounts":
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1206 := &x.VolumeMounts
yym1207 := z.DecBinary()
_ = yym1207
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1206), 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, yys1193)
} // end switch yys1193
} // end for yyj1193
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 yyj1217 int
var yyb1217 bool
var yyhl1217 bool = l >= 0
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1220 := &x.Command
yym1221 := z.DecBinary()
_ = yym1221
if false {
} else {
z.F.DecSliceStringX(yyv1220, false, d)
}
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1222 := &x.Args
yym1223 := z.DecBinary()
_ = yym1223
if false {
} else {
z.F.DecSliceStringX(yyv1222, false, d)
}
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1225 := &x.Ports
yym1226 := z.DecBinary()
_ = yym1226
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1225), d)
}
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1227 := &x.Env
yym1228 := z.DecBinary()
_ = yym1228
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1227), d)
}
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1229 := &x.Resources
yyv1229.CodecDecodeSelf(d)
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1230 := &x.VolumeMounts
yym1231 := z.DecBinary()
_ = yym1231
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1230), d)
}
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
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)
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
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)
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
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)
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TerminationMessagePath = ""
} else {
x.TerminationMessagePath = string(r.DecodeString())
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullPolicy = ""
} else {
x.ImagePullPolicy = PullPolicy(r.DecodeString())
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
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)
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StdinOnce = false
} else {
x.StdinOnce = bool(r.DecodeBool())
}
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
for {
yyj1217++
if yyhl1217 {
yyb1217 = yyj1217 > l
} else {
yyb1217 = r.CheckBreak()
}
if yyb1217 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1217-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 {
yym1241 := z.EncBinary()
_ = yym1241
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1242 := !z.EncBinary()
yy2arr1242 := z.EncBasicHandle().StructToArray
var yyq1242 [3]bool
_, _, _ = yysep1242, yyq1242, yy2arr1242
const yyr1242 bool = false
yyq1242[0] = x.Exec != nil
yyq1242[1] = x.HTTPGet != nil
yyq1242[2] = x.TCPSocket != nil
var yynn1242 int
if yyr1242 || yy2arr1242 {
r.EncodeArrayStart(3)
} else {
yynn1242 = 0
for _, b := range yyq1242 {
if b {
yynn1242++
}
}
r.EncodeMapStart(yynn1242)
yynn1242 = 0
}
if yyr1242 || yy2arr1242 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1242[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1242[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 yyr1242 || yy2arr1242 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1242[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1242[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 yyr1242 || yy2arr1242 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1242[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1242[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 yyr1242 || yy2arr1242 {
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
yym1246 := z.DecBinary()
_ = yym1246
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1247 := r.ContainerType()
if yyct1247 == codecSelferValueTypeMap1234 {
yyl1247 := r.ReadMapStart()
if yyl1247 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1247, d)
}
} else if yyct1247 == codecSelferValueTypeArray1234 {
yyl1247 := r.ReadArrayStart()
if yyl1247 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1247, 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 yys1248Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1248Slc
var yyhl1248 bool = l >= 0
for yyj1248 := 0; ; yyj1248++ {
if yyhl1248 {
if yyj1248 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1248Slc = r.DecodeBytes(yys1248Slc, true, true)
yys1248 := string(yys1248Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1248 {
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, yys1248)
} // end switch yys1248
} // end for yyj1248
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 yyj1252 int
var yyb1252 bool
var yyhl1252 bool = l >= 0
yyj1252++
if yyhl1252 {
yyb1252 = yyj1252 > l
} else {
yyb1252 = r.CheckBreak()
}
if yyb1252 {
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)
}
yyj1252++
if yyhl1252 {
yyb1252 = yyj1252 > l
} else {
yyb1252 = r.CheckBreak()
}
if yyb1252 {
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)
}
yyj1252++
if yyhl1252 {
yyb1252 = yyj1252 > l
} else {
yyb1252 = r.CheckBreak()
}
if yyb1252 {
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 {
yyj1252++
if yyhl1252 {
yyb1252 = yyj1252 > l
} else {
yyb1252 = r.CheckBreak()
}
if yyb1252 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1252-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 {
yym1256 := z.EncBinary()
_ = yym1256
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1257 := !z.EncBinary()
yy2arr1257 := z.EncBasicHandle().StructToArray
var yyq1257 [2]bool
_, _, _ = yysep1257, yyq1257, yy2arr1257
const yyr1257 bool = false
yyq1257[0] = x.PostStart != nil
yyq1257[1] = x.PreStop != nil
var yynn1257 int
if yyr1257 || yy2arr1257 {
r.EncodeArrayStart(2)
} else {
yynn1257 = 0
for _, b := range yyq1257 {
if b {
yynn1257++
}
}
r.EncodeMapStart(yynn1257)
yynn1257 = 0
}
if yyr1257 || yy2arr1257 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1257[0] {
if x.PostStart == nil {
r.EncodeNil()
} else {
x.PostStart.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1257[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 yyr1257 || yy2arr1257 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1257[1] {
if x.PreStop == nil {
r.EncodeNil()
} else {
x.PreStop.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1257[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 yyr1257 || yy2arr1257 {
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
yym1260 := z.DecBinary()
_ = yym1260
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1261 := r.ContainerType()
if yyct1261 == codecSelferValueTypeMap1234 {
yyl1261 := r.ReadMapStart()
if yyl1261 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1261, d)
}
} else if yyct1261 == codecSelferValueTypeArray1234 {
yyl1261 := r.ReadArrayStart()
if yyl1261 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1261, 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 yys1262Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1262Slc
var yyhl1262 bool = l >= 0
for yyj1262 := 0; ; yyj1262++ {
if yyhl1262 {
if yyj1262 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1262Slc = r.DecodeBytes(yys1262Slc, true, true)
yys1262 := string(yys1262Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1262 {
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, yys1262)
} // end switch yys1262
} // end for yyj1262
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 yyj1265 int
var yyb1265 bool
var yyhl1265 bool = l >= 0
yyj1265++
if yyhl1265 {
yyb1265 = yyj1265 > l
} else {
yyb1265 = r.CheckBreak()
}
if yyb1265 {
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)
}
yyj1265++
if yyhl1265 {
yyb1265 = yyj1265 > l
} else {
yyb1265 = r.CheckBreak()
}
if yyb1265 {
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 {
yyj1265++
if yyhl1265 {
yyb1265 = yyj1265 > l
} else {
yyb1265 = r.CheckBreak()
}
if yyb1265 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1265-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1268 := z.EncBinary()
_ = yym1268
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
yym1269 := z.DecBinary()
_ = yym1269
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 {
yym1270 := z.EncBinary()
_ = yym1270
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1271 := !z.EncBinary()
yy2arr1271 := z.EncBasicHandle().StructToArray
var yyq1271 [2]bool
_, _, _ = yysep1271, yyq1271, yy2arr1271
const yyr1271 bool = false
yyq1271[0] = x.Reason != ""
yyq1271[1] = x.Message != ""
var yynn1271 int
if yyr1271 || yy2arr1271 {
r.EncodeArrayStart(2)
} else {
yynn1271 = 0
for _, b := range yyq1271 {
if b {
yynn1271++
}
}
r.EncodeMapStart(yynn1271)
yynn1271 = 0
}
if yyr1271 || yy2arr1271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1271[0] {
yym1273 := z.EncBinary()
_ = yym1273
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1271[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1274 := z.EncBinary()
_ = yym1274
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1271 || yy2arr1271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1271[1] {
yym1276 := z.EncBinary()
_ = yym1276
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1271[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1277 := z.EncBinary()
_ = yym1277
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1271 || yy2arr1271 {
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
yym1278 := z.DecBinary()
_ = yym1278
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1279 := r.ContainerType()
if yyct1279 == codecSelferValueTypeMap1234 {
yyl1279 := r.ReadMapStart()
if yyl1279 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1279, d)
}
} else if yyct1279 == codecSelferValueTypeArray1234 {
yyl1279 := r.ReadArrayStart()
if yyl1279 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1279, 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 yys1280Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1280Slc
var yyhl1280 bool = l >= 0
for yyj1280 := 0; ; yyj1280++ {
if yyhl1280 {
if yyj1280 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1280Slc = r.DecodeBytes(yys1280Slc, true, true)
yys1280 := string(yys1280Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1280 {
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, yys1280)
} // end switch yys1280
} // end for yyj1280
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 yyj1283 int
var yyb1283 bool
var yyhl1283 bool = l >= 0
yyj1283++
if yyhl1283 {
yyb1283 = yyj1283 > l
} else {
yyb1283 = r.CheckBreak()
}
if yyb1283 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1283++
if yyhl1283 {
yyb1283 = yyj1283 > l
} else {
yyb1283 = r.CheckBreak()
}
if yyb1283 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1283++
if yyhl1283 {
yyb1283 = yyj1283 > l
} else {
yyb1283 = r.CheckBreak()
}
if yyb1283 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1283-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 {
yym1286 := z.EncBinary()
_ = yym1286
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1287 := !z.EncBinary()
yy2arr1287 := z.EncBasicHandle().StructToArray
var yyq1287 [1]bool
_, _, _ = yysep1287, yyq1287, yy2arr1287
const yyr1287 bool = false
yyq1287[0] = true
var yynn1287 int
if yyr1287 || yy2arr1287 {
r.EncodeArrayStart(1)
} else {
yynn1287 = 0
for _, b := range yyq1287 {
if b {
yynn1287++
}
}
r.EncodeMapStart(yynn1287)
yynn1287 = 0
}
if yyr1287 || yy2arr1287 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1287[0] {
yy1289 := &x.StartedAt
yym1290 := z.EncBinary()
_ = yym1290
if false {
} else if z.HasExtensions() && z.EncExt(yy1289) {
} else if yym1290 {
z.EncBinaryMarshal(yy1289)
} else if !yym1290 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1289)
} else {
z.EncFallback(yy1289)
}
} else {
r.EncodeNil()
}
} else {
if yyq1287[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1291 := &x.StartedAt
yym1292 := z.EncBinary()
_ = yym1292
if false {
} else if z.HasExtensions() && z.EncExt(yy1291) {
} else if yym1292 {
z.EncBinaryMarshal(yy1291)
} else if !yym1292 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1291)
} else {
z.EncFallback(yy1291)
}
}
}
if yyr1287 || yy2arr1287 {
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
yym1293 := z.DecBinary()
_ = yym1293
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1294 := r.ContainerType()
if yyct1294 == codecSelferValueTypeMap1234 {
yyl1294 := r.ReadMapStart()
if yyl1294 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1294, d)
}
} else if yyct1294 == codecSelferValueTypeArray1234 {
yyl1294 := r.ReadArrayStart()
if yyl1294 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1294, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStateRunning) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1295Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1295Slc
var yyhl1295 bool = l >= 0
for yyj1295 := 0; ; yyj1295++ {
if yyhl1295 {
if yyj1295 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1295Slc = r.DecodeBytes(yys1295Slc, true, true)
yys1295 := string(yys1295Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1295 {
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1296 := &x.StartedAt
yym1297 := z.DecBinary()
_ = yym1297
if false {
} else if z.HasExtensions() && z.DecExt(yyv1296) {
} else if yym1297 {
z.DecBinaryUnmarshal(yyv1296)
} else if !yym1297 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1296)
} else {
z.DecFallback(yyv1296, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1295)
} // end switch yys1295
} // end for yyj1295
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 yyj1298 int
var yyb1298 bool
var yyhl1298 bool = l >= 0
yyj1298++
if yyhl1298 {
yyb1298 = yyj1298 > l
} else {
yyb1298 = r.CheckBreak()
}
if yyb1298 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1299 := &x.StartedAt
yym1300 := z.DecBinary()
_ = yym1300
if false {
} else if z.HasExtensions() && z.DecExt(yyv1299) {
} else if yym1300 {
z.DecBinaryUnmarshal(yyv1299)
} else if !yym1300 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1299)
} else {
z.DecFallback(yyv1299, false)
}
}
for {
yyj1298++
if yyhl1298 {
yyb1298 = yyj1298 > l
} else {
yyb1298 = r.CheckBreak()
}
if yyb1298 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1298-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 {
yym1301 := z.EncBinary()
_ = yym1301
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1302 := !z.EncBinary()
yy2arr1302 := z.EncBasicHandle().StructToArray
var yyq1302 [7]bool
_, _, _ = yysep1302, yyq1302, yy2arr1302
const yyr1302 bool = false
yyq1302[1] = x.Signal != 0
yyq1302[2] = x.Reason != ""
yyq1302[3] = x.Message != ""
yyq1302[4] = true
yyq1302[5] = true
yyq1302[6] = x.ContainerID != ""
var yynn1302 int
if yyr1302 || yy2arr1302 {
r.EncodeArrayStart(7)
} else {
yynn1302 = 1
for _, b := range yyq1302 {
if b {
yynn1302++
}
}
r.EncodeMapStart(yynn1302)
yynn1302 = 0
}
if yyr1302 || yy2arr1302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1304 := z.EncBinary()
_ = yym1304
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1305 := z.EncBinary()
_ = yym1305
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
}
if yyr1302 || yy2arr1302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1302[1] {
yym1307 := z.EncBinary()
_ = yym1307
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1302[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("signal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1308 := z.EncBinary()
_ = yym1308
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
}
}
if yyr1302 || yy2arr1302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1302[2] {
yym1310 := z.EncBinary()
_ = yym1310
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1302[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1311 := z.EncBinary()
_ = yym1311
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1302 || yy2arr1302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1302[3] {
yym1313 := z.EncBinary()
_ = yym1313
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1302[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1314 := z.EncBinary()
_ = yym1314
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1302 || yy2arr1302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1302[4] {
yy1316 := &x.StartedAt
yym1317 := z.EncBinary()
_ = yym1317
if false {
} else if z.HasExtensions() && z.EncExt(yy1316) {
} else if yym1317 {
z.EncBinaryMarshal(yy1316)
} else if !yym1317 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1316)
} else {
z.EncFallback(yy1316)
}
} else {
r.EncodeNil()
}
} else {
if yyq1302[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1318 := &x.StartedAt
yym1319 := z.EncBinary()
_ = yym1319
if false {
} else if z.HasExtensions() && z.EncExt(yy1318) {
} else if yym1319 {
z.EncBinaryMarshal(yy1318)
} else if !yym1319 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1318)
} else {
z.EncFallback(yy1318)
}
}
}
if yyr1302 || yy2arr1302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1302[5] {
yy1321 := &x.FinishedAt
yym1322 := z.EncBinary()
_ = yym1322
if false {
} else if z.HasExtensions() && z.EncExt(yy1321) {
} else if yym1322 {
z.EncBinaryMarshal(yy1321)
} else if !yym1322 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1321)
} else {
z.EncFallback(yy1321)
}
} else {
r.EncodeNil()
}
} else {
if yyq1302[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1323 := &x.FinishedAt
yym1324 := z.EncBinary()
_ = yym1324
if false {
} else if z.HasExtensions() && z.EncExt(yy1323) {
} else if yym1324 {
z.EncBinaryMarshal(yy1323)
} else if !yym1324 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1323)
} else {
z.EncFallback(yy1323)
}
}
}
if yyr1302 || yy2arr1302 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1302[6] {
yym1326 := z.EncBinary()
_ = yym1326
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1302[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1327 := z.EncBinary()
_ = yym1327
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1302 || yy2arr1302 {
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
yym1328 := z.DecBinary()
_ = yym1328
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1329 := r.ContainerType()
if yyct1329 == codecSelferValueTypeMap1234 {
yyl1329 := r.ReadMapStart()
if yyl1329 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1329, d)
}
} else if yyct1329 == codecSelferValueTypeArray1234 {
yyl1329 := r.ReadArrayStart()
if yyl1329 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1329, 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 yys1330Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1330Slc
var yyhl1330 bool = l >= 0
for yyj1330 := 0; ; yyj1330++ {
if yyhl1330 {
if yyj1330 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1330Slc = r.DecodeBytes(yys1330Slc, true, true)
yys1330 := string(yys1330Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1330 {
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 {
yyv1335 := &x.StartedAt
yym1336 := z.DecBinary()
_ = yym1336
if false {
} else if z.HasExtensions() && z.DecExt(yyv1335) {
} else if yym1336 {
z.DecBinaryUnmarshal(yyv1335)
} else if !yym1336 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1335)
} else {
z.DecFallback(yyv1335, false)
}
}
case "finishedAt":
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1337 := &x.FinishedAt
yym1338 := z.DecBinary()
_ = yym1338
if false {
} else if z.HasExtensions() && z.DecExt(yyv1337) {
} else if yym1338 {
z.DecBinaryUnmarshal(yyv1337)
} else if !yym1338 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1337)
} else {
z.DecFallback(yyv1337, false)
}
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1330)
} // end switch yys1330
} // end for yyj1330
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 yyj1340 int
var yyb1340 bool
var yyhl1340 bool = l >= 0
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1345 := &x.StartedAt
yym1346 := z.DecBinary()
_ = yym1346
if false {
} else if z.HasExtensions() && z.DecExt(yyv1345) {
} else if yym1346 {
z.DecBinaryUnmarshal(yyv1345)
} else if !yym1346 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1345)
} else {
z.DecFallback(yyv1345, false)
}
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1347 := &x.FinishedAt
yym1348 := z.DecBinary()
_ = yym1348
if false {
} else if z.HasExtensions() && z.DecExt(yyv1347) {
} else if yym1348 {
z.DecBinaryUnmarshal(yyv1347)
} else if !yym1348 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1347)
} else {
z.DecFallback(yyv1347, false)
}
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1340-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 {
yym1350 := z.EncBinary()
_ = yym1350
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1351 := !z.EncBinary()
yy2arr1351 := z.EncBasicHandle().StructToArray
var yyq1351 [3]bool
_, _, _ = yysep1351, yyq1351, yy2arr1351
const yyr1351 bool = false
yyq1351[0] = x.Waiting != nil
yyq1351[1] = x.Running != nil
yyq1351[2] = x.Terminated != nil
var yynn1351 int
if yyr1351 || yy2arr1351 {
r.EncodeArrayStart(3)
} else {
yynn1351 = 0
for _, b := range yyq1351 {
if b {
yynn1351++
}
}
r.EncodeMapStart(yynn1351)
yynn1351 = 0
}
if yyr1351 || yy2arr1351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1351[0] {
if x.Waiting == nil {
r.EncodeNil()
} else {
x.Waiting.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1351[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 yyr1351 || yy2arr1351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1351[1] {
if x.Running == nil {
r.EncodeNil()
} else {
x.Running.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1351[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 yyr1351 || yy2arr1351 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1351[2] {
if x.Terminated == nil {
r.EncodeNil()
} else {
x.Terminated.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1351[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 yyr1351 || yy2arr1351 {
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
yym1355 := z.DecBinary()
_ = yym1355
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1356 := r.ContainerType()
if yyct1356 == codecSelferValueTypeMap1234 {
yyl1356 := r.ReadMapStart()
if yyl1356 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1356, d)
}
} else if yyct1356 == codecSelferValueTypeArray1234 {
yyl1356 := r.ReadArrayStart()
if yyl1356 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1356, 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 yys1357Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1357Slc
var yyhl1357 bool = l >= 0
for yyj1357 := 0; ; yyj1357++ {
if yyhl1357 {
if yyj1357 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1357Slc = r.DecodeBytes(yys1357Slc, true, true)
yys1357 := string(yys1357Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1357 {
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, yys1357)
} // end switch yys1357
} // end for yyj1357
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 yyj1361 int
var yyb1361 bool
var yyhl1361 bool = l >= 0
yyj1361++
if yyhl1361 {
yyb1361 = yyj1361 > l
} else {
yyb1361 = r.CheckBreak()
}
if yyb1361 {
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)
}
yyj1361++
if yyhl1361 {
yyb1361 = yyj1361 > l
} else {
yyb1361 = r.CheckBreak()
}
if yyb1361 {
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)
}
yyj1361++
if yyhl1361 {
yyb1361 = yyj1361 > l
} else {
yyb1361 = r.CheckBreak()
}
if yyb1361 {
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 {
yyj1361++
if yyhl1361 {
yyb1361 = yyj1361 > l
} else {
yyb1361 = r.CheckBreak()
}
if yyb1361 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1361-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 {
yym1365 := z.EncBinary()
_ = yym1365
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1366 := !z.EncBinary()
yy2arr1366 := z.EncBasicHandle().StructToArray
var yyq1366 [8]bool
_, _, _ = yysep1366, yyq1366, yy2arr1366
const yyr1366 bool = false
yyq1366[1] = true
yyq1366[2] = true
yyq1366[7] = x.ContainerID != ""
var yynn1366 int
if yyr1366 || yy2arr1366 {
r.EncodeArrayStart(8)
} else {
yynn1366 = 5
for _, b := range yyq1366 {
if b {
yynn1366++
}
}
r.EncodeMapStart(yynn1366)
yynn1366 = 0
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1368 := z.EncBinary()
_ = yym1368
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)
yym1369 := z.EncBinary()
_ = yym1369
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[1] {
yy1371 := &x.State
yy1371.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1366[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("state"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1372 := &x.State
yy1372.CodecEncodeSelf(e)
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[2] {
yy1374 := &x.LastTerminationState
yy1374.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1366[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1375 := &x.LastTerminationState
yy1375.CodecEncodeSelf(e)
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1377 := z.EncBinary()
_ = yym1377
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ready"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1378 := z.EncBinary()
_ = yym1378
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1380 := z.EncBinary()
_ = yym1380
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1381 := z.EncBinary()
_ = yym1381
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1383 := z.EncBinary()
_ = yym1383
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)
yym1384 := z.EncBinary()
_ = yym1384
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1386 := z.EncBinary()
_ = yym1386
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)
yym1387 := z.EncBinary()
_ = yym1387
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
}
}
if yyr1366 || yy2arr1366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1366[7] {
yym1389 := z.EncBinary()
_ = yym1389
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1366[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1390 := z.EncBinary()
_ = yym1390
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1366 || yy2arr1366 {
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
yym1391 := z.DecBinary()
_ = yym1391
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1392 := r.ContainerType()
if yyct1392 == codecSelferValueTypeMap1234 {
yyl1392 := r.ReadMapStart()
if yyl1392 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1392, d)
}
} else if yyct1392 == codecSelferValueTypeArray1234 {
yyl1392 := r.ReadArrayStart()
if yyl1392 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1392, 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 yys1393Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1393Slc
var yyhl1393 bool = l >= 0
for yyj1393 := 0; ; yyj1393++ {
if yyhl1393 {
if yyj1393 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1393Slc = r.DecodeBytes(yys1393Slc, true, true)
yys1393 := string(yys1393Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1393 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "state":
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1395 := &x.State
yyv1395.CodecDecodeSelf(d)
}
case "lastState":
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1396 := &x.LastTerminationState
yyv1396.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, yys1393)
} // end switch yys1393
} // end for yyj1393
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 yyj1402 int
var yyb1402 bool
var yyhl1402 bool = l >= 0
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1404 := &x.State
yyv1404.CodecDecodeSelf(d)
}
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1405 := &x.LastTerminationState
yyv1405.CodecDecodeSelf(d)
}
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1402++
if yyhl1402 {
yyb1402 = yyj1402 > l
} else {
yyb1402 = r.CheckBreak()
}
if yyb1402 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1402-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1411 := z.EncBinary()
_ = yym1411
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
yym1412 := z.DecBinary()
_ = yym1412
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
yym1413 := z.EncBinary()
_ = yym1413
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
yym1414 := z.DecBinary()
_ = yym1414
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 {
yym1415 := z.EncBinary()
_ = yym1415
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1416 := !z.EncBinary()
yy2arr1416 := z.EncBasicHandle().StructToArray
var yyq1416 [6]bool
_, _, _ = yysep1416, yyq1416, yy2arr1416
const yyr1416 bool = false
yyq1416[2] = true
yyq1416[3] = true
yyq1416[4] = x.Reason != ""
yyq1416[5] = x.Message != ""
var yynn1416 int
if yyr1416 || yy2arr1416 {
r.EncodeArrayStart(6)
} else {
yynn1416 = 2
for _, b := range yyq1416 {
if b {
yynn1416++
}
}
r.EncodeMapStart(yynn1416)
yynn1416 = 0
}
if yyr1416 || yy2arr1416 {
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 yyr1416 || yy2arr1416 {
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 yyr1416 || yy2arr1416 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1416[2] {
yy1420 := &x.LastProbeTime
yym1421 := z.EncBinary()
_ = yym1421
if false {
} else if z.HasExtensions() && z.EncExt(yy1420) {
} else if yym1421 {
z.EncBinaryMarshal(yy1420)
} else if !yym1421 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1420)
} else {
z.EncFallback(yy1420)
}
} else {
r.EncodeNil()
}
} else {
if yyq1416[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1422 := &x.LastProbeTime
yym1423 := z.EncBinary()
_ = yym1423
if false {
} else if z.HasExtensions() && z.EncExt(yy1422) {
} else if yym1423 {
z.EncBinaryMarshal(yy1422)
} else if !yym1423 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1422)
} else {
z.EncFallback(yy1422)
}
}
}
if yyr1416 || yy2arr1416 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1416[3] {
yy1425 := &x.LastTransitionTime
yym1426 := z.EncBinary()
_ = yym1426
if false {
} else if z.HasExtensions() && z.EncExt(yy1425) {
} else if yym1426 {
z.EncBinaryMarshal(yy1425)
} else if !yym1426 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1425)
} else {
z.EncFallback(yy1425)
}
} else {
r.EncodeNil()
}
} else {
if yyq1416[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1427 := &x.LastTransitionTime
yym1428 := z.EncBinary()
_ = yym1428
if false {
} else if z.HasExtensions() && z.EncExt(yy1427) {
} else if yym1428 {
z.EncBinaryMarshal(yy1427)
} else if !yym1428 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1427)
} else {
z.EncFallback(yy1427)
}
}
}
if yyr1416 || yy2arr1416 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1416[4] {
yym1430 := z.EncBinary()
_ = yym1430
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1416[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1431 := z.EncBinary()
_ = yym1431
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1416 || yy2arr1416 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1416[5] {
yym1433 := z.EncBinary()
_ = yym1433
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1416[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1434 := z.EncBinary()
_ = yym1434
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1416 || yy2arr1416 {
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
yym1435 := z.DecBinary()
_ = yym1435
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1436 := r.ContainerType()
if yyct1436 == codecSelferValueTypeMap1234 {
yyl1436 := r.ReadMapStart()
if yyl1436 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1436, d)
}
} else if yyct1436 == codecSelferValueTypeArray1234 {
yyl1436 := r.ReadArrayStart()
if yyl1436 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1436, 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 yys1437Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1437Slc
var yyhl1437 bool = l >= 0
for yyj1437 := 0; ; yyj1437++ {
if yyhl1437 {
if yyj1437 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1437Slc = r.DecodeBytes(yys1437Slc, true, true)
yys1437 := string(yys1437Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1437 {
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 {
yyv1440 := &x.LastProbeTime
yym1441 := z.DecBinary()
_ = yym1441
if false {
} else if z.HasExtensions() && z.DecExt(yyv1440) {
} else if yym1441 {
z.DecBinaryUnmarshal(yyv1440)
} else if !yym1441 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1440)
} else {
z.DecFallback(yyv1440, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1442 := &x.LastTransitionTime
yym1443 := z.DecBinary()
_ = yym1443
if false {
} else if z.HasExtensions() && z.DecExt(yyv1442) {
} else if yym1443 {
z.DecBinaryUnmarshal(yyv1442)
} else if !yym1443 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1442)
} else {
z.DecFallback(yyv1442, 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, yys1437)
} // end switch yys1437
} // end for yyj1437
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 yyj1446 int
var yyb1446 bool
var yyhl1446 bool = l >= 0
yyj1446++
if yyhl1446 {
yyb1446 = yyj1446 > l
} else {
yyb1446 = r.CheckBreak()
}
if yyb1446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = PodConditionType(r.DecodeString())
}
yyj1446++
if yyhl1446 {
yyb1446 = yyj1446 > l
} else {
yyb1446 = r.CheckBreak()
}
if yyb1446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj1446++
if yyhl1446 {
yyb1446 = yyj1446 > l
} else {
yyb1446 = r.CheckBreak()
}
if yyb1446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg2_unversioned.Time{}
} else {
yyv1449 := &x.LastProbeTime
yym1450 := z.DecBinary()
_ = yym1450
if false {
} else if z.HasExtensions() && z.DecExt(yyv1449) {
} else if yym1450 {
z.DecBinaryUnmarshal(yyv1449)
} else if !yym1450 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1449)
} else {
z.DecFallback(yyv1449, false)
}
}
yyj1446++
if yyhl1446 {
yyb1446 = yyj1446 > l
} else {
yyb1446 = r.CheckBreak()
}
if yyb1446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1451 := &x.LastTransitionTime
yym1452 := z.DecBinary()
_ = yym1452
if false {
} else if z.HasExtensions() && z.DecExt(yyv1451) {
} else if yym1452 {
z.DecBinaryUnmarshal(yyv1451)
} else if !yym1452 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1451)
} else {
z.DecFallback(yyv1451, false)
}
}
yyj1446++
if yyhl1446 {
yyb1446 = yyj1446 > l
} else {
yyb1446 = r.CheckBreak()
}
if yyb1446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1446++
if yyhl1446 {
yyb1446 = yyj1446 > l
} else {
yyb1446 = r.CheckBreak()
}
if yyb1446 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1446++
if yyhl1446 {
yyb1446 = yyj1446 > l
} else {
yyb1446 = r.CheckBreak()
}
if yyb1446 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1446-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1455 := z.EncBinary()
_ = yym1455
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
yym1456 := z.DecBinary()
_ = yym1456
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 {
yym1457 := z.EncBinary()
_ = yym1457
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1458 := !z.EncBinary()
yy2arr1458 := z.EncBasicHandle().StructToArray
var yyq1458 [4]bool
_, _, _ = yysep1458, yyq1458, yy2arr1458
const yyr1458 bool = false
yyq1458[0] = x.Kind != ""
yyq1458[1] = x.APIVersion != ""
yyq1458[2] = true
var yynn1458 int
if yyr1458 || yy2arr1458 {
r.EncodeArrayStart(4)
} else {
yynn1458 = 1
for _, b := range yyq1458 {
if b {
yynn1458++
}
}
r.EncodeMapStart(yynn1458)
yynn1458 = 0
}
if yyr1458 || yy2arr1458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1458[0] {
yym1460 := z.EncBinary()
_ = yym1460
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1458[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1461 := z.EncBinary()
_ = yym1461
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1458 || yy2arr1458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1458[1] {
yym1463 := z.EncBinary()
_ = yym1463
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1458[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1464 := z.EncBinary()
_ = yym1464
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1458 || yy2arr1458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1458[2] {
yy1466 := &x.ListMeta
yym1467 := z.EncBinary()
_ = yym1467
if false {
} else if z.HasExtensions() && z.EncExt(yy1466) {
} else {
z.EncFallback(yy1466)
}
} else {
r.EncodeNil()
}
} else {
if yyq1458[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1468 := &x.ListMeta
yym1469 := z.EncBinary()
_ = yym1469
if false {
} else if z.HasExtensions() && z.EncExt(yy1468) {
} else {
z.EncFallback(yy1468)
}
}
}
if yyr1458 || yy2arr1458 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1471 := z.EncBinary()
_ = yym1471
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 {
yym1472 := z.EncBinary()
_ = yym1472
if false {
} else {
h.encSlicePod(([]Pod)(x.Items), e)
}
}
}
if yyr1458 || yy2arr1458 {
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
yym1473 := z.DecBinary()
_ = yym1473
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1474 := r.ContainerType()
if yyct1474 == codecSelferValueTypeMap1234 {
yyl1474 := r.ReadMapStart()
if yyl1474 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1474, d)
}
} else if yyct1474 == codecSelferValueTypeArray1234 {
yyl1474 := r.ReadArrayStart()
if yyl1474 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1474, 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 yys1475Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1475Slc
var yyhl1475 bool = l >= 0
for yyj1475 := 0; ; yyj1475++ {
if yyhl1475 {
if yyj1475 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1475Slc = r.DecodeBytes(yys1475Slc, true, true)
yys1475 := string(yys1475Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1475 {
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 {
yyv1478 := &x.ListMeta
yym1479 := z.DecBinary()
_ = yym1479
if false {
} else if z.HasExtensions() && z.DecExt(yyv1478) {
} else {
z.DecFallback(yyv1478, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1480 := &x.Items
yym1481 := z.DecBinary()
_ = yym1481
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1480), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1475)
} // end switch yys1475
} // end for yyj1475
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 yyj1482 int
var yyb1482 bool
var yyhl1482 bool = l >= 0
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1485 := &x.ListMeta
yym1486 := z.DecBinary()
_ = yym1486
if false {
} else if z.HasExtensions() && z.DecExt(yyv1485) {
} else {
z.DecFallback(yyv1485, false)
}
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1487 := &x.Items
yym1488 := z.DecBinary()
_ = yym1488
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1487), d)
}
}
for {
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1482-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1489 := z.EncBinary()
_ = yym1489
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
yym1490 := z.DecBinary()
_ = yym1490
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *PodSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1491 := z.EncBinary()
_ = yym1491
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1492 := !z.EncBinary()
yy2arr1492 := z.EncBasicHandle().StructToArray
var yyq1492 [11]bool
_, _, _ = yysep1492, yyq1492, yy2arr1492
const yyr1492 bool = false
yyq1492[2] = x.RestartPolicy != ""
yyq1492[3] = x.TerminationGracePeriodSeconds != nil
yyq1492[4] = x.ActiveDeadlineSeconds != nil
yyq1492[5] = x.DNSPolicy != ""
yyq1492[6] = len(x.NodeSelector) != 0
yyq1492[8] = x.NodeName != ""
yyq1492[9] = x.SecurityContext != nil
yyq1492[10] = len(x.ImagePullSecrets) != 0
var yynn1492 int
if yyr1492 || yy2arr1492 {
r.EncodeArrayStart(11)
} else {
yynn1492 = 3
for _, b := range yyq1492 {
if b {
yynn1492++
}
}
r.EncodeMapStart(yynn1492)
yynn1492 = 0
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Volumes == nil {
r.EncodeNil()
} else {
yym1494 := z.EncBinary()
_ = yym1494
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 {
yym1495 := z.EncBinary()
_ = yym1495
if false {
} else {
h.encSliceVolume(([]Volume)(x.Volumes), e)
}
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Containers == nil {
r.EncodeNil()
} else {
yym1497 := z.EncBinary()
_ = yym1497
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 {
yym1498 := z.EncBinary()
_ = yym1498
if false {
} else {
h.encSliceContainer(([]Container)(x.Containers), e)
}
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[2] {
x.RestartPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1492[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.RestartPolicy.CodecEncodeSelf(e)
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[3] {
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy1501 := *x.TerminationGracePeriodSeconds
yym1502 := z.EncBinary()
_ = yym1502
if false {
} else {
r.EncodeInt(int64(yy1501))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1492[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy1503 := *x.TerminationGracePeriodSeconds
yym1504 := z.EncBinary()
_ = yym1504
if false {
} else {
r.EncodeInt(int64(yy1503))
}
}
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[4] {
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy1506 := *x.ActiveDeadlineSeconds
yym1507 := z.EncBinary()
_ = yym1507
if false {
} else {
r.EncodeInt(int64(yy1506))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1492[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy1508 := *x.ActiveDeadlineSeconds
yym1509 := z.EncBinary()
_ = yym1509
if false {
} else {
r.EncodeInt(int64(yy1508))
}
}
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[5] {
x.DNSPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1492[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.DNSPolicy.CodecEncodeSelf(e)
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[6] {
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym1512 := z.EncBinary()
_ = yym1512
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1492[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym1513 := z.EncBinary()
_ = yym1513
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1515 := z.EncBinary()
_ = yym1515
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)
yym1516 := z.EncBinary()
_ = yym1516
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[8] {
yym1518 := z.EncBinary()
_ = yym1518
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1492[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1519 := z.EncBinary()
_ = yym1519
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
}
}
if yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[9] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1492[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 yyr1492 || yy2arr1492 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1492[10] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym1522 := z.EncBinary()
_ = yym1522
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1492[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym1523 := z.EncBinary()
_ = yym1523
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr1492 || yy2arr1492 {
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
yym1524 := z.DecBinary()
_ = yym1524
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1525 := r.ContainerType()
if yyct1525 == codecSelferValueTypeMap1234 {
yyl1525 := r.ReadMapStart()
if yyl1525 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1525, d)
}
} else if yyct1525 == codecSelferValueTypeArray1234 {
yyl1525 := r.ReadArrayStart()
if yyl1525 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1525, 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 yys1526Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1526Slc
var yyhl1526 bool = l >= 0
for yyj1526 := 0; ; yyj1526++ {
if yyhl1526 {
if yyj1526 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1526Slc = r.DecodeBytes(yys1526Slc, true, true)
yys1526 := string(yys1526Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1526 {
case "volumes":
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv1527 := &x.Volumes
yym1528 := z.DecBinary()
_ = yym1528
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv1527), d)
}
}
case "containers":
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv1529 := &x.Containers
yym1530 := z.DecBinary()
_ = yym1530
if false {
} else {
h.decSliceContainer((*[]Container)(yyv1529), 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)
}
yym1533 := z.DecBinary()
_ = yym1533
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)
}
yym1535 := z.DecBinary()
_ = yym1535
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 {
yyv1537 := &x.NodeSelector
yym1538 := z.DecBinary()
_ = yym1538
if false {
} else {
z.F.DecMapStringStringX(yyv1537, 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 {
yyv1542 := &x.ImagePullSecrets
yym1543 := z.DecBinary()
_ = yym1543
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1542), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1526)
} // end switch yys1526
} // end for yyj1526
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 yyj1544 int
var yyb1544 bool
var yyhl1544 bool = l >= 0
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv1545 := &x.Volumes
yym1546 := z.DecBinary()
_ = yym1546
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv1545), d)
}
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv1547 := &x.Containers
yym1548 := z.DecBinary()
_ = yym1548
if false {
} else {
h.decSliceContainer((*[]Container)(yyv1547), d)
}
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartPolicy = ""
} else {
x.RestartPolicy = RestartPolicy(r.DecodeString())
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
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)
}
yym1551 := z.DecBinary()
_ = yym1551
if false {
} else {
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
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)
}
yym1553 := z.DecBinary()
_ = yym1553
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DNSPolicy = ""
} else {
x.DNSPolicy = DNSPolicy(r.DecodeString())
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelector = nil
} else {
yyv1555 := &x.NodeSelector
yym1556 := z.DecBinary()
_ = yym1556
if false {
} else {
z.F.DecMapStringStringX(yyv1555, false, d)
}
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServiceAccountName = ""
} else {
x.ServiceAccountName = string(r.DecodeString())
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeName = ""
} else {
x.NodeName = string(r.DecodeString())
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
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)
}
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv1560 := &x.ImagePullSecrets
yym1561 := z.DecBinary()
_ = yym1561
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1560), d)
}
}
for {
yyj1544++
if yyhl1544 {
yyb1544 = yyj1544 > l
} else {
yyb1544 = r.CheckBreak()
}
if yyb1544 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1544-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 {
yym1562 := z.EncBinary()
_ = yym1562
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1563 := !z.EncBinary()
yy2arr1563 := z.EncBasicHandle().StructToArray
var yyq1563 [8]bool
_, _, _ = yysep1563, yyq1563, yy2arr1563
const yyr1563 bool = false
yyq1563[0] = x.HostNetwork != false
yyq1563[1] = x.HostPID != false
yyq1563[2] = x.HostIPC != false
yyq1563[3] = x.SELinuxOptions != nil
yyq1563[4] = x.RunAsUser != nil
yyq1563[5] = x.RunAsNonRoot != nil
yyq1563[6] = len(x.SupplementalGroups) != 0
yyq1563[7] = x.FSGroup != nil
var yynn1563 int
if yyr1563 || yy2arr1563 {
r.EncodeArrayStart(8)
} else {
yynn1563 = 0
for _, b := range yyq1563 {
if b {
yynn1563++
}
}
r.EncodeMapStart(yynn1563)
yynn1563 = 0
}
if yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[0] {
yym1565 := z.EncBinary()
_ = yym1565
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1563[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1566 := z.EncBinary()
_ = yym1566
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
}
}
if yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[1] {
yym1568 := z.EncBinary()
_ = yym1568
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1563[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1569 := z.EncBinary()
_ = yym1569
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
}
}
if yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[2] {
yym1571 := z.EncBinary()
_ = yym1571
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1563[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1572 := z.EncBinary()
_ = yym1572
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
}
}
if yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[3] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1563[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 yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[4] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy1575 := *x.RunAsUser
yym1576 := z.EncBinary()
_ = yym1576
if false {
} else {
r.EncodeInt(int64(yy1575))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1563[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy1577 := *x.RunAsUser
yym1578 := z.EncBinary()
_ = yym1578
if false {
} else {
r.EncodeInt(int64(yy1577))
}
}
}
}
if yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[5] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy1580 := *x.RunAsNonRoot
yym1581 := z.EncBinary()
_ = yym1581
if false {
} else {
r.EncodeBool(bool(yy1580))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1563[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy1582 := *x.RunAsNonRoot
yym1583 := z.EncBinary()
_ = yym1583
if false {
} else {
r.EncodeBool(bool(yy1582))
}
}
}
}
if yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[6] {
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym1585 := z.EncBinary()
_ = yym1585
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1563[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym1586 := z.EncBinary()
_ = yym1586
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
}
}
if yyr1563 || yy2arr1563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1563[7] {
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy1588 := *x.FSGroup
yym1589 := z.EncBinary()
_ = yym1589
if false {
} else {
r.EncodeInt(int64(yy1588))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1563[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy1590 := *x.FSGroup
yym1591 := z.EncBinary()
_ = yym1591
if false {
} else {
r.EncodeInt(int64(yy1590))
}
}
}
}
if yyr1563 || yy2arr1563 {
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
yym1592 := z.DecBinary()
_ = yym1592
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1593 := r.ContainerType()
if yyct1593 == codecSelferValueTypeMap1234 {
yyl1593 := r.ReadMapStart()
if yyl1593 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1593, d)
}
} else if yyct1593 == codecSelferValueTypeArray1234 {
yyl1593 := r.ReadArrayStart()
if yyl1593 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1593, 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 yys1594Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1594Slc
var yyhl1594 bool = l >= 0
for yyj1594 := 0; ; yyj1594++ {
if yyhl1594 {
if yyj1594 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1594Slc = r.DecodeBytes(yys1594Slc, true, true)
yys1594 := string(yys1594Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1594 {
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)
}
yym1600 := z.DecBinary()
_ = yym1600
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)
}
yym1602 := z.DecBinary()
_ = yym1602
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "supplementalGroups":
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv1603 := &x.SupplementalGroups
yym1604 := z.DecBinary()
_ = yym1604
if false {
} else {
z.F.DecSliceInt64X(yyv1603, false, d)
}
}
case "fsGroup":
if r.TryDecodeAsNil() {
if x.FSGroup != nil {
x.FSGroup = nil
}
} else {
if x.FSGroup == nil {
x.FSGroup = new(int64)
}
yym1606 := z.DecBinary()
_ = yym1606
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys1594)
} // end switch yys1594
} // end for yyj1594
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 yyj1607 int
var yyb1607 bool
var yyhl1607 bool = l >= 0
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPID = false
} else {
x.HostPID = bool(r.DecodeBool())
}
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIPC = false
} else {
x.HostIPC = bool(r.DecodeBool())
}
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
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)
}
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
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)
}
yym1613 := z.DecBinary()
_ = yym1613
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
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)
}
yym1615 := z.DecBinary()
_ = yym1615
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv1616 := &x.SupplementalGroups
yym1617 := z.DecBinary()
_ = yym1617
if false {
} else {
z.F.DecSliceInt64X(yyv1616, false, d)
}
}
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
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)
}
yym1619 := z.DecBinary()
_ = yym1619
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
for {
yyj1607++
if yyhl1607 {
yyb1607 = yyj1607 > l
} else {
yyb1607 = r.CheckBreak()
}
if yyb1607 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1607-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 {
yym1620 := z.EncBinary()
_ = yym1620
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1621 := !z.EncBinary()
yy2arr1621 := z.EncBasicHandle().StructToArray
var yyq1621 [8]bool
_, _, _ = yysep1621, yyq1621, yy2arr1621
const yyr1621 bool = false
yyq1621[0] = x.Phase != ""
yyq1621[1] = len(x.Conditions) != 0
yyq1621[2] = x.Message != ""
yyq1621[3] = x.Reason != ""
yyq1621[4] = x.HostIP != ""
yyq1621[5] = x.PodIP != ""
yyq1621[6] = x.StartTime != nil
yyq1621[7] = len(x.ContainerStatuses) != 0
var yynn1621 int
if yyr1621 || yy2arr1621 {
r.EncodeArrayStart(8)
} else {
yynn1621 = 0
for _, b := range yyq1621 {
if b {
yynn1621++
}
}
r.EncodeMapStart(yynn1621)
yynn1621 = 0
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1621[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[1] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1624 := z.EncBinary()
_ = yym1624
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1621[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1625 := z.EncBinary()
_ = yym1625
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
}
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[2] {
yym1627 := z.EncBinary()
_ = yym1627
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1621[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1628 := z.EncBinary()
_ = yym1628
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[3] {
yym1630 := z.EncBinary()
_ = yym1630
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1621[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1631 := z.EncBinary()
_ = yym1631
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[4] {
yym1633 := z.EncBinary()
_ = yym1633
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1621[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1634 := z.EncBinary()
_ = yym1634
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[5] {
yym1636 := z.EncBinary()
_ = yym1636
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1621[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1637 := z.EncBinary()
_ = yym1637
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
}
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[6] {
if x.StartTime == nil {
r.EncodeNil()
} else {
yym1639 := z.EncBinary()
_ = yym1639
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym1639 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym1639 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1621[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.StartTime == nil {
r.EncodeNil()
} else {
yym1640 := z.EncBinary()
_ = yym1640
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym1640 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym1640 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
}
}
if yyr1621 || yy2arr1621 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1621[7] {
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym1642 := z.EncBinary()
_ = yym1642
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1621[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym1643 := z.EncBinary()
_ = yym1643
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
}
}
if yyr1621 || yy2arr1621 {
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
yym1644 := z.DecBinary()
_ = yym1644
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1645 := r.ContainerType()
if yyct1645 == codecSelferValueTypeMap1234 {
yyl1645 := r.ReadMapStart()
if yyl1645 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1645, d)
}
} else if yyct1645 == codecSelferValueTypeArray1234 {
yyl1645 := r.ReadArrayStart()
if yyl1645 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1645, 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 yys1646Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1646Slc
var yyhl1646 bool = l >= 0
for yyj1646 := 0; ; yyj1646++ {
if yyhl1646 {
if yyj1646 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1646Slc = r.DecodeBytes(yys1646Slc, true, true)
yys1646 := string(yys1646Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1646 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv1648 := &x.Conditions
yym1649 := z.DecBinary()
_ = yym1649
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv1648), 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)
}
yym1655 := z.DecBinary()
_ = yym1655
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym1655 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym1655 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
case "containerStatuses":
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv1656 := &x.ContainerStatuses
yym1657 := z.DecBinary()
_ = yym1657
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1656), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1646)
} // end switch yys1646
} // end for yyj1646
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 yyj1658 int
var yyb1658 bool
var yyhl1658 bool = l >= 0
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv1660 := &x.Conditions
yym1661 := z.DecBinary()
_ = yym1661
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv1660), d)
}
}
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodIP = ""
} else {
x.PodIP = string(r.DecodeString())
}
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
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)
}
yym1667 := z.DecBinary()
_ = yym1667
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym1667 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym1667 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv1668 := &x.ContainerStatuses
yym1669 := z.DecBinary()
_ = yym1669
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1668), d)
}
}
for {
yyj1658++
if yyhl1658 {
yyb1658 = yyj1658 > l
} else {
yyb1658 = r.CheckBreak()
}
if yyb1658 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1658-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 {
yym1670 := z.EncBinary()
_ = yym1670
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1671 := !z.EncBinary()
yy2arr1671 := z.EncBasicHandle().StructToArray
var yyq1671 [4]bool
_, _, _ = yysep1671, yyq1671, yy2arr1671
const yyr1671 bool = false
yyq1671[0] = x.Kind != ""
yyq1671[1] = x.APIVersion != ""
yyq1671[2] = true
yyq1671[3] = true
var yynn1671 int
if yyr1671 || yy2arr1671 {
r.EncodeArrayStart(4)
} else {
yynn1671 = 0
for _, b := range yyq1671 {
if b {
yynn1671++
}
}
r.EncodeMapStart(yynn1671)
yynn1671 = 0
}
if yyr1671 || yy2arr1671 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1671[0] {
yym1673 := z.EncBinary()
_ = yym1673
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1671[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1674 := z.EncBinary()
_ = yym1674
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1671 || yy2arr1671 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1671[1] {
yym1676 := z.EncBinary()
_ = yym1676
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1671[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1677 := z.EncBinary()
_ = yym1677
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1671 || yy2arr1671 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1671[2] {
yy1679 := &x.ObjectMeta
yy1679.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1671[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1680 := &x.ObjectMeta
yy1680.CodecEncodeSelf(e)
}
}
if yyr1671 || yy2arr1671 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1671[3] {
yy1682 := &x.Status
yy1682.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1671[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1683 := &x.Status
yy1683.CodecEncodeSelf(e)
}
}
if yyr1671 || yy2arr1671 {
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
yym1684 := z.DecBinary()
_ = yym1684
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1685 := r.ContainerType()
if yyct1685 == codecSelferValueTypeMap1234 {
yyl1685 := r.ReadMapStart()
if yyl1685 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1685, d)
}
} else if yyct1685 == codecSelferValueTypeArray1234 {
yyl1685 := r.ReadArrayStart()
if yyl1685 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1685, 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 yys1686Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1686Slc
var yyhl1686 bool = l >= 0
for yyj1686 := 0; ; yyj1686++ {
if yyhl1686 {
if yyj1686 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1686Slc = r.DecodeBytes(yys1686Slc, true, true)
yys1686 := string(yys1686Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1686 {
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 {
yyv1689 := &x.ObjectMeta
yyv1689.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1690 := &x.Status
yyv1690.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1686)
} // end switch yys1686
} // end for yyj1686
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 yyj1691 int
var yyb1691 bool
var yyhl1691 bool = l >= 0
yyj1691++
if yyhl1691 {
yyb1691 = yyj1691 > l
} else {
yyb1691 = r.CheckBreak()
}
if yyb1691 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1691++
if yyhl1691 {
yyb1691 = yyj1691 > l
} else {
yyb1691 = r.CheckBreak()
}
if yyb1691 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1691++
if yyhl1691 {
yyb1691 = yyj1691 > l
} else {
yyb1691 = r.CheckBreak()
}
if yyb1691 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1694 := &x.ObjectMeta
yyv1694.CodecDecodeSelf(d)
}
yyj1691++
if yyhl1691 {
yyb1691 = yyj1691 > l
} else {
yyb1691 = r.CheckBreak()
}
if yyb1691 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1695 := &x.Status
yyv1695.CodecDecodeSelf(d)
}
for {
yyj1691++
if yyhl1691 {
yyb1691 = yyj1691 > l
} else {
yyb1691 = r.CheckBreak()
}
if yyb1691 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1691-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 {
yym1696 := z.EncBinary()
_ = yym1696
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1697 := !z.EncBinary()
yy2arr1697 := z.EncBasicHandle().StructToArray
var yyq1697 [5]bool
_, _, _ = yysep1697, yyq1697, yy2arr1697
const yyr1697 bool = false
yyq1697[0] = x.Kind != ""
yyq1697[1] = x.APIVersion != ""
yyq1697[2] = true
yyq1697[3] = true
yyq1697[4] = true
var yynn1697 int
if yyr1697 || yy2arr1697 {
r.EncodeArrayStart(5)
} else {
yynn1697 = 0
for _, b := range yyq1697 {
if b {
yynn1697++
}
}
r.EncodeMapStart(yynn1697)
yynn1697 = 0
}
if yyr1697 || yy2arr1697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1697[0] {
yym1699 := z.EncBinary()
_ = yym1699
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1697[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1700 := z.EncBinary()
_ = yym1700
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1697 || yy2arr1697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1697[1] {
yym1702 := z.EncBinary()
_ = yym1702
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1697[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1703 := z.EncBinary()
_ = yym1703
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1697 || yy2arr1697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1697[2] {
yy1705 := &x.ObjectMeta
yy1705.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1697[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1706 := &x.ObjectMeta
yy1706.CodecEncodeSelf(e)
}
}
if yyr1697 || yy2arr1697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1697[3] {
yy1708 := &x.Spec
yy1708.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1697[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1709 := &x.Spec
yy1709.CodecEncodeSelf(e)
}
}
if yyr1697 || yy2arr1697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1697[4] {
yy1711 := &x.Status
yy1711.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1697[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1712 := &x.Status
yy1712.CodecEncodeSelf(e)
}
}
if yyr1697 || yy2arr1697 {
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
yym1713 := z.DecBinary()
_ = yym1713
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1714 := r.ContainerType()
if yyct1714 == codecSelferValueTypeMap1234 {
yyl1714 := r.ReadMapStart()
if yyl1714 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1714, d)
}
} else if yyct1714 == codecSelferValueTypeArray1234 {
yyl1714 := r.ReadArrayStart()
if yyl1714 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1714, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Pod) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1715Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1715Slc
var yyhl1715 bool = l >= 0
for yyj1715 := 0; ; yyj1715++ {
if yyhl1715 {
if yyj1715 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1715Slc = r.DecodeBytes(yys1715Slc, true, true)
yys1715 := string(yys1715Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1715 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1718 := &x.ObjectMeta
yyv1718.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1719 := &x.Spec
yyv1719.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1720 := &x.Status
yyv1720.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1715)
} // end switch yys1715
} // end for yyj1715
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 yyj1721 int
var yyb1721 bool
var yyhl1721 bool = l >= 0
yyj1721++
if yyhl1721 {
yyb1721 = yyj1721 > l
} else {
yyb1721 = r.CheckBreak()
}
if yyb1721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1721++
if yyhl1721 {
yyb1721 = yyj1721 > l
} else {
yyb1721 = r.CheckBreak()
}
if yyb1721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1721++
if yyhl1721 {
yyb1721 = yyj1721 > l
} else {
yyb1721 = r.CheckBreak()
}
if yyb1721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1724 := &x.ObjectMeta
yyv1724.CodecDecodeSelf(d)
}
yyj1721++
if yyhl1721 {
yyb1721 = yyj1721 > l
} else {
yyb1721 = r.CheckBreak()
}
if yyb1721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1725 := &x.Spec
yyv1725.CodecDecodeSelf(d)
}
yyj1721++
if yyhl1721 {
yyb1721 = yyj1721 > l
} else {
yyb1721 = r.CheckBreak()
}
if yyb1721 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1726 := &x.Status
yyv1726.CodecDecodeSelf(d)
}
for {
yyj1721++
if yyhl1721 {
yyb1721 = yyj1721 > l
} else {
yyb1721 = r.CheckBreak()
}
if yyb1721 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1721-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 {
yym1727 := z.EncBinary()
_ = yym1727
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1728 := !z.EncBinary()
yy2arr1728 := z.EncBasicHandle().StructToArray
var yyq1728 [2]bool
_, _, _ = yysep1728, yyq1728, yy2arr1728
const yyr1728 bool = false
yyq1728[0] = true
yyq1728[1] = true
var yynn1728 int
if yyr1728 || yy2arr1728 {
r.EncodeArrayStart(2)
} else {
yynn1728 = 0
for _, b := range yyq1728 {
if b {
yynn1728++
}
}
r.EncodeMapStart(yynn1728)
yynn1728 = 0
}
if yyr1728 || yy2arr1728 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1728[0] {
yy1730 := &x.ObjectMeta
yy1730.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1728[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1731 := &x.ObjectMeta
yy1731.CodecEncodeSelf(e)
}
}
if yyr1728 || yy2arr1728 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1728[1] {
yy1733 := &x.Spec
yy1733.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1728[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1734 := &x.Spec
yy1734.CodecEncodeSelf(e)
}
}
if yyr1728 || yy2arr1728 {
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
yym1735 := z.DecBinary()
_ = yym1735
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1736 := r.ContainerType()
if yyct1736 == codecSelferValueTypeMap1234 {
yyl1736 := r.ReadMapStart()
if yyl1736 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1736, d)
}
} else if yyct1736 == codecSelferValueTypeArray1234 {
yyl1736 := r.ReadArrayStart()
if yyl1736 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1736, 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 yys1737Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1737Slc
var yyhl1737 bool = l >= 0
for yyj1737 := 0; ; yyj1737++ {
if yyhl1737 {
if yyj1737 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1737Slc = r.DecodeBytes(yys1737Slc, true, true)
yys1737 := string(yys1737Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1737 {
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1738 := &x.ObjectMeta
yyv1738.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1739 := &x.Spec
yyv1739.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1737)
} // end switch yys1737
} // end for yyj1737
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 yyj1740 int
var yyb1740 bool
var yyhl1740 bool = l >= 0
yyj1740++
if yyhl1740 {
yyb1740 = yyj1740 > l
} else {
yyb1740 = r.CheckBreak()
}
if yyb1740 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1741 := &x.ObjectMeta
yyv1741.CodecDecodeSelf(d)
}
yyj1740++
if yyhl1740 {
yyb1740 = yyj1740 > l
} else {
yyb1740 = r.CheckBreak()
}
if yyb1740 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1742 := &x.Spec
yyv1742.CodecDecodeSelf(d)
}
for {
yyj1740++
if yyhl1740 {
yyb1740 = yyj1740 > l
} else {
yyb1740 = r.CheckBreak()
}
if yyb1740 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1740-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 {
yym1743 := z.EncBinary()
_ = yym1743
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1744 := !z.EncBinary()
yy2arr1744 := z.EncBasicHandle().StructToArray
var yyq1744 [4]bool
_, _, _ = yysep1744, yyq1744, yy2arr1744
const yyr1744 bool = false
yyq1744[0] = x.Kind != ""
yyq1744[1] = x.APIVersion != ""
yyq1744[2] = true
yyq1744[3] = true
var yynn1744 int
if yyr1744 || yy2arr1744 {
r.EncodeArrayStart(4)
} else {
yynn1744 = 0
for _, b := range yyq1744 {
if b {
yynn1744++
}
}
r.EncodeMapStart(yynn1744)
yynn1744 = 0
}
if yyr1744 || yy2arr1744 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1744[0] {
yym1746 := z.EncBinary()
_ = yym1746
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1744[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1747 := z.EncBinary()
_ = yym1747
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1744 || yy2arr1744 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1744[1] {
yym1749 := z.EncBinary()
_ = yym1749
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1744[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1750 := z.EncBinary()
_ = yym1750
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1744 || yy2arr1744 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1744[2] {
yy1752 := &x.ObjectMeta
yy1752.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1744[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1753 := &x.ObjectMeta
yy1753.CodecEncodeSelf(e)
}
}
if yyr1744 || yy2arr1744 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1744[3] {
yy1755 := &x.Template
yy1755.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1744[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1756 := &x.Template
yy1756.CodecEncodeSelf(e)
}
}
if yyr1744 || yy2arr1744 {
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
yym1757 := z.DecBinary()
_ = yym1757
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1758 := r.ContainerType()
if yyct1758 == codecSelferValueTypeMap1234 {
yyl1758 := r.ReadMapStart()
if yyl1758 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1758, d)
}
} else if yyct1758 == codecSelferValueTypeArray1234 {
yyl1758 := r.ReadArrayStart()
if yyl1758 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1758, 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 yys1759Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1759Slc
var yyhl1759 bool = l >= 0
for yyj1759 := 0; ; yyj1759++ {
if yyhl1759 {
if yyj1759 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1759Slc = r.DecodeBytes(yys1759Slc, true, true)
yys1759 := string(yys1759Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1759 {
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 {
yyv1762 := &x.ObjectMeta
yyv1762.CodecDecodeSelf(d)
}
case "template":
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv1763 := &x.Template
yyv1763.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1759)
} // end switch yys1759
} // end for yyj1759
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 yyj1764 int
var yyb1764 bool
var yyhl1764 bool = l >= 0
yyj1764++
if yyhl1764 {
yyb1764 = yyj1764 > l
} else {
yyb1764 = r.CheckBreak()
}
if yyb1764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1764++
if yyhl1764 {
yyb1764 = yyj1764 > l
} else {
yyb1764 = r.CheckBreak()
}
if yyb1764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1764++
if yyhl1764 {
yyb1764 = yyj1764 > l
} else {
yyb1764 = r.CheckBreak()
}
if yyb1764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1767 := &x.ObjectMeta
yyv1767.CodecDecodeSelf(d)
}
yyj1764++
if yyhl1764 {
yyb1764 = yyj1764 > l
} else {
yyb1764 = r.CheckBreak()
}
if yyb1764 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv1768 := &x.Template
yyv1768.CodecDecodeSelf(d)
}
for {
yyj1764++
if yyhl1764 {
yyb1764 = yyj1764 > l
} else {
yyb1764 = r.CheckBreak()
}
if yyb1764 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1764-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodTemplateList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1769 := z.EncBinary()
_ = yym1769
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1770 := !z.EncBinary()
yy2arr1770 := z.EncBasicHandle().StructToArray
var yyq1770 [4]bool
_, _, _ = yysep1770, yyq1770, yy2arr1770
const yyr1770 bool = false
yyq1770[0] = x.Kind != ""
yyq1770[1] = x.APIVersion != ""
yyq1770[2] = true
var yynn1770 int
if yyr1770 || yy2arr1770 {
r.EncodeArrayStart(4)
} else {
yynn1770 = 1
for _, b := range yyq1770 {
if b {
yynn1770++
}
}
r.EncodeMapStart(yynn1770)
yynn1770 = 0
}
if yyr1770 || yy2arr1770 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1770[0] {
yym1772 := z.EncBinary()
_ = yym1772
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1770[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1773 := z.EncBinary()
_ = yym1773
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1770 || yy2arr1770 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1770[1] {
yym1775 := z.EncBinary()
_ = yym1775
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1770[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1776 := z.EncBinary()
_ = yym1776
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1770 || yy2arr1770 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1770[2] {
yy1778 := &x.ListMeta
yym1779 := z.EncBinary()
_ = yym1779
if false {
} else if z.HasExtensions() && z.EncExt(yy1778) {
} else {
z.EncFallback(yy1778)
}
} else {
r.EncodeNil()
}
} else {
if yyq1770[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1780 := &x.ListMeta
yym1781 := z.EncBinary()
_ = yym1781
if false {
} else if z.HasExtensions() && z.EncExt(yy1780) {
} else {
z.EncFallback(yy1780)
}
}
}
if yyr1770 || yy2arr1770 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1783 := z.EncBinary()
_ = yym1783
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 {
yym1784 := z.EncBinary()
_ = yym1784
if false {
} else {
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
}
}
}
if yyr1770 || yy2arr1770 {
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
yym1785 := z.DecBinary()
_ = yym1785
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1786 := r.ContainerType()
if yyct1786 == codecSelferValueTypeMap1234 {
yyl1786 := r.ReadMapStart()
if yyl1786 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1786, d)
}
} else if yyct1786 == codecSelferValueTypeArray1234 {
yyl1786 := r.ReadArrayStart()
if yyl1786 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1786, 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 yys1787Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1787Slc
var yyhl1787 bool = l >= 0
for yyj1787 := 0; ; yyj1787++ {
if yyhl1787 {
if yyj1787 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1787Slc = r.DecodeBytes(yys1787Slc, true, true)
yys1787 := string(yys1787Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1787 {
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 {
yyv1790 := &x.ListMeta
yym1791 := z.DecBinary()
_ = yym1791
if false {
} else if z.HasExtensions() && z.DecExt(yyv1790) {
} else {
z.DecFallback(yyv1790, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1792 := &x.Items
yym1793 := z.DecBinary()
_ = yym1793
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv1792), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1787)
} // end switch yys1787
} // end for yyj1787
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 yyj1794 int
var yyb1794 bool
var yyhl1794 bool = l >= 0
yyj1794++
if yyhl1794 {
yyb1794 = yyj1794 > l
} else {
yyb1794 = r.CheckBreak()
}
if yyb1794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1794++
if yyhl1794 {
yyb1794 = yyj1794 > l
} else {
yyb1794 = r.CheckBreak()
}
if yyb1794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1794++
if yyhl1794 {
yyb1794 = yyj1794 > l
} else {
yyb1794 = r.CheckBreak()
}
if yyb1794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1797 := &x.ListMeta
yym1798 := z.DecBinary()
_ = yym1798
if false {
} else if z.HasExtensions() && z.DecExt(yyv1797) {
} else {
z.DecFallback(yyv1797, false)
}
}
yyj1794++
if yyhl1794 {
yyb1794 = yyj1794 > l
} else {
yyb1794 = r.CheckBreak()
}
if yyb1794 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1799 := &x.Items
yym1800 := z.DecBinary()
_ = yym1800
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv1799), d)
}
}
for {
yyj1794++
if yyhl1794 {
yyb1794 = yyj1794 > l
} else {
yyb1794 = r.CheckBreak()
}
if yyb1794 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1794-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 {
yym1801 := z.EncBinary()
_ = yym1801
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1802 := !z.EncBinary()
yy2arr1802 := z.EncBasicHandle().StructToArray
var yyq1802 [3]bool
_, _, _ = yysep1802, yyq1802, yy2arr1802
const yyr1802 bool = false
yyq1802[2] = x.Template != nil
var yynn1802 int
if yyr1802 || yy2arr1802 {
r.EncodeArrayStart(3)
} else {
yynn1802 = 2
for _, b := range yyq1802 {
if b {
yynn1802++
}
}
r.EncodeMapStart(yynn1802)
yynn1802 = 0
}
if yyr1802 || yy2arr1802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1804 := z.EncBinary()
_ = yym1804
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1805 := z.EncBinary()
_ = yym1805
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr1802 || yy2arr1802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym1807 := z.EncBinary()
_ = yym1807
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 {
yym1808 := z.EncBinary()
_ = yym1808
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr1802 || yy2arr1802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1802[2] {
if x.Template == nil {
r.EncodeNil()
} else {
x.Template.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1802[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 yyr1802 || yy2arr1802 {
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
yym1810 := z.DecBinary()
_ = yym1810
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1811 := r.ContainerType()
if yyct1811 == codecSelferValueTypeMap1234 {
yyl1811 := r.ReadMapStart()
if yyl1811 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1811, d)
}
} else if yyct1811 == codecSelferValueTypeArray1234 {
yyl1811 := r.ReadArrayStart()
if yyl1811 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1811, 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 yys1812Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1812Slc
var yyhl1812 bool = l >= 0
for yyj1812 := 0; ; yyj1812++ {
if yyhl1812 {
if yyj1812 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1812Slc = r.DecodeBytes(yys1812Slc, true, true)
yys1812 := string(yys1812Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1812 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1814 := &x.Selector
yym1815 := z.DecBinary()
_ = yym1815
if false {
} else {
z.F.DecMapStringStringX(yyv1814, 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, yys1812)
} // end switch yys1812
} // end for yyj1812
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 yyj1817 int
var yyb1817 bool
var yyhl1817 bool = l >= 0
yyj1817++
if yyhl1817 {
yyb1817 = yyj1817 > l
} else {
yyb1817 = r.CheckBreak()
}
if yyb1817 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1817++
if yyhl1817 {
yyb1817 = yyj1817 > l
} else {
yyb1817 = r.CheckBreak()
}
if yyb1817 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1819 := &x.Selector
yym1820 := z.DecBinary()
_ = yym1820
if false {
} else {
z.F.DecMapStringStringX(yyv1819, false, d)
}
}
yyj1817++
if yyhl1817 {
yyb1817 = yyj1817 > l
} else {
yyb1817 = r.CheckBreak()
}
if yyb1817 {
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 {
yyj1817++
if yyhl1817 {
yyb1817 = yyj1817 > l
} else {
yyb1817 = r.CheckBreak()
}
if yyb1817 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1817-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 {
yym1822 := z.EncBinary()
_ = yym1822
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1823 := !z.EncBinary()
yy2arr1823 := z.EncBasicHandle().StructToArray
var yyq1823 [2]bool
_, _, _ = yysep1823, yyq1823, yy2arr1823
const yyr1823 bool = false
yyq1823[1] = x.ObservedGeneration != 0
var yynn1823 int
if yyr1823 || yy2arr1823 {
r.EncodeArrayStart(2)
} else {
yynn1823 = 1
for _, b := range yyq1823 {
if b {
yynn1823++
}
}
r.EncodeMapStart(yynn1823)
yynn1823 = 0
}
if yyr1823 || yy2arr1823 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1825 := z.EncBinary()
_ = yym1825
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1826 := z.EncBinary()
_ = yym1826
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr1823 || yy2arr1823 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1823[1] {
yym1828 := z.EncBinary()
_ = yym1828
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1823[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1829 := z.EncBinary()
_ = yym1829
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
}
}
if yyr1823 || yy2arr1823 {
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
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 *ReplicationControllerStatus) 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 "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, yys1832)
} // end switch yys1832
} // end for yyj1832
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 yyj1835 int
var yyb1835 bool
var yyhl1835 bool = l >= 0
yyj1835++
if yyhl1835 {
yyb1835 = yyj1835 > l
} else {
yyb1835 = r.CheckBreak()
}
if yyb1835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1835++
if yyhl1835 {
yyb1835 = yyj1835 > l
} else {
yyb1835 = r.CheckBreak()
}
if yyb1835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
for {
yyj1835++
if yyhl1835 {
yyb1835 = yyj1835 > l
} else {
yyb1835 = r.CheckBreak()
}
if yyb1835 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1835-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 {
yym1838 := z.EncBinary()
_ = yym1838
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1839 := !z.EncBinary()
yy2arr1839 := z.EncBasicHandle().StructToArray
var yyq1839 [5]bool
_, _, _ = yysep1839, yyq1839, yy2arr1839
const yyr1839 bool = false
yyq1839[0] = x.Kind != ""
yyq1839[1] = x.APIVersion != ""
yyq1839[2] = true
yyq1839[3] = true
yyq1839[4] = true
var yynn1839 int
if yyr1839 || yy2arr1839 {
r.EncodeArrayStart(5)
} else {
yynn1839 = 0
for _, b := range yyq1839 {
if b {
yynn1839++
}
}
r.EncodeMapStart(yynn1839)
yynn1839 = 0
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1839[0] {
yym1841 := z.EncBinary()
_ = yym1841
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1839[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1842 := z.EncBinary()
_ = yym1842
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1839[1] {
yym1844 := z.EncBinary()
_ = yym1844
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1839[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1845 := z.EncBinary()
_ = yym1845
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1839[2] {
yy1847 := &x.ObjectMeta
yy1847.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1839[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1848 := &x.ObjectMeta
yy1848.CodecEncodeSelf(e)
}
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1839[3] {
yy1850 := &x.Spec
yy1850.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1839[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1851 := &x.Spec
yy1851.CodecEncodeSelf(e)
}
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1839[4] {
yy1853 := &x.Status
yy1853.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1839[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1854 := &x.Status
yy1854.CodecEncodeSelf(e)
}
}
if yyr1839 || yy2arr1839 {
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
yym1855 := z.DecBinary()
_ = yym1855
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1856 := r.ContainerType()
if yyct1856 == codecSelferValueTypeMap1234 {
yyl1856 := r.ReadMapStart()
if yyl1856 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1856, d)
}
} else if yyct1856 == codecSelferValueTypeArray1234 {
yyl1856 := r.ReadArrayStart()
if yyl1856 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1856, 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 yys1857Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1857Slc
var yyhl1857 bool = l >= 0
for yyj1857 := 0; ; yyj1857++ {
if yyhl1857 {
if yyj1857 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1857Slc = r.DecodeBytes(yys1857Slc, true, true)
yys1857 := string(yys1857Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1857 {
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 {
yyv1860 := &x.ObjectMeta
yyv1860.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv1861 := &x.Spec
yyv1861.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv1862 := &x.Status
yyv1862.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1857)
} // end switch yys1857
} // end for yyj1857
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 yyj1863 int
var yyb1863 bool
var yyhl1863 bool = l >= 0
yyj1863++
if yyhl1863 {
yyb1863 = yyj1863 > l
} else {
yyb1863 = r.CheckBreak()
}
if yyb1863 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1863++
if yyhl1863 {
yyb1863 = yyj1863 > l
} else {
yyb1863 = r.CheckBreak()
}
if yyb1863 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1863++
if yyhl1863 {
yyb1863 = yyj1863 > l
} else {
yyb1863 = r.CheckBreak()
}
if yyb1863 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1866 := &x.ObjectMeta
yyv1866.CodecDecodeSelf(d)
}
yyj1863++
if yyhl1863 {
yyb1863 = yyj1863 > l
} else {
yyb1863 = r.CheckBreak()
}
if yyb1863 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv1867 := &x.Spec
yyv1867.CodecDecodeSelf(d)
}
yyj1863++
if yyhl1863 {
yyb1863 = yyj1863 > l
} else {
yyb1863 = r.CheckBreak()
}
if yyb1863 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv1868 := &x.Status
yyv1868.CodecDecodeSelf(d)
}
for {
yyj1863++
if yyhl1863 {
yyb1863 = yyj1863 > l
} else {
yyb1863 = r.CheckBreak()
}
if yyb1863 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1863-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 {
yym1869 := z.EncBinary()
_ = yym1869
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1870 := !z.EncBinary()
yy2arr1870 := z.EncBasicHandle().StructToArray
var yyq1870 [4]bool
_, _, _ = yysep1870, yyq1870, yy2arr1870
const yyr1870 bool = false
yyq1870[0] = x.Kind != ""
yyq1870[1] = x.APIVersion != ""
yyq1870[2] = true
var yynn1870 int
if yyr1870 || yy2arr1870 {
r.EncodeArrayStart(4)
} else {
yynn1870 = 1
for _, b := range yyq1870 {
if b {
yynn1870++
}
}
r.EncodeMapStart(yynn1870)
yynn1870 = 0
}
if yyr1870 || yy2arr1870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1870[0] {
yym1872 := z.EncBinary()
_ = yym1872
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1870[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1873 := z.EncBinary()
_ = yym1873
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1870 || yy2arr1870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1870[1] {
yym1875 := z.EncBinary()
_ = yym1875
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1870[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1876 := z.EncBinary()
_ = yym1876
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1870 || yy2arr1870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1870[2] {
yy1878 := &x.ListMeta
yym1879 := z.EncBinary()
_ = yym1879
if false {
} else if z.HasExtensions() && z.EncExt(yy1878) {
} else {
z.EncFallback(yy1878)
}
} else {
r.EncodeNil()
}
} else {
if yyq1870[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1880 := &x.ListMeta
yym1881 := z.EncBinary()
_ = yym1881
if false {
} else if z.HasExtensions() && z.EncExt(yy1880) {
} else {
z.EncFallback(yy1880)
}
}
}
if yyr1870 || yy2arr1870 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1883 := z.EncBinary()
_ = yym1883
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 {
yym1884 := z.EncBinary()
_ = yym1884
if false {
} else {
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
}
}
}
if yyr1870 || yy2arr1870 {
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
yym1885 := z.DecBinary()
_ = yym1885
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1886 := r.ContainerType()
if yyct1886 == codecSelferValueTypeMap1234 {
yyl1886 := r.ReadMapStart()
if yyl1886 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1886, d)
}
} else if yyct1886 == codecSelferValueTypeArray1234 {
yyl1886 := r.ReadArrayStart()
if yyl1886 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1886, 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 yys1887Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1887Slc
var yyhl1887 bool = l >= 0
for yyj1887 := 0; ; yyj1887++ {
if yyhl1887 {
if yyj1887 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1887Slc = r.DecodeBytes(yys1887Slc, true, true)
yys1887 := string(yys1887Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1887 {
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 {
yyv1890 := &x.ListMeta
yym1891 := z.DecBinary()
_ = yym1891
if false {
} else if z.HasExtensions() && z.DecExt(yyv1890) {
} else {
z.DecFallback(yyv1890, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1892 := &x.Items
yym1893 := z.DecBinary()
_ = yym1893
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv1892), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1887)
} // end switch yys1887
} // end for yyj1887
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 yyj1894 int
var yyb1894 bool
var yyhl1894 bool = l >= 0
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1897 := &x.ListMeta
yym1898 := z.DecBinary()
_ = yym1898
if false {
} else if z.HasExtensions() && z.DecExt(yyv1897) {
} else {
z.DecFallback(yyv1897, false)
}
}
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1899 := &x.Items
yym1900 := z.DecBinary()
_ = yym1900
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv1899), d)
}
}
for {
yyj1894++
if yyhl1894 {
yyb1894 = yyj1894 > l
} else {
yyb1894 = r.CheckBreak()
}
if yyb1894 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1894-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1901 := z.EncBinary()
_ = yym1901
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1902 := !z.EncBinary()
yy2arr1902 := z.EncBasicHandle().StructToArray
var yyq1902 [4]bool
_, _, _ = yysep1902, yyq1902, yy2arr1902
const yyr1902 bool = false
yyq1902[0] = x.Kind != ""
yyq1902[1] = x.APIVersion != ""
yyq1902[2] = true
var yynn1902 int
if yyr1902 || yy2arr1902 {
r.EncodeArrayStart(4)
} else {
yynn1902 = 1
for _, b := range yyq1902 {
if b {
yynn1902++
}
}
r.EncodeMapStart(yynn1902)
yynn1902 = 0
}
if yyr1902 || yy2arr1902 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1902[0] {
yym1904 := z.EncBinary()
_ = yym1904
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1902[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1905 := z.EncBinary()
_ = yym1905
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1902 || yy2arr1902 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1902[1] {
yym1907 := z.EncBinary()
_ = yym1907
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1902[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1908 := z.EncBinary()
_ = yym1908
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1902 || yy2arr1902 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1902[2] {
yy1910 := &x.ListMeta
yym1911 := z.EncBinary()
_ = yym1911
if false {
} else if z.HasExtensions() && z.EncExt(yy1910) {
} else {
z.EncFallback(yy1910)
}
} else {
r.EncodeNil()
}
} else {
if yyq1902[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1912 := &x.ListMeta
yym1913 := z.EncBinary()
_ = yym1913
if false {
} else if z.HasExtensions() && z.EncExt(yy1912) {
} else {
z.EncFallback(yy1912)
}
}
}
if yyr1902 || yy2arr1902 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1915 := z.EncBinary()
_ = yym1915
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 {
yym1916 := z.EncBinary()
_ = yym1916
if false {
} else {
h.encSliceService(([]Service)(x.Items), e)
}
}
}
if yyr1902 || yy2arr1902 {
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
yym1917 := z.DecBinary()
_ = yym1917
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1918 := r.ContainerType()
if yyct1918 == codecSelferValueTypeMap1234 {
yyl1918 := r.ReadMapStart()
if yyl1918 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1918, d)
}
} else if yyct1918 == codecSelferValueTypeArray1234 {
yyl1918 := r.ReadArrayStart()
if yyl1918 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1918, 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 yys1919Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1919Slc
var yyhl1919 bool = l >= 0
for yyj1919 := 0; ; yyj1919++ {
if yyhl1919 {
if yyj1919 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1919Slc = r.DecodeBytes(yys1919Slc, true, true)
yys1919 := string(yys1919Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1919 {
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 {
yyv1922 := &x.ListMeta
yym1923 := z.DecBinary()
_ = yym1923
if false {
} else if z.HasExtensions() && z.DecExt(yyv1922) {
} else {
z.DecFallback(yyv1922, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1924 := &x.Items
yym1925 := z.DecBinary()
_ = yym1925
if false {
} else {
h.decSliceService((*[]Service)(yyv1924), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1919)
} // end switch yys1919
} // end for yyj1919
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 yyj1926 int
var yyb1926 bool
var yyhl1926 bool = l >= 0
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1929 := &x.ListMeta
yym1930 := z.DecBinary()
_ = yym1930
if false {
} else if z.HasExtensions() && z.DecExt(yyv1929) {
} else {
z.DecFallback(yyv1929, false)
}
}
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1931 := &x.Items
yym1932 := z.DecBinary()
_ = yym1932
if false {
} else {
h.decSliceService((*[]Service)(yyv1931), d)
}
}
for {
yyj1926++
if yyhl1926 {
yyb1926 = yyj1926 > l
} else {
yyb1926 = r.CheckBreak()
}
if yyb1926 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1926-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1933 := z.EncBinary()
_ = yym1933
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
yym1934 := z.DecBinary()
_ = yym1934
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
yym1935 := z.EncBinary()
_ = yym1935
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
yym1936 := z.DecBinary()
_ = yym1936
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 {
yym1937 := z.EncBinary()
_ = yym1937
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1938 := !z.EncBinary()
yy2arr1938 := z.EncBasicHandle().StructToArray
var yyq1938 [1]bool
_, _, _ = yysep1938, yyq1938, yy2arr1938
const yyr1938 bool = false
yyq1938[0] = true
var yynn1938 int
if yyr1938 || yy2arr1938 {
r.EncodeArrayStart(1)
} else {
yynn1938 = 0
for _, b := range yyq1938 {
if b {
yynn1938++
}
}
r.EncodeMapStart(yynn1938)
yynn1938 = 0
}
if yyr1938 || yy2arr1938 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1938[0] {
yy1940 := &x.LoadBalancer
yy1940.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1938[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1941 := &x.LoadBalancer
yy1941.CodecEncodeSelf(e)
}
}
if yyr1938 || yy2arr1938 {
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
yym1942 := z.DecBinary()
_ = yym1942
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1943 := r.ContainerType()
if yyct1943 == codecSelferValueTypeMap1234 {
yyl1943 := r.ReadMapStart()
if yyl1943 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1943, d)
}
} else if yyct1943 == codecSelferValueTypeArray1234 {
yyl1943 := r.ReadArrayStart()
if yyl1943 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1943, 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 yys1944Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1944Slc
var yyhl1944 bool = l >= 0
for yyj1944 := 0; ; yyj1944++ {
if yyhl1944 {
if yyj1944 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1944Slc = r.DecodeBytes(yys1944Slc, true, true)
yys1944 := string(yys1944Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1944 {
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv1945 := &x.LoadBalancer
yyv1945.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1944)
} // end switch yys1944
} // end for yyj1944
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 yyj1946 int
var yyb1946 bool
var yyhl1946 bool = l >= 0
yyj1946++
if yyhl1946 {
yyb1946 = yyj1946 > l
} else {
yyb1946 = r.CheckBreak()
}
if yyb1946 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv1947 := &x.LoadBalancer
yyv1947.CodecDecodeSelf(d)
}
for {
yyj1946++
if yyhl1946 {
yyb1946 = yyj1946 > l
} else {
yyb1946 = r.CheckBreak()
}
if yyb1946 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1946-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 {
yym1948 := z.EncBinary()
_ = yym1948
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1949 := !z.EncBinary()
yy2arr1949 := z.EncBasicHandle().StructToArray
var yyq1949 [1]bool
_, _, _ = yysep1949, yyq1949, yy2arr1949
const yyr1949 bool = false
yyq1949[0] = len(x.Ingress) != 0
var yynn1949 int
if yyr1949 || yy2arr1949 {
r.EncodeArrayStart(1)
} else {
yynn1949 = 0
for _, b := range yyq1949 {
if b {
yynn1949++
}
}
r.EncodeMapStart(yynn1949)
yynn1949 = 0
}
if yyr1949 || yy2arr1949 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1949[0] {
if x.Ingress == nil {
r.EncodeNil()
} else {
yym1951 := z.EncBinary()
_ = yym1951
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1949[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
yym1952 := z.EncBinary()
_ = yym1952
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
}
}
if yyr1949 || yy2arr1949 {
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
yym1953 := z.DecBinary()
_ = yym1953
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1954 := r.ContainerType()
if yyct1954 == codecSelferValueTypeMap1234 {
yyl1954 := r.ReadMapStart()
if yyl1954 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1954, d)
}
} else if yyct1954 == codecSelferValueTypeArray1234 {
yyl1954 := r.ReadArrayStart()
if yyl1954 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1954, 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 yys1955Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1955Slc
var yyhl1955 bool = l >= 0
for yyj1955 := 0; ; yyj1955++ {
if yyhl1955 {
if yyj1955 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1955Slc = r.DecodeBytes(yys1955Slc, true, true)
yys1955 := string(yys1955Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1955 {
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv1956 := &x.Ingress
yym1957 := z.DecBinary()
_ = yym1957
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1956), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1955)
} // end switch yys1955
} // end for yyj1955
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 yyj1958 int
var yyb1958 bool
var yyhl1958 bool = l >= 0
yyj1958++
if yyhl1958 {
yyb1958 = yyj1958 > l
} else {
yyb1958 = r.CheckBreak()
}
if yyb1958 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv1959 := &x.Ingress
yym1960 := z.DecBinary()
_ = yym1960
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1959), d)
}
}
for {
yyj1958++
if yyhl1958 {
yyb1958 = yyj1958 > l
} else {
yyb1958 = r.CheckBreak()
}
if yyb1958 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1958-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 {
yym1961 := z.EncBinary()
_ = yym1961
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1962 := !z.EncBinary()
yy2arr1962 := z.EncBasicHandle().StructToArray
var yyq1962 [2]bool
_, _, _ = yysep1962, yyq1962, yy2arr1962
const yyr1962 bool = false
yyq1962[0] = x.IP != ""
yyq1962[1] = x.Hostname != ""
var yynn1962 int
if yyr1962 || yy2arr1962 {
r.EncodeArrayStart(2)
} else {
yynn1962 = 0
for _, b := range yyq1962 {
if b {
yynn1962++
}
}
r.EncodeMapStart(yynn1962)
yynn1962 = 0
}
if yyr1962 || yy2arr1962 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1962[0] {
yym1964 := z.EncBinary()
_ = yym1964
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1962[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ip"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1965 := z.EncBinary()
_ = yym1965
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
}
if yyr1962 || yy2arr1962 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1962[1] {
yym1967 := z.EncBinary()
_ = yym1967
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1962[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1968 := z.EncBinary()
_ = yym1968
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr1962 || yy2arr1962 {
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
yym1969 := z.DecBinary()
_ = yym1969
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1970 := r.ContainerType()
if yyct1970 == codecSelferValueTypeMap1234 {
yyl1970 := r.ReadMapStart()
if yyl1970 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1970, d)
}
} else if yyct1970 == codecSelferValueTypeArray1234 {
yyl1970 := r.ReadArrayStart()
if yyl1970 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1970, 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 yys1971Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1971Slc
var yyhl1971 bool = l >= 0
for yyj1971 := 0; ; yyj1971++ {
if yyhl1971 {
if yyj1971 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1971Slc = r.DecodeBytes(yys1971Slc, true, true)
yys1971 := string(yys1971Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1971 {
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, yys1971)
} // end switch yys1971
} // end for yyj1971
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 yyj1974 int
var yyb1974 bool
var yyhl1974 bool = l >= 0
yyj1974++
if yyhl1974 {
yyb1974 = yyj1974 > l
} else {
yyb1974 = r.CheckBreak()
}
if yyb1974 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj1974++
if yyhl1974 {
yyb1974 = yyj1974 > l
} else {
yyb1974 = r.CheckBreak()
}
if yyb1974 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
for {
yyj1974++
if yyhl1974 {
yyb1974 = yyj1974 > l
} else {
yyb1974 = r.CheckBreak()
}
if yyb1974 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1974-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1977 := z.EncBinary()
_ = yym1977
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1978 := !z.EncBinary()
yy2arr1978 := z.EncBasicHandle().StructToArray
var yyq1978 [7]bool
_, _, _ = yysep1978, yyq1978, yy2arr1978
const yyr1978 bool = false
yyq1978[0] = x.Type != ""
yyq1978[3] = x.ClusterIP != ""
yyq1978[4] = len(x.ExternalIPs) != 0
yyq1978[5] = x.LoadBalancerIP != ""
yyq1978[6] = x.SessionAffinity != ""
var yynn1978 int
if yyr1978 || yy2arr1978 {
r.EncodeArrayStart(7)
} else {
yynn1978 = 2
for _, b := range yyq1978 {
if b {
yynn1978++
}
}
r.EncodeMapStart(yynn1978)
yynn1978 = 0
}
if yyr1978 || yy2arr1978 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1978[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1978[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr1978 || yy2arr1978 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1981 := z.EncBinary()
_ = yym1981
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 {
yym1982 := z.EncBinary()
_ = yym1982
if false {
} else {
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
}
}
}
if yyr1978 || yy2arr1978 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym1984 := z.EncBinary()
_ = yym1984
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 {
yym1985 := z.EncBinary()
_ = yym1985
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr1978 || yy2arr1978 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1978[3] {
yym1987 := z.EncBinary()
_ = yym1987
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1978[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1988 := z.EncBinary()
_ = yym1988
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
}
}
if yyr1978 || yy2arr1978 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1978[4] {
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym1990 := z.EncBinary()
_ = yym1990
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1978[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym1991 := z.EncBinary()
_ = yym1991
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
}
}
if yyr1978 || yy2arr1978 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1978[5] {
yym1993 := z.EncBinary()
_ = yym1993
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1978[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1994 := z.EncBinary()
_ = yym1994
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
}
}
if yyr1978 || yy2arr1978 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1978[6] {
x.SessionAffinity.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1978[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.SessionAffinity.CodecEncodeSelf(e)
}
}
if yyr1978 || yy2arr1978 {
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
yym1996 := z.DecBinary()
_ = yym1996
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1997 := r.ContainerType()
if yyct1997 == codecSelferValueTypeMap1234 {
yyl1997 := r.ReadMapStart()
if yyl1997 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1997, d)
}
} else if yyct1997 == codecSelferValueTypeArray1234 {
yyl1997 := r.ReadArrayStart()
if yyl1997 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1997, 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 yys1998Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1998Slc
var yyhl1998 bool = l >= 0
for yyj1998 := 0; ; yyj1998++ {
if yyhl1998 {
if yyj1998 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1998Slc = r.DecodeBytes(yys1998Slc, true, true)
yys1998 := string(yys1998Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1998 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2000 := &x.Ports
yym2001 := z.DecBinary()
_ = yym2001
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2000), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2002 := &x.Selector
yym2003 := z.DecBinary()
_ = yym2003
if false {
} else {
z.F.DecMapStringStringX(yyv2002, false, d)
}
}
case "clusterIP":
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
case "externalIPs":
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2005 := &x.ExternalIPs
yym2006 := z.DecBinary()
_ = yym2006
if false {
} else {
z.F.DecSliceStringX(yyv2005, 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, yys1998)
} // end switch yys1998
} // end for yyj1998
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 yyj2009 int
var yyb2009 bool
var yyhl2009 bool = l >= 0
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2011 := &x.Ports
yym2012 := z.DecBinary()
_ = yym2012
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2011), d)
}
}
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2013 := &x.Selector
yym2014 := z.DecBinary()
_ = yym2014
if false {
} else {
z.F.DecMapStringStringX(yyv2013, false, d)
}
}
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2016 := &x.ExternalIPs
yym2017 := z.DecBinary()
_ = yym2017
if false {
} else {
z.F.DecSliceStringX(yyv2016, false, d)
}
}
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
for {
yyj2009++
if yyhl2009 {
yyb2009 = yyj2009 > l
} else {
yyb2009 = r.CheckBreak()
}
if yyb2009 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2009-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2020 := z.EncBinary()
_ = yym2020
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2021 := !z.EncBinary()
yy2arr2021 := z.EncBasicHandle().StructToArray
var yyq2021 [5]bool
_, _, _ = yysep2021, yyq2021, yy2arr2021
const yyr2021 bool = false
var yynn2021 int
if yyr2021 || yy2arr2021 {
r.EncodeArrayStart(5)
} else {
yynn2021 = 5
for _, b := range yyq2021 {
if b {
yynn2021++
}
}
r.EncodeMapStart(yynn2021)
yynn2021 = 0
}
if yyr2021 || yy2arr2021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2023 := z.EncBinary()
_ = yym2023
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)
yym2024 := z.EncBinary()
_ = yym2024
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2021 || yy2arr2021 {
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 yyr2021 || yy2arr2021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2027 := z.EncBinary()
_ = yym2027
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2028 := z.EncBinary()
_ = yym2028
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2021 || yy2arr2021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2030 := &x.TargetPort
yym2031 := z.EncBinary()
_ = yym2031
if false {
} else if z.HasExtensions() && z.EncExt(yy2030) {
} else if !yym2031 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2030)
} else {
z.EncFallback(yy2030)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2032 := &x.TargetPort
yym2033 := z.EncBinary()
_ = yym2033
if false {
} else if z.HasExtensions() && z.EncExt(yy2032) {
} else if !yym2033 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2032)
} else {
z.EncFallback(yy2032)
}
}
if yyr2021 || yy2arr2021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2035 := z.EncBinary()
_ = yym2035
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2036 := z.EncBinary()
_ = yym2036
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
}
if yyr2021 || yy2arr2021 {
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
yym2037 := z.DecBinary()
_ = yym2037
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2038 := r.ContainerType()
if yyct2038 == codecSelferValueTypeMap1234 {
yyl2038 := r.ReadMapStart()
if yyl2038 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2038, d)
}
} else if yyct2038 == codecSelferValueTypeArray1234 {
yyl2038 := r.ReadArrayStart()
if yyl2038 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2038, 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 yys2039Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2039Slc
var yyhl2039 bool = l >= 0
for yyj2039 := 0; ; yyj2039++ {
if yyhl2039 {
if yyj2039 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2039Slc = r.DecodeBytes(yys2039Slc, true, true)
yys2039 := string(yys2039Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2039 {
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 {
yyv2043 := &x.TargetPort
yym2044 := z.DecBinary()
_ = yym2044
if false {
} else if z.HasExtensions() && z.DecExt(yyv2043) {
} else if !yym2044 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2043)
} else {
z.DecFallback(yyv2043, false)
}
}
case "nodePort":
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys2039)
} // end switch yys2039
} // end for yyj2039
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 yyj2046 int
var yyb2046 bool
var yyhl2046 bool = l >= 0
yyj2046++
if yyhl2046 {
yyb2046 = yyj2046 > l
} else {
yyb2046 = r.CheckBreak()
}
if yyb2046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2046++
if yyhl2046 {
yyb2046 = yyj2046 > l
} else {
yyb2046 = r.CheckBreak()
}
if yyb2046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj2046++
if yyhl2046 {
yyb2046 = yyj2046 > l
} else {
yyb2046 = r.CheckBreak()
}
if yyb2046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj2046++
if yyhl2046 {
yyb2046 = yyj2046 > l
} else {
yyb2046 = r.CheckBreak()
}
if yyb2046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPort = pkg5_intstr.IntOrString{}
} else {
yyv2050 := &x.TargetPort
yym2051 := z.DecBinary()
_ = yym2051
if false {
} else if z.HasExtensions() && z.DecExt(yyv2050) {
} else if !yym2051 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2050)
} else {
z.DecFallback(yyv2050, false)
}
}
yyj2046++
if yyhl2046 {
yyb2046 = yyj2046 > l
} else {
yyb2046 = r.CheckBreak()
}
if yyb2046 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj2046++
if yyhl2046 {
yyb2046 = yyj2046 > l
} else {
yyb2046 = r.CheckBreak()
}
if yyb2046 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2046-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 {
yym2053 := z.EncBinary()
_ = yym2053
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2054 := !z.EncBinary()
yy2arr2054 := z.EncBasicHandle().StructToArray
var yyq2054 [5]bool
_, _, _ = yysep2054, yyq2054, yy2arr2054
const yyr2054 bool = false
yyq2054[0] = x.Kind != ""
yyq2054[1] = x.APIVersion != ""
yyq2054[2] = true
yyq2054[3] = true
yyq2054[4] = true
var yynn2054 int
if yyr2054 || yy2arr2054 {
r.EncodeArrayStart(5)
} else {
yynn2054 = 0
for _, b := range yyq2054 {
if b {
yynn2054++
}
}
r.EncodeMapStart(yynn2054)
yynn2054 = 0
}
if yyr2054 || yy2arr2054 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2054[0] {
yym2056 := z.EncBinary()
_ = yym2056
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2054[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2057 := z.EncBinary()
_ = yym2057
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2054 || yy2arr2054 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2054[1] {
yym2059 := z.EncBinary()
_ = yym2059
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2054[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2060 := z.EncBinary()
_ = yym2060
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2054 || yy2arr2054 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2054[2] {
yy2062 := &x.ObjectMeta
yy2062.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2054[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2063 := &x.ObjectMeta
yy2063.CodecEncodeSelf(e)
}
}
if yyr2054 || yy2arr2054 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2054[3] {
yy2065 := &x.Spec
yy2065.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2054[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2066 := &x.Spec
yy2066.CodecEncodeSelf(e)
}
}
if yyr2054 || yy2arr2054 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2054[4] {
yy2068 := &x.Status
yy2068.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2054[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2069 := &x.Status
yy2069.CodecEncodeSelf(e)
}
}
if yyr2054 || yy2arr2054 {
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
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 *Service) 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 "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 {
yyv2075 := &x.ObjectMeta
yyv2075.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2076 := &x.Spec
yyv2076.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2077 := &x.Status
yyv2077.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2072)
} // end switch yys2072
} // end for yyj2072
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 yyj2078 int
var yyb2078 bool
var yyhl2078 bool = l >= 0
yyj2078++
if yyhl2078 {
yyb2078 = yyj2078 > l
} else {
yyb2078 = r.CheckBreak()
}
if yyb2078 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2078++
if yyhl2078 {
yyb2078 = yyj2078 > l
} else {
yyb2078 = r.CheckBreak()
}
if yyb2078 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2078++
if yyhl2078 {
yyb2078 = yyj2078 > l
} else {
yyb2078 = r.CheckBreak()
}
if yyb2078 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2081 := &x.ObjectMeta
yyv2081.CodecDecodeSelf(d)
}
yyj2078++
if yyhl2078 {
yyb2078 = yyj2078 > l
} else {
yyb2078 = r.CheckBreak()
}
if yyb2078 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2082 := &x.Spec
yyv2082.CodecDecodeSelf(d)
}
yyj2078++
if yyhl2078 {
yyb2078 = yyj2078 > l
} else {
yyb2078 = r.CheckBreak()
}
if yyb2078 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2083 := &x.Status
yyv2083.CodecDecodeSelf(d)
}
for {
yyj2078++
if yyhl2078 {
yyb2078 = yyj2078 > l
} else {
yyb2078 = r.CheckBreak()
}
if yyb2078 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2078-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 {
yym2084 := z.EncBinary()
_ = yym2084
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2085 := !z.EncBinary()
yy2arr2085 := z.EncBasicHandle().StructToArray
var yyq2085 [5]bool
_, _, _ = yysep2085, yyq2085, yy2arr2085
const yyr2085 bool = false
yyq2085[0] = x.Kind != ""
yyq2085[1] = x.APIVersion != ""
yyq2085[2] = true
yyq2085[4] = len(x.ImagePullSecrets) != 0
var yynn2085 int
if yyr2085 || yy2arr2085 {
r.EncodeArrayStart(5)
} else {
yynn2085 = 1
for _, b := range yyq2085 {
if b {
yynn2085++
}
}
r.EncodeMapStart(yynn2085)
yynn2085 = 0
}
if yyr2085 || yy2arr2085 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2085[0] {
yym2087 := z.EncBinary()
_ = yym2087
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2085[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2088 := z.EncBinary()
_ = yym2088
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2085 || yy2arr2085 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2085[1] {
yym2090 := z.EncBinary()
_ = yym2090
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2085[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2091 := z.EncBinary()
_ = yym2091
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2085 || yy2arr2085 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2085[2] {
yy2093 := &x.ObjectMeta
yy2093.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2085[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2094 := &x.ObjectMeta
yy2094.CodecEncodeSelf(e)
}
}
if yyr2085 || yy2arr2085 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Secrets == nil {
r.EncodeNil()
} else {
yym2096 := z.EncBinary()
_ = yym2096
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 {
yym2097 := z.EncBinary()
_ = yym2097
if false {
} else {
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
}
}
}
if yyr2085 || yy2arr2085 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2085[4] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2099 := z.EncBinary()
_ = yym2099
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2085[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2100 := z.EncBinary()
_ = yym2100
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2085 || yy2arr2085 {
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
yym2101 := z.DecBinary()
_ = yym2101
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2102 := r.ContainerType()
if yyct2102 == codecSelferValueTypeMap1234 {
yyl2102 := r.ReadMapStart()
if yyl2102 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2102, d)
}
} else if yyct2102 == codecSelferValueTypeArray1234 {
yyl2102 := r.ReadArrayStart()
if yyl2102 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2102, 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 yys2103Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2103Slc
var yyhl2103 bool = l >= 0
for yyj2103 := 0; ; yyj2103++ {
if yyhl2103 {
if yyj2103 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2103Slc = r.DecodeBytes(yys2103Slc, true, true)
yys2103 := string(yys2103Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2103 {
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 {
yyv2106 := &x.ObjectMeta
yyv2106.CodecDecodeSelf(d)
}
case "secrets":
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2107 := &x.Secrets
yym2108 := z.DecBinary()
_ = yym2108
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2107), d)
}
}
case "imagePullSecrets":
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2109 := &x.ImagePullSecrets
yym2110 := z.DecBinary()
_ = yym2110
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2109), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2103)
} // end switch yys2103
} // end for yyj2103
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 yyj2111 int
var yyb2111 bool
var yyhl2111 bool = l >= 0
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2114 := &x.ObjectMeta
yyv2114.CodecDecodeSelf(d)
}
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2115 := &x.Secrets
yym2116 := z.DecBinary()
_ = yym2116
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2115), d)
}
}
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2117 := &x.ImagePullSecrets
yym2118 := z.DecBinary()
_ = yym2118
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2117), d)
}
}
for {
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2111-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 {
yym2119 := z.EncBinary()
_ = yym2119
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2120 := !z.EncBinary()
yy2arr2120 := z.EncBasicHandle().StructToArray
var yyq2120 [4]bool
_, _, _ = yysep2120, yyq2120, yy2arr2120
const yyr2120 bool = false
yyq2120[0] = x.Kind != ""
yyq2120[1] = x.APIVersion != ""
yyq2120[2] = true
var yynn2120 int
if yyr2120 || yy2arr2120 {
r.EncodeArrayStart(4)
} else {
yynn2120 = 1
for _, b := range yyq2120 {
if b {
yynn2120++
}
}
r.EncodeMapStart(yynn2120)
yynn2120 = 0
}
if yyr2120 || yy2arr2120 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2120[0] {
yym2122 := z.EncBinary()
_ = yym2122
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2120[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2123 := z.EncBinary()
_ = yym2123
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2120 || yy2arr2120 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2120[1] {
yym2125 := z.EncBinary()
_ = yym2125
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2120[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2126 := z.EncBinary()
_ = yym2126
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2120 || yy2arr2120 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2120[2] {
yy2128 := &x.ListMeta
yym2129 := z.EncBinary()
_ = yym2129
if false {
} else if z.HasExtensions() && z.EncExt(yy2128) {
} else {
z.EncFallback(yy2128)
}
} else {
r.EncodeNil()
}
} else {
if yyq2120[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2130 := &x.ListMeta
yym2131 := z.EncBinary()
_ = yym2131
if false {
} else if z.HasExtensions() && z.EncExt(yy2130) {
} else {
z.EncFallback(yy2130)
}
}
}
if yyr2120 || yy2arr2120 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2133 := z.EncBinary()
_ = yym2133
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 {
yym2134 := z.EncBinary()
_ = yym2134
if false {
} else {
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
}
}
}
if yyr2120 || yy2arr2120 {
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
yym2135 := z.DecBinary()
_ = yym2135
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2136 := r.ContainerType()
if yyct2136 == codecSelferValueTypeMap1234 {
yyl2136 := r.ReadMapStart()
if yyl2136 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2136, d)
}
} else if yyct2136 == codecSelferValueTypeArray1234 {
yyl2136 := r.ReadArrayStart()
if yyl2136 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2136, 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 yys2137Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2137Slc
var yyhl2137 bool = l >= 0
for yyj2137 := 0; ; yyj2137++ {
if yyhl2137 {
if yyj2137 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2137Slc = r.DecodeBytes(yys2137Slc, true, true)
yys2137 := string(yys2137Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2137 {
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 {
yyv2140 := &x.ListMeta
yym2141 := z.DecBinary()
_ = yym2141
if false {
} else if z.HasExtensions() && z.DecExt(yyv2140) {
} else {
z.DecFallback(yyv2140, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2142 := &x.Items
yym2143 := z.DecBinary()
_ = yym2143
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2142), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2137)
} // end switch yys2137
} // end for yyj2137
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 yyj2144 int
var yyb2144 bool
var yyhl2144 bool = l >= 0
yyj2144++
if yyhl2144 {
yyb2144 = yyj2144 > l
} else {
yyb2144 = r.CheckBreak()
}
if yyb2144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2144++
if yyhl2144 {
yyb2144 = yyj2144 > l
} else {
yyb2144 = r.CheckBreak()
}
if yyb2144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2144++
if yyhl2144 {
yyb2144 = yyj2144 > l
} else {
yyb2144 = r.CheckBreak()
}
if yyb2144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2147 := &x.ListMeta
yym2148 := z.DecBinary()
_ = yym2148
if false {
} else if z.HasExtensions() && z.DecExt(yyv2147) {
} else {
z.DecFallback(yyv2147, false)
}
}
yyj2144++
if yyhl2144 {
yyb2144 = yyj2144 > l
} else {
yyb2144 = r.CheckBreak()
}
if yyb2144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2149 := &x.Items
yym2150 := z.DecBinary()
_ = yym2150
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2149), d)
}
}
for {
yyj2144++
if yyhl2144 {
yyb2144 = yyj2144 > l
} else {
yyb2144 = r.CheckBreak()
}
if yyb2144 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2144-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 {
yym2151 := z.EncBinary()
_ = yym2151
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2152 := !z.EncBinary()
yy2arr2152 := z.EncBasicHandle().StructToArray
var yyq2152 [4]bool
_, _, _ = yysep2152, yyq2152, yy2arr2152
const yyr2152 bool = false
yyq2152[0] = x.Kind != ""
yyq2152[1] = x.APIVersion != ""
yyq2152[2] = true
var yynn2152 int
if yyr2152 || yy2arr2152 {
r.EncodeArrayStart(4)
} else {
yynn2152 = 1
for _, b := range yyq2152 {
if b {
yynn2152++
}
}
r.EncodeMapStart(yynn2152)
yynn2152 = 0
}
if yyr2152 || yy2arr2152 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2152[0] {
yym2154 := z.EncBinary()
_ = yym2154
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2152[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2155 := z.EncBinary()
_ = yym2155
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2152 || yy2arr2152 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2152[1] {
yym2157 := z.EncBinary()
_ = yym2157
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2152[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2158 := z.EncBinary()
_ = yym2158
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2152 || yy2arr2152 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2152[2] {
yy2160 := &x.ObjectMeta
yy2160.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2152[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2161 := &x.ObjectMeta
yy2161.CodecEncodeSelf(e)
}
}
if yyr2152 || yy2arr2152 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Subsets == nil {
r.EncodeNil()
} else {
yym2163 := z.EncBinary()
_ = yym2163
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 {
yym2164 := z.EncBinary()
_ = yym2164
if false {
} else {
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
}
}
}
if yyr2152 || yy2arr2152 {
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
yym2165 := z.DecBinary()
_ = yym2165
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2166 := r.ContainerType()
if yyct2166 == codecSelferValueTypeMap1234 {
yyl2166 := r.ReadMapStart()
if yyl2166 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2166, d)
}
} else if yyct2166 == codecSelferValueTypeArray1234 {
yyl2166 := r.ReadArrayStart()
if yyl2166 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2166, 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 yys2167Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2167Slc
var yyhl2167 bool = l >= 0
for yyj2167 := 0; ; yyj2167++ {
if yyhl2167 {
if yyj2167 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2167Slc = r.DecodeBytes(yys2167Slc, true, true)
yys2167 := string(yys2167Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2167 {
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 {
yyv2170 := &x.ObjectMeta
yyv2170.CodecDecodeSelf(d)
}
case "Subsets":
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2171 := &x.Subsets
yym2172 := z.DecBinary()
_ = yym2172
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2171), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2167)
} // end switch yys2167
} // end for yyj2167
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 yyj2173 int
var yyb2173 bool
var yyhl2173 bool = l >= 0
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2176 := &x.ObjectMeta
yyv2176.CodecDecodeSelf(d)
}
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2177 := &x.Subsets
yym2178 := z.DecBinary()
_ = yym2178
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2177), d)
}
}
for {
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2173-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 {
yym2179 := z.EncBinary()
_ = yym2179
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2180 := !z.EncBinary()
yy2arr2180 := z.EncBasicHandle().StructToArray
var yyq2180 [3]bool
_, _, _ = yysep2180, yyq2180, yy2arr2180
const yyr2180 bool = false
var yynn2180 int
if yyr2180 || yy2arr2180 {
r.EncodeArrayStart(3)
} else {
yynn2180 = 3
for _, b := range yyq2180 {
if b {
yynn2180++
}
}
r.EncodeMapStart(yynn2180)
yynn2180 = 0
}
if yyr2180 || yy2arr2180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2182 := z.EncBinary()
_ = yym2182
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 {
yym2183 := z.EncBinary()
_ = yym2183
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
}
}
}
if yyr2180 || yy2arr2180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NotReadyAddresses == nil {
r.EncodeNil()
} else {
yym2185 := z.EncBinary()
_ = yym2185
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 {
yym2186 := z.EncBinary()
_ = yym2186
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
}
}
}
if yyr2180 || yy2arr2180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2188 := z.EncBinary()
_ = yym2188
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 {
yym2189 := z.EncBinary()
_ = yym2189
if false {
} else {
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
}
}
}
if yyr2180 || yy2arr2180 {
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
yym2190 := z.DecBinary()
_ = yym2190
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2191 := r.ContainerType()
if yyct2191 == codecSelferValueTypeMap1234 {
yyl2191 := r.ReadMapStart()
if yyl2191 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2191, d)
}
} else if yyct2191 == codecSelferValueTypeArray1234 {
yyl2191 := r.ReadArrayStart()
if yyl2191 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2191, 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 yys2192Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2192Slc
var yyhl2192 bool = l >= 0
for yyj2192 := 0; ; yyj2192++ {
if yyhl2192 {
if yyj2192 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2192Slc = r.DecodeBytes(yys2192Slc, true, true)
yys2192 := string(yys2192Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2192 {
case "Addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2193 := &x.Addresses
yym2194 := z.DecBinary()
_ = yym2194
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2193), d)
}
}
case "NotReadyAddresses":
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2195 := &x.NotReadyAddresses
yym2196 := z.DecBinary()
_ = yym2196
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2195), d)
}
}
case "Ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2197 := &x.Ports
yym2198 := z.DecBinary()
_ = yym2198
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2197), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2192)
} // end switch yys2192
} // end for yyj2192
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 yyj2199 int
var yyb2199 bool
var yyhl2199 bool = l >= 0
yyj2199++
if yyhl2199 {
yyb2199 = yyj2199 > l
} else {
yyb2199 = r.CheckBreak()
}
if yyb2199 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2200 := &x.Addresses
yym2201 := z.DecBinary()
_ = yym2201
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2200), d)
}
}
yyj2199++
if yyhl2199 {
yyb2199 = yyj2199 > l
} else {
yyb2199 = r.CheckBreak()
}
if yyb2199 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2202 := &x.NotReadyAddresses
yym2203 := z.DecBinary()
_ = yym2203
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2202), d)
}
}
yyj2199++
if yyhl2199 {
yyb2199 = yyj2199 > l
} else {
yyb2199 = r.CheckBreak()
}
if yyb2199 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2204 := &x.Ports
yym2205 := z.DecBinary()
_ = yym2205
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2204), d)
}
}
for {
yyj2199++
if yyhl2199 {
yyb2199 = yyj2199 > l
} else {
yyb2199 = r.CheckBreak()
}
if yyb2199 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2199-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 {
yym2206 := z.EncBinary()
_ = yym2206
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2207 := !z.EncBinary()
yy2arr2207 := z.EncBasicHandle().StructToArray
var yyq2207 [2]bool
_, _, _ = yysep2207, yyq2207, yy2arr2207
const yyr2207 bool = false
var yynn2207 int
if yyr2207 || yy2arr2207 {
r.EncodeArrayStart(2)
} else {
yynn2207 = 2
for _, b := range yyq2207 {
if b {
yynn2207++
}
}
r.EncodeMapStart(yynn2207)
yynn2207 = 0
}
if yyr2207 || yy2arr2207 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2209 := z.EncBinary()
_ = yym2209
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)
yym2210 := z.EncBinary()
_ = yym2210
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
if yyr2207 || yy2arr2207 {
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 yyr2207 || yy2arr2207 {
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
yym2212 := z.DecBinary()
_ = yym2212
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2213 := r.ContainerType()
if yyct2213 == codecSelferValueTypeMap1234 {
yyl2213 := r.ReadMapStart()
if yyl2213 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2213, d)
}
} else if yyct2213 == codecSelferValueTypeArray1234 {
yyl2213 := r.ReadArrayStart()
if yyl2213 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2213, 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 yys2214Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2214Slc
var yyhl2214 bool = l >= 0
for yyj2214 := 0; ; yyj2214++ {
if yyhl2214 {
if yyj2214 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2214Slc = r.DecodeBytes(yys2214Slc, true, true)
yys2214 := string(yys2214Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2214 {
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, yys2214)
} // end switch yys2214
} // end for yyj2214
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 yyj2217 int
var yyb2217 bool
var yyhl2217 bool = l >= 0
yyj2217++
if yyhl2217 {
yyb2217 = yyj2217 > l
} else {
yyb2217 = r.CheckBreak()
}
if yyb2217 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2217++
if yyhl2217 {
yyb2217 = yyj2217 > l
} else {
yyb2217 = r.CheckBreak()
}
if yyb2217 {
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 {
yyj2217++
if yyhl2217 {
yyb2217 = yyj2217 > l
} else {
yyb2217 = r.CheckBreak()
}
if yyb2217 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2217-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 {
yym2220 := z.EncBinary()
_ = yym2220
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2221 := !z.EncBinary()
yy2arr2221 := z.EncBasicHandle().StructToArray
var yyq2221 [3]bool
_, _, _ = yysep2221, yyq2221, yy2arr2221
const yyr2221 bool = false
var yynn2221 int
if yyr2221 || yy2arr2221 {
r.EncodeArrayStart(3)
} else {
yynn2221 = 3
for _, b := range yyq2221 {
if b {
yynn2221++
}
}
r.EncodeMapStart(yynn2221)
yynn2221 = 0
}
if yyr2221 || yy2arr2221 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2223 := z.EncBinary()
_ = yym2223
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)
yym2224 := z.EncBinary()
_ = yym2224
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2221 || yy2arr2221 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2226 := z.EncBinary()
_ = yym2226
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2227 := z.EncBinary()
_ = yym2227
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2221 || yy2arr2221 {
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 yyr2221 || yy2arr2221 {
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
yym2229 := z.DecBinary()
_ = yym2229
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2230 := r.ContainerType()
if yyct2230 == codecSelferValueTypeMap1234 {
yyl2230 := r.ReadMapStart()
if yyl2230 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2230, d)
}
} else if yyct2230 == codecSelferValueTypeArray1234 {
yyl2230 := r.ReadArrayStart()
if yyl2230 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2230, 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 yys2231Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2231Slc
var yyhl2231 bool = l >= 0
for yyj2231 := 0; ; yyj2231++ {
if yyhl2231 {
if yyj2231 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2231Slc = r.DecodeBytes(yys2231Slc, true, true)
yys2231 := string(yys2231Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2231 {
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, yys2231)
} // end switch yys2231
} // end for yyj2231
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 yyj2235 int
var yyb2235 bool
var yyhl2235 bool = l >= 0
yyj2235++
if yyhl2235 {
yyb2235 = yyj2235 > l
} else {
yyb2235 = r.CheckBreak()
}
if yyb2235 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2235++
if yyhl2235 {
yyb2235 = yyj2235 > l
} else {
yyb2235 = r.CheckBreak()
}
if yyb2235 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj2235++
if yyhl2235 {
yyb2235 = yyj2235 > l
} else {
yyb2235 = r.CheckBreak()
}
if yyb2235 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
for {
yyj2235++
if yyhl2235 {
yyb2235 = yyj2235 > l
} else {
yyb2235 = r.CheckBreak()
}
if yyb2235 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2235-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 {
yym2239 := z.EncBinary()
_ = yym2239
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2240 := !z.EncBinary()
yy2arr2240 := z.EncBasicHandle().StructToArray
var yyq2240 [4]bool
_, _, _ = yysep2240, yyq2240, yy2arr2240
const yyr2240 bool = false
yyq2240[0] = x.Kind != ""
yyq2240[1] = x.APIVersion != ""
yyq2240[2] = true
var yynn2240 int
if yyr2240 || yy2arr2240 {
r.EncodeArrayStart(4)
} else {
yynn2240 = 1
for _, b := range yyq2240 {
if b {
yynn2240++
}
}
r.EncodeMapStart(yynn2240)
yynn2240 = 0
}
if yyr2240 || yy2arr2240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2240[0] {
yym2242 := z.EncBinary()
_ = yym2242
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2240[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2243 := z.EncBinary()
_ = yym2243
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2240 || yy2arr2240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2240[1] {
yym2245 := z.EncBinary()
_ = yym2245
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2240[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2246 := z.EncBinary()
_ = yym2246
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2240 || yy2arr2240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2240[2] {
yy2248 := &x.ListMeta
yym2249 := z.EncBinary()
_ = yym2249
if false {
} else if z.HasExtensions() && z.EncExt(yy2248) {
} else {
z.EncFallback(yy2248)
}
} else {
r.EncodeNil()
}
} else {
if yyq2240[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2250 := &x.ListMeta
yym2251 := z.EncBinary()
_ = yym2251
if false {
} else if z.HasExtensions() && z.EncExt(yy2250) {
} else {
z.EncFallback(yy2250)
}
}
}
if yyr2240 || yy2arr2240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2253 := z.EncBinary()
_ = yym2253
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 {
yym2254 := z.EncBinary()
_ = yym2254
if false {
} else {
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
}
}
}
if yyr2240 || yy2arr2240 {
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
yym2255 := z.DecBinary()
_ = yym2255
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2256 := r.ContainerType()
if yyct2256 == codecSelferValueTypeMap1234 {
yyl2256 := r.ReadMapStart()
if yyl2256 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2256, d)
}
} else if yyct2256 == codecSelferValueTypeArray1234 {
yyl2256 := r.ReadArrayStart()
if yyl2256 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2256, 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 yys2257Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2257Slc
var yyhl2257 bool = l >= 0
for yyj2257 := 0; ; yyj2257++ {
if yyhl2257 {
if yyj2257 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2257Slc = r.DecodeBytes(yys2257Slc, true, true)
yys2257 := string(yys2257Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2257 {
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 {
yyv2260 := &x.ListMeta
yym2261 := z.DecBinary()
_ = yym2261
if false {
} else if z.HasExtensions() && z.DecExt(yyv2260) {
} else {
z.DecFallback(yyv2260, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2262 := &x.Items
yym2263 := z.DecBinary()
_ = yym2263
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2262), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2257)
} // end switch yys2257
} // end for yyj2257
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 yyj2264 int
var yyb2264 bool
var yyhl2264 bool = l >= 0
yyj2264++
if yyhl2264 {
yyb2264 = yyj2264 > l
} else {
yyb2264 = r.CheckBreak()
}
if yyb2264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2264++
if yyhl2264 {
yyb2264 = yyj2264 > l
} else {
yyb2264 = r.CheckBreak()
}
if yyb2264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2264++
if yyhl2264 {
yyb2264 = yyj2264 > l
} else {
yyb2264 = r.CheckBreak()
}
if yyb2264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2267 := &x.ListMeta
yym2268 := z.DecBinary()
_ = yym2268
if false {
} else if z.HasExtensions() && z.DecExt(yyv2267) {
} else {
z.DecFallback(yyv2267, false)
}
}
yyj2264++
if yyhl2264 {
yyb2264 = yyj2264 > l
} else {
yyb2264 = r.CheckBreak()
}
if yyb2264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2269 := &x.Items
yym2270 := z.DecBinary()
_ = yym2270
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2269), d)
}
}
for {
yyj2264++
if yyhl2264 {
yyb2264 = yyj2264 > l
} else {
yyb2264 = r.CheckBreak()
}
if yyb2264 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2264-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 {
yym2271 := z.EncBinary()
_ = yym2271
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2272 := !z.EncBinary()
yy2arr2272 := z.EncBasicHandle().StructToArray
var yyq2272 [4]bool
_, _, _ = yysep2272, yyq2272, yy2arr2272
const yyr2272 bool = false
yyq2272[0] = x.PodCIDR != ""
yyq2272[1] = x.ExternalID != ""
yyq2272[2] = x.ProviderID != ""
yyq2272[3] = x.Unschedulable != false
var yynn2272 int
if yyr2272 || yy2arr2272 {
r.EncodeArrayStart(4)
} else {
yynn2272 = 0
for _, b := range yyq2272 {
if b {
yynn2272++
}
}
r.EncodeMapStart(yynn2272)
yynn2272 = 0
}
if yyr2272 || yy2arr2272 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2272[0] {
yym2274 := z.EncBinary()
_ = yym2274
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2272[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2275 := z.EncBinary()
_ = yym2275
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
}
}
if yyr2272 || yy2arr2272 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2272[1] {
yym2277 := z.EncBinary()
_ = yym2277
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2272[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2278 := z.EncBinary()
_ = yym2278
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
}
}
if yyr2272 || yy2arr2272 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2272[2] {
yym2280 := z.EncBinary()
_ = yym2280
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2272[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2281 := z.EncBinary()
_ = yym2281
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
}
}
if yyr2272 || yy2arr2272 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2272[3] {
yym2283 := z.EncBinary()
_ = yym2283
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2272[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2284 := z.EncBinary()
_ = yym2284
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
}
}
if yyr2272 || yy2arr2272 {
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
yym2285 := z.DecBinary()
_ = yym2285
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2286 := r.ContainerType()
if yyct2286 == codecSelferValueTypeMap1234 {
yyl2286 := r.ReadMapStart()
if yyl2286 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2286, d)
}
} else if yyct2286 == codecSelferValueTypeArray1234 {
yyl2286 := r.ReadArrayStart()
if yyl2286 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2286, 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 yys2287Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2287Slc
var yyhl2287 bool = l >= 0
for yyj2287 := 0; ; yyj2287++ {
if yyhl2287 {
if yyj2287 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2287Slc = r.DecodeBytes(yys2287Slc, true, true)
yys2287 := string(yys2287Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2287 {
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, yys2287)
} // end switch yys2287
} // end for yyj2287
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 yyj2292 int
var yyb2292 bool
var yyhl2292 bool = l >= 0
yyj2292++
if yyhl2292 {
yyb2292 = yyj2292 > l
} else {
yyb2292 = r.CheckBreak()
}
if yyb2292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodCIDR = ""
} else {
x.PodCIDR = string(r.DecodeString())
}
yyj2292++
if yyhl2292 {
yyb2292 = yyj2292 > l
} else {
yyb2292 = r.CheckBreak()
}
if yyb2292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalID = ""
} else {
x.ExternalID = string(r.DecodeString())
}
yyj2292++
if yyhl2292 {
yyb2292 = yyj2292 > l
} else {
yyb2292 = r.CheckBreak()
}
if yyb2292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ProviderID = ""
} else {
x.ProviderID = string(r.DecodeString())
}
yyj2292++
if yyhl2292 {
yyb2292 = yyj2292 > l
} else {
yyb2292 = r.CheckBreak()
}
if yyb2292 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Unschedulable = false
} else {
x.Unschedulable = bool(r.DecodeBool())
}
for {
yyj2292++
if yyhl2292 {
yyb2292 = yyj2292 > l
} else {
yyb2292 = r.CheckBreak()
}
if yyb2292 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2292-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 {
yym2297 := z.EncBinary()
_ = yym2297
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2298 := !z.EncBinary()
yy2arr2298 := z.EncBasicHandle().StructToArray
var yyq2298 [1]bool
_, _, _ = yysep2298, yyq2298, yy2arr2298
const yyr2298 bool = false
var yynn2298 int
if yyr2298 || yy2arr2298 {
r.EncodeArrayStart(1)
} else {
yynn2298 = 1
for _, b := range yyq2298 {
if b {
yynn2298++
}
}
r.EncodeMapStart(yynn2298)
yynn2298 = 0
}
if yyr2298 || yy2arr2298 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2300 := z.EncBinary()
_ = yym2300
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2301 := z.EncBinary()
_ = yym2301
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2298 || yy2arr2298 {
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
yym2302 := z.DecBinary()
_ = yym2302
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2303 := r.ContainerType()
if yyct2303 == codecSelferValueTypeMap1234 {
yyl2303 := r.ReadMapStart()
if yyl2303 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2303, d)
}
} else if yyct2303 == codecSelferValueTypeArray1234 {
yyl2303 := r.ReadArrayStart()
if yyl2303 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2303, 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 yys2304Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2304Slc
var yyhl2304 bool = l >= 0
for yyj2304 := 0; ; yyj2304++ {
if yyhl2304 {
if yyj2304 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2304Slc = r.DecodeBytes(yys2304Slc, true, true)
yys2304 := string(yys2304Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2304 {
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys2304)
} // end switch yys2304
} // end for yyj2304
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 yyj2306 int
var yyb2306 bool
var yyhl2306 bool = l >= 0
yyj2306++
if yyhl2306 {
yyb2306 = yyj2306 > l
} else {
yyb2306 = r.CheckBreak()
}
if yyb2306 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj2306++
if yyhl2306 {
yyb2306 = yyj2306 > l
} else {
yyb2306 = r.CheckBreak()
}
if yyb2306 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2306-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 {
yym2308 := z.EncBinary()
_ = yym2308
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2309 := !z.EncBinary()
yy2arr2309 := z.EncBasicHandle().StructToArray
var yyq2309 [1]bool
_, _, _ = yysep2309, yyq2309, yy2arr2309
const yyr2309 bool = false
yyq2309[0] = true
var yynn2309 int
if yyr2309 || yy2arr2309 {
r.EncodeArrayStart(1)
} else {
yynn2309 = 0
for _, b := range yyq2309 {
if b {
yynn2309++
}
}
r.EncodeMapStart(yynn2309)
yynn2309 = 0
}
if yyr2309 || yy2arr2309 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2309[0] {
yy2311 := &x.KubeletEndpoint
yy2311.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2309[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2312 := &x.KubeletEndpoint
yy2312.CodecEncodeSelf(e)
}
}
if yyr2309 || yy2arr2309 {
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
yym2313 := z.DecBinary()
_ = yym2313
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2314 := r.ContainerType()
if yyct2314 == codecSelferValueTypeMap1234 {
yyl2314 := r.ReadMapStart()
if yyl2314 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2314, d)
}
} else if yyct2314 == codecSelferValueTypeArray1234 {
yyl2314 := r.ReadArrayStart()
if yyl2314 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2314, 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 yys2315Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2315Slc
var yyhl2315 bool = l >= 0
for yyj2315 := 0; ; yyj2315++ {
if yyhl2315 {
if yyj2315 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2315Slc = r.DecodeBytes(yys2315Slc, true, true)
yys2315 := string(yys2315Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2315 {
case "kubeletEndpoint":
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2316 := &x.KubeletEndpoint
yyv2316.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2315)
} // end switch yys2315
} // end for yyj2315
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 yyj2317 int
var yyb2317 bool
var yyhl2317 bool = l >= 0
yyj2317++
if yyhl2317 {
yyb2317 = yyj2317 > l
} else {
yyb2317 = r.CheckBreak()
}
if yyb2317 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2318 := &x.KubeletEndpoint
yyv2318.CodecDecodeSelf(d)
}
for {
yyj2317++
if yyhl2317 {
yyb2317 = yyj2317 > l
} else {
yyb2317 = r.CheckBreak()
}
if yyb2317 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2317-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 {
yym2319 := z.EncBinary()
_ = yym2319
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2320 := !z.EncBinary()
yy2arr2320 := z.EncBasicHandle().StructToArray
var yyq2320 [8]bool
_, _, _ = yysep2320, yyq2320, yy2arr2320
const yyr2320 bool = false
var yynn2320 int
if yyr2320 || yy2arr2320 {
r.EncodeArrayStart(8)
} else {
yynn2320 = 8
for _, b := range yyq2320 {
if b {
yynn2320++
}
}
r.EncodeMapStart(yynn2320)
yynn2320 = 0
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2322 := z.EncBinary()
_ = yym2322
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)
yym2323 := z.EncBinary()
_ = yym2323
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2325 := z.EncBinary()
_ = yym2325
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)
yym2326 := z.EncBinary()
_ = yym2326
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
}
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2328 := z.EncBinary()
_ = yym2328
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)
yym2329 := z.EncBinary()
_ = yym2329
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
}
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2331 := z.EncBinary()
_ = yym2331
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)
yym2332 := z.EncBinary()
_ = yym2332
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
}
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2334 := z.EncBinary()
_ = yym2334
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)
yym2335 := z.EncBinary()
_ = yym2335
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
}
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2337 := z.EncBinary()
_ = yym2337
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)
yym2338 := z.EncBinary()
_ = yym2338
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
}
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2340 := z.EncBinary()
_ = yym2340
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)
yym2341 := z.EncBinary()
_ = yym2341
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
}
}
if yyr2320 || yy2arr2320 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2343 := z.EncBinary()
_ = yym2343
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)
yym2344 := z.EncBinary()
_ = yym2344
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
}
}
if yyr2320 || yy2arr2320 {
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
yym2345 := z.DecBinary()
_ = yym2345
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2346 := r.ContainerType()
if yyct2346 == codecSelferValueTypeMap1234 {
yyl2346 := r.ReadMapStart()
if yyl2346 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2346, d)
}
} else if yyct2346 == codecSelferValueTypeArray1234 {
yyl2346 := r.ReadArrayStart()
if yyl2346 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2346, 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 yys2347Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2347Slc
var yyhl2347 bool = l >= 0
for yyj2347 := 0; ; yyj2347++ {
if yyhl2347 {
if yyj2347 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2347Slc = r.DecodeBytes(yys2347Slc, true, true)
yys2347 := string(yys2347Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2347 {
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, yys2347)
} // end switch yys2347
} // end for yyj2347
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 yyj2356 int
var yyb2356 bool
var yyhl2356 bool = l >= 0
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
for {
yyj2356++
if yyhl2356 {
yyb2356 = yyj2356 > l
} else {
yyb2356 = r.CheckBreak()
}
if yyb2356 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2356-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 {
yym2365 := z.EncBinary()
_ = yym2365
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2366 := !z.EncBinary()
yy2arr2366 := z.EncBasicHandle().StructToArray
var yyq2366 [8]bool
_, _, _ = yysep2366, yyq2366, yy2arr2366
const yyr2366 bool = false
yyq2366[0] = len(x.Capacity) != 0
yyq2366[1] = len(x.Allocatable) != 0
yyq2366[2] = x.Phase != ""
yyq2366[3] = len(x.Conditions) != 0
yyq2366[4] = len(x.Addresses) != 0
yyq2366[5] = true
yyq2366[6] = true
var yynn2366 int
if yyr2366 || yy2arr2366 {
r.EncodeArrayStart(8)
} else {
yynn2366 = 1
for _, b := range yyq2366 {
if b {
yynn2366++
}
}
r.EncodeMapStart(yynn2366)
yynn2366 = 0
}
if yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2366[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2366[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 yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2366[1] {
if x.Allocatable == nil {
r.EncodeNil()
} else {
x.Allocatable.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2366[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 yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2366[2] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2366[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2366[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2371 := z.EncBinary()
_ = yym2371
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2366[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2372 := z.EncBinary()
_ = yym2372
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
}
}
if yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2366[4] {
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2374 := z.EncBinary()
_ = yym2374
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2366[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2375 := z.EncBinary()
_ = yym2375
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
}
}
if yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2366[5] {
yy2377 := &x.DaemonEndpoints
yy2377.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2366[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2378 := &x.DaemonEndpoints
yy2378.CodecEncodeSelf(e)
}
}
if yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2366[6] {
yy2380 := &x.NodeInfo
yy2380.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2366[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2381 := &x.NodeInfo
yy2381.CodecEncodeSelf(e)
}
}
if yyr2366 || yy2arr2366 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Images == nil {
r.EncodeNil()
} else {
yym2383 := z.EncBinary()
_ = yym2383
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 {
yym2384 := z.EncBinary()
_ = yym2384
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
}
if yyr2366 || yy2arr2366 {
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
yym2385 := z.DecBinary()
_ = yym2385
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2386 := r.ContainerType()
if yyct2386 == codecSelferValueTypeMap1234 {
yyl2386 := r.ReadMapStart()
if yyl2386 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2386, d)
}
} else if yyct2386 == codecSelferValueTypeArray1234 {
yyl2386 := r.ReadArrayStart()
if yyl2386 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2386, 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 yys2387Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2387Slc
var yyhl2387 bool = l >= 0
for yyj2387 := 0; ; yyj2387++ {
if yyhl2387 {
if yyj2387 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2387Slc = r.DecodeBytes(yys2387Slc, true, true)
yys2387 := string(yys2387Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2387 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2388 := &x.Capacity
yyv2388.CodecDecodeSelf(d)
}
case "allocatable":
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2389 := &x.Allocatable
yyv2389.CodecDecodeSelf(d)
}
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2391 := &x.Conditions
yym2392 := z.DecBinary()
_ = yym2392
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2391), d)
}
}
case "addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2393 := &x.Addresses
yym2394 := z.DecBinary()
_ = yym2394
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2393), d)
}
}
case "daemonEndpoints":
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2395 := &x.DaemonEndpoints
yyv2395.CodecDecodeSelf(d)
}
case "nodeInfo":
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2396 := &x.NodeInfo
yyv2396.CodecDecodeSelf(d)
}
case "images":
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2397 := &x.Images
yym2398 := z.DecBinary()
_ = yym2398
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2397), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2387)
} // end switch yys2387
} // end for yyj2387
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 yyj2399 int
var yyb2399 bool
var yyhl2399 bool = l >= 0
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2400 := &x.Capacity
yyv2400.CodecDecodeSelf(d)
}
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2401 := &x.Allocatable
yyv2401.CodecDecodeSelf(d)
}
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2403 := &x.Conditions
yym2404 := z.DecBinary()
_ = yym2404
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2403), d)
}
}
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2405 := &x.Addresses
yym2406 := z.DecBinary()
_ = yym2406
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2405), d)
}
}
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2407 := &x.DaemonEndpoints
yyv2407.CodecDecodeSelf(d)
}
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2408 := &x.NodeInfo
yyv2408.CodecDecodeSelf(d)
}
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2409 := &x.Images
yym2410 := z.DecBinary()
_ = yym2410
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2409), d)
}
}
for {
yyj2399++
if yyhl2399 {
yyb2399 = yyj2399 > l
} else {
yyb2399 = r.CheckBreak()
}
if yyb2399 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2399-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 {
yym2411 := z.EncBinary()
_ = yym2411
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2412 := !z.EncBinary()
yy2arr2412 := z.EncBasicHandle().StructToArray
var yyq2412 [2]bool
_, _, _ = yysep2412, yyq2412, yy2arr2412
const yyr2412 bool = false
yyq2412[1] = x.Size != 0
var yynn2412 int
if yyr2412 || yy2arr2412 {
r.EncodeArrayStart(2)
} else {
yynn2412 = 1
for _, b := range yyq2412 {
if b {
yynn2412++
}
}
r.EncodeMapStart(yynn2412)
yynn2412 = 0
}
if yyr2412 || yy2arr2412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.RepoTags == nil {
r.EncodeNil()
} else {
yym2414 := z.EncBinary()
_ = yym2414
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 {
yym2415 := z.EncBinary()
_ = yym2415
if false {
} else {
z.F.EncSliceStringV(x.RepoTags, false, e)
}
}
}
if yyr2412 || yy2arr2412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2412[1] {
yym2417 := z.EncBinary()
_ = yym2417
if false {
} else {
r.EncodeInt(int64(x.Size))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2412[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("size"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2418 := z.EncBinary()
_ = yym2418
if false {
} else {
r.EncodeInt(int64(x.Size))
}
}
}
if yyr2412 || yy2arr2412 {
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
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 *ContainerImage) 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 "repoTags":
if r.TryDecodeAsNil() {
x.RepoTags = nil
} else {
yyv2422 := &x.RepoTags
yym2423 := z.DecBinary()
_ = yym2423
if false {
} else {
z.F.DecSliceStringX(yyv2422, false, d)
}
}
case "size":
if r.TryDecodeAsNil() {
x.Size = 0
} else {
x.Size = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys2421)
} // end switch yys2421
} // end for yyj2421
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 yyj2425 int
var yyb2425 bool
var yyhl2425 bool = l >= 0
yyj2425++
if yyhl2425 {
yyb2425 = yyj2425 > l
} else {
yyb2425 = r.CheckBreak()
}
if yyb2425 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RepoTags = nil
} else {
yyv2426 := &x.RepoTags
yym2427 := z.DecBinary()
_ = yym2427
if false {
} else {
z.F.DecSliceStringX(yyv2426, false, d)
}
}
yyj2425++
if yyhl2425 {
yyb2425 = yyj2425 > l
} else {
yyb2425 = r.CheckBreak()
}
if yyb2425 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Size = 0
} else {
x.Size = int64(r.DecodeInt(64))
}
for {
yyj2425++
if yyhl2425 {
yyb2425 = yyj2425 > l
} else {
yyb2425 = r.CheckBreak()
}
if yyb2425 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2425-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2429 := z.EncBinary()
_ = yym2429
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
yym2430 := z.DecBinary()
_ = yym2430
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
yym2431 := z.EncBinary()
_ = yym2431
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
yym2432 := z.DecBinary()
_ = yym2432
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 {
yym2433 := z.EncBinary()
_ = yym2433
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2434 := !z.EncBinary()
yy2arr2434 := z.EncBasicHandle().StructToArray
var yyq2434 [6]bool
_, _, _ = yysep2434, yyq2434, yy2arr2434
const yyr2434 bool = false
yyq2434[2] = true
yyq2434[3] = true
yyq2434[4] = x.Reason != ""
yyq2434[5] = x.Message != ""
var yynn2434 int
if yyr2434 || yy2arr2434 {
r.EncodeArrayStart(6)
} else {
yynn2434 = 2
for _, b := range yyq2434 {
if b {
yynn2434++
}
}
r.EncodeMapStart(yynn2434)
yynn2434 = 0
}
if yyr2434 || yy2arr2434 {
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 yyr2434 || yy2arr2434 {
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 yyr2434 || yy2arr2434 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2434[2] {
yy2438 := &x.LastHeartbeatTime
yym2439 := z.EncBinary()
_ = yym2439
if false {
} else if z.HasExtensions() && z.EncExt(yy2438) {
} else if yym2439 {
z.EncBinaryMarshal(yy2438)
} else if !yym2439 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2438)
} else {
z.EncFallback(yy2438)
}
} else {
r.EncodeNil()
}
} else {
if yyq2434[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2440 := &x.LastHeartbeatTime
yym2441 := z.EncBinary()
_ = yym2441
if false {
} else if z.HasExtensions() && z.EncExt(yy2440) {
} else if yym2441 {
z.EncBinaryMarshal(yy2440)
} else if !yym2441 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2440)
} else {
z.EncFallback(yy2440)
}
}
}
if yyr2434 || yy2arr2434 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2434[3] {
yy2443 := &x.LastTransitionTime
yym2444 := z.EncBinary()
_ = yym2444
if false {
} else if z.HasExtensions() && z.EncExt(yy2443) {
} else if yym2444 {
z.EncBinaryMarshal(yy2443)
} else if !yym2444 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2443)
} else {
z.EncFallback(yy2443)
}
} else {
r.EncodeNil()
}
} else {
if yyq2434[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2445 := &x.LastTransitionTime
yym2446 := z.EncBinary()
_ = yym2446
if false {
} else if z.HasExtensions() && z.EncExt(yy2445) {
} else if yym2446 {
z.EncBinaryMarshal(yy2445)
} else if !yym2446 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2445)
} else {
z.EncFallback(yy2445)
}
}
}
if yyr2434 || yy2arr2434 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2434[4] {
yym2448 := z.EncBinary()
_ = yym2448
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2434[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2449 := z.EncBinary()
_ = yym2449
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr2434 || yy2arr2434 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2434[5] {
yym2451 := z.EncBinary()
_ = yym2451
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2434[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2452 := z.EncBinary()
_ = yym2452
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr2434 || yy2arr2434 {
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
yym2453 := z.DecBinary()
_ = yym2453
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2454 := r.ContainerType()
if yyct2454 == codecSelferValueTypeMap1234 {
yyl2454 := r.ReadMapStart()
if yyl2454 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2454, d)
}
} else if yyct2454 == codecSelferValueTypeArray1234 {
yyl2454 := r.ReadArrayStart()
if yyl2454 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2454, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2455Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2455Slc
var yyhl2455 bool = l >= 0
for yyj2455 := 0; ; yyj2455++ {
if yyhl2455 {
if yyj2455 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2455Slc = r.DecodeBytes(yys2455Slc, true, true)
yys2455 := string(yys2455Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2455 {
case "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 {
yyv2458 := &x.LastHeartbeatTime
yym2459 := z.DecBinary()
_ = yym2459
if false {
} else if z.HasExtensions() && z.DecExt(yyv2458) {
} else if yym2459 {
z.DecBinaryUnmarshal(yyv2458)
} else if !yym2459 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2458)
} else {
z.DecFallback(yyv2458, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv2460 := &x.LastTransitionTime
yym2461 := z.DecBinary()
_ = yym2461
if false {
} else if z.HasExtensions() && z.DecExt(yyv2460) {
} else if yym2461 {
z.DecBinaryUnmarshal(yyv2460)
} else if !yym2461 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2460)
} else {
z.DecFallback(yyv2460, 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, yys2455)
} // end switch yys2455
} // end for yyj2455
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 yyj2464 int
var yyb2464 bool
var yyhl2464 bool = l >= 0
yyj2464++
if yyhl2464 {
yyb2464 = yyj2464 > l
} else {
yyb2464 = r.CheckBreak()
}
if yyb2464 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeConditionType(r.DecodeString())
}
yyj2464++
if yyhl2464 {
yyb2464 = yyj2464 > l
} else {
yyb2464 = r.CheckBreak()
}
if yyb2464 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj2464++
if yyhl2464 {
yyb2464 = yyj2464 > l
} else {
yyb2464 = r.CheckBreak()
}
if yyb2464 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastHeartbeatTime = pkg2_unversioned.Time{}
} else {
yyv2467 := &x.LastHeartbeatTime
yym2468 := z.DecBinary()
_ = yym2468
if false {
} else if z.HasExtensions() && z.DecExt(yyv2467) {
} else if yym2468 {
z.DecBinaryUnmarshal(yyv2467)
} else if !yym2468 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2467)
} else {
z.DecFallback(yyv2467, false)
}
}
yyj2464++
if yyhl2464 {
yyb2464 = yyj2464 > l
} else {
yyb2464 = r.CheckBreak()
}
if yyb2464 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv2469 := &x.LastTransitionTime
yym2470 := z.DecBinary()
_ = yym2470
if false {
} else if z.HasExtensions() && z.DecExt(yyv2469) {
} else if yym2470 {
z.DecBinaryUnmarshal(yyv2469)
} else if !yym2470 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2469)
} else {
z.DecFallback(yyv2469, false)
}
}
yyj2464++
if yyhl2464 {
yyb2464 = yyj2464 > l
} else {
yyb2464 = r.CheckBreak()
}
if yyb2464 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj2464++
if yyhl2464 {
yyb2464 = yyj2464 > l
} else {
yyb2464 = r.CheckBreak()
}
if yyb2464 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj2464++
if yyhl2464 {
yyb2464 = yyj2464 > l
} else {
yyb2464 = r.CheckBreak()
}
if yyb2464 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2464-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2473 := z.EncBinary()
_ = yym2473
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
yym2474 := z.DecBinary()
_ = yym2474
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 {
yym2475 := z.EncBinary()
_ = yym2475
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2476 := !z.EncBinary()
yy2arr2476 := z.EncBasicHandle().StructToArray
var yyq2476 [2]bool
_, _, _ = yysep2476, yyq2476, yy2arr2476
const yyr2476 bool = false
var yynn2476 int
if yyr2476 || yy2arr2476 {
r.EncodeArrayStart(2)
} else {
yynn2476 = 2
for _, b := range yyq2476 {
if b {
yynn2476++
}
}
r.EncodeMapStart(yynn2476)
yynn2476 = 0
}
if yyr2476 || yy2arr2476 {
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 yyr2476 || yy2arr2476 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2479 := z.EncBinary()
_ = yym2479
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)
yym2480 := z.EncBinary()
_ = yym2480
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
}
}
if yyr2476 || yy2arr2476 {
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
yym2481 := z.DecBinary()
_ = yym2481
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2482 := r.ContainerType()
if yyct2482 == codecSelferValueTypeMap1234 {
yyl2482 := r.ReadMapStart()
if yyl2482 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2482, d)
}
} else if yyct2482 == codecSelferValueTypeArray1234 {
yyl2482 := r.ReadArrayStart()
if yyl2482 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2482, 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 yys2483Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2483Slc
var yyhl2483 bool = l >= 0
for yyj2483 := 0; ; yyj2483++ {
if yyhl2483 {
if yyj2483 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2483Slc = r.DecodeBytes(yys2483Slc, true, true)
yys2483 := string(yys2483Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2483 {
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, yys2483)
} // end switch yys2483
} // end for yyj2483
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 yyj2486 int
var yyb2486 bool
var yyhl2486 bool = l >= 0
yyj2486++
if yyhl2486 {
yyb2486 = yyj2486 > l
} else {
yyb2486 = r.CheckBreak()
}
if yyb2486 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeAddressType(r.DecodeString())
}
yyj2486++
if yyhl2486 {
yyb2486 = yyj2486 > l
} else {
yyb2486 = r.CheckBreak()
}
if yyb2486 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Address = ""
} else {
x.Address = string(r.DecodeString())
}
for {
yyj2486++
if yyhl2486 {
yyb2486 = yyj2486 > l
} else {
yyb2486 = r.CheckBreak()
}
if yyb2486 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2486-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 {
yym2489 := z.EncBinary()
_ = yym2489
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2490 := !z.EncBinary()
yy2arr2490 := z.EncBasicHandle().StructToArray
var yyq2490 [1]bool
_, _, _ = yysep2490, yyq2490, yy2arr2490
const yyr2490 bool = false
yyq2490[0] = len(x.Capacity) != 0
var yynn2490 int
if yyr2490 || yy2arr2490 {
r.EncodeArrayStart(1)
} else {
yynn2490 = 0
for _, b := range yyq2490 {
if b {
yynn2490++
}
}
r.EncodeMapStart(yynn2490)
yynn2490 = 0
}
if yyr2490 || yy2arr2490 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2490[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2490[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 yyr2490 || yy2arr2490 {
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
yym2492 := z.DecBinary()
_ = yym2492
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2493 := r.ContainerType()
if yyct2493 == codecSelferValueTypeMap1234 {
yyl2493 := r.ReadMapStart()
if yyl2493 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2493, d)
}
} else if yyct2493 == codecSelferValueTypeArray1234 {
yyl2493 := r.ReadArrayStart()
if yyl2493 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2493, 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 yys2494Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2494Slc
var yyhl2494 bool = l >= 0
for yyj2494 := 0; ; yyj2494++ {
if yyhl2494 {
if yyj2494 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2494Slc = r.DecodeBytes(yys2494Slc, true, true)
yys2494 := string(yys2494Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2494 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2495 := &x.Capacity
yyv2495.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2494)
} // end switch yys2494
} // end for yyj2494
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 yyj2496 int
var yyb2496 bool
var yyhl2496 bool = l >= 0
yyj2496++
if yyhl2496 {
yyb2496 = yyj2496 > l
} else {
yyb2496 = r.CheckBreak()
}
if yyb2496 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2497 := &x.Capacity
yyv2497.CodecDecodeSelf(d)
}
for {
yyj2496++
if yyhl2496 {
yyb2496 = yyj2496 > l
} else {
yyb2496 = r.CheckBreak()
}
if yyb2496 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2496-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2498 := z.EncBinary()
_ = yym2498
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
yym2499 := z.DecBinary()
_ = yym2499
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 {
yym2500 := z.EncBinary()
_ = yym2500
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
yym2501 := z.DecBinary()
_ = yym2501
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 {
yym2502 := z.EncBinary()
_ = yym2502
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2503 := !z.EncBinary()
yy2arr2503 := z.EncBasicHandle().StructToArray
var yyq2503 [5]bool
_, _, _ = yysep2503, yyq2503, yy2arr2503
const yyr2503 bool = false
yyq2503[0] = x.Kind != ""
yyq2503[1] = x.APIVersion != ""
yyq2503[2] = true
yyq2503[3] = true
yyq2503[4] = true
var yynn2503 int
if yyr2503 || yy2arr2503 {
r.EncodeArrayStart(5)
} else {
yynn2503 = 0
for _, b := range yyq2503 {
if b {
yynn2503++
}
}
r.EncodeMapStart(yynn2503)
yynn2503 = 0
}
if yyr2503 || yy2arr2503 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2503[0] {
yym2505 := z.EncBinary()
_ = yym2505
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2503[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2506 := z.EncBinary()
_ = yym2506
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2503 || yy2arr2503 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2503[1] {
yym2508 := z.EncBinary()
_ = yym2508
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2503[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2509 := z.EncBinary()
_ = yym2509
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2503 || yy2arr2503 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2503[2] {
yy2511 := &x.ObjectMeta
yy2511.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2503[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2512 := &x.ObjectMeta
yy2512.CodecEncodeSelf(e)
}
}
if yyr2503 || yy2arr2503 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2503[3] {
yy2514 := &x.Spec
yy2514.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2503[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2515 := &x.Spec
yy2515.CodecEncodeSelf(e)
}
}
if yyr2503 || yy2arr2503 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2503[4] {
yy2517 := &x.Status
yy2517.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2503[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2518 := &x.Status
yy2518.CodecEncodeSelf(e)
}
}
if yyr2503 || yy2arr2503 {
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
yym2519 := z.DecBinary()
_ = yym2519
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2520 := r.ContainerType()
if yyct2520 == codecSelferValueTypeMap1234 {
yyl2520 := r.ReadMapStart()
if yyl2520 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2520, d)
}
} else if yyct2520 == codecSelferValueTypeArray1234 {
yyl2520 := r.ReadArrayStart()
if yyl2520 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2520, 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 yys2521Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2521Slc
var yyhl2521 bool = l >= 0
for yyj2521 := 0; ; yyj2521++ {
if yyhl2521 {
if yyj2521 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2521Slc = r.DecodeBytes(yys2521Slc, true, true)
yys2521 := string(yys2521Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2521 {
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 {
yyv2524 := &x.ObjectMeta
yyv2524.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv2525 := &x.Spec
yyv2525.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv2526 := &x.Status
yyv2526.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2521)
} // end switch yys2521
} // end for yyj2521
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 yyj2527 int
var yyb2527 bool
var yyhl2527 bool = l >= 0
yyj2527++
if yyhl2527 {
yyb2527 = yyj2527 > l
} else {
yyb2527 = r.CheckBreak()
}
if yyb2527 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2527++
if yyhl2527 {
yyb2527 = yyj2527 > l
} else {
yyb2527 = r.CheckBreak()
}
if yyb2527 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2527++
if yyhl2527 {
yyb2527 = yyj2527 > l
} else {
yyb2527 = r.CheckBreak()
}
if yyb2527 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2530 := &x.ObjectMeta
yyv2530.CodecDecodeSelf(d)
}
yyj2527++
if yyhl2527 {
yyb2527 = yyj2527 > l
} else {
yyb2527 = r.CheckBreak()
}
if yyb2527 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv2531 := &x.Spec
yyv2531.CodecDecodeSelf(d)
}
yyj2527++
if yyhl2527 {
yyb2527 = yyj2527 > l
} else {
yyb2527 = r.CheckBreak()
}
if yyb2527 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv2532 := &x.Status
yyv2532.CodecDecodeSelf(d)
}
for {
yyj2527++
if yyhl2527 {
yyb2527 = yyj2527 > l
} else {
yyb2527 = r.CheckBreak()
}
if yyb2527 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2527-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 {
yym2533 := z.EncBinary()
_ = yym2533
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2534 := !z.EncBinary()
yy2arr2534 := z.EncBasicHandle().StructToArray
var yyq2534 [4]bool
_, _, _ = yysep2534, yyq2534, yy2arr2534
const yyr2534 bool = false
yyq2534[0] = x.Kind != ""
yyq2534[1] = x.APIVersion != ""
yyq2534[2] = true
var yynn2534 int
if yyr2534 || yy2arr2534 {
r.EncodeArrayStart(4)
} else {
yynn2534 = 1
for _, b := range yyq2534 {
if b {
yynn2534++
}
}
r.EncodeMapStart(yynn2534)
yynn2534 = 0
}
if yyr2534 || yy2arr2534 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2534[0] {
yym2536 := z.EncBinary()
_ = yym2536
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2534[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2537 := z.EncBinary()
_ = yym2537
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2534 || yy2arr2534 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2534[1] {
yym2539 := z.EncBinary()
_ = yym2539
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2534[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2540 := z.EncBinary()
_ = yym2540
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2534 || yy2arr2534 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2534[2] {
yy2542 := &x.ListMeta
yym2543 := z.EncBinary()
_ = yym2543
if false {
} else if z.HasExtensions() && z.EncExt(yy2542) {
} else {
z.EncFallback(yy2542)
}
} else {
r.EncodeNil()
}
} else {
if yyq2534[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2544 := &x.ListMeta
yym2545 := z.EncBinary()
_ = yym2545
if false {
} else if z.HasExtensions() && z.EncExt(yy2544) {
} else {
z.EncFallback(yy2544)
}
}
}
if yyr2534 || yy2arr2534 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2547 := z.EncBinary()
_ = yym2547
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 {
yym2548 := z.EncBinary()
_ = yym2548
if false {
} else {
h.encSliceNode(([]Node)(x.Items), e)
}
}
}
if yyr2534 || yy2arr2534 {
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
yym2549 := z.DecBinary()
_ = yym2549
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2550 := r.ContainerType()
if yyct2550 == codecSelferValueTypeMap1234 {
yyl2550 := r.ReadMapStart()
if yyl2550 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2550, d)
}
} else if yyct2550 == codecSelferValueTypeArray1234 {
yyl2550 := r.ReadArrayStart()
if yyl2550 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2550, 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 yys2551Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2551Slc
var yyhl2551 bool = l >= 0
for yyj2551 := 0; ; yyj2551++ {
if yyhl2551 {
if yyj2551 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2551Slc = r.DecodeBytes(yys2551Slc, true, true)
yys2551 := string(yys2551Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2551 {
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 {
yyv2554 := &x.ListMeta
yym2555 := z.DecBinary()
_ = yym2555
if false {
} else if z.HasExtensions() && z.DecExt(yyv2554) {
} else {
z.DecFallback(yyv2554, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2556 := &x.Items
yym2557 := z.DecBinary()
_ = yym2557
if false {
} else {
h.decSliceNode((*[]Node)(yyv2556), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2551)
} // end switch yys2551
} // end for yyj2551
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 yyj2558 int
var yyb2558 bool
var yyhl2558 bool = l >= 0
yyj2558++
if yyhl2558 {
yyb2558 = yyj2558 > l
} else {
yyb2558 = r.CheckBreak()
}
if yyb2558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2558++
if yyhl2558 {
yyb2558 = yyj2558 > l
} else {
yyb2558 = r.CheckBreak()
}
if yyb2558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2558++
if yyhl2558 {
yyb2558 = yyj2558 > l
} else {
yyb2558 = r.CheckBreak()
}
if yyb2558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2561 := &x.ListMeta
yym2562 := z.DecBinary()
_ = yym2562
if false {
} else if z.HasExtensions() && z.DecExt(yyv2561) {
} else {
z.DecFallback(yyv2561, false)
}
}
yyj2558++
if yyhl2558 {
yyb2558 = yyj2558 > l
} else {
yyb2558 = r.CheckBreak()
}
if yyb2558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2563 := &x.Items
yym2564 := z.DecBinary()
_ = yym2564
if false {
} else {
h.decSliceNode((*[]Node)(yyv2563), d)
}
}
for {
yyj2558++
if yyhl2558 {
yyb2558 = yyj2558 > l
} else {
yyb2558 = r.CheckBreak()
}
if yyb2558 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2558-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 {
yym2565 := z.EncBinary()
_ = yym2565
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2566 := !z.EncBinary()
yy2arr2566 := z.EncBasicHandle().StructToArray
var yyq2566 [1]bool
_, _, _ = yysep2566, yyq2566, yy2arr2566
const yyr2566 bool = false
var yynn2566 int
if yyr2566 || yy2arr2566 {
r.EncodeArrayStart(1)
} else {
yynn2566 = 1
for _, b := range yyq2566 {
if b {
yynn2566++
}
}
r.EncodeMapStart(yynn2566)
yynn2566 = 0
}
if yyr2566 || yy2arr2566 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym2568 := z.EncBinary()
_ = yym2568
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 {
yym2569 := z.EncBinary()
_ = yym2569
if false {
} else {
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
}
}
}
if yyr2566 || yy2arr2566 {
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
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 *NamespaceSpec) 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 "Finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv2573 := &x.Finalizers
yym2574 := z.DecBinary()
_ = yym2574
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv2573), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2572)
} // end switch yys2572
} // end for yyj2572
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 yyj2575 int
var yyb2575 bool
var yyhl2575 bool = l >= 0
yyj2575++
if yyhl2575 {
yyb2575 = yyj2575 > l
} else {
yyb2575 = r.CheckBreak()
}
if yyb2575 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv2576 := &x.Finalizers
yym2577 := z.DecBinary()
_ = yym2577
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv2576), d)
}
}
for {
yyj2575++
if yyhl2575 {
yyb2575 = yyj2575 > l
} else {
yyb2575 = r.CheckBreak()
}
if yyb2575 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2575-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2578 := z.EncBinary()
_ = yym2578
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
yym2579 := z.DecBinary()
_ = yym2579
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 {
yym2580 := z.EncBinary()
_ = yym2580
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2581 := !z.EncBinary()
yy2arr2581 := z.EncBasicHandle().StructToArray
var yyq2581 [1]bool
_, _, _ = yysep2581, yyq2581, yy2arr2581
const yyr2581 bool = false
yyq2581[0] = x.Phase != ""
var yynn2581 int
if yyr2581 || yy2arr2581 {
r.EncodeArrayStart(1)
} else {
yynn2581 = 0
for _, b := range yyq2581 {
if b {
yynn2581++
}
}
r.EncodeMapStart(yynn2581)
yynn2581 = 0
}
if yyr2581 || yy2arr2581 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2581[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2581[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2581 || yy2arr2581 {
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
yym2583 := z.DecBinary()
_ = yym2583
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2584 := r.ContainerType()
if yyct2584 == codecSelferValueTypeMap1234 {
yyl2584 := r.ReadMapStart()
if yyl2584 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2584, d)
}
} else if yyct2584 == codecSelferValueTypeArray1234 {
yyl2584 := r.ReadArrayStart()
if yyl2584 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2584, 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 yys2585Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2585Slc
var yyhl2585 bool = l >= 0
for yyj2585 := 0; ; yyj2585++ {
if yyhl2585 {
if yyj2585 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2585Slc = r.DecodeBytes(yys2585Slc, true, true)
yys2585 := string(yys2585Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2585 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2585)
} // end switch yys2585
} // end for yyj2585
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 yyj2587 int
var yyb2587 bool
var yyhl2587 bool = l >= 0
yyj2587++
if yyhl2587 {
yyb2587 = yyj2587 > l
} else {
yyb2587 = r.CheckBreak()
}
if yyb2587 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
for {
yyj2587++
if yyhl2587 {
yyb2587 = yyj2587 > l
} else {
yyb2587 = r.CheckBreak()
}
if yyb2587 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2587-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2589 := z.EncBinary()
_ = yym2589
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
yym2590 := z.DecBinary()
_ = yym2590
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 {
yym2591 := z.EncBinary()
_ = yym2591
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2592 := !z.EncBinary()
yy2arr2592 := z.EncBasicHandle().StructToArray
var yyq2592 [5]bool
_, _, _ = yysep2592, yyq2592, yy2arr2592
const yyr2592 bool = false
yyq2592[0] = x.Kind != ""
yyq2592[1] = x.APIVersion != ""
yyq2592[2] = true
yyq2592[3] = true
yyq2592[4] = true
var yynn2592 int
if yyr2592 || yy2arr2592 {
r.EncodeArrayStart(5)
} else {
yynn2592 = 0
for _, b := range yyq2592 {
if b {
yynn2592++
}
}
r.EncodeMapStart(yynn2592)
yynn2592 = 0
}
if yyr2592 || yy2arr2592 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2592[0] {
yym2594 := z.EncBinary()
_ = yym2594
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2592[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2595 := z.EncBinary()
_ = yym2595
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2592 || yy2arr2592 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2592[1] {
yym2597 := z.EncBinary()
_ = yym2597
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2592[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2598 := z.EncBinary()
_ = yym2598
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2592 || yy2arr2592 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2592[2] {
yy2600 := &x.ObjectMeta
yy2600.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2592[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2601 := &x.ObjectMeta
yy2601.CodecEncodeSelf(e)
}
}
if yyr2592 || yy2arr2592 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2592[3] {
yy2603 := &x.Spec
yy2603.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2592[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2604 := &x.Spec
yy2604.CodecEncodeSelf(e)
}
}
if yyr2592 || yy2arr2592 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2592[4] {
yy2606 := &x.Status
yy2606.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2592[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2607 := &x.Status
yy2607.CodecEncodeSelf(e)
}
}
if yyr2592 || yy2arr2592 {
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
yym2608 := z.DecBinary()
_ = yym2608
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2609 := r.ContainerType()
if yyct2609 == codecSelferValueTypeMap1234 {
yyl2609 := r.ReadMapStart()
if yyl2609 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2609, d)
}
} else if yyct2609 == codecSelferValueTypeArray1234 {
yyl2609 := r.ReadArrayStart()
if yyl2609 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2609, 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 yys2610Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2610Slc
var yyhl2610 bool = l >= 0
for yyj2610 := 0; ; yyj2610++ {
if yyhl2610 {
if yyj2610 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2610Slc = r.DecodeBytes(yys2610Slc, true, true)
yys2610 := string(yys2610Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2610 {
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 {
yyv2613 := &x.ObjectMeta
yyv2613.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv2614 := &x.Spec
yyv2614.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv2615 := &x.Status
yyv2615.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2610)
} // end switch yys2610
} // end for yyj2610
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 yyj2616 int
var yyb2616 bool
var yyhl2616 bool = l >= 0
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2619 := &x.ObjectMeta
yyv2619.CodecDecodeSelf(d)
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv2620 := &x.Spec
yyv2620.CodecDecodeSelf(d)
}
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv2621 := &x.Status
yyv2621.CodecDecodeSelf(d)
}
for {
yyj2616++
if yyhl2616 {
yyb2616 = yyj2616 > l
} else {
yyb2616 = r.CheckBreak()
}
if yyb2616 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2616-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 {
yym2622 := z.EncBinary()
_ = yym2622
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2623 := !z.EncBinary()
yy2arr2623 := z.EncBasicHandle().StructToArray
var yyq2623 [4]bool
_, _, _ = yysep2623, yyq2623, yy2arr2623
const yyr2623 bool = false
yyq2623[0] = x.Kind != ""
yyq2623[1] = x.APIVersion != ""
yyq2623[2] = true
var yynn2623 int
if yyr2623 || yy2arr2623 {
r.EncodeArrayStart(4)
} else {
yynn2623 = 1
for _, b := range yyq2623 {
if b {
yynn2623++
}
}
r.EncodeMapStart(yynn2623)
yynn2623 = 0
}
if yyr2623 || yy2arr2623 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2623[0] {
yym2625 := z.EncBinary()
_ = yym2625
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2623[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2626 := z.EncBinary()
_ = yym2626
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2623 || yy2arr2623 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2623[1] {
yym2628 := z.EncBinary()
_ = yym2628
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2623[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2629 := z.EncBinary()
_ = yym2629
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2623 || yy2arr2623 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2623[2] {
yy2631 := &x.ListMeta
yym2632 := z.EncBinary()
_ = yym2632
if false {
} else if z.HasExtensions() && z.EncExt(yy2631) {
} else {
z.EncFallback(yy2631)
}
} else {
r.EncodeNil()
}
} else {
if yyq2623[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2633 := &x.ListMeta
yym2634 := z.EncBinary()
_ = yym2634
if false {
} else if z.HasExtensions() && z.EncExt(yy2633) {
} else {
z.EncFallback(yy2633)
}
}
}
if yyr2623 || yy2arr2623 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2636 := z.EncBinary()
_ = yym2636
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 {
yym2637 := z.EncBinary()
_ = yym2637
if false {
} else {
h.encSliceNamespace(([]Namespace)(x.Items), e)
}
}
}
if yyr2623 || yy2arr2623 {
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
yym2638 := z.DecBinary()
_ = yym2638
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2639 := r.ContainerType()
if yyct2639 == codecSelferValueTypeMap1234 {
yyl2639 := r.ReadMapStart()
if yyl2639 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2639, d)
}
} else if yyct2639 == codecSelferValueTypeArray1234 {
yyl2639 := r.ReadArrayStart()
if yyl2639 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2639, 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 yys2640Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2640Slc
var yyhl2640 bool = l >= 0
for yyj2640 := 0; ; yyj2640++ {
if yyhl2640 {
if yyj2640 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2640Slc = r.DecodeBytes(yys2640Slc, true, true)
yys2640 := string(yys2640Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2640 {
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 {
yyv2643 := &x.ListMeta
yym2644 := z.DecBinary()
_ = yym2644
if false {
} else if z.HasExtensions() && z.DecExt(yyv2643) {
} else {
z.DecFallback(yyv2643, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2645 := &x.Items
yym2646 := z.DecBinary()
_ = yym2646
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv2645), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2640)
} // end switch yys2640
} // end for yyj2640
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 yyj2647 int
var yyb2647 bool
var yyhl2647 bool = l >= 0
yyj2647++
if yyhl2647 {
yyb2647 = yyj2647 > l
} else {
yyb2647 = r.CheckBreak()
}
if yyb2647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2647++
if yyhl2647 {
yyb2647 = yyj2647 > l
} else {
yyb2647 = r.CheckBreak()
}
if yyb2647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2647++
if yyhl2647 {
yyb2647 = yyj2647 > l
} else {
yyb2647 = r.CheckBreak()
}
if yyb2647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2650 := &x.ListMeta
yym2651 := z.DecBinary()
_ = yym2651
if false {
} else if z.HasExtensions() && z.DecExt(yyv2650) {
} else {
z.DecFallback(yyv2650, false)
}
}
yyj2647++
if yyhl2647 {
yyb2647 = yyj2647 > l
} else {
yyb2647 = r.CheckBreak()
}
if yyb2647 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2652 := &x.Items
yym2653 := z.DecBinary()
_ = yym2653
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv2652), d)
}
}
for {
yyj2647++
if yyhl2647 {
yyb2647 = yyj2647 > l
} else {
yyb2647 = r.CheckBreak()
}
if yyb2647 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2647-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2654 := z.EncBinary()
_ = yym2654
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2655 := !z.EncBinary()
yy2arr2655 := z.EncBasicHandle().StructToArray
var yyq2655 [4]bool
_, _, _ = yysep2655, yyq2655, yy2arr2655
const yyr2655 bool = false
yyq2655[0] = x.Kind != ""
yyq2655[1] = x.APIVersion != ""
yyq2655[2] = true
var yynn2655 int
if yyr2655 || yy2arr2655 {
r.EncodeArrayStart(4)
} else {
yynn2655 = 1
for _, b := range yyq2655 {
if b {
yynn2655++
}
}
r.EncodeMapStart(yynn2655)
yynn2655 = 0
}
if yyr2655 || yy2arr2655 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2655[0] {
yym2657 := z.EncBinary()
_ = yym2657
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2655[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2658 := z.EncBinary()
_ = yym2658
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2655 || yy2arr2655 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2655[1] {
yym2660 := z.EncBinary()
_ = yym2660
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2655[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2661 := z.EncBinary()
_ = yym2661
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2655 || yy2arr2655 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2655[2] {
yy2663 := &x.ObjectMeta
yy2663.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2655[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2664 := &x.ObjectMeta
yy2664.CodecEncodeSelf(e)
}
}
if yyr2655 || yy2arr2655 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2666 := &x.Target
yy2666.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("target"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2667 := &x.Target
yy2667.CodecEncodeSelf(e)
}
if yyr2655 || yy2arr2655 {
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
yym2668 := z.DecBinary()
_ = yym2668
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2669 := r.ContainerType()
if yyct2669 == codecSelferValueTypeMap1234 {
yyl2669 := r.ReadMapStart()
if yyl2669 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2669, d)
}
} else if yyct2669 == codecSelferValueTypeArray1234 {
yyl2669 := r.ReadArrayStart()
if yyl2669 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2669, 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 yys2670Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2670Slc
var yyhl2670 bool = l >= 0
for yyj2670 := 0; ; yyj2670++ {
if yyhl2670 {
if yyj2670 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2670Slc = r.DecodeBytes(yys2670Slc, true, true)
yys2670 := string(yys2670Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2670 {
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 {
yyv2673 := &x.ObjectMeta
yyv2673.CodecDecodeSelf(d)
}
case "target":
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv2674 := &x.Target
yyv2674.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2670)
} // end switch yys2670
} // end for yyj2670
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 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.ObjectMeta = ObjectMeta{}
} else {
yyv2678 := &x.ObjectMeta
yyv2678.CodecDecodeSelf(d)
}
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.Target = ObjectReference{}
} else {
yyv2679 := &x.Target
yyv2679.CodecDecodeSelf(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 *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2680 := z.EncBinary()
_ = yym2680
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2681 := !z.EncBinary()
yy2arr2681 := z.EncBasicHandle().StructToArray
var yyq2681 [3]bool
_, _, _ = yysep2681, yyq2681, yy2arr2681
const yyr2681 bool = false
yyq2681[0] = x.Kind != ""
yyq2681[1] = x.APIVersion != ""
var yynn2681 int
if yyr2681 || yy2arr2681 {
r.EncodeArrayStart(3)
} else {
yynn2681 = 1
for _, b := range yyq2681 {
if b {
yynn2681++
}
}
r.EncodeMapStart(yynn2681)
yynn2681 = 0
}
if yyr2681 || yy2arr2681 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2681[0] {
yym2683 := z.EncBinary()
_ = yym2683
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2681[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2684 := z.EncBinary()
_ = yym2684
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2681 || yy2arr2681 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2681[1] {
yym2686 := z.EncBinary()
_ = yym2686
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2681[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2687 := z.EncBinary()
_ = yym2687
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2681 || yy2arr2681 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2689 := *x.GracePeriodSeconds
yym2690 := z.EncBinary()
_ = yym2690
if false {
} else {
r.EncodeInt(int64(yy2689))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2691 := *x.GracePeriodSeconds
yym2692 := z.EncBinary()
_ = yym2692
if false {
} else {
r.EncodeInt(int64(yy2691))
}
}
}
if yyr2681 || yy2arr2681 {
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
yym2693 := z.DecBinary()
_ = yym2693
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2694 := r.ContainerType()
if yyct2694 == codecSelferValueTypeMap1234 {
yyl2694 := r.ReadMapStart()
if yyl2694 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2694, d)
}
} else if yyct2694 == codecSelferValueTypeArray1234 {
yyl2694 := r.ReadArrayStart()
if yyl2694 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2694, 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 yys2695Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2695Slc
var yyhl2695 bool = l >= 0
for yyj2695 := 0; ; yyj2695++ {
if yyhl2695 {
if yyj2695 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2695Slc = r.DecodeBytes(yys2695Slc, true, true)
yys2695 := string(yys2695Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2695 {
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)
}
yym2699 := z.DecBinary()
_ = yym2699
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2695)
} // end switch yys2695
} // end for yyj2695
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 yyj2700 int
var yyb2700 bool
var yyhl2700 bool = l >= 0
yyj2700++
if yyhl2700 {
yyb2700 = yyj2700 > l
} else {
yyb2700 = r.CheckBreak()
}
if yyb2700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2700++
if yyhl2700 {
yyb2700 = yyj2700 > l
} else {
yyb2700 = r.CheckBreak()
}
if yyb2700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2700++
if yyhl2700 {
yyb2700 = yyj2700 > l
} else {
yyb2700 = r.CheckBreak()
}
if yyb2700 {
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)
}
yym2704 := z.DecBinary()
_ = yym2704
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj2700++
if yyhl2700 {
yyb2700 = yyj2700 > l
} else {
yyb2700 = r.CheckBreak()
}
if yyb2700 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2700-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 {
yym2705 := z.EncBinary()
_ = yym2705
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2706 := !z.EncBinary()
yy2arr2706 := z.EncBasicHandle().StructToArray
var yyq2706 [4]bool
_, _, _ = yysep2706, yyq2706, yy2arr2706
const yyr2706 bool = false
yyq2706[0] = x.Kind != ""
yyq2706[1] = x.APIVersion != ""
var yynn2706 int
if yyr2706 || yy2arr2706 {
r.EncodeArrayStart(4)
} else {
yynn2706 = 2
for _, b := range yyq2706 {
if b {
yynn2706++
}
}
r.EncodeMapStart(yynn2706)
yynn2706 = 0
}
if yyr2706 || yy2arr2706 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2706[0] {
yym2708 := z.EncBinary()
_ = yym2708
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2706[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2709 := z.EncBinary()
_ = yym2709
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2706 || yy2arr2706 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2706[1] {
yym2711 := z.EncBinary()
_ = yym2711
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2706[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2712 := z.EncBinary()
_ = yym2712
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2706 || yy2arr2706 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2714 := z.EncBinary()
_ = yym2714
if false {
} else {
r.EncodeBool(bool(x.Export))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("export"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2715 := z.EncBinary()
_ = yym2715
if false {
} else {
r.EncodeBool(bool(x.Export))
}
}
if yyr2706 || yy2arr2706 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2717 := z.EncBinary()
_ = yym2717
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exact"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2718 := z.EncBinary()
_ = yym2718
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
}
if yyr2706 || yy2arr2706 {
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
yym2719 := z.DecBinary()
_ = yym2719
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2720 := r.ContainerType()
if yyct2720 == codecSelferValueTypeMap1234 {
yyl2720 := r.ReadMapStart()
if yyl2720 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2720, d)
}
} else if yyct2720 == codecSelferValueTypeArray1234 {
yyl2720 := r.ReadArrayStart()
if yyl2720 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2720, 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 yys2721Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2721Slc
var yyhl2721 bool = l >= 0
for yyj2721 := 0; ; yyj2721++ {
if yyhl2721 {
if yyj2721 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2721Slc = r.DecodeBytes(yys2721Slc, true, true)
yys2721 := string(yys2721Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2721 {
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, yys2721)
} // end switch yys2721
} // end for yyj2721
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 yyj2726 int
var yyb2726 bool
var yyhl2726 bool = l >= 0
yyj2726++
if yyhl2726 {
yyb2726 = yyj2726 > l
} else {
yyb2726 = r.CheckBreak()
}
if yyb2726 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2726++
if yyhl2726 {
yyb2726 = yyj2726 > l
} else {
yyb2726 = r.CheckBreak()
}
if yyb2726 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2726++
if yyhl2726 {
yyb2726 = yyj2726 > l
} else {
yyb2726 = r.CheckBreak()
}
if yyb2726 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
yyj2726++
if yyhl2726 {
yyb2726 = yyj2726 > l
} else {
yyb2726 = r.CheckBreak()
}
if yyb2726 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
for {
yyj2726++
if yyhl2726 {
yyb2726 = yyj2726 > l
} else {
yyb2726 = r.CheckBreak()
}
if yyb2726 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2726-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 {
yym2731 := z.EncBinary()
_ = yym2731
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2732 := !z.EncBinary()
yy2arr2732 := z.EncBasicHandle().StructToArray
var yyq2732 [7]bool
_, _, _ = yysep2732, yyq2732, yy2arr2732
const yyr2732 bool = false
yyq2732[0] = x.Kind != ""
yyq2732[1] = x.APIVersion != ""
var yynn2732 int
if yyr2732 || yy2arr2732 {
r.EncodeArrayStart(7)
} else {
yynn2732 = 5
for _, b := range yyq2732 {
if b {
yynn2732++
}
}
r.EncodeMapStart(yynn2732)
yynn2732 = 0
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2732[0] {
yym2734 := z.EncBinary()
_ = yym2734
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2732[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2735 := z.EncBinary()
_ = yym2735
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2732[1] {
yym2737 := z.EncBinary()
_ = yym2737
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2732[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2738 := z.EncBinary()
_ = yym2738
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym2740 := z.EncBinary()
_ = yym2740
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 {
yym2741 := z.EncBinary()
_ = yym2741
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldSelector == nil {
r.EncodeNil()
} else {
yym2743 := z.EncBinary()
_ = yym2743
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 {
yym2744 := z.EncBinary()
_ = yym2744
if false {
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
} else {
z.EncFallback(x.FieldSelector)
}
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2746 := z.EncBinary()
_ = yym2746
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2747 := z.EncBinary()
_ = yym2747
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2749 := z.EncBinary()
_ = yym2749
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)
yym2750 := z.EncBinary()
_ = yym2750
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy2752 := *x.TimeoutSeconds
yym2753 := z.EncBinary()
_ = yym2753
if false {
} else {
r.EncodeInt(int64(yy2752))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy2754 := *x.TimeoutSeconds
yym2755 := z.EncBinary()
_ = yym2755
if false {
} else {
r.EncodeInt(int64(yy2754))
}
}
}
if yyr2732 || yy2arr2732 {
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
yym2756 := z.DecBinary()
_ = yym2756
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2757 := r.ContainerType()
if yyct2757 == codecSelferValueTypeMap1234 {
yyl2757 := r.ReadMapStart()
if yyl2757 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2757, d)
}
} else if yyct2757 == codecSelferValueTypeArray1234 {
yyl2757 := r.ReadArrayStart()
if yyl2757 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2757, 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 yys2758Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2758Slc
var yyhl2758 bool = l >= 0
for yyj2758 := 0; ; yyj2758++ {
if yyhl2758 {
if yyj2758 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2758Slc = r.DecodeBytes(yys2758Slc, true, true)
yys2758 := string(yys2758Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2758 {
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 {
yyv2761 := &x.LabelSelector
yym2762 := z.DecBinary()
_ = yym2762
if false {
} else if z.HasExtensions() && z.DecExt(yyv2761) {
} else {
z.DecFallback(yyv2761, true)
}
}
case "FieldSelector":
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv2763 := &x.FieldSelector
yym2764 := z.DecBinary()
_ = yym2764
if false {
} else if z.HasExtensions() && z.DecExt(yyv2763) {
} else {
z.DecFallback(yyv2763, 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)
}
yym2768 := z.DecBinary()
_ = yym2768
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2758)
} // end switch yys2758
} // end for yyj2758
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 yyj2769 int
var yyb2769 bool
var yyhl2769 bool = l >= 0
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LabelSelector = nil
} else {
yyv2772 := &x.LabelSelector
yym2773 := z.DecBinary()
_ = yym2773
if false {
} else if z.HasExtensions() && z.DecExt(yyv2772) {
} else {
z.DecFallback(yyv2772, true)
}
}
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv2774 := &x.FieldSelector
yym2775 := z.DecBinary()
_ = yym2775
if false {
} else if z.HasExtensions() && z.DecExt(yyv2774) {
} else {
z.DecFallback(yyv2774, true)
}
}
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Watch = false
} else {
x.Watch = bool(r.DecodeBool())
}
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
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)
}
yym2779 := z.DecBinary()
_ = yym2779
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj2769++
if yyhl2769 {
yyb2769 = yyj2769 > l
} else {
yyb2769 = r.CheckBreak()
}
if yyb2769 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2769-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 {
yym2780 := z.EncBinary()
_ = yym2780
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2781 := !z.EncBinary()
yy2arr2781 := z.EncBasicHandle().StructToArray
var yyq2781 [10]bool
_, _, _ = yysep2781, yyq2781, yy2arr2781
const yyr2781 bool = false
yyq2781[0] = x.Kind != ""
yyq2781[1] = x.APIVersion != ""
var yynn2781 int
if yyr2781 || yy2arr2781 {
r.EncodeArrayStart(10)
} else {
yynn2781 = 8
for _, b := range yyq2781 {
if b {
yynn2781++
}
}
r.EncodeMapStart(yynn2781)
yynn2781 = 0
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2781[0] {
yym2783 := z.EncBinary()
_ = yym2783
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2781[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2784 := z.EncBinary()
_ = yym2784
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2781[1] {
yym2786 := z.EncBinary()
_ = yym2786
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2781[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2787 := z.EncBinary()
_ = yym2787
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2789 := z.EncBinary()
_ = yym2789
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)
yym2790 := z.EncBinary()
_ = yym2790
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2792 := z.EncBinary()
_ = yym2792
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2793 := z.EncBinary()
_ = yym2793
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2795 := z.EncBinary()
_ = yym2795
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2796 := z.EncBinary()
_ = yym2796
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy2798 := *x.SinceSeconds
yym2799 := z.EncBinary()
_ = yym2799
if false {
} else {
r.EncodeInt(int64(yy2798))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy2800 := *x.SinceSeconds
yym2801 := z.EncBinary()
_ = yym2801
if false {
} else {
r.EncodeInt(int64(yy2800))
}
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceTime == nil {
r.EncodeNil()
} else {
yym2803 := z.EncBinary()
_ = yym2803
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym2803 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym2803 && 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 {
yym2804 := z.EncBinary()
_ = yym2804
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym2804 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym2804 && z.IsJSONHandle() {
z.EncJSONMarshal(x.SinceTime)
} else {
z.EncFallback(x.SinceTime)
}
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2806 := z.EncBinary()
_ = yym2806
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2807 := z.EncBinary()
_ = yym2807
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy2809 := *x.TailLines
yym2810 := z.EncBinary()
_ = yym2810
if false {
} else {
r.EncodeInt(int64(yy2809))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy2811 := *x.TailLines
yym2812 := z.EncBinary()
_ = yym2812
if false {
} else {
r.EncodeInt(int64(yy2811))
}
}
}
if yyr2781 || yy2arr2781 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy2814 := *x.LimitBytes
yym2815 := z.EncBinary()
_ = yym2815
if false {
} else {
r.EncodeInt(int64(yy2814))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy2816 := *x.LimitBytes
yym2817 := z.EncBinary()
_ = yym2817
if false {
} else {
r.EncodeInt(int64(yy2816))
}
}
}
if yyr2781 || yy2arr2781 {
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
yym2818 := z.DecBinary()
_ = yym2818
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2819 := r.ContainerType()
if yyct2819 == codecSelferValueTypeMap1234 {
yyl2819 := r.ReadMapStart()
if yyl2819 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2819, d)
}
} else if yyct2819 == codecSelferValueTypeArray1234 {
yyl2819 := r.ReadArrayStart()
if yyl2819 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2819, 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 yys2820Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2820Slc
var yyhl2820 bool = l >= 0
for yyj2820 := 0; ; yyj2820++ {
if yyhl2820 {
if yyj2820 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2820Slc = r.DecodeBytes(yys2820Slc, true, true)
yys2820 := string(yys2820Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2820 {
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)
}
yym2827 := z.DecBinary()
_ = yym2827
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)
}
yym2829 := z.DecBinary()
_ = yym2829
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym2829 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym2829 && 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)
}
yym2832 := z.DecBinary()
_ = yym2832
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)
}
yym2834 := z.DecBinary()
_ = yym2834
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2820)
} // end switch yys2820
} // end for yyj2820
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 yyj2835 int
var yyb2835 bool
var yyhl2835 bool = l >= 0
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Follow = false
} else {
x.Follow = bool(r.DecodeBool())
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Previous = false
} else {
x.Previous = bool(r.DecodeBool())
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
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)
}
yym2842 := z.DecBinary()
_ = yym2842
if false {
} else {
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
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)
}
yym2844 := z.DecBinary()
_ = yym2844
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym2844 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym2844 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.SinceTime)
} else {
z.DecFallback(x.SinceTime, false)
}
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Timestamps = false
} else {
x.Timestamps = bool(r.DecodeBool())
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
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)
}
yym2847 := z.DecBinary()
_ = yym2847
if false {
} else {
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
}
}
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
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)
}
yym2849 := z.DecBinary()
_ = yym2849
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
for {
yyj2835++
if yyhl2835 {
yyb2835 = yyj2835 > l
} else {
yyb2835 = r.CheckBreak()
}
if yyb2835 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2835-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 {
yym2850 := z.EncBinary()
_ = yym2850
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2851 := !z.EncBinary()
yy2arr2851 := z.EncBasicHandle().StructToArray
var yyq2851 [7]bool
_, _, _ = yysep2851, yyq2851, yy2arr2851
const yyr2851 bool = false
yyq2851[0] = x.Kind != ""
yyq2851[1] = x.APIVersion != ""
yyq2851[2] = x.Stdin != false
yyq2851[3] = x.Stdout != false
yyq2851[4] = x.Stderr != false
yyq2851[5] = x.TTY != false
yyq2851[6] = x.Container != ""
var yynn2851 int
if yyr2851 || yy2arr2851 {
r.EncodeArrayStart(7)
} else {
yynn2851 = 0
for _, b := range yyq2851 {
if b {
yynn2851++
}
}
r.EncodeMapStart(yynn2851)
yynn2851 = 0
}
if yyr2851 || yy2arr2851 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2851[0] {
yym2853 := z.EncBinary()
_ = yym2853
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2851[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2854 := z.EncBinary()
_ = yym2854
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2851 || yy2arr2851 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2851[1] {
yym2856 := z.EncBinary()
_ = yym2856
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2851[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2857 := z.EncBinary()
_ = yym2857
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2851 || yy2arr2851 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2851[2] {
yym2859 := z.EncBinary()
_ = yym2859
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2851[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2860 := z.EncBinary()
_ = yym2860
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr2851 || yy2arr2851 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2851[3] {
yym2862 := z.EncBinary()
_ = yym2862
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2851[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2863 := z.EncBinary()
_ = yym2863
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
}
if yyr2851 || yy2arr2851 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2851[4] {
yym2865 := z.EncBinary()
_ = yym2865
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2851[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2866 := z.EncBinary()
_ = yym2866
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
}
if yyr2851 || yy2arr2851 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2851[5] {
yym2868 := z.EncBinary()
_ = yym2868
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2851[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2869 := z.EncBinary()
_ = yym2869
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr2851 || yy2arr2851 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2851[6] {
yym2871 := z.EncBinary()
_ = yym2871
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2851[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("container"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2872 := z.EncBinary()
_ = yym2872
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
}
if yyr2851 || yy2arr2851 {
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
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 *PodAttachOptions) 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 "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, yys2875)
} // end switch yys2875
} // end for yyj2875
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 yyj2883 int
var yyb2883 bool
var yyhl2883 bool = l >= 0
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
for {
yyj2883++
if yyhl2883 {
yyb2883 = yyj2883 > l
} else {
yyb2883 = r.CheckBreak()
}
if yyb2883 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2883-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 {
yym2891 := z.EncBinary()
_ = yym2891
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2892 := !z.EncBinary()
yy2arr2892 := z.EncBasicHandle().StructToArray
var yyq2892 [8]bool
_, _, _ = yysep2892, yyq2892, yy2arr2892
const yyr2892 bool = false
yyq2892[0] = x.Kind != ""
yyq2892[1] = x.APIVersion != ""
var yynn2892 int
if yyr2892 || yy2arr2892 {
r.EncodeArrayStart(8)
} else {
yynn2892 = 6
for _, b := range yyq2892 {
if b {
yynn2892++
}
}
r.EncodeMapStart(yynn2892)
yynn2892 = 0
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2892[0] {
yym2894 := z.EncBinary()
_ = yym2894
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2892[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2895 := z.EncBinary()
_ = yym2895
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2892[1] {
yym2897 := z.EncBinary()
_ = yym2897
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2892[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2898 := z.EncBinary()
_ = yym2898
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2900 := z.EncBinary()
_ = yym2900
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2901 := z.EncBinary()
_ = yym2901
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2903 := z.EncBinary()
_ = yym2903
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2904 := z.EncBinary()
_ = yym2904
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2906 := z.EncBinary()
_ = yym2906
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2907 := z.EncBinary()
_ = yym2907
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2909 := z.EncBinary()
_ = yym2909
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2910 := z.EncBinary()
_ = yym2910
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2912 := z.EncBinary()
_ = yym2912
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)
yym2913 := z.EncBinary()
_ = yym2913
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr2892 || yy2arr2892 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym2915 := z.EncBinary()
_ = yym2915
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 {
yym2916 := z.EncBinary()
_ = yym2916
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
if yyr2892 || yy2arr2892 {
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
yym2917 := z.DecBinary()
_ = yym2917
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2918 := r.ContainerType()
if yyct2918 == codecSelferValueTypeMap1234 {
yyl2918 := r.ReadMapStart()
if yyl2918 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2918, d)
}
} else if yyct2918 == codecSelferValueTypeArray1234 {
yyl2918 := r.ReadArrayStart()
if yyl2918 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2918, 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 yys2919Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2919Slc
var yyhl2919 bool = l >= 0
for yyj2919 := 0; ; yyj2919++ {
if yyhl2919 {
if yyj2919 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2919Slc = r.DecodeBytes(yys2919Slc, true, true)
yys2919 := string(yys2919Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2919 {
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 {
yyv2927 := &x.Command
yym2928 := z.DecBinary()
_ = yym2928
if false {
} else {
z.F.DecSliceStringX(yyv2927, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2919)
} // end switch yys2919
} // end for yyj2919
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 yyj2929 int
var yyb2929 bool
var yyhl2929 bool = l >= 0
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv2937 := &x.Command
yym2938 := z.DecBinary()
_ = yym2938
if false {
} else {
z.F.DecSliceStringX(yyv2937, false, d)
}
}
for {
yyj2929++
if yyhl2929 {
yyb2929 = yyj2929 > l
} else {
yyb2929 = r.CheckBreak()
}
if yyb2929 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2929-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 {
yym2939 := z.EncBinary()
_ = yym2939
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2940 := !z.EncBinary()
yy2arr2940 := z.EncBasicHandle().StructToArray
var yyq2940 [3]bool
_, _, _ = yysep2940, yyq2940, yy2arr2940
const yyr2940 bool = false
yyq2940[0] = x.Kind != ""
yyq2940[1] = x.APIVersion != ""
var yynn2940 int
if yyr2940 || yy2arr2940 {
r.EncodeArrayStart(3)
} else {
yynn2940 = 1
for _, b := range yyq2940 {
if b {
yynn2940++
}
}
r.EncodeMapStart(yynn2940)
yynn2940 = 0
}
if yyr2940 || yy2arr2940 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2940[0] {
yym2942 := z.EncBinary()
_ = yym2942
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2940[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2943 := z.EncBinary()
_ = yym2943
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2940 || yy2arr2940 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2940[1] {
yym2945 := z.EncBinary()
_ = yym2945
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2940[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2946 := z.EncBinary()
_ = yym2946
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2940 || yy2arr2940 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2948 := z.EncBinary()
_ = yym2948
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)
yym2949 := z.EncBinary()
_ = yym2949
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr2940 || yy2arr2940 {
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
yym2950 := z.DecBinary()
_ = yym2950
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2951 := r.ContainerType()
if yyct2951 == codecSelferValueTypeMap1234 {
yyl2951 := r.ReadMapStart()
if yyl2951 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2951, d)
}
} else if yyct2951 == codecSelferValueTypeArray1234 {
yyl2951 := r.ReadArrayStart()
if yyl2951 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2951, 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 yys2952Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2952Slc
var yyhl2952 bool = l >= 0
for yyj2952 := 0; ; yyj2952++ {
if yyhl2952 {
if yyj2952 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2952Slc = r.DecodeBytes(yys2952Slc, true, true)
yys2952 := string(yys2952Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2952 {
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, yys2952)
} // end switch yys2952
} // end for yyj2952
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 yyj2956 int
var yyb2956 bool
var yyhl2956 bool = l >= 0
yyj2956++
if yyhl2956 {
yyb2956 = yyj2956 > l
} else {
yyb2956 = r.CheckBreak()
}
if yyb2956 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2956++
if yyhl2956 {
yyb2956 = yyj2956 > l
} else {
yyb2956 = r.CheckBreak()
}
if yyb2956 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2956++
if yyhl2956 {
yyb2956 = yyj2956 > l
} else {
yyb2956 = r.CheckBreak()
}
if yyb2956 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj2956++
if yyhl2956 {
yyb2956 = yyj2956 > l
} else {
yyb2956 = r.CheckBreak()
}
if yyb2956 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2956-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 {
yym2960 := z.EncBinary()
_ = yym2960
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2961 := !z.EncBinary()
yy2arr2961 := z.EncBasicHandle().StructToArray
var yyq2961 [7]bool
_, _, _ = yysep2961, yyq2961, yy2arr2961
const yyr2961 bool = false
yyq2961[0] = x.Kind != ""
yyq2961[1] = x.Namespace != ""
yyq2961[2] = x.Name != ""
yyq2961[3] = x.UID != ""
yyq2961[4] = x.APIVersion != ""
yyq2961[5] = x.ResourceVersion != ""
yyq2961[6] = x.FieldPath != ""
var yynn2961 int
if yyr2961 || yy2arr2961 {
r.EncodeArrayStart(7)
} else {
yynn2961 = 0
for _, b := range yyq2961 {
if b {
yynn2961++
}
}
r.EncodeMapStart(yynn2961)
yynn2961 = 0
}
if yyr2961 || yy2arr2961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2961[0] {
yym2963 := z.EncBinary()
_ = yym2963
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2961[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2964 := z.EncBinary()
_ = yym2964
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2961 || yy2arr2961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2961[1] {
yym2966 := z.EncBinary()
_ = yym2966
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2961[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2967 := z.EncBinary()
_ = yym2967
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr2961 || yy2arr2961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2961[2] {
yym2969 := z.EncBinary()
_ = yym2969
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2961[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2970 := z.EncBinary()
_ = yym2970
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr2961 || yy2arr2961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2961[3] {
yym2972 := z.EncBinary()
_ = yym2972
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 yyq2961[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2973 := z.EncBinary()
_ = yym2973
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr2961 || yy2arr2961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2961[4] {
yym2975 := z.EncBinary()
_ = yym2975
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2961[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2976 := z.EncBinary()
_ = yym2976
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2961 || yy2arr2961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2961[5] {
yym2978 := z.EncBinary()
_ = yym2978
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2961[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2979 := z.EncBinary()
_ = yym2979
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr2961 || yy2arr2961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2961[6] {
yym2981 := z.EncBinary()
_ = yym2981
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2961[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2982 := z.EncBinary()
_ = yym2982
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
}
if yyr2961 || yy2arr2961 {
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
yym2983 := z.DecBinary()
_ = yym2983
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2984 := r.ContainerType()
if yyct2984 == codecSelferValueTypeMap1234 {
yyl2984 := r.ReadMapStart()
if yyl2984 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2984, d)
}
} else if yyct2984 == codecSelferValueTypeArray1234 {
yyl2984 := r.ReadArrayStart()
if yyl2984 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2984, 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 yys2985Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2985Slc
var yyhl2985 bool = l >= 0
for yyj2985 := 0; ; yyj2985++ {
if yyhl2985 {
if yyj2985 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2985Slc = r.DecodeBytes(yys2985Slc, true, true)
yys2985 := string(yys2985Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2985 {
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, yys2985)
} // end switch yys2985
} // end for yyj2985
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 yyj2993 int
var yyb2993 bool
var yyhl2993 bool = l >= 0
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj2993++
if yyhl2993 {
yyb2993 = yyj2993 > l
} else {
yyb2993 = r.CheckBreak()
}
if yyb2993 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2993-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 {
yym3001 := z.EncBinary()
_ = yym3001
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3002 := !z.EncBinary()
yy2arr3002 := z.EncBasicHandle().StructToArray
var yyq3002 [1]bool
_, _, _ = yysep3002, yyq3002, yy2arr3002
const yyr3002 bool = false
var yynn3002 int
if yyr3002 || yy2arr3002 {
r.EncodeArrayStart(1)
} else {
yynn3002 = 1
for _, b := range yyq3002 {
if b {
yynn3002++
}
}
r.EncodeMapStart(yynn3002)
yynn3002 = 0
}
if yyr3002 || yy2arr3002 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3004 := z.EncBinary()
_ = yym3004
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)
yym3005 := z.EncBinary()
_ = yym3005
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3002 || yy2arr3002 {
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
yym3006 := z.DecBinary()
_ = yym3006
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3007 := r.ContainerType()
if yyct3007 == codecSelferValueTypeMap1234 {
yyl3007 := r.ReadMapStart()
if yyl3007 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3007, d)
}
} else if yyct3007 == codecSelferValueTypeArray1234 {
yyl3007 := r.ReadArrayStart()
if yyl3007 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3007, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *LocalObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3008Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3008Slc
var yyhl3008 bool = l >= 0
for yyj3008 := 0; ; yyj3008++ {
if yyhl3008 {
if yyj3008 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3008Slc = r.DecodeBytes(yys3008Slc, true, true)
yys3008 := string(yys3008Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3008 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3008)
} // end switch yys3008
} // end for yyj3008
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 yyj3010 int
var yyb3010 bool
var yyhl3010 bool = l >= 0
yyj3010++
if yyhl3010 {
yyb3010 = yyj3010 > l
} else {
yyb3010 = r.CheckBreak()
}
if yyb3010 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj3010++
if yyhl3010 {
yyb3010 = yyj3010 > l
} else {
yyb3010 = r.CheckBreak()
}
if yyb3010 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3010-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 {
yym3012 := z.EncBinary()
_ = yym3012
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3013 := !z.EncBinary()
yy2arr3013 := z.EncBasicHandle().StructToArray
var yyq3013 [3]bool
_, _, _ = yysep3013, yyq3013, yy2arr3013
const yyr3013 bool = false
yyq3013[0] = x.Kind != ""
yyq3013[1] = x.APIVersion != ""
yyq3013[2] = true
var yynn3013 int
if yyr3013 || yy2arr3013 {
r.EncodeArrayStart(3)
} else {
yynn3013 = 0
for _, b := range yyq3013 {
if b {
yynn3013++
}
}
r.EncodeMapStart(yynn3013)
yynn3013 = 0
}
if yyr3013 || yy2arr3013 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3013[0] {
yym3015 := z.EncBinary()
_ = yym3015
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3013[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3016 := z.EncBinary()
_ = yym3016
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3013 || yy2arr3013 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3013[1] {
yym3018 := z.EncBinary()
_ = yym3018
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3013[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3019 := z.EncBinary()
_ = yym3019
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3013 || yy2arr3013 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3013[2] {
yy3021 := &x.Reference
yy3021.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3013[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3022 := &x.Reference
yy3022.CodecEncodeSelf(e)
}
}
if yyr3013 || yy2arr3013 {
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
yym3023 := z.DecBinary()
_ = yym3023
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3024 := r.ContainerType()
if yyct3024 == codecSelferValueTypeMap1234 {
yyl3024 := r.ReadMapStart()
if yyl3024 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3024, d)
}
} else if yyct3024 == codecSelferValueTypeArray1234 {
yyl3024 := r.ReadArrayStart()
if yyl3024 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3024, 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 yys3025Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3025Slc
var yyhl3025 bool = l >= 0
for yyj3025 := 0; ; yyj3025++ {
if yyhl3025 {
if yyj3025 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3025Slc = r.DecodeBytes(yys3025Slc, true, true)
yys3025 := string(yys3025Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3025 {
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 {
yyv3028 := &x.Reference
yyv3028.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3025)
} // end switch yys3025
} // end for yyj3025
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 yyj3029 int
var yyb3029 bool
var yyhl3029 bool = l >= 0
yyj3029++
if yyhl3029 {
yyb3029 = yyj3029 > l
} else {
yyb3029 = r.CheckBreak()
}
if yyb3029 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3029++
if yyhl3029 {
yyb3029 = yyj3029 > l
} else {
yyb3029 = r.CheckBreak()
}
if yyb3029 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3029++
if yyhl3029 {
yyb3029 = yyj3029 > l
} else {
yyb3029 = r.CheckBreak()
}
if yyb3029 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reference = ObjectReference{}
} else {
yyv3032 := &x.Reference
yyv3032.CodecDecodeSelf(d)
}
for {
yyj3029++
if yyhl3029 {
yyb3029 = yyj3029 > l
} else {
yyb3029 = r.CheckBreak()
}
if yyb3029 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3029-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 {
yym3033 := z.EncBinary()
_ = yym3033
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3034 := !z.EncBinary()
yy2arr3034 := z.EncBasicHandle().StructToArray
var yyq3034 [2]bool
_, _, _ = yysep3034, yyq3034, yy2arr3034
const yyr3034 bool = false
yyq3034[0] = x.Component != ""
yyq3034[1] = x.Host != ""
var yynn3034 int
if yyr3034 || yy2arr3034 {
r.EncodeArrayStart(2)
} else {
yynn3034 = 0
for _, b := range yyq3034 {
if b {
yynn3034++
}
}
r.EncodeMapStart(yynn3034)
yynn3034 = 0
}
if yyr3034 || yy2arr3034 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3034[0] {
yym3036 := z.EncBinary()
_ = yym3036
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3034[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("component"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3037 := z.EncBinary()
_ = yym3037
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
}
}
if yyr3034 || yy2arr3034 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3034[1] {
yym3039 := z.EncBinary()
_ = yym3039
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3034[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3040 := z.EncBinary()
_ = yym3040
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr3034 || yy2arr3034 {
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
yym3041 := z.DecBinary()
_ = yym3041
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3042 := r.ContainerType()
if yyct3042 == codecSelferValueTypeMap1234 {
yyl3042 := r.ReadMapStart()
if yyl3042 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3042, d)
}
} else if yyct3042 == codecSelferValueTypeArray1234 {
yyl3042 := r.ReadArrayStart()
if yyl3042 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3042, 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 yys3043Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3043Slc
var yyhl3043 bool = l >= 0
for yyj3043 := 0; ; yyj3043++ {
if yyhl3043 {
if yyj3043 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3043Slc = r.DecodeBytes(yys3043Slc, true, true)
yys3043 := string(yys3043Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3043 {
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, yys3043)
} // end switch yys3043
} // end for yyj3043
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 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.Component = ""
} else {
x.Component = 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.Host = ""
} else {
x.Host = string(r.DecodeString())
}
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 *Event) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3049 := z.EncBinary()
_ = yym3049
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3050 := !z.EncBinary()
yy2arr3050 := z.EncBasicHandle().StructToArray
var yyq3050 [11]bool
_, _, _ = yysep3050, yyq3050, yy2arr3050
const yyr3050 bool = false
yyq3050[0] = x.Kind != ""
yyq3050[1] = x.APIVersion != ""
yyq3050[2] = true
yyq3050[3] = true
yyq3050[4] = x.Reason != ""
yyq3050[5] = x.Message != ""
yyq3050[6] = true
yyq3050[7] = true
yyq3050[8] = true
yyq3050[9] = x.Count != 0
yyq3050[10] = x.Type != ""
var yynn3050 int
if yyr3050 || yy2arr3050 {
r.EncodeArrayStart(11)
} else {
yynn3050 = 0
for _, b := range yyq3050 {
if b {
yynn3050++
}
}
r.EncodeMapStart(yynn3050)
yynn3050 = 0
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[0] {
yym3052 := z.EncBinary()
_ = yym3052
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3050[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3053 := z.EncBinary()
_ = yym3053
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[1] {
yym3055 := z.EncBinary()
_ = yym3055
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3050[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3056 := z.EncBinary()
_ = yym3056
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[2] {
yy3058 := &x.ObjectMeta
yy3058.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3050[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3059 := &x.ObjectMeta
yy3059.CodecEncodeSelf(e)
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[3] {
yy3061 := &x.InvolvedObject
yy3061.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3050[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3062 := &x.InvolvedObject
yy3062.CodecEncodeSelf(e)
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[4] {
yym3064 := z.EncBinary()
_ = yym3064
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3050[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3065 := z.EncBinary()
_ = yym3065
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[5] {
yym3067 := z.EncBinary()
_ = yym3067
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3050[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3068 := z.EncBinary()
_ = yym3068
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[6] {
yy3070 := &x.Source
yy3070.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3050[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("source"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3071 := &x.Source
yy3071.CodecEncodeSelf(e)
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[7] {
yy3073 := &x.FirstTimestamp
yym3074 := z.EncBinary()
_ = yym3074
if false {
} else if z.HasExtensions() && z.EncExt(yy3073) {
} else if yym3074 {
z.EncBinaryMarshal(yy3073)
} else if !yym3074 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3073)
} else {
z.EncFallback(yy3073)
}
} else {
r.EncodeNil()
}
} else {
if yyq3050[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3075 := &x.FirstTimestamp
yym3076 := z.EncBinary()
_ = yym3076
if false {
} else if z.HasExtensions() && z.EncExt(yy3075) {
} else if yym3076 {
z.EncBinaryMarshal(yy3075)
} else if !yym3076 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3075)
} else {
z.EncFallback(yy3075)
}
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[8] {
yy3078 := &x.LastTimestamp
yym3079 := z.EncBinary()
_ = yym3079
if false {
} else if z.HasExtensions() && z.EncExt(yy3078) {
} else if yym3079 {
z.EncBinaryMarshal(yy3078)
} else if !yym3079 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3078)
} else {
z.EncFallback(yy3078)
}
} else {
r.EncodeNil()
}
} else {
if yyq3050[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3080 := &x.LastTimestamp
yym3081 := z.EncBinary()
_ = yym3081
if false {
} else if z.HasExtensions() && z.EncExt(yy3080) {
} else if yym3081 {
z.EncBinaryMarshal(yy3080)
} else if !yym3081 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3080)
} else {
z.EncFallback(yy3080)
}
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[9] {
yym3083 := z.EncBinary()
_ = yym3083
if false {
} else {
r.EncodeInt(int64(x.Count))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3050[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("count"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3084 := z.EncBinary()
_ = yym3084
if false {
} else {
r.EncodeInt(int64(x.Count))
}
}
}
if yyr3050 || yy2arr3050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3050[10] {
yym3086 := z.EncBinary()
_ = yym3086
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3050[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3087 := z.EncBinary()
_ = yym3087
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3050 || yy2arr3050 {
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
yym3088 := z.DecBinary()
_ = yym3088
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3089 := r.ContainerType()
if yyct3089 == codecSelferValueTypeMap1234 {
yyl3089 := r.ReadMapStart()
if yyl3089 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3089, d)
}
} else if yyct3089 == codecSelferValueTypeArray1234 {
yyl3089 := r.ReadArrayStart()
if yyl3089 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3089, 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 yys3090Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3090Slc
var yyhl3090 bool = l >= 0
for yyj3090 := 0; ; yyj3090++ {
if yyhl3090 {
if yyj3090 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3090Slc = r.DecodeBytes(yys3090Slc, true, true)
yys3090 := string(yys3090Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3090 {
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 {
yyv3093 := &x.ObjectMeta
yyv3093.CodecDecodeSelf(d)
}
case "involvedObject":
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3094 := &x.InvolvedObject
yyv3094.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 {
yyv3097 := &x.Source
yyv3097.CodecDecodeSelf(d)
}
case "firstTimestamp":
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3098 := &x.FirstTimestamp
yym3099 := z.DecBinary()
_ = yym3099
if false {
} else if z.HasExtensions() && z.DecExt(yyv3098) {
} else if yym3099 {
z.DecBinaryUnmarshal(yyv3098)
} else if !yym3099 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3098)
} else {
z.DecFallback(yyv3098, false)
}
}
case "lastTimestamp":
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3100 := &x.LastTimestamp
yym3101 := z.DecBinary()
_ = yym3101
if false {
} else if z.HasExtensions() && z.DecExt(yyv3100) {
} else if yym3101 {
z.DecBinaryUnmarshal(yyv3100)
} else if !yym3101 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3100)
} else {
z.DecFallback(yyv3100, 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, yys3090)
} // end switch yys3090
} // end for yyj3090
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 yyj3104 int
var yyb3104 bool
var yyhl3104 bool = l >= 0
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3107 := &x.ObjectMeta
yyv3107.CodecDecodeSelf(d)
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3108 := &x.InvolvedObject
yyv3108.CodecDecodeSelf(d)
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Source = EventSource{}
} else {
yyv3111 := &x.Source
yyv3111.CodecDecodeSelf(d)
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3112 := &x.FirstTimestamp
yym3113 := z.DecBinary()
_ = yym3113
if false {
} else if z.HasExtensions() && z.DecExt(yyv3112) {
} else if yym3113 {
z.DecBinaryUnmarshal(yyv3112)
} else if !yym3113 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3112)
} else {
z.DecFallback(yyv3112, false)
}
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3114 := &x.LastTimestamp
yym3115 := z.DecBinary()
_ = yym3115
if false {
} else if z.HasExtensions() && z.DecExt(yyv3114) {
} else if yym3115 {
z.DecBinaryUnmarshal(yyv3114)
} else if !yym3115 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3114)
} else {
z.DecFallback(yyv3114, false)
}
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
for {
yyj3104++
if yyhl3104 {
yyb3104 = yyj3104 > l
} else {
yyb3104 = r.CheckBreak()
}
if yyb3104 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3104-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 {
yym3118 := z.EncBinary()
_ = yym3118
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3119 := !z.EncBinary()
yy2arr3119 := z.EncBasicHandle().StructToArray
var yyq3119 [4]bool
_, _, _ = yysep3119, yyq3119, yy2arr3119
const yyr3119 bool = false
yyq3119[0] = x.Kind != ""
yyq3119[1] = x.APIVersion != ""
yyq3119[2] = true
var yynn3119 int
if yyr3119 || yy2arr3119 {
r.EncodeArrayStart(4)
} else {
yynn3119 = 1
for _, b := range yyq3119 {
if b {
yynn3119++
}
}
r.EncodeMapStart(yynn3119)
yynn3119 = 0
}
if yyr3119 || yy2arr3119 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3119[0] {
yym3121 := z.EncBinary()
_ = yym3121
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3119[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3122 := z.EncBinary()
_ = yym3122
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3119 || yy2arr3119 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3119[1] {
yym3124 := z.EncBinary()
_ = yym3124
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3119[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3125 := z.EncBinary()
_ = yym3125
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3119 || yy2arr3119 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3119[2] {
yy3127 := &x.ListMeta
yym3128 := z.EncBinary()
_ = yym3128
if false {
} else if z.HasExtensions() && z.EncExt(yy3127) {
} else {
z.EncFallback(yy3127)
}
} else {
r.EncodeNil()
}
} else {
if yyq3119[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3129 := &x.ListMeta
yym3130 := z.EncBinary()
_ = yym3130
if false {
} else if z.HasExtensions() && z.EncExt(yy3129) {
} else {
z.EncFallback(yy3129)
}
}
}
if yyr3119 || yy2arr3119 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3132 := z.EncBinary()
_ = yym3132
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 {
yym3133 := z.EncBinary()
_ = yym3133
if false {
} else {
h.encSliceEvent(([]Event)(x.Items), e)
}
}
}
if yyr3119 || yy2arr3119 {
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
yym3134 := z.DecBinary()
_ = yym3134
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3135 := r.ContainerType()
if yyct3135 == codecSelferValueTypeMap1234 {
yyl3135 := r.ReadMapStart()
if yyl3135 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3135, d)
}
} else if yyct3135 == codecSelferValueTypeArray1234 {
yyl3135 := r.ReadArrayStart()
if yyl3135 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3135, 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 yys3136Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3136Slc
var yyhl3136 bool = l >= 0
for yyj3136 := 0; ; yyj3136++ {
if yyhl3136 {
if yyj3136 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3136Slc = r.DecodeBytes(yys3136Slc, true, true)
yys3136 := string(yys3136Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3136 {
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 {
yyv3139 := &x.ListMeta
yym3140 := z.DecBinary()
_ = yym3140
if false {
} else if z.HasExtensions() && z.DecExt(yyv3139) {
} else {
z.DecFallback(yyv3139, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3141 := &x.Items
yym3142 := z.DecBinary()
_ = yym3142
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3141), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3136)
} // end switch yys3136
} // end for yyj3136
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 yyj3143 int
var yyb3143 bool
var yyhl3143 bool = l >= 0
yyj3143++
if yyhl3143 {
yyb3143 = yyj3143 > l
} else {
yyb3143 = r.CheckBreak()
}
if yyb3143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3143++
if yyhl3143 {
yyb3143 = yyj3143 > l
} else {
yyb3143 = r.CheckBreak()
}
if yyb3143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3143++
if yyhl3143 {
yyb3143 = yyj3143 > l
} else {
yyb3143 = r.CheckBreak()
}
if yyb3143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3146 := &x.ListMeta
yym3147 := z.DecBinary()
_ = yym3147
if false {
} else if z.HasExtensions() && z.DecExt(yyv3146) {
} else {
z.DecFallback(yyv3146, false)
}
}
yyj3143++
if yyhl3143 {
yyb3143 = yyj3143 > l
} else {
yyb3143 = r.CheckBreak()
}
if yyb3143 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3148 := &x.Items
yym3149 := z.DecBinary()
_ = yym3149
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3148), d)
}
}
for {
yyj3143++
if yyhl3143 {
yyb3143 = yyj3143 > l
} else {
yyb3143 = r.CheckBreak()
}
if yyb3143 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3143-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *List) 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 [4]bool
_, _, _ = yysep3151, yyq3151, yy2arr3151
const yyr3151 bool = false
yyq3151[0] = x.Kind != ""
yyq3151[1] = x.APIVersion != ""
yyq3151[2] = true
var yynn3151 int
if yyr3151 || yy2arr3151 {
r.EncodeArrayStart(4)
} else {
yynn3151 = 1
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.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3151[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3154 := z.EncBinary()
_ = yym3154
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[1] {
yym3156 := z.EncBinary()
_ = yym3156
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3151[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3157 := z.EncBinary()
_ = yym3157
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[2] {
yy3159 := &x.ListMeta
yym3160 := z.EncBinary()
_ = yym3160
if false {
} else if z.HasExtensions() && z.EncExt(yy3159) {
} else {
z.EncFallback(yy3159)
}
} else {
r.EncodeNil()
}
} else {
if yyq3151[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3161 := &x.ListMeta
yym3162 := z.EncBinary()
_ = yym3162
if false {
} else if z.HasExtensions() && z.EncExt(yy3161) {
} else {
z.EncFallback(yy3161)
}
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3164 := z.EncBinary()
_ = yym3164
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 {
yym3165 := z.EncBinary()
_ = yym3165
if false {
} else {
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
}
}
}
if yyr3151 || yy2arr3151 {
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
yym3166 := z.DecBinary()
_ = yym3166
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3167 := r.ContainerType()
if yyct3167 == codecSelferValueTypeMap1234 {
yyl3167 := r.ReadMapStart()
if yyl3167 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3167, d)
}
} else if yyct3167 == codecSelferValueTypeArray1234 {
yyl3167 := r.ReadArrayStart()
if yyl3167 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3167, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *List) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3168Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3168Slc
var yyhl3168 bool = l >= 0
for yyj3168 := 0; ; yyj3168++ {
if yyhl3168 {
if yyj3168 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3168Slc = r.DecodeBytes(yys3168Slc, true, true)
yys3168 := string(yys3168Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3168 {
case "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 {
yyv3171 := &x.ListMeta
yym3172 := z.DecBinary()
_ = yym3172
if false {
} else if z.HasExtensions() && z.DecExt(yyv3171) {
} else {
z.DecFallback(yyv3171, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3173 := &x.Items
yym3174 := z.DecBinary()
_ = yym3174
if false {
} else {
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3173), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3168)
} // end switch yys3168
} // end for yyj3168
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 yyj3175 int
var yyb3175 bool
var yyhl3175 bool = l >= 0
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3178 := &x.ListMeta
yym3179 := z.DecBinary()
_ = yym3179
if false {
} else if z.HasExtensions() && z.DecExt(yyv3178) {
} else {
z.DecFallback(yyv3178, false)
}
}
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3180 := &x.Items
yym3181 := z.DecBinary()
_ = yym3181
if false {
} else {
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3180), d)
}
}
for {
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3175-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3182 := z.EncBinary()
_ = yym3182
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
yym3183 := z.DecBinary()
_ = yym3183
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 {
yym3184 := z.EncBinary()
_ = yym3184
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3185 := !z.EncBinary()
yy2arr3185 := z.EncBasicHandle().StructToArray
var yyq3185 [6]bool
_, _, _ = yysep3185, yyq3185, yy2arr3185
const yyr3185 bool = false
yyq3185[0] = x.Type != ""
yyq3185[1] = len(x.Max) != 0
yyq3185[2] = len(x.Min) != 0
yyq3185[3] = len(x.Default) != 0
yyq3185[4] = len(x.DefaultRequest) != 0
yyq3185[5] = len(x.MaxLimitRequestRatio) != 0
var yynn3185 int
if yyr3185 || yy2arr3185 {
r.EncodeArrayStart(6)
} else {
yynn3185 = 0
for _, b := range yyq3185 {
if b {
yynn3185++
}
}
r.EncodeMapStart(yynn3185)
yynn3185 = 0
}
if yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3185[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[1] {
if x.Max == nil {
r.EncodeNil()
} else {
x.Max.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3185[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 yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[2] {
if x.Min == nil {
r.EncodeNil()
} else {
x.Min.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3185[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 yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[3] {
if x.Default == nil {
r.EncodeNil()
} else {
x.Default.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3185[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 yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[4] {
if x.DefaultRequest == nil {
r.EncodeNil()
} else {
x.DefaultRequest.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3185[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 yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[5] {
if x.MaxLimitRequestRatio == nil {
r.EncodeNil()
} else {
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3185[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 yyr3185 || yy2arr3185 {
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
yym3192 := z.DecBinary()
_ = yym3192
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3193 := r.ContainerType()
if yyct3193 == codecSelferValueTypeMap1234 {
yyl3193 := r.ReadMapStart()
if yyl3193 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3193, d)
}
} else if yyct3193 == codecSelferValueTypeArray1234 {
yyl3193 := r.ReadArrayStart()
if yyl3193 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3193, 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 yys3194Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3194Slc
var yyhl3194 bool = l >= 0
for yyj3194 := 0; ; yyj3194++ {
if yyhl3194 {
if yyj3194 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3194Slc = r.DecodeBytes(yys3194Slc, true, true)
yys3194 := string(yys3194Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3194 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
case "max":
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3196 := &x.Max
yyv3196.CodecDecodeSelf(d)
}
case "min":
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3197 := &x.Min
yyv3197.CodecDecodeSelf(d)
}
case "default":
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3198 := &x.Default
yyv3198.CodecDecodeSelf(d)
}
case "defaultRequest":
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3199 := &x.DefaultRequest
yyv3199.CodecDecodeSelf(d)
}
case "maxLimitRequestRatio":
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3200 := &x.MaxLimitRequestRatio
yyv3200.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3194)
} // end switch yys3194
} // end for yyj3194
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 yyj3201 int
var yyb3201 bool
var yyhl3201 bool = l >= 0
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3203 := &x.Max
yyv3203.CodecDecodeSelf(d)
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3204 := &x.Min
yyv3204.CodecDecodeSelf(d)
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3205 := &x.Default
yyv3205.CodecDecodeSelf(d)
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3206 := &x.DefaultRequest
yyv3206.CodecDecodeSelf(d)
}
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3207 := &x.MaxLimitRequestRatio
yyv3207.CodecDecodeSelf(d)
}
for {
yyj3201++
if yyhl3201 {
yyb3201 = yyj3201 > l
} else {
yyb3201 = r.CheckBreak()
}
if yyb3201 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3201-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 {
yym3208 := z.EncBinary()
_ = yym3208
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3209 := !z.EncBinary()
yy2arr3209 := z.EncBasicHandle().StructToArray
var yyq3209 [1]bool
_, _, _ = yysep3209, yyq3209, yy2arr3209
const yyr3209 bool = false
var yynn3209 int
if yyr3209 || yy2arr3209 {
r.EncodeArrayStart(1)
} else {
yynn3209 = 1
for _, b := range yyq3209 {
if b {
yynn3209++
}
}
r.EncodeMapStart(yynn3209)
yynn3209 = 0
}
if yyr3209 || yy2arr3209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Limits == nil {
r.EncodeNil()
} else {
yym3211 := z.EncBinary()
_ = yym3211
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 {
yym3212 := z.EncBinary()
_ = yym3212
if false {
} else {
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
}
}
}
if yyr3209 || yy2arr3209 {
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
yym3213 := z.DecBinary()
_ = yym3213
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3214 := r.ContainerType()
if yyct3214 == codecSelferValueTypeMap1234 {
yyl3214 := r.ReadMapStart()
if yyl3214 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3214, d)
}
} else if yyct3214 == codecSelferValueTypeArray1234 {
yyl3214 := r.ReadArrayStart()
if yyl3214 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3214, 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 yys3215Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3215Slc
var yyhl3215 bool = l >= 0
for yyj3215 := 0; ; yyj3215++ {
if yyhl3215 {
if yyj3215 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3215Slc = r.DecodeBytes(yys3215Slc, true, true)
yys3215 := string(yys3215Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3215 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3216 := &x.Limits
yym3217 := z.DecBinary()
_ = yym3217
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3216), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3215)
} // end switch yys3215
} // end for yyj3215
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 yyj3218 int
var yyb3218 bool
var yyhl3218 bool = l >= 0
yyj3218++
if yyhl3218 {
yyb3218 = yyj3218 > l
} else {
yyb3218 = r.CheckBreak()
}
if yyb3218 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3219 := &x.Limits
yym3220 := z.DecBinary()
_ = yym3220
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3219), d)
}
}
for {
yyj3218++
if yyhl3218 {
yyb3218 = yyj3218 > l
} else {
yyb3218 = r.CheckBreak()
}
if yyb3218 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3218-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 {
yym3221 := z.EncBinary()
_ = yym3221
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3222 := !z.EncBinary()
yy2arr3222 := z.EncBasicHandle().StructToArray
var yyq3222 [4]bool
_, _, _ = yysep3222, yyq3222, yy2arr3222
const yyr3222 bool = false
yyq3222[0] = x.Kind != ""
yyq3222[1] = x.APIVersion != ""
yyq3222[2] = true
yyq3222[3] = true
var yynn3222 int
if yyr3222 || yy2arr3222 {
r.EncodeArrayStart(4)
} else {
yynn3222 = 0
for _, b := range yyq3222 {
if b {
yynn3222++
}
}
r.EncodeMapStart(yynn3222)
yynn3222 = 0
}
if yyr3222 || yy2arr3222 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3222[0] {
yym3224 := z.EncBinary()
_ = yym3224
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3222[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3225 := z.EncBinary()
_ = yym3225
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3222 || yy2arr3222 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3222[1] {
yym3227 := z.EncBinary()
_ = yym3227
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3222[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3228 := z.EncBinary()
_ = yym3228
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3222 || yy2arr3222 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3222[2] {
yy3230 := &x.ObjectMeta
yy3230.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3222[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3231 := &x.ObjectMeta
yy3231.CodecEncodeSelf(e)
}
}
if yyr3222 || yy2arr3222 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3222[3] {
yy3233 := &x.Spec
yy3233.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3222[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3234 := &x.Spec
yy3234.CodecEncodeSelf(e)
}
}
if yyr3222 || yy2arr3222 {
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
yym3235 := z.DecBinary()
_ = yym3235
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3236 := r.ContainerType()
if yyct3236 == codecSelferValueTypeMap1234 {
yyl3236 := r.ReadMapStart()
if yyl3236 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3236, d)
}
} else if yyct3236 == codecSelferValueTypeArray1234 {
yyl3236 := r.ReadArrayStart()
if yyl3236 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3236, 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 yys3237Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3237Slc
var yyhl3237 bool = l >= 0
for yyj3237 := 0; ; yyj3237++ {
if yyhl3237 {
if yyj3237 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3237Slc = r.DecodeBytes(yys3237Slc, true, true)
yys3237 := string(yys3237Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3237 {
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 {
yyv3240 := &x.ObjectMeta
yyv3240.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3241 := &x.Spec
yyv3241.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3237)
} // end switch yys3237
} // end for yyj3237
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 yyj3242 int
var yyb3242 bool
var yyhl3242 bool = l >= 0
yyj3242++
if yyhl3242 {
yyb3242 = yyj3242 > l
} else {
yyb3242 = r.CheckBreak()
}
if yyb3242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3242++
if yyhl3242 {
yyb3242 = yyj3242 > l
} else {
yyb3242 = r.CheckBreak()
}
if yyb3242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3242++
if yyhl3242 {
yyb3242 = yyj3242 > l
} else {
yyb3242 = r.CheckBreak()
}
if yyb3242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3245 := &x.ObjectMeta
yyv3245.CodecDecodeSelf(d)
}
yyj3242++
if yyhl3242 {
yyb3242 = yyj3242 > l
} else {
yyb3242 = r.CheckBreak()
}
if yyb3242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3246 := &x.Spec
yyv3246.CodecDecodeSelf(d)
}
for {
yyj3242++
if yyhl3242 {
yyb3242 = yyj3242 > l
} else {
yyb3242 = r.CheckBreak()
}
if yyb3242 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3242-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3247 := z.EncBinary()
_ = yym3247
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3248 := !z.EncBinary()
yy2arr3248 := z.EncBasicHandle().StructToArray
var yyq3248 [4]bool
_, _, _ = yysep3248, yyq3248, yy2arr3248
const yyr3248 bool = false
yyq3248[0] = x.Kind != ""
yyq3248[1] = x.APIVersion != ""
yyq3248[2] = true
var yynn3248 int
if yyr3248 || yy2arr3248 {
r.EncodeArrayStart(4)
} else {
yynn3248 = 1
for _, b := range yyq3248 {
if b {
yynn3248++
}
}
r.EncodeMapStart(yynn3248)
yynn3248 = 0
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[0] {
yym3250 := z.EncBinary()
_ = yym3250
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3248[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3251 := z.EncBinary()
_ = yym3251
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[1] {
yym3253 := z.EncBinary()
_ = yym3253
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3248[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3254 := z.EncBinary()
_ = yym3254
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[2] {
yy3256 := &x.ListMeta
yym3257 := z.EncBinary()
_ = yym3257
if false {
} else if z.HasExtensions() && z.EncExt(yy3256) {
} else {
z.EncFallback(yy3256)
}
} else {
r.EncodeNil()
}
} else {
if yyq3248[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3258 := &x.ListMeta
yym3259 := z.EncBinary()
_ = yym3259
if false {
} else if z.HasExtensions() && z.EncExt(yy3258) {
} else {
z.EncFallback(yy3258)
}
}
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3261 := z.EncBinary()
_ = yym3261
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 {
yym3262 := z.EncBinary()
_ = yym3262
if false {
} else {
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
}
}
}
if yyr3248 || yy2arr3248 {
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
yym3263 := z.DecBinary()
_ = yym3263
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3264 := r.ContainerType()
if yyct3264 == codecSelferValueTypeMap1234 {
yyl3264 := r.ReadMapStart()
if yyl3264 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3264, d)
}
} else if yyct3264 == codecSelferValueTypeArray1234 {
yyl3264 := r.ReadArrayStart()
if yyl3264 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3264, 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 yys3265Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3265Slc
var yyhl3265 bool = l >= 0
for yyj3265 := 0; ; yyj3265++ {
if yyhl3265 {
if yyj3265 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3265Slc = r.DecodeBytes(yys3265Slc, true, true)
yys3265 := string(yys3265Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3265 {
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 {
yyv3268 := &x.ListMeta
yym3269 := z.DecBinary()
_ = yym3269
if false {
} else if z.HasExtensions() && z.DecExt(yyv3268) {
} else {
z.DecFallback(yyv3268, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3270 := &x.Items
yym3271 := z.DecBinary()
_ = yym3271
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv3270), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3265)
} // end switch yys3265
} // end for yyj3265
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 yyj3272 int
var yyb3272 bool
var yyhl3272 bool = l >= 0
yyj3272++
if yyhl3272 {
yyb3272 = yyj3272 > l
} else {
yyb3272 = r.CheckBreak()
}
if yyb3272 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3272++
if yyhl3272 {
yyb3272 = yyj3272 > l
} else {
yyb3272 = r.CheckBreak()
}
if yyb3272 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3272++
if yyhl3272 {
yyb3272 = yyj3272 > l
} else {
yyb3272 = r.CheckBreak()
}
if yyb3272 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3275 := &x.ListMeta
yym3276 := z.DecBinary()
_ = yym3276
if false {
} else if z.HasExtensions() && z.DecExt(yyv3275) {
} else {
z.DecFallback(yyv3275, false)
}
}
yyj3272++
if yyhl3272 {
yyb3272 = yyj3272 > l
} else {
yyb3272 = r.CheckBreak()
}
if yyb3272 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3277 := &x.Items
yym3278 := z.DecBinary()
_ = yym3278
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv3277), d)
}
}
for {
yyj3272++
if yyhl3272 {
yyb3272 = yyj3272 > l
} else {
yyb3272 = r.CheckBreak()
}
if yyb3272 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3272-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 {
yym3279 := z.EncBinary()
_ = yym3279
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3280 := !z.EncBinary()
yy2arr3280 := z.EncBasicHandle().StructToArray
var yyq3280 [1]bool
_, _, _ = yysep3280, yyq3280, yy2arr3280
const yyr3280 bool = false
yyq3280[0] = len(x.Hard) != 0
var yynn3280 int
if yyr3280 || yy2arr3280 {
r.EncodeArrayStart(1)
} else {
yynn3280 = 0
for _, b := range yyq3280 {
if b {
yynn3280++
}
}
r.EncodeMapStart(yynn3280)
yynn3280 = 0
}
if yyr3280 || yy2arr3280 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3280[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3280[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 yyr3280 || yy2arr3280 {
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
yym3282 := z.DecBinary()
_ = yym3282
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3283 := r.ContainerType()
if yyct3283 == codecSelferValueTypeMap1234 {
yyl3283 := r.ReadMapStart()
if yyl3283 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3283, d)
}
} else if yyct3283 == codecSelferValueTypeArray1234 {
yyl3283 := r.ReadArrayStart()
if yyl3283 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3283, 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 yys3284Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3284Slc
var yyhl3284 bool = l >= 0
for yyj3284 := 0; ; yyj3284++ {
if yyhl3284 {
if yyj3284 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3284Slc = r.DecodeBytes(yys3284Slc, true, true)
yys3284 := string(yys3284Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3284 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3285 := &x.Hard
yyv3285.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3284)
} // end switch yys3284
} // end for yyj3284
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 yyj3286 int
var yyb3286 bool
var yyhl3286 bool = l >= 0
yyj3286++
if yyhl3286 {
yyb3286 = yyj3286 > l
} else {
yyb3286 = r.CheckBreak()
}
if yyb3286 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3287 := &x.Hard
yyv3287.CodecDecodeSelf(d)
}
for {
yyj3286++
if yyhl3286 {
yyb3286 = yyj3286 > l
} else {
yyb3286 = r.CheckBreak()
}
if yyb3286 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3286-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 {
yym3288 := z.EncBinary()
_ = yym3288
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3289 := !z.EncBinary()
yy2arr3289 := z.EncBasicHandle().StructToArray
var yyq3289 [2]bool
_, _, _ = yysep3289, yyq3289, yy2arr3289
const yyr3289 bool = false
yyq3289[0] = len(x.Hard) != 0
yyq3289[1] = len(x.Used) != 0
var yynn3289 int
if yyr3289 || yy2arr3289 {
r.EncodeArrayStart(2)
} else {
yynn3289 = 0
for _, b := range yyq3289 {
if b {
yynn3289++
}
}
r.EncodeMapStart(yynn3289)
yynn3289 = 0
}
if yyr3289 || yy2arr3289 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3289[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3289[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 yyr3289 || yy2arr3289 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3289[1] {
if x.Used == nil {
r.EncodeNil()
} else {
x.Used.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3289[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 yyr3289 || yy2arr3289 {
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
yym3292 := z.DecBinary()
_ = yym3292
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3293 := r.ContainerType()
if yyct3293 == codecSelferValueTypeMap1234 {
yyl3293 := r.ReadMapStart()
if yyl3293 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3293, d)
}
} else if yyct3293 == codecSelferValueTypeArray1234 {
yyl3293 := r.ReadArrayStart()
if yyl3293 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3293, 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 yys3294Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3294Slc
var yyhl3294 bool = l >= 0
for yyj3294 := 0; ; yyj3294++ {
if yyhl3294 {
if yyj3294 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3294Slc = r.DecodeBytes(yys3294Slc, true, true)
yys3294 := string(yys3294Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3294 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3295 := &x.Hard
yyv3295.CodecDecodeSelf(d)
}
case "used":
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv3296 := &x.Used
yyv3296.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3294)
} // end switch yys3294
} // end for yyj3294
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 yyj3297 int
var yyb3297 bool
var yyhl3297 bool = l >= 0
yyj3297++
if yyhl3297 {
yyb3297 = yyj3297 > l
} else {
yyb3297 = r.CheckBreak()
}
if yyb3297 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3298 := &x.Hard
yyv3298.CodecDecodeSelf(d)
}
yyj3297++
if yyhl3297 {
yyb3297 = yyj3297 > l
} else {
yyb3297 = r.CheckBreak()
}
if yyb3297 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv3299 := &x.Used
yyv3299.CodecDecodeSelf(d)
}
for {
yyj3297++
if yyhl3297 {
yyb3297 = yyj3297 > l
} else {
yyb3297 = r.CheckBreak()
}
if yyb3297 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3297-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 {
yym3300 := z.EncBinary()
_ = yym3300
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3301 := !z.EncBinary()
yy2arr3301 := z.EncBasicHandle().StructToArray
var yyq3301 [5]bool
_, _, _ = yysep3301, yyq3301, yy2arr3301
const yyr3301 bool = false
yyq3301[0] = x.Kind != ""
yyq3301[1] = x.APIVersion != ""
yyq3301[2] = true
yyq3301[3] = true
yyq3301[4] = true
var yynn3301 int
if yyr3301 || yy2arr3301 {
r.EncodeArrayStart(5)
} else {
yynn3301 = 0
for _, b := range yyq3301 {
if b {
yynn3301++
}
}
r.EncodeMapStart(yynn3301)
yynn3301 = 0
}
if yyr3301 || yy2arr3301 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3301[0] {
yym3303 := z.EncBinary()
_ = yym3303
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3301[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3304 := z.EncBinary()
_ = yym3304
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3301 || yy2arr3301 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3301[1] {
yym3306 := z.EncBinary()
_ = yym3306
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3301[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3307 := z.EncBinary()
_ = yym3307
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3301 || yy2arr3301 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3301[2] {
yy3309 := &x.ObjectMeta
yy3309.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3301[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3310 := &x.ObjectMeta
yy3310.CodecEncodeSelf(e)
}
}
if yyr3301 || yy2arr3301 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3301[3] {
yy3312 := &x.Spec
yy3312.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3301[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3313 := &x.Spec
yy3313.CodecEncodeSelf(e)
}
}
if yyr3301 || yy2arr3301 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3301[4] {
yy3315 := &x.Status
yy3315.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3301[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3316 := &x.Status
yy3316.CodecEncodeSelf(e)
}
}
if yyr3301 || yy2arr3301 {
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
yym3317 := z.DecBinary()
_ = yym3317
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3318 := r.ContainerType()
if yyct3318 == codecSelferValueTypeMap1234 {
yyl3318 := r.ReadMapStart()
if yyl3318 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3318, d)
}
} else if yyct3318 == codecSelferValueTypeArray1234 {
yyl3318 := r.ReadArrayStart()
if yyl3318 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3318, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ResourceQuota) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3319Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3319Slc
var yyhl3319 bool = l >= 0
for yyj3319 := 0; ; yyj3319++ {
if yyhl3319 {
if yyj3319 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3319Slc = r.DecodeBytes(yys3319Slc, true, true)
yys3319 := string(yys3319Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3319 {
case "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 {
yyv3322 := &x.ObjectMeta
yyv3322.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv3323 := &x.Spec
yyv3323.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv3324 := &x.Status
yyv3324.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3319)
} // end switch yys3319
} // end for yyj3319
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 yyj3325 int
var yyb3325 bool
var yyhl3325 bool = l >= 0
yyj3325++
if yyhl3325 {
yyb3325 = yyj3325 > l
} else {
yyb3325 = r.CheckBreak()
}
if yyb3325 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3325++
if yyhl3325 {
yyb3325 = yyj3325 > l
} else {
yyb3325 = r.CheckBreak()
}
if yyb3325 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3325++
if yyhl3325 {
yyb3325 = yyj3325 > l
} else {
yyb3325 = r.CheckBreak()
}
if yyb3325 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3328 := &x.ObjectMeta
yyv3328.CodecDecodeSelf(d)
}
yyj3325++
if yyhl3325 {
yyb3325 = yyj3325 > l
} else {
yyb3325 = r.CheckBreak()
}
if yyb3325 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv3329 := &x.Spec
yyv3329.CodecDecodeSelf(d)
}
yyj3325++
if yyhl3325 {
yyb3325 = yyj3325 > l
} else {
yyb3325 = r.CheckBreak()
}
if yyb3325 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv3330 := &x.Status
yyv3330.CodecDecodeSelf(d)
}
for {
yyj3325++
if yyhl3325 {
yyb3325 = yyj3325 > l
} else {
yyb3325 = r.CheckBreak()
}
if yyb3325 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3325-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 {
yym3331 := z.EncBinary()
_ = yym3331
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3332 := !z.EncBinary()
yy2arr3332 := z.EncBasicHandle().StructToArray
var yyq3332 [4]bool
_, _, _ = yysep3332, yyq3332, yy2arr3332
const yyr3332 bool = false
yyq3332[0] = x.Kind != ""
yyq3332[1] = x.APIVersion != ""
yyq3332[2] = true
var yynn3332 int
if yyr3332 || yy2arr3332 {
r.EncodeArrayStart(4)
} else {
yynn3332 = 1
for _, b := range yyq3332 {
if b {
yynn3332++
}
}
r.EncodeMapStart(yynn3332)
yynn3332 = 0
}
if yyr3332 || yy2arr3332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3332[0] {
yym3334 := z.EncBinary()
_ = yym3334
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3332[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3335 := z.EncBinary()
_ = yym3335
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3332 || yy2arr3332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3332[1] {
yym3337 := z.EncBinary()
_ = yym3337
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3332[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3338 := z.EncBinary()
_ = yym3338
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3332 || yy2arr3332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3332[2] {
yy3340 := &x.ListMeta
yym3341 := z.EncBinary()
_ = yym3341
if false {
} else if z.HasExtensions() && z.EncExt(yy3340) {
} else {
z.EncFallback(yy3340)
}
} else {
r.EncodeNil()
}
} else {
if yyq3332[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3342 := &x.ListMeta
yym3343 := z.EncBinary()
_ = yym3343
if false {
} else if z.HasExtensions() && z.EncExt(yy3342) {
} else {
z.EncFallback(yy3342)
}
}
}
if yyr3332 || yy2arr3332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3345 := z.EncBinary()
_ = yym3345
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 {
yym3346 := z.EncBinary()
_ = yym3346
if false {
} else {
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
}
}
}
if yyr3332 || yy2arr3332 {
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
yym3347 := z.DecBinary()
_ = yym3347
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3348 := r.ContainerType()
if yyct3348 == codecSelferValueTypeMap1234 {
yyl3348 := r.ReadMapStart()
if yyl3348 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3348, d)
}
} else if yyct3348 == codecSelferValueTypeArray1234 {
yyl3348 := r.ReadArrayStart()
if yyl3348 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3348, 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 yys3349Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3349Slc
var yyhl3349 bool = l >= 0
for yyj3349 := 0; ; yyj3349++ {
if yyhl3349 {
if yyj3349 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3349Slc = r.DecodeBytes(yys3349Slc, true, true)
yys3349 := string(yys3349Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3349 {
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 {
yyv3352 := &x.ListMeta
yym3353 := z.DecBinary()
_ = yym3353
if false {
} else if z.HasExtensions() && z.DecExt(yyv3352) {
} else {
z.DecFallback(yyv3352, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3354 := &x.Items
yym3355 := z.DecBinary()
_ = yym3355
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3354), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3349)
} // end switch yys3349
} // end for yyj3349
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 yyj3356 int
var yyb3356 bool
var yyhl3356 bool = l >= 0
yyj3356++
if yyhl3356 {
yyb3356 = yyj3356 > l
} else {
yyb3356 = r.CheckBreak()
}
if yyb3356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3356++
if yyhl3356 {
yyb3356 = yyj3356 > l
} else {
yyb3356 = r.CheckBreak()
}
if yyb3356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3356++
if yyhl3356 {
yyb3356 = yyj3356 > l
} else {
yyb3356 = r.CheckBreak()
}
if yyb3356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3359 := &x.ListMeta
yym3360 := z.DecBinary()
_ = yym3360
if false {
} else if z.HasExtensions() && z.DecExt(yyv3359) {
} else {
z.DecFallback(yyv3359, false)
}
}
yyj3356++
if yyhl3356 {
yyb3356 = yyj3356 > l
} else {
yyb3356 = r.CheckBreak()
}
if yyb3356 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3361 := &x.Items
yym3362 := z.DecBinary()
_ = yym3362
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3361), d)
}
}
for {
yyj3356++
if yyhl3356 {
yyb3356 = yyj3356 > l
} else {
yyb3356 = r.CheckBreak()
}
if yyb3356 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3356-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 {
yym3363 := z.EncBinary()
_ = yym3363
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3364 := !z.EncBinary()
yy2arr3364 := z.EncBasicHandle().StructToArray
var yyq3364 [5]bool
_, _, _ = yysep3364, yyq3364, yy2arr3364
const yyr3364 bool = false
yyq3364[0] = x.Kind != ""
yyq3364[1] = x.APIVersion != ""
yyq3364[2] = true
yyq3364[3] = len(x.Data) != 0
yyq3364[4] = x.Type != ""
var yynn3364 int
if yyr3364 || yy2arr3364 {
r.EncodeArrayStart(5)
} else {
yynn3364 = 0
for _, b := range yyq3364 {
if b {
yynn3364++
}
}
r.EncodeMapStart(yynn3364)
yynn3364 = 0
}
if yyr3364 || yy2arr3364 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3364[0] {
yym3366 := z.EncBinary()
_ = yym3366
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3364[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3367 := z.EncBinary()
_ = yym3367
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3364 || yy2arr3364 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3364[1] {
yym3369 := z.EncBinary()
_ = yym3369
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3364[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3370 := z.EncBinary()
_ = yym3370
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3364 || yy2arr3364 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3364[2] {
yy3372 := &x.ObjectMeta
yy3372.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3364[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3373 := &x.ObjectMeta
yy3373.CodecEncodeSelf(e)
}
}
if yyr3364 || yy2arr3364 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3364[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym3375 := z.EncBinary()
_ = yym3375
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3364[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym3376 := z.EncBinary()
_ = yym3376
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
}
}
if yyr3364 || yy2arr3364 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3364[4] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3364[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3364 || yy2arr3364 {
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
yym3378 := z.DecBinary()
_ = yym3378
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3379 := r.ContainerType()
if yyct3379 == codecSelferValueTypeMap1234 {
yyl3379 := r.ReadMapStart()
if yyl3379 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3379, d)
}
} else if yyct3379 == codecSelferValueTypeArray1234 {
yyl3379 := r.ReadArrayStart()
if yyl3379 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3379, 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 yys3380Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3380Slc
var yyhl3380 bool = l >= 0
for yyj3380 := 0; ; yyj3380++ {
if yyhl3380 {
if yyj3380 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3380Slc = r.DecodeBytes(yys3380Slc, true, true)
yys3380 := string(yys3380Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3380 {
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 {
yyv3383 := &x.ObjectMeta
yyv3383.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3384 := &x.Data
yym3385 := z.DecBinary()
_ = yym3385
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3384), d)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3380)
} // end switch yys3380
} // end for yyj3380
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 yyj3387 int
var yyb3387 bool
var yyhl3387 bool = l >= 0
yyj3387++
if yyhl3387 {
yyb3387 = yyj3387 > l
} else {
yyb3387 = r.CheckBreak()
}
if yyb3387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3387++
if yyhl3387 {
yyb3387 = yyj3387 > l
} else {
yyb3387 = r.CheckBreak()
}
if yyb3387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3387++
if yyhl3387 {
yyb3387 = yyj3387 > l
} else {
yyb3387 = r.CheckBreak()
}
if yyb3387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3390 := &x.ObjectMeta
yyv3390.CodecDecodeSelf(d)
}
yyj3387++
if yyhl3387 {
yyb3387 = yyj3387 > l
} else {
yyb3387 = r.CheckBreak()
}
if yyb3387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3391 := &x.Data
yym3392 := z.DecBinary()
_ = yym3392
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3391), d)
}
}
yyj3387++
if yyhl3387 {
yyb3387 = yyj3387 > l
} else {
yyb3387 = r.CheckBreak()
}
if yyb3387 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
for {
yyj3387++
if yyhl3387 {
yyb3387 = yyj3387 > l
} else {
yyb3387 = r.CheckBreak()
}
if yyb3387 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3387-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3394 := z.EncBinary()
_ = yym3394
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
yym3395 := z.DecBinary()
_ = yym3395
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 {
yym3396 := z.EncBinary()
_ = yym3396
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3397 := !z.EncBinary()
yy2arr3397 := z.EncBasicHandle().StructToArray
var yyq3397 [4]bool
_, _, _ = yysep3397, yyq3397, yy2arr3397
const yyr3397 bool = false
yyq3397[0] = x.Kind != ""
yyq3397[1] = x.APIVersion != ""
yyq3397[2] = true
var yynn3397 int
if yyr3397 || yy2arr3397 {
r.EncodeArrayStart(4)
} else {
yynn3397 = 1
for _, b := range yyq3397 {
if b {
yynn3397++
}
}
r.EncodeMapStart(yynn3397)
yynn3397 = 0
}
if yyr3397 || yy2arr3397 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3397[0] {
yym3399 := z.EncBinary()
_ = yym3399
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3397[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3400 := z.EncBinary()
_ = yym3400
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3397 || yy2arr3397 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3397[1] {
yym3402 := z.EncBinary()
_ = yym3402
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3397[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3403 := z.EncBinary()
_ = yym3403
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3397 || yy2arr3397 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3397[2] {
yy3405 := &x.ListMeta
yym3406 := z.EncBinary()
_ = yym3406
if false {
} else if z.HasExtensions() && z.EncExt(yy3405) {
} else {
z.EncFallback(yy3405)
}
} else {
r.EncodeNil()
}
} else {
if yyq3397[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3407 := &x.ListMeta
yym3408 := z.EncBinary()
_ = yym3408
if false {
} else if z.HasExtensions() && z.EncExt(yy3407) {
} else {
z.EncFallback(yy3407)
}
}
}
if yyr3397 || yy2arr3397 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3410 := z.EncBinary()
_ = yym3410
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 {
yym3411 := z.EncBinary()
_ = yym3411
if false {
} else {
h.encSliceSecret(([]Secret)(x.Items), e)
}
}
}
if yyr3397 || yy2arr3397 {
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
yym3412 := z.DecBinary()
_ = yym3412
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3413 := r.ContainerType()
if yyct3413 == codecSelferValueTypeMap1234 {
yyl3413 := r.ReadMapStart()
if yyl3413 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3413, d)
}
} else if yyct3413 == codecSelferValueTypeArray1234 {
yyl3413 := r.ReadArrayStart()
if yyl3413 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3413, 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 yys3414Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3414Slc
var yyhl3414 bool = l >= 0
for yyj3414 := 0; ; yyj3414++ {
if yyhl3414 {
if yyj3414 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3414Slc = r.DecodeBytes(yys3414Slc, true, true)
yys3414 := string(yys3414Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3414 {
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 {
yyv3417 := &x.ListMeta
yym3418 := z.DecBinary()
_ = yym3418
if false {
} else if z.HasExtensions() && z.DecExt(yyv3417) {
} else {
z.DecFallback(yyv3417, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3419 := &x.Items
yym3420 := z.DecBinary()
_ = yym3420
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv3419), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3414)
} // end switch yys3414
} // end for yyj3414
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 yyj3421 int
var yyb3421 bool
var yyhl3421 bool = l >= 0
yyj3421++
if yyhl3421 {
yyb3421 = yyj3421 > l
} else {
yyb3421 = r.CheckBreak()
}
if yyb3421 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3421++
if yyhl3421 {
yyb3421 = yyj3421 > l
} else {
yyb3421 = r.CheckBreak()
}
if yyb3421 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3421++
if yyhl3421 {
yyb3421 = yyj3421 > l
} else {
yyb3421 = r.CheckBreak()
}
if yyb3421 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3424 := &x.ListMeta
yym3425 := z.DecBinary()
_ = yym3425
if false {
} else if z.HasExtensions() && z.DecExt(yyv3424) {
} else {
z.DecFallback(yyv3424, false)
}
}
yyj3421++
if yyhl3421 {
yyb3421 = yyj3421 > l
} else {
yyb3421 = r.CheckBreak()
}
if yyb3421 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3426 := &x.Items
yym3427 := z.DecBinary()
_ = yym3427
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv3426), d)
}
}
for {
yyj3421++
if yyhl3421 {
yyb3421 = yyj3421 > l
} else {
yyb3421 = r.CheckBreak()
}
if yyb3421 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3421-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3428 := z.EncBinary()
_ = yym3428
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
yym3429 := z.DecBinary()
_ = yym3429
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
yym3430 := z.EncBinary()
_ = yym3430
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
yym3431 := z.DecBinary()
_ = yym3431
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 {
yym3432 := z.EncBinary()
_ = yym3432
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3433 := !z.EncBinary()
yy2arr3433 := z.EncBasicHandle().StructToArray
var yyq3433 [4]bool
_, _, _ = yysep3433, yyq3433, yy2arr3433
const yyr3433 bool = false
yyq3433[2] = x.Message != ""
yyq3433[3] = x.Error != ""
var yynn3433 int
if yyr3433 || yy2arr3433 {
r.EncodeArrayStart(4)
} else {
yynn3433 = 2
for _, b := range yyq3433 {
if b {
yynn3433++
}
}
r.EncodeMapStart(yynn3433)
yynn3433 = 0
}
if yyr3433 || yy2arr3433 {
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 yyr3433 || yy2arr3433 {
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 yyr3433 || yy2arr3433 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3433[2] {
yym3437 := z.EncBinary()
_ = yym3437
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3433[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3438 := z.EncBinary()
_ = yym3438
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3433 || yy2arr3433 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3433[3] {
yym3440 := z.EncBinary()
_ = yym3440
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3433[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("error"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3441 := z.EncBinary()
_ = yym3441
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
}
}
if yyr3433 || yy2arr3433 {
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
yym3442 := z.DecBinary()
_ = yym3442
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3443 := r.ContainerType()
if yyct3443 == codecSelferValueTypeMap1234 {
yyl3443 := r.ReadMapStart()
if yyl3443 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3443, d)
}
} else if yyct3443 == codecSelferValueTypeArray1234 {
yyl3443 := r.ReadArrayStart()
if yyl3443 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3443, 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 yys3444Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3444Slc
var yyhl3444 bool = l >= 0
for yyj3444 := 0; ; yyj3444++ {
if yyhl3444 {
if yyj3444 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3444Slc = r.DecodeBytes(yys3444Slc, true, true)
yys3444 := string(yys3444Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3444 {
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, yys3444)
} // end switch yys3444
} // end for yyj3444
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 yyj3449 int
var yyb3449 bool
var yyhl3449 bool = l >= 0
yyj3449++
if yyhl3449 {
yyb3449 = yyj3449 > l
} else {
yyb3449 = r.CheckBreak()
}
if yyb3449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ComponentConditionType(r.DecodeString())
}
yyj3449++
if yyhl3449 {
yyb3449 = yyj3449 > l
} else {
yyb3449 = r.CheckBreak()
}
if yyb3449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj3449++
if yyhl3449 {
yyb3449 = yyj3449 > l
} else {
yyb3449 = r.CheckBreak()
}
if yyb3449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3449++
if yyhl3449 {
yyb3449 = yyj3449 > l
} else {
yyb3449 = r.CheckBreak()
}
if yyb3449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Error = ""
} else {
x.Error = string(r.DecodeString())
}
for {
yyj3449++
if yyhl3449 {
yyb3449 = yyj3449 > l
} else {
yyb3449 = r.CheckBreak()
}
if yyb3449 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3449-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 {
yym3454 := z.EncBinary()
_ = yym3454
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3455 := !z.EncBinary()
yy2arr3455 := z.EncBasicHandle().StructToArray
var yyq3455 [4]bool
_, _, _ = yysep3455, yyq3455, yy2arr3455
const yyr3455 bool = false
yyq3455[0] = x.Kind != ""
yyq3455[1] = x.APIVersion != ""
yyq3455[2] = true
yyq3455[3] = len(x.Conditions) != 0
var yynn3455 int
if yyr3455 || yy2arr3455 {
r.EncodeArrayStart(4)
} else {
yynn3455 = 0
for _, b := range yyq3455 {
if b {
yynn3455++
}
}
r.EncodeMapStart(yynn3455)
yynn3455 = 0
}
if yyr3455 || yy2arr3455 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3455[0] {
yym3457 := z.EncBinary()
_ = yym3457
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3455[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3458 := z.EncBinary()
_ = yym3458
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3455 || yy2arr3455 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3455[1] {
yym3460 := z.EncBinary()
_ = yym3460
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3455[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3461 := z.EncBinary()
_ = yym3461
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3455 || yy2arr3455 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3455[2] {
yy3463 := &x.ObjectMeta
yy3463.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3455[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3464 := &x.ObjectMeta
yy3464.CodecEncodeSelf(e)
}
}
if yyr3455 || yy2arr3455 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3455[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3466 := z.EncBinary()
_ = yym3466
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3455[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3467 := z.EncBinary()
_ = yym3467
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
}
}
if yyr3455 || yy2arr3455 {
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
yym3468 := z.DecBinary()
_ = yym3468
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3469 := r.ContainerType()
if yyct3469 == codecSelferValueTypeMap1234 {
yyl3469 := r.ReadMapStart()
if yyl3469 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3469, d)
}
} else if yyct3469 == codecSelferValueTypeArray1234 {
yyl3469 := r.ReadArrayStart()
if yyl3469 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3469, 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 yys3470Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3470Slc
var yyhl3470 bool = l >= 0
for yyj3470 := 0; ; yyj3470++ {
if yyhl3470 {
if yyj3470 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3470Slc = r.DecodeBytes(yys3470Slc, true, true)
yys3470 := string(yys3470Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3470 {
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 {
yyv3473 := &x.ObjectMeta
yyv3473.CodecDecodeSelf(d)
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3474 := &x.Conditions
yym3475 := z.DecBinary()
_ = yym3475
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3474), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3470)
} // end switch yys3470
} // end for yyj3470
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 yyj3476 int
var yyb3476 bool
var yyhl3476 bool = l >= 0
yyj3476++
if yyhl3476 {
yyb3476 = yyj3476 > l
} else {
yyb3476 = r.CheckBreak()
}
if yyb3476 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3476++
if yyhl3476 {
yyb3476 = yyj3476 > l
} else {
yyb3476 = r.CheckBreak()
}
if yyb3476 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3476++
if yyhl3476 {
yyb3476 = yyj3476 > l
} else {
yyb3476 = r.CheckBreak()
}
if yyb3476 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3479 := &x.ObjectMeta
yyv3479.CodecDecodeSelf(d)
}
yyj3476++
if yyhl3476 {
yyb3476 = yyj3476 > l
} else {
yyb3476 = r.CheckBreak()
}
if yyb3476 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3480 := &x.Conditions
yym3481 := z.DecBinary()
_ = yym3481
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3480), d)
}
}
for {
yyj3476++
if yyhl3476 {
yyb3476 = yyj3476 > l
} else {
yyb3476 = r.CheckBreak()
}
if yyb3476 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3476-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 {
yym3482 := z.EncBinary()
_ = yym3482
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3483 := !z.EncBinary()
yy2arr3483 := z.EncBasicHandle().StructToArray
var yyq3483 [4]bool
_, _, _ = yysep3483, yyq3483, yy2arr3483
const yyr3483 bool = false
yyq3483[0] = x.Kind != ""
yyq3483[1] = x.APIVersion != ""
yyq3483[2] = true
var yynn3483 int
if yyr3483 || yy2arr3483 {
r.EncodeArrayStart(4)
} else {
yynn3483 = 1
for _, b := range yyq3483 {
if b {
yynn3483++
}
}
r.EncodeMapStart(yynn3483)
yynn3483 = 0
}
if yyr3483 || yy2arr3483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3483[0] {
yym3485 := z.EncBinary()
_ = yym3485
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3483[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3486 := z.EncBinary()
_ = yym3486
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3483 || yy2arr3483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3483[1] {
yym3488 := z.EncBinary()
_ = yym3488
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3483[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3489 := z.EncBinary()
_ = yym3489
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3483 || yy2arr3483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3483[2] {
yy3491 := &x.ListMeta
yym3492 := z.EncBinary()
_ = yym3492
if false {
} else if z.HasExtensions() && z.EncExt(yy3491) {
} else {
z.EncFallback(yy3491)
}
} else {
r.EncodeNil()
}
} else {
if yyq3483[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3493 := &x.ListMeta
yym3494 := z.EncBinary()
_ = yym3494
if false {
} else if z.HasExtensions() && z.EncExt(yy3493) {
} else {
z.EncFallback(yy3493)
}
}
}
if yyr3483 || yy2arr3483 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3496 := z.EncBinary()
_ = yym3496
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 {
yym3497 := z.EncBinary()
_ = yym3497
if false {
} else {
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
}
}
}
if yyr3483 || yy2arr3483 {
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
yym3498 := z.DecBinary()
_ = yym3498
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3499 := r.ContainerType()
if yyct3499 == codecSelferValueTypeMap1234 {
yyl3499 := r.ReadMapStart()
if yyl3499 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3499, d)
}
} else if yyct3499 == codecSelferValueTypeArray1234 {
yyl3499 := r.ReadArrayStart()
if yyl3499 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3499, 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 yys3500Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3500Slc
var yyhl3500 bool = l >= 0
for yyj3500 := 0; ; yyj3500++ {
if yyhl3500 {
if yyj3500 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3500Slc = r.DecodeBytes(yys3500Slc, true, true)
yys3500 := string(yys3500Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3500 {
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 {
yyv3503 := &x.ListMeta
yym3504 := z.DecBinary()
_ = yym3504
if false {
} else if z.HasExtensions() && z.DecExt(yyv3503) {
} else {
z.DecFallback(yyv3503, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3505 := &x.Items
yym3506 := z.DecBinary()
_ = yym3506
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3505), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3500)
} // end switch yys3500
} // end for yyj3500
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 yyj3507 int
var yyb3507 bool
var yyhl3507 bool = l >= 0
yyj3507++
if yyhl3507 {
yyb3507 = yyj3507 > l
} else {
yyb3507 = r.CheckBreak()
}
if yyb3507 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3507++
if yyhl3507 {
yyb3507 = yyj3507 > l
} else {
yyb3507 = r.CheckBreak()
}
if yyb3507 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3507++
if yyhl3507 {
yyb3507 = yyj3507 > l
} else {
yyb3507 = r.CheckBreak()
}
if yyb3507 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3510 := &x.ListMeta
yym3511 := z.DecBinary()
_ = yym3511
if false {
} else if z.HasExtensions() && z.DecExt(yyv3510) {
} else {
z.DecFallback(yyv3510, false)
}
}
yyj3507++
if yyhl3507 {
yyb3507 = yyj3507 > l
} else {
yyb3507 = r.CheckBreak()
}
if yyb3507 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3512 := &x.Items
yym3513 := z.DecBinary()
_ = yym3513
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3512), d)
}
}
for {
yyj3507++
if yyhl3507 {
yyb3507 = yyj3507 > l
} else {
yyb3507 = r.CheckBreak()
}
if yyb3507 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3507-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 {
yym3514 := z.EncBinary()
_ = yym3514
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3515 := !z.EncBinary()
yy2arr3515 := z.EncBasicHandle().StructToArray
var yyq3515 [5]bool
_, _, _ = yysep3515, yyq3515, yy2arr3515
const yyr3515 bool = false
yyq3515[0] = x.Capabilities != nil
yyq3515[1] = x.Privileged != nil
yyq3515[2] = x.SELinuxOptions != nil
yyq3515[3] = x.RunAsUser != nil
yyq3515[4] = x.RunAsNonRoot != nil
var yynn3515 int
if yyr3515 || yy2arr3515 {
r.EncodeArrayStart(5)
} else {
yynn3515 = 0
for _, b := range yyq3515 {
if b {
yynn3515++
}
}
r.EncodeMapStart(yynn3515)
yynn3515 = 0
}
if yyr3515 || yy2arr3515 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3515[0] {
if x.Capabilities == nil {
r.EncodeNil()
} else {
x.Capabilities.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3515[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 yyr3515 || yy2arr3515 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3515[1] {
if x.Privileged == nil {
r.EncodeNil()
} else {
yy3518 := *x.Privileged
yym3519 := z.EncBinary()
_ = yym3519
if false {
} else {
r.EncodeBool(bool(yy3518))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3515[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Privileged == nil {
r.EncodeNil()
} else {
yy3520 := *x.Privileged
yym3521 := z.EncBinary()
_ = yym3521
if false {
} else {
r.EncodeBool(bool(yy3520))
}
}
}
}
if yyr3515 || yy2arr3515 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3515[2] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3515[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 yyr3515 || yy2arr3515 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3515[3] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy3524 := *x.RunAsUser
yym3525 := z.EncBinary()
_ = yym3525
if false {
} else {
r.EncodeInt(int64(yy3524))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3515[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy3526 := *x.RunAsUser
yym3527 := z.EncBinary()
_ = yym3527
if false {
} else {
r.EncodeInt(int64(yy3526))
}
}
}
}
if yyr3515 || yy2arr3515 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3515[4] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy3529 := *x.RunAsNonRoot
yym3530 := z.EncBinary()
_ = yym3530
if false {
} else {
r.EncodeBool(bool(yy3529))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3515[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy3531 := *x.RunAsNonRoot
yym3532 := z.EncBinary()
_ = yym3532
if false {
} else {
r.EncodeBool(bool(yy3531))
}
}
}
}
if yyr3515 || yy2arr3515 {
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
yym3533 := z.DecBinary()
_ = yym3533
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3534 := r.ContainerType()
if yyct3534 == codecSelferValueTypeMap1234 {
yyl3534 := r.ReadMapStart()
if yyl3534 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3534, d)
}
} else if yyct3534 == codecSelferValueTypeArray1234 {
yyl3534 := r.ReadArrayStart()
if yyl3534 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3534, 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 yys3535Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3535Slc
var yyhl3535 bool = l >= 0
for yyj3535 := 0; ; yyj3535++ {
if yyhl3535 {
if yyj3535 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3535Slc = r.DecodeBytes(yys3535Slc, true, true)
yys3535 := string(yys3535Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3535 {
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)
}
yym3538 := z.DecBinary()
_ = yym3538
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)
}
yym3541 := z.DecBinary()
_ = yym3541
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)
}
yym3543 := z.DecBinary()
_ = yym3543
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3535)
} // end switch yys3535
} // end for yyj3535
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 yyj3544 int
var yyb3544 bool
var yyhl3544 bool = l >= 0
yyj3544++
if yyhl3544 {
yyb3544 = yyj3544 > l
} else {
yyb3544 = r.CheckBreak()
}
if yyb3544 {
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)
}
yyj3544++
if yyhl3544 {
yyb3544 = yyj3544 > l
} else {
yyb3544 = r.CheckBreak()
}
if yyb3544 {
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)
}
yym3547 := z.DecBinary()
_ = yym3547
if false {
} else {
*((*bool)(x.Privileged)) = r.DecodeBool()
}
}
yyj3544++
if yyhl3544 {
yyb3544 = yyj3544 > l
} else {
yyb3544 = r.CheckBreak()
}
if yyb3544 {
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)
}
yyj3544++
if yyhl3544 {
yyb3544 = yyj3544 > l
} else {
yyb3544 = r.CheckBreak()
}
if yyb3544 {
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)
}
yym3550 := z.DecBinary()
_ = yym3550
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj3544++
if yyhl3544 {
yyb3544 = yyj3544 > l
} else {
yyb3544 = r.CheckBreak()
}
if yyb3544 {
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)
}
yym3552 := z.DecBinary()
_ = yym3552
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
for {
yyj3544++
if yyhl3544 {
yyb3544 = yyj3544 > l
} else {
yyb3544 = r.CheckBreak()
}
if yyb3544 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3544-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 {
yym3553 := z.EncBinary()
_ = yym3553
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3554 := !z.EncBinary()
yy2arr3554 := z.EncBasicHandle().StructToArray
var yyq3554 [4]bool
_, _, _ = yysep3554, yyq3554, yy2arr3554
const yyr3554 bool = false
yyq3554[0] = x.User != ""
yyq3554[1] = x.Role != ""
yyq3554[2] = x.Type != ""
yyq3554[3] = x.Level != ""
var yynn3554 int
if yyr3554 || yy2arr3554 {
r.EncodeArrayStart(4)
} else {
yynn3554 = 0
for _, b := range yyq3554 {
if b {
yynn3554++
}
}
r.EncodeMapStart(yynn3554)
yynn3554 = 0
}
if yyr3554 || yy2arr3554 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3554[0] {
yym3556 := z.EncBinary()
_ = yym3556
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3554[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3557 := z.EncBinary()
_ = yym3557
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr3554 || yy2arr3554 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3554[1] {
yym3559 := z.EncBinary()
_ = yym3559
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3554[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("role"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3560 := z.EncBinary()
_ = yym3560
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
}
}
if yyr3554 || yy2arr3554 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3554[2] {
yym3562 := z.EncBinary()
_ = yym3562
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3554[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3563 := z.EncBinary()
_ = yym3563
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3554 || yy2arr3554 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3554[3] {
yym3565 := z.EncBinary()
_ = yym3565
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3554[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("level"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3566 := z.EncBinary()
_ = yym3566
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
}
}
if yyr3554 || yy2arr3554 {
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
yym3567 := z.DecBinary()
_ = yym3567
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3568 := r.ContainerType()
if yyct3568 == codecSelferValueTypeMap1234 {
yyl3568 := r.ReadMapStart()
if yyl3568 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3568, d)
}
} else if yyct3568 == codecSelferValueTypeArray1234 {
yyl3568 := r.ReadArrayStart()
if yyl3568 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3568, 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 yys3569Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3569Slc
var yyhl3569 bool = l >= 0
for yyj3569 := 0; ; yyj3569++ {
if yyhl3569 {
if yyj3569 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3569Slc = r.DecodeBytes(yys3569Slc, true, true)
yys3569 := string(yys3569Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3569 {
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, yys3569)
} // end switch yys3569
} // end for yyj3569
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 yyj3574 int
var yyb3574 bool
var yyhl3574 bool = l >= 0
yyj3574++
if yyhl3574 {
yyb3574 = yyj3574 > l
} else {
yyb3574 = r.CheckBreak()
}
if yyb3574 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj3574++
if yyhl3574 {
yyb3574 = yyj3574 > l
} else {
yyb3574 = r.CheckBreak()
}
if yyb3574 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Role = ""
} else {
x.Role = string(r.DecodeString())
}
yyj3574++
if yyhl3574 {
yyb3574 = yyj3574 > l
} else {
yyb3574 = r.CheckBreak()
}
if yyb3574 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
yyj3574++
if yyhl3574 {
yyb3574 = yyj3574 > l
} else {
yyb3574 = r.CheckBreak()
}
if yyb3574 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Level = ""
} else {
x.Level = string(r.DecodeString())
}
for {
yyj3574++
if yyhl3574 {
yyb3574 = yyj3574 > l
} else {
yyb3574 = r.CheckBreak()
}
if yyb3574 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3574-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 {
yym3579 := z.EncBinary()
_ = yym3579
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3580 := !z.EncBinary()
yy2arr3580 := z.EncBasicHandle().StructToArray
var yyq3580 [5]bool
_, _, _ = yysep3580, yyq3580, yy2arr3580
const yyr3580 bool = false
yyq3580[0] = x.Kind != ""
yyq3580[1] = x.APIVersion != ""
yyq3580[2] = true
var yynn3580 int
if yyr3580 || yy2arr3580 {
r.EncodeArrayStart(5)
} else {
yynn3580 = 2
for _, b := range yyq3580 {
if b {
yynn3580++
}
}
r.EncodeMapStart(yynn3580)
yynn3580 = 0
}
if yyr3580 || yy2arr3580 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3580[0] {
yym3582 := z.EncBinary()
_ = yym3582
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3580[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3583 := z.EncBinary()
_ = yym3583
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3580 || yy2arr3580 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3580[1] {
yym3585 := z.EncBinary()
_ = yym3585
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3580[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3586 := z.EncBinary()
_ = yym3586
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3580 || yy2arr3580 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3580[2] {
yy3588 := &x.ObjectMeta
yy3588.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3580[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3589 := &x.ObjectMeta
yy3589.CodecEncodeSelf(e)
}
}
if yyr3580 || yy2arr3580 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3591 := z.EncBinary()
_ = yym3591
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)
yym3592 := z.EncBinary()
_ = yym3592
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
}
}
if yyr3580 || yy2arr3580 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym3594 := z.EncBinary()
_ = yym3594
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 {
yym3595 := z.EncBinary()
_ = yym3595
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
if yyr3580 || yy2arr3580 {
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
yym3596 := z.DecBinary()
_ = yym3596
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3597 := r.ContainerType()
if yyct3597 == codecSelferValueTypeMap1234 {
yyl3597 := r.ReadMapStart()
if yyl3597 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3597, d)
}
} else if yyct3597 == codecSelferValueTypeArray1234 {
yyl3597 := r.ReadArrayStart()
if yyl3597 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3597, 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 yys3598Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3598Slc
var yyhl3598 bool = l >= 0
for yyj3598 := 0; ; yyj3598++ {
if yyhl3598 {
if yyj3598 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3598Slc = r.DecodeBytes(yys3598Slc, true, true)
yys3598 := string(yys3598Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3598 {
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 {
yyv3601 := &x.ObjectMeta
yyv3601.CodecDecodeSelf(d)
}
case "range":
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3603 := &x.Data
yym3604 := z.DecBinary()
_ = yym3604
if false {
} else {
*yyv3603 = r.DecodeBytes(*(*[]byte)(yyv3603), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys3598)
} // end switch yys3598
} // end for yyj3598
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 yyj3605 int
var yyb3605 bool
var yyhl3605 bool = l >= 0
yyj3605++
if yyhl3605 {
yyb3605 = yyj3605 > l
} else {
yyb3605 = r.CheckBreak()
}
if yyb3605 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3605++
if yyhl3605 {
yyb3605 = yyj3605 > l
} else {
yyb3605 = r.CheckBreak()
}
if yyb3605 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3605++
if yyhl3605 {
yyb3605 = yyj3605 > l
} else {
yyb3605 = r.CheckBreak()
}
if yyb3605 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3608 := &x.ObjectMeta
yyv3608.CodecDecodeSelf(d)
}
yyj3605++
if yyhl3605 {
yyb3605 = yyj3605 > l
} else {
yyb3605 = r.CheckBreak()
}
if yyb3605 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
yyj3605++
if yyhl3605 {
yyb3605 = yyj3605 > l
} else {
yyb3605 = r.CheckBreak()
}
if yyb3605 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3610 := &x.Data
yym3611 := z.DecBinary()
_ = yym3611
if false {
} else {
*yyv3610 = r.DecodeBytes(*(*[]byte)(yyv3610), false, false)
}
}
for {
yyj3605++
if yyhl3605 {
yyb3605 = yyj3605 > l
} else {
yyb3605 = r.CheckBreak()
}
if yyb3605 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3605-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 _, yyv3612 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3612.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
yyv3613 := *v
yyh3613, yyl3613 := z.DecSliceHelperStart()
var yyc3613 bool
if yyl3613 == 0 {
if yyv3613 == nil {
yyv3613 = []PersistentVolumeAccessMode{}
yyc3613 = true
} else if len(yyv3613) != 0 {
yyv3613 = yyv3613[:0]
yyc3613 = true
}
} else if yyl3613 > 0 {
var yyrr3613, yyrl3613 int
var yyrt3613 bool
if yyl3613 > cap(yyv3613) {
yyrl3613, yyrt3613 = z.DecInferLen(yyl3613, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3613 {
if yyrl3613 <= cap(yyv3613) {
yyv3613 = yyv3613[:yyrl3613]
} else {
yyv3613 = make([]PersistentVolumeAccessMode, yyrl3613)
}
} else {
yyv3613 = make([]PersistentVolumeAccessMode, yyrl3613)
}
yyc3613 = true
yyrr3613 = len(yyv3613)
} else if yyl3613 != len(yyv3613) {
yyv3613 = yyv3613[:yyl3613]
yyc3613 = true
}
yyj3613 := 0
for ; yyj3613 < yyrr3613; yyj3613++ {
yyh3613.ElemContainerState(yyj3613)
if r.TryDecodeAsNil() {
yyv3613[yyj3613] = ""
} else {
yyv3613[yyj3613] = PersistentVolumeAccessMode(r.DecodeString())
}
}
if yyrt3613 {
for ; yyj3613 < yyl3613; yyj3613++ {
yyv3613 = append(yyv3613, "")
yyh3613.ElemContainerState(yyj3613)
if r.TryDecodeAsNil() {
yyv3613[yyj3613] = ""
} else {
yyv3613[yyj3613] = PersistentVolumeAccessMode(r.DecodeString())
}
}
}
} else {
yyj3613 := 0
for ; !r.CheckBreak(); yyj3613++ {
if yyj3613 >= len(yyv3613) {
yyv3613 = append(yyv3613, "") // var yyz3613 PersistentVolumeAccessMode
yyc3613 = true
}
yyh3613.ElemContainerState(yyj3613)
if yyj3613 < len(yyv3613) {
if r.TryDecodeAsNil() {
yyv3613[yyj3613] = ""
} else {
yyv3613[yyj3613] = PersistentVolumeAccessMode(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3613 < len(yyv3613) {
yyv3613 = yyv3613[:yyj3613]
yyc3613 = true
} else if yyj3613 == 0 && yyv3613 == nil {
yyv3613 = []PersistentVolumeAccessMode{}
yyc3613 = true
}
}
yyh3613.End()
if yyc3613 {
*v = yyv3613
}
}
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 _, yyv3617 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3618 := &yyv3617
yy3618.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
yyv3619 := *v
yyh3619, yyl3619 := z.DecSliceHelperStart()
var yyc3619 bool
if yyl3619 == 0 {
if yyv3619 == nil {
yyv3619 = []PersistentVolume{}
yyc3619 = true
} else if len(yyv3619) != 0 {
yyv3619 = yyv3619[:0]
yyc3619 = true
}
} else if yyl3619 > 0 {
var yyrr3619, yyrl3619 int
var yyrt3619 bool
if yyl3619 > cap(yyv3619) {
yyrg3619 := len(yyv3619) > 0
yyv23619 := yyv3619
yyrl3619, yyrt3619 = z.DecInferLen(yyl3619, z.DecBasicHandle().MaxInitLen, 392)
if yyrt3619 {
if yyrl3619 <= cap(yyv3619) {
yyv3619 = yyv3619[:yyrl3619]
} else {
yyv3619 = make([]PersistentVolume, yyrl3619)
}
} else {
yyv3619 = make([]PersistentVolume, yyrl3619)
}
yyc3619 = true
yyrr3619 = len(yyv3619)
if yyrg3619 {
copy(yyv3619, yyv23619)
}
} else if yyl3619 != len(yyv3619) {
yyv3619 = yyv3619[:yyl3619]
yyc3619 = true
}
yyj3619 := 0
for ; yyj3619 < yyrr3619; yyj3619++ {
yyh3619.ElemContainerState(yyj3619)
if r.TryDecodeAsNil() {
yyv3619[yyj3619] = PersistentVolume{}
} else {
yyv3620 := &yyv3619[yyj3619]
yyv3620.CodecDecodeSelf(d)
}
}
if yyrt3619 {
for ; yyj3619 < yyl3619; yyj3619++ {
yyv3619 = append(yyv3619, PersistentVolume{})
yyh3619.ElemContainerState(yyj3619)
if r.TryDecodeAsNil() {
yyv3619[yyj3619] = PersistentVolume{}
} else {
yyv3621 := &yyv3619[yyj3619]
yyv3621.CodecDecodeSelf(d)
}
}
}
} else {
yyj3619 := 0
for ; !r.CheckBreak(); yyj3619++ {
if yyj3619 >= len(yyv3619) {
yyv3619 = append(yyv3619, PersistentVolume{}) // var yyz3619 PersistentVolume
yyc3619 = true
}
yyh3619.ElemContainerState(yyj3619)
if yyj3619 < len(yyv3619) {
if r.TryDecodeAsNil() {
yyv3619[yyj3619] = PersistentVolume{}
} else {
yyv3622 := &yyv3619[yyj3619]
yyv3622.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3619 < len(yyv3619) {
yyv3619 = yyv3619[:yyj3619]
yyc3619 = true
} else if yyj3619 == 0 && yyv3619 == nil {
yyv3619 = []PersistentVolume{}
yyc3619 = true
}
}
yyh3619.End()
if yyc3619 {
*v = yyv3619
}
}
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 _, yyv3623 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3624 := &yyv3623
yy3624.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
yyv3625 := *v
yyh3625, yyl3625 := z.DecSliceHelperStart()
var yyc3625 bool
if yyl3625 == 0 {
if yyv3625 == nil {
yyv3625 = []PersistentVolumeClaim{}
yyc3625 = true
} else if len(yyv3625) != 0 {
yyv3625 = yyv3625[:0]
yyc3625 = true
}
} else if yyl3625 > 0 {
var yyrr3625, yyrl3625 int
var yyrt3625 bool
if yyl3625 > cap(yyv3625) {
yyrg3625 := len(yyv3625) > 0
yyv23625 := yyv3625
yyrl3625, yyrt3625 = z.DecInferLen(yyl3625, z.DecBasicHandle().MaxInitLen, 296)
if yyrt3625 {
if yyrl3625 <= cap(yyv3625) {
yyv3625 = yyv3625[:yyrl3625]
} else {
yyv3625 = make([]PersistentVolumeClaim, yyrl3625)
}
} else {
yyv3625 = make([]PersistentVolumeClaim, yyrl3625)
}
yyc3625 = true
yyrr3625 = len(yyv3625)
if yyrg3625 {
copy(yyv3625, yyv23625)
}
} else if yyl3625 != len(yyv3625) {
yyv3625 = yyv3625[:yyl3625]
yyc3625 = true
}
yyj3625 := 0
for ; yyj3625 < yyrr3625; yyj3625++ {
yyh3625.ElemContainerState(yyj3625)
if r.TryDecodeAsNil() {
yyv3625[yyj3625] = PersistentVolumeClaim{}
} else {
yyv3626 := &yyv3625[yyj3625]
yyv3626.CodecDecodeSelf(d)
}
}
if yyrt3625 {
for ; yyj3625 < yyl3625; yyj3625++ {
yyv3625 = append(yyv3625, PersistentVolumeClaim{})
yyh3625.ElemContainerState(yyj3625)
if r.TryDecodeAsNil() {
yyv3625[yyj3625] = PersistentVolumeClaim{}
} else {
yyv3627 := &yyv3625[yyj3625]
yyv3627.CodecDecodeSelf(d)
}
}
}
} else {
yyj3625 := 0
for ; !r.CheckBreak(); yyj3625++ {
if yyj3625 >= len(yyv3625) {
yyv3625 = append(yyv3625, PersistentVolumeClaim{}) // var yyz3625 PersistentVolumeClaim
yyc3625 = true
}
yyh3625.ElemContainerState(yyj3625)
if yyj3625 < len(yyv3625) {
if r.TryDecodeAsNil() {
yyv3625[yyj3625] = PersistentVolumeClaim{}
} else {
yyv3628 := &yyv3625[yyj3625]
yyv3628.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3625 < len(yyv3625) {
yyv3625 = yyv3625[:yyj3625]
yyc3625 = true
} else if yyj3625 == 0 && yyv3625 == nil {
yyv3625 = []PersistentVolumeClaim{}
yyc3625 = true
}
}
yyh3625.End()
if yyc3625 {
*v = yyv3625
}
}
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 _, yyv3629 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3630 := &yyv3629
yy3630.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
yyv3631 := *v
yyh3631, yyl3631 := z.DecSliceHelperStart()
var yyc3631 bool
if yyl3631 == 0 {
if yyv3631 == nil {
yyv3631 = []DownwardAPIVolumeFile{}
yyc3631 = true
} else if len(yyv3631) != 0 {
yyv3631 = yyv3631[:0]
yyc3631 = true
}
} else if yyl3631 > 0 {
var yyrr3631, yyrl3631 int
var yyrt3631 bool
if yyl3631 > cap(yyv3631) {
yyrg3631 := len(yyv3631) > 0
yyv23631 := yyv3631
yyrl3631, yyrt3631 = z.DecInferLen(yyl3631, z.DecBasicHandle().MaxInitLen, 48)
if yyrt3631 {
if yyrl3631 <= cap(yyv3631) {
yyv3631 = yyv3631[:yyrl3631]
} else {
yyv3631 = make([]DownwardAPIVolumeFile, yyrl3631)
}
} else {
yyv3631 = make([]DownwardAPIVolumeFile, yyrl3631)
}
yyc3631 = true
yyrr3631 = len(yyv3631)
if yyrg3631 {
copy(yyv3631, yyv23631)
}
} else if yyl3631 != len(yyv3631) {
yyv3631 = yyv3631[:yyl3631]
yyc3631 = true
}
yyj3631 := 0
for ; yyj3631 < yyrr3631; yyj3631++ {
yyh3631.ElemContainerState(yyj3631)
if r.TryDecodeAsNil() {
yyv3631[yyj3631] = DownwardAPIVolumeFile{}
} else {
yyv3632 := &yyv3631[yyj3631]
yyv3632.CodecDecodeSelf(d)
}
}
if yyrt3631 {
for ; yyj3631 < yyl3631; yyj3631++ {
yyv3631 = append(yyv3631, DownwardAPIVolumeFile{})
yyh3631.ElemContainerState(yyj3631)
if r.TryDecodeAsNil() {
yyv3631[yyj3631] = DownwardAPIVolumeFile{}
} else {
yyv3633 := &yyv3631[yyj3631]
yyv3633.CodecDecodeSelf(d)
}
}
}
} else {
yyj3631 := 0
for ; !r.CheckBreak(); yyj3631++ {
if yyj3631 >= len(yyv3631) {
yyv3631 = append(yyv3631, DownwardAPIVolumeFile{}) // var yyz3631 DownwardAPIVolumeFile
yyc3631 = true
}
yyh3631.ElemContainerState(yyj3631)
if yyj3631 < len(yyv3631) {
if r.TryDecodeAsNil() {
yyv3631[yyj3631] = DownwardAPIVolumeFile{}
} else {
yyv3634 := &yyv3631[yyj3631]
yyv3634.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3631 < len(yyv3631) {
yyv3631 = yyv3631[:yyj3631]
yyc3631 = true
} else if yyj3631 == 0 && yyv3631 == nil {
yyv3631 = []DownwardAPIVolumeFile{}
yyc3631 = true
}
}
yyh3631.End()
if yyc3631 {
*v = yyv3631
}
}
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 _, yyv3635 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3635.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
yyv3636 := *v
yyh3636, yyl3636 := z.DecSliceHelperStart()
var yyc3636 bool
if yyl3636 == 0 {
if yyv3636 == nil {
yyv3636 = []Capability{}
yyc3636 = true
} else if len(yyv3636) != 0 {
yyv3636 = yyv3636[:0]
yyc3636 = true
}
} else if yyl3636 > 0 {
var yyrr3636, yyrl3636 int
var yyrt3636 bool
if yyl3636 > cap(yyv3636) {
yyrl3636, yyrt3636 = z.DecInferLen(yyl3636, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3636 {
if yyrl3636 <= cap(yyv3636) {
yyv3636 = yyv3636[:yyrl3636]
} else {
yyv3636 = make([]Capability, yyrl3636)
}
} else {
yyv3636 = make([]Capability, yyrl3636)
}
yyc3636 = true
yyrr3636 = len(yyv3636)
} else if yyl3636 != len(yyv3636) {
yyv3636 = yyv3636[:yyl3636]
yyc3636 = true
}
yyj3636 := 0
for ; yyj3636 < yyrr3636; yyj3636++ {
yyh3636.ElemContainerState(yyj3636)
if r.TryDecodeAsNil() {
yyv3636[yyj3636] = ""
} else {
yyv3636[yyj3636] = Capability(r.DecodeString())
}
}
if yyrt3636 {
for ; yyj3636 < yyl3636; yyj3636++ {
yyv3636 = append(yyv3636, "")
yyh3636.ElemContainerState(yyj3636)
if r.TryDecodeAsNil() {
yyv3636[yyj3636] = ""
} else {
yyv3636[yyj3636] = Capability(r.DecodeString())
}
}
}
} else {
yyj3636 := 0
for ; !r.CheckBreak(); yyj3636++ {
if yyj3636 >= len(yyv3636) {
yyv3636 = append(yyv3636, "") // var yyz3636 Capability
yyc3636 = true
}
yyh3636.ElemContainerState(yyj3636)
if yyj3636 < len(yyv3636) {
if r.TryDecodeAsNil() {
yyv3636[yyj3636] = ""
} else {
yyv3636[yyj3636] = Capability(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3636 < len(yyv3636) {
yyv3636 = yyv3636[:yyj3636]
yyc3636 = true
} else if yyj3636 == 0 && yyv3636 == nil {
yyv3636 = []Capability{}
yyc3636 = true
}
}
yyh3636.End()
if yyc3636 {
*v = yyv3636
}
}
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 _, yyv3640 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3641 := &yyv3640
yy3641.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
yyv3642 := *v
yyh3642, yyl3642 := z.DecSliceHelperStart()
var yyc3642 bool
if yyl3642 == 0 {
if yyv3642 == nil {
yyv3642 = []ContainerPort{}
yyc3642 = true
} else if len(yyv3642) != 0 {
yyv3642 = yyv3642[:0]
yyc3642 = true
}
} else if yyl3642 > 0 {
var yyrr3642, yyrl3642 int
var yyrt3642 bool
if yyl3642 > cap(yyv3642) {
yyrg3642 := len(yyv3642) > 0
yyv23642 := yyv3642
yyrl3642, yyrt3642 = z.DecInferLen(yyl3642, z.DecBasicHandle().MaxInitLen, 64)
if yyrt3642 {
if yyrl3642 <= cap(yyv3642) {
yyv3642 = yyv3642[:yyrl3642]
} else {
yyv3642 = make([]ContainerPort, yyrl3642)
}
} else {
yyv3642 = make([]ContainerPort, yyrl3642)
}
yyc3642 = true
yyrr3642 = len(yyv3642)
if yyrg3642 {
copy(yyv3642, yyv23642)
}
} else if yyl3642 != len(yyv3642) {
yyv3642 = yyv3642[:yyl3642]
yyc3642 = true
}
yyj3642 := 0
for ; yyj3642 < yyrr3642; yyj3642++ {
yyh3642.ElemContainerState(yyj3642)
if r.TryDecodeAsNil() {
yyv3642[yyj3642] = ContainerPort{}
} else {
yyv3643 := &yyv3642[yyj3642]
yyv3643.CodecDecodeSelf(d)
}
}
if yyrt3642 {
for ; yyj3642 < yyl3642; yyj3642++ {
yyv3642 = append(yyv3642, ContainerPort{})
yyh3642.ElemContainerState(yyj3642)
if r.TryDecodeAsNil() {
yyv3642[yyj3642] = ContainerPort{}
} else {
yyv3644 := &yyv3642[yyj3642]
yyv3644.CodecDecodeSelf(d)
}
}
}
} else {
yyj3642 := 0
for ; !r.CheckBreak(); yyj3642++ {
if yyj3642 >= len(yyv3642) {
yyv3642 = append(yyv3642, ContainerPort{}) // var yyz3642 ContainerPort
yyc3642 = true
}
yyh3642.ElemContainerState(yyj3642)
if yyj3642 < len(yyv3642) {
if r.TryDecodeAsNil() {
yyv3642[yyj3642] = ContainerPort{}
} else {
yyv3645 := &yyv3642[yyj3642]
yyv3645.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3642 < len(yyv3642) {
yyv3642 = yyv3642[:yyj3642]
yyc3642 = true
} else if yyj3642 == 0 && yyv3642 == nil {
yyv3642 = []ContainerPort{}
yyc3642 = true
}
}
yyh3642.End()
if yyc3642 {
*v = yyv3642
}
}
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 _, yyv3646 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3647 := &yyv3646
yy3647.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
yyv3648 := *v
yyh3648, yyl3648 := z.DecSliceHelperStart()
var yyc3648 bool
if yyl3648 == 0 {
if yyv3648 == nil {
yyv3648 = []EnvVar{}
yyc3648 = true
} else if len(yyv3648) != 0 {
yyv3648 = yyv3648[:0]
yyc3648 = true
}
} else if yyl3648 > 0 {
var yyrr3648, yyrl3648 int
var yyrt3648 bool
if yyl3648 > cap(yyv3648) {
yyrg3648 := len(yyv3648) > 0
yyv23648 := yyv3648
yyrl3648, yyrt3648 = z.DecInferLen(yyl3648, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3648 {
if yyrl3648 <= cap(yyv3648) {
yyv3648 = yyv3648[:yyrl3648]
} else {
yyv3648 = make([]EnvVar, yyrl3648)
}
} else {
yyv3648 = make([]EnvVar, yyrl3648)
}
yyc3648 = true
yyrr3648 = len(yyv3648)
if yyrg3648 {
copy(yyv3648, yyv23648)
}
} else if yyl3648 != len(yyv3648) {
yyv3648 = yyv3648[:yyl3648]
yyc3648 = true
}
yyj3648 := 0
for ; yyj3648 < yyrr3648; yyj3648++ {
yyh3648.ElemContainerState(yyj3648)
if r.TryDecodeAsNil() {
yyv3648[yyj3648] = EnvVar{}
} else {
yyv3649 := &yyv3648[yyj3648]
yyv3649.CodecDecodeSelf(d)
}
}
if yyrt3648 {
for ; yyj3648 < yyl3648; yyj3648++ {
yyv3648 = append(yyv3648, EnvVar{})
yyh3648.ElemContainerState(yyj3648)
if r.TryDecodeAsNil() {
yyv3648[yyj3648] = EnvVar{}
} else {
yyv3650 := &yyv3648[yyj3648]
yyv3650.CodecDecodeSelf(d)
}
}
}
} else {
yyj3648 := 0
for ; !r.CheckBreak(); yyj3648++ {
if yyj3648 >= len(yyv3648) {
yyv3648 = append(yyv3648, EnvVar{}) // var yyz3648 EnvVar
yyc3648 = true
}
yyh3648.ElemContainerState(yyj3648)
if yyj3648 < len(yyv3648) {
if r.TryDecodeAsNil() {
yyv3648[yyj3648] = EnvVar{}
} else {
yyv3651 := &yyv3648[yyj3648]
yyv3651.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3648 < len(yyv3648) {
yyv3648 = yyv3648[:yyj3648]
yyc3648 = true
} else if yyj3648 == 0 && yyv3648 == nil {
yyv3648 = []EnvVar{}
yyc3648 = true
}
}
yyh3648.End()
if yyc3648 {
*v = yyv3648
}
}
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 _, yyv3652 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3653 := &yyv3652
yy3653.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
yyv3654 := *v
yyh3654, yyl3654 := z.DecSliceHelperStart()
var yyc3654 bool
if yyl3654 == 0 {
if yyv3654 == nil {
yyv3654 = []VolumeMount{}
yyc3654 = true
} else if len(yyv3654) != 0 {
yyv3654 = yyv3654[:0]
yyc3654 = true
}
} else if yyl3654 > 0 {
var yyrr3654, yyrl3654 int
var yyrt3654 bool
if yyl3654 > cap(yyv3654) {
yyrg3654 := len(yyv3654) > 0
yyv23654 := yyv3654
yyrl3654, yyrt3654 = z.DecInferLen(yyl3654, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3654 {
if yyrl3654 <= cap(yyv3654) {
yyv3654 = yyv3654[:yyrl3654]
} else {
yyv3654 = make([]VolumeMount, yyrl3654)
}
} else {
yyv3654 = make([]VolumeMount, yyrl3654)
}
yyc3654 = true
yyrr3654 = len(yyv3654)
if yyrg3654 {
copy(yyv3654, yyv23654)
}
} else if yyl3654 != len(yyv3654) {
yyv3654 = yyv3654[:yyl3654]
yyc3654 = true
}
yyj3654 := 0
for ; yyj3654 < yyrr3654; yyj3654++ {
yyh3654.ElemContainerState(yyj3654)
if r.TryDecodeAsNil() {
yyv3654[yyj3654] = VolumeMount{}
} else {
yyv3655 := &yyv3654[yyj3654]
yyv3655.CodecDecodeSelf(d)
}
}
if yyrt3654 {
for ; yyj3654 < yyl3654; yyj3654++ {
yyv3654 = append(yyv3654, VolumeMount{})
yyh3654.ElemContainerState(yyj3654)
if r.TryDecodeAsNil() {
yyv3654[yyj3654] = VolumeMount{}
} else {
yyv3656 := &yyv3654[yyj3654]
yyv3656.CodecDecodeSelf(d)
}
}
}
} else {
yyj3654 := 0
for ; !r.CheckBreak(); yyj3654++ {
if yyj3654 >= len(yyv3654) {
yyv3654 = append(yyv3654, VolumeMount{}) // var yyz3654 VolumeMount
yyc3654 = true
}
yyh3654.ElemContainerState(yyj3654)
if yyj3654 < len(yyv3654) {
if r.TryDecodeAsNil() {
yyv3654[yyj3654] = VolumeMount{}
} else {
yyv3657 := &yyv3654[yyj3654]
yyv3657.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3654 < len(yyv3654) {
yyv3654 = yyv3654[:yyj3654]
yyc3654 = true
} else if yyj3654 == 0 && yyv3654 == nil {
yyv3654 = []VolumeMount{}
yyc3654 = true
}
}
yyh3654.End()
if yyc3654 {
*v = yyv3654
}
}
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 _, yyv3658 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3659 := &yyv3658
yy3659.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
yyv3660 := *v
yyh3660, yyl3660 := z.DecSliceHelperStart()
var yyc3660 bool
if yyl3660 == 0 {
if yyv3660 == nil {
yyv3660 = []Pod{}
yyc3660 = true
} else if len(yyv3660) != 0 {
yyv3660 = yyv3660[:0]
yyc3660 = true
}
} else if yyl3660 > 0 {
var yyrr3660, yyrl3660 int
var yyrt3660 bool
if yyl3660 > cap(yyv3660) {
yyrg3660 := len(yyv3660) > 0
yyv23660 := yyv3660
yyrl3660, yyrt3660 = z.DecInferLen(yyl3660, z.DecBasicHandle().MaxInitLen, 496)
if yyrt3660 {
if yyrl3660 <= cap(yyv3660) {
yyv3660 = yyv3660[:yyrl3660]
} else {
yyv3660 = make([]Pod, yyrl3660)
}
} else {
yyv3660 = make([]Pod, yyrl3660)
}
yyc3660 = true
yyrr3660 = len(yyv3660)
if yyrg3660 {
copy(yyv3660, yyv23660)
}
} else if yyl3660 != len(yyv3660) {
yyv3660 = yyv3660[:yyl3660]
yyc3660 = true
}
yyj3660 := 0
for ; yyj3660 < yyrr3660; yyj3660++ {
yyh3660.ElemContainerState(yyj3660)
if r.TryDecodeAsNil() {
yyv3660[yyj3660] = Pod{}
} else {
yyv3661 := &yyv3660[yyj3660]
yyv3661.CodecDecodeSelf(d)
}
}
if yyrt3660 {
for ; yyj3660 < yyl3660; yyj3660++ {
yyv3660 = append(yyv3660, Pod{})
yyh3660.ElemContainerState(yyj3660)
if r.TryDecodeAsNil() {
yyv3660[yyj3660] = Pod{}
} else {
yyv3662 := &yyv3660[yyj3660]
yyv3662.CodecDecodeSelf(d)
}
}
}
} else {
yyj3660 := 0
for ; !r.CheckBreak(); yyj3660++ {
if yyj3660 >= len(yyv3660) {
yyv3660 = append(yyv3660, Pod{}) // var yyz3660 Pod
yyc3660 = true
}
yyh3660.ElemContainerState(yyj3660)
if yyj3660 < len(yyv3660) {
if r.TryDecodeAsNil() {
yyv3660[yyj3660] = Pod{}
} else {
yyv3663 := &yyv3660[yyj3660]
yyv3663.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3660 < len(yyv3660) {
yyv3660 = yyv3660[:yyj3660]
yyc3660 = true
} else if yyj3660 == 0 && yyv3660 == nil {
yyv3660 = []Pod{}
yyc3660 = true
}
}
yyh3660.End()
if yyc3660 {
*v = yyv3660
}
}
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 _, yyv3664 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3665 := &yyv3664
yy3665.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
yyv3666 := *v
yyh3666, yyl3666 := z.DecSliceHelperStart()
var yyc3666 bool
if yyl3666 == 0 {
if yyv3666 == nil {
yyv3666 = []Volume{}
yyc3666 = true
} else if len(yyv3666) != 0 {
yyv3666 = yyv3666[:0]
yyc3666 = true
}
} else if yyl3666 > 0 {
var yyrr3666, yyrl3666 int
var yyrt3666 bool
if yyl3666 > cap(yyv3666) {
yyrg3666 := len(yyv3666) > 0
yyv23666 := yyv3666
yyrl3666, yyrt3666 = z.DecInferLen(yyl3666, z.DecBasicHandle().MaxInitLen, 152)
if yyrt3666 {
if yyrl3666 <= cap(yyv3666) {
yyv3666 = yyv3666[:yyrl3666]
} else {
yyv3666 = make([]Volume, yyrl3666)
}
} else {
yyv3666 = make([]Volume, yyrl3666)
}
yyc3666 = true
yyrr3666 = len(yyv3666)
if yyrg3666 {
copy(yyv3666, yyv23666)
}
} else if yyl3666 != len(yyv3666) {
yyv3666 = yyv3666[:yyl3666]
yyc3666 = true
}
yyj3666 := 0
for ; yyj3666 < yyrr3666; yyj3666++ {
yyh3666.ElemContainerState(yyj3666)
if r.TryDecodeAsNil() {
yyv3666[yyj3666] = Volume{}
} else {
yyv3667 := &yyv3666[yyj3666]
yyv3667.CodecDecodeSelf(d)
}
}
if yyrt3666 {
for ; yyj3666 < yyl3666; yyj3666++ {
yyv3666 = append(yyv3666, Volume{})
yyh3666.ElemContainerState(yyj3666)
if r.TryDecodeAsNil() {
yyv3666[yyj3666] = Volume{}
} else {
yyv3668 := &yyv3666[yyj3666]
yyv3668.CodecDecodeSelf(d)
}
}
}
} else {
yyj3666 := 0
for ; !r.CheckBreak(); yyj3666++ {
if yyj3666 >= len(yyv3666) {
yyv3666 = append(yyv3666, Volume{}) // var yyz3666 Volume
yyc3666 = true
}
yyh3666.ElemContainerState(yyj3666)
if yyj3666 < len(yyv3666) {
if r.TryDecodeAsNil() {
yyv3666[yyj3666] = Volume{}
} else {
yyv3669 := &yyv3666[yyj3666]
yyv3669.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3666 < len(yyv3666) {
yyv3666 = yyv3666[:yyj3666]
yyc3666 = true
} else if yyj3666 == 0 && yyv3666 == nil {
yyv3666 = []Volume{}
yyc3666 = true
}
}
yyh3666.End()
if yyc3666 {
*v = yyv3666
}
}
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 _, yyv3670 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3671 := &yyv3670
yy3671.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
yyv3672 := *v
yyh3672, yyl3672 := z.DecSliceHelperStart()
var yyc3672 bool
if yyl3672 == 0 {
if yyv3672 == nil {
yyv3672 = []Container{}
yyc3672 = true
} else if len(yyv3672) != 0 {
yyv3672 = yyv3672[:0]
yyc3672 = true
}
} else if yyl3672 > 0 {
var yyrr3672, yyrl3672 int
var yyrt3672 bool
if yyl3672 > cap(yyv3672) {
yyrg3672 := len(yyv3672) > 0
yyv23672 := yyv3672
yyrl3672, yyrt3672 = z.DecInferLen(yyl3672, z.DecBasicHandle().MaxInitLen, 256)
if yyrt3672 {
if yyrl3672 <= cap(yyv3672) {
yyv3672 = yyv3672[:yyrl3672]
} else {
yyv3672 = make([]Container, yyrl3672)
}
} else {
yyv3672 = make([]Container, yyrl3672)
}
yyc3672 = true
yyrr3672 = len(yyv3672)
if yyrg3672 {
copy(yyv3672, yyv23672)
}
} else if yyl3672 != len(yyv3672) {
yyv3672 = yyv3672[:yyl3672]
yyc3672 = true
}
yyj3672 := 0
for ; yyj3672 < yyrr3672; yyj3672++ {
yyh3672.ElemContainerState(yyj3672)
if r.TryDecodeAsNil() {
yyv3672[yyj3672] = Container{}
} else {
yyv3673 := &yyv3672[yyj3672]
yyv3673.CodecDecodeSelf(d)
}
}
if yyrt3672 {
for ; yyj3672 < yyl3672; yyj3672++ {
yyv3672 = append(yyv3672, Container{})
yyh3672.ElemContainerState(yyj3672)
if r.TryDecodeAsNil() {
yyv3672[yyj3672] = Container{}
} else {
yyv3674 := &yyv3672[yyj3672]
yyv3674.CodecDecodeSelf(d)
}
}
}
} else {
yyj3672 := 0
for ; !r.CheckBreak(); yyj3672++ {
if yyj3672 >= len(yyv3672) {
yyv3672 = append(yyv3672, Container{}) // var yyz3672 Container
yyc3672 = true
}
yyh3672.ElemContainerState(yyj3672)
if yyj3672 < len(yyv3672) {
if r.TryDecodeAsNil() {
yyv3672[yyj3672] = Container{}
} else {
yyv3675 := &yyv3672[yyj3672]
yyv3675.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3672 < len(yyv3672) {
yyv3672 = yyv3672[:yyj3672]
yyc3672 = true
} else if yyj3672 == 0 && yyv3672 == nil {
yyv3672 = []Container{}
yyc3672 = true
}
}
yyh3672.End()
if yyc3672 {
*v = yyv3672
}
}
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 _, yyv3676 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3677 := &yyv3676
yy3677.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
yyv3678 := *v
yyh3678, yyl3678 := z.DecSliceHelperStart()
var yyc3678 bool
if yyl3678 == 0 {
if yyv3678 == nil {
yyv3678 = []LocalObjectReference{}
yyc3678 = true
} else if len(yyv3678) != 0 {
yyv3678 = yyv3678[:0]
yyc3678 = true
}
} else if yyl3678 > 0 {
var yyrr3678, yyrl3678 int
var yyrt3678 bool
if yyl3678 > cap(yyv3678) {
yyrg3678 := len(yyv3678) > 0
yyv23678 := yyv3678
yyrl3678, yyrt3678 = z.DecInferLen(yyl3678, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3678 {
if yyrl3678 <= cap(yyv3678) {
yyv3678 = yyv3678[:yyrl3678]
} else {
yyv3678 = make([]LocalObjectReference, yyrl3678)
}
} else {
yyv3678 = make([]LocalObjectReference, yyrl3678)
}
yyc3678 = true
yyrr3678 = len(yyv3678)
if yyrg3678 {
copy(yyv3678, yyv23678)
}
} else if yyl3678 != len(yyv3678) {
yyv3678 = yyv3678[:yyl3678]
yyc3678 = true
}
yyj3678 := 0
for ; yyj3678 < yyrr3678; yyj3678++ {
yyh3678.ElemContainerState(yyj3678)
if r.TryDecodeAsNil() {
yyv3678[yyj3678] = LocalObjectReference{}
} else {
yyv3679 := &yyv3678[yyj3678]
yyv3679.CodecDecodeSelf(d)
}
}
if yyrt3678 {
for ; yyj3678 < yyl3678; yyj3678++ {
yyv3678 = append(yyv3678, LocalObjectReference{})
yyh3678.ElemContainerState(yyj3678)
if r.TryDecodeAsNil() {
yyv3678[yyj3678] = LocalObjectReference{}
} else {
yyv3680 := &yyv3678[yyj3678]
yyv3680.CodecDecodeSelf(d)
}
}
}
} else {
yyj3678 := 0
for ; !r.CheckBreak(); yyj3678++ {
if yyj3678 >= len(yyv3678) {
yyv3678 = append(yyv3678, LocalObjectReference{}) // var yyz3678 LocalObjectReference
yyc3678 = true
}
yyh3678.ElemContainerState(yyj3678)
if yyj3678 < len(yyv3678) {
if r.TryDecodeAsNil() {
yyv3678[yyj3678] = LocalObjectReference{}
} else {
yyv3681 := &yyv3678[yyj3678]
yyv3681.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3678 < len(yyv3678) {
yyv3678 = yyv3678[:yyj3678]
yyc3678 = true
} else if yyj3678 == 0 && yyv3678 == nil {
yyv3678 = []LocalObjectReference{}
yyc3678 = true
}
}
yyh3678.End()
if yyc3678 {
*v = yyv3678
}
}
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 _, yyv3682 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3683 := &yyv3682
yy3683.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
yyv3684 := *v
yyh3684, yyl3684 := z.DecSliceHelperStart()
var yyc3684 bool
if yyl3684 == 0 {
if yyv3684 == nil {
yyv3684 = []PodCondition{}
yyc3684 = true
} else if len(yyv3684) != 0 {
yyv3684 = yyv3684[:0]
yyc3684 = true
}
} else if yyl3684 > 0 {
var yyrr3684, yyrl3684 int
var yyrt3684 bool
if yyl3684 > cap(yyv3684) {
yyrg3684 := len(yyv3684) > 0
yyv23684 := yyv3684
yyrl3684, yyrt3684 = z.DecInferLen(yyl3684, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3684 {
if yyrl3684 <= cap(yyv3684) {
yyv3684 = yyv3684[:yyrl3684]
} else {
yyv3684 = make([]PodCondition, yyrl3684)
}
} else {
yyv3684 = make([]PodCondition, yyrl3684)
}
yyc3684 = true
yyrr3684 = len(yyv3684)
if yyrg3684 {
copy(yyv3684, yyv23684)
}
} else if yyl3684 != len(yyv3684) {
yyv3684 = yyv3684[:yyl3684]
yyc3684 = true
}
yyj3684 := 0
for ; yyj3684 < yyrr3684; yyj3684++ {
yyh3684.ElemContainerState(yyj3684)
if r.TryDecodeAsNil() {
yyv3684[yyj3684] = PodCondition{}
} else {
yyv3685 := &yyv3684[yyj3684]
yyv3685.CodecDecodeSelf(d)
}
}
if yyrt3684 {
for ; yyj3684 < yyl3684; yyj3684++ {
yyv3684 = append(yyv3684, PodCondition{})
yyh3684.ElemContainerState(yyj3684)
if r.TryDecodeAsNil() {
yyv3684[yyj3684] = PodCondition{}
} else {
yyv3686 := &yyv3684[yyj3684]
yyv3686.CodecDecodeSelf(d)
}
}
}
} else {
yyj3684 := 0
for ; !r.CheckBreak(); yyj3684++ {
if yyj3684 >= len(yyv3684) {
yyv3684 = append(yyv3684, PodCondition{}) // var yyz3684 PodCondition
yyc3684 = true
}
yyh3684.ElemContainerState(yyj3684)
if yyj3684 < len(yyv3684) {
if r.TryDecodeAsNil() {
yyv3684[yyj3684] = PodCondition{}
} else {
yyv3687 := &yyv3684[yyj3684]
yyv3687.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3684 < len(yyv3684) {
yyv3684 = yyv3684[:yyj3684]
yyc3684 = true
} else if yyj3684 == 0 && yyv3684 == nil {
yyv3684 = []PodCondition{}
yyc3684 = true
}
}
yyh3684.End()
if yyc3684 {
*v = yyv3684
}
}
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 _, yyv3688 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3689 := &yyv3688
yy3689.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
yyv3690 := *v
yyh3690, yyl3690 := z.DecSliceHelperStart()
var yyc3690 bool
if yyl3690 == 0 {
if yyv3690 == nil {
yyv3690 = []ContainerStatus{}
yyc3690 = true
} else if len(yyv3690) != 0 {
yyv3690 = yyv3690[:0]
yyc3690 = true
}
} else if yyl3690 > 0 {
var yyrr3690, yyrl3690 int
var yyrt3690 bool
if yyl3690 > cap(yyv3690) {
yyrg3690 := len(yyv3690) > 0
yyv23690 := yyv3690
yyrl3690, yyrt3690 = z.DecInferLen(yyl3690, z.DecBasicHandle().MaxInitLen, 128)
if yyrt3690 {
if yyrl3690 <= cap(yyv3690) {
yyv3690 = yyv3690[:yyrl3690]
} else {
yyv3690 = make([]ContainerStatus, yyrl3690)
}
} else {
yyv3690 = make([]ContainerStatus, yyrl3690)
}
yyc3690 = true
yyrr3690 = len(yyv3690)
if yyrg3690 {
copy(yyv3690, yyv23690)
}
} else if yyl3690 != len(yyv3690) {
yyv3690 = yyv3690[:yyl3690]
yyc3690 = true
}
yyj3690 := 0
for ; yyj3690 < yyrr3690; yyj3690++ {
yyh3690.ElemContainerState(yyj3690)
if r.TryDecodeAsNil() {
yyv3690[yyj3690] = ContainerStatus{}
} else {
yyv3691 := &yyv3690[yyj3690]
yyv3691.CodecDecodeSelf(d)
}
}
if yyrt3690 {
for ; yyj3690 < yyl3690; yyj3690++ {
yyv3690 = append(yyv3690, ContainerStatus{})
yyh3690.ElemContainerState(yyj3690)
if r.TryDecodeAsNil() {
yyv3690[yyj3690] = ContainerStatus{}
} else {
yyv3692 := &yyv3690[yyj3690]
yyv3692.CodecDecodeSelf(d)
}
}
}
} else {
yyj3690 := 0
for ; !r.CheckBreak(); yyj3690++ {
if yyj3690 >= len(yyv3690) {
yyv3690 = append(yyv3690, ContainerStatus{}) // var yyz3690 ContainerStatus
yyc3690 = true
}
yyh3690.ElemContainerState(yyj3690)
if yyj3690 < len(yyv3690) {
if r.TryDecodeAsNil() {
yyv3690[yyj3690] = ContainerStatus{}
} else {
yyv3693 := &yyv3690[yyj3690]
yyv3693.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3690 < len(yyv3690) {
yyv3690 = yyv3690[:yyj3690]
yyc3690 = true
} else if yyj3690 == 0 && yyv3690 == nil {
yyv3690 = []ContainerStatus{}
yyc3690 = true
}
}
yyh3690.End()
if yyc3690 {
*v = yyv3690
}
}
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 _, yyv3694 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3695 := &yyv3694
yy3695.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
yyv3696 := *v
yyh3696, yyl3696 := z.DecSliceHelperStart()
var yyc3696 bool
if yyl3696 == 0 {
if yyv3696 == nil {
yyv3696 = []PodTemplate{}
yyc3696 = true
} else if len(yyv3696) != 0 {
yyv3696 = yyv3696[:0]
yyc3696 = true
}
} else if yyl3696 > 0 {
var yyrr3696, yyrl3696 int
var yyrt3696 bool
if yyl3696 > cap(yyv3696) {
yyrg3696 := len(yyv3696) > 0
yyv23696 := yyv3696
yyrl3696, yyrt3696 = z.DecInferLen(yyl3696, z.DecBasicHandle().MaxInitLen, 520)
if yyrt3696 {
if yyrl3696 <= cap(yyv3696) {
yyv3696 = yyv3696[:yyrl3696]
} else {
yyv3696 = make([]PodTemplate, yyrl3696)
}
} else {
yyv3696 = make([]PodTemplate, yyrl3696)
}
yyc3696 = true
yyrr3696 = len(yyv3696)
if yyrg3696 {
copy(yyv3696, yyv23696)
}
} else if yyl3696 != len(yyv3696) {
yyv3696 = yyv3696[:yyl3696]
yyc3696 = true
}
yyj3696 := 0
for ; yyj3696 < yyrr3696; yyj3696++ {
yyh3696.ElemContainerState(yyj3696)
if r.TryDecodeAsNil() {
yyv3696[yyj3696] = PodTemplate{}
} else {
yyv3697 := &yyv3696[yyj3696]
yyv3697.CodecDecodeSelf(d)
}
}
if yyrt3696 {
for ; yyj3696 < yyl3696; yyj3696++ {
yyv3696 = append(yyv3696, PodTemplate{})
yyh3696.ElemContainerState(yyj3696)
if r.TryDecodeAsNil() {
yyv3696[yyj3696] = PodTemplate{}
} else {
yyv3698 := &yyv3696[yyj3696]
yyv3698.CodecDecodeSelf(d)
}
}
}
} else {
yyj3696 := 0
for ; !r.CheckBreak(); yyj3696++ {
if yyj3696 >= len(yyv3696) {
yyv3696 = append(yyv3696, PodTemplate{}) // var yyz3696 PodTemplate
yyc3696 = true
}
yyh3696.ElemContainerState(yyj3696)
if yyj3696 < len(yyv3696) {
if r.TryDecodeAsNil() {
yyv3696[yyj3696] = PodTemplate{}
} else {
yyv3699 := &yyv3696[yyj3696]
yyv3699.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3696 < len(yyv3696) {
yyv3696 = yyv3696[:yyj3696]
yyc3696 = true
} else if yyj3696 == 0 && yyv3696 == nil {
yyv3696 = []PodTemplate{}
yyc3696 = true
}
}
yyh3696.End()
if yyc3696 {
*v = yyv3696
}
}
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 _, yyv3700 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3701 := &yyv3700
yy3701.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
yyv3702 := *v
yyh3702, yyl3702 := z.DecSliceHelperStart()
var yyc3702 bool
if yyl3702 == 0 {
if yyv3702 == nil {
yyv3702 = []ReplicationController{}
yyc3702 = true
} else if len(yyv3702) != 0 {
yyv3702 = yyv3702[:0]
yyc3702 = true
}
} else if yyl3702 > 0 {
var yyrr3702, yyrl3702 int
var yyrt3702 bool
if yyl3702 > cap(yyv3702) {
yyrg3702 := len(yyv3702) > 0
yyv23702 := yyv3702
yyrl3702, yyrt3702 = z.DecInferLen(yyl3702, z.DecBasicHandle().MaxInitLen, 232)
if yyrt3702 {
if yyrl3702 <= cap(yyv3702) {
yyv3702 = yyv3702[:yyrl3702]
} else {
yyv3702 = make([]ReplicationController, yyrl3702)
}
} else {
yyv3702 = make([]ReplicationController, yyrl3702)
}
yyc3702 = true
yyrr3702 = len(yyv3702)
if yyrg3702 {
copy(yyv3702, yyv23702)
}
} else if yyl3702 != len(yyv3702) {
yyv3702 = yyv3702[:yyl3702]
yyc3702 = true
}
yyj3702 := 0
for ; yyj3702 < yyrr3702; yyj3702++ {
yyh3702.ElemContainerState(yyj3702)
if r.TryDecodeAsNil() {
yyv3702[yyj3702] = ReplicationController{}
} else {
yyv3703 := &yyv3702[yyj3702]
yyv3703.CodecDecodeSelf(d)
}
}
if yyrt3702 {
for ; yyj3702 < yyl3702; yyj3702++ {
yyv3702 = append(yyv3702, ReplicationController{})
yyh3702.ElemContainerState(yyj3702)
if r.TryDecodeAsNil() {
yyv3702[yyj3702] = ReplicationController{}
} else {
yyv3704 := &yyv3702[yyj3702]
yyv3704.CodecDecodeSelf(d)
}
}
}
} else {
yyj3702 := 0
for ; !r.CheckBreak(); yyj3702++ {
if yyj3702 >= len(yyv3702) {
yyv3702 = append(yyv3702, ReplicationController{}) // var yyz3702 ReplicationController
yyc3702 = true
}
yyh3702.ElemContainerState(yyj3702)
if yyj3702 < len(yyv3702) {
if r.TryDecodeAsNil() {
yyv3702[yyj3702] = ReplicationController{}
} else {
yyv3705 := &yyv3702[yyj3702]
yyv3705.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3702 < len(yyv3702) {
yyv3702 = yyv3702[:yyj3702]
yyc3702 = true
} else if yyj3702 == 0 && yyv3702 == nil {
yyv3702 = []ReplicationController{}
yyc3702 = true
}
}
yyh3702.End()
if yyc3702 {
*v = yyv3702
}
}
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 _, yyv3706 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3707 := &yyv3706
yy3707.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
yyv3708 := *v
yyh3708, yyl3708 := z.DecSliceHelperStart()
var yyc3708 bool
if yyl3708 == 0 {
if yyv3708 == nil {
yyv3708 = []Service{}
yyc3708 = true
} else if len(yyv3708) != 0 {
yyv3708 = yyv3708[:0]
yyc3708 = true
}
} else if yyl3708 > 0 {
var yyrr3708, yyrl3708 int
var yyrt3708 bool
if yyl3708 > cap(yyv3708) {
yyrg3708 := len(yyv3708) > 0
yyv23708 := yyv3708
yyrl3708, yyrt3708 = z.DecInferLen(yyl3708, z.DecBasicHandle().MaxInitLen, 336)
if yyrt3708 {
if yyrl3708 <= cap(yyv3708) {
yyv3708 = yyv3708[:yyrl3708]
} else {
yyv3708 = make([]Service, yyrl3708)
}
} else {
yyv3708 = make([]Service, yyrl3708)
}
yyc3708 = true
yyrr3708 = len(yyv3708)
if yyrg3708 {
copy(yyv3708, yyv23708)
}
} else if yyl3708 != len(yyv3708) {
yyv3708 = yyv3708[:yyl3708]
yyc3708 = true
}
yyj3708 := 0
for ; yyj3708 < yyrr3708; yyj3708++ {
yyh3708.ElemContainerState(yyj3708)
if r.TryDecodeAsNil() {
yyv3708[yyj3708] = Service{}
} else {
yyv3709 := &yyv3708[yyj3708]
yyv3709.CodecDecodeSelf(d)
}
}
if yyrt3708 {
for ; yyj3708 < yyl3708; yyj3708++ {
yyv3708 = append(yyv3708, Service{})
yyh3708.ElemContainerState(yyj3708)
if r.TryDecodeAsNil() {
yyv3708[yyj3708] = Service{}
} else {
yyv3710 := &yyv3708[yyj3708]
yyv3710.CodecDecodeSelf(d)
}
}
}
} else {
yyj3708 := 0
for ; !r.CheckBreak(); yyj3708++ {
if yyj3708 >= len(yyv3708) {
yyv3708 = append(yyv3708, Service{}) // var yyz3708 Service
yyc3708 = true
}
yyh3708.ElemContainerState(yyj3708)
if yyj3708 < len(yyv3708) {
if r.TryDecodeAsNil() {
yyv3708[yyj3708] = Service{}
} else {
yyv3711 := &yyv3708[yyj3708]
yyv3711.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3708 < len(yyv3708) {
yyv3708 = yyv3708[:yyj3708]
yyc3708 = true
} else if yyj3708 == 0 && yyv3708 == nil {
yyv3708 = []Service{}
yyc3708 = true
}
}
yyh3708.End()
if yyc3708 {
*v = yyv3708
}
}
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 _, yyv3712 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3713 := &yyv3712
yy3713.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
yyv3714 := *v
yyh3714, yyl3714 := z.DecSliceHelperStart()
var yyc3714 bool
if yyl3714 == 0 {
if yyv3714 == nil {
yyv3714 = []LoadBalancerIngress{}
yyc3714 = true
} else if len(yyv3714) != 0 {
yyv3714 = yyv3714[:0]
yyc3714 = true
}
} else if yyl3714 > 0 {
var yyrr3714, yyrl3714 int
var yyrt3714 bool
if yyl3714 > cap(yyv3714) {
yyrg3714 := len(yyv3714) > 0
yyv23714 := yyv3714
yyrl3714, yyrt3714 = z.DecInferLen(yyl3714, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3714 {
if yyrl3714 <= cap(yyv3714) {
yyv3714 = yyv3714[:yyrl3714]
} else {
yyv3714 = make([]LoadBalancerIngress, yyrl3714)
}
} else {
yyv3714 = make([]LoadBalancerIngress, yyrl3714)
}
yyc3714 = true
yyrr3714 = len(yyv3714)
if yyrg3714 {
copy(yyv3714, yyv23714)
}
} else if yyl3714 != len(yyv3714) {
yyv3714 = yyv3714[:yyl3714]
yyc3714 = true
}
yyj3714 := 0
for ; yyj3714 < yyrr3714; yyj3714++ {
yyh3714.ElemContainerState(yyj3714)
if r.TryDecodeAsNil() {
yyv3714[yyj3714] = LoadBalancerIngress{}
} else {
yyv3715 := &yyv3714[yyj3714]
yyv3715.CodecDecodeSelf(d)
}
}
if yyrt3714 {
for ; yyj3714 < yyl3714; yyj3714++ {
yyv3714 = append(yyv3714, LoadBalancerIngress{})
yyh3714.ElemContainerState(yyj3714)
if r.TryDecodeAsNil() {
yyv3714[yyj3714] = LoadBalancerIngress{}
} else {
yyv3716 := &yyv3714[yyj3714]
yyv3716.CodecDecodeSelf(d)
}
}
}
} else {
yyj3714 := 0
for ; !r.CheckBreak(); yyj3714++ {
if yyj3714 >= len(yyv3714) {
yyv3714 = append(yyv3714, LoadBalancerIngress{}) // var yyz3714 LoadBalancerIngress
yyc3714 = true
}
yyh3714.ElemContainerState(yyj3714)
if yyj3714 < len(yyv3714) {
if r.TryDecodeAsNil() {
yyv3714[yyj3714] = LoadBalancerIngress{}
} else {
yyv3717 := &yyv3714[yyj3714]
yyv3717.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3714 < len(yyv3714) {
yyv3714 = yyv3714[:yyj3714]
yyc3714 = true
} else if yyj3714 == 0 && yyv3714 == nil {
yyv3714 = []LoadBalancerIngress{}
yyc3714 = true
}
}
yyh3714.End()
if yyc3714 {
*v = yyv3714
}
}
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 _, yyv3718 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3719 := &yyv3718
yy3719.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
yyv3720 := *v
yyh3720, yyl3720 := z.DecSliceHelperStart()
var yyc3720 bool
if yyl3720 == 0 {
if yyv3720 == nil {
yyv3720 = []ServicePort{}
yyc3720 = true
} else if len(yyv3720) != 0 {
yyv3720 = yyv3720[:0]
yyc3720 = true
}
} else if yyl3720 > 0 {
var yyrr3720, yyrl3720 int
var yyrt3720 bool
if yyl3720 > cap(yyv3720) {
yyrg3720 := len(yyv3720) > 0
yyv23720 := yyv3720
yyrl3720, yyrt3720 = z.DecInferLen(yyl3720, z.DecBasicHandle().MaxInitLen, 80)
if yyrt3720 {
if yyrl3720 <= cap(yyv3720) {
yyv3720 = yyv3720[:yyrl3720]
} else {
yyv3720 = make([]ServicePort, yyrl3720)
}
} else {
yyv3720 = make([]ServicePort, yyrl3720)
}
yyc3720 = true
yyrr3720 = len(yyv3720)
if yyrg3720 {
copy(yyv3720, yyv23720)
}
} else if yyl3720 != len(yyv3720) {
yyv3720 = yyv3720[:yyl3720]
yyc3720 = true
}
yyj3720 := 0
for ; yyj3720 < yyrr3720; yyj3720++ {
yyh3720.ElemContainerState(yyj3720)
if r.TryDecodeAsNil() {
yyv3720[yyj3720] = ServicePort{}
} else {
yyv3721 := &yyv3720[yyj3720]
yyv3721.CodecDecodeSelf(d)
}
}
if yyrt3720 {
for ; yyj3720 < yyl3720; yyj3720++ {
yyv3720 = append(yyv3720, ServicePort{})
yyh3720.ElemContainerState(yyj3720)
if r.TryDecodeAsNil() {
yyv3720[yyj3720] = ServicePort{}
} else {
yyv3722 := &yyv3720[yyj3720]
yyv3722.CodecDecodeSelf(d)
}
}
}
} else {
yyj3720 := 0
for ; !r.CheckBreak(); yyj3720++ {
if yyj3720 >= len(yyv3720) {
yyv3720 = append(yyv3720, ServicePort{}) // var yyz3720 ServicePort
yyc3720 = true
}
yyh3720.ElemContainerState(yyj3720)
if yyj3720 < len(yyv3720) {
if r.TryDecodeAsNil() {
yyv3720[yyj3720] = ServicePort{}
} else {
yyv3723 := &yyv3720[yyj3720]
yyv3723.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3720 < len(yyv3720) {
yyv3720 = yyv3720[:yyj3720]
yyc3720 = true
} else if yyj3720 == 0 && yyv3720 == nil {
yyv3720 = []ServicePort{}
yyc3720 = true
}
}
yyh3720.End()
if yyc3720 {
*v = yyv3720
}
}
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 _, yyv3724 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3725 := &yyv3724
yy3725.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
yyv3726 := *v
yyh3726, yyl3726 := z.DecSliceHelperStart()
var yyc3726 bool
if yyl3726 == 0 {
if yyv3726 == nil {
yyv3726 = []ObjectReference{}
yyc3726 = true
} else if len(yyv3726) != 0 {
yyv3726 = yyv3726[:0]
yyc3726 = true
}
} else if yyl3726 > 0 {
var yyrr3726, yyrl3726 int
var yyrt3726 bool
if yyl3726 > cap(yyv3726) {
yyrg3726 := len(yyv3726) > 0
yyv23726 := yyv3726
yyrl3726, yyrt3726 = z.DecInferLen(yyl3726, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3726 {
if yyrl3726 <= cap(yyv3726) {
yyv3726 = yyv3726[:yyrl3726]
} else {
yyv3726 = make([]ObjectReference, yyrl3726)
}
} else {
yyv3726 = make([]ObjectReference, yyrl3726)
}
yyc3726 = true
yyrr3726 = len(yyv3726)
if yyrg3726 {
copy(yyv3726, yyv23726)
}
} else if yyl3726 != len(yyv3726) {
yyv3726 = yyv3726[:yyl3726]
yyc3726 = true
}
yyj3726 := 0
for ; yyj3726 < yyrr3726; yyj3726++ {
yyh3726.ElemContainerState(yyj3726)
if r.TryDecodeAsNil() {
yyv3726[yyj3726] = ObjectReference{}
} else {
yyv3727 := &yyv3726[yyj3726]
yyv3727.CodecDecodeSelf(d)
}
}
if yyrt3726 {
for ; yyj3726 < yyl3726; yyj3726++ {
yyv3726 = append(yyv3726, ObjectReference{})
yyh3726.ElemContainerState(yyj3726)
if r.TryDecodeAsNil() {
yyv3726[yyj3726] = ObjectReference{}
} else {
yyv3728 := &yyv3726[yyj3726]
yyv3728.CodecDecodeSelf(d)
}
}
}
} else {
yyj3726 := 0
for ; !r.CheckBreak(); yyj3726++ {
if yyj3726 >= len(yyv3726) {
yyv3726 = append(yyv3726, ObjectReference{}) // var yyz3726 ObjectReference
yyc3726 = true
}
yyh3726.ElemContainerState(yyj3726)
if yyj3726 < len(yyv3726) {
if r.TryDecodeAsNil() {
yyv3726[yyj3726] = ObjectReference{}
} else {
yyv3729 := &yyv3726[yyj3726]
yyv3729.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3726 < len(yyv3726) {
yyv3726 = yyv3726[:yyj3726]
yyc3726 = true
} else if yyj3726 == 0 && yyv3726 == nil {
yyv3726 = []ObjectReference{}
yyc3726 = true
}
}
yyh3726.End()
if yyc3726 {
*v = yyv3726
}
}
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 _, yyv3730 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3731 := &yyv3730
yy3731.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
yyv3732 := *v
yyh3732, yyl3732 := z.DecSliceHelperStart()
var yyc3732 bool
if yyl3732 == 0 {
if yyv3732 == nil {
yyv3732 = []ServiceAccount{}
yyc3732 = true
} else if len(yyv3732) != 0 {
yyv3732 = yyv3732[:0]
yyc3732 = true
}
} else if yyl3732 > 0 {
var yyrr3732, yyrl3732 int
var yyrt3732 bool
if yyl3732 > cap(yyv3732) {
yyrg3732 := len(yyv3732) > 0
yyv23732 := yyv3732
yyrl3732, yyrt3732 = z.DecInferLen(yyl3732, z.DecBasicHandle().MaxInitLen, 240)
if yyrt3732 {
if yyrl3732 <= cap(yyv3732) {
yyv3732 = yyv3732[:yyrl3732]
} else {
yyv3732 = make([]ServiceAccount, yyrl3732)
}
} else {
yyv3732 = make([]ServiceAccount, yyrl3732)
}
yyc3732 = true
yyrr3732 = len(yyv3732)
if yyrg3732 {
copy(yyv3732, yyv23732)
}
} else if yyl3732 != len(yyv3732) {
yyv3732 = yyv3732[:yyl3732]
yyc3732 = true
}
yyj3732 := 0
for ; yyj3732 < yyrr3732; yyj3732++ {
yyh3732.ElemContainerState(yyj3732)
if r.TryDecodeAsNil() {
yyv3732[yyj3732] = ServiceAccount{}
} else {
yyv3733 := &yyv3732[yyj3732]
yyv3733.CodecDecodeSelf(d)
}
}
if yyrt3732 {
for ; yyj3732 < yyl3732; yyj3732++ {
yyv3732 = append(yyv3732, ServiceAccount{})
yyh3732.ElemContainerState(yyj3732)
if r.TryDecodeAsNil() {
yyv3732[yyj3732] = ServiceAccount{}
} else {
yyv3734 := &yyv3732[yyj3732]
yyv3734.CodecDecodeSelf(d)
}
}
}
} else {
yyj3732 := 0
for ; !r.CheckBreak(); yyj3732++ {
if yyj3732 >= len(yyv3732) {
yyv3732 = append(yyv3732, ServiceAccount{}) // var yyz3732 ServiceAccount
yyc3732 = true
}
yyh3732.ElemContainerState(yyj3732)
if yyj3732 < len(yyv3732) {
if r.TryDecodeAsNil() {
yyv3732[yyj3732] = ServiceAccount{}
} else {
yyv3735 := &yyv3732[yyj3732]
yyv3735.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3732 < len(yyv3732) {
yyv3732 = yyv3732[:yyj3732]
yyc3732 = true
} else if yyj3732 == 0 && yyv3732 == nil {
yyv3732 = []ServiceAccount{}
yyc3732 = true
}
}
yyh3732.End()
if yyc3732 {
*v = yyv3732
}
}
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 _, yyv3736 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3737 := &yyv3736
yy3737.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
yyv3738 := *v
yyh3738, yyl3738 := z.DecSliceHelperStart()
var yyc3738 bool
if yyl3738 == 0 {
if yyv3738 == nil {
yyv3738 = []EndpointSubset{}
yyc3738 = true
} else if len(yyv3738) != 0 {
yyv3738 = yyv3738[:0]
yyc3738 = true
}
} else if yyl3738 > 0 {
var yyrr3738, yyrl3738 int
var yyrt3738 bool
if yyl3738 > cap(yyv3738) {
yyrg3738 := len(yyv3738) > 0
yyv23738 := yyv3738
yyrl3738, yyrt3738 = z.DecInferLen(yyl3738, z.DecBasicHandle().MaxInitLen, 72)
if yyrt3738 {
if yyrl3738 <= cap(yyv3738) {
yyv3738 = yyv3738[:yyrl3738]
} else {
yyv3738 = make([]EndpointSubset, yyrl3738)
}
} else {
yyv3738 = make([]EndpointSubset, yyrl3738)
}
yyc3738 = true
yyrr3738 = len(yyv3738)
if yyrg3738 {
copy(yyv3738, yyv23738)
}
} else if yyl3738 != len(yyv3738) {
yyv3738 = yyv3738[:yyl3738]
yyc3738 = true
}
yyj3738 := 0
for ; yyj3738 < yyrr3738; yyj3738++ {
yyh3738.ElemContainerState(yyj3738)
if r.TryDecodeAsNil() {
yyv3738[yyj3738] = EndpointSubset{}
} else {
yyv3739 := &yyv3738[yyj3738]
yyv3739.CodecDecodeSelf(d)
}
}
if yyrt3738 {
for ; yyj3738 < yyl3738; yyj3738++ {
yyv3738 = append(yyv3738, EndpointSubset{})
yyh3738.ElemContainerState(yyj3738)
if r.TryDecodeAsNil() {
yyv3738[yyj3738] = EndpointSubset{}
} else {
yyv3740 := &yyv3738[yyj3738]
yyv3740.CodecDecodeSelf(d)
}
}
}
} else {
yyj3738 := 0
for ; !r.CheckBreak(); yyj3738++ {
if yyj3738 >= len(yyv3738) {
yyv3738 = append(yyv3738, EndpointSubset{}) // var yyz3738 EndpointSubset
yyc3738 = true
}
yyh3738.ElemContainerState(yyj3738)
if yyj3738 < len(yyv3738) {
if r.TryDecodeAsNil() {
yyv3738[yyj3738] = EndpointSubset{}
} else {
yyv3741 := &yyv3738[yyj3738]
yyv3741.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3738 < len(yyv3738) {
yyv3738 = yyv3738[:yyj3738]
yyc3738 = true
} else if yyj3738 == 0 && yyv3738 == nil {
yyv3738 = []EndpointSubset{}
yyc3738 = true
}
}
yyh3738.End()
if yyc3738 {
*v = yyv3738
}
}
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 _, yyv3742 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3743 := &yyv3742
yy3743.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
yyv3744 := *v
yyh3744, yyl3744 := z.DecSliceHelperStart()
var yyc3744 bool
if yyl3744 == 0 {
if yyv3744 == nil {
yyv3744 = []EndpointAddress{}
yyc3744 = true
} else if len(yyv3744) != 0 {
yyv3744 = yyv3744[:0]
yyc3744 = true
}
} else if yyl3744 > 0 {
var yyrr3744, yyrl3744 int
var yyrt3744 bool
if yyl3744 > cap(yyv3744) {
yyrg3744 := len(yyv3744) > 0
yyv23744 := yyv3744
yyrl3744, yyrt3744 = z.DecInferLen(yyl3744, z.DecBasicHandle().MaxInitLen, 24)
if yyrt3744 {
if yyrl3744 <= cap(yyv3744) {
yyv3744 = yyv3744[:yyrl3744]
} else {
yyv3744 = make([]EndpointAddress, yyrl3744)
}
} else {
yyv3744 = make([]EndpointAddress, yyrl3744)
}
yyc3744 = true
yyrr3744 = len(yyv3744)
if yyrg3744 {
copy(yyv3744, yyv23744)
}
} else if yyl3744 != len(yyv3744) {
yyv3744 = yyv3744[:yyl3744]
yyc3744 = true
}
yyj3744 := 0
for ; yyj3744 < yyrr3744; yyj3744++ {
yyh3744.ElemContainerState(yyj3744)
if r.TryDecodeAsNil() {
yyv3744[yyj3744] = EndpointAddress{}
} else {
yyv3745 := &yyv3744[yyj3744]
yyv3745.CodecDecodeSelf(d)
}
}
if yyrt3744 {
for ; yyj3744 < yyl3744; yyj3744++ {
yyv3744 = append(yyv3744, EndpointAddress{})
yyh3744.ElemContainerState(yyj3744)
if r.TryDecodeAsNil() {
yyv3744[yyj3744] = EndpointAddress{}
} else {
yyv3746 := &yyv3744[yyj3744]
yyv3746.CodecDecodeSelf(d)
}
}
}
} else {
yyj3744 := 0
for ; !r.CheckBreak(); yyj3744++ {
if yyj3744 >= len(yyv3744) {
yyv3744 = append(yyv3744, EndpointAddress{}) // var yyz3744 EndpointAddress
yyc3744 = true
}
yyh3744.ElemContainerState(yyj3744)
if yyj3744 < len(yyv3744) {
if r.TryDecodeAsNil() {
yyv3744[yyj3744] = EndpointAddress{}
} else {
yyv3747 := &yyv3744[yyj3744]
yyv3747.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3744 < len(yyv3744) {
yyv3744 = yyv3744[:yyj3744]
yyc3744 = true
} else if yyj3744 == 0 && yyv3744 == nil {
yyv3744 = []EndpointAddress{}
yyc3744 = true
}
}
yyh3744.End()
if yyc3744 {
*v = yyv3744
}
}
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 _, yyv3748 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3749 := &yyv3748
yy3749.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
yyv3750 := *v
yyh3750, yyl3750 := z.DecSliceHelperStart()
var yyc3750 bool
if yyl3750 == 0 {
if yyv3750 == nil {
yyv3750 = []EndpointPort{}
yyc3750 = true
} else if len(yyv3750) != 0 {
yyv3750 = yyv3750[:0]
yyc3750 = true
}
} else if yyl3750 > 0 {
var yyrr3750, yyrl3750 int
var yyrt3750 bool
if yyl3750 > cap(yyv3750) {
yyrg3750 := len(yyv3750) > 0
yyv23750 := yyv3750
yyrl3750, yyrt3750 = z.DecInferLen(yyl3750, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3750 {
if yyrl3750 <= cap(yyv3750) {
yyv3750 = yyv3750[:yyrl3750]
} else {
yyv3750 = make([]EndpointPort, yyrl3750)
}
} else {
yyv3750 = make([]EndpointPort, yyrl3750)
}
yyc3750 = true
yyrr3750 = len(yyv3750)
if yyrg3750 {
copy(yyv3750, yyv23750)
}
} else if yyl3750 != len(yyv3750) {
yyv3750 = yyv3750[:yyl3750]
yyc3750 = true
}
yyj3750 := 0
for ; yyj3750 < yyrr3750; yyj3750++ {
yyh3750.ElemContainerState(yyj3750)
if r.TryDecodeAsNil() {
yyv3750[yyj3750] = EndpointPort{}
} else {
yyv3751 := &yyv3750[yyj3750]
yyv3751.CodecDecodeSelf(d)
}
}
if yyrt3750 {
for ; yyj3750 < yyl3750; yyj3750++ {
yyv3750 = append(yyv3750, EndpointPort{})
yyh3750.ElemContainerState(yyj3750)
if r.TryDecodeAsNil() {
yyv3750[yyj3750] = EndpointPort{}
} else {
yyv3752 := &yyv3750[yyj3750]
yyv3752.CodecDecodeSelf(d)
}
}
}
} else {
yyj3750 := 0
for ; !r.CheckBreak(); yyj3750++ {
if yyj3750 >= len(yyv3750) {
yyv3750 = append(yyv3750, EndpointPort{}) // var yyz3750 EndpointPort
yyc3750 = true
}
yyh3750.ElemContainerState(yyj3750)
if yyj3750 < len(yyv3750) {
if r.TryDecodeAsNil() {
yyv3750[yyj3750] = EndpointPort{}
} else {
yyv3753 := &yyv3750[yyj3750]
yyv3753.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3750 < len(yyv3750) {
yyv3750 = yyv3750[:yyj3750]
yyc3750 = true
} else if yyj3750 == 0 && yyv3750 == nil {
yyv3750 = []EndpointPort{}
yyc3750 = true
}
}
yyh3750.End()
if yyc3750 {
*v = yyv3750
}
}
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 _, yyv3754 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3755 := &yyv3754
yy3755.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
yyv3756 := *v
yyh3756, yyl3756 := z.DecSliceHelperStart()
var yyc3756 bool
if yyl3756 == 0 {
if yyv3756 == nil {
yyv3756 = []Endpoints{}
yyc3756 = true
} else if len(yyv3756) != 0 {
yyv3756 = yyv3756[:0]
yyc3756 = true
}
} else if yyl3756 > 0 {
var yyrr3756, yyrl3756 int
var yyrt3756 bool
if yyl3756 > cap(yyv3756) {
yyrg3756 := len(yyv3756) > 0
yyv23756 := yyv3756
yyrl3756, yyrt3756 = z.DecInferLen(yyl3756, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3756 {
if yyrl3756 <= cap(yyv3756) {
yyv3756 = yyv3756[:yyrl3756]
} else {
yyv3756 = make([]Endpoints, yyrl3756)
}
} else {
yyv3756 = make([]Endpoints, yyrl3756)
}
yyc3756 = true
yyrr3756 = len(yyv3756)
if yyrg3756 {
copy(yyv3756, yyv23756)
}
} else if yyl3756 != len(yyv3756) {
yyv3756 = yyv3756[:yyl3756]
yyc3756 = true
}
yyj3756 := 0
for ; yyj3756 < yyrr3756; yyj3756++ {
yyh3756.ElemContainerState(yyj3756)
if r.TryDecodeAsNil() {
yyv3756[yyj3756] = Endpoints{}
} else {
yyv3757 := &yyv3756[yyj3756]
yyv3757.CodecDecodeSelf(d)
}
}
if yyrt3756 {
for ; yyj3756 < yyl3756; yyj3756++ {
yyv3756 = append(yyv3756, Endpoints{})
yyh3756.ElemContainerState(yyj3756)
if r.TryDecodeAsNil() {
yyv3756[yyj3756] = Endpoints{}
} else {
yyv3758 := &yyv3756[yyj3756]
yyv3758.CodecDecodeSelf(d)
}
}
}
} else {
yyj3756 := 0
for ; !r.CheckBreak(); yyj3756++ {
if yyj3756 >= len(yyv3756) {
yyv3756 = append(yyv3756, Endpoints{}) // var yyz3756 Endpoints
yyc3756 = true
}
yyh3756.ElemContainerState(yyj3756)
if yyj3756 < len(yyv3756) {
if r.TryDecodeAsNil() {
yyv3756[yyj3756] = Endpoints{}
} else {
yyv3759 := &yyv3756[yyj3756]
yyv3759.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3756 < len(yyv3756) {
yyv3756 = yyv3756[:yyj3756]
yyc3756 = true
} else if yyj3756 == 0 && yyv3756 == nil {
yyv3756 = []Endpoints{}
yyc3756 = true
}
}
yyh3756.End()
if yyc3756 {
*v = yyv3756
}
}
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 _, yyv3760 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3761 := &yyv3760
yy3761.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
yyv3762 := *v
yyh3762, yyl3762 := z.DecSliceHelperStart()
var yyc3762 bool
if yyl3762 == 0 {
if yyv3762 == nil {
yyv3762 = []NodeCondition{}
yyc3762 = true
} else if len(yyv3762) != 0 {
yyv3762 = yyv3762[:0]
yyc3762 = true
}
} else if yyl3762 > 0 {
var yyrr3762, yyrl3762 int
var yyrt3762 bool
if yyl3762 > cap(yyv3762) {
yyrg3762 := len(yyv3762) > 0
yyv23762 := yyv3762
yyrl3762, yyrt3762 = z.DecInferLen(yyl3762, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3762 {
if yyrl3762 <= cap(yyv3762) {
yyv3762 = yyv3762[:yyrl3762]
} else {
yyv3762 = make([]NodeCondition, yyrl3762)
}
} else {
yyv3762 = make([]NodeCondition, yyrl3762)
}
yyc3762 = true
yyrr3762 = len(yyv3762)
if yyrg3762 {
copy(yyv3762, yyv23762)
}
} else if yyl3762 != len(yyv3762) {
yyv3762 = yyv3762[:yyl3762]
yyc3762 = true
}
yyj3762 := 0
for ; yyj3762 < yyrr3762; yyj3762++ {
yyh3762.ElemContainerState(yyj3762)
if r.TryDecodeAsNil() {
yyv3762[yyj3762] = NodeCondition{}
} else {
yyv3763 := &yyv3762[yyj3762]
yyv3763.CodecDecodeSelf(d)
}
}
if yyrt3762 {
for ; yyj3762 < yyl3762; yyj3762++ {
yyv3762 = append(yyv3762, NodeCondition{})
yyh3762.ElemContainerState(yyj3762)
if r.TryDecodeAsNil() {
yyv3762[yyj3762] = NodeCondition{}
} else {
yyv3764 := &yyv3762[yyj3762]
yyv3764.CodecDecodeSelf(d)
}
}
}
} else {
yyj3762 := 0
for ; !r.CheckBreak(); yyj3762++ {
if yyj3762 >= len(yyv3762) {
yyv3762 = append(yyv3762, NodeCondition{}) // var yyz3762 NodeCondition
yyc3762 = true
}
yyh3762.ElemContainerState(yyj3762)
if yyj3762 < len(yyv3762) {
if r.TryDecodeAsNil() {
yyv3762[yyj3762] = NodeCondition{}
} else {
yyv3765 := &yyv3762[yyj3762]
yyv3765.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3762 < len(yyv3762) {
yyv3762 = yyv3762[:yyj3762]
yyc3762 = true
} else if yyj3762 == 0 && yyv3762 == nil {
yyv3762 = []NodeCondition{}
yyc3762 = true
}
}
yyh3762.End()
if yyc3762 {
*v = yyv3762
}
}
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 _, yyv3766 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3767 := &yyv3766
yy3767.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
yyv3768 := *v
yyh3768, yyl3768 := z.DecSliceHelperStart()
var yyc3768 bool
if yyl3768 == 0 {
if yyv3768 == nil {
yyv3768 = []NodeAddress{}
yyc3768 = true
} else if len(yyv3768) != 0 {
yyv3768 = yyv3768[:0]
yyc3768 = true
}
} else if yyl3768 > 0 {
var yyrr3768, yyrl3768 int
var yyrt3768 bool
if yyl3768 > cap(yyv3768) {
yyrg3768 := len(yyv3768) > 0
yyv23768 := yyv3768
yyrl3768, yyrt3768 = z.DecInferLen(yyl3768, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3768 {
if yyrl3768 <= cap(yyv3768) {
yyv3768 = yyv3768[:yyrl3768]
} else {
yyv3768 = make([]NodeAddress, yyrl3768)
}
} else {
yyv3768 = make([]NodeAddress, yyrl3768)
}
yyc3768 = true
yyrr3768 = len(yyv3768)
if yyrg3768 {
copy(yyv3768, yyv23768)
}
} else if yyl3768 != len(yyv3768) {
yyv3768 = yyv3768[:yyl3768]
yyc3768 = true
}
yyj3768 := 0
for ; yyj3768 < yyrr3768; yyj3768++ {
yyh3768.ElemContainerState(yyj3768)
if r.TryDecodeAsNil() {
yyv3768[yyj3768] = NodeAddress{}
} else {
yyv3769 := &yyv3768[yyj3768]
yyv3769.CodecDecodeSelf(d)
}
}
if yyrt3768 {
for ; yyj3768 < yyl3768; yyj3768++ {
yyv3768 = append(yyv3768, NodeAddress{})
yyh3768.ElemContainerState(yyj3768)
if r.TryDecodeAsNil() {
yyv3768[yyj3768] = NodeAddress{}
} else {
yyv3770 := &yyv3768[yyj3768]
yyv3770.CodecDecodeSelf(d)
}
}
}
} else {
yyj3768 := 0
for ; !r.CheckBreak(); yyj3768++ {
if yyj3768 >= len(yyv3768) {
yyv3768 = append(yyv3768, NodeAddress{}) // var yyz3768 NodeAddress
yyc3768 = true
}
yyh3768.ElemContainerState(yyj3768)
if yyj3768 < len(yyv3768) {
if r.TryDecodeAsNil() {
yyv3768[yyj3768] = NodeAddress{}
} else {
yyv3771 := &yyv3768[yyj3768]
yyv3771.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3768 < len(yyv3768) {
yyv3768 = yyv3768[:yyj3768]
yyc3768 = true
} else if yyj3768 == 0 && yyv3768 == nil {
yyv3768 = []NodeAddress{}
yyc3768 = true
}
}
yyh3768.End()
if yyc3768 {
*v = yyv3768
}
}
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 _, yyv3772 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3773 := &yyv3772
yy3773.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
yyv3774 := *v
yyh3774, yyl3774 := z.DecSliceHelperStart()
var yyc3774 bool
if yyl3774 == 0 {
if yyv3774 == nil {
yyv3774 = []ContainerImage{}
yyc3774 = true
} else if len(yyv3774) != 0 {
yyv3774 = yyv3774[:0]
yyc3774 = true
}
} else if yyl3774 > 0 {
var yyrr3774, yyrl3774 int
var yyrt3774 bool
if yyl3774 > cap(yyv3774) {
yyrg3774 := len(yyv3774) > 0
yyv23774 := yyv3774
yyrl3774, yyrt3774 = z.DecInferLen(yyl3774, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3774 {
if yyrl3774 <= cap(yyv3774) {
yyv3774 = yyv3774[:yyrl3774]
} else {
yyv3774 = make([]ContainerImage, yyrl3774)
}
} else {
yyv3774 = make([]ContainerImage, yyrl3774)
}
yyc3774 = true
yyrr3774 = len(yyv3774)
if yyrg3774 {
copy(yyv3774, yyv23774)
}
} else if yyl3774 != len(yyv3774) {
yyv3774 = yyv3774[:yyl3774]
yyc3774 = true
}
yyj3774 := 0
for ; yyj3774 < yyrr3774; yyj3774++ {
yyh3774.ElemContainerState(yyj3774)
if r.TryDecodeAsNil() {
yyv3774[yyj3774] = ContainerImage{}
} else {
yyv3775 := &yyv3774[yyj3774]
yyv3775.CodecDecodeSelf(d)
}
}
if yyrt3774 {
for ; yyj3774 < yyl3774; yyj3774++ {
yyv3774 = append(yyv3774, ContainerImage{})
yyh3774.ElemContainerState(yyj3774)
if r.TryDecodeAsNil() {
yyv3774[yyj3774] = ContainerImage{}
} else {
yyv3776 := &yyv3774[yyj3774]
yyv3776.CodecDecodeSelf(d)
}
}
}
} else {
yyj3774 := 0
for ; !r.CheckBreak(); yyj3774++ {
if yyj3774 >= len(yyv3774) {
yyv3774 = append(yyv3774, ContainerImage{}) // var yyz3774 ContainerImage
yyc3774 = true
}
yyh3774.ElemContainerState(yyj3774)
if yyj3774 < len(yyv3774) {
if r.TryDecodeAsNil() {
yyv3774[yyj3774] = ContainerImage{}
} else {
yyv3777 := &yyv3774[yyj3774]
yyv3777.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3774 < len(yyv3774) {
yyv3774 = yyv3774[:yyj3774]
yyc3774 = true
} else if yyj3774 == 0 && yyv3774 == nil {
yyv3774 = []ContainerImage{}
yyc3774 = true
}
}
yyh3774.End()
if yyc3774 {
*v = yyv3774
}
}
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 yyk3778, yyv3778 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yyk3778.CodecEncodeSelf(e)
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3779 := &yyv3778
yym3780 := z.EncBinary()
_ = yym3780
if false {
} else if z.HasExtensions() && z.EncExt(yy3779) {
} else if !yym3780 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3779)
} else {
z.EncFallback(yy3779)
}
}
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv3781 := *v
yyl3781 := r.ReadMapStart()
yybh3781 := z.DecBasicHandle()
if yyv3781 == nil {
yyrl3781, _ := z.DecInferLen(yyl3781, yybh3781.MaxInitLen, 40)
yyv3781 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3781)
*v = yyv3781
}
var yymk3781 ResourceName
var yymv3781 pkg3_resource.Quantity
var yymg3781 bool
if yybh3781.MapValueReset {
yymg3781 = true
}
if yyl3781 > 0 {
for yyj3781 := 0; yyj3781 < yyl3781; yyj3781++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3781 = ""
} else {
yymk3781 = ResourceName(r.DecodeString())
}
if yymg3781 {
yymv3781 = yyv3781[yymk3781]
} else {
yymv3781 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3781 = pkg3_resource.Quantity{}
} else {
yyv3783 := &yymv3781
yym3784 := z.DecBinary()
_ = yym3784
if false {
} else if z.HasExtensions() && z.DecExt(yyv3783) {
} else if !yym3784 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3783)
} else {
z.DecFallback(yyv3783, false)
}
}
if yyv3781 != nil {
yyv3781[yymk3781] = yymv3781
}
}
} else if yyl3781 < 0 {
for yyj3781 := 0; !r.CheckBreak(); yyj3781++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3781 = ""
} else {
yymk3781 = ResourceName(r.DecodeString())
}
if yymg3781 {
yymv3781 = yyv3781[yymk3781]
} else {
yymv3781 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3781 = pkg3_resource.Quantity{}
} else {
yyv3786 := &yymv3781
yym3787 := z.DecBinary()
_ = yym3787
if false {
} else if z.HasExtensions() && z.DecExt(yyv3786) {
} else if !yym3787 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3786)
} else {
z.DecFallback(yyv3786, false)
}
}
if yyv3781 != nil {
yyv3781[yymk3781] = yymv3781
}
}
} // 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 _, yyv3788 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3789 := &yyv3788
yy3789.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
yyv3790 := *v
yyh3790, yyl3790 := z.DecSliceHelperStart()
var yyc3790 bool
if yyl3790 == 0 {
if yyv3790 == nil {
yyv3790 = []Node{}
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) {
yyrg3790 := len(yyv3790) > 0
yyv23790 := yyv3790
yyrl3790, yyrt3790 = z.DecInferLen(yyl3790, z.DecBasicHandle().MaxInitLen, 488)
if yyrt3790 {
if yyrl3790 <= cap(yyv3790) {
yyv3790 = yyv3790[:yyrl3790]
} else {
yyv3790 = make([]Node, yyrl3790)
}
} else {
yyv3790 = make([]Node, yyrl3790)
}
yyc3790 = true
yyrr3790 = len(yyv3790)
if yyrg3790 {
copy(yyv3790, yyv23790)
}
} else if yyl3790 != len(yyv3790) {
yyv3790 = yyv3790[:yyl3790]
yyc3790 = true
}
yyj3790 := 0
for ; yyj3790 < yyrr3790; yyj3790++ {
yyh3790.ElemContainerState(yyj3790)
if r.TryDecodeAsNil() {
yyv3790[yyj3790] = Node{}
} else {
yyv3791 := &yyv3790[yyj3790]
yyv3791.CodecDecodeSelf(d)
}
}
if yyrt3790 {
for ; yyj3790 < yyl3790; yyj3790++ {
yyv3790 = append(yyv3790, Node{})
yyh3790.ElemContainerState(yyj3790)
if r.TryDecodeAsNil() {
yyv3790[yyj3790] = Node{}
} else {
yyv3792 := &yyv3790[yyj3790]
yyv3792.CodecDecodeSelf(d)
}
}
}
} else {
yyj3790 := 0
for ; !r.CheckBreak(); yyj3790++ {
if yyj3790 >= len(yyv3790) {
yyv3790 = append(yyv3790, Node{}) // var yyz3790 Node
yyc3790 = true
}
yyh3790.ElemContainerState(yyj3790)
if yyj3790 < len(yyv3790) {
if r.TryDecodeAsNil() {
yyv3790[yyj3790] = Node{}
} else {
yyv3793 := &yyv3790[yyj3790]
yyv3793.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3790 < len(yyv3790) {
yyv3790 = yyv3790[:yyj3790]
yyc3790 = true
} else if yyj3790 == 0 && yyv3790 == nil {
yyv3790 = []Node{}
yyc3790 = true
}
}
yyh3790.End()
if yyc3790 {
*v = yyv3790
}
}
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 _, yyv3794 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3794.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
yyv3795 := *v
yyh3795, yyl3795 := z.DecSliceHelperStart()
var yyc3795 bool
if yyl3795 == 0 {
if yyv3795 == nil {
yyv3795 = []FinalizerName{}
yyc3795 = true
} else if len(yyv3795) != 0 {
yyv3795 = yyv3795[:0]
yyc3795 = true
}
} else if yyl3795 > 0 {
var yyrr3795, yyrl3795 int
var yyrt3795 bool
if yyl3795 > cap(yyv3795) {
yyrl3795, yyrt3795 = z.DecInferLen(yyl3795, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3795 {
if yyrl3795 <= cap(yyv3795) {
yyv3795 = yyv3795[:yyrl3795]
} else {
yyv3795 = make([]FinalizerName, yyrl3795)
}
} else {
yyv3795 = make([]FinalizerName, yyrl3795)
}
yyc3795 = true
yyrr3795 = len(yyv3795)
} else if yyl3795 != len(yyv3795) {
yyv3795 = yyv3795[:yyl3795]
yyc3795 = true
}
yyj3795 := 0
for ; yyj3795 < yyrr3795; yyj3795++ {
yyh3795.ElemContainerState(yyj3795)
if r.TryDecodeAsNil() {
yyv3795[yyj3795] = ""
} else {
yyv3795[yyj3795] = FinalizerName(r.DecodeString())
}
}
if yyrt3795 {
for ; yyj3795 < yyl3795; yyj3795++ {
yyv3795 = append(yyv3795, "")
yyh3795.ElemContainerState(yyj3795)
if r.TryDecodeAsNil() {
yyv3795[yyj3795] = ""
} else {
yyv3795[yyj3795] = FinalizerName(r.DecodeString())
}
}
}
} else {
yyj3795 := 0
for ; !r.CheckBreak(); yyj3795++ {
if yyj3795 >= len(yyv3795) {
yyv3795 = append(yyv3795, "") // var yyz3795 FinalizerName
yyc3795 = true
}
yyh3795.ElemContainerState(yyj3795)
if yyj3795 < len(yyv3795) {
if r.TryDecodeAsNil() {
yyv3795[yyj3795] = ""
} else {
yyv3795[yyj3795] = FinalizerName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3795 < len(yyv3795) {
yyv3795 = yyv3795[:yyj3795]
yyc3795 = true
} else if yyj3795 == 0 && yyv3795 == nil {
yyv3795 = []FinalizerName{}
yyc3795 = true
}
}
yyh3795.End()
if yyc3795 {
*v = yyv3795
}
}
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 _, yyv3799 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3800 := &yyv3799
yy3800.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
yyv3801 := *v
yyh3801, yyl3801 := z.DecSliceHelperStart()
var yyc3801 bool
if yyl3801 == 0 {
if yyv3801 == nil {
yyv3801 = []Namespace{}
yyc3801 = true
} else if len(yyv3801) != 0 {
yyv3801 = yyv3801[:0]
yyc3801 = true
}
} else if yyl3801 > 0 {
var yyrr3801, yyrl3801 int
var yyrt3801 bool
if yyl3801 > cap(yyv3801) {
yyrg3801 := len(yyv3801) > 0
yyv23801 := yyv3801
yyrl3801, yyrt3801 = z.DecInferLen(yyl3801, z.DecBasicHandle().MaxInitLen, 232)
if yyrt3801 {
if yyrl3801 <= cap(yyv3801) {
yyv3801 = yyv3801[:yyrl3801]
} else {
yyv3801 = make([]Namespace, yyrl3801)
}
} else {
yyv3801 = make([]Namespace, yyrl3801)
}
yyc3801 = true
yyrr3801 = len(yyv3801)
if yyrg3801 {
copy(yyv3801, yyv23801)
}
} else if yyl3801 != len(yyv3801) {
yyv3801 = yyv3801[:yyl3801]
yyc3801 = true
}
yyj3801 := 0
for ; yyj3801 < yyrr3801; yyj3801++ {
yyh3801.ElemContainerState(yyj3801)
if r.TryDecodeAsNil() {
yyv3801[yyj3801] = Namespace{}
} else {
yyv3802 := &yyv3801[yyj3801]
yyv3802.CodecDecodeSelf(d)
}
}
if yyrt3801 {
for ; yyj3801 < yyl3801; yyj3801++ {
yyv3801 = append(yyv3801, Namespace{})
yyh3801.ElemContainerState(yyj3801)
if r.TryDecodeAsNil() {
yyv3801[yyj3801] = Namespace{}
} else {
yyv3803 := &yyv3801[yyj3801]
yyv3803.CodecDecodeSelf(d)
}
}
}
} else {
yyj3801 := 0
for ; !r.CheckBreak(); yyj3801++ {
if yyj3801 >= len(yyv3801) {
yyv3801 = append(yyv3801, Namespace{}) // var yyz3801 Namespace
yyc3801 = true
}
yyh3801.ElemContainerState(yyj3801)
if yyj3801 < len(yyv3801) {
if r.TryDecodeAsNil() {
yyv3801[yyj3801] = Namespace{}
} else {
yyv3804 := &yyv3801[yyj3801]
yyv3804.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3801 < len(yyv3801) {
yyv3801 = yyv3801[:yyj3801]
yyc3801 = true
} else if yyj3801 == 0 && yyv3801 == nil {
yyv3801 = []Namespace{}
yyc3801 = true
}
}
yyh3801.End()
if yyc3801 {
*v = yyv3801
}
}
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 _, yyv3805 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3806 := &yyv3805
yy3806.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
yyv3807 := *v
yyh3807, yyl3807 := z.DecSliceHelperStart()
var yyc3807 bool
if yyl3807 == 0 {
if yyv3807 == nil {
yyv3807 = []Event{}
yyc3807 = true
} else if len(yyv3807) != 0 {
yyv3807 = yyv3807[:0]
yyc3807 = true
}
} else if yyl3807 > 0 {
var yyrr3807, yyrl3807 int
var yyrt3807 bool
if yyl3807 > cap(yyv3807) {
yyrg3807 := len(yyv3807) > 0
yyv23807 := yyv3807
yyrl3807, yyrt3807 = z.DecInferLen(yyl3807, z.DecBasicHandle().MaxInitLen, 440)
if yyrt3807 {
if yyrl3807 <= cap(yyv3807) {
yyv3807 = yyv3807[:yyrl3807]
} else {
yyv3807 = make([]Event, yyrl3807)
}
} else {
yyv3807 = make([]Event, yyrl3807)
}
yyc3807 = true
yyrr3807 = len(yyv3807)
if yyrg3807 {
copy(yyv3807, yyv23807)
}
} else if yyl3807 != len(yyv3807) {
yyv3807 = yyv3807[:yyl3807]
yyc3807 = true
}
yyj3807 := 0
for ; yyj3807 < yyrr3807; yyj3807++ {
yyh3807.ElemContainerState(yyj3807)
if r.TryDecodeAsNil() {
yyv3807[yyj3807] = Event{}
} else {
yyv3808 := &yyv3807[yyj3807]
yyv3808.CodecDecodeSelf(d)
}
}
if yyrt3807 {
for ; yyj3807 < yyl3807; yyj3807++ {
yyv3807 = append(yyv3807, Event{})
yyh3807.ElemContainerState(yyj3807)
if r.TryDecodeAsNil() {
yyv3807[yyj3807] = Event{}
} else {
yyv3809 := &yyv3807[yyj3807]
yyv3809.CodecDecodeSelf(d)
}
}
}
} else {
yyj3807 := 0
for ; !r.CheckBreak(); yyj3807++ {
if yyj3807 >= len(yyv3807) {
yyv3807 = append(yyv3807, Event{}) // var yyz3807 Event
yyc3807 = true
}
yyh3807.ElemContainerState(yyj3807)
if yyj3807 < len(yyv3807) {
if r.TryDecodeAsNil() {
yyv3807[yyj3807] = Event{}
} else {
yyv3810 := &yyv3807[yyj3807]
yyv3810.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3807 < len(yyv3807) {
yyv3807 = yyv3807[:yyj3807]
yyc3807 = true
} else if yyj3807 == 0 && yyv3807 == nil {
yyv3807 = []Event{}
yyc3807 = true
}
}
yyh3807.End()
if yyc3807 {
*v = yyv3807
}
}
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 _, yyv3811 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyv3811 == nil {
r.EncodeNil()
} else {
yym3812 := z.EncBinary()
_ = yym3812
if false {
} else if z.HasExtensions() && z.EncExt(yyv3811) {
} else {
z.EncFallback(yyv3811)
}
}
}
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
yyv3813 := *v
yyh3813, yyl3813 := z.DecSliceHelperStart()
var yyc3813 bool
if yyl3813 == 0 {
if yyv3813 == nil {
yyv3813 = []pkg8_runtime.Object{}
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) {
yyrg3813 := len(yyv3813) > 0
yyv23813 := yyv3813
yyrl3813, yyrt3813 = z.DecInferLen(yyl3813, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3813 {
if yyrl3813 <= cap(yyv3813) {
yyv3813 = yyv3813[:yyrl3813]
} else {
yyv3813 = make([]pkg8_runtime.Object, yyrl3813)
}
} else {
yyv3813 = make([]pkg8_runtime.Object, yyrl3813)
}
yyc3813 = true
yyrr3813 = len(yyv3813)
if yyrg3813 {
copy(yyv3813, yyv23813)
}
} else if yyl3813 != len(yyv3813) {
yyv3813 = yyv3813[:yyl3813]
yyc3813 = true
}
yyj3813 := 0
for ; yyj3813 < yyrr3813; yyj3813++ {
yyh3813.ElemContainerState(yyj3813)
if r.TryDecodeAsNil() {
yyv3813[yyj3813] = nil
} else {
yyv3814 := &yyv3813[yyj3813]
yym3815 := z.DecBinary()
_ = yym3815
if false {
} else if z.HasExtensions() && z.DecExt(yyv3814) {
} else {
z.DecFallback(yyv3814, true)
}
}
}
if yyrt3813 {
for ; yyj3813 < yyl3813; yyj3813++ {
yyv3813 = append(yyv3813, nil)
yyh3813.ElemContainerState(yyj3813)
if r.TryDecodeAsNil() {
yyv3813[yyj3813] = nil
} else {
yyv3816 := &yyv3813[yyj3813]
yym3817 := z.DecBinary()
_ = yym3817
if false {
} else if z.HasExtensions() && z.DecExt(yyv3816) {
} else {
z.DecFallback(yyv3816, true)
}
}
}
}
} else {
yyj3813 := 0
for ; !r.CheckBreak(); yyj3813++ {
if yyj3813 >= len(yyv3813) {
yyv3813 = append(yyv3813, nil) // var yyz3813 pkg8_runtime.Object
yyc3813 = true
}
yyh3813.ElemContainerState(yyj3813)
if yyj3813 < len(yyv3813) {
if r.TryDecodeAsNil() {
yyv3813[yyj3813] = nil
} else {
yyv3818 := &yyv3813[yyj3813]
yym3819 := z.DecBinary()
_ = yym3819
if false {
} else if z.HasExtensions() && z.DecExt(yyv3818) {
} else {
z.DecFallback(yyv3818, true)
}
}
} else {
z.DecSwallow()
}
}
if yyj3813 < len(yyv3813) {
yyv3813 = yyv3813[:yyj3813]
yyc3813 = true
} else if yyj3813 == 0 && yyv3813 == nil {
yyv3813 = []pkg8_runtime.Object{}
yyc3813 = true
}
}
yyh3813.End()
if yyc3813 {
*v = yyv3813
}
}
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 _, yyv3820 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3821 := &yyv3820
yy3821.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
yyv3822 := *v
yyh3822, yyl3822 := z.DecSliceHelperStart()
var yyc3822 bool
if yyl3822 == 0 {
if yyv3822 == nil {
yyv3822 = []LimitRangeItem{}
yyc3822 = true
} else if len(yyv3822) != 0 {
yyv3822 = yyv3822[:0]
yyc3822 = true
}
} else if yyl3822 > 0 {
var yyrr3822, yyrl3822 int
var yyrt3822 bool
if yyl3822 > cap(yyv3822) {
yyrg3822 := len(yyv3822) > 0
yyv23822 := yyv3822
yyrl3822, yyrt3822 = z.DecInferLen(yyl3822, z.DecBasicHandle().MaxInitLen, 56)
if yyrt3822 {
if yyrl3822 <= cap(yyv3822) {
yyv3822 = yyv3822[:yyrl3822]
} else {
yyv3822 = make([]LimitRangeItem, yyrl3822)
}
} else {
yyv3822 = make([]LimitRangeItem, yyrl3822)
}
yyc3822 = true
yyrr3822 = len(yyv3822)
if yyrg3822 {
copy(yyv3822, yyv23822)
}
} else if yyl3822 != len(yyv3822) {
yyv3822 = yyv3822[:yyl3822]
yyc3822 = true
}
yyj3822 := 0
for ; yyj3822 < yyrr3822; yyj3822++ {
yyh3822.ElemContainerState(yyj3822)
if r.TryDecodeAsNil() {
yyv3822[yyj3822] = LimitRangeItem{}
} else {
yyv3823 := &yyv3822[yyj3822]
yyv3823.CodecDecodeSelf(d)
}
}
if yyrt3822 {
for ; yyj3822 < yyl3822; yyj3822++ {
yyv3822 = append(yyv3822, LimitRangeItem{})
yyh3822.ElemContainerState(yyj3822)
if r.TryDecodeAsNil() {
yyv3822[yyj3822] = LimitRangeItem{}
} else {
yyv3824 := &yyv3822[yyj3822]
yyv3824.CodecDecodeSelf(d)
}
}
}
} else {
yyj3822 := 0
for ; !r.CheckBreak(); yyj3822++ {
if yyj3822 >= len(yyv3822) {
yyv3822 = append(yyv3822, LimitRangeItem{}) // var yyz3822 LimitRangeItem
yyc3822 = true
}
yyh3822.ElemContainerState(yyj3822)
if yyj3822 < len(yyv3822) {
if r.TryDecodeAsNil() {
yyv3822[yyj3822] = LimitRangeItem{}
} else {
yyv3825 := &yyv3822[yyj3822]
yyv3825.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3822 < len(yyv3822) {
yyv3822 = yyv3822[:yyj3822]
yyc3822 = true
} else if yyj3822 == 0 && yyv3822 == nil {
yyv3822 = []LimitRangeItem{}
yyc3822 = true
}
}
yyh3822.End()
if yyc3822 {
*v = yyv3822
}
}
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 _, yyv3826 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3827 := &yyv3826
yy3827.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
yyv3828 := *v
yyh3828, yyl3828 := z.DecSliceHelperStart()
var yyc3828 bool
if yyl3828 == 0 {
if yyv3828 == nil {
yyv3828 = []LimitRange{}
yyc3828 = true
} else if len(yyv3828) != 0 {
yyv3828 = yyv3828[:0]
yyc3828 = true
}
} else if yyl3828 > 0 {
var yyrr3828, yyrl3828 int
var yyrt3828 bool
if yyl3828 > cap(yyv3828) {
yyrg3828 := len(yyv3828) > 0
yyv23828 := yyv3828
yyrl3828, yyrt3828 = z.DecInferLen(yyl3828, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3828 {
if yyrl3828 <= cap(yyv3828) {
yyv3828 = yyv3828[:yyrl3828]
} else {
yyv3828 = make([]LimitRange, yyrl3828)
}
} else {
yyv3828 = make([]LimitRange, yyrl3828)
}
yyc3828 = true
yyrr3828 = len(yyv3828)
if yyrg3828 {
copy(yyv3828, yyv23828)
}
} else if yyl3828 != len(yyv3828) {
yyv3828 = yyv3828[:yyl3828]
yyc3828 = true
}
yyj3828 := 0
for ; yyj3828 < yyrr3828; yyj3828++ {
yyh3828.ElemContainerState(yyj3828)
if r.TryDecodeAsNil() {
yyv3828[yyj3828] = LimitRange{}
} else {
yyv3829 := &yyv3828[yyj3828]
yyv3829.CodecDecodeSelf(d)
}
}
if yyrt3828 {
for ; yyj3828 < yyl3828; yyj3828++ {
yyv3828 = append(yyv3828, LimitRange{})
yyh3828.ElemContainerState(yyj3828)
if r.TryDecodeAsNil() {
yyv3828[yyj3828] = LimitRange{}
} else {
yyv3830 := &yyv3828[yyj3828]
yyv3830.CodecDecodeSelf(d)
}
}
}
} else {
yyj3828 := 0
for ; !r.CheckBreak(); yyj3828++ {
if yyj3828 >= len(yyv3828) {
yyv3828 = append(yyv3828, LimitRange{}) // var yyz3828 LimitRange
yyc3828 = true
}
yyh3828.ElemContainerState(yyj3828)
if yyj3828 < len(yyv3828) {
if r.TryDecodeAsNil() {
yyv3828[yyj3828] = LimitRange{}
} else {
yyv3831 := &yyv3828[yyj3828]
yyv3831.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3828 < len(yyv3828) {
yyv3828 = yyv3828[:yyj3828]
yyc3828 = true
} else if yyj3828 == 0 && yyv3828 == nil {
yyv3828 = []LimitRange{}
yyc3828 = true
}
}
yyh3828.End()
if yyc3828 {
*v = yyv3828
}
}
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 _, yyv3832 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3833 := &yyv3832
yy3833.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
yyv3834 := *v
yyh3834, yyl3834 := z.DecSliceHelperStart()
var yyc3834 bool
if yyl3834 == 0 {
if yyv3834 == nil {
yyv3834 = []ResourceQuota{}
yyc3834 = true
} else if len(yyv3834) != 0 {
yyv3834 = yyv3834[:0]
yyc3834 = true
}
} else if yyl3834 > 0 {
var yyrr3834, yyrl3834 int
var yyrt3834 bool
if yyl3834 > cap(yyv3834) {
yyrg3834 := len(yyv3834) > 0
yyv23834 := yyv3834
yyrl3834, yyrt3834 = z.DecInferLen(yyl3834, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3834 {
if yyrl3834 <= cap(yyv3834) {
yyv3834 = yyv3834[:yyrl3834]
} else {
yyv3834 = make([]ResourceQuota, yyrl3834)
}
} else {
yyv3834 = make([]ResourceQuota, yyrl3834)
}
yyc3834 = true
yyrr3834 = len(yyv3834)
if yyrg3834 {
copy(yyv3834, yyv23834)
}
} else if yyl3834 != len(yyv3834) {
yyv3834 = yyv3834[:yyl3834]
yyc3834 = true
}
yyj3834 := 0
for ; yyj3834 < yyrr3834; yyj3834++ {
yyh3834.ElemContainerState(yyj3834)
if r.TryDecodeAsNil() {
yyv3834[yyj3834] = ResourceQuota{}
} else {
yyv3835 := &yyv3834[yyj3834]
yyv3835.CodecDecodeSelf(d)
}
}
if yyrt3834 {
for ; yyj3834 < yyl3834; yyj3834++ {
yyv3834 = append(yyv3834, ResourceQuota{})
yyh3834.ElemContainerState(yyj3834)
if r.TryDecodeAsNil() {
yyv3834[yyj3834] = ResourceQuota{}
} else {
yyv3836 := &yyv3834[yyj3834]
yyv3836.CodecDecodeSelf(d)
}
}
}
} else {
yyj3834 := 0
for ; !r.CheckBreak(); yyj3834++ {
if yyj3834 >= len(yyv3834) {
yyv3834 = append(yyv3834, ResourceQuota{}) // var yyz3834 ResourceQuota
yyc3834 = true
}
yyh3834.ElemContainerState(yyj3834)
if yyj3834 < len(yyv3834) {
if r.TryDecodeAsNil() {
yyv3834[yyj3834] = ResourceQuota{}
} else {
yyv3837 := &yyv3834[yyj3834]
yyv3837.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3834 < len(yyv3834) {
yyv3834 = yyv3834[:yyj3834]
yyc3834 = true
} else if yyj3834 == 0 && yyv3834 == nil {
yyv3834 = []ResourceQuota{}
yyc3834 = true
}
}
yyh3834.End()
if yyc3834 {
*v = yyv3834
}
}
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 yyk3838, yyv3838 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym3839 := z.EncBinary()
_ = yym3839
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yyk3838))
}
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyv3838 == nil {
r.EncodeNil()
} else {
yym3840 := z.EncBinary()
_ = yym3840
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv3838))
}
}
}
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
yyv3841 := *v
yyl3841 := r.ReadMapStart()
yybh3841 := z.DecBasicHandle()
if yyv3841 == nil {
yyrl3841, _ := z.DecInferLen(yyl3841, yybh3841.MaxInitLen, 40)
yyv3841 = make(map[string][]uint8, yyrl3841)
*v = yyv3841
}
var yymk3841 string
var yymv3841 []uint8
var yymg3841 bool
if yybh3841.MapValueReset {
yymg3841 = true
}
if yyl3841 > 0 {
for yyj3841 := 0; yyj3841 < yyl3841; yyj3841++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3841 = ""
} else {
yymk3841 = string(r.DecodeString())
}
if yymg3841 {
yymv3841 = yyv3841[yymk3841]
} else {
yymv3841 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3841 = nil
} else {
yyv3843 := &yymv3841
yym3844 := z.DecBinary()
_ = yym3844
if false {
} else {
*yyv3843 = r.DecodeBytes(*(*[]byte)(yyv3843), false, false)
}
}
if yyv3841 != nil {
yyv3841[yymk3841] = yymv3841
}
}
} else if yyl3841 < 0 {
for yyj3841 := 0; !r.CheckBreak(); yyj3841++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3841 = ""
} else {
yymk3841 = string(r.DecodeString())
}
if yymg3841 {
yymv3841 = yyv3841[yymk3841]
} else {
yymv3841 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3841 = nil
} else {
yyv3846 := &yymv3841
yym3847 := z.DecBinary()
_ = yym3847
if false {
} else {
*yyv3846 = r.DecodeBytes(*(*[]byte)(yyv3846), false, false)
}
}
if yyv3841 != nil {
yyv3841[yymk3841] = yymv3841
}
}
} // 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 _, yyv3848 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3849 := &yyv3848
yy3849.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
yyv3850 := *v
yyh3850, yyl3850 := z.DecSliceHelperStart()
var yyc3850 bool
if yyl3850 == 0 {
if yyv3850 == nil {
yyv3850 = []Secret{}
yyc3850 = true
} else if len(yyv3850) != 0 {
yyv3850 = yyv3850[:0]
yyc3850 = true
}
} else if yyl3850 > 0 {
var yyrr3850, yyrl3850 int
var yyrt3850 bool
if yyl3850 > cap(yyv3850) {
yyrg3850 := len(yyv3850) > 0
yyv23850 := yyv3850
yyrl3850, yyrt3850 = z.DecInferLen(yyl3850, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3850 {
if yyrl3850 <= cap(yyv3850) {
yyv3850 = yyv3850[:yyrl3850]
} else {
yyv3850 = make([]Secret, yyrl3850)
}
} else {
yyv3850 = make([]Secret, yyrl3850)
}
yyc3850 = true
yyrr3850 = len(yyv3850)
if yyrg3850 {
copy(yyv3850, yyv23850)
}
} else if yyl3850 != len(yyv3850) {
yyv3850 = yyv3850[:yyl3850]
yyc3850 = true
}
yyj3850 := 0
for ; yyj3850 < yyrr3850; yyj3850++ {
yyh3850.ElemContainerState(yyj3850)
if r.TryDecodeAsNil() {
yyv3850[yyj3850] = Secret{}
} else {
yyv3851 := &yyv3850[yyj3850]
yyv3851.CodecDecodeSelf(d)
}
}
if yyrt3850 {
for ; yyj3850 < yyl3850; yyj3850++ {
yyv3850 = append(yyv3850, Secret{})
yyh3850.ElemContainerState(yyj3850)
if r.TryDecodeAsNil() {
yyv3850[yyj3850] = Secret{}
} else {
yyv3852 := &yyv3850[yyj3850]
yyv3852.CodecDecodeSelf(d)
}
}
}
} else {
yyj3850 := 0
for ; !r.CheckBreak(); yyj3850++ {
if yyj3850 >= len(yyv3850) {
yyv3850 = append(yyv3850, Secret{}) // var yyz3850 Secret
yyc3850 = true
}
yyh3850.ElemContainerState(yyj3850)
if yyj3850 < len(yyv3850) {
if r.TryDecodeAsNil() {
yyv3850[yyj3850] = Secret{}
} else {
yyv3853 := &yyv3850[yyj3850]
yyv3853.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3850 < len(yyv3850) {
yyv3850 = yyv3850[:yyj3850]
yyc3850 = true
} else if yyj3850 == 0 && yyv3850 == nil {
yyv3850 = []Secret{}
yyc3850 = true
}
}
yyh3850.End()
if yyc3850 {
*v = yyv3850
}
}
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 _, yyv3854 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3855 := &yyv3854
yy3855.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
yyv3856 := *v
yyh3856, yyl3856 := z.DecSliceHelperStart()
var yyc3856 bool
if yyl3856 == 0 {
if yyv3856 == nil {
yyv3856 = []ComponentCondition{}
yyc3856 = true
} else if len(yyv3856) != 0 {
yyv3856 = yyv3856[:0]
yyc3856 = true
}
} else if yyl3856 > 0 {
var yyrr3856, yyrl3856 int
var yyrt3856 bool
if yyl3856 > cap(yyv3856) {
yyrg3856 := len(yyv3856) > 0
yyv23856 := yyv3856
yyrl3856, yyrt3856 = z.DecInferLen(yyl3856, z.DecBasicHandle().MaxInitLen, 64)
if yyrt3856 {
if yyrl3856 <= cap(yyv3856) {
yyv3856 = yyv3856[:yyrl3856]
} else {
yyv3856 = make([]ComponentCondition, yyrl3856)
}
} else {
yyv3856 = make([]ComponentCondition, yyrl3856)
}
yyc3856 = true
yyrr3856 = len(yyv3856)
if yyrg3856 {
copy(yyv3856, yyv23856)
}
} else if yyl3856 != len(yyv3856) {
yyv3856 = yyv3856[:yyl3856]
yyc3856 = true
}
yyj3856 := 0
for ; yyj3856 < yyrr3856; yyj3856++ {
yyh3856.ElemContainerState(yyj3856)
if r.TryDecodeAsNil() {
yyv3856[yyj3856] = ComponentCondition{}
} else {
yyv3857 := &yyv3856[yyj3856]
yyv3857.CodecDecodeSelf(d)
}
}
if yyrt3856 {
for ; yyj3856 < yyl3856; yyj3856++ {
yyv3856 = append(yyv3856, ComponentCondition{})
yyh3856.ElemContainerState(yyj3856)
if r.TryDecodeAsNil() {
yyv3856[yyj3856] = ComponentCondition{}
} else {
yyv3858 := &yyv3856[yyj3856]
yyv3858.CodecDecodeSelf(d)
}
}
}
} else {
yyj3856 := 0
for ; !r.CheckBreak(); yyj3856++ {
if yyj3856 >= len(yyv3856) {
yyv3856 = append(yyv3856, ComponentCondition{}) // var yyz3856 ComponentCondition
yyc3856 = true
}
yyh3856.ElemContainerState(yyj3856)
if yyj3856 < len(yyv3856) {
if r.TryDecodeAsNil() {
yyv3856[yyj3856] = ComponentCondition{}
} else {
yyv3859 := &yyv3856[yyj3856]
yyv3859.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3856 < len(yyv3856) {
yyv3856 = yyv3856[:yyj3856]
yyc3856 = true
} else if yyj3856 == 0 && yyv3856 == nil {
yyv3856 = []ComponentCondition{}
yyc3856 = true
}
}
yyh3856.End()
if yyc3856 {
*v = yyv3856
}
}
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 _, yyv3860 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3861 := &yyv3860
yy3861.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
yyv3862 := *v
yyh3862, yyl3862 := z.DecSliceHelperStart()
var yyc3862 bool
if yyl3862 == 0 {
if yyv3862 == nil {
yyv3862 = []ComponentStatus{}
yyc3862 = true
} else if len(yyv3862) != 0 {
yyv3862 = yyv3862[:0]
yyc3862 = true
}
} else if yyl3862 > 0 {
var yyrr3862, yyrl3862 int
var yyrt3862 bool
if yyl3862 > cap(yyv3862) {
yyrg3862 := len(yyv3862) > 0
yyv23862 := yyv3862
yyrl3862, yyrt3862 = z.DecInferLen(yyl3862, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3862 {
if yyrl3862 <= cap(yyv3862) {
yyv3862 = yyv3862[:yyrl3862]
} else {
yyv3862 = make([]ComponentStatus, yyrl3862)
}
} else {
yyv3862 = make([]ComponentStatus, yyrl3862)
}
yyc3862 = true
yyrr3862 = len(yyv3862)
if yyrg3862 {
copy(yyv3862, yyv23862)
}
} else if yyl3862 != len(yyv3862) {
yyv3862 = yyv3862[:yyl3862]
yyc3862 = true
}
yyj3862 := 0
for ; yyj3862 < yyrr3862; yyj3862++ {
yyh3862.ElemContainerState(yyj3862)
if r.TryDecodeAsNil() {
yyv3862[yyj3862] = ComponentStatus{}
} else {
yyv3863 := &yyv3862[yyj3862]
yyv3863.CodecDecodeSelf(d)
}
}
if yyrt3862 {
for ; yyj3862 < yyl3862; yyj3862++ {
yyv3862 = append(yyv3862, ComponentStatus{})
yyh3862.ElemContainerState(yyj3862)
if r.TryDecodeAsNil() {
yyv3862[yyj3862] = ComponentStatus{}
} else {
yyv3864 := &yyv3862[yyj3862]
yyv3864.CodecDecodeSelf(d)
}
}
}
} else {
yyj3862 := 0
for ; !r.CheckBreak(); yyj3862++ {
if yyj3862 >= len(yyv3862) {
yyv3862 = append(yyv3862, ComponentStatus{}) // var yyz3862 ComponentStatus
yyc3862 = true
}
yyh3862.ElemContainerState(yyj3862)
if yyj3862 < len(yyv3862) {
if r.TryDecodeAsNil() {
yyv3862[yyj3862] = ComponentStatus{}
} else {
yyv3865 := &yyv3862[yyj3862]
yyv3865.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3862 < len(yyv3862) {
yyv3862 = yyv3862[:yyj3862]
yyc3862 = true
} else if yyj3862 == 0 && yyv3862 == nil {
yyv3862 = []ComponentStatus{}
yyc3862 = true
}
}
yyh3862.End()
if yyc3862 {
*v = yyv3862
}
}