kubernetes/pkg/api/types.generated.go
2016-08-21 15:47:23 +02:00

61473 lines
1.4 MiB

/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// ************************************************************
// DO NOT EDIT.
// THIS FILE IS AUTO-GENERATED BY codecgen.
// ************************************************************
package api
import (
"errors"
"fmt"
codec1978 "github.com/ugorji/go/codec"
pkg3_resource "k8s.io/kubernetes/pkg/api/resource"
pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
pkg6_fields "k8s.io/kubernetes/pkg/fields"
pkg5_labels "k8s.io/kubernetes/pkg/labels"
pkg7_runtime "k8s.io/kubernetes/pkg/runtime"
pkg1_types "k8s.io/kubernetes/pkg/types"
pkg4_intstr "k8s.io/kubernetes/pkg/util/intstr"
"reflect"
"runtime"
time "time"
)
const (
// ----- content types ----
codecSelferC_UTF81234 = 1
codecSelferC_RAW1234 = 0
// ----- value types used ----
codecSelferValueTypeArray1234 = 10
codecSelferValueTypeMap1234 = 9
// ----- containerStateValues ----
codecSelfer_containerMapKey1234 = 2
codecSelfer_containerMapValue1234 = 3
codecSelfer_containerMapEnd1234 = 4
codecSelfer_containerArrayElem1234 = 6
codecSelfer_containerArrayEnd1234 = 7
)
var (
codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits())
codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`)
)
type codecSelfer1234 struct{}
func init() {
if codec1978.GenVersion != 5 {
_, file, _, _ := runtime.Caller(0)
err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
5, codec1978.GenVersion, file)
panic(err)
}
if false { // reference the types, but skip this branch at build/run time
var v0 pkg3_resource.Quantity
var v1 pkg2_unversioned.Time
var v2 pkg6_fields.Selector
var v3 pkg5_labels.Selector
var v4 pkg7_runtime.Object
var v5 pkg1_types.UID
var v6 pkg4_intstr.IntOrString
var v7 time.Time
_, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7
}
}
func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
var yyq2 [14]bool
_, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false
yyq2[0] = x.Name != ""
yyq2[1] = x.GenerateName != ""
yyq2[2] = x.Namespace != ""
yyq2[3] = x.SelfLink != ""
yyq2[4] = x.UID != ""
yyq2[5] = x.ResourceVersion != ""
yyq2[6] = x.Generation != 0
yyq2[7] = true
yyq2[8] = x.DeletionTimestamp != nil
yyq2[9] = x.DeletionGracePeriodSeconds != nil
yyq2[10] = len(x.Labels) != 0
yyq2[11] = len(x.Annotations) != 0
yyq2[12] = len(x.OwnerReferences) != 0
yyq2[13] = len(x.Finalizers) != 0
var yynn2 int
if yyr2 || yy2arr2 {
r.EncodeArrayStart(14)
} else {
yynn2 = 0
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.EncodeMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[0] {
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[1] {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generateName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] {
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[3] {
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selfLink"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[4] {
yym16 := z.EncBinary()
_ = yym16
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym17 := z.EncBinary()
_ = yym17
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[5] {
yym19 := z.EncBinary()
_ = yym19
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym20 := z.EncBinary()
_ = yym20
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[6] {
yym22 := z.EncBinary()
_ = yym22
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generation"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym23 := z.EncBinary()
_ = yym23
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[7] {
yy25 := &x.CreationTimestamp
yym26 := z.EncBinary()
_ = yym26
if false {
} else if z.HasExtensions() && z.EncExt(yy25) {
} else if yym26 {
z.EncBinaryMarshal(yy25)
} else if !yym26 && z.IsJSONHandle() {
z.EncJSONMarshal(yy25)
} else {
z.EncFallback(yy25)
}
} else {
r.EncodeNil()
}
} else {
if yyq2[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy27 := &x.CreationTimestamp
yym28 := z.EncBinary()
_ = yym28
if false {
} else if z.HasExtensions() && z.EncExt(yy27) {
} else if yym28 {
z.EncBinaryMarshal(yy27)
} else if !yym28 && z.IsJSONHandle() {
z.EncJSONMarshal(yy27)
} else {
z.EncFallback(yy27)
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[8] {
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym30 := z.EncBinary()
_ = yym30
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym30 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym30 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym31 := z.EncBinary()
_ = yym31
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym31 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym31 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[9] {
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy33 := *x.DeletionGracePeriodSeconds
yym34 := z.EncBinary()
_ = yym34
if false {
} else {
r.EncodeInt(int64(yy33))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy35 := *x.DeletionGracePeriodSeconds
yym36 := z.EncBinary()
_ = yym36
if false {
} else {
r.EncodeInt(int64(yy35))
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[10] {
if x.Labels == nil {
r.EncodeNil()
} else {
yym38 := z.EncBinary()
_ = yym38
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("labels"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Labels == nil {
r.EncodeNil()
} else {
yym39 := z.EncBinary()
_ = yym39
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[11] {
if x.Annotations == nil {
r.EncodeNil()
} else {
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("annotations"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Annotations == nil {
r.EncodeNil()
} else {
yym42 := z.EncBinary()
_ = yym42
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[12] {
if x.OwnerReferences == nil {
r.EncodeNil()
} else {
yym44 := z.EncBinary()
_ = yym44
if false {
} else {
h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ownerReferences"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.OwnerReferences == nil {
r.EncodeNil()
} else {
yym45 := z.EncBinary()
_ = yym45
if false {
} else {
h.encSliceOwnerReference(([]OwnerReference)(x.OwnerReferences), e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[13] {
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym47 := z.EncBinary()
_ = yym47
if false {
} else {
z.F.EncSliceStringV(x.Finalizers, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finalizers"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym48 := z.EncBinary()
_ = yym48
if false {
} else {
z.F.EncSliceStringV(x.Finalizers, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym49 := z.DecBinary()
_ = yym49
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct50 := r.ContainerType()
if yyct50 == codecSelferValueTypeMap1234 {
yyl50 := r.ReadMapStart()
if yyl50 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl50, d)
}
} else if yyct50 == codecSelferValueTypeArray1234 {
yyl50 := r.ReadArrayStart()
if yyl50 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl50, 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 yys51Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys51Slc
var yyhl51 bool = l >= 0
for yyj51 := 0; ; yyj51++ {
if yyhl51 {
if yyj51 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys51Slc = r.DecodeBytes(yys51Slc, true, true)
yys51 := string(yys51Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys51 {
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 {
yyv59 := &x.CreationTimestamp
yym60 := z.DecBinary()
_ = yym60
if false {
} else if z.HasExtensions() && z.DecExt(yyv59) {
} else if yym60 {
z.DecBinaryUnmarshal(yyv59)
} else if !yym60 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv59)
} else {
z.DecFallback(yyv59, false)
}
}
case "deletionTimestamp":
if r.TryDecodeAsNil() {
if x.DeletionTimestamp != nil {
x.DeletionTimestamp = nil
}
} else {
if x.DeletionTimestamp == nil {
x.DeletionTimestamp = new(pkg2_unversioned.Time)
}
yym62 := z.DecBinary()
_ = yym62
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym62 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym62 && 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)
}
yym64 := z.DecBinary()
_ = yym64
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
case "labels":
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv65 := &x.Labels
yym66 := z.DecBinary()
_ = yym66
if false {
} else {
z.F.DecMapStringStringX(yyv65, false, d)
}
}
case "annotations":
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv67 := &x.Annotations
yym68 := z.DecBinary()
_ = yym68
if false {
} else {
z.F.DecMapStringStringX(yyv67, false, d)
}
}
case "ownerReferences":
if r.TryDecodeAsNil() {
x.OwnerReferences = nil
} else {
yyv69 := &x.OwnerReferences
yym70 := z.DecBinary()
_ = yym70
if false {
} else {
h.decSliceOwnerReference((*[]OwnerReference)(yyv69), d)
}
}
case "finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv71 := &x.Finalizers
yym72 := z.DecBinary()
_ = yym72
if false {
} else {
z.F.DecSliceStringX(yyv71, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys51)
} // end switch yys51
} // end for yyj51
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 yyj73 int
var yyb73 bool
var yyhl73 bool = l >= 0
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.GenerateName = ""
} else {
x.GenerateName = string(r.DecodeString())
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SelfLink = ""
} else {
x.SelfLink = string(r.DecodeString())
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Generation = 0
} else {
x.Generation = int64(r.DecodeInt(64))
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CreationTimestamp = pkg2_unversioned.Time{}
} else {
yyv81 := &x.CreationTimestamp
yym82 := z.DecBinary()
_ = yym82
if false {
} else if z.HasExtensions() && z.DecExt(yyv81) {
} else if yym82 {
z.DecBinaryUnmarshal(yyv81)
} else if !yym82 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv81)
} else {
z.DecFallback(yyv81, false)
}
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
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)
}
yym84 := z.DecBinary()
_ = yym84
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym84 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym84 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.DeletionTimestamp)
} else {
z.DecFallback(x.DeletionTimestamp, false)
}
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
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)
}
yym86 := z.DecBinary()
_ = yym86
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv87 := &x.Labels
yym88 := z.DecBinary()
_ = yym88
if false {
} else {
z.F.DecMapStringStringX(yyv87, false, d)
}
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv89 := &x.Annotations
yym90 := z.DecBinary()
_ = yym90
if false {
} else {
z.F.DecMapStringStringX(yyv89, false, d)
}
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OwnerReferences = nil
} else {
yyv91 := &x.OwnerReferences
yym92 := z.DecBinary()
_ = yym92
if false {
} else {
h.decSliceOwnerReference((*[]OwnerReference)(yyv91), d)
}
}
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv93 := &x.Finalizers
yym94 := z.DecBinary()
_ = yym94
if false {
} else {
z.F.DecSliceStringX(yyv93, false, d)
}
}
for {
yyj73++
if yyhl73 {
yyb73 = yyj73 > l
} else {
yyb73 = r.CheckBreak()
}
if yyb73 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj73-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 {
yym95 := z.EncBinary()
_ = yym95
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep96 := !z.EncBinary()
yy2arr96 := z.EncBasicHandle().StructToArray
var yyq96 [22]bool
_, _, _ = yysep96, yyq96, yy2arr96
const yyr96 bool = false
yyq96[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil
yyq96[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil
yyq96[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq96[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq96[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil
yyq96[6] = x.VolumeSource.Secret != nil && x.Secret != nil
yyq96[7] = x.VolumeSource.NFS != nil && x.NFS != nil
yyq96[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil
yyq96[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq96[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil
yyq96[11] = x.VolumeSource.RBD != nil && x.RBD != nil
yyq96[12] = x.VolumeSource.Quobyte != nil && x.Quobyte != nil
yyq96[13] = x.VolumeSource.FlexVolume != nil && x.FlexVolume != nil
yyq96[14] = x.VolumeSource.Cinder != nil && x.Cinder != nil
yyq96[15] = x.VolumeSource.CephFS != nil && x.CephFS != nil
yyq96[16] = x.VolumeSource.Flocker != nil && x.Flocker != nil
yyq96[17] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
yyq96[18] = x.VolumeSource.FC != nil && x.FC != nil
yyq96[19] = x.VolumeSource.AzureFile != nil && x.AzureFile != nil
yyq96[20] = x.VolumeSource.ConfigMap != nil && x.ConfigMap != nil
yyq96[21] = x.VolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
var yynn96 int
if yyr96 || yy2arr96 {
r.EncodeArrayStart(22)
} else {
yynn96 = 1
for _, b := range yyq96 {
if b {
yynn96++
}
}
r.EncodeMapStart(yynn96)
yynn96 = 0
}
if yyr96 || yy2arr96 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym98 := z.EncBinary()
_ = yym98
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)
yym99 := z.EncBinary()
_ = yym99
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
var yyn100 bool
if x.VolumeSource.HostPath == nil {
yyn100 = true
goto LABEL100
}
LABEL100:
if yyr96 || yy2arr96 {
if yyn100 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[1] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn100 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn101 bool
if x.VolumeSource.EmptyDir == nil {
yyn101 = true
goto LABEL101
}
LABEL101:
if yyr96 || yy2arr96 {
if yyn101 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[2] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn101 {
r.EncodeNil()
} else {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
}
}
}
var yyn102 bool
if x.VolumeSource.GCEPersistentDisk == nil {
yyn102 = true
goto LABEL102
}
LABEL102:
if yyr96 || yy2arr96 {
if yyn102 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[3] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn102 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn103 bool
if x.VolumeSource.AWSElasticBlockStore == nil {
yyn103 = true
goto LABEL103
}
LABEL103:
if yyr96 || yy2arr96 {
if yyn103 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[4] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn103 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn104 bool
if x.VolumeSource.GitRepo == nil {
yyn104 = true
goto LABEL104
}
LABEL104:
if yyr96 || yy2arr96 {
if yyn104 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[5] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn104 {
r.EncodeNil()
} else {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
}
}
}
var yyn105 bool
if x.VolumeSource.Secret == nil {
yyn105 = true
goto LABEL105
}
LABEL105:
if yyr96 || yy2arr96 {
if yyn105 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[6] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secret"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn105 {
r.EncodeNil()
} else {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
}
}
}
var yyn106 bool
if x.VolumeSource.NFS == nil {
yyn106 = true
goto LABEL106
}
LABEL106:
if yyr96 || yy2arr96 {
if yyn106 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[7] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn106 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn107 bool
if x.VolumeSource.ISCSI == nil {
yyn107 = true
goto LABEL107
}
LABEL107:
if yyr96 || yy2arr96 {
if yyn107 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[8] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn107 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn108 bool
if x.VolumeSource.Glusterfs == nil {
yyn108 = true
goto LABEL108
}
LABEL108:
if yyr96 || yy2arr96 {
if yyn108 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[9] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn108 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn109 bool
if x.VolumeSource.PersistentVolumeClaim == nil {
yyn109 = true
goto LABEL109
}
LABEL109:
if yyr96 || yy2arr96 {
if yyn109 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[10] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn109 {
r.EncodeNil()
} else {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
}
}
}
var yyn110 bool
if x.VolumeSource.RBD == nil {
yyn110 = true
goto LABEL110
}
LABEL110:
if yyr96 || yy2arr96 {
if yyn110 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[11] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn110 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn111 bool
if x.VolumeSource.Quobyte == nil {
yyn111 = true
goto LABEL111
}
LABEL111:
if yyr96 || yy2arr96 {
if yyn111 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[12] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn111 {
r.EncodeNil()
} else {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
}
var yyn112 bool
if x.VolumeSource.FlexVolume == nil {
yyn112 = true
goto LABEL112
}
LABEL112:
if yyr96 || yy2arr96 {
if yyn112 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[13] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn112 {
r.EncodeNil()
} else {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn113 bool
if x.VolumeSource.Cinder == nil {
yyn113 = true
goto LABEL113
}
LABEL113:
if yyr96 || yy2arr96 {
if yyn113 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[14] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn113 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn114 bool
if x.VolumeSource.CephFS == nil {
yyn114 = true
goto LABEL114
}
LABEL114:
if yyr96 || yy2arr96 {
if yyn114 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[15] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn114 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn115 bool
if x.VolumeSource.Flocker == nil {
yyn115 = true
goto LABEL115
}
LABEL115:
if yyr96 || yy2arr96 {
if yyn115 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[16] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn115 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
var yyn116 bool
if x.VolumeSource.DownwardAPI == nil {
yyn116 = true
goto LABEL116
}
LABEL116:
if yyr96 || yy2arr96 {
if yyn116 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[17] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn116 {
r.EncodeNil()
} else {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
}
}
}
var yyn117 bool
if x.VolumeSource.FC == nil {
yyn117 = true
goto LABEL117
}
LABEL117:
if yyr96 || yy2arr96 {
if yyn117 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[18] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[18] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn117 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
var yyn118 bool
if x.VolumeSource.AzureFile == nil {
yyn118 = true
goto LABEL118
}
LABEL118:
if yyr96 || yy2arr96 {
if yyn118 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[19] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[19] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn118 {
r.EncodeNil()
} else {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
}
var yyn119 bool
if x.VolumeSource.ConfigMap == nil {
yyn119 = true
goto LABEL119
}
LABEL119:
if yyr96 || yy2arr96 {
if yyn119 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[20] {
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[20] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("configMap"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn119 {
r.EncodeNil()
} else {
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
}
}
}
var yyn120 bool
if x.VolumeSource.VsphereVolume == nil {
yyn120 = true
goto LABEL120
}
LABEL120:
if yyr96 || yy2arr96 {
if yyn120 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq96[21] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq96[21] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn120 {
r.EncodeNil()
} else {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
}
if yyr96 || yy2arr96 {
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
yym121 := z.DecBinary()
_ = yym121
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct122 := r.ContainerType()
if yyct122 == codecSelferValueTypeMap1234 {
yyl122 := r.ReadMapStart()
if yyl122 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl122, d)
}
} else if yyct122 == codecSelferValueTypeArray1234 {
yyl122 := r.ReadArrayStart()
if yyl122 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl122, 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 yys123Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys123Slc
var yyhl123 bool = l >= 0
for yyj123 := 0; ; yyj123++ {
if yyhl123 {
if yyj123 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys123Slc = r.DecodeBytes(yys123Slc, true, true)
yys123 := string(yys123Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys123 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "hostPath":
if x.VolumeSource.HostPath == nil {
x.VolumeSource.HostPath = new(HostPathVolumeSource)
}
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "emptyDir":
if x.VolumeSource.EmptyDir == nil {
x.VolumeSource.EmptyDir = new(EmptyDirVolumeSource)
}
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if x.VolumeSource.GCEPersistentDisk == nil {
x.VolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if x.VolumeSource.AWSElasticBlockStore == nil {
x.VolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "gitRepo":
if x.VolumeSource.GitRepo == nil {
x.VolumeSource.GitRepo = new(GitRepoVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
case "secret":
if x.VolumeSource.Secret == nil {
x.VolumeSource.Secret = new(SecretVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
case "nfs":
if x.VolumeSource.NFS == nil {
x.VolumeSource.NFS = new(NFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "iscsi":
if x.VolumeSource.ISCSI == nil {
x.VolumeSource.ISCSI = new(ISCSIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "glusterfs":
if x.VolumeSource.Glusterfs == nil {
x.VolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "persistentVolumeClaim":
if x.VolumeSource.PersistentVolumeClaim == nil {
x.VolumeSource.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
case "rbd":
if x.VolumeSource.RBD == nil {
x.VolumeSource.RBD = new(RBDVolumeSource)
}
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if x.VolumeSource.Quobyte == nil {
x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "flexVolume":
if x.VolumeSource.FlexVolume == nil {
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if x.VolumeSource.Cinder == nil {
x.VolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.VolumeSource.CephFS == nil {
x.VolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if x.VolumeSource.Flocker == nil {
x.VolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if x.VolumeSource.DownwardAPI == nil {
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if x.VolumeSource.FC == nil {
x.VolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "azureFile":
if x.VolumeSource.AzureFile == nil {
x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "configMap":
if x.VolumeSource.ConfigMap == nil {
x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
case "vsphereVolume":
if x.VolumeSource.VsphereVolume == nil {
x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys123)
} // end switch yys123
} // end for yyj123
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 yyj146 int
var yyb146 bool
var yyhl146 bool = l >= 0
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
if x.VolumeSource.Quobyte == nil {
x.VolumeSource.Quobyte = new(QuobyteVolumeSource)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
if x.VolumeSource.FlexVolume == nil {
x.VolumeSource.FlexVolume = new(FlexVolumeSource)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
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)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
if x.VolumeSource.AzureFile == nil {
x.VolumeSource.AzureFile = new(AzureFileVolumeSource)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
if x.VolumeSource.ConfigMap == nil {
x.VolumeSource.ConfigMap = new(ConfigMapVolumeSource)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
if x.VolumeSource.VsphereVolume == nil {
x.VolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
for {
yyj146++
if yyhl146 {
yyb146 = yyj146 > l
} else {
yyb146 = r.CheckBreak()
}
if yyb146 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj146-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 {
yym169 := z.EncBinary()
_ = yym169
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep170 := !z.EncBinary()
yy2arr170 := z.EncBasicHandle().StructToArray
var yyq170 [21]bool
_, _, _ = yysep170, yyq170, yy2arr170
const yyr170 bool = false
yyq170[0] = x.HostPath != nil
yyq170[1] = x.EmptyDir != nil
yyq170[2] = x.GCEPersistentDisk != nil
yyq170[3] = x.AWSElasticBlockStore != nil
yyq170[4] = x.GitRepo != nil
yyq170[5] = x.Secret != nil
yyq170[6] = x.NFS != nil
yyq170[7] = x.ISCSI != nil
yyq170[8] = x.Glusterfs != nil
yyq170[9] = x.PersistentVolumeClaim != nil
yyq170[10] = x.RBD != nil
yyq170[11] = x.Quobyte != nil
yyq170[12] = x.FlexVolume != nil
yyq170[13] = x.Cinder != nil
yyq170[14] = x.CephFS != nil
yyq170[15] = x.Flocker != nil
yyq170[16] = x.DownwardAPI != nil
yyq170[17] = x.FC != nil
yyq170[18] = x.AzureFile != nil
yyq170[19] = x.ConfigMap != nil
yyq170[20] = x.VsphereVolume != nil
var yynn170 int
if yyr170 || yy2arr170 {
r.EncodeArrayStart(21)
} else {
yynn170 = 0
for _, b := range yyq170 {
if b {
yynn170++
}
}
r.EncodeMapStart(yynn170)
yynn170 = 0
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[0] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[1] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[2] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[3] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[4] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[5] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[6] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[8] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[9] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[10] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[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 yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[11] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[12] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[13] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[14] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[15] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[16] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[17] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[18] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[18] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[19] {
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[19] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("configMap"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ConfigMap == nil {
r.EncodeNil()
} else {
x.ConfigMap.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq170[20] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq170[20] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
if yyr170 || yy2arr170 {
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
yym192 := z.DecBinary()
_ = yym192
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct193 := r.ContainerType()
if yyct193 == codecSelferValueTypeMap1234 {
yyl193 := r.ReadMapStart()
if yyl193 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl193, d)
}
} else if yyct193 == codecSelferValueTypeArray1234 {
yyl193 := r.ReadArrayStart()
if yyl193 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl193, 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 yys194Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys194Slc
var yyhl194 bool = l >= 0
for yyj194 := 0; ; yyj194++ {
if yyhl194 {
if yyj194 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys194Slc = r.DecodeBytes(yys194Slc, true, true)
yys194 := string(yys194Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys194 {
case "hostPath":
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "emptyDir":
if r.TryDecodeAsNil() {
if x.EmptyDir != nil {
x.EmptyDir = nil
}
} else {
if x.EmptyDir == nil {
x.EmptyDir = new(EmptyDirVolumeSource)
}
x.EmptyDir.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "gitRepo":
if r.TryDecodeAsNil() {
if x.GitRepo != nil {
x.GitRepo = nil
}
} else {
if x.GitRepo == nil {
x.GitRepo = new(GitRepoVolumeSource)
}
x.GitRepo.CodecDecodeSelf(d)
}
case "secret":
if r.TryDecodeAsNil() {
if x.Secret != nil {
x.Secret = nil
}
} else {
if x.Secret == nil {
x.Secret = new(SecretVolumeSource)
}
x.Secret.CodecDecodeSelf(d)
}
case "nfs":
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "iscsi":
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "glusterfs":
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "persistentVolumeClaim":
if r.TryDecodeAsNil() {
if x.PersistentVolumeClaim != nil {
x.PersistentVolumeClaim = nil
}
} else {
if x.PersistentVolumeClaim == nil {
x.PersistentVolumeClaim = new(PersistentVolumeClaimVolumeSource)
}
x.PersistentVolumeClaim.CodecDecodeSelf(d)
}
case "rbd":
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "flexVolume":
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "azureFile":
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "configMap":
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
case "vsphereVolume":
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys194)
} // end switch yys194
} // end for yyj194
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 yyj216 int
var yyb216 bool
var yyhl216 bool = l >= 0
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
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)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ConfigMap != nil {
x.ConfigMap = nil
}
} else {
if x.ConfigMap == nil {
x.ConfigMap = new(ConfigMapVolumeSource)
}
x.ConfigMap.CodecDecodeSelf(d)
}
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
for {
yyj216++
if yyhl216 {
yyb216 = yyj216 > l
} else {
yyb216 = r.CheckBreak()
}
if yyb216 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj216-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 {
yym238 := z.EncBinary()
_ = yym238
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep239 := !z.EncBinary()
yy2arr239 := z.EncBasicHandle().StructToArray
var yyq239 [15]bool
_, _, _ = yysep239, yyq239, yy2arr239
const yyr239 bool = false
yyq239[0] = x.GCEPersistentDisk != nil
yyq239[1] = x.AWSElasticBlockStore != nil
yyq239[2] = x.HostPath != nil
yyq239[3] = x.Glusterfs != nil
yyq239[4] = x.NFS != nil
yyq239[5] = x.RBD != nil
yyq239[6] = x.Quobyte != nil
yyq239[7] = x.ISCSI != nil
yyq239[8] = x.FlexVolume != nil
yyq239[9] = x.Cinder != nil
yyq239[10] = x.CephFS != nil
yyq239[11] = x.FC != nil
yyq239[12] = x.Flocker != nil
yyq239[13] = x.AzureFile != nil
yyq239[14] = x.VsphereVolume != nil
var yynn239 int
if yyr239 || yy2arr239 {
r.EncodeArrayStart(15)
} else {
yynn239 = 0
for _, b := range yyq239 {
if b {
yynn239++
}
}
r.EncodeMapStart(yynn239)
yynn239 = 0
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[0] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[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 yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[1] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[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 yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[2] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[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 yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[3] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[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 yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[4] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[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 yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[5] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[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 yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[6] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[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 yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[8] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[9] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[10] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[11] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[12] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[13] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq239[14] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq239[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
if yyr239 || yy2arr239 {
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
yym255 := z.DecBinary()
_ = yym255
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct256 := r.ContainerType()
if yyct256 == codecSelferValueTypeMap1234 {
yyl256 := r.ReadMapStart()
if yyl256 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl256, d)
}
} else if yyct256 == codecSelferValueTypeArray1234 {
yyl256 := r.ReadArrayStart()
if yyl256 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl256, 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 yys257Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys257Slc
var yyhl257 bool = l >= 0
for yyj257 := 0; ; yyj257++ {
if yyhl257 {
if yyj257 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys257Slc = r.DecodeBytes(yys257Slc, true, true)
yys257 := string(yys257Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys257 {
case "gcePersistentDisk":
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "iscsi":
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "flexVolume":
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "azureFile":
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "vsphereVolume":
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys257)
} // end switch yys257
} // end for yyj257
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 yyj273 int
var yyb273 bool
var yyhl273 bool = l >= 0
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
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)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
for {
yyj273++
if yyhl273 {
yyb273 = yyj273 > l
} else {
yyb273 = r.CheckBreak()
}
if yyb273 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj273-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 {
yym289 := z.EncBinary()
_ = yym289
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep290 := !z.EncBinary()
yy2arr290 := z.EncBasicHandle().StructToArray
var yyq290 [2]bool
_, _, _ = yysep290, yyq290, yy2arr290
const yyr290 bool = false
yyq290[1] = x.ReadOnly != false
var yynn290 int
if yyr290 || yy2arr290 {
r.EncodeArrayStart(2)
} else {
yynn290 = 1
for _, b := range yyq290 {
if b {
yynn290++
}
}
r.EncodeMapStart(yynn290)
yynn290 = 0
}
if yyr290 || yy2arr290 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym292 := z.EncBinary()
_ = yym292
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)
yym293 := z.EncBinary()
_ = yym293
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
}
}
if yyr290 || yy2arr290 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq290[1] {
yym295 := z.EncBinary()
_ = yym295
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq290[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym296 := z.EncBinary()
_ = yym296
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr290 || yy2arr290 {
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
yym297 := z.DecBinary()
_ = yym297
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct298 := r.ContainerType()
if yyct298 == codecSelferValueTypeMap1234 {
yyl298 := r.ReadMapStart()
if yyl298 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl298, d)
}
} else if yyct298 == codecSelferValueTypeArray1234 {
yyl298 := r.ReadArrayStart()
if yyl298 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl298, 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 yys299Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys299Slc
var yyhl299 bool = l >= 0
for yyj299 := 0; ; yyj299++ {
if yyhl299 {
if yyj299 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys299Slc = r.DecodeBytes(yys299Slc, true, true)
yys299 := string(yys299Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys299 {
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, yys299)
} // end switch yys299
} // end for yyj299
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 yyj302 int
var yyb302 bool
var yyhl302 bool = l >= 0
yyj302++
if yyhl302 {
yyb302 = yyj302 > l
} else {
yyb302 = r.CheckBreak()
}
if yyb302 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClaimName = ""
} else {
x.ClaimName = string(r.DecodeString())
}
yyj302++
if yyhl302 {
yyb302 = yyj302 > l
} else {
yyb302 = r.CheckBreak()
}
if yyb302 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj302++
if yyhl302 {
yyb302 = yyj302 > l
} else {
yyb302 = r.CheckBreak()
}
if yyb302 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj302-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 {
yym305 := z.EncBinary()
_ = yym305
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep306 := !z.EncBinary()
yy2arr306 := z.EncBasicHandle().StructToArray
var yyq306 [5]bool
_, _, _ = yysep306, yyq306, yy2arr306
const yyr306 bool = false
yyq306[0] = x.Kind != ""
yyq306[1] = x.APIVersion != ""
yyq306[2] = true
yyq306[3] = true
yyq306[4] = true
var yynn306 int
if yyr306 || yy2arr306 {
r.EncodeArrayStart(5)
} else {
yynn306 = 0
for _, b := range yyq306 {
if b {
yynn306++
}
}
r.EncodeMapStart(yynn306)
yynn306 = 0
}
if yyr306 || yy2arr306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq306[0] {
yym308 := z.EncBinary()
_ = yym308
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq306[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym309 := z.EncBinary()
_ = yym309
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr306 || yy2arr306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq306[1] {
yym311 := z.EncBinary()
_ = yym311
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq306[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym312 := z.EncBinary()
_ = yym312
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr306 || yy2arr306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq306[2] {
yy314 := &x.ObjectMeta
yy314.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq306[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy315 := &x.ObjectMeta
yy315.CodecEncodeSelf(e)
}
}
if yyr306 || yy2arr306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq306[3] {
yy317 := &x.Spec
yy317.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq306[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy318 := &x.Spec
yy318.CodecEncodeSelf(e)
}
}
if yyr306 || yy2arr306 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq306[4] {
yy320 := &x.Status
yy320.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq306[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy321 := &x.Status
yy321.CodecEncodeSelf(e)
}
}
if yyr306 || yy2arr306 {
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
yym322 := z.DecBinary()
_ = yym322
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct323 := r.ContainerType()
if yyct323 == codecSelferValueTypeMap1234 {
yyl323 := r.ReadMapStart()
if yyl323 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl323, d)
}
} else if yyct323 == codecSelferValueTypeArray1234 {
yyl323 := r.ReadArrayStart()
if yyl323 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl323, 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 yys324Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys324Slc
var yyhl324 bool = l >= 0
for yyj324 := 0; ; yyj324++ {
if yyhl324 {
if yyj324 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys324Slc = r.DecodeBytes(yys324Slc, true, true)
yys324 := string(yys324Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys324 {
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 {
yyv327 := &x.ObjectMeta
yyv327.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv328 := &x.Spec
yyv328.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv329 := &x.Status
yyv329.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys324)
} // end switch yys324
} // end for yyj324
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 yyj330 int
var yyb330 bool
var yyhl330 bool = l >= 0
yyj330++
if yyhl330 {
yyb330 = yyj330 > l
} else {
yyb330 = r.CheckBreak()
}
if yyb330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj330++
if yyhl330 {
yyb330 = yyj330 > l
} else {
yyb330 = r.CheckBreak()
}
if yyb330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj330++
if yyhl330 {
yyb330 = yyj330 > l
} else {
yyb330 = r.CheckBreak()
}
if yyb330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv333 := &x.ObjectMeta
yyv333.CodecDecodeSelf(d)
}
yyj330++
if yyhl330 {
yyb330 = yyj330 > l
} else {
yyb330 = r.CheckBreak()
}
if yyb330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv334 := &x.Spec
yyv334.CodecDecodeSelf(d)
}
yyj330++
if yyhl330 {
yyb330 = yyj330 > l
} else {
yyb330 = r.CheckBreak()
}
if yyb330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv335 := &x.Status
yyv335.CodecDecodeSelf(d)
}
for {
yyj330++
if yyhl330 {
yyb330 = yyj330 > l
} else {
yyb330 = r.CheckBreak()
}
if yyb330 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj330-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 {
yym336 := z.EncBinary()
_ = yym336
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep337 := !z.EncBinary()
yy2arr337 := z.EncBasicHandle().StructToArray
var yyq337 [19]bool
_, _, _ = yysep337, yyq337, yy2arr337
const yyr337 bool = false
yyq337[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq337[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq337[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
yyq337[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq337[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
yyq337[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
yyq337[7] = x.PersistentVolumeSource.Quobyte != nil && x.Quobyte != nil
yyq337[8] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
yyq337[9] = x.PersistentVolumeSource.FlexVolume != nil && x.FlexVolume != nil
yyq337[10] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
yyq337[11] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
yyq337[12] = x.PersistentVolumeSource.FC != nil && x.FC != nil
yyq337[13] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
yyq337[14] = x.PersistentVolumeSource.AzureFile != nil && x.AzureFile != nil
yyq337[15] = x.PersistentVolumeSource.VsphereVolume != nil && x.VsphereVolume != nil
yyq337[16] = len(x.AccessModes) != 0
yyq337[17] = x.ClaimRef != nil
yyq337[18] = x.PersistentVolumeReclaimPolicy != ""
var yynn337 int
if yyr337 || yy2arr337 {
r.EncodeArrayStart(19)
} else {
yynn337 = 1
for _, b := range yyq337 {
if b {
yynn337++
}
}
r.EncodeMapStart(yynn337)
yynn337 = 0
}
if yyr337 || yy2arr337 {
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 yyn339 bool
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
yyn339 = true
goto LABEL339
}
LABEL339:
if yyr337 || yy2arr337 {
if yyn339 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[1] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn339 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn340 bool
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
yyn340 = true
goto LABEL340
}
LABEL340:
if yyr337 || yy2arr337 {
if yyn340 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[2] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn340 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn341 bool
if x.PersistentVolumeSource.HostPath == nil {
yyn341 = true
goto LABEL341
}
LABEL341:
if yyr337 || yy2arr337 {
if yyn341 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[3] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn341 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn342 bool
if x.PersistentVolumeSource.Glusterfs == nil {
yyn342 = true
goto LABEL342
}
LABEL342:
if yyr337 || yy2arr337 {
if yyn342 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[4] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn342 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn343 bool
if x.PersistentVolumeSource.NFS == nil {
yyn343 = true
goto LABEL343
}
LABEL343:
if yyr337 || yy2arr337 {
if yyn343 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[5] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn343 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn344 bool
if x.PersistentVolumeSource.RBD == nil {
yyn344 = true
goto LABEL344
}
LABEL344:
if yyr337 || yy2arr337 {
if yyn344 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[6] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn344 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn345 bool
if x.PersistentVolumeSource.Quobyte == nil {
yyn345 = true
goto LABEL345
}
LABEL345:
if yyr337 || yy2arr337 {
if yyn345 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[7] {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("quobyte"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn345 {
r.EncodeNil()
} else {
if x.Quobyte == nil {
r.EncodeNil()
} else {
x.Quobyte.CodecEncodeSelf(e)
}
}
}
}
var yyn346 bool
if x.PersistentVolumeSource.ISCSI == nil {
yyn346 = true
goto LABEL346
}
LABEL346:
if yyr337 || yy2arr337 {
if yyn346 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[8] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn346 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn347 bool
if x.PersistentVolumeSource.FlexVolume == nil {
yyn347 = true
goto LABEL347
}
LABEL347:
if yyr337 || yy2arr337 {
if yyn347 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[9] {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flexVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn347 {
r.EncodeNil()
} else {
if x.FlexVolume == nil {
r.EncodeNil()
} else {
x.FlexVolume.CodecEncodeSelf(e)
}
}
}
}
var yyn348 bool
if x.PersistentVolumeSource.Cinder == nil {
yyn348 = true
goto LABEL348
}
LABEL348:
if yyr337 || yy2arr337 {
if yyn348 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[10] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn348 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn349 bool
if x.PersistentVolumeSource.CephFS == nil {
yyn349 = true
goto LABEL349
}
LABEL349:
if yyr337 || yy2arr337 {
if yyn349 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[11] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn349 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn350 bool
if x.PersistentVolumeSource.FC == nil {
yyn350 = true
goto LABEL350
}
LABEL350:
if yyr337 || yy2arr337 {
if yyn350 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[12] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn350 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
var yyn351 bool
if x.PersistentVolumeSource.Flocker == nil {
yyn351 = true
goto LABEL351
}
LABEL351:
if yyr337 || yy2arr337 {
if yyn351 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[13] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn351 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
var yyn352 bool
if x.PersistentVolumeSource.AzureFile == nil {
yyn352 = true
goto LABEL352
}
LABEL352:
if yyr337 || yy2arr337 {
if yyn352 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[14] {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("azureFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn352 {
r.EncodeNil()
} else {
if x.AzureFile == nil {
r.EncodeNil()
} else {
x.AzureFile.CodecEncodeSelf(e)
}
}
}
}
var yyn353 bool
if x.PersistentVolumeSource.VsphereVolume == nil {
yyn353 = true
goto LABEL353
}
LABEL353:
if yyr337 || yy2arr337 {
if yyn353 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[15] {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq337[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("vsphereVolume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn353 {
r.EncodeNil()
} else {
if x.VsphereVolume == nil {
r.EncodeNil()
} else {
x.VsphereVolume.CodecEncodeSelf(e)
}
}
}
}
if yyr337 || yy2arr337 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[16] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym355 := z.EncBinary()
_ = yym355
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq337[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym356 := z.EncBinary()
_ = yym356
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr337 || yy2arr337 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[17] {
if x.ClaimRef == nil {
r.EncodeNil()
} else {
x.ClaimRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq337[17] {
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 yyr337 || yy2arr337 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq337[18] {
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq337[18] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
}
}
if yyr337 || yy2arr337 {
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
yym359 := z.DecBinary()
_ = yym359
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct360 := r.ContainerType()
if yyct360 == codecSelferValueTypeMap1234 {
yyl360 := r.ReadMapStart()
if yyl360 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl360, d)
}
} else if yyct360 == codecSelferValueTypeArray1234 {
yyl360 := r.ReadArrayStart()
if yyl360 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl360, 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 yys361Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys361Slc
var yyhl361 bool = l >= 0
for yyj361 := 0; ; yyj361++ {
if yyhl361 {
if yyj361 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys361Slc = r.DecodeBytes(yys361Slc, true, true)
yys361 := string(yys361Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys361 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv362 := &x.Capacity
yyv362.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if x.PersistentVolumeSource.HostPath == nil {
x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
}
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if x.PersistentVolumeSource.Glusterfs == nil {
x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if x.PersistentVolumeSource.NFS == nil {
x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if x.PersistentVolumeSource.RBD == nil {
x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
}
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "quobyte":
if x.PersistentVolumeSource.Quobyte == nil {
x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
case "iscsi":
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "flexVolume":
if x.PersistentVolumeSource.FlexVolume == nil {
x.PersistentVolumeSource.FlexVolume = new(FlexVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FlexVolume != nil {
x.FlexVolume = nil
}
} else {
if x.FlexVolume == nil {
x.FlexVolume = new(FlexVolumeSource)
}
x.FlexVolume.CodecDecodeSelf(d)
}
case "cinder":
if x.PersistentVolumeSource.Cinder == nil {
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.PersistentVolumeSource.CephFS == nil {
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if x.PersistentVolumeSource.FC == nil {
x.PersistentVolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if x.PersistentVolumeSource.Flocker == nil {
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "azureFile":
if x.PersistentVolumeSource.AzureFile == nil {
x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
case "vsphereVolume":
if x.PersistentVolumeSource.VsphereVolume == nil {
x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv378 := &x.AccessModes
yym379 := z.DecBinary()
_ = yym379
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv378), 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, yys361)
} // end switch yys361
} // end for yyj361
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 yyj382 int
var yyb382 bool
var yyhl382 bool = l >= 0
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv383 := &x.Capacity
yyv383.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.Quobyte == nil {
x.PersistentVolumeSource.Quobyte = new(QuobyteVolumeSource)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Quobyte != nil {
x.Quobyte = nil
}
} else {
if x.Quobyte == nil {
x.Quobyte = new(QuobyteVolumeSource)
}
x.Quobyte.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.AzureFile == nil {
x.PersistentVolumeSource.AzureFile = new(AzureFileVolumeSource)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.AzureFile != nil {
x.AzureFile = nil
}
} else {
if x.AzureFile == nil {
x.AzureFile = new(AzureFileVolumeSource)
}
x.AzureFile.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.VsphereVolume == nil {
x.PersistentVolumeSource.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.VsphereVolume != nil {
x.VsphereVolume = nil
}
} else {
if x.VsphereVolume == nil {
x.VsphereVolume = new(VsphereVirtualDiskVolumeSource)
}
x.VsphereVolume.CodecDecodeSelf(d)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv399 := &x.AccessModes
yym400 := z.DecBinary()
_ = yym400
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv399), d)
}
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
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)
}
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PersistentVolumeReclaimPolicy = ""
} else {
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
}
for {
yyj382++
if yyhl382 {
yyb382 = yyj382 > l
} else {
yyb382 = r.CheckBreak()
}
if yyb382 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj382-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym403 := z.EncBinary()
_ = yym403
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
yym404 := z.DecBinary()
_ = yym404
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 {
yym405 := z.EncBinary()
_ = yym405
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep406 := !z.EncBinary()
yy2arr406 := z.EncBasicHandle().StructToArray
var yyq406 [3]bool
_, _, _ = yysep406, yyq406, yy2arr406
const yyr406 bool = false
yyq406[0] = x.Phase != ""
yyq406[1] = x.Message != ""
yyq406[2] = x.Reason != ""
var yynn406 int
if yyr406 || yy2arr406 {
r.EncodeArrayStart(3)
} else {
yynn406 = 0
for _, b := range yyq406 {
if b {
yynn406++
}
}
r.EncodeMapStart(yynn406)
yynn406 = 0
}
if yyr406 || yy2arr406 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq406[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq406[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr406 || yy2arr406 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq406[1] {
yym409 := z.EncBinary()
_ = yym409
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq406[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym410 := z.EncBinary()
_ = yym410
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr406 || yy2arr406 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq406[2] {
yym412 := z.EncBinary()
_ = yym412
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq406[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym413 := z.EncBinary()
_ = yym413
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr406 || yy2arr406 {
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
yym414 := z.DecBinary()
_ = yym414
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct415 := r.ContainerType()
if yyct415 == codecSelferValueTypeMap1234 {
yyl415 := r.ReadMapStart()
if yyl415 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl415, d)
}
} else if yyct415 == codecSelferValueTypeArray1234 {
yyl415 := r.ReadArrayStart()
if yyl415 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl415, 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 yys416Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys416Slc
var yyhl416 bool = l >= 0
for yyj416 := 0; ; yyj416++ {
if yyhl416 {
if yyj416 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys416Slc = r.DecodeBytes(yys416Slc, true, true)
yys416 := string(yys416Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys416 {
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, yys416)
} // end switch yys416
} // end for yyj416
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 yyj420 int
var yyb420 bool
var yyhl420 bool = l >= 0
yyj420++
if yyhl420 {
yyb420 = yyj420 > l
} else {
yyb420 = r.CheckBreak()
}
if yyb420 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumePhase(r.DecodeString())
}
yyj420++
if yyhl420 {
yyb420 = yyj420 > l
} else {
yyb420 = r.CheckBreak()
}
if yyb420 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj420++
if yyhl420 {
yyb420 = yyj420 > l
} else {
yyb420 = r.CheckBreak()
}
if yyb420 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
for {
yyj420++
if yyhl420 {
yyb420 = yyj420 > l
} else {
yyb420 = r.CheckBreak()
}
if yyb420 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj420-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 {
yym424 := z.EncBinary()
_ = yym424
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep425 := !z.EncBinary()
yy2arr425 := z.EncBasicHandle().StructToArray
var yyq425 [4]bool
_, _, _ = yysep425, yyq425, yy2arr425
const yyr425 bool = false
yyq425[0] = x.Kind != ""
yyq425[1] = x.APIVersion != ""
yyq425[2] = true
var yynn425 int
if yyr425 || yy2arr425 {
r.EncodeArrayStart(4)
} else {
yynn425 = 1
for _, b := range yyq425 {
if b {
yynn425++
}
}
r.EncodeMapStart(yynn425)
yynn425 = 0
}
if yyr425 || yy2arr425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq425[0] {
yym427 := z.EncBinary()
_ = yym427
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq425[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym428 := z.EncBinary()
_ = yym428
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr425 || yy2arr425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq425[1] {
yym430 := z.EncBinary()
_ = yym430
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq425[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym431 := z.EncBinary()
_ = yym431
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr425 || yy2arr425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq425[2] {
yy433 := &x.ListMeta
yym434 := z.EncBinary()
_ = yym434
if false {
} else if z.HasExtensions() && z.EncExt(yy433) {
} else {
z.EncFallback(yy433)
}
} else {
r.EncodeNil()
}
} else {
if yyq425[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy435 := &x.ListMeta
yym436 := z.EncBinary()
_ = yym436
if false {
} else if z.HasExtensions() && z.EncExt(yy435) {
} else {
z.EncFallback(yy435)
}
}
}
if yyr425 || yy2arr425 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym438 := z.EncBinary()
_ = yym438
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 {
yym439 := z.EncBinary()
_ = yym439
if false {
} else {
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
}
}
}
if yyr425 || yy2arr425 {
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
yym440 := z.DecBinary()
_ = yym440
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct441 := r.ContainerType()
if yyct441 == codecSelferValueTypeMap1234 {
yyl441 := r.ReadMapStart()
if yyl441 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl441, d)
}
} else if yyct441 == codecSelferValueTypeArray1234 {
yyl441 := r.ReadArrayStart()
if yyl441 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl441, 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 yys442Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys442Slc
var yyhl442 bool = l >= 0
for yyj442 := 0; ; yyj442++ {
if yyhl442 {
if yyj442 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys442Slc = r.DecodeBytes(yys442Slc, true, true)
yys442 := string(yys442Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys442 {
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 {
yyv445 := &x.ListMeta
yym446 := z.DecBinary()
_ = yym446
if false {
} else if z.HasExtensions() && z.DecExt(yyv445) {
} else {
z.DecFallback(yyv445, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv447 := &x.Items
yym448 := z.DecBinary()
_ = yym448
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv447), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys442)
} // end switch yys442
} // end for yyj442
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 yyj449 int
var yyb449 bool
var yyhl449 bool = l >= 0
yyj449++
if yyhl449 {
yyb449 = yyj449 > l
} else {
yyb449 = r.CheckBreak()
}
if yyb449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj449++
if yyhl449 {
yyb449 = yyj449 > l
} else {
yyb449 = r.CheckBreak()
}
if yyb449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj449++
if yyhl449 {
yyb449 = yyj449 > l
} else {
yyb449 = r.CheckBreak()
}
if yyb449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
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)
}
}
yyj449++
if yyhl449 {
yyb449 = yyj449 > l
} else {
yyb449 = r.CheckBreak()
}
if yyb449 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv454 := &x.Items
yym455 := z.DecBinary()
_ = yym455
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv454), d)
}
}
for {
yyj449++
if yyhl449 {
yyb449 = yyj449 > l
} else {
yyb449 = r.CheckBreak()
}
if yyb449 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj449-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 {
yym456 := z.EncBinary()
_ = yym456
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep457 := !z.EncBinary()
yy2arr457 := z.EncBasicHandle().StructToArray
var yyq457 [5]bool
_, _, _ = yysep457, yyq457, yy2arr457
const yyr457 bool = false
yyq457[0] = x.Kind != ""
yyq457[1] = x.APIVersion != ""
yyq457[2] = true
yyq457[3] = true
yyq457[4] = true
var yynn457 int
if yyr457 || yy2arr457 {
r.EncodeArrayStart(5)
} else {
yynn457 = 0
for _, b := range yyq457 {
if b {
yynn457++
}
}
r.EncodeMapStart(yynn457)
yynn457 = 0
}
if yyr457 || yy2arr457 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq457[0] {
yym459 := z.EncBinary()
_ = yym459
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq457[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym460 := z.EncBinary()
_ = yym460
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr457 || yy2arr457 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq457[1] {
yym462 := z.EncBinary()
_ = yym462
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq457[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym463 := z.EncBinary()
_ = yym463
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr457 || yy2arr457 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq457[2] {
yy465 := &x.ObjectMeta
yy465.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq457[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy466 := &x.ObjectMeta
yy466.CodecEncodeSelf(e)
}
}
if yyr457 || yy2arr457 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq457[3] {
yy468 := &x.Spec
yy468.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq457[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy469 := &x.Spec
yy469.CodecEncodeSelf(e)
}
}
if yyr457 || yy2arr457 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq457[4] {
yy471 := &x.Status
yy471.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq457[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy472 := &x.Status
yy472.CodecEncodeSelf(e)
}
}
if yyr457 || yy2arr457 {
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
yym473 := z.DecBinary()
_ = yym473
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct474 := r.ContainerType()
if yyct474 == codecSelferValueTypeMap1234 {
yyl474 := r.ReadMapStart()
if yyl474 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl474, d)
}
} else if yyct474 == codecSelferValueTypeArray1234 {
yyl474 := r.ReadArrayStart()
if yyl474 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl474, 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 yys475Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys475Slc
var yyhl475 bool = l >= 0
for yyj475 := 0; ; yyj475++ {
if yyhl475 {
if yyj475 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys475Slc = r.DecodeBytes(yys475Slc, true, true)
yys475 := string(yys475Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys475 {
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 {
yyv478 := &x.ObjectMeta
yyv478.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeClaimSpec{}
} else {
yyv479 := &x.Spec
yyv479.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeClaimStatus{}
} else {
yyv480 := &x.Status
yyv480.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys475)
} // end switch yys475
} // end for yyj475
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 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.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
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.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
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.ObjectMeta = ObjectMeta{}
} else {
yyv484 := &x.ObjectMeta
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.Spec = PersistentVolumeClaimSpec{}
} else {
yyv485 := &x.Spec
yyv485.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.Status = PersistentVolumeClaimStatus{}
} else {
yyv486 := &x.Status
yyv486.CodecDecodeSelf(d)
}
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 *PersistentVolumeClaimList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym487 := z.EncBinary()
_ = yym487
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep488 := !z.EncBinary()
yy2arr488 := z.EncBasicHandle().StructToArray
var yyq488 [4]bool
_, _, _ = yysep488, yyq488, yy2arr488
const yyr488 bool = false
yyq488[0] = x.Kind != ""
yyq488[1] = x.APIVersion != ""
yyq488[2] = true
var yynn488 int
if yyr488 || yy2arr488 {
r.EncodeArrayStart(4)
} else {
yynn488 = 1
for _, b := range yyq488 {
if b {
yynn488++
}
}
r.EncodeMapStart(yynn488)
yynn488 = 0
}
if yyr488 || yy2arr488 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq488[0] {
yym490 := z.EncBinary()
_ = yym490
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq488[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym491 := z.EncBinary()
_ = yym491
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr488 || yy2arr488 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq488[1] {
yym493 := z.EncBinary()
_ = yym493
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq488[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym494 := z.EncBinary()
_ = yym494
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr488 || yy2arr488 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq488[2] {
yy496 := &x.ListMeta
yym497 := z.EncBinary()
_ = yym497
if false {
} else if z.HasExtensions() && z.EncExt(yy496) {
} else {
z.EncFallback(yy496)
}
} else {
r.EncodeNil()
}
} else {
if yyq488[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy498 := &x.ListMeta
yym499 := z.EncBinary()
_ = yym499
if false {
} else if z.HasExtensions() && z.EncExt(yy498) {
} else {
z.EncFallback(yy498)
}
}
}
if yyr488 || yy2arr488 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym501 := z.EncBinary()
_ = yym501
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 {
yym502 := z.EncBinary()
_ = yym502
if false {
} else {
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
}
}
}
if yyr488 || yy2arr488 {
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
yym503 := z.DecBinary()
_ = yym503
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct504 := r.ContainerType()
if yyct504 == codecSelferValueTypeMap1234 {
yyl504 := r.ReadMapStart()
if yyl504 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl504, d)
}
} else if yyct504 == codecSelferValueTypeArray1234 {
yyl504 := r.ReadArrayStart()
if yyl504 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl504, 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 yys505Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys505Slc
var yyhl505 bool = l >= 0
for yyj505 := 0; ; yyj505++ {
if yyhl505 {
if yyj505 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys505Slc = r.DecodeBytes(yys505Slc, true, true)
yys505 := string(yys505Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys505 {
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 {
yyv508 := &x.ListMeta
yym509 := z.DecBinary()
_ = yym509
if false {
} else if z.HasExtensions() && z.DecExt(yyv508) {
} else {
z.DecFallback(yyv508, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv510 := &x.Items
yym511 := z.DecBinary()
_ = yym511
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv510), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys505)
} // end switch yys505
} // end for yyj505
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 yyj512 int
var yyb512 bool
var yyhl512 bool = l >= 0
yyj512++
if yyhl512 {
yyb512 = yyj512 > l
} else {
yyb512 = r.CheckBreak()
}
if yyb512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj512++
if yyhl512 {
yyb512 = yyj512 > l
} else {
yyb512 = r.CheckBreak()
}
if yyb512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj512++
if yyhl512 {
yyb512 = yyj512 > l
} else {
yyb512 = r.CheckBreak()
}
if yyb512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv515 := &x.ListMeta
yym516 := z.DecBinary()
_ = yym516
if false {
} else if z.HasExtensions() && z.DecExt(yyv515) {
} else {
z.DecFallback(yyv515, false)
}
}
yyj512++
if yyhl512 {
yyb512 = yyj512 > l
} else {
yyb512 = r.CheckBreak()
}
if yyb512 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv517 := &x.Items
yym518 := z.DecBinary()
_ = yym518
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv517), d)
}
}
for {
yyj512++
if yyhl512 {
yyb512 = yyj512 > l
} else {
yyb512 = r.CheckBreak()
}
if yyb512 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj512-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 {
yym519 := z.EncBinary()
_ = yym519
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep520 := !z.EncBinary()
yy2arr520 := z.EncBasicHandle().StructToArray
var yyq520 [4]bool
_, _, _ = yysep520, yyq520, yy2arr520
const yyr520 bool = false
yyq520[0] = len(x.AccessModes) != 0
yyq520[1] = x.Selector != nil
yyq520[2] = true
yyq520[3] = x.VolumeName != ""
var yynn520 int
if yyr520 || yy2arr520 {
r.EncodeArrayStart(4)
} else {
yynn520 = 0
for _, b := range yyq520 {
if b {
yynn520++
}
}
r.EncodeMapStart(yynn520)
yynn520 = 0
}
if yyr520 || yy2arr520 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq520[0] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym522 := z.EncBinary()
_ = yym522
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq520[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym523 := z.EncBinary()
_ = yym523
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr520 || yy2arr520 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq520[1] {
if x.Selector == nil {
r.EncodeNil()
} else {
yym525 := z.EncBinary()
_ = yym525
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq520[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym526 := z.EncBinary()
_ = yym526
if false {
} else if z.HasExtensions() && z.EncExt(x.Selector) {
} else {
z.EncFallback(x.Selector)
}
}
}
}
if yyr520 || yy2arr520 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq520[2] {
yy528 := &x.Resources
yy528.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq520[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy529 := &x.Resources
yy529.CodecEncodeSelf(e)
}
}
if yyr520 || yy2arr520 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq520[3] {
yym531 := z.EncBinary()
_ = yym531
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq520[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym532 := z.EncBinary()
_ = yym532
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
}
}
if yyr520 || yy2arr520 {
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
yym533 := z.DecBinary()
_ = yym533
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct534 := r.ContainerType()
if yyct534 == codecSelferValueTypeMap1234 {
yyl534 := r.ReadMapStart()
if yyl534 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl534, d)
}
} else if yyct534 == codecSelferValueTypeArray1234 {
yyl534 := r.ReadArrayStart()
if yyl534 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl534, 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 yys535Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys535Slc
var yyhl535 bool = l >= 0
for yyj535 := 0; ; yyj535++ {
if yyhl535 {
if yyj535 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys535Slc = r.DecodeBytes(yys535Slc, true, true)
yys535 := string(yys535Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys535 {
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv536 := &x.AccessModes
yym537 := z.DecBinary()
_ = yym537
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv536), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
x.Selector = new(pkg2_unversioned.LabelSelector)
}
yym539 := z.DecBinary()
_ = yym539
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv540 := &x.Resources
yyv540.CodecDecodeSelf(d)
}
case "volumeName":
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys535)
} // end switch yys535
} // end for yyj535
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 yyj542 int
var yyb542 bool
var yyhl542 bool = l >= 0
yyj542++
if yyhl542 {
yyb542 = yyj542 > l
} else {
yyb542 = r.CheckBreak()
}
if yyb542 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv543 := &x.AccessModes
yym544 := z.DecBinary()
_ = yym544
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv543), d)
}
}
yyj542++
if yyhl542 {
yyb542 = yyj542 > l
} else {
yyb542 = r.CheckBreak()
}
if yyb542 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Selector != nil {
x.Selector = nil
}
} else {
if x.Selector == nil {
x.Selector = new(pkg2_unversioned.LabelSelector)
}
yym546 := z.DecBinary()
_ = yym546
if false {
} else if z.HasExtensions() && z.DecExt(x.Selector) {
} else {
z.DecFallback(x.Selector, false)
}
}
yyj542++
if yyhl542 {
yyb542 = yyj542 > l
} else {
yyb542 = r.CheckBreak()
}
if yyb542 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv547 := &x.Resources
yyv547.CodecDecodeSelf(d)
}
yyj542++
if yyhl542 {
yyb542 = yyj542 > l
} else {
yyb542 = r.CheckBreak()
}
if yyb542 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
for {
yyj542++
if yyhl542 {
yyb542 = yyj542 > l
} else {
yyb542 = r.CheckBreak()
}
if yyb542 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj542-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 {
yym549 := z.EncBinary()
_ = yym549
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep550 := !z.EncBinary()
yy2arr550 := z.EncBasicHandle().StructToArray
var yyq550 [3]bool
_, _, _ = yysep550, yyq550, yy2arr550
const yyr550 bool = false
yyq550[0] = x.Phase != ""
yyq550[1] = len(x.AccessModes) != 0
yyq550[2] = len(x.Capacity) != 0
var yynn550 int
if yyr550 || yy2arr550 {
r.EncodeArrayStart(3)
} else {
yynn550 = 0
for _, b := range yyq550 {
if b {
yynn550++
}
}
r.EncodeMapStart(yynn550)
yynn550 = 0
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq550[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[1] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym553 := z.EncBinary()
_ = yym553
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq550[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym554 := z.EncBinary()
_ = yym554
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[2] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq550[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 yyr550 || yy2arr550 {
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
yym556 := z.DecBinary()
_ = yym556
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct557 := r.ContainerType()
if yyct557 == codecSelferValueTypeMap1234 {
yyl557 := r.ReadMapStart()
if yyl557 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl557, d)
}
} else if yyct557 == codecSelferValueTypeArray1234 {
yyl557 := r.ReadArrayStart()
if yyl557 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl557, 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 yys558Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys558Slc
var yyhl558 bool = l >= 0
for yyj558 := 0; ; yyj558++ {
if yyhl558 {
if yyj558 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys558Slc = r.DecodeBytes(yys558Slc, true, true)
yys558 := string(yys558Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys558 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv560 := &x.AccessModes
yym561 := z.DecBinary()
_ = yym561
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv560), d)
}
}
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv562 := &x.Capacity
yyv562.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys558)
} // end switch yys558
} // end for yyj558
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 yyj563 int
var yyb563 bool
var yyhl563 bool = l >= 0
yyj563++
if yyhl563 {
yyb563 = yyj563 > l
} else {
yyb563 = r.CheckBreak()
}
if yyb563 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
yyj563++
if yyhl563 {
yyb563 = yyj563 > l
} else {
yyb563 = r.CheckBreak()
}
if yyb563 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv565 := &x.AccessModes
yym566 := z.DecBinary()
_ = yym566
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv565), d)
}
}
yyj563++
if yyhl563 {
yyb563 = yyj563 > l
} else {
yyb563 = r.CheckBreak()
}
if yyb563 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv567 := &x.Capacity
yyv567.CodecDecodeSelf(d)
}
for {
yyj563++
if yyhl563 {
yyb563 = yyj563 > l
} else {
yyb563 = r.CheckBreak()
}
if yyb563 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj563-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym568 := z.EncBinary()
_ = yym568
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
yym569 := z.DecBinary()
_ = yym569
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
yym570 := z.EncBinary()
_ = yym570
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
yym571 := z.DecBinary()
_ = yym571
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
yym572 := z.EncBinary()
_ = yym572
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
yym573 := z.DecBinary()
_ = yym573
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 {
yym574 := z.EncBinary()
_ = yym574
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep575 := !z.EncBinary()
yy2arr575 := z.EncBasicHandle().StructToArray
var yyq575 [1]bool
_, _, _ = yysep575, yyq575, yy2arr575
const yyr575 bool = false
var yynn575 int
if yyr575 || yy2arr575 {
r.EncodeArrayStart(1)
} else {
yynn575 = 1
for _, b := range yyq575 {
if b {
yynn575++
}
}
r.EncodeMapStart(yynn575)
yynn575 = 0
}
if yyr575 || yy2arr575 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym577 := z.EncBinary()
_ = yym577
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)
yym578 := z.EncBinary()
_ = yym578
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr575 || yy2arr575 {
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
yym579 := z.DecBinary()
_ = yym579
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct580 := r.ContainerType()
if yyct580 == codecSelferValueTypeMap1234 {
yyl580 := r.ReadMapStart()
if yyl580 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl580, d)
}
} else if yyct580 == codecSelferValueTypeArray1234 {
yyl580 := r.ReadArrayStart()
if yyl580 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl580, 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 yys581Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys581Slc
var yyhl581 bool = l >= 0
for yyj581 := 0; ; yyj581++ {
if yyhl581 {
if yyj581 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys581Slc = r.DecodeBytes(yys581Slc, true, true)
yys581 := string(yys581Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys581 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys581)
} // end switch yys581
} // end for yyj581
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 yyj583 int
var yyb583 bool
var yyhl583 bool = l >= 0
yyj583++
if yyhl583 {
yyb583 = yyj583 > l
} else {
yyb583 = r.CheckBreak()
}
if yyb583 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj583++
if yyhl583 {
yyb583 = yyj583 > l
} else {
yyb583 = r.CheckBreak()
}
if yyb583 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj583-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 {
yym585 := z.EncBinary()
_ = yym585
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep586 := !z.EncBinary()
yy2arr586 := z.EncBasicHandle().StructToArray
var yyq586 [1]bool
_, _, _ = yysep586, yyq586, yy2arr586
const yyr586 bool = false
yyq586[0] = x.Medium != ""
var yynn586 int
if yyr586 || yy2arr586 {
r.EncodeArrayStart(1)
} else {
yynn586 = 0
for _, b := range yyq586 {
if b {
yynn586++
}
}
r.EncodeMapStart(yynn586)
yynn586 = 0
}
if yyr586 || yy2arr586 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq586[0] {
x.Medium.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq586[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("medium"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Medium.CodecEncodeSelf(e)
}
}
if yyr586 || yy2arr586 {
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
yym588 := z.DecBinary()
_ = yym588
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct589 := r.ContainerType()
if yyct589 == codecSelferValueTypeMap1234 {
yyl589 := r.ReadMapStart()
if yyl589 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl589, d)
}
} else if yyct589 == codecSelferValueTypeArray1234 {
yyl589 := r.ReadArrayStart()
if yyl589 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl589, 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 yys590Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys590Slc
var yyhl590 bool = l >= 0
for yyj590 := 0; ; yyj590++ {
if yyhl590 {
if yyj590 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys590Slc = r.DecodeBytes(yys590Slc, true, true)
yys590 := string(yys590Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys590 {
case "medium":
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys590)
} // end switch yys590
} // end for yyj590
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 yyj592 int
var yyb592 bool
var yyhl592 bool = l >= 0
yyj592++
if yyhl592 {
yyb592 = yyj592 > l
} else {
yyb592 = r.CheckBreak()
}
if yyb592 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
for {
yyj592++
if yyhl592 {
yyb592 = yyj592 > l
} else {
yyb592 = r.CheckBreak()
}
if yyb592 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj592-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym594 := z.EncBinary()
_ = yym594
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
yym595 := z.DecBinary()
_ = yym595
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
yym596 := z.EncBinary()
_ = yym596
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
yym597 := z.DecBinary()
_ = yym597
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 {
yym598 := z.EncBinary()
_ = yym598
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep599 := !z.EncBinary()
yy2arr599 := z.EncBasicHandle().StructToArray
var yyq599 [4]bool
_, _, _ = yysep599, yyq599, yy2arr599
const yyr599 bool = false
yyq599[1] = x.FSType != ""
yyq599[2] = x.Partition != 0
yyq599[3] = x.ReadOnly != false
var yynn599 int
if yyr599 || yy2arr599 {
r.EncodeArrayStart(4)
} else {
yynn599 = 1
for _, b := range yyq599 {
if b {
yynn599++
}
}
r.EncodeMapStart(yynn599)
yynn599 = 0
}
if yyr599 || yy2arr599 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym601 := z.EncBinary()
_ = yym601
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)
yym602 := z.EncBinary()
_ = yym602
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
}
}
if yyr599 || yy2arr599 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq599[1] {
yym604 := z.EncBinary()
_ = yym604
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq599[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym605 := z.EncBinary()
_ = yym605
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr599 || yy2arr599 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq599[2] {
yym607 := z.EncBinary()
_ = yym607
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq599[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym608 := z.EncBinary()
_ = yym608
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr599 || yy2arr599 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq599[3] {
yym610 := z.EncBinary()
_ = yym610
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq599[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym611 := z.EncBinary()
_ = yym611
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr599 || yy2arr599 {
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
yym612 := z.DecBinary()
_ = yym612
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct613 := r.ContainerType()
if yyct613 == codecSelferValueTypeMap1234 {
yyl613 := r.ReadMapStart()
if yyl613 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl613, d)
}
} else if yyct613 == codecSelferValueTypeArray1234 {
yyl613 := r.ReadArrayStart()
if yyl613 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl613, 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 yys614Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys614Slc
var yyhl614 bool = l >= 0
for yyj614 := 0; ; yyj614++ {
if yyhl614 {
if yyj614 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys614Slc = r.DecodeBytes(yys614Slc, true, true)
yys614 := string(yys614Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys614 {
case "pdName":
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys614)
} // end switch yys614
} // end for yyj614
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 yyj619 int
var yyb619 bool
var yyhl619 bool = l >= 0
yyj619++
if yyhl619 {
yyb619 = yyj619 > l
} else {
yyb619 = r.CheckBreak()
}
if yyb619 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
yyj619++
if yyhl619 {
yyb619 = yyj619 > l
} else {
yyb619 = r.CheckBreak()
}
if yyb619 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj619++
if yyhl619 {
yyb619 = yyj619 > l
} else {
yyb619 = r.CheckBreak()
}
if yyb619 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
yyj619++
if yyhl619 {
yyb619 = yyj619 > l
} else {
yyb619 = r.CheckBreak()
}
if yyb619 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj619++
if yyhl619 {
yyb619 = yyj619 > l
} else {
yyb619 = r.CheckBreak()
}
if yyb619 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj619-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 {
yym624 := z.EncBinary()
_ = yym624
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep625 := !z.EncBinary()
yy2arr625 := z.EncBasicHandle().StructToArray
var yyq625 [6]bool
_, _, _ = yysep625, yyq625, yy2arr625
const yyr625 bool = false
yyq625[0] = x.TargetPortal != ""
yyq625[1] = x.IQN != ""
yyq625[2] = x.Lun != 0
yyq625[3] = x.ISCSIInterface != ""
yyq625[4] = x.FSType != ""
yyq625[5] = x.ReadOnly != false
var yynn625 int
if yyr625 || yy2arr625 {
r.EncodeArrayStart(6)
} else {
yynn625 = 0
for _, b := range yyq625 {
if b {
yynn625++
}
}
r.EncodeMapStart(yynn625)
yynn625 = 0
}
if yyr625 || yy2arr625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq625[0] {
yym627 := z.EncBinary()
_ = yym627
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq625[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym628 := z.EncBinary()
_ = yym628
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
}
}
if yyr625 || yy2arr625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq625[1] {
yym630 := z.EncBinary()
_ = yym630
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq625[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iqn"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym631 := z.EncBinary()
_ = yym631
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
}
}
if yyr625 || yy2arr625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq625[2] {
yym633 := z.EncBinary()
_ = yym633
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq625[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym634 := z.EncBinary()
_ = yym634
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
}
}
if yyr625 || yy2arr625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq625[3] {
yym636 := z.EncBinary()
_ = yym636
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq625[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym637 := z.EncBinary()
_ = yym637
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
}
}
if yyr625 || yy2arr625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq625[4] {
yym639 := z.EncBinary()
_ = yym639
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq625[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym640 := z.EncBinary()
_ = yym640
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr625 || yy2arr625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq625[5] {
yym642 := z.EncBinary()
_ = yym642
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq625[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym643 := z.EncBinary()
_ = yym643
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr625 || yy2arr625 {
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
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 *ISCSIVolumeSource) 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 "targetPortal":
if r.TryDecodeAsNil() {
x.TargetPortal = ""
} else {
x.TargetPortal = string(r.DecodeString())
}
case "iqn":
if r.TryDecodeAsNil() {
x.IQN = ""
} else {
x.IQN = string(r.DecodeString())
}
case "lun":
if r.TryDecodeAsNil() {
x.Lun = 0
} else {
x.Lun = int32(r.DecodeInt(32))
}
case "iscsiInterface":
if r.TryDecodeAsNil() {
x.ISCSIInterface = ""
} else {
x.ISCSIInterface = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys646)
} // end switch yys646
} // end for yyj646
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 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.TargetPortal = ""
} else {
x.TargetPortal = 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.IQN = ""
} else {
x.IQN = 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.Lun = 0
} else {
x.Lun = int32(r.DecodeInt(32))
}
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.ISCSIInterface = ""
} else {
x.ISCSIInterface = 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() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
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 *FCVolumeSource) 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[2] = x.FSType != ""
yyq661[3] = x.ReadOnly != false
var yynn661 int
if yyr661 || yy2arr661 {
r.EncodeArrayStart(4)
} else {
yynn661 = 2
for _, b := range yyq661 {
if b {
yynn661++
}
}
r.EncodeMapStart(yynn661)
yynn661 = 0
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TargetWWNs == nil {
r.EncodeNil()
} else {
yym663 := z.EncBinary()
_ = yym663
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 {
yym664 := z.EncBinary()
_ = yym664
if false {
} else {
z.F.EncSliceStringV(x.TargetWWNs, false, e)
}
}
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy666 := *x.Lun
yym667 := z.EncBinary()
_ = yym667
if false {
} else {
r.EncodeInt(int64(yy666))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy668 := *x.Lun
yym669 := z.EncBinary()
_ = yym669
if false {
} else {
r.EncodeInt(int64(yy668))
}
}
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq661[2] {
yym671 := z.EncBinary()
_ = yym671
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq661[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym672 := z.EncBinary()
_ = yym672
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr661 || yy2arr661 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq661[3] {
yym674 := z.EncBinary()
_ = yym674
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)
yym675 := z.EncBinary()
_ = yym675
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr661 || yy2arr661 {
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
yym676 := z.DecBinary()
_ = yym676
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct677 := r.ContainerType()
if yyct677 == codecSelferValueTypeMap1234 {
yyl677 := r.ReadMapStart()
if yyl677 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl677, d)
}
} else if yyct677 == codecSelferValueTypeArray1234 {
yyl677 := r.ReadArrayStart()
if yyl677 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl677, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *FCVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys678Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys678Slc
var yyhl678 bool = l >= 0
for yyj678 := 0; ; yyj678++ {
if yyhl678 {
if yyj678 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys678Slc = r.DecodeBytes(yys678Slc, true, true)
yys678 := string(yys678Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys678 {
case "targetWWNs":
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv679 := &x.TargetWWNs
yym680 := z.DecBinary()
_ = yym680
if false {
} else {
z.F.DecSliceStringX(yyv679, false, d)
}
}
case "lun":
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int32)
}
yym682 := z.DecBinary()
_ = yym682
if false {
} else {
*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
}
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys678)
} // end switch yys678
} // end for yyj678
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 yyj685 int
var yyb685 bool
var yyhl685 bool = l >= 0
yyj685++
if yyhl685 {
yyb685 = yyj685 > l
} else {
yyb685 = r.CheckBreak()
}
if yyb685 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv686 := &x.TargetWWNs
yym687 := z.DecBinary()
_ = yym687
if false {
} else {
z.F.DecSliceStringX(yyv686, false, d)
}
}
yyj685++
if yyhl685 {
yyb685 = yyj685 > l
} else {
yyb685 = r.CheckBreak()
}
if yyb685 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int32)
}
yym689 := z.DecBinary()
_ = yym689
if false {
} else {
*((*int32)(x.Lun)) = int32(r.DecodeInt(32))
}
}
yyj685++
if yyhl685 {
yyb685 = yyj685 > l
} else {
yyb685 = r.CheckBreak()
}
if yyb685 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj685++
if yyhl685 {
yyb685 = yyj685 > l
} else {
yyb685 = r.CheckBreak()
}
if yyb685 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj685++
if yyhl685 {
yyb685 = yyj685 > l
} else {
yyb685 = r.CheckBreak()
}
if yyb685 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj685-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 {
yym692 := z.EncBinary()
_ = yym692
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep693 := !z.EncBinary()
yy2arr693 := z.EncBasicHandle().StructToArray
var yyq693 [5]bool
_, _, _ = yysep693, yyq693, yy2arr693
const yyr693 bool = false
yyq693[1] = x.FSType != ""
yyq693[2] = x.SecretRef != nil
yyq693[3] = x.ReadOnly != false
yyq693[4] = len(x.Options) != 0
var yynn693 int
if yyr693 || yy2arr693 {
r.EncodeArrayStart(5)
} else {
yynn693 = 1
for _, b := range yyq693 {
if b {
yynn693++
}
}
r.EncodeMapStart(yynn693)
yynn693 = 0
}
if yyr693 || yy2arr693 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym695 := z.EncBinary()
_ = yym695
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)
yym696 := z.EncBinary()
_ = yym696
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Driver))
}
}
if yyr693 || yy2arr693 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq693[1] {
yym698 := z.EncBinary()
_ = yym698
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq693[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym699 := z.EncBinary()
_ = yym699
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr693 || yy2arr693 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq693[2] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq693[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 yyr693 || yy2arr693 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq693[3] {
yym702 := z.EncBinary()
_ = yym702
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq693[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym703 := z.EncBinary()
_ = yym703
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr693 || yy2arr693 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq693[4] {
if x.Options == nil {
r.EncodeNil()
} else {
yym705 := z.EncBinary()
_ = yym705
if false {
} else {
z.F.EncMapStringStringV(x.Options, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq693[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("options"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Options == nil {
r.EncodeNil()
} else {
yym706 := z.EncBinary()
_ = yym706
if false {
} else {
z.F.EncMapStringStringV(x.Options, false, e)
}
}
}
}
if yyr693 || yy2arr693 {
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
yym707 := z.DecBinary()
_ = yym707
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct708 := r.ContainerType()
if yyct708 == codecSelferValueTypeMap1234 {
yyl708 := r.ReadMapStart()
if yyl708 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl708, d)
}
} else if yyct708 == codecSelferValueTypeArray1234 {
yyl708 := r.ReadArrayStart()
if yyl708 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl708, 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 yys709Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys709Slc
var yyhl709 bool = l >= 0
for yyj709 := 0; ; yyj709++ {
if yyhl709 {
if yyj709 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys709Slc = r.DecodeBytes(yys709Slc, true, true)
yys709 := string(yys709Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys709 {
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 {
yyv714 := &x.Options
yym715 := z.DecBinary()
_ = yym715
if false {
} else {
z.F.DecMapStringStringX(yyv714, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys709)
} // end switch yys709
} // end for yyj709
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 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.Driver = ""
} else {
x.Driver = string(r.DecodeString())
}
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.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj716++
if yyhl716 {
yyb716 = yyj716 > l
} else {
yyb716 = r.CheckBreak()
}
if yyb716 {
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)
}
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.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
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.Options = nil
} else {
yyv721 := &x.Options
yym722 := z.DecBinary()
_ = yym722
if false {
} else {
z.F.DecMapStringStringX(yyv721, false, d)
}
}
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 *AWSElasticBlockStoreVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym723 := z.EncBinary()
_ = yym723
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep724 := !z.EncBinary()
yy2arr724 := z.EncBasicHandle().StructToArray
var yyq724 [4]bool
_, _, _ = yysep724, yyq724, yy2arr724
const yyr724 bool = false
yyq724[1] = x.FSType != ""
yyq724[2] = x.Partition != 0
yyq724[3] = x.ReadOnly != false
var yynn724 int
if yyr724 || yy2arr724 {
r.EncodeArrayStart(4)
} else {
yynn724 = 1
for _, b := range yyq724 {
if b {
yynn724++
}
}
r.EncodeMapStart(yynn724)
yynn724 = 0
}
if yyr724 || yy2arr724 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym726 := z.EncBinary()
_ = yym726
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)
yym727 := z.EncBinary()
_ = yym727
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr724 || yy2arr724 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq724[1] {
yym729 := z.EncBinary()
_ = yym729
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq724[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym730 := z.EncBinary()
_ = yym730
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr724 || yy2arr724 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq724[2] {
yym732 := z.EncBinary()
_ = yym732
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq724[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym733 := z.EncBinary()
_ = yym733
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr724 || yy2arr724 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq724[3] {
yym735 := z.EncBinary()
_ = yym735
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq724[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym736 := z.EncBinary()
_ = yym736
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr724 || yy2arr724 {
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
yym737 := z.DecBinary()
_ = yym737
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct738 := r.ContainerType()
if yyct738 == codecSelferValueTypeMap1234 {
yyl738 := r.ReadMapStart()
if yyl738 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl738, d)
}
} else if yyct738 == codecSelferValueTypeArray1234 {
yyl738 := r.ReadArrayStart()
if yyl738 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl738, 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 yys739Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys739Slc
var yyhl739 bool = l >= 0
for yyj739 := 0; ; yyj739++ {
if yyhl739 {
if yyj739 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys739Slc = r.DecodeBytes(yys739Slc, true, true)
yys739 := string(yys739Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys739 {
case "volumeID":
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys739)
} // end switch yys739
} // end for yyj739
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 yyj744 int
var yyb744 bool
var yyhl744 bool = l >= 0
yyj744++
if yyhl744 {
yyb744 = yyj744 > l
} else {
yyb744 = r.CheckBreak()
}
if yyb744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj744++
if yyhl744 {
yyb744 = yyj744 > l
} else {
yyb744 = r.CheckBreak()
}
if yyb744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj744++
if yyhl744 {
yyb744 = yyj744 > l
} else {
yyb744 = r.CheckBreak()
}
if yyb744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int32(r.DecodeInt(32))
}
yyj744++
if yyhl744 {
yyb744 = yyj744 > l
} else {
yyb744 = r.CheckBreak()
}
if yyb744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj744++
if yyhl744 {
yyb744 = yyj744 > l
} else {
yyb744 = r.CheckBreak()
}
if yyb744 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj744-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 {
yym749 := z.EncBinary()
_ = yym749
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep750 := !z.EncBinary()
yy2arr750 := z.EncBasicHandle().StructToArray
var yyq750 [3]bool
_, _, _ = yysep750, yyq750, yy2arr750
const yyr750 bool = false
yyq750[1] = x.Revision != ""
yyq750[2] = x.Directory != ""
var yynn750 int
if yyr750 || yy2arr750 {
r.EncodeArrayStart(3)
} else {
yynn750 = 1
for _, b := range yyq750 {
if b {
yynn750++
}
}
r.EncodeMapStart(yynn750)
yynn750 = 0
}
if yyr750 || yy2arr750 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym752 := z.EncBinary()
_ = yym752
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)
yym753 := z.EncBinary()
_ = yym753
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
}
}
if yyr750 || yy2arr750 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq750[1] {
yym755 := z.EncBinary()
_ = yym755
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq750[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("revision"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym756 := z.EncBinary()
_ = yym756
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
}
}
if yyr750 || yy2arr750 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq750[2] {
yym758 := z.EncBinary()
_ = yym758
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq750[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("directory"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym759 := z.EncBinary()
_ = yym759
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
}
}
if yyr750 || yy2arr750 {
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
yym760 := z.DecBinary()
_ = yym760
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct761 := r.ContainerType()
if yyct761 == codecSelferValueTypeMap1234 {
yyl761 := r.ReadMapStart()
if yyl761 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl761, d)
}
} else if yyct761 == codecSelferValueTypeArray1234 {
yyl761 := r.ReadArrayStart()
if yyl761 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl761, 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 yys762Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys762Slc
var yyhl762 bool = l >= 0
for yyj762 := 0; ; yyj762++ {
if yyhl762 {
if yyj762 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys762Slc = r.DecodeBytes(yys762Slc, true, true)
yys762 := string(yys762Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys762 {
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, yys762)
} // end switch yys762
} // end for yyj762
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 yyj766 int
var yyb766 bool
var yyhl766 bool = l >= 0
yyj766++
if yyhl766 {
yyb766 = yyj766 > l
} else {
yyb766 = r.CheckBreak()
}
if yyb766 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Repository = ""
} else {
x.Repository = string(r.DecodeString())
}
yyj766++
if yyhl766 {
yyb766 = yyj766 > l
} else {
yyb766 = r.CheckBreak()
}
if yyb766 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Revision = ""
} else {
x.Revision = string(r.DecodeString())
}
yyj766++
if yyhl766 {
yyb766 = yyj766 > l
} else {
yyb766 = r.CheckBreak()
}
if yyb766 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Directory = ""
} else {
x.Directory = string(r.DecodeString())
}
for {
yyj766++
if yyhl766 {
yyb766 = yyj766 > l
} else {
yyb766 = r.CheckBreak()
}
if yyb766 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj766-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 {
yym770 := z.EncBinary()
_ = yym770
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep771 := !z.EncBinary()
yy2arr771 := z.EncBasicHandle().StructToArray
var yyq771 [3]bool
_, _, _ = yysep771, yyq771, yy2arr771
const yyr771 bool = false
yyq771[0] = x.SecretName != ""
yyq771[1] = len(x.Items) != 0
yyq771[2] = x.DefaultMode != nil
var yynn771 int
if yyr771 || yy2arr771 {
r.EncodeArrayStart(3)
} else {
yynn771 = 0
for _, b := range yyq771 {
if b {
yynn771++
}
}
r.EncodeMapStart(yynn771)
yynn771 = 0
}
if yyr771 || yy2arr771 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq771[0] {
yym773 := z.EncBinary()
_ = yym773
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq771[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym774 := z.EncBinary()
_ = yym774
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
}
if yyr771 || yy2arr771 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq771[1] {
if x.Items == nil {
r.EncodeNil()
} else {
yym776 := z.EncBinary()
_ = yym776
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq771[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym777 := z.EncBinary()
_ = yym777
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
}
}
if yyr771 || yy2arr771 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq771[2] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy779 := *x.DefaultMode
yym780 := z.EncBinary()
_ = yym780
if false {
} else {
r.EncodeInt(int64(yy779))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq771[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy781 := *x.DefaultMode
yym782 := z.EncBinary()
_ = yym782
if false {
} else {
r.EncodeInt(int64(yy781))
}
}
}
}
if yyr771 || yy2arr771 {
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
yym783 := z.DecBinary()
_ = yym783
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct784 := r.ContainerType()
if yyct784 == codecSelferValueTypeMap1234 {
yyl784 := r.ReadMapStart()
if yyl784 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl784, d)
}
} else if yyct784 == codecSelferValueTypeArray1234 {
yyl784 := r.ReadArrayStart()
if yyl784 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl784, 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 yys785Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys785Slc
var yyhl785 bool = l >= 0
for yyj785 := 0; ; yyj785++ {
if yyhl785 {
if yyj785 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys785Slc = r.DecodeBytes(yys785Slc, true, true)
yys785 := string(yys785Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys785 {
case "secretName":
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv787 := &x.Items
yym788 := z.DecBinary()
_ = yym788
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv787), d)
}
}
case "defaultMode":
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym790 := z.DecBinary()
_ = yym790
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys785)
} // end switch yys785
} // end for yyj785
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 yyj791 int
var yyb791 bool
var yyhl791 bool = l >= 0
yyj791++
if yyhl791 {
yyb791 = yyj791 > l
} else {
yyb791 = r.CheckBreak()
}
if yyb791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
yyj791++
if yyhl791 {
yyb791 = yyj791 > l
} else {
yyb791 = r.CheckBreak()
}
if yyb791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv793 := &x.Items
yym794 := z.DecBinary()
_ = yym794
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv793), d)
}
}
yyj791++
if yyhl791 {
yyb791 = yyj791 > l
} else {
yyb791 = r.CheckBreak()
}
if yyb791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym796 := z.DecBinary()
_ = yym796
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
for {
yyj791++
if yyhl791 {
yyb791 = yyj791 > l
} else {
yyb791 = r.CheckBreak()
}
if yyb791 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj791-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 {
yym797 := z.EncBinary()
_ = yym797
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep798 := !z.EncBinary()
yy2arr798 := z.EncBasicHandle().StructToArray
var yyq798 [3]bool
_, _, _ = yysep798, yyq798, yy2arr798
const yyr798 bool = false
yyq798[2] = x.ReadOnly != false
var yynn798 int
if yyr798 || yy2arr798 {
r.EncodeArrayStart(3)
} else {
yynn798 = 2
for _, b := range yyq798 {
if b {
yynn798++
}
}
r.EncodeMapStart(yynn798)
yynn798 = 0
}
if yyr798 || yy2arr798 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym800 := z.EncBinary()
_ = yym800
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)
yym801 := z.EncBinary()
_ = yym801
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
}
}
if yyr798 || yy2arr798 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym803 := z.EncBinary()
_ = yym803
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)
yym804 := z.EncBinary()
_ = yym804
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr798 || yy2arr798 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq798[2] {
yym806 := z.EncBinary()
_ = yym806
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq798[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym807 := z.EncBinary()
_ = yym807
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr798 || yy2arr798 {
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
yym808 := z.DecBinary()
_ = yym808
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct809 := r.ContainerType()
if yyct809 == codecSelferValueTypeMap1234 {
yyl809 := r.ReadMapStart()
if yyl809 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl809, d)
}
} else if yyct809 == codecSelferValueTypeArray1234 {
yyl809 := r.ReadArrayStart()
if yyl809 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl809, 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 yys810Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys810Slc
var yyhl810 bool = l >= 0
for yyj810 := 0; ; yyj810++ {
if yyhl810 {
if yyj810 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys810Slc = r.DecodeBytes(yys810Slc, true, true)
yys810 := string(yys810Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys810 {
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, yys810)
} // end switch yys810
} // end for yyj810
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 yyj814 int
var yyb814 bool
var yyhl814 bool = l >= 0
yyj814++
if yyhl814 {
yyb814 = yyj814 > l
} else {
yyb814 = r.CheckBreak()
}
if yyb814 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Server = ""
} else {
x.Server = string(r.DecodeString())
}
yyj814++
if yyhl814 {
yyb814 = yyj814 > l
} else {
yyb814 = r.CheckBreak()
}
if yyb814 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj814++
if yyhl814 {
yyb814 = yyj814 > l
} else {
yyb814 = r.CheckBreak()
}
if yyb814 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj814++
if yyhl814 {
yyb814 = yyj814 > l
} else {
yyb814 = r.CheckBreak()
}
if yyb814 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj814-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *QuobyteVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym818 := z.EncBinary()
_ = yym818
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep819 := !z.EncBinary()
yy2arr819 := z.EncBasicHandle().StructToArray
var yyq819 [5]bool
_, _, _ = yysep819, yyq819, yy2arr819
const yyr819 bool = false
yyq819[2] = x.ReadOnly != false
yyq819[3] = x.User != ""
yyq819[4] = x.Group != ""
var yynn819 int
if yyr819 || yy2arr819 {
r.EncodeArrayStart(5)
} else {
yynn819 = 2
for _, b := range yyq819 {
if b {
yynn819++
}
}
r.EncodeMapStart(yynn819)
yynn819 = 0
}
if yyr819 || yy2arr819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym821 := z.EncBinary()
_ = yym821
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("registry"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym822 := z.EncBinary()
_ = yym822
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Registry))
}
}
if yyr819 || yy2arr819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym824 := z.EncBinary()
_ = yym824
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volume"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym825 := z.EncBinary()
_ = yym825
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Volume))
}
}
if yyr819 || yy2arr819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq819[2] {
yym827 := z.EncBinary()
_ = yym827
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq819[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym828 := z.EncBinary()
_ = yym828
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr819 || yy2arr819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq819[3] {
yym830 := z.EncBinary()
_ = yym830
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq819[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym831 := z.EncBinary()
_ = yym831
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr819 || yy2arr819 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq819[4] {
yym833 := z.EncBinary()
_ = yym833
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Group))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq819[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("group"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym834 := z.EncBinary()
_ = yym834
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Group))
}
}
}
if yyr819 || yy2arr819 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *QuobyteVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym835 := z.DecBinary()
_ = yym835
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct836 := r.ContainerType()
if yyct836 == codecSelferValueTypeMap1234 {
yyl836 := r.ReadMapStart()
if yyl836 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl836, d)
}
} else if yyct836 == codecSelferValueTypeArray1234 {
yyl836 := r.ReadArrayStart()
if yyl836 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl836, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *QuobyteVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys837Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys837Slc
var yyhl837 bool = l >= 0
for yyj837 := 0; ; yyj837++ {
if yyhl837 {
if yyj837 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys837Slc = r.DecodeBytes(yys837Slc, true, true)
yys837 := string(yys837Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys837 {
case "registry":
if r.TryDecodeAsNil() {
x.Registry = ""
} else {
x.Registry = string(r.DecodeString())
}
case "volume":
if r.TryDecodeAsNil() {
x.Volume = ""
} else {
x.Volume = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "user":
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
case "group":
if r.TryDecodeAsNil() {
x.Group = ""
} else {
x.Group = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys837)
} // end switch yys837
} // end for yyj837
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *QuobyteVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj843 int
var yyb843 bool
var yyhl843 bool = l >= 0
yyj843++
if yyhl843 {
yyb843 = yyj843 > l
} else {
yyb843 = r.CheckBreak()
}
if yyb843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Registry = ""
} else {
x.Registry = string(r.DecodeString())
}
yyj843++
if yyhl843 {
yyb843 = yyj843 > l
} else {
yyb843 = r.CheckBreak()
}
if yyb843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volume = ""
} else {
x.Volume = string(r.DecodeString())
}
yyj843++
if yyhl843 {
yyb843 = yyj843 > l
} else {
yyb843 = r.CheckBreak()
}
if yyb843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj843++
if yyhl843 {
yyb843 = yyj843 > l
} else {
yyb843 = r.CheckBreak()
}
if yyb843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj843++
if yyhl843 {
yyb843 = yyj843 > l
} else {
yyb843 = r.CheckBreak()
}
if yyb843 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Group = ""
} else {
x.Group = string(r.DecodeString())
}
for {
yyj843++
if yyhl843 {
yyb843 = yyj843 > l
} else {
yyb843 = r.CheckBreak()
}
if yyb843 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj843-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 {
yym849 := z.EncBinary()
_ = yym849
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep850 := !z.EncBinary()
yy2arr850 := z.EncBasicHandle().StructToArray
var yyq850 [3]bool
_, _, _ = yysep850, yyq850, yy2arr850
const yyr850 bool = false
yyq850[2] = x.ReadOnly != false
var yynn850 int
if yyr850 || yy2arr850 {
r.EncodeArrayStart(3)
} else {
yynn850 = 2
for _, b := range yyq850 {
if b {
yynn850++
}
}
r.EncodeMapStart(yynn850)
yynn850 = 0
}
if yyr850 || yy2arr850 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym852 := z.EncBinary()
_ = yym852
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)
yym853 := z.EncBinary()
_ = yym853
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
}
}
if yyr850 || yy2arr850 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym855 := z.EncBinary()
_ = yym855
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)
yym856 := z.EncBinary()
_ = yym856
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr850 || yy2arr850 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq850[2] {
yym858 := z.EncBinary()
_ = yym858
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq850[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym859 := z.EncBinary()
_ = yym859
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr850 || yy2arr850 {
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
yym860 := z.DecBinary()
_ = yym860
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct861 := r.ContainerType()
if yyct861 == codecSelferValueTypeMap1234 {
yyl861 := r.ReadMapStart()
if yyl861 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl861, d)
}
} else if yyct861 == codecSelferValueTypeArray1234 {
yyl861 := r.ReadArrayStart()
if yyl861 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl861, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *GlusterfsVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys862Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys862Slc
var yyhl862 bool = l >= 0
for yyj862 := 0; ; yyj862++ {
if yyhl862 {
if yyj862 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys862Slc = r.DecodeBytes(yys862Slc, true, true)
yys862 := string(yys862Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys862 {
case "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, yys862)
} // end switch yys862
} // end for yyj862
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 yyj866 int
var yyb866 bool
var yyhl866 bool = l >= 0
yyj866++
if yyhl866 {
yyb866 = yyj866 > l
} else {
yyb866 = r.CheckBreak()
}
if yyb866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EndpointsName = ""
} else {
x.EndpointsName = string(r.DecodeString())
}
yyj866++
if yyhl866 {
yyb866 = yyj866 > l
} else {
yyb866 = r.CheckBreak()
}
if yyb866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj866++
if yyhl866 {
yyb866 = yyj866 > l
} else {
yyb866 = r.CheckBreak()
}
if yyb866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj866++
if yyhl866 {
yyb866 = yyj866 > l
} else {
yyb866 = r.CheckBreak()
}
if yyb866 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj866-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 {
yym870 := z.EncBinary()
_ = yym870
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep871 := !z.EncBinary()
yy2arr871 := z.EncBasicHandle().StructToArray
var yyq871 [8]bool
_, _, _ = yysep871, yyq871, yy2arr871
const yyr871 bool = false
yyq871[2] = x.FSType != ""
yyq871[3] = x.RBDPool != ""
yyq871[4] = x.RadosUser != ""
yyq871[5] = x.Keyring != ""
yyq871[6] = x.SecretRef != nil
yyq871[7] = x.ReadOnly != false
var yynn871 int
if yyr871 || yy2arr871 {
r.EncodeArrayStart(8)
} else {
yynn871 = 2
for _, b := range yyq871 {
if b {
yynn871++
}
}
r.EncodeMapStart(yynn871)
yynn871 = 0
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.CephMonitors == nil {
r.EncodeNil()
} else {
yym873 := z.EncBinary()
_ = yym873
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 {
yym874 := z.EncBinary()
_ = yym874
if false {
} else {
z.F.EncSliceStringV(x.CephMonitors, false, e)
}
}
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym876 := z.EncBinary()
_ = yym876
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)
yym877 := z.EncBinary()
_ = yym877
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
}
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq871[2] {
yym879 := z.EncBinary()
_ = yym879
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq871[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym880 := z.EncBinary()
_ = yym880
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq871[3] {
yym882 := z.EncBinary()
_ = yym882
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq871[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("pool"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym883 := z.EncBinary()
_ = yym883
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
}
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq871[4] {
yym885 := z.EncBinary()
_ = yym885
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq871[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym886 := z.EncBinary()
_ = yym886
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
}
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq871[5] {
yym888 := z.EncBinary()
_ = yym888
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq871[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("keyring"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym889 := z.EncBinary()
_ = yym889
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
}
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq871[6] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq871[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr871 || yy2arr871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq871[7] {
yym892 := z.EncBinary()
_ = yym892
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq871[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym893 := z.EncBinary()
_ = yym893
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr871 || yy2arr871 {
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
yym894 := z.DecBinary()
_ = yym894
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct895 := r.ContainerType()
if yyct895 == codecSelferValueTypeMap1234 {
yyl895 := r.ReadMapStart()
if yyl895 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl895, d)
}
} else if yyct895 == codecSelferValueTypeArray1234 {
yyl895 := r.ReadArrayStart()
if yyl895 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl895, 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 yys896Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys896Slc
var yyhl896 bool = l >= 0
for yyj896 := 0; ; yyj896++ {
if yyhl896 {
if yyj896 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys896Slc = r.DecodeBytes(yys896Slc, true, true)
yys896 := string(yys896Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys896 {
case "monitors":
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv897 := &x.CephMonitors
yym898 := z.DecBinary()
_ = yym898
if false {
} else {
z.F.DecSliceStringX(yyv897, 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, yys896)
} // end switch yys896
} // end for yyj896
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 yyj906 int
var yyb906 bool
var yyhl906 bool = l >= 0
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv907 := &x.CephMonitors
yym908 := z.DecBinary()
_ = yym908
if false {
} else {
z.F.DecSliceStringX(yyv907, false, d)
}
}
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDImage = ""
} else {
x.RBDImage = string(r.DecodeString())
}
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDPool = ""
} else {
x.RBDPool = string(r.DecodeString())
}
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RadosUser = ""
} else {
x.RadosUser = string(r.DecodeString())
}
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Keyring = ""
} else {
x.Keyring = string(r.DecodeString())
}
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
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)
}
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj906++
if yyhl906 {
yyb906 = yyj906 > l
} else {
yyb906 = r.CheckBreak()
}
if yyb906 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj906-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 {
yym916 := z.EncBinary()
_ = yym916
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep917 := !z.EncBinary()
yy2arr917 := z.EncBasicHandle().StructToArray
var yyq917 [3]bool
_, _, _ = yysep917, yyq917, yy2arr917
const yyr917 bool = false
yyq917[1] = x.FSType != ""
yyq917[2] = x.ReadOnly != false
var yynn917 int
if yyr917 || yy2arr917 {
r.EncodeArrayStart(3)
} else {
yynn917 = 1
for _, b := range yyq917 {
if b {
yynn917++
}
}
r.EncodeMapStart(yynn917)
yynn917 = 0
}
if yyr917 || yy2arr917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym919 := z.EncBinary()
_ = yym919
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)
yym920 := z.EncBinary()
_ = yym920
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr917 || yy2arr917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq917[1] {
yym922 := z.EncBinary()
_ = yym922
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq917[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym923 := z.EncBinary()
_ = yym923
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr917 || yy2arr917 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq917[2] {
yym925 := z.EncBinary()
_ = yym925
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq917[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym926 := z.EncBinary()
_ = yym926
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr917 || yy2arr917 {
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
yym927 := z.DecBinary()
_ = yym927
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct928 := r.ContainerType()
if yyct928 == codecSelferValueTypeMap1234 {
yyl928 := r.ReadMapStart()
if yyl928 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl928, d)
}
} else if yyct928 == codecSelferValueTypeArray1234 {
yyl928 := r.ReadArrayStart()
if yyl928 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl928, 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 yys929Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys929Slc
var yyhl929 bool = l >= 0
for yyj929 := 0; ; yyj929++ {
if yyhl929 {
if yyj929 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys929Slc = r.DecodeBytes(yys929Slc, true, true)
yys929 := string(yys929Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys929 {
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, yys929)
} // end switch yys929
} // end for yyj929
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 yyj933 int
var yyb933 bool
var yyhl933 bool = l >= 0
yyj933++
if yyhl933 {
yyb933 = yyj933 > l
} else {
yyb933 = r.CheckBreak()
}
if yyb933 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj933++
if yyhl933 {
yyb933 = yyj933 > l
} else {
yyb933 = r.CheckBreak()
}
if yyb933 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj933++
if yyhl933 {
yyb933 = yyj933 > l
} else {
yyb933 = r.CheckBreak()
}
if yyb933 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj933++
if yyhl933 {
yyb933 = yyj933 > l
} else {
yyb933 = r.CheckBreak()
}
if yyb933 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj933-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 {
yym937 := z.EncBinary()
_ = yym937
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep938 := !z.EncBinary()
yy2arr938 := z.EncBasicHandle().StructToArray
var yyq938 [6]bool
_, _, _ = yysep938, yyq938, yy2arr938
const yyr938 bool = false
yyq938[1] = x.Path != ""
yyq938[2] = x.User != ""
yyq938[3] = x.SecretFile != ""
yyq938[4] = x.SecretRef != nil
yyq938[5] = x.ReadOnly != false
var yynn938 int
if yyr938 || yy2arr938 {
r.EncodeArrayStart(6)
} else {
yynn938 = 1
for _, b := range yyq938 {
if b {
yynn938++
}
}
r.EncodeMapStart(yynn938)
yynn938 = 0
}
if yyr938 || yy2arr938 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Monitors == nil {
r.EncodeNil()
} else {
yym940 := z.EncBinary()
_ = yym940
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 {
yym941 := z.EncBinary()
_ = yym941
if false {
} else {
z.F.EncSliceStringV(x.Monitors, false, e)
}
}
}
if yyr938 || yy2arr938 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq938[1] {
yym943 := z.EncBinary()
_ = yym943
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq938[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym944 := z.EncBinary()
_ = yym944
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr938 || yy2arr938 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq938[2] {
yym946 := z.EncBinary()
_ = yym946
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq938[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym947 := z.EncBinary()
_ = yym947
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr938 || yy2arr938 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq938[3] {
yym949 := z.EncBinary()
_ = yym949
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq938[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym950 := z.EncBinary()
_ = yym950
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
}
}
if yyr938 || yy2arr938 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq938[4] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq938[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr938 || yy2arr938 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq938[5] {
yym953 := z.EncBinary()
_ = yym953
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq938[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym954 := z.EncBinary()
_ = yym954
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr938 || yy2arr938 {
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
yym955 := z.DecBinary()
_ = yym955
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct956 := r.ContainerType()
if yyct956 == codecSelferValueTypeMap1234 {
yyl956 := r.ReadMapStart()
if yyl956 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl956, d)
}
} else if yyct956 == codecSelferValueTypeArray1234 {
yyl956 := r.ReadArrayStart()
if yyl956 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl956, 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 yys957Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys957Slc
var yyhl957 bool = l >= 0
for yyj957 := 0; ; yyj957++ {
if yyhl957 {
if yyj957 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys957Slc = r.DecodeBytes(yys957Slc, true, true)
yys957 := string(yys957Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys957 {
case "monitors":
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv958 := &x.Monitors
yym959 := z.DecBinary()
_ = yym959
if false {
} else {
z.F.DecSliceStringX(yyv958, false, d)
}
}
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "user":
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
case "secretFile":
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys957)
} // end switch yys957
} // end for yyj957
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 yyj965 int
var yyb965 bool
var yyhl965 bool = l >= 0
yyj965++
if yyhl965 {
yyb965 = yyj965 > l
} else {
yyb965 = r.CheckBreak()
}
if yyb965 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv966 := &x.Monitors
yym967 := z.DecBinary()
_ = yym967
if false {
} else {
z.F.DecSliceStringX(yyv966, false, d)
}
}
yyj965++
if yyhl965 {
yyb965 = yyj965 > l
} else {
yyb965 = r.CheckBreak()
}
if yyb965 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj965++
if yyhl965 {
yyb965 = yyj965 > l
} else {
yyb965 = r.CheckBreak()
}
if yyb965 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj965++
if yyhl965 {
yyb965 = yyj965 > l
} else {
yyb965 = r.CheckBreak()
}
if yyb965 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
yyj965++
if yyhl965 {
yyb965 = yyj965 > l
} else {
yyb965 = r.CheckBreak()
}
if yyb965 {
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)
}
yyj965++
if yyhl965 {
yyb965 = yyj965 > l
} else {
yyb965 = r.CheckBreak()
}
if yyb965 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj965++
if yyhl965 {
yyb965 = yyj965 > l
} else {
yyb965 = r.CheckBreak()
}
if yyb965 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj965-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 {
yym973 := z.EncBinary()
_ = yym973
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep974 := !z.EncBinary()
yy2arr974 := z.EncBasicHandle().StructToArray
var yyq974 [1]bool
_, _, _ = yysep974, yyq974, yy2arr974
const yyr974 bool = false
var yynn974 int
if yyr974 || yy2arr974 {
r.EncodeArrayStart(1)
} else {
yynn974 = 1
for _, b := range yyq974 {
if b {
yynn974++
}
}
r.EncodeMapStart(yynn974)
yynn974 = 0
}
if yyr974 || yy2arr974 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym976 := z.EncBinary()
_ = yym976
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)
yym977 := z.EncBinary()
_ = yym977
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
}
}
if yyr974 || yy2arr974 {
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
yym978 := z.DecBinary()
_ = yym978
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct979 := r.ContainerType()
if yyct979 == codecSelferValueTypeMap1234 {
yyl979 := r.ReadMapStart()
if yyl979 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl979, d)
}
} else if yyct979 == codecSelferValueTypeArray1234 {
yyl979 := r.ReadArrayStart()
if yyl979 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl979, 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 yys980Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys980Slc
var yyhl980 bool = l >= 0
for yyj980 := 0; ; yyj980++ {
if yyhl980 {
if yyj980 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys980Slc = r.DecodeBytes(yys980Slc, true, true)
yys980 := string(yys980Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys980 {
case "datasetName":
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys980)
} // end switch yys980
} // end for yyj980
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 yyj982 int
var yyb982 bool
var yyhl982 bool = l >= 0
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
for {
yyj982++
if yyhl982 {
yyb982 = yyj982 > l
} else {
yyb982 = r.CheckBreak()
}
if yyb982 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj982-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DownwardAPIVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym984 := z.EncBinary()
_ = yym984
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep985 := !z.EncBinary()
yy2arr985 := z.EncBasicHandle().StructToArray
var yyq985 [2]bool
_, _, _ = yysep985, yyq985, yy2arr985
const yyr985 bool = false
yyq985[0] = len(x.Items) != 0
yyq985[1] = x.DefaultMode != nil
var yynn985 int
if yyr985 || yy2arr985 {
r.EncodeArrayStart(2)
} else {
yynn985 = 0
for _, b := range yyq985 {
if b {
yynn985++
}
}
r.EncodeMapStart(yynn985)
yynn985 = 0
}
if yyr985 || yy2arr985 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq985[0] {
if x.Items == nil {
r.EncodeNil()
} else {
yym987 := z.EncBinary()
_ = yym987
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq985[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym988 := z.EncBinary()
_ = yym988
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
}
}
if yyr985 || yy2arr985 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq985[1] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy990 := *x.DefaultMode
yym991 := z.EncBinary()
_ = yym991
if false {
} else {
r.EncodeInt(int64(yy990))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq985[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy992 := *x.DefaultMode
yym993 := z.EncBinary()
_ = yym993
if false {
} else {
r.EncodeInt(int64(yy992))
}
}
}
}
if yyr985 || yy2arr985 {
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
yym994 := z.DecBinary()
_ = yym994
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct995 := r.ContainerType()
if yyct995 == codecSelferValueTypeMap1234 {
yyl995 := r.ReadMapStart()
if yyl995 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl995, d)
}
} else if yyct995 == codecSelferValueTypeArray1234 {
yyl995 := r.ReadArrayStart()
if yyl995 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl995, 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 yys996Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys996Slc
var yyhl996 bool = l >= 0
for yyj996 := 0; ; yyj996++ {
if yyhl996 {
if yyj996 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys996Slc = r.DecodeBytes(yys996Slc, true, true)
yys996 := string(yys996Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys996 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv997 := &x.Items
yym998 := z.DecBinary()
_ = yym998
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv997), d)
}
}
case "defaultMode":
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1000 := z.DecBinary()
_ = yym1000
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys996)
} // end switch yys996
} // end for yyj996
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 yyj1001 int
var yyb1001 bool
var yyhl1001 bool = l >= 0
yyj1001++
if yyhl1001 {
yyb1001 = yyj1001 > l
} else {
yyb1001 = r.CheckBreak()
}
if yyb1001 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1002 := &x.Items
yym1003 := z.DecBinary()
_ = yym1003
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv1002), d)
}
}
yyj1001++
if yyhl1001 {
yyb1001 = yyj1001 > l
} else {
yyb1001 = r.CheckBreak()
}
if yyb1001 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1005 := z.DecBinary()
_ = yym1005
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1001++
if yyhl1001 {
yyb1001 = yyj1001 > l
} else {
yyb1001 = r.CheckBreak()
}
if yyb1001 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1001-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 {
yym1006 := z.EncBinary()
_ = yym1006
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1007 := !z.EncBinary()
yy2arr1007 := z.EncBasicHandle().StructToArray
var yyq1007 [4]bool
_, _, _ = yysep1007, yyq1007, yy2arr1007
const yyr1007 bool = false
yyq1007[1] = x.FieldRef != nil
yyq1007[2] = x.ResourceFieldRef != nil
yyq1007[3] = x.Mode != nil
var yynn1007 int
if yyr1007 || yy2arr1007 {
r.EncodeArrayStart(4)
} else {
yynn1007 = 1
for _, b := range yyq1007 {
if b {
yynn1007++
}
}
r.EncodeMapStart(yynn1007)
yynn1007 = 0
}
if yyr1007 || yy2arr1007 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1009 := z.EncBinary()
_ = yym1009
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)
yym1010 := z.EncBinary()
_ = yym1010
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr1007 || yy2arr1007 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1007[1] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1007[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
}
}
if yyr1007 || yy2arr1007 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1007[2] {
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1007[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
}
}
if yyr1007 || yy2arr1007 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1007[3] {
if x.Mode == nil {
r.EncodeNil()
} else {
yy1014 := *x.Mode
yym1015 := z.EncBinary()
_ = yym1015
if false {
} else {
r.EncodeInt(int64(yy1014))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1007[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("mode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Mode == nil {
r.EncodeNil()
} else {
yy1016 := *x.Mode
yym1017 := z.EncBinary()
_ = yym1017
if false {
} else {
r.EncodeInt(int64(yy1016))
}
}
}
}
if yyr1007 || yy2arr1007 {
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
yym1018 := z.DecBinary()
_ = yym1018
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1019 := r.ContainerType()
if yyct1019 == codecSelferValueTypeMap1234 {
yyl1019 := r.ReadMapStart()
if yyl1019 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1019, d)
}
} else if yyct1019 == codecSelferValueTypeArray1234 {
yyl1019 := r.ReadArrayStart()
if yyl1019 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1019, 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 yys1020Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1020Slc
var yyhl1020 bool = l >= 0
for yyj1020 := 0; ; yyj1020++ {
if yyhl1020 {
if yyj1020 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1020Slc = r.DecodeBytes(yys1020Slc, true, true)
yys1020 := string(yys1020Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1020 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "fieldRef":
if r.TryDecodeAsNil() {
if x.FieldRef != nil {
x.FieldRef = nil
}
} else {
if x.FieldRef == nil {
x.FieldRef = new(ObjectFieldSelector)
}
x.FieldRef.CodecDecodeSelf(d)
}
case "resourceFieldRef":
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
case "mode":
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1025 := z.DecBinary()
_ = yym1025
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1020)
} // end switch yys1020
} // end for yyj1020
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 yyj1026 int
var yyb1026 bool
var yyhl1026 bool = l >= 0
yyj1026++
if yyhl1026 {
yyb1026 = yyj1026 > l
} else {
yyb1026 = r.CheckBreak()
}
if yyb1026 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1026++
if yyhl1026 {
yyb1026 = yyj1026 > l
} else {
yyb1026 = r.CheckBreak()
}
if yyb1026 {
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)
}
yyj1026++
if yyhl1026 {
yyb1026 = yyj1026 > l
} else {
yyb1026 = r.CheckBreak()
}
if yyb1026 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
yyj1026++
if yyhl1026 {
yyb1026 = yyj1026 > l
} else {
yyb1026 = r.CheckBreak()
}
if yyb1026 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1031 := z.DecBinary()
_ = yym1031
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1026++
if yyhl1026 {
yyb1026 = yyj1026 > l
} else {
yyb1026 = r.CheckBreak()
}
if yyb1026 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1026-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *AzureFileVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1032 := z.EncBinary()
_ = yym1032
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1033 := !z.EncBinary()
yy2arr1033 := z.EncBasicHandle().StructToArray
var yyq1033 [3]bool
_, _, _ = yysep1033, yyq1033, yy2arr1033
const yyr1033 bool = false
yyq1033[2] = x.ReadOnly != false
var yynn1033 int
if yyr1033 || yy2arr1033 {
r.EncodeArrayStart(3)
} else {
yynn1033 = 2
for _, b := range yyq1033 {
if b {
yynn1033++
}
}
r.EncodeMapStart(yynn1033)
yynn1033 = 0
}
if yyr1033 || yy2arr1033 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1035 := z.EncBinary()
_ = yym1035
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)
yym1036 := z.EncBinary()
_ = yym1036
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
if yyr1033 || yy2arr1033 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1038 := z.EncBinary()
_ = yym1038
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("shareName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1039 := z.EncBinary()
_ = yym1039
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ShareName))
}
}
if yyr1033 || yy2arr1033 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1033[2] {
yym1041 := z.EncBinary()
_ = yym1041
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1033[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1042 := z.EncBinary()
_ = yym1042
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr1033 || yy2arr1033 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AzureFileVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1043 := z.DecBinary()
_ = yym1043
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1044 := r.ContainerType()
if yyct1044 == codecSelferValueTypeMap1234 {
yyl1044 := r.ReadMapStart()
if yyl1044 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1044, d)
}
} else if yyct1044 == codecSelferValueTypeArray1234 {
yyl1044 := r.ReadArrayStart()
if yyl1044 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1044, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AzureFileVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1045Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1045Slc
var yyhl1045 bool = l >= 0
for yyj1045 := 0; ; yyj1045++ {
if yyhl1045 {
if yyj1045 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1045Slc = r.DecodeBytes(yys1045Slc, true, true)
yys1045 := string(yys1045Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1045 {
case "secretName":
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
case "shareName":
if r.TryDecodeAsNil() {
x.ShareName = ""
} else {
x.ShareName = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys1045)
} // end switch yys1045
} // end for yyj1045
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AzureFileVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1049 int
var yyb1049 bool
var yyhl1049 bool = l >= 0
yyj1049++
if yyhl1049 {
yyb1049 = yyj1049 > l
} else {
yyb1049 = r.CheckBreak()
}
if yyb1049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
yyj1049++
if yyhl1049 {
yyb1049 = yyj1049 > l
} else {
yyb1049 = r.CheckBreak()
}
if yyb1049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ShareName = ""
} else {
x.ShareName = string(r.DecodeString())
}
yyj1049++
if yyhl1049 {
yyb1049 = yyj1049 > l
} else {
yyb1049 = r.CheckBreak()
}
if yyb1049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj1049++
if yyhl1049 {
yyb1049 = yyj1049 > l
} else {
yyb1049 = r.CheckBreak()
}
if yyb1049 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1049-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *VsphereVirtualDiskVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1053 := z.EncBinary()
_ = yym1053
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1054 := !z.EncBinary()
yy2arr1054 := z.EncBasicHandle().StructToArray
var yyq1054 [2]bool
_, _, _ = yysep1054, yyq1054, yy2arr1054
const yyr1054 bool = false
yyq1054[1] = x.FSType != ""
var yynn1054 int
if yyr1054 || yy2arr1054 {
r.EncodeArrayStart(2)
} else {
yynn1054 = 1
for _, b := range yyq1054 {
if b {
yynn1054++
}
}
r.EncodeMapStart(yynn1054)
yynn1054 = 0
}
if yyr1054 || yy2arr1054 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1056 := z.EncBinary()
_ = yym1056
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1057 := z.EncBinary()
_ = yym1057
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumePath))
}
}
if yyr1054 || yy2arr1054 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1054[1] {
yym1059 := z.EncBinary()
_ = yym1059
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1054[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1060 := z.EncBinary()
_ = yym1060
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr1054 || yy2arr1054 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *VsphereVirtualDiskVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
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 *VsphereVirtualDiskVolumeSource) 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 "volumePath":
if r.TryDecodeAsNil() {
x.VolumePath = ""
} else {
x.VolumePath = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1063)
} // end switch yys1063
} // end for yyj1063
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *VsphereVirtualDiskVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var 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.VolumePath = ""
} else {
x.VolumePath = string(r.DecodeString())
}
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.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
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 *ConfigMapVolumeSource) 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 [3]bool
_, _, _ = yysep1070, yyq1070, yy2arr1070
const yyr1070 bool = false
yyq1070[1] = len(x.Items) != 0
yyq1070[2] = x.DefaultMode != nil
var yynn1070 int
if yyr1070 || yy2arr1070 {
r.EncodeArrayStart(3)
} else {
yynn1070 = 1
for _, b := range yyq1070 {
if b {
yynn1070++
}
}
r.EncodeMapStart(yynn1070)
yynn1070 = 0
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1072 := z.EncBinary()
_ = yym1072
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)
yym1073 := z.EncBinary()
_ = yym1073
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[1] {
if x.Items == nil {
r.EncodeNil()
} else {
yym1075 := z.EncBinary()
_ = yym1075
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1070[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1076 := z.EncBinary()
_ = yym1076
if false {
} else {
h.encSliceKeyToPath(([]KeyToPath)(x.Items), e)
}
}
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1070[2] {
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1078 := *x.DefaultMode
yym1079 := z.EncBinary()
_ = yym1079
if false {
} else {
r.EncodeInt(int64(yy1078))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1070[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("defaultMode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DefaultMode == nil {
r.EncodeNil()
} else {
yy1080 := *x.DefaultMode
yym1081 := z.EncBinary()
_ = yym1081
if false {
} else {
r.EncodeInt(int64(yy1080))
}
}
}
}
if yyr1070 || yy2arr1070 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMapVolumeSource) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1082 := z.DecBinary()
_ = yym1082
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1083 := r.ContainerType()
if yyct1083 == codecSelferValueTypeMap1234 {
yyl1083 := r.ReadMapStart()
if yyl1083 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1083, d)
}
} else if yyct1083 == codecSelferValueTypeArray1234 {
yyl1083 := r.ReadArrayStart()
if yyl1083 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1083, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMapVolumeSource) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1084Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1084Slc
var yyhl1084 bool = l >= 0
for yyj1084 := 0; ; yyj1084++ {
if yyhl1084 {
if yyj1084 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1084Slc = r.DecodeBytes(yys1084Slc, true, true)
yys1084 := string(yys1084Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1084 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1086 := &x.Items
yym1087 := z.DecBinary()
_ = yym1087
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv1086), d)
}
}
case "defaultMode":
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1089 := z.DecBinary()
_ = yym1089
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1084)
} // end switch yys1084
} // end for yyj1084
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMapVolumeSource) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1090 int
var yyb1090 bool
var yyhl1090 bool = l >= 0
yyj1090++
if yyhl1090 {
yyb1090 = yyj1090 > l
} else {
yyb1090 = r.CheckBreak()
}
if yyb1090 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1090++
if yyhl1090 {
yyb1090 = yyj1090 > l
} else {
yyb1090 = r.CheckBreak()
}
if yyb1090 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1092 := &x.Items
yym1093 := z.DecBinary()
_ = yym1093
if false {
} else {
h.decSliceKeyToPath((*[]KeyToPath)(yyv1092), d)
}
}
yyj1090++
if yyhl1090 {
yyb1090 = yyj1090 > l
} else {
yyb1090 = r.CheckBreak()
}
if yyb1090 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DefaultMode != nil {
x.DefaultMode = nil
}
} else {
if x.DefaultMode == nil {
x.DefaultMode = new(int32)
}
yym1095 := z.DecBinary()
_ = yym1095
if false {
} else {
*((*int32)(x.DefaultMode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1090++
if yyhl1090 {
yyb1090 = yyj1090 > l
} else {
yyb1090 = r.CheckBreak()
}
if yyb1090 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1090-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *KeyToPath) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1096 := z.EncBinary()
_ = yym1096
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1097 := !z.EncBinary()
yy2arr1097 := z.EncBasicHandle().StructToArray
var yyq1097 [3]bool
_, _, _ = yysep1097, yyq1097, yy2arr1097
const yyr1097 bool = false
yyq1097[2] = x.Mode != nil
var yynn1097 int
if yyr1097 || yy2arr1097 {
r.EncodeArrayStart(3)
} else {
yynn1097 = 2
for _, b := range yyq1097 {
if b {
yynn1097++
}
}
r.EncodeMapStart(yynn1097)
yynn1097 = 0
}
if yyr1097 || yy2arr1097 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1099 := z.EncBinary()
_ = yym1099
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)
yym1100 := z.EncBinary()
_ = yym1100
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1097 || yy2arr1097 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1102 := z.EncBinary()
_ = yym1102
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)
yym1103 := z.EncBinary()
_ = yym1103
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr1097 || yy2arr1097 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1097[2] {
if x.Mode == nil {
r.EncodeNil()
} else {
yy1105 := *x.Mode
yym1106 := z.EncBinary()
_ = yym1106
if false {
} else {
r.EncodeInt(int64(yy1105))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1097[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("mode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Mode == nil {
r.EncodeNil()
} else {
yy1107 := *x.Mode
yym1108 := z.EncBinary()
_ = yym1108
if false {
} else {
r.EncodeInt(int64(yy1107))
}
}
}
}
if yyr1097 || yy2arr1097 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *KeyToPath) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1109 := z.DecBinary()
_ = yym1109
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1110 := r.ContainerType()
if yyct1110 == codecSelferValueTypeMap1234 {
yyl1110 := r.ReadMapStart()
if yyl1110 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1110, d)
}
} else if yyct1110 == codecSelferValueTypeArray1234 {
yyl1110 := r.ReadArrayStart()
if yyl1110 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1110, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *KeyToPath) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1111Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1111Slc
var yyhl1111 bool = l >= 0
for yyj1111 := 0; ; yyj1111++ {
if yyhl1111 {
if yyj1111 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1111Slc = r.DecodeBytes(yys1111Slc, true, true)
yys1111 := string(yys1111Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1111 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "mode":
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1115 := z.DecBinary()
_ = yym1115
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
default:
z.DecStructFieldNotFound(-1, yys1111)
} // end switch yys1111
} // end for yyj1111
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *KeyToPath) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1116 int
var yyb1116 bool
var yyhl1116 bool = l >= 0
yyj1116++
if yyhl1116 {
yyb1116 = yyj1116 > l
} else {
yyb1116 = r.CheckBreak()
}
if yyb1116 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1116++
if yyhl1116 {
yyb1116 = yyj1116 > l
} else {
yyb1116 = r.CheckBreak()
}
if yyb1116 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1116++
if yyhl1116 {
yyb1116 = yyj1116 > l
} else {
yyb1116 = r.CheckBreak()
}
if yyb1116 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Mode != nil {
x.Mode = nil
}
} else {
if x.Mode == nil {
x.Mode = new(int32)
}
yym1120 := z.DecBinary()
_ = yym1120
if false {
} else {
*((*int32)(x.Mode)) = int32(r.DecodeInt(32))
}
}
for {
yyj1116++
if yyhl1116 {
yyb1116 = yyj1116 > l
} else {
yyb1116 = r.CheckBreak()
}
if yyb1116 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1116-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 {
yym1121 := z.EncBinary()
_ = yym1121
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1122 := !z.EncBinary()
yy2arr1122 := z.EncBasicHandle().StructToArray
var yyq1122 [5]bool
_, _, _ = yysep1122, yyq1122, yy2arr1122
const yyr1122 bool = false
yyq1122[0] = x.Name != ""
yyq1122[1] = x.HostPort != 0
yyq1122[3] = x.Protocol != ""
yyq1122[4] = x.HostIP != ""
var yynn1122 int
if yyr1122 || yy2arr1122 {
r.EncodeArrayStart(5)
} else {
yynn1122 = 1
for _, b := range yyq1122 {
if b {
yynn1122++
}
}
r.EncodeMapStart(yynn1122)
yynn1122 = 0
}
if yyr1122 || yy2arr1122 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1122[0] {
yym1124 := z.EncBinary()
_ = yym1124
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1122[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1125 := z.EncBinary()
_ = yym1125
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr1122 || yy2arr1122 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1122[1] {
yym1127 := z.EncBinary()
_ = yym1127
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1122[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1128 := z.EncBinary()
_ = yym1128
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
}
}
if yyr1122 || yy2arr1122 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1130 := z.EncBinary()
_ = yym1130
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1131 := z.EncBinary()
_ = yym1131
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
}
if yyr1122 || yy2arr1122 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1122[3] {
x.Protocol.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1122[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Protocol.CodecEncodeSelf(e)
}
}
if yyr1122 || yy2arr1122 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1122[4] {
yym1134 := z.EncBinary()
_ = yym1134
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1122[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1135 := z.EncBinary()
_ = yym1135
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr1122 || yy2arr1122 {
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
yym1136 := z.DecBinary()
_ = yym1136
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1137 := r.ContainerType()
if yyct1137 == codecSelferValueTypeMap1234 {
yyl1137 := r.ReadMapStart()
if yyl1137 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1137, d)
}
} else if yyct1137 == codecSelferValueTypeArray1234 {
yyl1137 := r.ReadArrayStart()
if yyl1137 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1137, 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 yys1138Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1138Slc
var yyhl1138 bool = l >= 0
for yyj1138 := 0; ; yyj1138++ {
if yyhl1138 {
if yyj1138 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1138Slc = r.DecodeBytes(yys1138Slc, true, true)
yys1138 := string(yys1138Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1138 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "hostPort":
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int32(r.DecodeInt(32))
}
case "containerPort":
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int32(r.DecodeInt(32))
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "hostIP":
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1138)
} // end switch yys1138
} // end for yyj1138
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 yyj1144 int
var yyb1144 bool
var yyhl1144 bool = l >= 0
yyj1144++
if yyhl1144 {
yyb1144 = yyj1144 > l
} else {
yyb1144 = r.CheckBreak()
}
if yyb1144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1144++
if yyhl1144 {
yyb1144 = yyj1144 > l
} else {
yyb1144 = r.CheckBreak()
}
if yyb1144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int32(r.DecodeInt(32))
}
yyj1144++
if yyhl1144 {
yyb1144 = yyj1144 > l
} else {
yyb1144 = r.CheckBreak()
}
if yyb1144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int32(r.DecodeInt(32))
}
yyj1144++
if yyhl1144 {
yyb1144 = yyj1144 > l
} else {
yyb1144 = r.CheckBreak()
}
if yyb1144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj1144++
if yyhl1144 {
yyb1144 = yyj1144 > l
} else {
yyb1144 = r.CheckBreak()
}
if yyb1144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
for {
yyj1144++
if yyhl1144 {
yyb1144 = yyj1144 > l
} else {
yyb1144 = r.CheckBreak()
}
if yyb1144 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1144-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 {
yym1150 := z.EncBinary()
_ = yym1150
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1151 := !z.EncBinary()
yy2arr1151 := z.EncBasicHandle().StructToArray
var yyq1151 [4]bool
_, _, _ = yysep1151, yyq1151, yy2arr1151
const yyr1151 bool = false
yyq1151[1] = x.ReadOnly != false
yyq1151[3] = x.SubPath != ""
var yynn1151 int
if yyr1151 || yy2arr1151 {
r.EncodeArrayStart(4)
} else {
yynn1151 = 2
for _, b := range yyq1151 {
if b {
yynn1151++
}
}
r.EncodeMapStart(yynn1151)
yynn1151 = 0
}
if yyr1151 || yy2arr1151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1153 := z.EncBinary()
_ = yym1153
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)
yym1154 := z.EncBinary()
_ = yym1154
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1151 || yy2arr1151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1151[1] {
yym1156 := z.EncBinary()
_ = yym1156
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1151[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1157 := z.EncBinary()
_ = yym1157
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr1151 || yy2arr1151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1159 := z.EncBinary()
_ = yym1159
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)
yym1160 := z.EncBinary()
_ = yym1160
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
}
}
if yyr1151 || yy2arr1151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1151[3] {
yym1162 := z.EncBinary()
_ = yym1162
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1151[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("subPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1163 := z.EncBinary()
_ = yym1163
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SubPath))
}
}
}
if yyr1151 || yy2arr1151 {
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
yym1164 := z.DecBinary()
_ = yym1164
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1165 := r.ContainerType()
if yyct1165 == codecSelferValueTypeMap1234 {
yyl1165 := r.ReadMapStart()
if yyl1165 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1165, d)
}
} else if yyct1165 == codecSelferValueTypeArray1234 {
yyl1165 := r.ReadArrayStart()
if yyl1165 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1165, 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 yys1166Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1166Slc
var yyhl1166 bool = l >= 0
for yyj1166 := 0; ; yyj1166++ {
if yyhl1166 {
if yyj1166 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1166Slc = r.DecodeBytes(yys1166Slc, true, true)
yys1166 := string(yys1166Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1166 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "mountPath":
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
case "subPath":
if r.TryDecodeAsNil() {
x.SubPath = ""
} else {
x.SubPath = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1166)
} // end switch yys1166
} // end for yyj1166
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 yyj1171 int
var yyb1171 bool
var yyhl1171 bool = l >= 0
yyj1171++
if yyhl1171 {
yyb1171 = yyj1171 > l
} else {
yyb1171 = r.CheckBreak()
}
if yyb1171 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1171++
if yyhl1171 {
yyb1171 = yyj1171 > l
} else {
yyb1171 = r.CheckBreak()
}
if yyb1171 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj1171++
if yyhl1171 {
yyb1171 = yyj1171 > l
} else {
yyb1171 = r.CheckBreak()
}
if yyb1171 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
yyj1171++
if yyhl1171 {
yyb1171 = yyj1171 > l
} else {
yyb1171 = r.CheckBreak()
}
if yyb1171 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SubPath = ""
} else {
x.SubPath = string(r.DecodeString())
}
for {
yyj1171++
if yyhl1171 {
yyb1171 = yyj1171 > l
} else {
yyb1171 = r.CheckBreak()
}
if yyb1171 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1171-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 {
yym1176 := z.EncBinary()
_ = yym1176
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1177 := !z.EncBinary()
yy2arr1177 := z.EncBasicHandle().StructToArray
var yyq1177 [3]bool
_, _, _ = yysep1177, yyq1177, yy2arr1177
const yyr1177 bool = false
yyq1177[1] = x.Value != ""
yyq1177[2] = x.ValueFrom != nil
var yynn1177 int
if yyr1177 || yy2arr1177 {
r.EncodeArrayStart(3)
} else {
yynn1177 = 1
for _, b := range yyq1177 {
if b {
yynn1177++
}
}
r.EncodeMapStart(yynn1177)
yynn1177 = 0
}
if yyr1177 || yy2arr1177 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1179 := z.EncBinary()
_ = yym1179
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)
yym1180 := z.EncBinary()
_ = yym1180
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1177 || yy2arr1177 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1177[1] {
yym1182 := z.EncBinary()
_ = yym1182
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1177[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1183 := z.EncBinary()
_ = yym1183
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr1177 || yy2arr1177 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1177[2] {
if x.ValueFrom == nil {
r.EncodeNil()
} else {
x.ValueFrom.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1177[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 yyr1177 || yy2arr1177 {
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
yym1185 := z.DecBinary()
_ = yym1185
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1186 := r.ContainerType()
if yyct1186 == codecSelferValueTypeMap1234 {
yyl1186 := r.ReadMapStart()
if yyl1186 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1186, d)
}
} else if yyct1186 == codecSelferValueTypeArray1234 {
yyl1186 := r.ReadArrayStart()
if yyl1186 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1186, 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 yys1187Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1187Slc
var yyhl1187 bool = l >= 0
for yyj1187 := 0; ; yyj1187++ {
if yyhl1187 {
if yyj1187 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1187Slc = r.DecodeBytes(yys1187Slc, true, true)
yys1187 := string(yys1187Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1187 {
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, yys1187)
} // end switch yys1187
} // end for yyj1187
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 yyj1191 int
var yyb1191 bool
var yyhl1191 bool = l >= 0
yyj1191++
if yyhl1191 {
yyb1191 = yyj1191 > l
} else {
yyb1191 = r.CheckBreak()
}
if yyb1191 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1191++
if yyhl1191 {
yyb1191 = yyj1191 > l
} else {
yyb1191 = r.CheckBreak()
}
if yyb1191 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj1191++
if yyhl1191 {
yyb1191 = yyj1191 > l
} else {
yyb1191 = r.CheckBreak()
}
if yyb1191 {
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 {
yyj1191++
if yyhl1191 {
yyb1191 = yyj1191 > l
} else {
yyb1191 = r.CheckBreak()
}
if yyb1191 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1191-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 {
yym1195 := z.EncBinary()
_ = yym1195
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1196 := !z.EncBinary()
yy2arr1196 := z.EncBasicHandle().StructToArray
var yyq1196 [4]bool
_, _, _ = yysep1196, yyq1196, yy2arr1196
const yyr1196 bool = false
yyq1196[0] = x.FieldRef != nil
yyq1196[1] = x.ResourceFieldRef != nil
yyq1196[2] = x.ConfigMapKeyRef != nil
yyq1196[3] = x.SecretKeyRef != nil
var yynn1196 int
if yyr1196 || yy2arr1196 {
r.EncodeArrayStart(4)
} else {
yynn1196 = 0
for _, b := range yyq1196 {
if b {
yynn1196++
}
}
r.EncodeMapStart(yynn1196)
yynn1196 = 0
}
if yyr1196 || yy2arr1196 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1196[0] {
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1196[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 yyr1196 || yy2arr1196 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1196[1] {
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1196[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceFieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ResourceFieldRef == nil {
r.EncodeNil()
} else {
x.ResourceFieldRef.CodecEncodeSelf(e)
}
}
}
if yyr1196 || yy2arr1196 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1196[2] {
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1196[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("configMapKeyRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ConfigMapKeyRef == nil {
r.EncodeNil()
} else {
x.ConfigMapKeyRef.CodecEncodeSelf(e)
}
}
}
if yyr1196 || yy2arr1196 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1196[3] {
if x.SecretKeyRef == nil {
r.EncodeNil()
} else {
x.SecretKeyRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1196[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretKeyRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretKeyRef == nil {
r.EncodeNil()
} else {
x.SecretKeyRef.CodecEncodeSelf(e)
}
}
}
if yyr1196 || yy2arr1196 {
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
yym1201 := z.DecBinary()
_ = yym1201
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1202 := r.ContainerType()
if yyct1202 == codecSelferValueTypeMap1234 {
yyl1202 := r.ReadMapStart()
if yyl1202 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1202, d)
}
} else if yyct1202 == codecSelferValueTypeArray1234 {
yyl1202 := r.ReadArrayStart()
if yyl1202 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1202, 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 yys1203Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1203Slc
var yyhl1203 bool = l >= 0
for yyj1203 := 0; ; yyj1203++ {
if yyhl1203 {
if yyj1203 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1203Slc = r.DecodeBytes(yys1203Slc, true, true)
yys1203 := string(yys1203Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1203 {
case "fieldRef":
if r.TryDecodeAsNil() {
if x.FieldRef != nil {
x.FieldRef = nil
}
} else {
if x.FieldRef == nil {
x.FieldRef = new(ObjectFieldSelector)
}
x.FieldRef.CodecDecodeSelf(d)
}
case "resourceFieldRef":
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
case "configMapKeyRef":
if r.TryDecodeAsNil() {
if x.ConfigMapKeyRef != nil {
x.ConfigMapKeyRef = nil
}
} else {
if x.ConfigMapKeyRef == nil {
x.ConfigMapKeyRef = new(ConfigMapKeySelector)
}
x.ConfigMapKeyRef.CodecDecodeSelf(d)
}
case "secretKeyRef":
if r.TryDecodeAsNil() {
if x.SecretKeyRef != nil {
x.SecretKeyRef = nil
}
} else {
if x.SecretKeyRef == nil {
x.SecretKeyRef = new(SecretKeySelector)
}
x.SecretKeyRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1203)
} // end switch yys1203
} // end for yyj1203
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 yyj1208 int
var yyb1208 bool
var yyhl1208 bool = l >= 0
yyj1208++
if yyhl1208 {
yyb1208 = yyj1208 > l
} else {
yyb1208 = r.CheckBreak()
}
if yyb1208 {
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)
}
yyj1208++
if yyhl1208 {
yyb1208 = yyj1208 > l
} else {
yyb1208 = r.CheckBreak()
}
if yyb1208 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ResourceFieldRef != nil {
x.ResourceFieldRef = nil
}
} else {
if x.ResourceFieldRef == nil {
x.ResourceFieldRef = new(ResourceFieldSelector)
}
x.ResourceFieldRef.CodecDecodeSelf(d)
}
yyj1208++
if yyhl1208 {
yyb1208 = yyj1208 > l
} else {
yyb1208 = r.CheckBreak()
}
if yyb1208 {
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)
}
yyj1208++
if yyhl1208 {
yyb1208 = yyj1208 > l
} else {
yyb1208 = r.CheckBreak()
}
if yyb1208 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecretKeyRef != nil {
x.SecretKeyRef = nil
}
} else {
if x.SecretKeyRef == nil {
x.SecretKeyRef = new(SecretKeySelector)
}
x.SecretKeyRef.CodecDecodeSelf(d)
}
for {
yyj1208++
if yyhl1208 {
yyb1208 = yyj1208 > l
} else {
yyb1208 = r.CheckBreak()
}
if yyb1208 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1208-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 {
yym1213 := z.EncBinary()
_ = yym1213
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1214 := !z.EncBinary()
yy2arr1214 := z.EncBasicHandle().StructToArray
var yyq1214 [2]bool
_, _, _ = yysep1214, yyq1214, yy2arr1214
const yyr1214 bool = false
var yynn1214 int
if yyr1214 || yy2arr1214 {
r.EncodeArrayStart(2)
} else {
yynn1214 = 2
for _, b := range yyq1214 {
if b {
yynn1214++
}
}
r.EncodeMapStart(yynn1214)
yynn1214 = 0
}
if yyr1214 || yy2arr1214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1216 := z.EncBinary()
_ = yym1216
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1217 := z.EncBinary()
_ = yym1217
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr1214 || yy2arr1214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1219 := z.EncBinary()
_ = yym1219
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)
yym1220 := z.EncBinary()
_ = yym1220
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
if yyr1214 || yy2arr1214 {
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
yym1221 := z.DecBinary()
_ = yym1221
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1222 := r.ContainerType()
if yyct1222 == codecSelferValueTypeMap1234 {
yyl1222 := r.ReadMapStart()
if yyl1222 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1222, d)
}
} else if yyct1222 == codecSelferValueTypeArray1234 {
yyl1222 := r.ReadArrayStart()
if yyl1222 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1222, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ObjectFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1223Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1223Slc
var yyhl1223 bool = l >= 0
for yyj1223 := 0; ; yyj1223++ {
if yyhl1223 {
if yyj1223 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1223Slc = r.DecodeBytes(yys1223Slc, true, true)
yys1223 := string(yys1223Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1223 {
case "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, yys1223)
} // end switch yys1223
} // end for yyj1223
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 yyj1226 int
var yyb1226 bool
var yyhl1226 bool = l >= 0
yyj1226++
if yyhl1226 {
yyb1226 = yyj1226 > l
} else {
yyb1226 = r.CheckBreak()
}
if yyb1226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1226++
if yyhl1226 {
yyb1226 = yyj1226 > l
} else {
yyb1226 = r.CheckBreak()
}
if yyb1226 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj1226++
if yyhl1226 {
yyb1226 = yyj1226 > l
} else {
yyb1226 = r.CheckBreak()
}
if yyb1226 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1226-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ResourceFieldSelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1229 := z.EncBinary()
_ = yym1229
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1230 := !z.EncBinary()
yy2arr1230 := z.EncBasicHandle().StructToArray
var yyq1230 [3]bool
_, _, _ = yysep1230, yyq1230, yy2arr1230
const yyr1230 bool = false
yyq1230[0] = x.ContainerName != ""
yyq1230[2] = true
var yynn1230 int
if yyr1230 || yy2arr1230 {
r.EncodeArrayStart(3)
} else {
yynn1230 = 1
for _, b := range yyq1230 {
if b {
yynn1230++
}
}
r.EncodeMapStart(yynn1230)
yynn1230 = 0
}
if yyr1230 || yy2arr1230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1230[0] {
yym1232 := z.EncBinary()
_ = yym1232
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1230[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1233 := z.EncBinary()
_ = yym1233
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerName))
}
}
}
if yyr1230 || yy2arr1230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1235 := z.EncBinary()
_ = yym1235
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resource"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1236 := z.EncBinary()
_ = yym1236
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Resource))
}
}
if yyr1230 || yy2arr1230 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1230[2] {
yy1238 := &x.Divisor
yym1239 := z.EncBinary()
_ = yym1239
if false {
} else if z.HasExtensions() && z.EncExt(yy1238) {
} else if !yym1239 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1238)
} else {
z.EncFallback(yy1238)
}
} else {
r.EncodeNil()
}
} else {
if yyq1230[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("divisor"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1240 := &x.Divisor
yym1241 := z.EncBinary()
_ = yym1241
if false {
} else if z.HasExtensions() && z.EncExt(yy1240) {
} else if !yym1241 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1240)
} else {
z.EncFallback(yy1240)
}
}
}
if yyr1230 || yy2arr1230 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ResourceFieldSelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1242 := z.DecBinary()
_ = yym1242
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1243 := r.ContainerType()
if yyct1243 == codecSelferValueTypeMap1234 {
yyl1243 := r.ReadMapStart()
if yyl1243 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1243, d)
}
} else if yyct1243 == codecSelferValueTypeArray1234 {
yyl1243 := r.ReadArrayStart()
if yyl1243 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1243, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ResourceFieldSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1244Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1244Slc
var yyhl1244 bool = l >= 0
for yyj1244 := 0; ; yyj1244++ {
if yyhl1244 {
if yyj1244 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1244Slc = r.DecodeBytes(yys1244Slc, true, true)
yys1244 := string(yys1244Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1244 {
case "containerName":
if r.TryDecodeAsNil() {
x.ContainerName = ""
} else {
x.ContainerName = string(r.DecodeString())
}
case "resource":
if r.TryDecodeAsNil() {
x.Resource = ""
} else {
x.Resource = string(r.DecodeString())
}
case "divisor":
if r.TryDecodeAsNil() {
x.Divisor = pkg3_resource.Quantity{}
} else {
yyv1247 := &x.Divisor
yym1248 := z.DecBinary()
_ = yym1248
if false {
} else if z.HasExtensions() && z.DecExt(yyv1247) {
} else if !yym1248 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1247)
} else {
z.DecFallback(yyv1247, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1244)
} // end switch yys1244
} // end for yyj1244
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ResourceFieldSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1249 int
var yyb1249 bool
var yyhl1249 bool = l >= 0
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerName = ""
} else {
x.ContainerName = string(r.DecodeString())
}
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resource = ""
} else {
x.Resource = string(r.DecodeString())
}
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Divisor = pkg3_resource.Quantity{}
} else {
yyv1252 := &x.Divisor
yym1253 := z.DecBinary()
_ = yym1253
if false {
} else if z.HasExtensions() && z.DecExt(yyv1252) {
} else if !yym1253 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1252)
} else {
z.DecFallback(yyv1252, false)
}
}
for {
yyj1249++
if yyhl1249 {
yyb1249 = yyj1249 > l
} else {
yyb1249 = r.CheckBreak()
}
if yyb1249 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1249-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 {
yym1254 := z.EncBinary()
_ = yym1254
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1255 := !z.EncBinary()
yy2arr1255 := z.EncBasicHandle().StructToArray
var yyq1255 [2]bool
_, _, _ = yysep1255, yyq1255, yy2arr1255
const yyr1255 bool = false
var yynn1255 int
if yyr1255 || yy2arr1255 {
r.EncodeArrayStart(2)
} else {
yynn1255 = 2
for _, b := range yyq1255 {
if b {
yynn1255++
}
}
r.EncodeMapStart(yynn1255)
yynn1255 = 0
}
if yyr1255 || yy2arr1255 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1257 := z.EncBinary()
_ = yym1257
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)
yym1258 := z.EncBinary()
_ = yym1258
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1255 || yy2arr1255 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1260 := z.EncBinary()
_ = yym1260
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)
yym1261 := z.EncBinary()
_ = yym1261
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1255 || yy2arr1255 {
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
yym1262 := z.DecBinary()
_ = yym1262
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1263 := r.ContainerType()
if yyct1263 == codecSelferValueTypeMap1234 {
yyl1263 := r.ReadMapStart()
if yyl1263 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1263, d)
}
} else if yyct1263 == codecSelferValueTypeArray1234 {
yyl1263 := r.ReadArrayStart()
if yyl1263 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1263, 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 yys1264Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1264Slc
var yyhl1264 bool = l >= 0
for yyj1264 := 0; ; yyj1264++ {
if yyhl1264 {
if yyj1264 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1264Slc = r.DecodeBytes(yys1264Slc, true, true)
yys1264 := string(yys1264Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1264 {
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, yys1264)
} // end switch yys1264
} // end for yyj1264
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 yyj1267 int
var yyb1267 bool
var yyhl1267 bool = l >= 0
yyj1267++
if yyhl1267 {
yyb1267 = yyj1267 > l
} else {
yyb1267 = r.CheckBreak()
}
if yyb1267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1267++
if yyhl1267 {
yyb1267 = yyj1267 > l
} else {
yyb1267 = r.CheckBreak()
}
if yyb1267 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
for {
yyj1267++
if yyhl1267 {
yyb1267 = yyj1267 > l
} else {
yyb1267 = r.CheckBreak()
}
if yyb1267 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1267-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *SecretKeySelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
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
var yynn1271 int
if yyr1271 || yy2arr1271 {
r.EncodeArrayStart(2)
} else {
yynn1271 = 2
for _, b := range yyq1271 {
if b {
yynn1271++
}
}
r.EncodeMapStart(yynn1271)
yynn1271 = 0
}
if yyr1271 || yy2arr1271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1273 := z.EncBinary()
_ = yym1273
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)
yym1274 := z.EncBinary()
_ = yym1274
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1271 || yy2arr1271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1276 := z.EncBinary()
_ = yym1276
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)
yym1277 := z.EncBinary()
_ = yym1277
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1271 || yy2arr1271 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *SecretKeySelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
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 *SecretKeySelector) 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 "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, yys1280)
} // end switch yys1280
} // end for yyj1280
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *SecretKeySelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var 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.Name = ""
} else {
x.Name = 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.Key = ""
} else {
x.Key = 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 *HTTPHeader) 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 [2]bool
_, _, _ = yysep1287, yyq1287, yy2arr1287
const yyr1287 bool = false
var yynn1287 int
if yyr1287 || yy2arr1287 {
r.EncodeArrayStart(2)
} else {
yynn1287 = 2
for _, b := range yyq1287 {
if b {
yynn1287++
}
}
r.EncodeMapStart(yynn1287)
yynn1287 = 0
}
if yyr1287 || yy2arr1287 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1289 := z.EncBinary()
_ = yym1289
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)
yym1290 := z.EncBinary()
_ = yym1290
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1287 || yy2arr1287 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1292 := z.EncBinary()
_ = yym1292
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1293 := z.EncBinary()
_ = yym1293
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
if yyr1287 || yy2arr1287 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *HTTPHeader) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1294 := z.DecBinary()
_ = yym1294
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1295 := r.ContainerType()
if yyct1295 == codecSelferValueTypeMap1234 {
yyl1295 := r.ReadMapStart()
if yyl1295 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1295, d)
}
} else if yyct1295 == codecSelferValueTypeArray1234 {
yyl1295 := r.ReadArrayStart()
if yyl1295 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1295, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HTTPHeader) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1296Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1296Slc
var yyhl1296 bool = l >= 0
for yyj1296 := 0; ; yyj1296++ {
if yyhl1296 {
if yyj1296 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1296Slc = r.DecodeBytes(yys1296Slc, true, true)
yys1296 := string(yys1296Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1296 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1296)
} // end switch yys1296
} // end for yyj1296
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *HTTPHeader) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1299 int
var yyb1299 bool
var yyhl1299 bool = l >= 0
yyj1299++
if yyhl1299 {
yyb1299 = yyj1299 > l
} else {
yyb1299 = r.CheckBreak()
}
if yyb1299 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1299++
if yyhl1299 {
yyb1299 = yyj1299 > l
} else {
yyb1299 = r.CheckBreak()
}
if yyb1299 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
for {
yyj1299++
if yyhl1299 {
yyb1299 = yyj1299 > l
} else {
yyb1299 = r.CheckBreak()
}
if yyb1299 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1299-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 {
yym1302 := z.EncBinary()
_ = yym1302
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1303 := !z.EncBinary()
yy2arr1303 := z.EncBasicHandle().StructToArray
var yyq1303 [5]bool
_, _, _ = yysep1303, yyq1303, yy2arr1303
const yyr1303 bool = false
yyq1303[0] = x.Path != ""
yyq1303[1] = true
yyq1303[2] = x.Host != ""
yyq1303[3] = x.Scheme != ""
yyq1303[4] = len(x.HTTPHeaders) != 0
var yynn1303 int
if yyr1303 || yy2arr1303 {
r.EncodeArrayStart(5)
} else {
yynn1303 = 0
for _, b := range yyq1303 {
if b {
yynn1303++
}
}
r.EncodeMapStart(yynn1303)
yynn1303 = 0
}
if yyr1303 || yy2arr1303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1303[0] {
yym1305 := z.EncBinary()
_ = yym1305
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1303[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1306 := z.EncBinary()
_ = yym1306
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr1303 || yy2arr1303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1303[1] {
yy1308 := &x.Port
yym1309 := z.EncBinary()
_ = yym1309
if false {
} else if z.HasExtensions() && z.EncExt(yy1308) {
} else if !yym1309 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1308)
} else {
z.EncFallback(yy1308)
}
} else {
r.EncodeNil()
}
} else {
if yyq1303[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1310 := &x.Port
yym1311 := z.EncBinary()
_ = yym1311
if false {
} else if z.HasExtensions() && z.EncExt(yy1310) {
} else if !yym1311 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1310)
} else {
z.EncFallback(yy1310)
}
}
}
if yyr1303 || yy2arr1303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1303[2] {
yym1313 := z.EncBinary()
_ = yym1313
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1303[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1314 := z.EncBinary()
_ = yym1314
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr1303 || yy2arr1303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1303[3] {
x.Scheme.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1303[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Scheme.CodecEncodeSelf(e)
}
}
if yyr1303 || yy2arr1303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1303[4] {
if x.HTTPHeaders == nil {
r.EncodeNil()
} else {
yym1317 := z.EncBinary()
_ = yym1317
if false {
} else {
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1303[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpHeaders"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.HTTPHeaders == nil {
r.EncodeNil()
} else {
yym1318 := z.EncBinary()
_ = yym1318
if false {
} else {
h.encSliceHTTPHeader(([]HTTPHeader)(x.HTTPHeaders), e)
}
}
}
}
if yyr1303 || yy2arr1303 {
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
yym1319 := z.DecBinary()
_ = yym1319
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1320 := r.ContainerType()
if yyct1320 == codecSelferValueTypeMap1234 {
yyl1320 := r.ReadMapStart()
if yyl1320 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1320, d)
}
} else if yyct1320 == codecSelferValueTypeArray1234 {
yyl1320 := r.ReadArrayStart()
if yyl1320 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1320, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *HTTPGetAction) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1321Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1321Slc
var yyhl1321 bool = l >= 0
for yyj1321 := 0; ; yyj1321++ {
if yyhl1321 {
if yyj1321 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1321Slc = r.DecodeBytes(yys1321Slc, true, true)
yys1321 := string(yys1321Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1321 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1323 := &x.Port
yym1324 := z.DecBinary()
_ = yym1324
if false {
} else if z.HasExtensions() && z.DecExt(yyv1323) {
} else if !yym1324 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1323)
} else {
z.DecFallback(yyv1323, false)
}
}
case "host":
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
case "scheme":
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
case "httpHeaders":
if r.TryDecodeAsNil() {
x.HTTPHeaders = nil
} else {
yyv1327 := &x.HTTPHeaders
yym1328 := z.DecBinary()
_ = yym1328
if false {
} else {
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1327), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1321)
} // end switch yys1321
} // end for yyj1321
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 yyj1329 int
var yyb1329 bool
var yyhl1329 bool = l >= 0
yyj1329++
if yyhl1329 {
yyb1329 = yyj1329 > l
} else {
yyb1329 = r.CheckBreak()
}
if yyb1329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj1329++
if yyhl1329 {
yyb1329 = yyj1329 > l
} else {
yyb1329 = r.CheckBreak()
}
if yyb1329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1331 := &x.Port
yym1332 := z.DecBinary()
_ = yym1332
if false {
} else if z.HasExtensions() && z.DecExt(yyv1331) {
} else if !yym1332 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1331)
} else {
z.DecFallback(yyv1331, false)
}
}
yyj1329++
if yyhl1329 {
yyb1329 = yyj1329 > l
} else {
yyb1329 = r.CheckBreak()
}
if yyb1329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
yyj1329++
if yyhl1329 {
yyb1329 = yyj1329 > l
} else {
yyb1329 = r.CheckBreak()
}
if yyb1329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
yyj1329++
if yyhl1329 {
yyb1329 = yyj1329 > l
} else {
yyb1329 = r.CheckBreak()
}
if yyb1329 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HTTPHeaders = nil
} else {
yyv1335 := &x.HTTPHeaders
yym1336 := z.DecBinary()
_ = yym1336
if false {
} else {
h.decSliceHTTPHeader((*[]HTTPHeader)(yyv1335), d)
}
}
for {
yyj1329++
if yyhl1329 {
yyb1329 = yyj1329 > l
} else {
yyb1329 = r.CheckBreak()
}
if yyb1329 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1329-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1337 := z.EncBinary()
_ = yym1337
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
yym1338 := z.DecBinary()
_ = yym1338
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 {
yym1339 := z.EncBinary()
_ = yym1339
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1340 := !z.EncBinary()
yy2arr1340 := z.EncBasicHandle().StructToArray
var yyq1340 [1]bool
_, _, _ = yysep1340, yyq1340, yy2arr1340
const yyr1340 bool = false
yyq1340[0] = true
var yynn1340 int
if yyr1340 || yy2arr1340 {
r.EncodeArrayStart(1)
} else {
yynn1340 = 0
for _, b := range yyq1340 {
if b {
yynn1340++
}
}
r.EncodeMapStart(yynn1340)
yynn1340 = 0
}
if yyr1340 || yy2arr1340 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1340[0] {
yy1342 := &x.Port
yym1343 := z.EncBinary()
_ = yym1343
if false {
} else if z.HasExtensions() && z.EncExt(yy1342) {
} else if !yym1343 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1342)
} else {
z.EncFallback(yy1342)
}
} else {
r.EncodeNil()
}
} else {
if yyq1340[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1344 := &x.Port
yym1345 := z.EncBinary()
_ = yym1345
if false {
} else if z.HasExtensions() && z.EncExt(yy1344) {
} else if !yym1345 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1344)
} else {
z.EncFallback(yy1344)
}
}
}
if yyr1340 || yy2arr1340 {
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
yym1346 := z.DecBinary()
_ = yym1346
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1347 := r.ContainerType()
if yyct1347 == codecSelferValueTypeMap1234 {
yyl1347 := r.ReadMapStart()
if yyl1347 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1347, d)
}
} else if yyct1347 == codecSelferValueTypeArray1234 {
yyl1347 := r.ReadArrayStart()
if yyl1347 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1347, 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 yys1348Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1348Slc
var yyhl1348 bool = l >= 0
for yyj1348 := 0; ; yyj1348++ {
if yyhl1348 {
if yyj1348 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1348Slc = r.DecodeBytes(yys1348Slc, true, true)
yys1348 := string(yys1348Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1348 {
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1349 := &x.Port
yym1350 := z.DecBinary()
_ = yym1350
if false {
} else if z.HasExtensions() && z.DecExt(yyv1349) {
} else if !yym1350 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1349)
} else {
z.DecFallback(yyv1349, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1348)
} // end switch yys1348
} // end for yyj1348
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 yyj1351 int
var yyb1351 bool
var yyhl1351 bool = l >= 0
yyj1351++
if yyhl1351 {
yyb1351 = yyj1351 > l
} else {
yyb1351 = r.CheckBreak()
}
if yyb1351 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg4_intstr.IntOrString{}
} else {
yyv1352 := &x.Port
yym1353 := z.DecBinary()
_ = yym1353
if false {
} else if z.HasExtensions() && z.DecExt(yyv1352) {
} else if !yym1353 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1352)
} else {
z.DecFallback(yyv1352, false)
}
}
for {
yyj1351++
if yyhl1351 {
yyb1351 = yyj1351 > l
} else {
yyb1351 = r.CheckBreak()
}
if yyb1351 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1351-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 {
yym1354 := z.EncBinary()
_ = yym1354
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1355 := !z.EncBinary()
yy2arr1355 := z.EncBasicHandle().StructToArray
var yyq1355 [1]bool
_, _, _ = yysep1355, yyq1355, yy2arr1355
const yyr1355 bool = false
yyq1355[0] = len(x.Command) != 0
var yynn1355 int
if yyr1355 || yy2arr1355 {
r.EncodeArrayStart(1)
} else {
yynn1355 = 0
for _, b := range yyq1355 {
if b {
yynn1355++
}
}
r.EncodeMapStart(yynn1355)
yynn1355 = 0
}
if yyr1355 || yy2arr1355 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1355[0] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1357 := z.EncBinary()
_ = yym1357
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1355[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1358 := z.EncBinary()
_ = yym1358
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1355 || yy2arr1355 {
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
yym1359 := z.DecBinary()
_ = yym1359
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1360 := r.ContainerType()
if yyct1360 == codecSelferValueTypeMap1234 {
yyl1360 := r.ReadMapStart()
if yyl1360 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1360, d)
}
} else if yyct1360 == codecSelferValueTypeArray1234 {
yyl1360 := r.ReadArrayStart()
if yyl1360 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1360, 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 yys1361Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1361Slc
var yyhl1361 bool = l >= 0
for yyj1361 := 0; ; yyj1361++ {
if yyhl1361 {
if yyj1361 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1361Slc = r.DecodeBytes(yys1361Slc, true, true)
yys1361 := string(yys1361Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1361 {
case "command":
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1362 := &x.Command
yym1363 := z.DecBinary()
_ = yym1363
if false {
} else {
z.F.DecSliceStringX(yyv1362, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1361)
} // end switch yys1361
} // end for yyj1361
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 yyj1364 int
var yyb1364 bool
var yyhl1364 bool = l >= 0
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1365 := &x.Command
yym1366 := z.DecBinary()
_ = yym1366
if false {
} else {
z.F.DecSliceStringX(yyv1365, false, d)
}
}
for {
yyj1364++
if yyhl1364 {
yyb1364 = yyj1364 > l
} else {
yyb1364 = r.CheckBreak()
}
if yyb1364 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1364-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Probe) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1367 := z.EncBinary()
_ = yym1367
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1368 := !z.EncBinary()
yy2arr1368 := z.EncBasicHandle().StructToArray
var yyq1368 [8]bool
_, _, _ = yysep1368, yyq1368, yy2arr1368
const yyr1368 bool = false
yyq1368[0] = x.Handler.Exec != nil && x.Exec != nil
yyq1368[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
yyq1368[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
yyq1368[3] = x.InitialDelaySeconds != 0
yyq1368[4] = x.TimeoutSeconds != 0
yyq1368[5] = x.PeriodSeconds != 0
yyq1368[6] = x.SuccessThreshold != 0
yyq1368[7] = x.FailureThreshold != 0
var yynn1368 int
if yyr1368 || yy2arr1368 {
r.EncodeArrayStart(8)
} else {
yynn1368 = 0
for _, b := range yyq1368 {
if b {
yynn1368++
}
}
r.EncodeMapStart(yynn1368)
yynn1368 = 0
}
var yyn1369 bool
if x.Handler.Exec == nil {
yyn1369 = true
goto LABEL1369
}
LABEL1369:
if yyr1368 || yy2arr1368 {
if yyn1369 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1368[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1369 {
r.EncodeNil()
} else {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
}
}
}
var yyn1370 bool
if x.Handler.HTTPGet == nil {
yyn1370 = true
goto LABEL1370
}
LABEL1370:
if yyr1368 || yy2arr1368 {
if yyn1370 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1368[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1370 {
r.EncodeNil()
} else {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
}
}
}
var yyn1371 bool
if x.Handler.TCPSocket == nil {
yyn1371 = true
goto LABEL1371
}
LABEL1371:
if yyr1368 || yy2arr1368 {
if yyn1371 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1368[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1371 {
r.EncodeNil()
} else {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
}
}
}
if yyr1368 || yy2arr1368 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[3] {
yym1373 := z.EncBinary()
_ = yym1373
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1368[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1374 := z.EncBinary()
_ = yym1374
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
}
}
if yyr1368 || yy2arr1368 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[4] {
yym1376 := z.EncBinary()
_ = yym1376
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1368[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1377 := z.EncBinary()
_ = yym1377
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
}
}
if yyr1368 || yy2arr1368 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[5] {
yym1379 := z.EncBinary()
_ = yym1379
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1368[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1380 := z.EncBinary()
_ = yym1380
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
}
}
if yyr1368 || yy2arr1368 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[6] {
yym1382 := z.EncBinary()
_ = yym1382
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1368[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1383 := z.EncBinary()
_ = yym1383
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
}
}
if yyr1368 || yy2arr1368 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1368[7] {
yym1385 := z.EncBinary()
_ = yym1385
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1368[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1386 := z.EncBinary()
_ = yym1386
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
}
}
if yyr1368 || yy2arr1368 {
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
yym1387 := z.DecBinary()
_ = yym1387
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1388 := r.ContainerType()
if yyct1388 == codecSelferValueTypeMap1234 {
yyl1388 := r.ReadMapStart()
if yyl1388 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1388, d)
}
} else if yyct1388 == codecSelferValueTypeArray1234 {
yyl1388 := r.ReadArrayStart()
if yyl1388 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1388, 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 yys1389Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1389Slc
var yyhl1389 bool = l >= 0
for yyj1389 := 0; ; yyj1389++ {
if yyhl1389 {
if yyj1389 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1389Slc = r.DecodeBytes(yys1389Slc, true, true)
yys1389 := string(yys1389Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1389 {
case "exec":
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
if r.TryDecodeAsNil() {
if x.Exec != nil {
x.Exec = nil
}
} else {
if x.Exec == nil {
x.Exec = new(ExecAction)
}
x.Exec.CodecDecodeSelf(d)
}
case "httpGet":
if x.Handler.HTTPGet == nil {
x.Handler.HTTPGet = new(HTTPGetAction)
}
if r.TryDecodeAsNil() {
if x.HTTPGet != nil {
x.HTTPGet = nil
}
} else {
if x.HTTPGet == nil {
x.HTTPGet = new(HTTPGetAction)
}
x.HTTPGet.CodecDecodeSelf(d)
}
case "tcpSocket":
if x.Handler.TCPSocket == nil {
x.Handler.TCPSocket = new(TCPSocketAction)
}
if r.TryDecodeAsNil() {
if x.TCPSocket != nil {
x.TCPSocket = nil
}
} else {
if x.TCPSocket == nil {
x.TCPSocket = new(TCPSocketAction)
}
x.TCPSocket.CodecDecodeSelf(d)
}
case "initialDelaySeconds":
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int32(r.DecodeInt(32))
}
case "timeoutSeconds":
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int32(r.DecodeInt(32))
}
case "periodSeconds":
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int32(r.DecodeInt(32))
}
case "successThreshold":
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int32(r.DecodeInt(32))
}
case "failureThreshold":
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys1389)
} // end switch yys1389
} // end for yyj1389
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 yyj1398 int
var yyb1398 bool
var yyhl1398 bool = l >= 0
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
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)
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
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)
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
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)
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int32(r.DecodeInt(32))
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int32(r.DecodeInt(32))
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int32(r.DecodeInt(32))
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int32(r.DecodeInt(32))
}
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int32(r.DecodeInt(32))
}
for {
yyj1398++
if yyhl1398 {
yyb1398 = yyj1398 > l
} else {
yyb1398 = r.CheckBreak()
}
if yyb1398 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1398-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1407 := z.EncBinary()
_ = yym1407
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
yym1408 := z.DecBinary()
_ = yym1408
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
yym1409 := z.EncBinary()
_ = yym1409
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
yym1410 := z.DecBinary()
_ = yym1410
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 {
yym1411 := z.EncBinary()
_ = yym1411
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1412 := !z.EncBinary()
yy2arr1412 := z.EncBasicHandle().StructToArray
var yyq1412 [2]bool
_, _, _ = yysep1412, yyq1412, yy2arr1412
const yyr1412 bool = false
yyq1412[0] = len(x.Add) != 0
yyq1412[1] = len(x.Drop) != 0
var yynn1412 int
if yyr1412 || yy2arr1412 {
r.EncodeArrayStart(2)
} else {
yynn1412 = 0
for _, b := range yyq1412 {
if b {
yynn1412++
}
}
r.EncodeMapStart(yynn1412)
yynn1412 = 0
}
if yyr1412 || yy2arr1412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1412[0] {
if x.Add == nil {
r.EncodeNil()
} else {
yym1414 := z.EncBinary()
_ = yym1414
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1412[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("add"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Add == nil {
r.EncodeNil()
} else {
yym1415 := z.EncBinary()
_ = yym1415
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
}
}
if yyr1412 || yy2arr1412 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1412[1] {
if x.Drop == nil {
r.EncodeNil()
} else {
yym1417 := z.EncBinary()
_ = yym1417
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1412[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("drop"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Drop == nil {
r.EncodeNil()
} else {
yym1418 := z.EncBinary()
_ = yym1418
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
}
}
if yyr1412 || yy2arr1412 {
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
yym1419 := z.DecBinary()
_ = yym1419
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1420 := r.ContainerType()
if yyct1420 == codecSelferValueTypeMap1234 {
yyl1420 := r.ReadMapStart()
if yyl1420 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1420, d)
}
} else if yyct1420 == codecSelferValueTypeArray1234 {
yyl1420 := r.ReadArrayStart()
if yyl1420 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1420, 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 yys1421Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1421Slc
var yyhl1421 bool = l >= 0
for yyj1421 := 0; ; yyj1421++ {
if yyhl1421 {
if yyj1421 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1421Slc = r.DecodeBytes(yys1421Slc, true, true)
yys1421 := string(yys1421Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1421 {
case "add":
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1422 := &x.Add
yym1423 := z.DecBinary()
_ = yym1423
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1422), d)
}
}
case "drop":
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1424 := &x.Drop
yym1425 := z.DecBinary()
_ = yym1425
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1424), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1421)
} // end switch yys1421
} // end for yyj1421
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 yyj1426 int
var yyb1426 bool
var yyhl1426 bool = l >= 0
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1427 := &x.Add
yym1428 := z.DecBinary()
_ = yym1428
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1427), d)
}
}
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1429 := &x.Drop
yym1430 := z.DecBinary()
_ = yym1430
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1429), d)
}
}
for {
yyj1426++
if yyhl1426 {
yyb1426 = yyj1426 > l
} else {
yyb1426 = r.CheckBreak()
}
if yyb1426 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1426-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1431 := z.EncBinary()
_ = yym1431
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1432 := !z.EncBinary()
yy2arr1432 := z.EncBasicHandle().StructToArray
var yyq1432 [2]bool
_, _, _ = yysep1432, yyq1432, yy2arr1432
const yyr1432 bool = false
yyq1432[0] = len(x.Limits) != 0
yyq1432[1] = len(x.Requests) != 0
var yynn1432 int
if yyr1432 || yy2arr1432 {
r.EncodeArrayStart(2)
} else {
yynn1432 = 0
for _, b := range yyq1432 {
if b {
yynn1432++
}
}
r.EncodeMapStart(yynn1432)
yynn1432 = 0
}
if yyr1432 || yy2arr1432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1432[0] {
if x.Limits == nil {
r.EncodeNil()
} else {
x.Limits.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1432[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 yyr1432 || yy2arr1432 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1432[1] {
if x.Requests == nil {
r.EncodeNil()
} else {
x.Requests.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1432[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 yyr1432 || yy2arr1432 {
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
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 *ResourceRequirements) 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 "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1438 := &x.Limits
yyv1438.CodecDecodeSelf(d)
}
case "requests":
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1439 := &x.Requests
yyv1439.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1437)
} // end switch yys1437
} // end for yyj1437
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 yyj1440 int
var yyb1440 bool
var yyhl1440 bool = l >= 0
yyj1440++
if yyhl1440 {
yyb1440 = yyj1440 > l
} else {
yyb1440 = r.CheckBreak()
}
if yyb1440 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1441 := &x.Limits
yyv1441.CodecDecodeSelf(d)
}
yyj1440++
if yyhl1440 {
yyb1440 = yyj1440 > l
} else {
yyb1440 = r.CheckBreak()
}
if yyb1440 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1442 := &x.Requests
yyv1442.CodecDecodeSelf(d)
}
for {
yyj1440++
if yyhl1440 {
yyb1440 = yyj1440 > l
} else {
yyb1440 = r.CheckBreak()
}
if yyb1440 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1440-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 {
yym1443 := z.EncBinary()
_ = yym1443
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1444 := !z.EncBinary()
yy2arr1444 := z.EncBasicHandle().StructToArray
var yyq1444 [18]bool
_, _, _ = yysep1444, yyq1444, yy2arr1444
const yyr1444 bool = false
yyq1444[2] = len(x.Command) != 0
yyq1444[3] = len(x.Args) != 0
yyq1444[4] = x.WorkingDir != ""
yyq1444[5] = len(x.Ports) != 0
yyq1444[6] = len(x.Env) != 0
yyq1444[7] = true
yyq1444[8] = len(x.VolumeMounts) != 0
yyq1444[9] = x.LivenessProbe != nil
yyq1444[10] = x.ReadinessProbe != nil
yyq1444[11] = x.Lifecycle != nil
yyq1444[12] = x.TerminationMessagePath != ""
yyq1444[14] = x.SecurityContext != nil
yyq1444[15] = x.Stdin != false
yyq1444[16] = x.StdinOnce != false
yyq1444[17] = x.TTY != false
var yynn1444 int
if yyr1444 || yy2arr1444 {
r.EncodeArrayStart(18)
} else {
yynn1444 = 3
for _, b := range yyq1444 {
if b {
yynn1444++
}
}
r.EncodeMapStart(yynn1444)
yynn1444 = 0
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1446 := z.EncBinary()
_ = yym1446
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)
yym1447 := z.EncBinary()
_ = yym1447
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1449 := z.EncBinary()
_ = yym1449
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)
yym1450 := z.EncBinary()
_ = yym1450
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[2] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1452 := z.EncBinary()
_ = yym1452
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1453 := z.EncBinary()
_ = yym1453
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[3] {
if x.Args == nil {
r.EncodeNil()
} else {
yym1455 := z.EncBinary()
_ = yym1455
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("args"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Args == nil {
r.EncodeNil()
} else {
yym1456 := z.EncBinary()
_ = yym1456
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[4] {
yym1458 := z.EncBinary()
_ = yym1458
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1444[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1459 := z.EncBinary()
_ = yym1459
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[5] {
if x.Ports == nil {
r.EncodeNil()
} else {
yym1461 := z.EncBinary()
_ = yym1461
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ports"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1462 := z.EncBinary()
_ = yym1462
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[6] {
if x.Env == nil {
r.EncodeNil()
} else {
yym1464 := z.EncBinary()
_ = yym1464
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("env"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Env == nil {
r.EncodeNil()
} else {
yym1465 := z.EncBinary()
_ = yym1465
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[7] {
yy1467 := &x.Resources
yy1467.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1444[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1468 := &x.Resources
yy1468.CodecEncodeSelf(e)
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[8] {
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1470 := z.EncBinary()
_ = yym1470
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1471 := z.EncBinary()
_ = yym1471
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[9] {
if x.LivenessProbe == nil {
r.EncodeNil()
} else {
x.LivenessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[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 yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[10] {
if x.ReadinessProbe == nil {
r.EncodeNil()
} else {
x.ReadinessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[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 yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[11] {
if x.Lifecycle == nil {
r.EncodeNil()
} else {
x.Lifecycle.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[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 yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[12] {
yym1476 := z.EncBinary()
_ = yym1476
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1444[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1477 := z.EncBinary()
_ = yym1477
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
}
}
if yyr1444 || yy2arr1444 {
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 yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[14] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1444[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 yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[15] {
yym1481 := z.EncBinary()
_ = yym1481
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1444[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1482 := z.EncBinary()
_ = yym1482
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[16] {
yym1484 := z.EncBinary()
_ = yym1484
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1444[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1485 := z.EncBinary()
_ = yym1485
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
}
}
if yyr1444 || yy2arr1444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1444[17] {
yym1487 := z.EncBinary()
_ = yym1487
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1444[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1488 := z.EncBinary()
_ = yym1488
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr1444 || yy2arr1444 {
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
yym1489 := z.DecBinary()
_ = yym1489
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1490 := r.ContainerType()
if yyct1490 == codecSelferValueTypeMap1234 {
yyl1490 := r.ReadMapStart()
if yyl1490 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1490, d)
}
} else if yyct1490 == codecSelferValueTypeArray1234 {
yyl1490 := r.ReadArrayStart()
if yyl1490 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1490, 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 yys1491Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1491Slc
var yyhl1491 bool = l >= 0
for yyj1491 := 0; ; yyj1491++ {
if yyhl1491 {
if yyj1491 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1491Slc = r.DecodeBytes(yys1491Slc, true, true)
yys1491 := string(yys1491Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1491 {
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 {
yyv1494 := &x.Command
yym1495 := z.DecBinary()
_ = yym1495
if false {
} else {
z.F.DecSliceStringX(yyv1494, false, d)
}
}
case "args":
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1496 := &x.Args
yym1497 := z.DecBinary()
_ = yym1497
if false {
} else {
z.F.DecSliceStringX(yyv1496, false, d)
}
}
case "workingDir":
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1499 := &x.Ports
yym1500 := z.DecBinary()
_ = yym1500
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1499), d)
}
}
case "env":
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1501 := &x.Env
yym1502 := z.DecBinary()
_ = yym1502
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1501), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1503 := &x.Resources
yyv1503.CodecDecodeSelf(d)
}
case "volumeMounts":
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1504 := &x.VolumeMounts
yym1505 := z.DecBinary()
_ = yym1505
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1504), 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, yys1491)
} // end switch yys1491
} // end for yyj1491
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 yyj1515 int
var yyb1515 bool
var yyhl1515 bool = l >= 0
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1518 := &x.Command
yym1519 := z.DecBinary()
_ = yym1519
if false {
} else {
z.F.DecSliceStringX(yyv1518, false, d)
}
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1520 := &x.Args
yym1521 := z.DecBinary()
_ = yym1521
if false {
} else {
z.F.DecSliceStringX(yyv1520, false, d)
}
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1523 := &x.Ports
yym1524 := z.DecBinary()
_ = yym1524
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1523), d)
}
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1525 := &x.Env
yym1526 := z.DecBinary()
_ = yym1526
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1525), d)
}
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1527 := &x.Resources
yyv1527.CodecDecodeSelf(d)
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1528 := &x.VolumeMounts
yym1529 := z.DecBinary()
_ = yym1529
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1528), d)
}
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
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)
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
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)
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
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)
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TerminationMessagePath = ""
} else {
x.TerminationMessagePath = string(r.DecodeString())
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullPolicy = ""
} else {
x.ImagePullPolicy = PullPolicy(r.DecodeString())
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
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)
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StdinOnce = false
} else {
x.StdinOnce = bool(r.DecodeBool())
}
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
for {
yyj1515++
if yyhl1515 {
yyb1515 = yyj1515 > l
} else {
yyb1515 = r.CheckBreak()
}
if yyb1515 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1515-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 {
yym1539 := z.EncBinary()
_ = yym1539
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1540 := !z.EncBinary()
yy2arr1540 := z.EncBasicHandle().StructToArray
var yyq1540 [3]bool
_, _, _ = yysep1540, yyq1540, yy2arr1540
const yyr1540 bool = false
yyq1540[0] = x.Exec != nil
yyq1540[1] = x.HTTPGet != nil
yyq1540[2] = x.TCPSocket != nil
var yynn1540 int
if yyr1540 || yy2arr1540 {
r.EncodeArrayStart(3)
} else {
yynn1540 = 0
for _, b := range yyq1540 {
if b {
yynn1540++
}
}
r.EncodeMapStart(yynn1540)
yynn1540 = 0
}
if yyr1540 || yy2arr1540 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1540[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1540[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 yyr1540 || yy2arr1540 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1540[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1540[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 yyr1540 || yy2arr1540 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1540[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1540[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 yyr1540 || yy2arr1540 {
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
yym1544 := z.DecBinary()
_ = yym1544
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1545 := r.ContainerType()
if yyct1545 == codecSelferValueTypeMap1234 {
yyl1545 := r.ReadMapStart()
if yyl1545 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1545, d)
}
} else if yyct1545 == codecSelferValueTypeArray1234 {
yyl1545 := r.ReadArrayStart()
if yyl1545 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1545, 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 yys1546Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1546Slc
var yyhl1546 bool = l >= 0
for yyj1546 := 0; ; yyj1546++ {
if yyhl1546 {
if yyj1546 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1546Slc = r.DecodeBytes(yys1546Slc, true, true)
yys1546 := string(yys1546Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1546 {
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, yys1546)
} // end switch yys1546
} // end for yyj1546
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 yyj1550 int
var yyb1550 bool
var yyhl1550 bool = l >= 0
yyj1550++
if yyhl1550 {
yyb1550 = yyj1550 > l
} else {
yyb1550 = r.CheckBreak()
}
if yyb1550 {
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)
}
yyj1550++
if yyhl1550 {
yyb1550 = yyj1550 > l
} else {
yyb1550 = r.CheckBreak()
}
if yyb1550 {
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)
}
yyj1550++
if yyhl1550 {
yyb1550 = yyj1550 > l
} else {
yyb1550 = r.CheckBreak()
}
if yyb1550 {
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 {
yyj1550++
if yyhl1550 {
yyb1550 = yyj1550 > l
} else {
yyb1550 = r.CheckBreak()
}
if yyb1550 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1550-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 {
yym1554 := z.EncBinary()
_ = yym1554
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1555 := !z.EncBinary()
yy2arr1555 := z.EncBasicHandle().StructToArray
var yyq1555 [2]bool
_, _, _ = yysep1555, yyq1555, yy2arr1555
const yyr1555 bool = false
yyq1555[0] = x.PostStart != nil
yyq1555[1] = x.PreStop != nil
var yynn1555 int
if yyr1555 || yy2arr1555 {
r.EncodeArrayStart(2)
} else {
yynn1555 = 0
for _, b := range yyq1555 {
if b {
yynn1555++
}
}
r.EncodeMapStart(yynn1555)
yynn1555 = 0
}
if yyr1555 || yy2arr1555 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1555[0] {
if x.PostStart == nil {
r.EncodeNil()
} else {
x.PostStart.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1555[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 yyr1555 || yy2arr1555 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1555[1] {
if x.PreStop == nil {
r.EncodeNil()
} else {
x.PreStop.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1555[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 yyr1555 || yy2arr1555 {
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
yym1558 := z.DecBinary()
_ = yym1558
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1559 := r.ContainerType()
if yyct1559 == codecSelferValueTypeMap1234 {
yyl1559 := r.ReadMapStart()
if yyl1559 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1559, d)
}
} else if yyct1559 == codecSelferValueTypeArray1234 {
yyl1559 := r.ReadArrayStart()
if yyl1559 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1559, 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 yys1560Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1560Slc
var yyhl1560 bool = l >= 0
for yyj1560 := 0; ; yyj1560++ {
if yyhl1560 {
if yyj1560 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1560Slc = r.DecodeBytes(yys1560Slc, true, true)
yys1560 := string(yys1560Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1560 {
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, yys1560)
} // end switch yys1560
} // end for yyj1560
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 yyj1563 int
var yyb1563 bool
var yyhl1563 bool = l >= 0
yyj1563++
if yyhl1563 {
yyb1563 = yyj1563 > l
} else {
yyb1563 = r.CheckBreak()
}
if yyb1563 {
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)
}
yyj1563++
if yyhl1563 {
yyb1563 = yyj1563 > l
} else {
yyb1563 = r.CheckBreak()
}
if yyb1563 {
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 {
yyj1563++
if yyhl1563 {
yyb1563 = yyj1563 > l
} else {
yyb1563 = r.CheckBreak()
}
if yyb1563 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1563-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1566 := z.EncBinary()
_ = yym1566
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
yym1567 := z.DecBinary()
_ = yym1567
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 {
yym1568 := z.EncBinary()
_ = yym1568
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1569 := !z.EncBinary()
yy2arr1569 := z.EncBasicHandle().StructToArray
var yyq1569 [2]bool
_, _, _ = yysep1569, yyq1569, yy2arr1569
const yyr1569 bool = false
yyq1569[0] = x.Reason != ""
yyq1569[1] = x.Message != ""
var yynn1569 int
if yyr1569 || yy2arr1569 {
r.EncodeArrayStart(2)
} else {
yynn1569 = 0
for _, b := range yyq1569 {
if b {
yynn1569++
}
}
r.EncodeMapStart(yynn1569)
yynn1569 = 0
}
if yyr1569 || yy2arr1569 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1569[0] {
yym1571 := z.EncBinary()
_ = yym1571
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1569[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1572 := z.EncBinary()
_ = yym1572
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1569 || yy2arr1569 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1569[1] {
yym1574 := z.EncBinary()
_ = yym1574
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1569[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1575 := z.EncBinary()
_ = yym1575
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1569 || yy2arr1569 {
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
yym1576 := z.DecBinary()
_ = yym1576
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1577 := r.ContainerType()
if yyct1577 == codecSelferValueTypeMap1234 {
yyl1577 := r.ReadMapStart()
if yyl1577 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1577, d)
}
} else if yyct1577 == codecSelferValueTypeArray1234 {
yyl1577 := r.ReadArrayStart()
if yyl1577 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1577, 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 yys1578Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1578Slc
var yyhl1578 bool = l >= 0
for yyj1578 := 0; ; yyj1578++ {
if yyhl1578 {
if yyj1578 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1578Slc = r.DecodeBytes(yys1578Slc, true, true)
yys1578 := string(yys1578Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1578 {
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, yys1578)
} // end switch yys1578
} // end for yyj1578
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 yyj1581 int
var yyb1581 bool
var yyhl1581 bool = l >= 0
yyj1581++
if yyhl1581 {
yyb1581 = yyj1581 > l
} else {
yyb1581 = r.CheckBreak()
}
if yyb1581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1581++
if yyhl1581 {
yyb1581 = yyj1581 > l
} else {
yyb1581 = r.CheckBreak()
}
if yyb1581 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1581++
if yyhl1581 {
yyb1581 = yyj1581 > l
} else {
yyb1581 = r.CheckBreak()
}
if yyb1581 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1581-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 {
yym1584 := z.EncBinary()
_ = yym1584
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1585 := !z.EncBinary()
yy2arr1585 := z.EncBasicHandle().StructToArray
var yyq1585 [1]bool
_, _, _ = yysep1585, yyq1585, yy2arr1585
const yyr1585 bool = false
yyq1585[0] = true
var yynn1585 int
if yyr1585 || yy2arr1585 {
r.EncodeArrayStart(1)
} else {
yynn1585 = 0
for _, b := range yyq1585 {
if b {
yynn1585++
}
}
r.EncodeMapStart(yynn1585)
yynn1585 = 0
}
if yyr1585 || yy2arr1585 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1585[0] {
yy1587 := &x.StartedAt
yym1588 := z.EncBinary()
_ = yym1588
if false {
} else if z.HasExtensions() && z.EncExt(yy1587) {
} else if yym1588 {
z.EncBinaryMarshal(yy1587)
} else if !yym1588 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1587)
} else {
z.EncFallback(yy1587)
}
} else {
r.EncodeNil()
}
} else {
if yyq1585[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1589 := &x.StartedAt
yym1590 := z.EncBinary()
_ = yym1590
if false {
} else if z.HasExtensions() && z.EncExt(yy1589) {
} else if yym1590 {
z.EncBinaryMarshal(yy1589)
} else if !yym1590 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1589)
} else {
z.EncFallback(yy1589)
}
}
}
if yyr1585 || yy2arr1585 {
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
yym1591 := z.DecBinary()
_ = yym1591
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1592 := r.ContainerType()
if yyct1592 == codecSelferValueTypeMap1234 {
yyl1592 := r.ReadMapStart()
if yyl1592 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1592, d)
}
} else if yyct1592 == codecSelferValueTypeArray1234 {
yyl1592 := r.ReadArrayStart()
if yyl1592 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1592, 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 yys1593Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1593Slc
var yyhl1593 bool = l >= 0
for yyj1593 := 0; ; yyj1593++ {
if yyhl1593 {
if yyj1593 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1593Slc = r.DecodeBytes(yys1593Slc, true, true)
yys1593 := string(yys1593Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1593 {
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1594 := &x.StartedAt
yym1595 := z.DecBinary()
_ = yym1595
if false {
} else if z.HasExtensions() && z.DecExt(yyv1594) {
} else if yym1595 {
z.DecBinaryUnmarshal(yyv1594)
} else if !yym1595 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1594)
} else {
z.DecFallback(yyv1594, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1593)
} // end switch yys1593
} // end for yyj1593
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 yyj1596 int
var yyb1596 bool
var yyhl1596 bool = l >= 0
yyj1596++
if yyhl1596 {
yyb1596 = yyj1596 > l
} else {
yyb1596 = r.CheckBreak()
}
if yyb1596 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1597 := &x.StartedAt
yym1598 := z.DecBinary()
_ = yym1598
if false {
} else if z.HasExtensions() && z.DecExt(yyv1597) {
} else if yym1598 {
z.DecBinaryUnmarshal(yyv1597)
} else if !yym1598 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1597)
} else {
z.DecFallback(yyv1597, false)
}
}
for {
yyj1596++
if yyhl1596 {
yyb1596 = yyj1596 > l
} else {
yyb1596 = r.CheckBreak()
}
if yyb1596 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1596-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 {
yym1599 := z.EncBinary()
_ = yym1599
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1600 := !z.EncBinary()
yy2arr1600 := z.EncBasicHandle().StructToArray
var yyq1600 [7]bool
_, _, _ = yysep1600, yyq1600, yy2arr1600
const yyr1600 bool = false
yyq1600[1] = x.Signal != 0
yyq1600[2] = x.Reason != ""
yyq1600[3] = x.Message != ""
yyq1600[4] = true
yyq1600[5] = true
yyq1600[6] = x.ContainerID != ""
var yynn1600 int
if yyr1600 || yy2arr1600 {
r.EncodeArrayStart(7)
} else {
yynn1600 = 1
for _, b := range yyq1600 {
if b {
yynn1600++
}
}
r.EncodeMapStart(yynn1600)
yynn1600 = 0
}
if yyr1600 || yy2arr1600 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1602 := z.EncBinary()
_ = yym1602
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1603 := z.EncBinary()
_ = yym1603
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
}
if yyr1600 || yy2arr1600 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1600[1] {
yym1605 := z.EncBinary()
_ = yym1605
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1600[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("signal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1606 := z.EncBinary()
_ = yym1606
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
}
}
if yyr1600 || yy2arr1600 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1600[2] {
yym1608 := z.EncBinary()
_ = yym1608
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1600[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1609 := z.EncBinary()
_ = yym1609
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1600 || yy2arr1600 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1600[3] {
yym1611 := z.EncBinary()
_ = yym1611
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1600[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1612 := z.EncBinary()
_ = yym1612
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1600 || yy2arr1600 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1600[4] {
yy1614 := &x.StartedAt
yym1615 := z.EncBinary()
_ = yym1615
if false {
} else if z.HasExtensions() && z.EncExt(yy1614) {
} else if yym1615 {
z.EncBinaryMarshal(yy1614)
} else if !yym1615 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1614)
} else {
z.EncFallback(yy1614)
}
} else {
r.EncodeNil()
}
} else {
if yyq1600[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1616 := &x.StartedAt
yym1617 := z.EncBinary()
_ = yym1617
if false {
} else if z.HasExtensions() && z.EncExt(yy1616) {
} else if yym1617 {
z.EncBinaryMarshal(yy1616)
} else if !yym1617 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1616)
} else {
z.EncFallback(yy1616)
}
}
}
if yyr1600 || yy2arr1600 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1600[5] {
yy1619 := &x.FinishedAt
yym1620 := z.EncBinary()
_ = yym1620
if false {
} else if z.HasExtensions() && z.EncExt(yy1619) {
} else if yym1620 {
z.EncBinaryMarshal(yy1619)
} else if !yym1620 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1619)
} else {
z.EncFallback(yy1619)
}
} else {
r.EncodeNil()
}
} else {
if yyq1600[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1621 := &x.FinishedAt
yym1622 := z.EncBinary()
_ = yym1622
if false {
} else if z.HasExtensions() && z.EncExt(yy1621) {
} else if yym1622 {
z.EncBinaryMarshal(yy1621)
} else if !yym1622 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1621)
} else {
z.EncFallback(yy1621)
}
}
}
if yyr1600 || yy2arr1600 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1600[6] {
yym1624 := z.EncBinary()
_ = yym1624
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1600[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1625 := z.EncBinary()
_ = yym1625
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1600 || yy2arr1600 {
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
yym1626 := z.DecBinary()
_ = yym1626
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1627 := r.ContainerType()
if yyct1627 == codecSelferValueTypeMap1234 {
yyl1627 := r.ReadMapStart()
if yyl1627 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1627, d)
}
} else if yyct1627 == codecSelferValueTypeArray1234 {
yyl1627 := r.ReadArrayStart()
if yyl1627 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1627, 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 yys1628Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1628Slc
var yyhl1628 bool = l >= 0
for yyj1628 := 0; ; yyj1628++ {
if yyhl1628 {
if yyj1628 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1628Slc = r.DecodeBytes(yys1628Slc, true, true)
yys1628 := string(yys1628Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1628 {
case "exitCode":
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int32(r.DecodeInt(32))
}
case "signal":
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int32(r.DecodeInt(32))
}
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1633 := &x.StartedAt
yym1634 := z.DecBinary()
_ = yym1634
if false {
} else if z.HasExtensions() && z.DecExt(yyv1633) {
} else if yym1634 {
z.DecBinaryUnmarshal(yyv1633)
} else if !yym1634 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1633)
} else {
z.DecFallback(yyv1633, false)
}
}
case "finishedAt":
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1635 := &x.FinishedAt
yym1636 := z.DecBinary()
_ = yym1636
if false {
} else if z.HasExtensions() && z.DecExt(yyv1635) {
} else if yym1636 {
z.DecBinaryUnmarshal(yyv1635)
} else if !yym1636 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1635)
} else {
z.DecFallback(yyv1635, false)
}
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1628)
} // end switch yys1628
} // end for yyj1628
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 yyj1638 int
var yyb1638 bool
var yyhl1638 bool = l >= 0
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int32(r.DecodeInt(32))
}
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int32(r.DecodeInt(32))
}
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1643 := &x.StartedAt
yym1644 := z.DecBinary()
_ = yym1644
if false {
} else if z.HasExtensions() && z.DecExt(yyv1643) {
} else if yym1644 {
z.DecBinaryUnmarshal(yyv1643)
} else if !yym1644 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1643)
} else {
z.DecFallback(yyv1643, false)
}
}
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1645 := &x.FinishedAt
yym1646 := z.DecBinary()
_ = yym1646
if false {
} else if z.HasExtensions() && z.DecExt(yyv1645) {
} else if yym1646 {
z.DecBinaryUnmarshal(yyv1645)
} else if !yym1646 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1645)
} else {
z.DecFallback(yyv1645, false)
}
}
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1638++
if yyhl1638 {
yyb1638 = yyj1638 > l
} else {
yyb1638 = r.CheckBreak()
}
if yyb1638 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1638-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 {
yym1648 := z.EncBinary()
_ = yym1648
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1649 := !z.EncBinary()
yy2arr1649 := z.EncBasicHandle().StructToArray
var yyq1649 [3]bool
_, _, _ = yysep1649, yyq1649, yy2arr1649
const yyr1649 bool = false
yyq1649[0] = x.Waiting != nil
yyq1649[1] = x.Running != nil
yyq1649[2] = x.Terminated != nil
var yynn1649 int
if yyr1649 || yy2arr1649 {
r.EncodeArrayStart(3)
} else {
yynn1649 = 0
for _, b := range yyq1649 {
if b {
yynn1649++
}
}
r.EncodeMapStart(yynn1649)
yynn1649 = 0
}
if yyr1649 || yy2arr1649 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1649[0] {
if x.Waiting == nil {
r.EncodeNil()
} else {
x.Waiting.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1649[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 yyr1649 || yy2arr1649 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1649[1] {
if x.Running == nil {
r.EncodeNil()
} else {
x.Running.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1649[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 yyr1649 || yy2arr1649 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1649[2] {
if x.Terminated == nil {
r.EncodeNil()
} else {
x.Terminated.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1649[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 yyr1649 || yy2arr1649 {
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
yym1653 := z.DecBinary()
_ = yym1653
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1654 := r.ContainerType()
if yyct1654 == codecSelferValueTypeMap1234 {
yyl1654 := r.ReadMapStart()
if yyl1654 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1654, d)
}
} else if yyct1654 == codecSelferValueTypeArray1234 {
yyl1654 := r.ReadArrayStart()
if yyl1654 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1654, 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 yys1655Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1655Slc
var yyhl1655 bool = l >= 0
for yyj1655 := 0; ; yyj1655++ {
if yyhl1655 {
if yyj1655 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1655Slc = r.DecodeBytes(yys1655Slc, true, true)
yys1655 := string(yys1655Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1655 {
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, yys1655)
} // end switch yys1655
} // end for yyj1655
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 yyj1659 int
var yyb1659 bool
var yyhl1659 bool = l >= 0
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Waiting != nil {
x.Waiting = nil
}
} else {
if x.Waiting == nil {
x.Waiting = new(ContainerStateWaiting)
}
x.Waiting.CodecDecodeSelf(d)
}
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
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)
}
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
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 {
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1659-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1663 := z.EncBinary()
_ = yym1663
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1664 := !z.EncBinary()
yy2arr1664 := z.EncBasicHandle().StructToArray
var yyq1664 [8]bool
_, _, _ = yysep1664, yyq1664, yy2arr1664
const yyr1664 bool = false
yyq1664[1] = true
yyq1664[2] = true
yyq1664[7] = x.ContainerID != ""
var yynn1664 int
if yyr1664 || yy2arr1664 {
r.EncodeArrayStart(8)
} else {
yynn1664 = 5
for _, b := range yyq1664 {
if b {
yynn1664++
}
}
r.EncodeMapStart(yynn1664)
yynn1664 = 0
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1666 := z.EncBinary()
_ = yym1666
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)
yym1667 := z.EncBinary()
_ = yym1667
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1664[1] {
yy1669 := &x.State
yy1669.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1664[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("state"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1670 := &x.State
yy1670.CodecEncodeSelf(e)
}
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1664[2] {
yy1672 := &x.LastTerminationState
yy1672.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1664[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1673 := &x.LastTerminationState
yy1673.CodecEncodeSelf(e)
}
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1675 := z.EncBinary()
_ = yym1675
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ready"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1676 := z.EncBinary()
_ = yym1676
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1678 := z.EncBinary()
_ = yym1678
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1679 := z.EncBinary()
_ = yym1679
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1681 := z.EncBinary()
_ = yym1681
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)
yym1682 := z.EncBinary()
_ = yym1682
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1684 := z.EncBinary()
_ = yym1684
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)
yym1685 := z.EncBinary()
_ = yym1685
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
}
}
if yyr1664 || yy2arr1664 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1664[7] {
yym1687 := z.EncBinary()
_ = yym1687
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1664[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1688 := z.EncBinary()
_ = yym1688
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1664 || yy2arr1664 {
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
yym1689 := z.DecBinary()
_ = yym1689
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1690 := r.ContainerType()
if yyct1690 == codecSelferValueTypeMap1234 {
yyl1690 := r.ReadMapStart()
if yyl1690 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1690, d)
}
} else if yyct1690 == codecSelferValueTypeArray1234 {
yyl1690 := r.ReadArrayStart()
if yyl1690 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1690, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1691Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1691Slc
var yyhl1691 bool = l >= 0
for yyj1691 := 0; ; yyj1691++ {
if yyhl1691 {
if yyj1691 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1691Slc = r.DecodeBytes(yys1691Slc, true, true)
yys1691 := string(yys1691Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1691 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "state":
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1693 := &x.State
yyv1693.CodecDecodeSelf(d)
}
case "lastState":
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1694 := &x.LastTerminationState
yyv1694.CodecDecodeSelf(d)
}
case "ready":
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
case "restartCount":
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int32(r.DecodeInt(32))
}
case "image":
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
case "imageID":
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1691)
} // end switch yys1691
} // end for yyj1691
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 yyj1700 int
var yyb1700 bool
var yyhl1700 bool = l >= 0
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1702 := &x.State
yyv1702.CodecDecodeSelf(d)
}
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1703 := &x.LastTerminationState
yyv1703.CodecDecodeSelf(d)
}
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int32(r.DecodeInt(32))
}
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1700++
if yyhl1700 {
yyb1700 = yyj1700 > l
} else {
yyb1700 = r.CheckBreak()
}
if yyb1700 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1700-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1709 := z.EncBinary()
_ = yym1709
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
yym1710 := z.DecBinary()
_ = yym1710
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
yym1711 := z.EncBinary()
_ = yym1711
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
yym1712 := z.DecBinary()
_ = yym1712
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 {
yym1713 := z.EncBinary()
_ = yym1713
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1714 := !z.EncBinary()
yy2arr1714 := z.EncBasicHandle().StructToArray
var yyq1714 [6]bool
_, _, _ = yysep1714, yyq1714, yy2arr1714
const yyr1714 bool = false
yyq1714[2] = true
yyq1714[3] = true
yyq1714[4] = x.Reason != ""
yyq1714[5] = x.Message != ""
var yynn1714 int
if yyr1714 || yy2arr1714 {
r.EncodeArrayStart(6)
} else {
yynn1714 = 2
for _, b := range yyq1714 {
if b {
yynn1714++
}
}
r.EncodeMapStart(yynn1714)
yynn1714 = 0
}
if yyr1714 || yy2arr1714 {
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 yyr1714 || yy2arr1714 {
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 yyr1714 || yy2arr1714 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1714[2] {
yy1718 := &x.LastProbeTime
yym1719 := z.EncBinary()
_ = yym1719
if false {
} else if z.HasExtensions() && z.EncExt(yy1718) {
} else if yym1719 {
z.EncBinaryMarshal(yy1718)
} else if !yym1719 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1718)
} else {
z.EncFallback(yy1718)
}
} else {
r.EncodeNil()
}
} else {
if yyq1714[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1720 := &x.LastProbeTime
yym1721 := z.EncBinary()
_ = yym1721
if false {
} else if z.HasExtensions() && z.EncExt(yy1720) {
} else if yym1721 {
z.EncBinaryMarshal(yy1720)
} else if !yym1721 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1720)
} else {
z.EncFallback(yy1720)
}
}
}
if yyr1714 || yy2arr1714 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1714[3] {
yy1723 := &x.LastTransitionTime
yym1724 := z.EncBinary()
_ = yym1724
if false {
} else if z.HasExtensions() && z.EncExt(yy1723) {
} else if yym1724 {
z.EncBinaryMarshal(yy1723)
} else if !yym1724 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1723)
} else {
z.EncFallback(yy1723)
}
} else {
r.EncodeNil()
}
} else {
if yyq1714[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1725 := &x.LastTransitionTime
yym1726 := z.EncBinary()
_ = yym1726
if false {
} else if z.HasExtensions() && z.EncExt(yy1725) {
} else if yym1726 {
z.EncBinaryMarshal(yy1725)
} else if !yym1726 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1725)
} else {
z.EncFallback(yy1725)
}
}
}
if yyr1714 || yy2arr1714 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1714[4] {
yym1728 := z.EncBinary()
_ = yym1728
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1714[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1729 := z.EncBinary()
_ = yym1729
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1714 || yy2arr1714 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1714[5] {
yym1731 := z.EncBinary()
_ = yym1731
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1714[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1732 := z.EncBinary()
_ = yym1732
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1714 || yy2arr1714 {
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
yym1733 := z.DecBinary()
_ = yym1733
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1734 := r.ContainerType()
if yyct1734 == codecSelferValueTypeMap1234 {
yyl1734 := r.ReadMapStart()
if yyl1734 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1734, d)
}
} else if yyct1734 == codecSelferValueTypeArray1234 {
yyl1734 := r.ReadArrayStart()
if yyl1734 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1734, 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 yys1735Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1735Slc
var yyhl1735 bool = l >= 0
for yyj1735 := 0; ; yyj1735++ {
if yyhl1735 {
if yyj1735 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1735Slc = r.DecodeBytes(yys1735Slc, true, true)
yys1735 := string(yys1735Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1735 {
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 {
yyv1738 := &x.LastProbeTime
yym1739 := z.DecBinary()
_ = yym1739
if false {
} else if z.HasExtensions() && z.DecExt(yyv1738) {
} else if yym1739 {
z.DecBinaryUnmarshal(yyv1738)
} else if !yym1739 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1738)
} else {
z.DecFallback(yyv1738, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1740 := &x.LastTransitionTime
yym1741 := z.DecBinary()
_ = yym1741
if false {
} else if z.HasExtensions() && z.DecExt(yyv1740) {
} else if yym1741 {
z.DecBinaryUnmarshal(yyv1740)
} else if !yym1741 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1740)
} else {
z.DecFallback(yyv1740, 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, yys1735)
} // end switch yys1735
} // end for yyj1735
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 yyj1744 int
var yyb1744 bool
var yyhl1744 bool = l >= 0
yyj1744++
if yyhl1744 {
yyb1744 = yyj1744 > l
} else {
yyb1744 = r.CheckBreak()
}
if yyb1744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = PodConditionType(r.DecodeString())
}
yyj1744++
if yyhl1744 {
yyb1744 = yyj1744 > l
} else {
yyb1744 = r.CheckBreak()
}
if yyb1744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj1744++
if yyhl1744 {
yyb1744 = yyj1744 > l
} else {
yyb1744 = r.CheckBreak()
}
if yyb1744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg2_unversioned.Time{}
} else {
yyv1747 := &x.LastProbeTime
yym1748 := z.DecBinary()
_ = yym1748
if false {
} else if z.HasExtensions() && z.DecExt(yyv1747) {
} else if yym1748 {
z.DecBinaryUnmarshal(yyv1747)
} else if !yym1748 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1747)
} else {
z.DecFallback(yyv1747, false)
}
}
yyj1744++
if yyhl1744 {
yyb1744 = yyj1744 > l
} else {
yyb1744 = r.CheckBreak()
}
if yyb1744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1749 := &x.LastTransitionTime
yym1750 := z.DecBinary()
_ = yym1750
if false {
} else if z.HasExtensions() && z.DecExt(yyv1749) {
} else if yym1750 {
z.DecBinaryUnmarshal(yyv1749)
} else if !yym1750 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1749)
} else {
z.DecFallback(yyv1749, false)
}
}
yyj1744++
if yyhl1744 {
yyb1744 = yyj1744 > l
} else {
yyb1744 = r.CheckBreak()
}
if yyb1744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1744++
if yyhl1744 {
yyb1744 = yyj1744 > l
} else {
yyb1744 = r.CheckBreak()
}
if yyb1744 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1744++
if yyhl1744 {
yyb1744 = yyj1744 > l
} else {
yyb1744 = r.CheckBreak()
}
if yyb1744 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1744-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1753 := z.EncBinary()
_ = yym1753
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
yym1754 := z.DecBinary()
_ = yym1754
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 {
yym1755 := z.EncBinary()
_ = yym1755
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1756 := !z.EncBinary()
yy2arr1756 := z.EncBasicHandle().StructToArray
var yyq1756 [4]bool
_, _, _ = yysep1756, yyq1756, yy2arr1756
const yyr1756 bool = false
yyq1756[0] = x.Kind != ""
yyq1756[1] = x.APIVersion != ""
yyq1756[2] = true
var yynn1756 int
if yyr1756 || yy2arr1756 {
r.EncodeArrayStart(4)
} else {
yynn1756 = 1
for _, b := range yyq1756 {
if b {
yynn1756++
}
}
r.EncodeMapStart(yynn1756)
yynn1756 = 0
}
if yyr1756 || yy2arr1756 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1756[0] {
yym1758 := z.EncBinary()
_ = yym1758
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1756[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1759 := z.EncBinary()
_ = yym1759
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1756 || yy2arr1756 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1756[1] {
yym1761 := z.EncBinary()
_ = yym1761
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1756[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1762 := z.EncBinary()
_ = yym1762
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1756 || yy2arr1756 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1756[2] {
yy1764 := &x.ListMeta
yym1765 := z.EncBinary()
_ = yym1765
if false {
} else if z.HasExtensions() && z.EncExt(yy1764) {
} else {
z.EncFallback(yy1764)
}
} else {
r.EncodeNil()
}
} else {
if yyq1756[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1766 := &x.ListMeta
yym1767 := z.EncBinary()
_ = yym1767
if false {
} else if z.HasExtensions() && z.EncExt(yy1766) {
} else {
z.EncFallback(yy1766)
}
}
}
if yyr1756 || yy2arr1756 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1769 := z.EncBinary()
_ = yym1769
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 {
yym1770 := z.EncBinary()
_ = yym1770
if false {
} else {
h.encSlicePod(([]Pod)(x.Items), e)
}
}
}
if yyr1756 || yy2arr1756 {
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
yym1771 := z.DecBinary()
_ = yym1771
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1772 := r.ContainerType()
if yyct1772 == codecSelferValueTypeMap1234 {
yyl1772 := r.ReadMapStart()
if yyl1772 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1772, d)
}
} else if yyct1772 == codecSelferValueTypeArray1234 {
yyl1772 := r.ReadArrayStart()
if yyl1772 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1772, 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 yys1773Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1773Slc
var yyhl1773 bool = l >= 0
for yyj1773 := 0; ; yyj1773++ {
if yyhl1773 {
if yyj1773 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1773Slc = r.DecodeBytes(yys1773Slc, true, true)
yys1773 := string(yys1773Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1773 {
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 {
yyv1776 := &x.ListMeta
yym1777 := z.DecBinary()
_ = yym1777
if false {
} else if z.HasExtensions() && z.DecExt(yyv1776) {
} else {
z.DecFallback(yyv1776, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1778 := &x.Items
yym1779 := z.DecBinary()
_ = yym1779
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1778), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1773)
} // end switch yys1773
} // end for yyj1773
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 yyj1780 int
var yyb1780 bool
var yyhl1780 bool = l >= 0
yyj1780++
if yyhl1780 {
yyb1780 = yyj1780 > l
} else {
yyb1780 = r.CheckBreak()
}
if yyb1780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1780++
if yyhl1780 {
yyb1780 = yyj1780 > l
} else {
yyb1780 = r.CheckBreak()
}
if yyb1780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1780++
if yyhl1780 {
yyb1780 = yyj1780 > l
} else {
yyb1780 = r.CheckBreak()
}
if yyb1780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1783 := &x.ListMeta
yym1784 := z.DecBinary()
_ = yym1784
if false {
} else if z.HasExtensions() && z.DecExt(yyv1783) {
} else {
z.DecFallback(yyv1783, false)
}
}
yyj1780++
if yyhl1780 {
yyb1780 = yyj1780 > l
} else {
yyb1780 = r.CheckBreak()
}
if yyb1780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1785 := &x.Items
yym1786 := z.DecBinary()
_ = yym1786
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1785), d)
}
}
for {
yyj1780++
if yyhl1780 {
yyb1780 = yyj1780 > l
} else {
yyb1780 = r.CheckBreak()
}
if yyb1780 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1780-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1787 := z.EncBinary()
_ = yym1787
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
yym1788 := z.DecBinary()
_ = yym1788
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *NodeSelector) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1789 := z.EncBinary()
_ = yym1789
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1790 := !z.EncBinary()
yy2arr1790 := z.EncBasicHandle().StructToArray
var yyq1790 [1]bool
_, _, _ = yysep1790, yyq1790, yy2arr1790
const yyr1790 bool = false
var yynn1790 int
if yyr1790 || yy2arr1790 {
r.EncodeArrayStart(1)
} else {
yynn1790 = 1
for _, b := range yyq1790 {
if b {
yynn1790++
}
}
r.EncodeMapStart(yynn1790)
yynn1790 = 0
}
if yyr1790 || yy2arr1790 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NodeSelectorTerms == nil {
r.EncodeNil()
} else {
yym1792 := z.EncBinary()
_ = yym1792
if false {
} else {
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelectorTerms"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelectorTerms == nil {
r.EncodeNil()
} else {
yym1793 := z.EncBinary()
_ = yym1793
if false {
} else {
h.encSliceNodeSelectorTerm(([]NodeSelectorTerm)(x.NodeSelectorTerms), e)
}
}
}
if yyr1790 || yy2arr1790 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeSelector) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1794 := z.DecBinary()
_ = yym1794
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1795 := r.ContainerType()
if yyct1795 == codecSelferValueTypeMap1234 {
yyl1795 := r.ReadMapStart()
if yyl1795 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1795, d)
}
} else if yyct1795 == codecSelferValueTypeArray1234 {
yyl1795 := r.ReadArrayStart()
if yyl1795 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1795, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeSelector) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1796Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1796Slc
var yyhl1796 bool = l >= 0
for yyj1796 := 0; ; yyj1796++ {
if yyhl1796 {
if yyj1796 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1796Slc = r.DecodeBytes(yys1796Slc, true, true)
yys1796 := string(yys1796Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1796 {
case "nodeSelectorTerms":
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1797 := &x.NodeSelectorTerms
yym1798 := z.DecBinary()
_ = yym1798
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1797), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1796)
} // end switch yys1796
} // end for yyj1796
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeSelector) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1799 int
var yyb1799 bool
var yyhl1799 bool = l >= 0
yyj1799++
if yyhl1799 {
yyb1799 = yyj1799 > l
} else {
yyb1799 = r.CheckBreak()
}
if yyb1799 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelectorTerms = nil
} else {
yyv1800 := &x.NodeSelectorTerms
yym1801 := z.DecBinary()
_ = yym1801
if false {
} else {
h.decSliceNodeSelectorTerm((*[]NodeSelectorTerm)(yyv1800), d)
}
}
for {
yyj1799++
if yyhl1799 {
yyb1799 = yyj1799 > l
} else {
yyb1799 = r.CheckBreak()
}
if yyb1799 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1799-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeSelectorTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1802 := z.EncBinary()
_ = yym1802
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1803 := !z.EncBinary()
yy2arr1803 := z.EncBasicHandle().StructToArray
var yyq1803 [1]bool
_, _, _ = yysep1803, yyq1803, yy2arr1803
const yyr1803 bool = false
var yynn1803 int
if yyr1803 || yy2arr1803 {
r.EncodeArrayStart(1)
} else {
yynn1803 = 1
for _, b := range yyq1803 {
if b {
yynn1803++
}
}
r.EncodeMapStart(yynn1803)
yynn1803 = 0
}
if yyr1803 || yy2arr1803 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.MatchExpressions == nil {
r.EncodeNil()
} else {
yym1805 := z.EncBinary()
_ = yym1805
if false {
} else {
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("matchExpressions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.MatchExpressions == nil {
r.EncodeNil()
} else {
yym1806 := z.EncBinary()
_ = yym1806
if false {
} else {
h.encSliceNodeSelectorRequirement(([]NodeSelectorRequirement)(x.MatchExpressions), e)
}
}
}
if yyr1803 || yy2arr1803 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeSelectorTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1807 := z.DecBinary()
_ = yym1807
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1808 := r.ContainerType()
if yyct1808 == codecSelferValueTypeMap1234 {
yyl1808 := r.ReadMapStart()
if yyl1808 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1808, d)
}
} else if yyct1808 == codecSelferValueTypeArray1234 {
yyl1808 := r.ReadArrayStart()
if yyl1808 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1808, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeSelectorTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1809Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1809Slc
var yyhl1809 bool = l >= 0
for yyj1809 := 0; ; yyj1809++ {
if yyhl1809 {
if yyj1809 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1809Slc = r.DecodeBytes(yys1809Slc, true, true)
yys1809 := string(yys1809Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1809 {
case "matchExpressions":
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1810 := &x.MatchExpressions
yym1811 := z.DecBinary()
_ = yym1811
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1810), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1809)
} // end switch yys1809
} // end for yyj1809
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeSelectorTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1812 int
var yyb1812 bool
var yyhl1812 bool = l >= 0
yyj1812++
if yyhl1812 {
yyb1812 = yyj1812 > l
} else {
yyb1812 = r.CheckBreak()
}
if yyb1812 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MatchExpressions = nil
} else {
yyv1813 := &x.MatchExpressions
yym1814 := z.DecBinary()
_ = yym1814
if false {
} else {
h.decSliceNodeSelectorRequirement((*[]NodeSelectorRequirement)(yyv1813), d)
}
}
for {
yyj1812++
if yyhl1812 {
yyb1812 = yyj1812 > l
} else {
yyb1812 = r.CheckBreak()
}
if yyb1812 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1812-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeSelectorRequirement) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1815 := z.EncBinary()
_ = yym1815
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1816 := !z.EncBinary()
yy2arr1816 := z.EncBasicHandle().StructToArray
var yyq1816 [3]bool
_, _, _ = yysep1816, yyq1816, yy2arr1816
const yyr1816 bool = false
yyq1816[2] = len(x.Values) != 0
var yynn1816 int
if yyr1816 || yy2arr1816 {
r.EncodeArrayStart(3)
} else {
yynn1816 = 2
for _, b := range yyq1816 {
if b {
yynn1816++
}
}
r.EncodeMapStart(yynn1816)
yynn1816 = 0
}
if yyr1816 || yy2arr1816 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1818 := z.EncBinary()
_ = yym1818
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)
yym1819 := z.EncBinary()
_ = yym1819
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1816 || yy2arr1816 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Operator.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("operator"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Operator.CodecEncodeSelf(e)
}
if yyr1816 || yy2arr1816 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1816[2] {
if x.Values == nil {
r.EncodeNil()
} else {
yym1822 := z.EncBinary()
_ = yym1822
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1816[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("values"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Values == nil {
r.EncodeNil()
} else {
yym1823 := z.EncBinary()
_ = yym1823
if false {
} else {
z.F.EncSliceStringV(x.Values, false, e)
}
}
}
}
if yyr1816 || yy2arr1816 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeSelectorRequirement) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1824 := z.DecBinary()
_ = yym1824
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1825 := r.ContainerType()
if yyct1825 == codecSelferValueTypeMap1234 {
yyl1825 := r.ReadMapStart()
if yyl1825 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1825, d)
}
} else if yyct1825 == codecSelferValueTypeArray1234 {
yyl1825 := r.ReadArrayStart()
if yyl1825 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1825, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeSelectorRequirement) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1826Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1826Slc
var yyhl1826 bool = l >= 0
for yyj1826 := 0; ; yyj1826++ {
if yyhl1826 {
if yyj1826 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1826Slc = r.DecodeBytes(yys1826Slc, true, true)
yys1826 := string(yys1826Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1826 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "operator":
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = NodeSelectorOperator(r.DecodeString())
}
case "values":
if r.TryDecodeAsNil() {
x.Values = nil
} else {
yyv1829 := &x.Values
yym1830 := z.DecBinary()
_ = yym1830
if false {
} else {
z.F.DecSliceStringX(yyv1829, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1826)
} // end switch yys1826
} // end for yyj1826
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeSelectorRequirement) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1831 int
var yyb1831 bool
var yyhl1831 bool = l >= 0
yyj1831++
if yyhl1831 {
yyb1831 = yyj1831 > l
} else {
yyb1831 = r.CheckBreak()
}
if yyb1831 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1831++
if yyhl1831 {
yyb1831 = yyj1831 > l
} else {
yyb1831 = r.CheckBreak()
}
if yyb1831 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = NodeSelectorOperator(r.DecodeString())
}
yyj1831++
if yyhl1831 {
yyb1831 = yyj1831 > l
} else {
yyb1831 = r.CheckBreak()
}
if yyb1831 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Values = nil
} else {
yyv1834 := &x.Values
yym1835 := z.DecBinary()
_ = yym1835
if false {
} else {
z.F.DecSliceStringX(yyv1834, false, d)
}
}
for {
yyj1831++
if yyhl1831 {
yyb1831 = yyj1831 > l
} else {
yyb1831 = r.CheckBreak()
}
if yyb1831 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1831-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeSelectorOperator) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1836 := z.EncBinary()
_ = yym1836
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *NodeSelectorOperator) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1837 := z.DecBinary()
_ = yym1837
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *Affinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1838 := z.EncBinary()
_ = yym1838
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1839 := !z.EncBinary()
yy2arr1839 := z.EncBasicHandle().StructToArray
var yyq1839 [3]bool
_, _, _ = yysep1839, yyq1839, yy2arr1839
const yyr1839 bool = false
yyq1839[0] = x.NodeAffinity != nil
yyq1839[1] = x.PodAffinity != nil
yyq1839[2] = x.PodAntiAffinity != nil
var yynn1839 int
if yyr1839 || yy2arr1839 {
r.EncodeArrayStart(3)
} 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] {
if x.NodeAffinity == nil {
r.EncodeNil()
} else {
x.NodeAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1839[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeAffinity == nil {
r.EncodeNil()
} else {
x.NodeAffinity.CodecEncodeSelf(e)
}
}
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1839[1] {
if x.PodAffinity == nil {
r.EncodeNil()
} else {
x.PodAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1839[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PodAffinity == nil {
r.EncodeNil()
} else {
x.PodAffinity.CodecEncodeSelf(e)
}
}
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1839[2] {
if x.PodAntiAffinity == nil {
r.EncodeNil()
} else {
x.PodAntiAffinity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1839[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podAntiAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PodAntiAffinity == nil {
r.EncodeNil()
} else {
x.PodAntiAffinity.CodecEncodeSelf(e)
}
}
}
if yyr1839 || yy2arr1839 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Affinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1843 := z.DecBinary()
_ = yym1843
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1844 := r.ContainerType()
if yyct1844 == codecSelferValueTypeMap1234 {
yyl1844 := r.ReadMapStart()
if yyl1844 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1844, d)
}
} else if yyct1844 == codecSelferValueTypeArray1234 {
yyl1844 := r.ReadArrayStart()
if yyl1844 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1844, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Affinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1845Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1845Slc
var yyhl1845 bool = l >= 0
for yyj1845 := 0; ; yyj1845++ {
if yyhl1845 {
if yyj1845 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1845Slc = r.DecodeBytes(yys1845Slc, true, true)
yys1845 := string(yys1845Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1845 {
case "nodeAffinity":
if r.TryDecodeAsNil() {
if x.NodeAffinity != nil {
x.NodeAffinity = nil
}
} else {
if x.NodeAffinity == nil {
x.NodeAffinity = new(NodeAffinity)
}
x.NodeAffinity.CodecDecodeSelf(d)
}
case "podAffinity":
if r.TryDecodeAsNil() {
if x.PodAffinity != nil {
x.PodAffinity = nil
}
} else {
if x.PodAffinity == nil {
x.PodAffinity = new(PodAffinity)
}
x.PodAffinity.CodecDecodeSelf(d)
}
case "podAntiAffinity":
if r.TryDecodeAsNil() {
if x.PodAntiAffinity != nil {
x.PodAntiAffinity = nil
}
} else {
if x.PodAntiAffinity == nil {
x.PodAntiAffinity = new(PodAntiAffinity)
}
x.PodAntiAffinity.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1845)
} // end switch yys1845
} // end for yyj1845
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Affinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1849 int
var yyb1849 bool
var yyhl1849 bool = l >= 0
yyj1849++
if yyhl1849 {
yyb1849 = yyj1849 > l
} else {
yyb1849 = r.CheckBreak()
}
if yyb1849 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NodeAffinity != nil {
x.NodeAffinity = nil
}
} else {
if x.NodeAffinity == nil {
x.NodeAffinity = new(NodeAffinity)
}
x.NodeAffinity.CodecDecodeSelf(d)
}
yyj1849++
if yyhl1849 {
yyb1849 = yyj1849 > l
} else {
yyb1849 = r.CheckBreak()
}
if yyb1849 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PodAffinity != nil {
x.PodAffinity = nil
}
} else {
if x.PodAffinity == nil {
x.PodAffinity = new(PodAffinity)
}
x.PodAffinity.CodecDecodeSelf(d)
}
yyj1849++
if yyhl1849 {
yyb1849 = yyj1849 > l
} else {
yyb1849 = r.CheckBreak()
}
if yyb1849 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PodAntiAffinity != nil {
x.PodAntiAffinity = nil
}
} else {
if x.PodAntiAffinity == nil {
x.PodAntiAffinity = new(PodAntiAffinity)
}
x.PodAntiAffinity.CodecDecodeSelf(d)
}
for {
yyj1849++
if yyhl1849 {
yyb1849 = yyj1849 > l
} else {
yyb1849 = r.CheckBreak()
}
if yyb1849 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1849-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1853 := z.EncBinary()
_ = yym1853
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1854 := !z.EncBinary()
yy2arr1854 := z.EncBasicHandle().StructToArray
var yyq1854 [2]bool
_, _, _ = yysep1854, yyq1854, yy2arr1854
const yyr1854 bool = false
yyq1854[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
yyq1854[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1854 int
if yyr1854 || yy2arr1854 {
r.EncodeArrayStart(2)
} else {
yynn1854 = 0
for _, b := range yyq1854 {
if b {
yynn1854++
}
}
r.EncodeMapStart(yynn1854)
yynn1854 = 0
}
if yyr1854 || yy2arr1854 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1854[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1856 := z.EncBinary()
_ = yym1856
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1854[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1857 := z.EncBinary()
_ = yym1857
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1854 || yy2arr1854 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1854[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1859 := z.EncBinary()
_ = yym1859
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1854[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1860 := z.EncBinary()
_ = yym1860
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1854 || yy2arr1854 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1861 := z.DecBinary()
_ = yym1861
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1862 := r.ContainerType()
if yyct1862 == codecSelferValueTypeMap1234 {
yyl1862 := r.ReadMapStart()
if yyl1862 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1862, d)
}
} else if yyct1862 == codecSelferValueTypeArray1234 {
yyl1862 := r.ReadArrayStart()
if yyl1862 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1862, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1863Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1863Slc
var yyhl1863 bool = l >= 0
for yyj1863 := 0; ; yyj1863++ {
if yyhl1863 {
if yyj1863 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1863Slc = r.DecodeBytes(yys1863Slc, true, true)
yys1863 := string(yys1863Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1863 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1864 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1865 := z.DecBinary()
_ = yym1865
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1864), d)
}
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1866 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1867 := z.DecBinary()
_ = yym1867
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1866), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1863)
} // end switch yys1863
} // end for yyj1863
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1868 int
var yyb1868 bool
var yyhl1868 bool = l >= 0
yyj1868++
if yyhl1868 {
yyb1868 = yyj1868 > l
} else {
yyb1868 = r.CheckBreak()
}
if yyb1868 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1869 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1870 := z.DecBinary()
_ = yym1870
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1869), d)
}
}
yyj1868++
if yyhl1868 {
yyb1868 = yyj1868 > l
} else {
yyb1868 = r.CheckBreak()
}
if yyb1868 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1871 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1872 := z.DecBinary()
_ = yym1872
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1871), d)
}
}
for {
yyj1868++
if yyhl1868 {
yyb1868 = yyj1868 > l
} else {
yyb1868 = r.CheckBreak()
}
if yyb1868 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1868-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAntiAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1873 := z.EncBinary()
_ = yym1873
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1874 := !z.EncBinary()
yy2arr1874 := z.EncBasicHandle().StructToArray
var yyq1874 [2]bool
_, _, _ = yysep1874, yyq1874, yy2arr1874
const yyr1874 bool = false
yyq1874[0] = len(x.RequiredDuringSchedulingIgnoredDuringExecution) != 0
yyq1874[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1874 int
if yyr1874 || yy2arr1874 {
r.EncodeArrayStart(2)
} else {
yynn1874 = 0
for _, b := range yyq1874 {
if b {
yynn1874++
}
}
r.EncodeMapStart(yynn1874)
yynn1874 = 0
}
if yyr1874 || yy2arr1874 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1874[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1876 := z.EncBinary()
_ = yym1876
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1874[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1877 := z.EncBinary()
_ = yym1877
if false {
} else {
h.encSlicePodAffinityTerm(([]PodAffinityTerm)(x.RequiredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1874 || yy2arr1874 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1874[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1879 := z.EncBinary()
_ = yym1879
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1874[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1880 := z.EncBinary()
_ = yym1880
if false {
} else {
h.encSliceWeightedPodAffinityTerm(([]WeightedPodAffinityTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1874 || yy2arr1874 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodAntiAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1881 := z.DecBinary()
_ = yym1881
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1882 := r.ContainerType()
if yyct1882 == codecSelferValueTypeMap1234 {
yyl1882 := r.ReadMapStart()
if yyl1882 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1882, d)
}
} else if yyct1882 == codecSelferValueTypeArray1234 {
yyl1882 := r.ReadArrayStart()
if yyl1882 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1882, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodAntiAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1883Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1883Slc
var yyhl1883 bool = l >= 0
for yyj1883 := 0; ; yyj1883++ {
if yyhl1883 {
if yyj1883 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1883Slc = r.DecodeBytes(yys1883Slc, true, true)
yys1883 := string(yys1883Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1883 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1884 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1885 := z.DecBinary()
_ = yym1885
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1884), d)
}
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1886 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1887 := z.DecBinary()
_ = yym1887
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1886), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1883)
} // end switch yys1883
} // end for yyj1883
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodAntiAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1888 int
var yyb1888 bool
var yyhl1888 bool = l >= 0
yyj1888++
if yyhl1888 {
yyb1888 = yyj1888 > l
} else {
yyb1888 = r.CheckBreak()
}
if yyb1888 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1889 := &x.RequiredDuringSchedulingIgnoredDuringExecution
yym1890 := z.DecBinary()
_ = yym1890
if false {
} else {
h.decSlicePodAffinityTerm((*[]PodAffinityTerm)(yyv1889), d)
}
}
yyj1888++
if yyhl1888 {
yyb1888 = yyj1888 > l
} else {
yyb1888 = r.CheckBreak()
}
if yyb1888 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1891 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1892 := z.DecBinary()
_ = yym1892
if false {
} else {
h.decSliceWeightedPodAffinityTerm((*[]WeightedPodAffinityTerm)(yyv1891), d)
}
}
for {
yyj1888++
if yyhl1888 {
yyb1888 = yyj1888 > l
} else {
yyb1888 = r.CheckBreak()
}
if yyb1888 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1888-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *WeightedPodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1893 := z.EncBinary()
_ = yym1893
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1894 := !z.EncBinary()
yy2arr1894 := z.EncBasicHandle().StructToArray
var yyq1894 [2]bool
_, _, _ = yysep1894, yyq1894, yy2arr1894
const yyr1894 bool = false
var yynn1894 int
if yyr1894 || yy2arr1894 {
r.EncodeArrayStart(2)
} else {
yynn1894 = 2
for _, b := range yyq1894 {
if b {
yynn1894++
}
}
r.EncodeMapStart(yynn1894)
yynn1894 = 0
}
if yyr1894 || yy2arr1894 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1896 := z.EncBinary()
_ = yym1896
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("weight"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1897 := z.EncBinary()
_ = yym1897
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
}
if yyr1894 || yy2arr1894 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1899 := &x.PodAffinityTerm
yy1899.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podAffinityTerm"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1900 := &x.PodAffinityTerm
yy1900.CodecEncodeSelf(e)
}
if yyr1894 || yy2arr1894 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *WeightedPodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1901 := z.DecBinary()
_ = yym1901
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1902 := r.ContainerType()
if yyct1902 == codecSelferValueTypeMap1234 {
yyl1902 := r.ReadMapStart()
if yyl1902 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1902, d)
}
} else if yyct1902 == codecSelferValueTypeArray1234 {
yyl1902 := r.ReadArrayStart()
if yyl1902 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1902, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *WeightedPodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1903Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1903Slc
var yyhl1903 bool = l >= 0
for yyj1903 := 0; ; yyj1903++ {
if yyhl1903 {
if yyj1903 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1903Slc = r.DecodeBytes(yys1903Slc, true, true)
yys1903 := string(yys1903Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1903 {
case "weight":
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
case "podAffinityTerm":
if r.TryDecodeAsNil() {
x.PodAffinityTerm = PodAffinityTerm{}
} else {
yyv1905 := &x.PodAffinityTerm
yyv1905.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1903)
} // end switch yys1903
} // end for yyj1903
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *WeightedPodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1906 int
var yyb1906 bool
var yyhl1906 bool = l >= 0
yyj1906++
if yyhl1906 {
yyb1906 = yyj1906 > l
} else {
yyb1906 = r.CheckBreak()
}
if yyb1906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1906++
if yyhl1906 {
yyb1906 = yyj1906 > l
} else {
yyb1906 = r.CheckBreak()
}
if yyb1906 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodAffinityTerm = PodAffinityTerm{}
} else {
yyv1908 := &x.PodAffinityTerm
yyv1908.CodecDecodeSelf(d)
}
for {
yyj1906++
if yyhl1906 {
yyb1906 = yyj1906 > l
} else {
yyb1906 = r.CheckBreak()
}
if yyb1906 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1906-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAffinityTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1909 := z.EncBinary()
_ = yym1909
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1910 := !z.EncBinary()
yy2arr1910 := z.EncBasicHandle().StructToArray
var yyq1910 [3]bool
_, _, _ = yysep1910, yyq1910, yy2arr1910
const yyr1910 bool = false
yyq1910[0] = x.LabelSelector != nil
yyq1910[2] = x.TopologyKey != ""
var yynn1910 int
if yyr1910 || yy2arr1910 {
r.EncodeArrayStart(3)
} else {
yynn1910 = 1
for _, b := range yyq1910 {
if b {
yynn1910++
}
}
r.EncodeMapStart(yynn1910)
yynn1910 = 0
}
if yyr1910 || yy2arr1910 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1910[0] {
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym1912 := z.EncBinary()
_ = yym1912
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1910[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("labelSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym1913 := z.EncBinary()
_ = yym1913
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
}
if yyr1910 || yy2arr1910 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Namespaces == nil {
r.EncodeNil()
} else {
yym1915 := z.EncBinary()
_ = yym1915
if false {
} else {
z.F.EncSliceStringV(x.Namespaces, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespaces"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Namespaces == nil {
r.EncodeNil()
} else {
yym1916 := z.EncBinary()
_ = yym1916
if false {
} else {
z.F.EncSliceStringV(x.Namespaces, false, e)
}
}
}
if yyr1910 || yy2arr1910 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1910[2] {
yym1918 := z.EncBinary()
_ = yym1918
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1910[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("topologyKey"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1919 := z.EncBinary()
_ = yym1919
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TopologyKey))
}
}
}
if yyr1910 || yy2arr1910 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodAffinityTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1920 := z.DecBinary()
_ = yym1920
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1921 := r.ContainerType()
if yyct1921 == codecSelferValueTypeMap1234 {
yyl1921 := r.ReadMapStart()
if yyl1921 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1921, d)
}
} else if yyct1921 == codecSelferValueTypeArray1234 {
yyl1921 := r.ReadArrayStart()
if yyl1921 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1921, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodAffinityTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1922Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1922Slc
var yyhl1922 bool = l >= 0
for yyj1922 := 0; ; yyj1922++ {
if yyhl1922 {
if yyj1922 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1922Slc = r.DecodeBytes(yys1922Slc, true, true)
yys1922 := string(yys1922Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1922 {
case "labelSelector":
if r.TryDecodeAsNil() {
if x.LabelSelector != nil {
x.LabelSelector = nil
}
} else {
if x.LabelSelector == nil {
x.LabelSelector = new(pkg2_unversioned.LabelSelector)
}
yym1924 := z.DecBinary()
_ = yym1924
if false {
} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
} else {
z.DecFallback(x.LabelSelector, false)
}
}
case "namespaces":
if r.TryDecodeAsNil() {
x.Namespaces = nil
} else {
yyv1925 := &x.Namespaces
yym1926 := z.DecBinary()
_ = yym1926
if false {
} else {
z.F.DecSliceStringX(yyv1925, false, d)
}
}
case "topologyKey":
if r.TryDecodeAsNil() {
x.TopologyKey = ""
} else {
x.TopologyKey = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1922)
} // end switch yys1922
} // end for yyj1922
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodAffinityTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1928 int
var yyb1928 bool
var yyhl1928 bool = l >= 0
yyj1928++
if yyhl1928 {
yyb1928 = yyj1928 > l
} else {
yyb1928 = r.CheckBreak()
}
if yyb1928 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.LabelSelector != nil {
x.LabelSelector = nil
}
} else {
if x.LabelSelector == nil {
x.LabelSelector = new(pkg2_unversioned.LabelSelector)
}
yym1930 := z.DecBinary()
_ = yym1930
if false {
} else if z.HasExtensions() && z.DecExt(x.LabelSelector) {
} else {
z.DecFallback(x.LabelSelector, false)
}
}
yyj1928++
if yyhl1928 {
yyb1928 = yyj1928 > l
} else {
yyb1928 = r.CheckBreak()
}
if yyb1928 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespaces = nil
} else {
yyv1931 := &x.Namespaces
yym1932 := z.DecBinary()
_ = yym1932
if false {
} else {
z.F.DecSliceStringX(yyv1931, false, d)
}
}
yyj1928++
if yyhl1928 {
yyb1928 = yyj1928 > l
} else {
yyb1928 = r.CheckBreak()
}
if yyb1928 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TopologyKey = ""
} else {
x.TopologyKey = string(r.DecodeString())
}
for {
yyj1928++
if yyhl1928 {
yyb1928 = yyj1928 > l
} else {
yyb1928 = r.CheckBreak()
}
if yyb1928 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1928-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1934 := z.EncBinary()
_ = yym1934
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1935 := !z.EncBinary()
yy2arr1935 := z.EncBasicHandle().StructToArray
var yyq1935 [2]bool
_, _, _ = yysep1935, yyq1935, yy2arr1935
const yyr1935 bool = false
yyq1935[0] = x.RequiredDuringSchedulingIgnoredDuringExecution != nil
yyq1935[1] = len(x.PreferredDuringSchedulingIgnoredDuringExecution) != 0
var yynn1935 int
if yyr1935 || yy2arr1935 {
r.EncodeArrayStart(2)
} else {
yynn1935 = 0
for _, b := range yyq1935 {
if b {
yynn1935++
}
}
r.EncodeMapStart(yynn1935)
yynn1935 = 0
}
if yyr1935 || yy2arr1935 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1935[0] {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1935[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("requiredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecEncodeSelf(e)
}
}
}
if yyr1935 || yy2arr1935 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1935[1] {
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1938 := z.EncBinary()
_ = yym1938
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1935[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferredDuringSchedulingIgnoredDuringExecution"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferredDuringSchedulingIgnoredDuringExecution == nil {
r.EncodeNil()
} else {
yym1939 := z.EncBinary()
_ = yym1939
if false {
} else {
h.encSlicePreferredSchedulingTerm(([]PreferredSchedulingTerm)(x.PreferredDuringSchedulingIgnoredDuringExecution), e)
}
}
}
}
if yyr1935 || yy2arr1935 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeAffinity) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1940 := z.DecBinary()
_ = yym1940
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1941 := r.ContainerType()
if yyct1941 == codecSelferValueTypeMap1234 {
yyl1941 := r.ReadMapStart()
if yyl1941 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1941, d)
}
} else if yyct1941 == codecSelferValueTypeArray1234 {
yyl1941 := r.ReadArrayStart()
if yyl1941 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1941, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeAffinity) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1942Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1942Slc
var yyhl1942 bool = l >= 0
for yyj1942 := 0; ; yyj1942++ {
if yyhl1942 {
if yyj1942 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1942Slc = r.DecodeBytes(yys1942Slc, true, true)
yys1942 := string(yys1942Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1942 {
case "requiredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
}
case "preferredDuringSchedulingIgnoredDuringExecution":
if r.TryDecodeAsNil() {
x.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1944 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1945 := z.DecBinary()
_ = yym1945
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1944), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1942)
} // end switch yys1942
} // end for yyj1942
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeAffinity) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var 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() {
if x.RequiredDuringSchedulingIgnoredDuringExecution != nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = nil
}
} else {
if x.RequiredDuringSchedulingIgnoredDuringExecution == nil {
x.RequiredDuringSchedulingIgnoredDuringExecution = new(NodeSelector)
}
x.RequiredDuringSchedulingIgnoredDuringExecution.CodecDecodeSelf(d)
}
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.PreferredDuringSchedulingIgnoredDuringExecution = nil
} else {
yyv1948 := &x.PreferredDuringSchedulingIgnoredDuringExecution
yym1949 := z.DecBinary()
_ = yym1949
if false {
} else {
h.decSlicePreferredSchedulingTerm((*[]PreferredSchedulingTerm)(yyv1948), 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 *PreferredSchedulingTerm) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1950 := z.EncBinary()
_ = yym1950
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1951 := !z.EncBinary()
yy2arr1951 := z.EncBasicHandle().StructToArray
var yyq1951 [2]bool
_, _, _ = yysep1951, yyq1951, yy2arr1951
const yyr1951 bool = false
var yynn1951 int
if yyr1951 || yy2arr1951 {
r.EncodeArrayStart(2)
} else {
yynn1951 = 2
for _, b := range yyq1951 {
if b {
yynn1951++
}
}
r.EncodeMapStart(yynn1951)
yynn1951 = 0
}
if yyr1951 || yy2arr1951 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1953 := z.EncBinary()
_ = yym1953
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("weight"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1954 := z.EncBinary()
_ = yym1954
if false {
} else {
r.EncodeInt(int64(x.Weight))
}
}
if yyr1951 || yy2arr1951 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1956 := &x.Preference
yy1956.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1957 := &x.Preference
yy1957.CodecEncodeSelf(e)
}
if yyr1951 || yy2arr1951 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PreferredSchedulingTerm) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1958 := z.DecBinary()
_ = yym1958
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1959 := r.ContainerType()
if yyct1959 == codecSelferValueTypeMap1234 {
yyl1959 := r.ReadMapStart()
if yyl1959 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1959, d)
}
} else if yyct1959 == codecSelferValueTypeArray1234 {
yyl1959 := r.ReadArrayStart()
if yyl1959 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1959, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PreferredSchedulingTerm) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1960Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1960Slc
var yyhl1960 bool = l >= 0
for yyj1960 := 0; ; yyj1960++ {
if yyhl1960 {
if yyj1960 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1960Slc = r.DecodeBytes(yys1960Slc, true, true)
yys1960 := string(yys1960Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1960 {
case "weight":
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int32(r.DecodeInt(32))
}
case "preference":
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv1962 := &x.Preference
yyv1962.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1960)
} // end switch yys1960
} // end for yyj1960
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PreferredSchedulingTerm) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1963 int
var yyb1963 bool
var yyhl1963 bool = l >= 0
yyj1963++
if yyhl1963 {
yyb1963 = yyj1963 > l
} else {
yyb1963 = r.CheckBreak()
}
if yyb1963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Weight = 0
} else {
x.Weight = int32(r.DecodeInt(32))
}
yyj1963++
if yyhl1963 {
yyb1963 = yyj1963 > l
} else {
yyb1963 = r.CheckBreak()
}
if yyb1963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Preference = NodeSelectorTerm{}
} else {
yyv1965 := &x.Preference
yyv1965.CodecDecodeSelf(d)
}
for {
yyj1963++
if yyhl1963 {
yyb1963 = yyj1963 > l
} else {
yyb1963 = r.CheckBreak()
}
if yyb1963 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1963-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Taint) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1966 := z.EncBinary()
_ = yym1966
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1967 := !z.EncBinary()
yy2arr1967 := z.EncBasicHandle().StructToArray
var yyq1967 [3]bool
_, _, _ = yysep1967, yyq1967, yy2arr1967
const yyr1967 bool = false
yyq1967[1] = x.Value != ""
var yynn1967 int
if yyr1967 || yy2arr1967 {
r.EncodeArrayStart(3)
} else {
yynn1967 = 2
for _, b := range yyq1967 {
if b {
yynn1967++
}
}
r.EncodeMapStart(yynn1967)
yynn1967 = 0
}
if yyr1967 || yy2arr1967 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1969 := z.EncBinary()
_ = yym1969
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)
yym1970 := z.EncBinary()
_ = yym1970
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
if yyr1967 || yy2arr1967 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1967[1] {
yym1972 := z.EncBinary()
_ = yym1972
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1967[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1973 := z.EncBinary()
_ = yym1973
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr1967 || yy2arr1967 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Effect.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("effect"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Effect.CodecEncodeSelf(e)
}
if yyr1967 || yy2arr1967 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Taint) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1975 := z.DecBinary()
_ = yym1975
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1976 := r.ContainerType()
if yyct1976 == codecSelferValueTypeMap1234 {
yyl1976 := r.ReadMapStart()
if yyl1976 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1976, d)
}
} else if yyct1976 == codecSelferValueTypeArray1234 {
yyl1976 := r.ReadArrayStart()
if yyl1976 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1976, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Taint) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1977Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1977Slc
var yyhl1977 bool = l >= 0
for yyj1977 := 0; ; yyj1977++ {
if yyhl1977 {
if yyj1977 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1977Slc = r.DecodeBytes(yys1977Slc, true, true)
yys1977 := string(yys1977Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1977 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
case "effect":
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1977)
} // end switch yys1977
} // end for yyj1977
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Taint) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj1981 int
var yyb1981 bool
var yyhl1981 bool = l >= 0
yyj1981++
if yyhl1981 {
yyb1981 = yyj1981 > l
} else {
yyb1981 = r.CheckBreak()
}
if yyb1981 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj1981++
if yyhl1981 {
yyb1981 = yyj1981 > l
} else {
yyb1981 = r.CheckBreak()
}
if yyb1981 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj1981++
if yyhl1981 {
yyb1981 = yyj1981 > l
} else {
yyb1981 = r.CheckBreak()
}
if yyb1981 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
for {
yyj1981++
if yyhl1981 {
yyb1981 = yyj1981 > l
} else {
yyb1981 = r.CheckBreak()
}
if yyb1981 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1981-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x TaintEffect) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1985 := z.EncBinary()
_ = yym1985
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *TaintEffect) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1986 := z.DecBinary()
_ = yym1986
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *Toleration) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1987 := z.EncBinary()
_ = yym1987
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1988 := !z.EncBinary()
yy2arr1988 := z.EncBasicHandle().StructToArray
var yyq1988 [4]bool
_, _, _ = yysep1988, yyq1988, yy2arr1988
const yyr1988 bool = false
yyq1988[0] = x.Key != ""
yyq1988[1] = x.Operator != ""
yyq1988[2] = x.Value != ""
yyq1988[3] = x.Effect != ""
var yynn1988 int
if yyr1988 || yy2arr1988 {
r.EncodeArrayStart(4)
} else {
yynn1988 = 0
for _, b := range yyq1988 {
if b {
yynn1988++
}
}
r.EncodeMapStart(yynn1988)
yynn1988 = 0
}
if yyr1988 || yy2arr1988 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1988[0] {
yym1990 := z.EncBinary()
_ = yym1990
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1988[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("key"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1991 := z.EncBinary()
_ = yym1991
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Key))
}
}
}
if yyr1988 || yy2arr1988 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1988[1] {
x.Operator.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1988[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("operator"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Operator.CodecEncodeSelf(e)
}
}
if yyr1988 || yy2arr1988 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1988[2] {
yym1994 := z.EncBinary()
_ = yym1994
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1988[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1995 := z.EncBinary()
_ = yym1995
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr1988 || yy2arr1988 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1988[3] {
x.Effect.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1988[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("effect"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Effect.CodecEncodeSelf(e)
}
}
if yyr1988 || yy2arr1988 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Toleration) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym1997 := z.DecBinary()
_ = yym1997
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1998 := r.ContainerType()
if yyct1998 == codecSelferValueTypeMap1234 {
yyl1998 := r.ReadMapStart()
if yyl1998 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1998, d)
}
} else if yyct1998 == codecSelferValueTypeArray1234 {
yyl1998 := r.ReadArrayStart()
if yyl1998 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1998, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Toleration) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1999Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1999Slc
var yyhl1999 bool = l >= 0
for yyj1999 := 0; ; yyj1999++ {
if yyhl1999 {
if yyj1999 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1999Slc = r.DecodeBytes(yys1999Slc, true, true)
yys1999 := string(yys1999Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1999 {
case "key":
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
case "operator":
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = TolerationOperator(r.DecodeString())
}
case "value":
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
case "effect":
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1999)
} // end switch yys1999
} // end for yyj1999
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Toleration) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj2004 int
var yyb2004 bool
var yyhl2004 bool = l >= 0
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Key = ""
} else {
x.Key = string(r.DecodeString())
}
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Operator = ""
} else {
x.Operator = TolerationOperator(r.DecodeString())
}
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Effect = ""
} else {
x.Effect = TaintEffect(r.DecodeString())
}
for {
yyj2004++
if yyhl2004 {
yyb2004 = yyj2004 > l
} else {
yyb2004 = r.CheckBreak()
}
if yyb2004 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2004-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x TolerationOperator) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2009 := z.EncBinary()
_ = yym2009
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *TolerationOperator) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym2010 := z.DecBinary()
_ = yym2010
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 {
yym2011 := z.EncBinary()
_ = yym2011
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2012 := !z.EncBinary()
yy2arr2012 := z.EncBasicHandle().StructToArray
var yyq2012 [13]bool
_, _, _ = yysep2012, yyq2012, yy2arr2012
const yyr2012 bool = false
yyq2012[2] = x.RestartPolicy != ""
yyq2012[3] = x.TerminationGracePeriodSeconds != nil
yyq2012[4] = x.ActiveDeadlineSeconds != nil
yyq2012[5] = x.DNSPolicy != ""
yyq2012[6] = len(x.NodeSelector) != 0
yyq2012[8] = x.NodeName != ""
yyq2012[9] = x.SecurityContext != nil
yyq2012[10] = len(x.ImagePullSecrets) != 0
yyq2012[11] = x.Hostname != ""
yyq2012[12] = x.Subdomain != ""
var yynn2012 int
if yyr2012 || yy2arr2012 {
r.EncodeArrayStart(13)
} else {
yynn2012 = 3
for _, b := range yyq2012 {
if b {
yynn2012++
}
}
r.EncodeMapStart(yynn2012)
yynn2012 = 0
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Volumes == nil {
r.EncodeNil()
} else {
yym2014 := z.EncBinary()
_ = yym2014
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 {
yym2015 := z.EncBinary()
_ = yym2015
if false {
} else {
h.encSliceVolume(([]Volume)(x.Volumes), e)
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Containers == nil {
r.EncodeNil()
} else {
yym2017 := z.EncBinary()
_ = yym2017
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 {
yym2018 := z.EncBinary()
_ = yym2018
if false {
} else {
h.encSliceContainer(([]Container)(x.Containers), e)
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[2] {
x.RestartPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2012[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.RestartPolicy.CodecEncodeSelf(e)
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[3] {
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2021 := *x.TerminationGracePeriodSeconds
yym2022 := z.EncBinary()
_ = yym2022
if false {
} else {
r.EncodeInt(int64(yy2021))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2012[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2023 := *x.TerminationGracePeriodSeconds
yym2024 := z.EncBinary()
_ = yym2024
if false {
} else {
r.EncodeInt(int64(yy2023))
}
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[4] {
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy2026 := *x.ActiveDeadlineSeconds
yym2027 := z.EncBinary()
_ = yym2027
if false {
} else {
r.EncodeInt(int64(yy2026))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2012[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy2028 := *x.ActiveDeadlineSeconds
yym2029 := z.EncBinary()
_ = yym2029
if false {
} else {
r.EncodeInt(int64(yy2028))
}
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[5] {
x.DNSPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2012[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.DNSPolicy.CodecEncodeSelf(e)
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[6] {
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym2032 := z.EncBinary()
_ = yym2032
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2012[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym2033 := z.EncBinary()
_ = yym2033
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2035 := z.EncBinary()
_ = yym2035
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)
yym2036 := z.EncBinary()
_ = yym2036
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[8] {
yym2038 := z.EncBinary()
_ = yym2038
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2012[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2039 := z.EncBinary()
_ = yym2039
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[9] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2012[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 yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[10] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2042 := z.EncBinary()
_ = yym2042
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2012[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2043 := z.EncBinary()
_ = yym2043
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[11] {
yym2045 := z.EncBinary()
_ = yym2045
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2012[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2046 := z.EncBinary()
_ = yym2046
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2012 || yy2arr2012 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2012[12] {
yym2048 := z.EncBinary()
_ = yym2048
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2012[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("subdomain"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2049 := z.EncBinary()
_ = yym2049
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Subdomain))
}
}
}
if yyr2012 || yy2arr2012 {
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
yym2050 := z.DecBinary()
_ = yym2050
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2051 := r.ContainerType()
if yyct2051 == codecSelferValueTypeMap1234 {
yyl2051 := r.ReadMapStart()
if yyl2051 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2051, d)
}
} else if yyct2051 == codecSelferValueTypeArray1234 {
yyl2051 := r.ReadArrayStart()
if yyl2051 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2051, 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 yys2052Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2052Slc
var yyhl2052 bool = l >= 0
for yyj2052 := 0; ; yyj2052++ {
if yyhl2052 {
if yyj2052 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2052Slc = r.DecodeBytes(yys2052Slc, true, true)
yys2052 := string(yys2052Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2052 {
case "volumes":
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv2053 := &x.Volumes
yym2054 := z.DecBinary()
_ = yym2054
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv2053), d)
}
}
case "containers":
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv2055 := &x.Containers
yym2056 := z.DecBinary()
_ = yym2056
if false {
} else {
h.decSliceContainer((*[]Container)(yyv2055), 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)
}
yym2059 := z.DecBinary()
_ = yym2059
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)
}
yym2061 := z.DecBinary()
_ = yym2061
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 {
yyv2063 := &x.NodeSelector
yym2064 := z.DecBinary()
_ = yym2064
if false {
} else {
z.F.DecMapStringStringX(yyv2063, 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 {
yyv2068 := &x.ImagePullSecrets
yym2069 := z.DecBinary()
_ = yym2069
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2068), d)
}
}
case "hostname":
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
case "subdomain":
if r.TryDecodeAsNil() {
x.Subdomain = ""
} else {
x.Subdomain = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2052)
} // end switch yys2052
} // end for yyj2052
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 yyj2072 int
var yyb2072 bool
var yyhl2072 bool = l >= 0
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv2073 := &x.Volumes
yym2074 := z.DecBinary()
_ = yym2074
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv2073), d)
}
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv2075 := &x.Containers
yym2076 := z.DecBinary()
_ = yym2076
if false {
} else {
h.decSliceContainer((*[]Container)(yyv2075), d)
}
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartPolicy = ""
} else {
x.RestartPolicy = RestartPolicy(r.DecodeString())
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.TerminationGracePeriodSeconds != nil {
x.TerminationGracePeriodSeconds = nil
}
} else {
if x.TerminationGracePeriodSeconds == nil {
x.TerminationGracePeriodSeconds = new(int64)
}
yym2079 := z.DecBinary()
_ = yym2079
if false {
} else {
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
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)
}
yym2081 := z.DecBinary()
_ = yym2081
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DNSPolicy = ""
} else {
x.DNSPolicy = DNSPolicy(r.DecodeString())
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelector = nil
} else {
yyv2083 := &x.NodeSelector
yym2084 := z.DecBinary()
_ = yym2084
if false {
} else {
z.F.DecMapStringStringX(yyv2083, false, d)
}
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServiceAccountName = ""
} else {
x.ServiceAccountName = string(r.DecodeString())
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeName = ""
} else {
x.NodeName = string(r.DecodeString())
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecurityContext != nil {
x.SecurityContext = nil
}
} else {
if x.SecurityContext == nil {
x.SecurityContext = new(PodSecurityContext)
}
x.SecurityContext.CodecDecodeSelf(d)
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2088 := &x.ImagePullSecrets
yym2089 := z.DecBinary()
_ = yym2089
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2088), d)
}
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subdomain = ""
} else {
x.Subdomain = string(r.DecodeString())
}
for {
yyj2072++
if yyhl2072 {
yyb2072 = yyj2072 > l
} else {
yyb2072 = r.CheckBreak()
}
if yyb2072 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2072-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2092 := z.EncBinary()
_ = yym2092
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2093 := !z.EncBinary()
yy2arr2093 := z.EncBasicHandle().StructToArray
var yyq2093 [8]bool
_, _, _ = yysep2093, yyq2093, yy2arr2093
const yyr2093 bool = false
yyq2093[0] = x.HostNetwork != false
yyq2093[1] = x.HostPID != false
yyq2093[2] = x.HostIPC != false
yyq2093[3] = x.SELinuxOptions != nil
yyq2093[4] = x.RunAsUser != nil
yyq2093[5] = x.RunAsNonRoot != nil
yyq2093[6] = len(x.SupplementalGroups) != 0
yyq2093[7] = x.FSGroup != nil
var yynn2093 int
if yyr2093 || yy2arr2093 {
r.EncodeArrayStart(8)
} else {
yynn2093 = 0
for _, b := range yyq2093 {
if b {
yynn2093++
}
}
r.EncodeMapStart(yynn2093)
yynn2093 = 0
}
if yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[0] {
yym2095 := z.EncBinary()
_ = yym2095
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2093[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2096 := z.EncBinary()
_ = yym2096
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
}
}
if yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[1] {
yym2098 := z.EncBinary()
_ = yym2098
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2093[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2099 := z.EncBinary()
_ = yym2099
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
}
}
if yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[2] {
yym2101 := z.EncBinary()
_ = yym2101
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2093[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2102 := z.EncBinary()
_ = yym2102
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
}
}
if yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[3] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2093[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 yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[4] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy2105 := *x.RunAsUser
yym2106 := z.EncBinary()
_ = yym2106
if false {
} else {
r.EncodeInt(int64(yy2105))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2093[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy2107 := *x.RunAsUser
yym2108 := z.EncBinary()
_ = yym2108
if false {
} else {
r.EncodeInt(int64(yy2107))
}
}
}
}
if yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[5] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy2110 := *x.RunAsNonRoot
yym2111 := z.EncBinary()
_ = yym2111
if false {
} else {
r.EncodeBool(bool(yy2110))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2093[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy2112 := *x.RunAsNonRoot
yym2113 := z.EncBinary()
_ = yym2113
if false {
} else {
r.EncodeBool(bool(yy2112))
}
}
}
}
if yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[6] {
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym2115 := z.EncBinary()
_ = yym2115
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2093[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym2116 := z.EncBinary()
_ = yym2116
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
}
}
if yyr2093 || yy2arr2093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2093[7] {
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy2118 := *x.FSGroup
yym2119 := z.EncBinary()
_ = yym2119
if false {
} else {
r.EncodeInt(int64(yy2118))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2093[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy2120 := *x.FSGroup
yym2121 := z.EncBinary()
_ = yym2121
if false {
} else {
r.EncodeInt(int64(yy2120))
}
}
}
}
if yyr2093 || yy2arr2093 {
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
yym2122 := z.DecBinary()
_ = yym2122
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2123 := r.ContainerType()
if yyct2123 == codecSelferValueTypeMap1234 {
yyl2123 := r.ReadMapStart()
if yyl2123 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2123, d)
}
} else if yyct2123 == codecSelferValueTypeArray1234 {
yyl2123 := r.ReadArrayStart()
if yyl2123 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2123, 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 yys2124Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2124Slc
var yyhl2124 bool = l >= 0
for yyj2124 := 0; ; yyj2124++ {
if yyhl2124 {
if yyj2124 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2124Slc = r.DecodeBytes(yys2124Slc, true, true)
yys2124 := string(yys2124Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2124 {
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)
}
yym2130 := z.DecBinary()
_ = yym2130
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)
}
yym2132 := z.DecBinary()
_ = yym2132
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "supplementalGroups":
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv2133 := &x.SupplementalGroups
yym2134 := z.DecBinary()
_ = yym2134
if false {
} else {
z.F.DecSliceInt64X(yyv2133, false, d)
}
}
case "fsGroup":
if r.TryDecodeAsNil() {
if x.FSGroup != nil {
x.FSGroup = nil
}
} else {
if x.FSGroup == nil {
x.FSGroup = new(int64)
}
yym2136 := z.DecBinary()
_ = yym2136
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2124)
} // end switch yys2124
} // end for yyj2124
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 yyj2137 int
var yyb2137 bool
var yyhl2137 bool = l >= 0
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPID = false
} else {
x.HostPID = bool(r.DecodeBool())
}
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIPC = false
} else {
x.HostIPC = bool(r.DecodeBool())
}
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
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)
}
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
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)
}
yym2143 := z.DecBinary()
_ = yym2143
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
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)
}
yym2145 := z.DecBinary()
_ = yym2145
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv2146 := &x.SupplementalGroups
yym2147 := z.DecBinary()
_ = yym2147
if false {
} else {
z.F.DecSliceInt64X(yyv2146, false, d)
}
}
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
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)
}
yym2149 := z.DecBinary()
_ = yym2149
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
for {
yyj2137++
if yyhl2137 {
yyb2137 = yyj2137 > l
} else {
yyb2137 = r.CheckBreak()
}
if yyb2137 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2137-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 {
yym2150 := z.EncBinary()
_ = yym2150
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2151 := !z.EncBinary()
yy2arr2151 := z.EncBasicHandle().StructToArray
var yyq2151 [8]bool
_, _, _ = yysep2151, yyq2151, yy2arr2151
const yyr2151 bool = false
yyq2151[0] = x.Phase != ""
yyq2151[1] = len(x.Conditions) != 0
yyq2151[2] = x.Message != ""
yyq2151[3] = x.Reason != ""
yyq2151[4] = x.HostIP != ""
yyq2151[5] = x.PodIP != ""
yyq2151[6] = x.StartTime != nil
yyq2151[7] = len(x.ContainerStatuses) != 0
var yynn2151 int
if yyr2151 || yy2arr2151 {
r.EncodeArrayStart(8)
} else {
yynn2151 = 0
for _, b := range yyq2151 {
if b {
yynn2151++
}
}
r.EncodeMapStart(yynn2151)
yynn2151 = 0
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2151[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[1] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2154 := z.EncBinary()
_ = yym2154
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2155 := z.EncBinary()
_ = yym2155
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[2] {
yym2157 := z.EncBinary()
_ = yym2157
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2151[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2158 := z.EncBinary()
_ = yym2158
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[3] {
yym2160 := z.EncBinary()
_ = yym2160
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2151[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2161 := z.EncBinary()
_ = yym2161
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[4] {
yym2163 := z.EncBinary()
_ = yym2163
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2151[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2164 := z.EncBinary()
_ = yym2164
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[5] {
yym2166 := z.EncBinary()
_ = yym2166
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2151[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2167 := z.EncBinary()
_ = yym2167
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[6] {
if x.StartTime == nil {
r.EncodeNil()
} else {
yym2169 := z.EncBinary()
_ = yym2169
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym2169 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym2169 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.StartTime == nil {
r.EncodeNil()
} else {
yym2170 := z.EncBinary()
_ = yym2170
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym2170 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym2170 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
}
}
if yyr2151 || yy2arr2151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2151[7] {
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym2172 := z.EncBinary()
_ = yym2172
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2151[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym2173 := z.EncBinary()
_ = yym2173
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
}
}
if yyr2151 || yy2arr2151 {
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
yym2174 := z.DecBinary()
_ = yym2174
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2175 := r.ContainerType()
if yyct2175 == codecSelferValueTypeMap1234 {
yyl2175 := r.ReadMapStart()
if yyl2175 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2175, d)
}
} else if yyct2175 == codecSelferValueTypeArray1234 {
yyl2175 := r.ReadArrayStart()
if yyl2175 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2175, 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 yys2176Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2176Slc
var yyhl2176 bool = l >= 0
for yyj2176 := 0; ; yyj2176++ {
if yyhl2176 {
if yyj2176 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2176Slc = r.DecodeBytes(yys2176Slc, true, true)
yys2176 := string(yys2176Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2176 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2178 := &x.Conditions
yym2179 := z.DecBinary()
_ = yym2179
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv2178), 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)
}
yym2185 := z.DecBinary()
_ = yym2185
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym2185 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym2185 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
case "containerStatuses":
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv2186 := &x.ContainerStatuses
yym2187 := z.DecBinary()
_ = yym2187
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2186), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2176)
} // end switch yys2176
} // end for yyj2176
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 yyj2188 int
var yyb2188 bool
var yyhl2188 bool = l >= 0
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2190 := &x.Conditions
yym2191 := z.DecBinary()
_ = yym2191
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv2190), d)
}
}
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodIP = ""
} else {
x.PodIP = string(r.DecodeString())
}
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
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)
}
yym2197 := z.DecBinary()
_ = yym2197
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym2197 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym2197 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv2198 := &x.ContainerStatuses
yym2199 := z.DecBinary()
_ = yym2199
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv2198), d)
}
}
for {
yyj2188++
if yyhl2188 {
yyb2188 = yyj2188 > l
} else {
yyb2188 = r.CheckBreak()
}
if yyb2188 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2188-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 {
yym2200 := z.EncBinary()
_ = yym2200
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2201 := !z.EncBinary()
yy2arr2201 := z.EncBasicHandle().StructToArray
var yyq2201 [4]bool
_, _, _ = yysep2201, yyq2201, yy2arr2201
const yyr2201 bool = false
yyq2201[0] = x.Kind != ""
yyq2201[1] = x.APIVersion != ""
yyq2201[2] = true
yyq2201[3] = true
var yynn2201 int
if yyr2201 || yy2arr2201 {
r.EncodeArrayStart(4)
} else {
yynn2201 = 0
for _, b := range yyq2201 {
if b {
yynn2201++
}
}
r.EncodeMapStart(yynn2201)
yynn2201 = 0
}
if yyr2201 || yy2arr2201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2201[0] {
yym2203 := z.EncBinary()
_ = yym2203
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2201[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2204 := z.EncBinary()
_ = yym2204
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2201 || yy2arr2201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2201[1] {
yym2206 := z.EncBinary()
_ = yym2206
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2201[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2207 := z.EncBinary()
_ = yym2207
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2201 || yy2arr2201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2201[2] {
yy2209 := &x.ObjectMeta
yy2209.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2201[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2210 := &x.ObjectMeta
yy2210.CodecEncodeSelf(e)
}
}
if yyr2201 || yy2arr2201 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2201[3] {
yy2212 := &x.Status
yy2212.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2201[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2213 := &x.Status
yy2213.CodecEncodeSelf(e)
}
}
if yyr2201 || yy2arr2201 {
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
yym2214 := z.DecBinary()
_ = yym2214
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2215 := r.ContainerType()
if yyct2215 == codecSelferValueTypeMap1234 {
yyl2215 := r.ReadMapStart()
if yyl2215 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2215, d)
}
} else if yyct2215 == codecSelferValueTypeArray1234 {
yyl2215 := r.ReadArrayStart()
if yyl2215 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2215, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodStatusResult) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2216Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2216Slc
var yyhl2216 bool = l >= 0
for yyj2216 := 0; ; yyj2216++ {
if yyhl2216 {
if yyj2216 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2216Slc = r.DecodeBytes(yys2216Slc, true, true)
yys2216 := string(yys2216Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2216 {
case "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 {
yyv2219 := &x.ObjectMeta
yyv2219.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2220 := &x.Status
yyv2220.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2216)
} // end switch yys2216
} // end for yyj2216
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 yyj2221 int
var yyb2221 bool
var yyhl2221 bool = l >= 0
yyj2221++
if yyhl2221 {
yyb2221 = yyj2221 > l
} else {
yyb2221 = r.CheckBreak()
}
if yyb2221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2221++
if yyhl2221 {
yyb2221 = yyj2221 > l
} else {
yyb2221 = r.CheckBreak()
}
if yyb2221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2221++
if yyhl2221 {
yyb2221 = yyj2221 > l
} else {
yyb2221 = r.CheckBreak()
}
if yyb2221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2224 := &x.ObjectMeta
yyv2224.CodecDecodeSelf(d)
}
yyj2221++
if yyhl2221 {
yyb2221 = yyj2221 > l
} else {
yyb2221 = r.CheckBreak()
}
if yyb2221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2225 := &x.Status
yyv2225.CodecDecodeSelf(d)
}
for {
yyj2221++
if yyhl2221 {
yyb2221 = yyj2221 > l
} else {
yyb2221 = r.CheckBreak()
}
if yyb2221 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2221-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 {
yym2226 := z.EncBinary()
_ = yym2226
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2227 := !z.EncBinary()
yy2arr2227 := z.EncBasicHandle().StructToArray
var yyq2227 [5]bool
_, _, _ = yysep2227, yyq2227, yy2arr2227
const yyr2227 bool = false
yyq2227[0] = x.Kind != ""
yyq2227[1] = x.APIVersion != ""
yyq2227[2] = true
yyq2227[3] = true
yyq2227[4] = true
var yynn2227 int
if yyr2227 || yy2arr2227 {
r.EncodeArrayStart(5)
} else {
yynn2227 = 0
for _, b := range yyq2227 {
if b {
yynn2227++
}
}
r.EncodeMapStart(yynn2227)
yynn2227 = 0
}
if yyr2227 || yy2arr2227 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2227[0] {
yym2229 := z.EncBinary()
_ = yym2229
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2227[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2230 := z.EncBinary()
_ = yym2230
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2227 || yy2arr2227 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2227[1] {
yym2232 := z.EncBinary()
_ = yym2232
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2227[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2233 := z.EncBinary()
_ = yym2233
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2227 || yy2arr2227 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2227[2] {
yy2235 := &x.ObjectMeta
yy2235.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2227[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2236 := &x.ObjectMeta
yy2236.CodecEncodeSelf(e)
}
}
if yyr2227 || yy2arr2227 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2227[3] {
yy2238 := &x.Spec
yy2238.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2227[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2239 := &x.Spec
yy2239.CodecEncodeSelf(e)
}
}
if yyr2227 || yy2arr2227 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2227[4] {
yy2241 := &x.Status
yy2241.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2227[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2242 := &x.Status
yy2242.CodecEncodeSelf(e)
}
}
if yyr2227 || yy2arr2227 {
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
yym2243 := z.DecBinary()
_ = yym2243
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2244 := r.ContainerType()
if yyct2244 == codecSelferValueTypeMap1234 {
yyl2244 := r.ReadMapStart()
if yyl2244 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2244, d)
}
} else if yyct2244 == codecSelferValueTypeArray1234 {
yyl2244 := r.ReadArrayStart()
if yyl2244 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2244, 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 yys2245Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2245Slc
var yyhl2245 bool = l >= 0
for yyj2245 := 0; ; yyj2245++ {
if yyhl2245 {
if yyj2245 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2245Slc = r.DecodeBytes(yys2245Slc, true, true)
yys2245 := string(yys2245Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2245 {
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 {
yyv2248 := &x.ObjectMeta
yyv2248.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2249 := &x.Spec
yyv2249.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2250 := &x.Status
yyv2250.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2245)
} // end switch yys2245
} // end for yyj2245
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 yyj2251 int
var yyb2251 bool
var yyhl2251 bool = l >= 0
yyj2251++
if yyhl2251 {
yyb2251 = yyj2251 > l
} else {
yyb2251 = r.CheckBreak()
}
if yyb2251 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2251++
if yyhl2251 {
yyb2251 = yyj2251 > l
} else {
yyb2251 = r.CheckBreak()
}
if yyb2251 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2251++
if yyhl2251 {
yyb2251 = yyj2251 > l
} else {
yyb2251 = r.CheckBreak()
}
if yyb2251 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2254 := &x.ObjectMeta
yyv2254.CodecDecodeSelf(d)
}
yyj2251++
if yyhl2251 {
yyb2251 = yyj2251 > l
} else {
yyb2251 = r.CheckBreak()
}
if yyb2251 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2255 := &x.Spec
yyv2255.CodecDecodeSelf(d)
}
yyj2251++
if yyhl2251 {
yyb2251 = yyj2251 > l
} else {
yyb2251 = r.CheckBreak()
}
if yyb2251 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv2256 := &x.Status
yyv2256.CodecDecodeSelf(d)
}
for {
yyj2251++
if yyhl2251 {
yyb2251 = yyj2251 > l
} else {
yyb2251 = r.CheckBreak()
}
if yyb2251 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2251-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 {
yym2257 := z.EncBinary()
_ = yym2257
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2258 := !z.EncBinary()
yy2arr2258 := z.EncBasicHandle().StructToArray
var yyq2258 [2]bool
_, _, _ = yysep2258, yyq2258, yy2arr2258
const yyr2258 bool = false
yyq2258[0] = true
yyq2258[1] = true
var yynn2258 int
if yyr2258 || yy2arr2258 {
r.EncodeArrayStart(2)
} else {
yynn2258 = 0
for _, b := range yyq2258 {
if b {
yynn2258++
}
}
r.EncodeMapStart(yynn2258)
yynn2258 = 0
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2258[0] {
yy2260 := &x.ObjectMeta
yy2260.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2258[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2261 := &x.ObjectMeta
yy2261.CodecEncodeSelf(e)
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2258[1] {
yy2263 := &x.Spec
yy2263.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2258[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2264 := &x.Spec
yy2264.CodecEncodeSelf(e)
}
}
if yyr2258 || yy2arr2258 {
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
yym2265 := z.DecBinary()
_ = yym2265
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2266 := r.ContainerType()
if yyct2266 == codecSelferValueTypeMap1234 {
yyl2266 := r.ReadMapStart()
if yyl2266 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2266, d)
}
} else if yyct2266 == codecSelferValueTypeArray1234 {
yyl2266 := r.ReadArrayStart()
if yyl2266 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2266, 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 yys2267Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2267Slc
var yyhl2267 bool = l >= 0
for yyj2267 := 0; ; yyj2267++ {
if yyhl2267 {
if yyj2267 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2267Slc = r.DecodeBytes(yys2267Slc, true, true)
yys2267 := string(yys2267Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2267 {
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2268 := &x.ObjectMeta
yyv2268.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2269 := &x.Spec
yyv2269.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2267)
} // end switch yys2267
} // end for yyj2267
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 yyj2270 int
var yyb2270 bool
var yyhl2270 bool = l >= 0
yyj2270++
if yyhl2270 {
yyb2270 = yyj2270 > l
} else {
yyb2270 = r.CheckBreak()
}
if yyb2270 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2271 := &x.ObjectMeta
yyv2271.CodecDecodeSelf(d)
}
yyj2270++
if yyhl2270 {
yyb2270 = yyj2270 > l
} else {
yyb2270 = r.CheckBreak()
}
if yyb2270 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv2272 := &x.Spec
yyv2272.CodecDecodeSelf(d)
}
for {
yyj2270++
if yyhl2270 {
yyb2270 = yyj2270 > l
} else {
yyb2270 = r.CheckBreak()
}
if yyb2270 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2270-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 {
yym2273 := z.EncBinary()
_ = yym2273
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2274 := !z.EncBinary()
yy2arr2274 := z.EncBasicHandle().StructToArray
var yyq2274 [4]bool
_, _, _ = yysep2274, yyq2274, yy2arr2274
const yyr2274 bool = false
yyq2274[0] = x.Kind != ""
yyq2274[1] = x.APIVersion != ""
yyq2274[2] = true
yyq2274[3] = true
var yynn2274 int
if yyr2274 || yy2arr2274 {
r.EncodeArrayStart(4)
} else {
yynn2274 = 0
for _, b := range yyq2274 {
if b {
yynn2274++
}
}
r.EncodeMapStart(yynn2274)
yynn2274 = 0
}
if yyr2274 || yy2arr2274 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2274[0] {
yym2276 := z.EncBinary()
_ = yym2276
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2274[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2277 := z.EncBinary()
_ = yym2277
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2274 || yy2arr2274 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2274[1] {
yym2279 := z.EncBinary()
_ = yym2279
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2274[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2280 := z.EncBinary()
_ = yym2280
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2274 || yy2arr2274 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2274[2] {
yy2282 := &x.ObjectMeta
yy2282.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2274[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2283 := &x.ObjectMeta
yy2283.CodecEncodeSelf(e)
}
}
if yyr2274 || yy2arr2274 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2274[3] {
yy2285 := &x.Template
yy2285.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2274[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2286 := &x.Template
yy2286.CodecEncodeSelf(e)
}
}
if yyr2274 || yy2arr2274 {
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
yym2287 := z.DecBinary()
_ = yym2287
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2288 := r.ContainerType()
if yyct2288 == codecSelferValueTypeMap1234 {
yyl2288 := r.ReadMapStart()
if yyl2288 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2288, d)
}
} else if yyct2288 == codecSelferValueTypeArray1234 {
yyl2288 := r.ReadArrayStart()
if yyl2288 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2288, 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 yys2289Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2289Slc
var yyhl2289 bool = l >= 0
for yyj2289 := 0; ; yyj2289++ {
if yyhl2289 {
if yyj2289 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2289Slc = r.DecodeBytes(yys2289Slc, true, true)
yys2289 := string(yys2289Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2289 {
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 {
yyv2292 := &x.ObjectMeta
yyv2292.CodecDecodeSelf(d)
}
case "template":
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv2293 := &x.Template
yyv2293.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2289)
} // end switch yys2289
} // end for yyj2289
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 yyj2294 int
var yyb2294 bool
var yyhl2294 bool = l >= 0
yyj2294++
if yyhl2294 {
yyb2294 = yyj2294 > l
} else {
yyb2294 = r.CheckBreak()
}
if yyb2294 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2294++
if yyhl2294 {
yyb2294 = yyj2294 > l
} else {
yyb2294 = r.CheckBreak()
}
if yyb2294 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2294++
if yyhl2294 {
yyb2294 = yyj2294 > l
} else {
yyb2294 = r.CheckBreak()
}
if yyb2294 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2297 := &x.ObjectMeta
yyv2297.CodecDecodeSelf(d)
}
yyj2294++
if yyhl2294 {
yyb2294 = yyj2294 > l
} else {
yyb2294 = r.CheckBreak()
}
if yyb2294 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv2298 := &x.Template
yyv2298.CodecDecodeSelf(d)
}
for {
yyj2294++
if yyhl2294 {
yyb2294 = yyj2294 > l
} else {
yyb2294 = r.CheckBreak()
}
if yyb2294 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2294-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 {
yym2299 := z.EncBinary()
_ = yym2299
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2300 := !z.EncBinary()
yy2arr2300 := z.EncBasicHandle().StructToArray
var yyq2300 [4]bool
_, _, _ = yysep2300, yyq2300, yy2arr2300
const yyr2300 bool = false
yyq2300[0] = x.Kind != ""
yyq2300[1] = x.APIVersion != ""
yyq2300[2] = true
var yynn2300 int
if yyr2300 || yy2arr2300 {
r.EncodeArrayStart(4)
} else {
yynn2300 = 1
for _, b := range yyq2300 {
if b {
yynn2300++
}
}
r.EncodeMapStart(yynn2300)
yynn2300 = 0
}
if yyr2300 || yy2arr2300 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2300[0] {
yym2302 := z.EncBinary()
_ = yym2302
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2300[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2303 := z.EncBinary()
_ = yym2303
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2300 || yy2arr2300 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2300[1] {
yym2305 := z.EncBinary()
_ = yym2305
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2300[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2306 := z.EncBinary()
_ = yym2306
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2300 || yy2arr2300 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2300[2] {
yy2308 := &x.ListMeta
yym2309 := z.EncBinary()
_ = yym2309
if false {
} else if z.HasExtensions() && z.EncExt(yy2308) {
} else {
z.EncFallback(yy2308)
}
} else {
r.EncodeNil()
}
} else {
if yyq2300[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2310 := &x.ListMeta
yym2311 := z.EncBinary()
_ = yym2311
if false {
} else if z.HasExtensions() && z.EncExt(yy2310) {
} else {
z.EncFallback(yy2310)
}
}
}
if yyr2300 || yy2arr2300 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2313 := z.EncBinary()
_ = yym2313
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 {
yym2314 := z.EncBinary()
_ = yym2314
if false {
} else {
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
}
}
}
if yyr2300 || yy2arr2300 {
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
yym2315 := z.DecBinary()
_ = yym2315
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2316 := r.ContainerType()
if yyct2316 == codecSelferValueTypeMap1234 {
yyl2316 := r.ReadMapStart()
if yyl2316 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2316, d)
}
} else if yyct2316 == codecSelferValueTypeArray1234 {
yyl2316 := r.ReadArrayStart()
if yyl2316 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2316, 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 yys2317Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2317Slc
var yyhl2317 bool = l >= 0
for yyj2317 := 0; ; yyj2317++ {
if yyhl2317 {
if yyj2317 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2317Slc = r.DecodeBytes(yys2317Slc, true, true)
yys2317 := string(yys2317Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2317 {
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 {
yyv2320 := &x.ListMeta
yym2321 := z.DecBinary()
_ = yym2321
if false {
} else if z.HasExtensions() && z.DecExt(yyv2320) {
} else {
z.DecFallback(yyv2320, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2322 := &x.Items
yym2323 := z.DecBinary()
_ = yym2323
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv2322), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2317)
} // end switch yys2317
} // end for yyj2317
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 yyj2324 int
var yyb2324 bool
var yyhl2324 bool = l >= 0
yyj2324++
if yyhl2324 {
yyb2324 = yyj2324 > l
} else {
yyb2324 = r.CheckBreak()
}
if yyb2324 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2324++
if yyhl2324 {
yyb2324 = yyj2324 > l
} else {
yyb2324 = r.CheckBreak()
}
if yyb2324 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2324++
if yyhl2324 {
yyb2324 = yyj2324 > l
} else {
yyb2324 = r.CheckBreak()
}
if yyb2324 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2327 := &x.ListMeta
yym2328 := z.DecBinary()
_ = yym2328
if false {
} else if z.HasExtensions() && z.DecExt(yyv2327) {
} else {
z.DecFallback(yyv2327, false)
}
}
yyj2324++
if yyhl2324 {
yyb2324 = yyj2324 > l
} else {
yyb2324 = r.CheckBreak()
}
if yyb2324 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2329 := &x.Items
yym2330 := z.DecBinary()
_ = yym2330
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv2329), d)
}
}
for {
yyj2324++
if yyhl2324 {
yyb2324 = yyj2324 > l
} else {
yyb2324 = r.CheckBreak()
}
if yyb2324 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2324-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 {
yym2331 := z.EncBinary()
_ = yym2331
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2332 := !z.EncBinary()
yy2arr2332 := z.EncBasicHandle().StructToArray
var yyq2332 [3]bool
_, _, _ = yysep2332, yyq2332, yy2arr2332
const yyr2332 bool = false
yyq2332[2] = x.Template != nil
var yynn2332 int
if yyr2332 || yy2arr2332 {
r.EncodeArrayStart(3)
} else {
yynn2332 = 2
for _, b := range yyq2332 {
if b {
yynn2332++
}
}
r.EncodeMapStart(yynn2332)
yynn2332 = 0
}
if yyr2332 || yy2arr2332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2334 := z.EncBinary()
_ = yym2334
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2335 := z.EncBinary()
_ = yym2335
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr2332 || yy2arr2332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym2337 := z.EncBinary()
_ = yym2337
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 {
yym2338 := z.EncBinary()
_ = yym2338
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2332 || yy2arr2332 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2332[2] {
if x.Template == nil {
r.EncodeNil()
} else {
x.Template.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2332[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 yyr2332 || yy2arr2332 {
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
yym2340 := z.DecBinary()
_ = yym2340
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2341 := r.ContainerType()
if yyct2341 == codecSelferValueTypeMap1234 {
yyl2341 := r.ReadMapStart()
if yyl2341 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2341, d)
}
} else if yyct2341 == codecSelferValueTypeArray1234 {
yyl2341 := r.ReadArrayStart()
if yyl2341 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2341, 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 yys2342Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2342Slc
var yyhl2342 bool = l >= 0
for yyj2342 := 0; ; yyj2342++ {
if yyhl2342 {
if yyj2342 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2342Slc = r.DecodeBytes(yys2342Slc, true, true)
yys2342 := string(yys2342Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2342 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2344 := &x.Selector
yym2345 := z.DecBinary()
_ = yym2345
if false {
} else {
z.F.DecMapStringStringX(yyv2344, 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, yys2342)
} // end switch yys2342
} // end for yyj2342
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 yyj2347 int
var yyb2347 bool
var yyhl2347 bool = l >= 0
yyj2347++
if yyhl2347 {
yyb2347 = yyj2347 > l
} else {
yyb2347 = r.CheckBreak()
}
if yyb2347 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj2347++
if yyhl2347 {
yyb2347 = yyj2347 > l
} else {
yyb2347 = r.CheckBreak()
}
if yyb2347 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2349 := &x.Selector
yym2350 := z.DecBinary()
_ = yym2350
if false {
} else {
z.F.DecMapStringStringX(yyv2349, false, d)
}
}
yyj2347++
if yyhl2347 {
yyb2347 = yyj2347 > l
} else {
yyb2347 = r.CheckBreak()
}
if yyb2347 {
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 {
yyj2347++
if yyhl2347 {
yyb2347 = yyj2347 > l
} else {
yyb2347 = r.CheckBreak()
}
if yyb2347 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2347-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 {
yym2352 := z.EncBinary()
_ = yym2352
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2353 := !z.EncBinary()
yy2arr2353 := z.EncBasicHandle().StructToArray
var yyq2353 [4]bool
_, _, _ = yysep2353, yyq2353, yy2arr2353
const yyr2353 bool = false
yyq2353[1] = x.FullyLabeledReplicas != 0
yyq2353[2] = x.ReadyReplicas != 0
yyq2353[3] = x.ObservedGeneration != 0
var yynn2353 int
if yyr2353 || yy2arr2353 {
r.EncodeArrayStart(4)
} else {
yynn2353 = 1
for _, b := range yyq2353 {
if b {
yynn2353++
}
}
r.EncodeMapStart(yynn2353)
yynn2353 = 0
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2355 := z.EncBinary()
_ = yym2355
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2356 := z.EncBinary()
_ = yym2356
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2353[1] {
yym2358 := z.EncBinary()
_ = yym2358
if false {
} else {
r.EncodeInt(int64(x.FullyLabeledReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2353[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fullyLabeledReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2359 := z.EncBinary()
_ = yym2359
if false {
} else {
r.EncodeInt(int64(x.FullyLabeledReplicas))
}
}
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2353[2] {
yym2361 := z.EncBinary()
_ = yym2361
if false {
} else {
r.EncodeInt(int64(x.ReadyReplicas))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2353[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readyReplicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2362 := z.EncBinary()
_ = yym2362
if false {
} else {
r.EncodeInt(int64(x.ReadyReplicas))
}
}
}
if yyr2353 || yy2arr2353 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2353[3] {
yym2364 := z.EncBinary()
_ = yym2364
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2353[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2365 := z.EncBinary()
_ = yym2365
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
}
}
if yyr2353 || yy2arr2353 {
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
yym2366 := z.DecBinary()
_ = yym2366
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2367 := r.ContainerType()
if yyct2367 == codecSelferValueTypeMap1234 {
yyl2367 := r.ReadMapStart()
if yyl2367 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2367, d)
}
} else if yyct2367 == codecSelferValueTypeArray1234 {
yyl2367 := r.ReadArrayStart()
if yyl2367 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2367, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ReplicationControllerStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2368Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2368Slc
var yyhl2368 bool = l >= 0
for yyj2368 := 0; ; yyj2368++ {
if yyhl2368 {
if yyj2368 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2368Slc = r.DecodeBytes(yys2368Slc, true, true)
yys2368 := string(yys2368Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2368 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
case "fullyLabeledReplicas":
if r.TryDecodeAsNil() {
x.FullyLabeledReplicas = 0
} else {
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
}
case "readyReplicas":
if r.TryDecodeAsNil() {
x.ReadyReplicas = 0
} else {
x.ReadyReplicas = int32(r.DecodeInt(32))
}
case "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys2368)
} // end switch yys2368
} // end for yyj2368
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 yyj2373 int
var yyb2373 bool
var yyhl2373 bool = l >= 0
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FullyLabeledReplicas = 0
} else {
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
}
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadyReplicas = 0
} else {
x.ReadyReplicas = int32(r.DecodeInt(32))
}
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
for {
yyj2373++
if yyhl2373 {
yyb2373 = yyj2373 > l
} else {
yyb2373 = r.CheckBreak()
}
if yyb2373 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2373-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ReplicationController) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2378 := z.EncBinary()
_ = yym2378
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2379 := !z.EncBinary()
yy2arr2379 := z.EncBasicHandle().StructToArray
var yyq2379 [5]bool
_, _, _ = yysep2379, yyq2379, yy2arr2379
const yyr2379 bool = false
yyq2379[0] = x.Kind != ""
yyq2379[1] = x.APIVersion != ""
yyq2379[2] = true
yyq2379[3] = true
yyq2379[4] = true
var yynn2379 int
if yyr2379 || yy2arr2379 {
r.EncodeArrayStart(5)
} else {
yynn2379 = 0
for _, b := range yyq2379 {
if b {
yynn2379++
}
}
r.EncodeMapStart(yynn2379)
yynn2379 = 0
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[0] {
yym2381 := z.EncBinary()
_ = yym2381
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2379[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2382 := z.EncBinary()
_ = yym2382
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[1] {
yym2384 := z.EncBinary()
_ = yym2384
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2379[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2385 := z.EncBinary()
_ = yym2385
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[2] {
yy2387 := &x.ObjectMeta
yy2387.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2379[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2388 := &x.ObjectMeta
yy2388.CodecEncodeSelf(e)
}
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[3] {
yy2390 := &x.Spec
yy2390.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2379[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2391 := &x.Spec
yy2391.CodecEncodeSelf(e)
}
}
if yyr2379 || yy2arr2379 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2379[4] {
yy2393 := &x.Status
yy2393.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2379[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2394 := &x.Status
yy2394.CodecEncodeSelf(e)
}
}
if yyr2379 || yy2arr2379 {
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
yym2395 := z.DecBinary()
_ = yym2395
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2396 := r.ContainerType()
if yyct2396 == codecSelferValueTypeMap1234 {
yyl2396 := r.ReadMapStart()
if yyl2396 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2396, d)
}
} else if yyct2396 == codecSelferValueTypeArray1234 {
yyl2396 := r.ReadArrayStart()
if yyl2396 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2396, 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 yys2397Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2397Slc
var yyhl2397 bool = l >= 0
for yyj2397 := 0; ; yyj2397++ {
if yyhl2397 {
if yyj2397 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2397Slc = r.DecodeBytes(yys2397Slc, true, true)
yys2397 := string(yys2397Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2397 {
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 {
yyv2400 := &x.ObjectMeta
yyv2400.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2401 := &x.Spec
yyv2401.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2402 := &x.Status
yyv2402.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2397)
} // end switch yys2397
} // end for yyj2397
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 yyj2403 int
var yyb2403 bool
var yyhl2403 bool = l >= 0
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2406 := &x.ObjectMeta
yyv2406.CodecDecodeSelf(d)
}
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2407 := &x.Spec
yyv2407.CodecDecodeSelf(d)
}
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2408 := &x.Status
yyv2408.CodecDecodeSelf(d)
}
for {
yyj2403++
if yyhl2403 {
yyb2403 = yyj2403 > l
} else {
yyb2403 = r.CheckBreak()
}
if yyb2403 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2403-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ReplicationControllerList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2409 := z.EncBinary()
_ = yym2409
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2410 := !z.EncBinary()
yy2arr2410 := z.EncBasicHandle().StructToArray
var yyq2410 [4]bool
_, _, _ = yysep2410, yyq2410, yy2arr2410
const yyr2410 bool = false
yyq2410[0] = x.Kind != ""
yyq2410[1] = x.APIVersion != ""
yyq2410[2] = true
var yynn2410 int
if yyr2410 || yy2arr2410 {
r.EncodeArrayStart(4)
} else {
yynn2410 = 1
for _, b := range yyq2410 {
if b {
yynn2410++
}
}
r.EncodeMapStart(yynn2410)
yynn2410 = 0
}
if yyr2410 || yy2arr2410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2410[0] {
yym2412 := z.EncBinary()
_ = yym2412
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2410[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2413 := z.EncBinary()
_ = yym2413
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2410 || yy2arr2410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2410[1] {
yym2415 := z.EncBinary()
_ = yym2415
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2410[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2416 := z.EncBinary()
_ = yym2416
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2410 || yy2arr2410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2410[2] {
yy2418 := &x.ListMeta
yym2419 := z.EncBinary()
_ = yym2419
if false {
} else if z.HasExtensions() && z.EncExt(yy2418) {
} else {
z.EncFallback(yy2418)
}
} else {
r.EncodeNil()
}
} else {
if yyq2410[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2420 := &x.ListMeta
yym2421 := z.EncBinary()
_ = yym2421
if false {
} else if z.HasExtensions() && z.EncExt(yy2420) {
} else {
z.EncFallback(yy2420)
}
}
}
if yyr2410 || yy2arr2410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2423 := z.EncBinary()
_ = yym2423
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 {
yym2424 := z.EncBinary()
_ = yym2424
if false {
} else {
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
}
}
}
if yyr2410 || yy2arr2410 {
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
yym2425 := z.DecBinary()
_ = yym2425
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2426 := r.ContainerType()
if yyct2426 == codecSelferValueTypeMap1234 {
yyl2426 := r.ReadMapStart()
if yyl2426 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2426, d)
}
} else if yyct2426 == codecSelferValueTypeArray1234 {
yyl2426 := r.ReadArrayStart()
if yyl2426 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2426, 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 yys2427Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2427Slc
var yyhl2427 bool = l >= 0
for yyj2427 := 0; ; yyj2427++ {
if yyhl2427 {
if yyj2427 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2427Slc = r.DecodeBytes(yys2427Slc, true, true)
yys2427 := string(yys2427Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2427 {
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 {
yyv2430 := &x.ListMeta
yym2431 := z.DecBinary()
_ = yym2431
if false {
} else if z.HasExtensions() && z.DecExt(yyv2430) {
} else {
z.DecFallback(yyv2430, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2432 := &x.Items
yym2433 := z.DecBinary()
_ = yym2433
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2432), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2427)
} // end switch yys2427
} // end for yyj2427
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 yyj2434 int
var yyb2434 bool
var yyhl2434 bool = l >= 0
yyj2434++
if yyhl2434 {
yyb2434 = yyj2434 > l
} else {
yyb2434 = r.CheckBreak()
}
if yyb2434 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2434++
if yyhl2434 {
yyb2434 = yyj2434 > l
} else {
yyb2434 = r.CheckBreak()
}
if yyb2434 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2434++
if yyhl2434 {
yyb2434 = yyj2434 > l
} else {
yyb2434 = r.CheckBreak()
}
if yyb2434 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2437 := &x.ListMeta
yym2438 := z.DecBinary()
_ = yym2438
if false {
} else if z.HasExtensions() && z.DecExt(yyv2437) {
} else {
z.DecFallback(yyv2437, false)
}
}
yyj2434++
if yyhl2434 {
yyb2434 = yyj2434 > l
} else {
yyb2434 = r.CheckBreak()
}
if yyb2434 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2439 := &x.Items
yym2440 := z.DecBinary()
_ = yym2440
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2439), d)
}
}
for {
yyj2434++
if yyhl2434 {
yyb2434 = yyj2434 > l
} else {
yyb2434 = r.CheckBreak()
}
if yyb2434 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2434-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServiceList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2441 := z.EncBinary()
_ = yym2441
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2442 := !z.EncBinary()
yy2arr2442 := z.EncBasicHandle().StructToArray
var yyq2442 [4]bool
_, _, _ = yysep2442, yyq2442, yy2arr2442
const yyr2442 bool = false
yyq2442[0] = x.Kind != ""
yyq2442[1] = x.APIVersion != ""
yyq2442[2] = true
var yynn2442 int
if yyr2442 || yy2arr2442 {
r.EncodeArrayStart(4)
} else {
yynn2442 = 1
for _, b := range yyq2442 {
if b {
yynn2442++
}
}
r.EncodeMapStart(yynn2442)
yynn2442 = 0
}
if yyr2442 || yy2arr2442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2442[0] {
yym2444 := z.EncBinary()
_ = yym2444
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2442[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2445 := z.EncBinary()
_ = yym2445
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2442 || yy2arr2442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2442[1] {
yym2447 := z.EncBinary()
_ = yym2447
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2442[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2448 := z.EncBinary()
_ = yym2448
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2442 || yy2arr2442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2442[2] {
yy2450 := &x.ListMeta
yym2451 := z.EncBinary()
_ = yym2451
if false {
} else if z.HasExtensions() && z.EncExt(yy2450) {
} else {
z.EncFallback(yy2450)
}
} else {
r.EncodeNil()
}
} else {
if yyq2442[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2452 := &x.ListMeta
yym2453 := z.EncBinary()
_ = yym2453
if false {
} else if z.HasExtensions() && z.EncExt(yy2452) {
} else {
z.EncFallback(yy2452)
}
}
}
if yyr2442 || yy2arr2442 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2455 := z.EncBinary()
_ = yym2455
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 {
yym2456 := z.EncBinary()
_ = yym2456
if false {
} else {
h.encSliceService(([]Service)(x.Items), e)
}
}
}
if yyr2442 || yy2arr2442 {
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
yym2457 := z.DecBinary()
_ = yym2457
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2458 := r.ContainerType()
if yyct2458 == codecSelferValueTypeMap1234 {
yyl2458 := r.ReadMapStart()
if yyl2458 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2458, d)
}
} else if yyct2458 == codecSelferValueTypeArray1234 {
yyl2458 := r.ReadArrayStart()
if yyl2458 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2458, 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 yys2459Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2459Slc
var yyhl2459 bool = l >= 0
for yyj2459 := 0; ; yyj2459++ {
if yyhl2459 {
if yyj2459 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2459Slc = r.DecodeBytes(yys2459Slc, true, true)
yys2459 := string(yys2459Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2459 {
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 {
yyv2462 := &x.ListMeta
yym2463 := z.DecBinary()
_ = yym2463
if false {
} else if z.HasExtensions() && z.DecExt(yyv2462) {
} else {
z.DecFallback(yyv2462, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2464 := &x.Items
yym2465 := z.DecBinary()
_ = yym2465
if false {
} else {
h.decSliceService((*[]Service)(yyv2464), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2459)
} // end switch yys2459
} // end for yyj2459
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 yyj2466 int
var yyb2466 bool
var yyhl2466 bool = l >= 0
yyj2466++
if yyhl2466 {
yyb2466 = yyj2466 > l
} else {
yyb2466 = r.CheckBreak()
}
if yyb2466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2466++
if yyhl2466 {
yyb2466 = yyj2466 > l
} else {
yyb2466 = r.CheckBreak()
}
if yyb2466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2466++
if yyhl2466 {
yyb2466 = yyj2466 > l
} else {
yyb2466 = r.CheckBreak()
}
if yyb2466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2469 := &x.ListMeta
yym2470 := z.DecBinary()
_ = yym2470
if false {
} else if z.HasExtensions() && z.DecExt(yyv2469) {
} else {
z.DecFallback(yyv2469, false)
}
}
yyj2466++
if yyhl2466 {
yyb2466 = yyj2466 > l
} else {
yyb2466 = r.CheckBreak()
}
if yyb2466 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2471 := &x.Items
yym2472 := z.DecBinary()
_ = yym2472
if false {
} else {
h.decSliceService((*[]Service)(yyv2471), d)
}
}
for {
yyj2466++
if yyhl2466 {
yyb2466 = yyj2466 > l
} else {
yyb2466 = r.CheckBreak()
}
if yyb2466 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2466-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ServiceAffinity) 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 *ServiceAffinity) 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 ServiceType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2475 := z.EncBinary()
_ = yym2475
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
yym2476 := z.DecBinary()
_ = yym2476
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 {
yym2477 := z.EncBinary()
_ = yym2477
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2478 := !z.EncBinary()
yy2arr2478 := z.EncBasicHandle().StructToArray
var yyq2478 [1]bool
_, _, _ = yysep2478, yyq2478, yy2arr2478
const yyr2478 bool = false
yyq2478[0] = true
var yynn2478 int
if yyr2478 || yy2arr2478 {
r.EncodeArrayStart(1)
} else {
yynn2478 = 0
for _, b := range yyq2478 {
if b {
yynn2478++
}
}
r.EncodeMapStart(yynn2478)
yynn2478 = 0
}
if yyr2478 || yy2arr2478 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2478[0] {
yy2480 := &x.LoadBalancer
yy2480.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2478[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2481 := &x.LoadBalancer
yy2481.CodecEncodeSelf(e)
}
}
if yyr2478 || yy2arr2478 {
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
yym2482 := z.DecBinary()
_ = yym2482
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2483 := r.ContainerType()
if yyct2483 == codecSelferValueTypeMap1234 {
yyl2483 := r.ReadMapStart()
if yyl2483 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2483, d)
}
} else if yyct2483 == codecSelferValueTypeArray1234 {
yyl2483 := r.ReadArrayStart()
if yyl2483 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2483, 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 yys2484Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2484Slc
var yyhl2484 bool = l >= 0
for yyj2484 := 0; ; yyj2484++ {
if yyhl2484 {
if yyj2484 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2484Slc = r.DecodeBytes(yys2484Slc, true, true)
yys2484 := string(yys2484Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2484 {
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2485 := &x.LoadBalancer
yyv2485.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2484)
} // end switch yys2484
} // end for yyj2484
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 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.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2487 := &x.LoadBalancer
yyv2487.CodecDecodeSelf(d)
}
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 *LoadBalancerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2488 := z.EncBinary()
_ = yym2488
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2489 := !z.EncBinary()
yy2arr2489 := z.EncBasicHandle().StructToArray
var yyq2489 [1]bool
_, _, _ = yysep2489, yyq2489, yy2arr2489
const yyr2489 bool = false
yyq2489[0] = len(x.Ingress) != 0
var yynn2489 int
if yyr2489 || yy2arr2489 {
r.EncodeArrayStart(1)
} else {
yynn2489 = 0
for _, b := range yyq2489 {
if b {
yynn2489++
}
}
r.EncodeMapStart(yynn2489)
yynn2489 = 0
}
if yyr2489 || yy2arr2489 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2489[0] {
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2491 := z.EncBinary()
_ = yym2491
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2489[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2492 := z.EncBinary()
_ = yym2492
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
}
}
if yyr2489 || yy2arr2489 {
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
yym2493 := z.DecBinary()
_ = yym2493
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2494 := r.ContainerType()
if yyct2494 == codecSelferValueTypeMap1234 {
yyl2494 := r.ReadMapStart()
if yyl2494 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2494, d)
}
} else if yyct2494 == codecSelferValueTypeArray1234 {
yyl2494 := r.ReadArrayStart()
if yyl2494 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2494, 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 yys2495Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2495Slc
var yyhl2495 bool = l >= 0
for yyj2495 := 0; ; yyj2495++ {
if yyhl2495 {
if yyj2495 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2495Slc = r.DecodeBytes(yys2495Slc, true, true)
yys2495 := string(yys2495Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2495 {
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2496 := &x.Ingress
yym2497 := z.DecBinary()
_ = yym2497
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2496), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2495)
} // end switch yys2495
} // end for yyj2495
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 yyj2498 int
var yyb2498 bool
var yyhl2498 bool = l >= 0
yyj2498++
if yyhl2498 {
yyb2498 = yyj2498 > l
} else {
yyb2498 = r.CheckBreak()
}
if yyb2498 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2499 := &x.Ingress
yym2500 := z.DecBinary()
_ = yym2500
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2499), d)
}
}
for {
yyj2498++
if yyhl2498 {
yyb2498 = yyj2498 > l
} else {
yyb2498 = r.CheckBreak()
}
if yyb2498 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2498-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 {
yym2501 := z.EncBinary()
_ = yym2501
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2502 := !z.EncBinary()
yy2arr2502 := z.EncBasicHandle().StructToArray
var yyq2502 [2]bool
_, _, _ = yysep2502, yyq2502, yy2arr2502
const yyr2502 bool = false
yyq2502[0] = x.IP != ""
yyq2502[1] = x.Hostname != ""
var yynn2502 int
if yyr2502 || yy2arr2502 {
r.EncodeArrayStart(2)
} else {
yynn2502 = 0
for _, b := range yyq2502 {
if b {
yynn2502++
}
}
r.EncodeMapStart(yynn2502)
yynn2502 = 0
}
if yyr2502 || yy2arr2502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2502[0] {
yym2504 := z.EncBinary()
_ = yym2504
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2502[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ip"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2505 := z.EncBinary()
_ = yym2505
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
}
if yyr2502 || yy2arr2502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2502[1] {
yym2507 := z.EncBinary()
_ = yym2507
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2502[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2508 := z.EncBinary()
_ = yym2508
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2502 || yy2arr2502 {
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
yym2509 := z.DecBinary()
_ = yym2509
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2510 := r.ContainerType()
if yyct2510 == codecSelferValueTypeMap1234 {
yyl2510 := r.ReadMapStart()
if yyl2510 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2510, d)
}
} else if yyct2510 == codecSelferValueTypeArray1234 {
yyl2510 := r.ReadArrayStart()
if yyl2510 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2510, 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 yys2511Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2511Slc
var yyhl2511 bool = l >= 0
for yyj2511 := 0; ; yyj2511++ {
if yyhl2511 {
if yyj2511 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2511Slc = r.DecodeBytes(yys2511Slc, true, true)
yys2511 := string(yys2511Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2511 {
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, yys2511)
} // end switch yys2511
} // end for yyj2511
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 yyj2514 int
var yyb2514 bool
var yyhl2514 bool = l >= 0
yyj2514++
if yyhl2514 {
yyb2514 = yyj2514 > l
} else {
yyb2514 = r.CheckBreak()
}
if yyb2514 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2514++
if yyhl2514 {
yyb2514 = yyj2514 > l
} else {
yyb2514 = r.CheckBreak()
}
if yyb2514 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
for {
yyj2514++
if yyhl2514 {
yyb2514 = yyj2514 > l
} else {
yyb2514 = r.CheckBreak()
}
if yyb2514 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2514-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 {
yym2517 := z.EncBinary()
_ = yym2517
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2518 := !z.EncBinary()
yy2arr2518 := z.EncBasicHandle().StructToArray
var yyq2518 [9]bool
_, _, _ = yysep2518, yyq2518, yy2arr2518
const yyr2518 bool = false
yyq2518[0] = x.Type != ""
yyq2518[3] = x.ClusterIP != ""
yyq2518[5] = len(x.ExternalIPs) != 0
yyq2518[6] = x.LoadBalancerIP != ""
yyq2518[7] = x.SessionAffinity != ""
yyq2518[8] = len(x.LoadBalancerSourceRanges) != 0
var yynn2518 int
if yyr2518 || yy2arr2518 {
r.EncodeArrayStart(9)
} else {
yynn2518 = 3
for _, b := range yyq2518 {
if b {
yynn2518++
}
}
r.EncodeMapStart(yynn2518)
yynn2518 = 0
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2518[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2518[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2521 := z.EncBinary()
_ = yym2521
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 {
yym2522 := z.EncBinary()
_ = yym2522
if false {
} else {
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
}
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym2524 := z.EncBinary()
_ = yym2524
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 {
yym2525 := z.EncBinary()
_ = yym2525
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2518[3] {
yym2527 := z.EncBinary()
_ = yym2527
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2518[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2528 := z.EncBinary()
_ = yym2528
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2530 := z.EncBinary()
_ = yym2530
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ExternalName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2531 := z.EncBinary()
_ = yym2531
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalName))
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2518[5] {
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2533 := z.EncBinary()
_ = yym2533
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2518[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2534 := z.EncBinary()
_ = yym2534
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2518[6] {
yym2536 := z.EncBinary()
_ = yym2536
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2518[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2537 := z.EncBinary()
_ = yym2537
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2518[7] {
x.SessionAffinity.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2518[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.SessionAffinity.CodecEncodeSelf(e)
}
}
if yyr2518 || yy2arr2518 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2518[8] {
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2540 := z.EncBinary()
_ = yym2540
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2518[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2541 := z.EncBinary()
_ = yym2541
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
}
}
if yyr2518 || yy2arr2518 {
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
yym2542 := z.DecBinary()
_ = yym2542
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2543 := r.ContainerType()
if yyct2543 == codecSelferValueTypeMap1234 {
yyl2543 := r.ReadMapStart()
if yyl2543 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2543, d)
}
} else if yyct2543 == codecSelferValueTypeArray1234 {
yyl2543 := r.ReadArrayStart()
if yyl2543 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2543, 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 yys2544Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2544Slc
var yyhl2544 bool = l >= 0
for yyj2544 := 0; ; yyj2544++ {
if yyhl2544 {
if yyj2544 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2544Slc = r.DecodeBytes(yys2544Slc, true, true)
yys2544 := string(yys2544Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2544 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2546 := &x.Ports
yym2547 := z.DecBinary()
_ = yym2547
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2546), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2548 := &x.Selector
yym2549 := z.DecBinary()
_ = yym2549
if false {
} else {
z.F.DecMapStringStringX(yyv2548, false, d)
}
}
case "clusterIP":
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
case "ExternalName":
if r.TryDecodeAsNil() {
x.ExternalName = ""
} else {
x.ExternalName = string(r.DecodeString())
}
case "externalIPs":
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2552 := &x.ExternalIPs
yym2553 := z.DecBinary()
_ = yym2553
if false {
} else {
z.F.DecSliceStringX(yyv2552, false, d)
}
}
case "loadBalancerIP":
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
case "sessionAffinity":
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
case "loadBalancerSourceRanges":
if r.TryDecodeAsNil() {
x.LoadBalancerSourceRanges = nil
} else {
yyv2556 := &x.LoadBalancerSourceRanges
yym2557 := z.DecBinary()
_ = yym2557
if false {
} else {
z.F.DecSliceStringX(yyv2556, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2544)
} // end switch yys2544
} // end for yyj2544
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 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.Type = ""
} else {
x.Type = ServiceType(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.Ports = nil
} else {
yyv2560 := &x.Ports
yym2561 := z.DecBinary()
_ = yym2561
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2560), d)
}
}
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.Selector = nil
} else {
yyv2562 := &x.Selector
yym2563 := z.DecBinary()
_ = yym2563
if false {
} else {
z.F.DecMapStringStringX(yyv2562, false, d)
}
}
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.ClusterIP = ""
} else {
x.ClusterIP = 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.ExternalName = ""
} else {
x.ExternalName = 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.ExternalIPs = nil
} else {
yyv2566 := &x.ExternalIPs
yym2567 := z.DecBinary()
_ = yym2567
if false {
} else {
z.F.DecSliceStringX(yyv2566, false, d)
}
}
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.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = 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.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(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.LoadBalancerSourceRanges = nil
} else {
yyv2570 := &x.LoadBalancerSourceRanges
yym2571 := z.DecBinary()
_ = yym2571
if false {
} else {
z.F.DecSliceStringX(yyv2570, false, 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 *ServicePort) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2572 := z.EncBinary()
_ = yym2572
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2573 := !z.EncBinary()
yy2arr2573 := z.EncBasicHandle().StructToArray
var yyq2573 [5]bool
_, _, _ = yysep2573, yyq2573, yy2arr2573
const yyr2573 bool = false
var yynn2573 int
if yyr2573 || yy2arr2573 {
r.EncodeArrayStart(5)
} else {
yynn2573 = 5
for _, b := range yyq2573 {
if b {
yynn2573++
}
}
r.EncodeMapStart(yynn2573)
yynn2573 = 0
}
if yyr2573 || yy2arr2573 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2575 := z.EncBinary()
_ = yym2575
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)
yym2576 := z.EncBinary()
_ = yym2576
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2573 || yy2arr2573 {
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 yyr2573 || yy2arr2573 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2579 := z.EncBinary()
_ = yym2579
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2580 := z.EncBinary()
_ = yym2580
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2573 || yy2arr2573 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2582 := &x.TargetPort
yym2583 := z.EncBinary()
_ = yym2583
if false {
} else if z.HasExtensions() && z.EncExt(yy2582) {
} else if !yym2583 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2582)
} else {
z.EncFallback(yy2582)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2584 := &x.TargetPort
yym2585 := z.EncBinary()
_ = yym2585
if false {
} else if z.HasExtensions() && z.EncExt(yy2584) {
} else if !yym2585 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2584)
} else {
z.EncFallback(yy2584)
}
}
if yyr2573 || yy2arr2573 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2587 := z.EncBinary()
_ = yym2587
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2588 := z.EncBinary()
_ = yym2588
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
}
if yyr2573 || yy2arr2573 {
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
yym2589 := z.DecBinary()
_ = yym2589
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2590 := r.ContainerType()
if yyct2590 == codecSelferValueTypeMap1234 {
yyl2590 := r.ReadMapStart()
if yyl2590 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2590, d)
}
} else if yyct2590 == codecSelferValueTypeArray1234 {
yyl2590 := r.ReadArrayStart()
if yyl2590 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2590, 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 yys2591Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2591Slc
var yyhl2591 bool = l >= 0
for yyj2591 := 0; ; yyj2591++ {
if yyhl2591 {
if yyj2591 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2591Slc = r.DecodeBytes(yys2591Slc, true, true)
yys2591 := string(yys2591Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2591 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
case "targetPort":
if r.TryDecodeAsNil() {
x.TargetPort = pkg4_intstr.IntOrString{}
} else {
yyv2595 := &x.TargetPort
yym2596 := z.DecBinary()
_ = yym2596
if false {
} else if z.HasExtensions() && z.DecExt(yyv2595) {
} else if !yym2596 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2595)
} else {
z.DecFallback(yyv2595, false)
}
}
case "nodePort":
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2591)
} // end switch yys2591
} // end for yyj2591
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 yyj2598 int
var yyb2598 bool
var yyhl2598 bool = l >= 0
yyj2598++
if yyhl2598 {
yyb2598 = yyj2598 > l
} else {
yyb2598 = r.CheckBreak()
}
if yyb2598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2598++
if yyhl2598 {
yyb2598 = yyj2598 > l
} else {
yyb2598 = r.CheckBreak()
}
if yyb2598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj2598++
if yyhl2598 {
yyb2598 = yyj2598 > l
} else {
yyb2598 = r.CheckBreak()
}
if yyb2598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2598++
if yyhl2598 {
yyb2598 = yyj2598 > l
} else {
yyb2598 = r.CheckBreak()
}
if yyb2598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPort = pkg4_intstr.IntOrString{}
} else {
yyv2602 := &x.TargetPort
yym2603 := z.DecBinary()
_ = yym2603
if false {
} else if z.HasExtensions() && z.DecExt(yyv2602) {
} else if !yym2603 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2602)
} else {
z.DecFallback(yyv2602, false)
}
}
yyj2598++
if yyhl2598 {
yyb2598 = yyj2598 > l
} else {
yyb2598 = r.CheckBreak()
}
if yyb2598 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
for {
yyj2598++
if yyhl2598 {
yyb2598 = yyj2598 > l
} else {
yyb2598 = r.CheckBreak()
}
if yyb2598 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2598-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 {
yym2605 := z.EncBinary()
_ = yym2605
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2606 := !z.EncBinary()
yy2arr2606 := z.EncBasicHandle().StructToArray
var yyq2606 [5]bool
_, _, _ = yysep2606, yyq2606, yy2arr2606
const yyr2606 bool = false
yyq2606[0] = x.Kind != ""
yyq2606[1] = x.APIVersion != ""
yyq2606[2] = true
yyq2606[3] = true
yyq2606[4] = true
var yynn2606 int
if yyr2606 || yy2arr2606 {
r.EncodeArrayStart(5)
} else {
yynn2606 = 0
for _, b := range yyq2606 {
if b {
yynn2606++
}
}
r.EncodeMapStart(yynn2606)
yynn2606 = 0
}
if yyr2606 || yy2arr2606 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2606[0] {
yym2608 := z.EncBinary()
_ = yym2608
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2606[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2609 := z.EncBinary()
_ = yym2609
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2606 || yy2arr2606 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2606[1] {
yym2611 := z.EncBinary()
_ = yym2611
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2606[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2612 := z.EncBinary()
_ = yym2612
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2606 || yy2arr2606 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2606[2] {
yy2614 := &x.ObjectMeta
yy2614.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2606[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2615 := &x.ObjectMeta
yy2615.CodecEncodeSelf(e)
}
}
if yyr2606 || yy2arr2606 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2606[3] {
yy2617 := &x.Spec
yy2617.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2606[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2618 := &x.Spec
yy2618.CodecEncodeSelf(e)
}
}
if yyr2606 || yy2arr2606 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2606[4] {
yy2620 := &x.Status
yy2620.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2606[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2621 := &x.Status
yy2621.CodecEncodeSelf(e)
}
}
if yyr2606 || yy2arr2606 {
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
yym2622 := z.DecBinary()
_ = yym2622
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2623 := r.ContainerType()
if yyct2623 == codecSelferValueTypeMap1234 {
yyl2623 := r.ReadMapStart()
if yyl2623 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2623, d)
}
} else if yyct2623 == codecSelferValueTypeArray1234 {
yyl2623 := r.ReadArrayStart()
if yyl2623 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2623, 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 yys2624Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2624Slc
var yyhl2624 bool = l >= 0
for yyj2624 := 0; ; yyj2624++ {
if yyhl2624 {
if yyj2624 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2624Slc = r.DecodeBytes(yys2624Slc, true, true)
yys2624 := string(yys2624Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2624 {
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 {
yyv2627 := &x.ObjectMeta
yyv2627.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2628 := &x.Spec
yyv2628.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2629 := &x.Status
yyv2629.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2624)
} // end switch yys2624
} // end for yyj2624
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 yyj2630 int
var yyb2630 bool
var yyhl2630 bool = l >= 0
yyj2630++
if yyhl2630 {
yyb2630 = yyj2630 > l
} else {
yyb2630 = r.CheckBreak()
}
if yyb2630 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2630++
if yyhl2630 {
yyb2630 = yyj2630 > l
} else {
yyb2630 = r.CheckBreak()
}
if yyb2630 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2630++
if yyhl2630 {
yyb2630 = yyj2630 > l
} else {
yyb2630 = r.CheckBreak()
}
if yyb2630 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2633 := &x.ObjectMeta
yyv2633.CodecDecodeSelf(d)
}
yyj2630++
if yyhl2630 {
yyb2630 = yyj2630 > l
} else {
yyb2630 = r.CheckBreak()
}
if yyb2630 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2634 := &x.Spec
yyv2634.CodecDecodeSelf(d)
}
yyj2630++
if yyhl2630 {
yyb2630 = yyj2630 > l
} else {
yyb2630 = r.CheckBreak()
}
if yyb2630 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2635 := &x.Status
yyv2635.CodecDecodeSelf(d)
}
for {
yyj2630++
if yyhl2630 {
yyb2630 = yyj2630 > l
} else {
yyb2630 = r.CheckBreak()
}
if yyb2630 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2630-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 {
yym2636 := z.EncBinary()
_ = yym2636
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2637 := !z.EncBinary()
yy2arr2637 := z.EncBasicHandle().StructToArray
var yyq2637 [5]bool
_, _, _ = yysep2637, yyq2637, yy2arr2637
const yyr2637 bool = false
yyq2637[0] = x.Kind != ""
yyq2637[1] = x.APIVersion != ""
yyq2637[2] = true
yyq2637[4] = len(x.ImagePullSecrets) != 0
var yynn2637 int
if yyr2637 || yy2arr2637 {
r.EncodeArrayStart(5)
} else {
yynn2637 = 1
for _, b := range yyq2637 {
if b {
yynn2637++
}
}
r.EncodeMapStart(yynn2637)
yynn2637 = 0
}
if yyr2637 || yy2arr2637 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2637[0] {
yym2639 := z.EncBinary()
_ = yym2639
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2637[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2640 := z.EncBinary()
_ = yym2640
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2637 || yy2arr2637 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2637[1] {
yym2642 := z.EncBinary()
_ = yym2642
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2637[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2643 := z.EncBinary()
_ = yym2643
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2637 || yy2arr2637 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2637[2] {
yy2645 := &x.ObjectMeta
yy2645.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2637[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2646 := &x.ObjectMeta
yy2646.CodecEncodeSelf(e)
}
}
if yyr2637 || yy2arr2637 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Secrets == nil {
r.EncodeNil()
} else {
yym2648 := z.EncBinary()
_ = yym2648
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 {
yym2649 := z.EncBinary()
_ = yym2649
if false {
} else {
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
}
}
}
if yyr2637 || yy2arr2637 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2637[4] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2651 := z.EncBinary()
_ = yym2651
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2637[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2652 := z.EncBinary()
_ = yym2652
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2637 || yy2arr2637 {
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
yym2653 := z.DecBinary()
_ = yym2653
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2654 := r.ContainerType()
if yyct2654 == codecSelferValueTypeMap1234 {
yyl2654 := r.ReadMapStart()
if yyl2654 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2654, d)
}
} else if yyct2654 == codecSelferValueTypeArray1234 {
yyl2654 := r.ReadArrayStart()
if yyl2654 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2654, 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 yys2655Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2655Slc
var yyhl2655 bool = l >= 0
for yyj2655 := 0; ; yyj2655++ {
if yyhl2655 {
if yyj2655 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2655Slc = r.DecodeBytes(yys2655Slc, true, true)
yys2655 := string(yys2655Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2655 {
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 {
yyv2658 := &x.ObjectMeta
yyv2658.CodecDecodeSelf(d)
}
case "secrets":
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2659 := &x.Secrets
yym2660 := z.DecBinary()
_ = yym2660
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2659), d)
}
}
case "imagePullSecrets":
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2661 := &x.ImagePullSecrets
yym2662 := z.DecBinary()
_ = yym2662
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2661), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2655)
} // end switch yys2655
} // end for yyj2655
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 yyj2663 int
var yyb2663 bool
var yyhl2663 bool = l >= 0
yyj2663++
if yyhl2663 {
yyb2663 = yyj2663 > l
} else {
yyb2663 = r.CheckBreak()
}
if yyb2663 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2663++
if yyhl2663 {
yyb2663 = yyj2663 > l
} else {
yyb2663 = r.CheckBreak()
}
if yyb2663 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2663++
if yyhl2663 {
yyb2663 = yyj2663 > l
} else {
yyb2663 = r.CheckBreak()
}
if yyb2663 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2666 := &x.ObjectMeta
yyv2666.CodecDecodeSelf(d)
}
yyj2663++
if yyhl2663 {
yyb2663 = yyj2663 > l
} else {
yyb2663 = r.CheckBreak()
}
if yyb2663 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2667 := &x.Secrets
yym2668 := z.DecBinary()
_ = yym2668
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2667), d)
}
}
yyj2663++
if yyhl2663 {
yyb2663 = yyj2663 > l
} else {
yyb2663 = r.CheckBreak()
}
if yyb2663 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2669 := &x.ImagePullSecrets
yym2670 := z.DecBinary()
_ = yym2670
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2669), d)
}
}
for {
yyj2663++
if yyhl2663 {
yyb2663 = yyj2663 > l
} else {
yyb2663 = r.CheckBreak()
}
if yyb2663 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2663-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 {
yym2671 := z.EncBinary()
_ = yym2671
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2672 := !z.EncBinary()
yy2arr2672 := z.EncBasicHandle().StructToArray
var yyq2672 [4]bool
_, _, _ = yysep2672, yyq2672, yy2arr2672
const yyr2672 bool = false
yyq2672[0] = x.Kind != ""
yyq2672[1] = x.APIVersion != ""
yyq2672[2] = true
var yynn2672 int
if yyr2672 || yy2arr2672 {
r.EncodeArrayStart(4)
} else {
yynn2672 = 1
for _, b := range yyq2672 {
if b {
yynn2672++
}
}
r.EncodeMapStart(yynn2672)
yynn2672 = 0
}
if yyr2672 || yy2arr2672 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2672[0] {
yym2674 := z.EncBinary()
_ = yym2674
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2672[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2675 := z.EncBinary()
_ = yym2675
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2672 || yy2arr2672 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2672[1] {
yym2677 := z.EncBinary()
_ = yym2677
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2672[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2678 := z.EncBinary()
_ = yym2678
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2672 || yy2arr2672 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2672[2] {
yy2680 := &x.ListMeta
yym2681 := z.EncBinary()
_ = yym2681
if false {
} else if z.HasExtensions() && z.EncExt(yy2680) {
} else {
z.EncFallback(yy2680)
}
} else {
r.EncodeNil()
}
} else {
if yyq2672[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2682 := &x.ListMeta
yym2683 := z.EncBinary()
_ = yym2683
if false {
} else if z.HasExtensions() && z.EncExt(yy2682) {
} else {
z.EncFallback(yy2682)
}
}
}
if yyr2672 || yy2arr2672 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2685 := z.EncBinary()
_ = yym2685
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 {
yym2686 := z.EncBinary()
_ = yym2686
if false {
} else {
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
}
}
}
if yyr2672 || yy2arr2672 {
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
yym2687 := z.DecBinary()
_ = yym2687
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2688 := r.ContainerType()
if yyct2688 == codecSelferValueTypeMap1234 {
yyl2688 := r.ReadMapStart()
if yyl2688 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2688, d)
}
} else if yyct2688 == codecSelferValueTypeArray1234 {
yyl2688 := r.ReadArrayStart()
if yyl2688 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2688, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ServiceAccountList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2689Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2689Slc
var yyhl2689 bool = l >= 0
for yyj2689 := 0; ; yyj2689++ {
if yyhl2689 {
if yyj2689 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2689Slc = r.DecodeBytes(yys2689Slc, true, true)
yys2689 := string(yys2689Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2689 {
case "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 {
yyv2692 := &x.ListMeta
yym2693 := z.DecBinary()
_ = yym2693
if false {
} else if z.HasExtensions() && z.DecExt(yyv2692) {
} else {
z.DecFallback(yyv2692, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2694 := &x.Items
yym2695 := z.DecBinary()
_ = yym2695
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2694), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2689)
} // end switch yys2689
} // end for yyj2689
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 yyj2696 int
var yyb2696 bool
var yyhl2696 bool = l >= 0
yyj2696++
if yyhl2696 {
yyb2696 = yyj2696 > l
} else {
yyb2696 = r.CheckBreak()
}
if yyb2696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2696++
if yyhl2696 {
yyb2696 = yyj2696 > l
} else {
yyb2696 = r.CheckBreak()
}
if yyb2696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2696++
if yyhl2696 {
yyb2696 = yyj2696 > l
} else {
yyb2696 = r.CheckBreak()
}
if yyb2696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2699 := &x.ListMeta
yym2700 := z.DecBinary()
_ = yym2700
if false {
} else if z.HasExtensions() && z.DecExt(yyv2699) {
} else {
z.DecFallback(yyv2699, false)
}
}
yyj2696++
if yyhl2696 {
yyb2696 = yyj2696 > l
} else {
yyb2696 = r.CheckBreak()
}
if yyb2696 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2701 := &x.Items
yym2702 := z.DecBinary()
_ = yym2702
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2701), d)
}
}
for {
yyj2696++
if yyhl2696 {
yyb2696 = yyj2696 > l
} else {
yyb2696 = r.CheckBreak()
}
if yyb2696 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2696-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 {
yym2703 := z.EncBinary()
_ = yym2703
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2704 := !z.EncBinary()
yy2arr2704 := z.EncBasicHandle().StructToArray
var yyq2704 [4]bool
_, _, _ = yysep2704, yyq2704, yy2arr2704
const yyr2704 bool = false
yyq2704[0] = x.Kind != ""
yyq2704[1] = x.APIVersion != ""
yyq2704[2] = true
var yynn2704 int
if yyr2704 || yy2arr2704 {
r.EncodeArrayStart(4)
} else {
yynn2704 = 1
for _, b := range yyq2704 {
if b {
yynn2704++
}
}
r.EncodeMapStart(yynn2704)
yynn2704 = 0
}
if yyr2704 || yy2arr2704 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2704[0] {
yym2706 := z.EncBinary()
_ = yym2706
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2704[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2707 := z.EncBinary()
_ = yym2707
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2704 || yy2arr2704 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2704[1] {
yym2709 := z.EncBinary()
_ = yym2709
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2704[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2710 := z.EncBinary()
_ = yym2710
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2704 || yy2arr2704 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2704[2] {
yy2712 := &x.ObjectMeta
yy2712.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2704[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2713 := &x.ObjectMeta
yy2713.CodecEncodeSelf(e)
}
}
if yyr2704 || yy2arr2704 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Subsets == nil {
r.EncodeNil()
} else {
yym2715 := z.EncBinary()
_ = yym2715
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 {
yym2716 := z.EncBinary()
_ = yym2716
if false {
} else {
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
}
}
}
if yyr2704 || yy2arr2704 {
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
yym2717 := z.DecBinary()
_ = yym2717
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2718 := r.ContainerType()
if yyct2718 == codecSelferValueTypeMap1234 {
yyl2718 := r.ReadMapStart()
if yyl2718 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2718, d)
}
} else if yyct2718 == codecSelferValueTypeArray1234 {
yyl2718 := r.ReadArrayStart()
if yyl2718 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2718, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Endpoints) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2719Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2719Slc
var yyhl2719 bool = l >= 0
for yyj2719 := 0; ; yyj2719++ {
if yyhl2719 {
if yyj2719 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2719Slc = r.DecodeBytes(yys2719Slc, true, true)
yys2719 := string(yys2719Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2719 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2722 := &x.ObjectMeta
yyv2722.CodecDecodeSelf(d)
}
case "Subsets":
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2723 := &x.Subsets
yym2724 := z.DecBinary()
_ = yym2724
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2723), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2719)
} // end switch yys2719
} // end for yyj2719
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 yyj2725 int
var yyb2725 bool
var yyhl2725 bool = l >= 0
yyj2725++
if yyhl2725 {
yyb2725 = yyj2725 > l
} else {
yyb2725 = r.CheckBreak()
}
if yyb2725 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2725++
if yyhl2725 {
yyb2725 = yyj2725 > l
} else {
yyb2725 = r.CheckBreak()
}
if yyb2725 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2725++
if yyhl2725 {
yyb2725 = yyj2725 > l
} else {
yyb2725 = r.CheckBreak()
}
if yyb2725 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2728 := &x.ObjectMeta
yyv2728.CodecDecodeSelf(d)
}
yyj2725++
if yyhl2725 {
yyb2725 = yyj2725 > l
} else {
yyb2725 = r.CheckBreak()
}
if yyb2725 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2729 := &x.Subsets
yym2730 := z.DecBinary()
_ = yym2730
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2729), d)
}
}
for {
yyj2725++
if yyhl2725 {
yyb2725 = yyj2725 > l
} else {
yyb2725 = r.CheckBreak()
}
if yyb2725 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2725-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 {
yym2731 := z.EncBinary()
_ = yym2731
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2732 := !z.EncBinary()
yy2arr2732 := z.EncBasicHandle().StructToArray
var yyq2732 [3]bool
_, _, _ = yysep2732, yyq2732, yy2arr2732
const yyr2732 bool = false
var yynn2732 int
if yyr2732 || yy2arr2732 {
r.EncodeArrayStart(3)
} else {
yynn2732 = 3
for _, b := range yyq2732 {
if b {
yynn2732++
}
}
r.EncodeMapStart(yynn2732)
yynn2732 = 0
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2734 := z.EncBinary()
_ = yym2734
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 {
yym2735 := z.EncBinary()
_ = yym2735
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
}
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NotReadyAddresses == nil {
r.EncodeNil()
} else {
yym2737 := z.EncBinary()
_ = yym2737
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 {
yym2738 := z.EncBinary()
_ = yym2738
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
}
}
}
if yyr2732 || yy2arr2732 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2740 := z.EncBinary()
_ = yym2740
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 {
yym2741 := z.EncBinary()
_ = yym2741
if false {
} else {
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
}
}
}
if yyr2732 || yy2arr2732 {
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
yym2742 := z.DecBinary()
_ = yym2742
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2743 := r.ContainerType()
if yyct2743 == codecSelferValueTypeMap1234 {
yyl2743 := r.ReadMapStart()
if yyl2743 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2743, d)
}
} else if yyct2743 == codecSelferValueTypeArray1234 {
yyl2743 := r.ReadArrayStart()
if yyl2743 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2743, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EndpointSubset) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2744Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2744Slc
var yyhl2744 bool = l >= 0
for yyj2744 := 0; ; yyj2744++ {
if yyhl2744 {
if yyj2744 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2744Slc = r.DecodeBytes(yys2744Slc, true, true)
yys2744 := string(yys2744Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2744 {
case "Addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2745 := &x.Addresses
yym2746 := z.DecBinary()
_ = yym2746
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2745), d)
}
}
case "NotReadyAddresses":
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2747 := &x.NotReadyAddresses
yym2748 := z.DecBinary()
_ = yym2748
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2747), d)
}
}
case "Ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2749 := &x.Ports
yym2750 := z.DecBinary()
_ = yym2750
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2749), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2744)
} // end switch yys2744
} // end for yyj2744
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 yyj2751 int
var yyb2751 bool
var yyhl2751 bool = l >= 0
yyj2751++
if yyhl2751 {
yyb2751 = yyj2751 > l
} else {
yyb2751 = r.CheckBreak()
}
if yyb2751 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2752 := &x.Addresses
yym2753 := z.DecBinary()
_ = yym2753
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2752), d)
}
}
yyj2751++
if yyhl2751 {
yyb2751 = yyj2751 > l
} else {
yyb2751 = r.CheckBreak()
}
if yyb2751 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2754 := &x.NotReadyAddresses
yym2755 := z.DecBinary()
_ = yym2755
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2754), d)
}
}
yyj2751++
if yyhl2751 {
yyb2751 = yyj2751 > l
} else {
yyb2751 = r.CheckBreak()
}
if yyb2751 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2756 := &x.Ports
yym2757 := z.DecBinary()
_ = yym2757
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2756), d)
}
}
for {
yyj2751++
if yyhl2751 {
yyb2751 = yyj2751 > l
} else {
yyb2751 = r.CheckBreak()
}
if yyb2751 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2751-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 {
yym2758 := z.EncBinary()
_ = yym2758
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2759 := !z.EncBinary()
yy2arr2759 := z.EncBasicHandle().StructToArray
var yyq2759 [4]bool
_, _, _ = yysep2759, yyq2759, yy2arr2759
const yyr2759 bool = false
yyq2759[1] = x.Hostname != ""
yyq2759[2] = x.NodeName != nil
var yynn2759 int
if yyr2759 || yy2arr2759 {
r.EncodeArrayStart(4)
} else {
yynn2759 = 2
for _, b := range yyq2759 {
if b {
yynn2759++
}
}
r.EncodeMapStart(yynn2759)
yynn2759 = 0
}
if yyr2759 || yy2arr2759 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2761 := z.EncBinary()
_ = yym2761
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)
yym2762 := z.EncBinary()
_ = yym2762
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
if yyr2759 || yy2arr2759 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2759[1] {
yym2764 := z.EncBinary()
_ = yym2764
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2759[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2765 := z.EncBinary()
_ = yym2765
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2759 || yy2arr2759 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2759[2] {
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2767 := *x.NodeName
yym2768 := z.EncBinary()
_ = yym2768
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2767))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2759[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2769 := *x.NodeName
yym2770 := z.EncBinary()
_ = yym2770
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2769))
}
}
}
}
if yyr2759 || yy2arr2759 {
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 yyr2759 || yy2arr2759 {
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
yym2772 := z.DecBinary()
_ = yym2772
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2773 := r.ContainerType()
if yyct2773 == codecSelferValueTypeMap1234 {
yyl2773 := r.ReadMapStart()
if yyl2773 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2773, d)
}
} else if yyct2773 == codecSelferValueTypeArray1234 {
yyl2773 := r.ReadArrayStart()
if yyl2773 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2773, 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 yys2774Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2774Slc
var yyhl2774 bool = l >= 0
for yyj2774 := 0; ; yyj2774++ {
if yyhl2774 {
if yyj2774 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2774Slc = r.DecodeBytes(yys2774Slc, true, true)
yys2774 := string(yys2774Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2774 {
case "IP":
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
case "hostname":
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
case "nodeName":
if r.TryDecodeAsNil() {
if x.NodeName != nil {
x.NodeName = nil
}
} else {
if x.NodeName == nil {
x.NodeName = new(string)
}
yym2778 := z.DecBinary()
_ = yym2778
if false {
} else {
*((*string)(x.NodeName)) = r.DecodeString()
}
}
case "TargetRef":
if r.TryDecodeAsNil() {
if x.TargetRef != nil {
x.TargetRef = nil
}
} else {
if x.TargetRef == nil {
x.TargetRef = new(ObjectReference)
}
x.TargetRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2774)
} // end switch yys2774
} // end for yyj2774
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 yyj2780 int
var yyb2780 bool
var yyhl2780 bool = l >= 0
yyj2780++
if yyhl2780 {
yyb2780 = yyj2780 > l
} else {
yyb2780 = r.CheckBreak()
}
if yyb2780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2780++
if yyhl2780 {
yyb2780 = yyj2780 > l
} else {
yyb2780 = r.CheckBreak()
}
if yyb2780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
yyj2780++
if yyhl2780 {
yyb2780 = yyj2780 > l
} else {
yyb2780 = r.CheckBreak()
}
if yyb2780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.NodeName != nil {
x.NodeName = nil
}
} else {
if x.NodeName == nil {
x.NodeName = new(string)
}
yym2784 := z.DecBinary()
_ = yym2784
if false {
} else {
*((*string)(x.NodeName)) = r.DecodeString()
}
}
yyj2780++
if yyhl2780 {
yyb2780 = yyj2780 > l
} else {
yyb2780 = r.CheckBreak()
}
if yyb2780 {
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 {
yyj2780++
if yyhl2780 {
yyb2780 = yyj2780 > l
} else {
yyb2780 = r.CheckBreak()
}
if yyb2780 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2780-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 {
yym2786 := z.EncBinary()
_ = yym2786
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2787 := !z.EncBinary()
yy2arr2787 := z.EncBasicHandle().StructToArray
var yyq2787 [3]bool
_, _, _ = yysep2787, yyq2787, yy2arr2787
const yyr2787 bool = false
var yynn2787 int
if yyr2787 || yy2arr2787 {
r.EncodeArrayStart(3)
} else {
yynn2787 = 3
for _, b := range yyq2787 {
if b {
yynn2787++
}
}
r.EncodeMapStart(yynn2787)
yynn2787 = 0
}
if yyr2787 || yy2arr2787 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2789 := z.EncBinary()
_ = yym2789
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)
yym2790 := z.EncBinary()
_ = yym2790
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2787 || yy2arr2787 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2792 := z.EncBinary()
_ = yym2792
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2793 := z.EncBinary()
_ = yym2793
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2787 || yy2arr2787 {
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 yyr2787 || yy2arr2787 {
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
yym2795 := z.DecBinary()
_ = yym2795
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2796 := r.ContainerType()
if yyct2796 == codecSelferValueTypeMap1234 {
yyl2796 := r.ReadMapStart()
if yyl2796 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2796, d)
}
} else if yyct2796 == codecSelferValueTypeArray1234 {
yyl2796 := r.ReadArrayStart()
if yyl2796 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2796, 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 yys2797Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2797Slc
var yyhl2797 bool = l >= 0
for yyj2797 := 0; ; yyj2797++ {
if yyhl2797 {
if yyj2797 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2797Slc = r.DecodeBytes(yys2797Slc, true, true)
yys2797 := string(yys2797Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2797 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
case "Protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2797)
} // end switch yys2797
} // end for yyj2797
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 yyj2801 int
var yyb2801 bool
var yyhl2801 bool = l >= 0
yyj2801++
if yyhl2801 {
yyb2801 = yyj2801 > l
} else {
yyb2801 = r.CheckBreak()
}
if yyb2801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2801++
if yyhl2801 {
yyb2801 = yyj2801 > l
} else {
yyb2801 = r.CheckBreak()
}
if yyb2801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2801++
if yyhl2801 {
yyb2801 = yyj2801 > l
} else {
yyb2801 = r.CheckBreak()
}
if yyb2801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
for {
yyj2801++
if yyhl2801 {
yyb2801 = yyj2801 > l
} else {
yyb2801 = r.CheckBreak()
}
if yyb2801 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2801-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 {
yym2805 := z.EncBinary()
_ = yym2805
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2806 := !z.EncBinary()
yy2arr2806 := z.EncBasicHandle().StructToArray
var yyq2806 [4]bool
_, _, _ = yysep2806, yyq2806, yy2arr2806
const yyr2806 bool = false
yyq2806[0] = x.Kind != ""
yyq2806[1] = x.APIVersion != ""
yyq2806[2] = true
var yynn2806 int
if yyr2806 || yy2arr2806 {
r.EncodeArrayStart(4)
} else {
yynn2806 = 1
for _, b := range yyq2806 {
if b {
yynn2806++
}
}
r.EncodeMapStart(yynn2806)
yynn2806 = 0
}
if yyr2806 || yy2arr2806 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2806[0] {
yym2808 := z.EncBinary()
_ = yym2808
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2806[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2809 := z.EncBinary()
_ = yym2809
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2806 || yy2arr2806 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2806[1] {
yym2811 := z.EncBinary()
_ = yym2811
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2806[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2812 := z.EncBinary()
_ = yym2812
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2806 || yy2arr2806 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2806[2] {
yy2814 := &x.ListMeta
yym2815 := z.EncBinary()
_ = yym2815
if false {
} else if z.HasExtensions() && z.EncExt(yy2814) {
} else {
z.EncFallback(yy2814)
}
} else {
r.EncodeNil()
}
} else {
if yyq2806[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2816 := &x.ListMeta
yym2817 := z.EncBinary()
_ = yym2817
if false {
} else if z.HasExtensions() && z.EncExt(yy2816) {
} else {
z.EncFallback(yy2816)
}
}
}
if yyr2806 || yy2arr2806 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2819 := z.EncBinary()
_ = yym2819
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 {
yym2820 := z.EncBinary()
_ = yym2820
if false {
} else {
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
}
}
}
if yyr2806 || yy2arr2806 {
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
yym2821 := z.DecBinary()
_ = yym2821
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2822 := r.ContainerType()
if yyct2822 == codecSelferValueTypeMap1234 {
yyl2822 := r.ReadMapStart()
if yyl2822 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2822, d)
}
} else if yyct2822 == codecSelferValueTypeArray1234 {
yyl2822 := r.ReadArrayStart()
if yyl2822 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2822, 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 yys2823Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2823Slc
var yyhl2823 bool = l >= 0
for yyj2823 := 0; ; yyj2823++ {
if yyhl2823 {
if yyj2823 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2823Slc = r.DecodeBytes(yys2823Slc, true, true)
yys2823 := string(yys2823Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2823 {
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 {
yyv2826 := &x.ListMeta
yym2827 := z.DecBinary()
_ = yym2827
if false {
} else if z.HasExtensions() && z.DecExt(yyv2826) {
} else {
z.DecFallback(yyv2826, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2828 := &x.Items
yym2829 := z.DecBinary()
_ = yym2829
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2828), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2823)
} // end switch yys2823
} // end for yyj2823
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 yyj2830 int
var yyb2830 bool
var yyhl2830 bool = l >= 0
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2833 := &x.ListMeta
yym2834 := z.DecBinary()
_ = yym2834
if false {
} else if z.HasExtensions() && z.DecExt(yyv2833) {
} else {
z.DecFallback(yyv2833, false)
}
}
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2835 := &x.Items
yym2836 := z.DecBinary()
_ = yym2836
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2835), d)
}
}
for {
yyj2830++
if yyhl2830 {
yyb2830 = yyj2830 > l
} else {
yyb2830 = r.CheckBreak()
}
if yyb2830 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2830-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2837 := z.EncBinary()
_ = yym2837
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2838 := !z.EncBinary()
yy2arr2838 := z.EncBasicHandle().StructToArray
var yyq2838 [4]bool
_, _, _ = yysep2838, yyq2838, yy2arr2838
const yyr2838 bool = false
yyq2838[0] = x.PodCIDR != ""
yyq2838[1] = x.ExternalID != ""
yyq2838[2] = x.ProviderID != ""
yyq2838[3] = x.Unschedulable != false
var yynn2838 int
if yyr2838 || yy2arr2838 {
r.EncodeArrayStart(4)
} else {
yynn2838 = 0
for _, b := range yyq2838 {
if b {
yynn2838++
}
}
r.EncodeMapStart(yynn2838)
yynn2838 = 0
}
if yyr2838 || yy2arr2838 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2838[0] {
yym2840 := z.EncBinary()
_ = yym2840
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2838[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2841 := z.EncBinary()
_ = yym2841
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
}
}
if yyr2838 || yy2arr2838 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2838[1] {
yym2843 := z.EncBinary()
_ = yym2843
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2838[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2844 := z.EncBinary()
_ = yym2844
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
}
}
if yyr2838 || yy2arr2838 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2838[2] {
yym2846 := z.EncBinary()
_ = yym2846
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2838[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2847 := z.EncBinary()
_ = yym2847
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
}
}
if yyr2838 || yy2arr2838 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2838[3] {
yym2849 := z.EncBinary()
_ = yym2849
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2838[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2850 := z.EncBinary()
_ = yym2850
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
}
}
if yyr2838 || yy2arr2838 {
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
yym2851 := z.DecBinary()
_ = yym2851
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2852 := r.ContainerType()
if yyct2852 == codecSelferValueTypeMap1234 {
yyl2852 := r.ReadMapStart()
if yyl2852 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2852, d)
}
} else if yyct2852 == codecSelferValueTypeArray1234 {
yyl2852 := r.ReadArrayStart()
if yyl2852 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2852, 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 yys2853Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2853Slc
var yyhl2853 bool = l >= 0
for yyj2853 := 0; ; yyj2853++ {
if yyhl2853 {
if yyj2853 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2853Slc = r.DecodeBytes(yys2853Slc, true, true)
yys2853 := string(yys2853Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2853 {
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, yys2853)
} // end switch yys2853
} // end for yyj2853
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 yyj2858 int
var yyb2858 bool
var yyhl2858 bool = l >= 0
yyj2858++
if yyhl2858 {
yyb2858 = yyj2858 > l
} else {
yyb2858 = r.CheckBreak()
}
if yyb2858 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodCIDR = ""
} else {
x.PodCIDR = string(r.DecodeString())
}
yyj2858++
if yyhl2858 {
yyb2858 = yyj2858 > l
} else {
yyb2858 = r.CheckBreak()
}
if yyb2858 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalID = ""
} else {
x.ExternalID = string(r.DecodeString())
}
yyj2858++
if yyhl2858 {
yyb2858 = yyj2858 > l
} else {
yyb2858 = r.CheckBreak()
}
if yyb2858 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ProviderID = ""
} else {
x.ProviderID = string(r.DecodeString())
}
yyj2858++
if yyhl2858 {
yyb2858 = yyj2858 > l
} else {
yyb2858 = r.CheckBreak()
}
if yyb2858 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Unschedulable = false
} else {
x.Unschedulable = bool(r.DecodeBool())
}
for {
yyj2858++
if yyhl2858 {
yyb2858 = yyj2858 > l
} else {
yyb2858 = r.CheckBreak()
}
if yyb2858 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2858-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 {
yym2863 := z.EncBinary()
_ = yym2863
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2864 := !z.EncBinary()
yy2arr2864 := z.EncBasicHandle().StructToArray
var yyq2864 [1]bool
_, _, _ = yysep2864, yyq2864, yy2arr2864
const yyr2864 bool = false
var yynn2864 int
if yyr2864 || yy2arr2864 {
r.EncodeArrayStart(1)
} else {
yynn2864 = 1
for _, b := range yyq2864 {
if b {
yynn2864++
}
}
r.EncodeMapStart(yynn2864)
yynn2864 = 0
}
if yyr2864 || yy2arr2864 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2866 := z.EncBinary()
_ = yym2866
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2867 := z.EncBinary()
_ = yym2867
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2864 || yy2arr2864 {
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
yym2868 := z.DecBinary()
_ = yym2868
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2869 := r.ContainerType()
if yyct2869 == codecSelferValueTypeMap1234 {
yyl2869 := r.ReadMapStart()
if yyl2869 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2869, d)
}
} else if yyct2869 == codecSelferValueTypeArray1234 {
yyl2869 := r.ReadArrayStart()
if yyl2869 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2869, 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 yys2870Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2870Slc
var yyhl2870 bool = l >= 0
for yyj2870 := 0; ; yyj2870++ {
if yyhl2870 {
if yyj2870 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2870Slc = r.DecodeBytes(yys2870Slc, true, true)
yys2870 := string(yys2870Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2870 {
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2870)
} // end switch yys2870
} // end for yyj2870
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 yyj2872 int
var yyb2872 bool
var yyhl2872 bool = l >= 0
yyj2872++
if yyhl2872 {
yyb2872 = yyj2872 > l
} else {
yyb2872 = r.CheckBreak()
}
if yyb2872 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
for {
yyj2872++
if yyhl2872 {
yyb2872 = yyj2872 > l
} else {
yyb2872 = r.CheckBreak()
}
if yyb2872 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2872-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 {
yym2874 := z.EncBinary()
_ = yym2874
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2875 := !z.EncBinary()
yy2arr2875 := z.EncBasicHandle().StructToArray
var yyq2875 [1]bool
_, _, _ = yysep2875, yyq2875, yy2arr2875
const yyr2875 bool = false
yyq2875[0] = true
var yynn2875 int
if yyr2875 || yy2arr2875 {
r.EncodeArrayStart(1)
} else {
yynn2875 = 0
for _, b := range yyq2875 {
if b {
yynn2875++
}
}
r.EncodeMapStart(yynn2875)
yynn2875 = 0
}
if yyr2875 || yy2arr2875 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2875[0] {
yy2877 := &x.KubeletEndpoint
yy2877.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2875[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2878 := &x.KubeletEndpoint
yy2878.CodecEncodeSelf(e)
}
}
if yyr2875 || yy2arr2875 {
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
yym2879 := z.DecBinary()
_ = yym2879
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2880 := r.ContainerType()
if yyct2880 == codecSelferValueTypeMap1234 {
yyl2880 := r.ReadMapStart()
if yyl2880 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2880, d)
}
} else if yyct2880 == codecSelferValueTypeArray1234 {
yyl2880 := r.ReadArrayStart()
if yyl2880 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2880, 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 yys2881Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2881Slc
var yyhl2881 bool = l >= 0
for yyj2881 := 0; ; yyj2881++ {
if yyhl2881 {
if yyj2881 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2881Slc = r.DecodeBytes(yys2881Slc, true, true)
yys2881 := string(yys2881Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2881 {
case "kubeletEndpoint":
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2882 := &x.KubeletEndpoint
yyv2882.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2881)
} // end switch yys2881
} // end for yyj2881
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 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.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2884 := &x.KubeletEndpoint
yyv2884.CodecDecodeSelf(d)
}
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 *NodeSystemInfo) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2885 := z.EncBinary()
_ = yym2885
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2886 := !z.EncBinary()
yy2arr2886 := z.EncBasicHandle().StructToArray
var yyq2886 [10]bool
_, _, _ = yysep2886, yyq2886, yy2arr2886
const yyr2886 bool = false
var yynn2886 int
if yyr2886 || yy2arr2886 {
r.EncodeArrayStart(10)
} else {
yynn2886 = 10
for _, b := range yyq2886 {
if b {
yynn2886++
}
}
r.EncodeMapStart(yynn2886)
yynn2886 = 0
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2888 := z.EncBinary()
_ = yym2888
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)
yym2889 := z.EncBinary()
_ = yym2889
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2891 := z.EncBinary()
_ = yym2891
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)
yym2892 := z.EncBinary()
_ = yym2892
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2894 := z.EncBinary()
_ = yym2894
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)
yym2895 := z.EncBinary()
_ = yym2895
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2897 := z.EncBinary()
_ = yym2897
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)
yym2898 := z.EncBinary()
_ = yym2898
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2900 := z.EncBinary()
_ = yym2900
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)
yym2901 := z.EncBinary()
_ = yym2901
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2903 := z.EncBinary()
_ = yym2903
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)
yym2904 := z.EncBinary()
_ = yym2904
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2906 := z.EncBinary()
_ = yym2906
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)
yym2907 := z.EncBinary()
_ = yym2907
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2909 := z.EncBinary()
_ = yym2909
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)
yym2910 := z.EncBinary()
_ = yym2910
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2912 := z.EncBinary()
_ = yym2912
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("operatingSystem"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2913 := z.EncBinary()
_ = yym2913
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
}
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2915 := z.EncBinary()
_ = yym2915
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("architecture"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2916 := z.EncBinary()
_ = yym2916
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
}
}
if yyr2886 || yy2arr2886 {
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
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 *NodeSystemInfo) 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 "machineID":
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
case "systemUUID":
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
case "bootID":
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
case "kernelVersion":
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
case "osImage":
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
case "containerRuntimeVersion":
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
case "kubeletVersion":
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
case "kubeProxyVersion":
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
case "operatingSystem":
if r.TryDecodeAsNil() {
x.OperatingSystem = ""
} else {
x.OperatingSystem = string(r.DecodeString())
}
case "architecture":
if r.TryDecodeAsNil() {
x.Architecture = ""
} else {
x.Architecture = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2919)
} // end switch yys2919
} // end for yyj2919
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 yyj2930 int
var yyb2930 bool
var yyhl2930 bool = l >= 0
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OperatingSystem = ""
} else {
x.OperatingSystem = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Architecture = ""
} else {
x.Architecture = string(r.DecodeString())
}
for {
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2930-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 {
yym2941 := z.EncBinary()
_ = yym2941
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2942 := !z.EncBinary()
yy2arr2942 := z.EncBasicHandle().StructToArray
var yyq2942 [10]bool
_, _, _ = yysep2942, yyq2942, yy2arr2942
const yyr2942 bool = false
yyq2942[0] = len(x.Capacity) != 0
yyq2942[1] = len(x.Allocatable) != 0
yyq2942[2] = x.Phase != ""
yyq2942[3] = len(x.Conditions) != 0
yyq2942[4] = len(x.Addresses) != 0
yyq2942[5] = true
yyq2942[6] = true
yyq2942[7] = len(x.Images) != 0
yyq2942[8] = len(x.VolumesInUse) != 0
yyq2942[9] = len(x.VolumesAttached) != 0
var yynn2942 int
if yyr2942 || yy2arr2942 {
r.EncodeArrayStart(10)
} else {
yynn2942 = 0
for _, b := range yyq2942 {
if b {
yynn2942++
}
}
r.EncodeMapStart(yynn2942)
yynn2942 = 0
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2942[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 yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[1] {
if x.Allocatable == nil {
r.EncodeNil()
} else {
x.Allocatable.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2942[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 yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[2] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2942[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2947 := z.EncBinary()
_ = yym2947
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2942[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2948 := z.EncBinary()
_ = yym2948
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
}
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[4] {
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2950 := z.EncBinary()
_ = yym2950
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2942[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2951 := z.EncBinary()
_ = yym2951
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
}
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[5] {
yy2953 := &x.DaemonEndpoints
yy2953.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2942[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2954 := &x.DaemonEndpoints
yy2954.CodecEncodeSelf(e)
}
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[6] {
yy2956 := &x.NodeInfo
yy2956.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2942[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2957 := &x.NodeInfo
yy2957.CodecEncodeSelf(e)
}
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[7] {
if x.Images == nil {
r.EncodeNil()
} else {
yym2959 := z.EncBinary()
_ = yym2959
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2942[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("images"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Images == nil {
r.EncodeNil()
} else {
yym2960 := z.EncBinary()
_ = yym2960
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
}
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[8] {
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym2962 := z.EncBinary()
_ = yym2962
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2942[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesInUse"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym2963 := z.EncBinary()
_ = yym2963
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
}
}
if yyr2942 || yy2arr2942 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2942[9] {
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym2965 := z.EncBinary()
_ = yym2965
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2942[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesAttached"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym2966 := z.EncBinary()
_ = yym2966
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
}
}
if yyr2942 || yy2arr2942 {
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
yym2967 := z.DecBinary()
_ = yym2967
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2968 := r.ContainerType()
if yyct2968 == codecSelferValueTypeMap1234 {
yyl2968 := r.ReadMapStart()
if yyl2968 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2968, d)
}
} else if yyct2968 == codecSelferValueTypeArray1234 {
yyl2968 := r.ReadArrayStart()
if yyl2968 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2968, 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 yys2969Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2969Slc
var yyhl2969 bool = l >= 0
for yyj2969 := 0; ; yyj2969++ {
if yyhl2969 {
if yyj2969 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2969Slc = r.DecodeBytes(yys2969Slc, true, true)
yys2969 := string(yys2969Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2969 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2970 := &x.Capacity
yyv2970.CodecDecodeSelf(d)
}
case "allocatable":
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2971 := &x.Allocatable
yyv2971.CodecDecodeSelf(d)
}
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2973 := &x.Conditions
yym2974 := z.DecBinary()
_ = yym2974
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2973), d)
}
}
case "addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2975 := &x.Addresses
yym2976 := z.DecBinary()
_ = yym2976
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2975), d)
}
}
case "daemonEndpoints":
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2977 := &x.DaemonEndpoints
yyv2977.CodecDecodeSelf(d)
}
case "nodeInfo":
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2978 := &x.NodeInfo
yyv2978.CodecDecodeSelf(d)
}
case "images":
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2979 := &x.Images
yym2980 := z.DecBinary()
_ = yym2980
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2979), d)
}
}
case "volumesInUse":
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv2981 := &x.VolumesInUse
yym2982 := z.DecBinary()
_ = yym2982
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2981), d)
}
}
case "volumesAttached":
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv2983 := &x.VolumesAttached
yym2984 := z.DecBinary()
_ = yym2984
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2983), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2969)
} // end switch yys2969
} // end for yyj2969
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 yyj2985 int
var yyb2985 bool
var yyhl2985 bool = l >= 0
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2986 := &x.Capacity
yyv2986.CodecDecodeSelf(d)
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2987 := &x.Allocatable
yyv2987.CodecDecodeSelf(d)
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2989 := &x.Conditions
yym2990 := z.DecBinary()
_ = yym2990
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2989), d)
}
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2991 := &x.Addresses
yym2992 := z.DecBinary()
_ = yym2992
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2991), d)
}
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2993 := &x.DaemonEndpoints
yyv2993.CodecDecodeSelf(d)
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2994 := &x.NodeInfo
yyv2994.CodecDecodeSelf(d)
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2995 := &x.Images
yym2996 := z.DecBinary()
_ = yym2996
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2995), d)
}
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv2997 := &x.VolumesInUse
yym2998 := z.DecBinary()
_ = yym2998
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2997), d)
}
}
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv2999 := &x.VolumesAttached
yym3000 := z.DecBinary()
_ = yym3000
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2999), d)
}
}
for {
yyj2985++
if yyhl2985 {
yyb2985 = yyj2985 > l
} else {
yyb2985 = r.CheckBreak()
}
if yyb2985 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2985-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3001 := z.EncBinary()
_ = yym3001
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *UniqueVolumeName) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3002 := z.DecBinary()
_ = yym3002
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *AttachedVolume) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3003 := z.EncBinary()
_ = yym3003
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3004 := !z.EncBinary()
yy2arr3004 := z.EncBasicHandle().StructToArray
var yyq3004 [2]bool
_, _, _ = yysep3004, yyq3004, yy2arr3004
const yyr3004 bool = false
var yynn3004 int
if yyr3004 || yy2arr3004 {
r.EncodeArrayStart(2)
} else {
yynn3004 = 2
for _, b := range yyq3004 {
if b {
yynn3004++
}
}
r.EncodeMapStart(yynn3004)
yynn3004 = 0
}
if yyr3004 || yy2arr3004 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Name.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Name.CodecEncodeSelf(e)
}
if yyr3004 || yy2arr3004 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3007 := z.EncBinary()
_ = yym3007
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("devicePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3008 := z.EncBinary()
_ = yym3008
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
}
}
if yyr3004 || yy2arr3004 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AttachedVolume) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3009 := z.DecBinary()
_ = yym3009
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3010 := r.ContainerType()
if yyct3010 == codecSelferValueTypeMap1234 {
yyl3010 := r.ReadMapStart()
if yyl3010 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3010, d)
}
} else if yyct3010 == codecSelferValueTypeArray1234 {
yyl3010 := r.ReadArrayStart()
if yyl3010 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3010, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AttachedVolume) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3011Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3011Slc
var yyhl3011 bool = l >= 0
for yyj3011 := 0; ; yyj3011++ {
if yyhl3011 {
if yyj3011 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3011Slc = r.DecodeBytes(yys3011Slc, true, true)
yys3011 := string(yys3011Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3011 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = UniqueVolumeName(r.DecodeString())
}
case "devicePath":
if r.TryDecodeAsNil() {
x.DevicePath = ""
} else {
x.DevicePath = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3011)
} // end switch yys3011
} // end for yyj3011
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AttachedVolume) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3014 int
var yyb3014 bool
var yyhl3014 bool = l >= 0
yyj3014++
if yyhl3014 {
yyb3014 = yyj3014 > l
} else {
yyb3014 = r.CheckBreak()
}
if yyb3014 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = UniqueVolumeName(r.DecodeString())
}
yyj3014++
if yyhl3014 {
yyb3014 = yyj3014 > l
} else {
yyb3014 = r.CheckBreak()
}
if yyb3014 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DevicePath = ""
} else {
x.DevicePath = string(r.DecodeString())
}
for {
yyj3014++
if yyhl3014 {
yyb3014 = yyj3014 > l
} else {
yyb3014 = r.CheckBreak()
}
if yyb3014 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3014-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *AvoidPods) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3017 := z.EncBinary()
_ = yym3017
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3018 := !z.EncBinary()
yy2arr3018 := z.EncBasicHandle().StructToArray
var yyq3018 [1]bool
_, _, _ = yysep3018, yyq3018, yy2arr3018
const yyr3018 bool = false
yyq3018[0] = len(x.PreferAvoidPods) != 0
var yynn3018 int
if yyr3018 || yy2arr3018 {
r.EncodeArrayStart(1)
} else {
yynn3018 = 0
for _, b := range yyq3018 {
if b {
yynn3018++
}
}
r.EncodeMapStart(yynn3018)
yynn3018 = 0
}
if yyr3018 || yy2arr3018 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3018[0] {
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3020 := z.EncBinary()
_ = yym3020
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3018[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3021 := z.EncBinary()
_ = yym3021
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
}
}
if yyr3018 || yy2arr3018 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *AvoidPods) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3022 := z.DecBinary()
_ = yym3022
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3023 := r.ContainerType()
if yyct3023 == codecSelferValueTypeMap1234 {
yyl3023 := r.ReadMapStart()
if yyl3023 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3023, d)
}
} else if yyct3023 == codecSelferValueTypeArray1234 {
yyl3023 := r.ReadArrayStart()
if yyl3023 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3023, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *AvoidPods) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3024Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3024Slc
var yyhl3024 bool = l >= 0
for yyj3024 := 0; ; yyj3024++ {
if yyhl3024 {
if yyj3024 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3024Slc = r.DecodeBytes(yys3024Slc, true, true)
yys3024 := string(yys3024Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3024 {
case "preferAvoidPods":
if r.TryDecodeAsNil() {
x.PreferAvoidPods = nil
} else {
yyv3025 := &x.PreferAvoidPods
yym3026 := z.DecBinary()
_ = yym3026
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3025), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3024)
} // end switch yys3024
} // end for yyj3024
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *AvoidPods) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3027 int
var yyb3027 bool
var yyhl3027 bool = l >= 0
yyj3027++
if yyhl3027 {
yyb3027 = yyj3027 > l
} else {
yyb3027 = r.CheckBreak()
}
if yyb3027 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferAvoidPods = nil
} else {
yyv3028 := &x.PreferAvoidPods
yym3029 := z.DecBinary()
_ = yym3029
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3028), d)
}
}
for {
yyj3027++
if yyhl3027 {
yyb3027 = yyj3027 > l
} else {
yyb3027 = r.CheckBreak()
}
if yyb3027 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3027-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3030 := z.EncBinary()
_ = yym3030
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3031 := !z.EncBinary()
yy2arr3031 := z.EncBasicHandle().StructToArray
var yyq3031 [4]bool
_, _, _ = yysep3031, yyq3031, yy2arr3031
const yyr3031 bool = false
yyq3031[1] = true
yyq3031[2] = x.Reason != ""
yyq3031[3] = x.Message != ""
var yynn3031 int
if yyr3031 || yy2arr3031 {
r.EncodeArrayStart(4)
} else {
yynn3031 = 1
for _, b := range yyq3031 {
if b {
yynn3031++
}
}
r.EncodeMapStart(yynn3031)
yynn3031 = 0
}
if yyr3031 || yy2arr3031 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3033 := &x.PodSignature
yy3033.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podSignature"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3034 := &x.PodSignature
yy3034.CodecEncodeSelf(e)
}
if yyr3031 || yy2arr3031 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3031[1] {
yy3036 := &x.EvictionTime
yym3037 := z.EncBinary()
_ = yym3037
if false {
} else if z.HasExtensions() && z.EncExt(yy3036) {
} else if yym3037 {
z.EncBinaryMarshal(yy3036)
} else if !yym3037 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3036)
} else {
z.EncFallback(yy3036)
}
} else {
r.EncodeNil()
}
} else {
if yyq3031[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("evictionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3038 := &x.EvictionTime
yym3039 := z.EncBinary()
_ = yym3039
if false {
} else if z.HasExtensions() && z.EncExt(yy3038) {
} else if yym3039 {
z.EncBinaryMarshal(yy3038)
} else if !yym3039 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3038)
} else {
z.EncFallback(yy3038)
}
}
}
if yyr3031 || yy2arr3031 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3031[2] {
yym3041 := z.EncBinary()
_ = yym3041
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3031[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3042 := z.EncBinary()
_ = yym3042
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3031 || yy2arr3031 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3031[3] {
yym3044 := z.EncBinary()
_ = yym3044
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3031[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3045 := z.EncBinary()
_ = yym3045
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3031 || yy2arr3031 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PreferAvoidPodsEntry) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3046 := z.DecBinary()
_ = yym3046
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3047 := r.ContainerType()
if yyct3047 == codecSelferValueTypeMap1234 {
yyl3047 := r.ReadMapStart()
if yyl3047 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3047, d)
}
} else if yyct3047 == codecSelferValueTypeArray1234 {
yyl3047 := r.ReadArrayStart()
if yyl3047 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3047, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PreferAvoidPodsEntry) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3048Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3048Slc
var yyhl3048 bool = l >= 0
for yyj3048 := 0; ; yyj3048++ {
if yyhl3048 {
if yyj3048 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3048Slc = r.DecodeBytes(yys3048Slc, true, true)
yys3048 := string(yys3048Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3048 {
case "podSignature":
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3049 := &x.PodSignature
yyv3049.CodecDecodeSelf(d)
}
case "evictionTime":
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3050 := &x.EvictionTime
yym3051 := z.DecBinary()
_ = yym3051
if false {
} else if z.HasExtensions() && z.DecExt(yyv3050) {
} else if yym3051 {
z.DecBinaryUnmarshal(yyv3050)
} else if !yym3051 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3050)
} else {
z.DecFallback(yyv3050, 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, yys3048)
} // end switch yys3048
} // end for yyj3048
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PreferAvoidPodsEntry) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3054 int
var yyb3054 bool
var yyhl3054 bool = l >= 0
yyj3054++
if yyhl3054 {
yyb3054 = yyj3054 > l
} else {
yyb3054 = r.CheckBreak()
}
if yyb3054 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3055 := &x.PodSignature
yyv3055.CodecDecodeSelf(d)
}
yyj3054++
if yyhl3054 {
yyb3054 = yyj3054 > l
} else {
yyb3054 = r.CheckBreak()
}
if yyb3054 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3056 := &x.EvictionTime
yym3057 := z.DecBinary()
_ = yym3057
if false {
} else if z.HasExtensions() && z.DecExt(yyv3056) {
} else if yym3057 {
z.DecBinaryUnmarshal(yyv3056)
} else if !yym3057 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3056)
} else {
z.DecFallback(yyv3056, false)
}
}
yyj3054++
if yyhl3054 {
yyb3054 = yyj3054 > l
} else {
yyb3054 = r.CheckBreak()
}
if yyb3054 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3054++
if yyhl3054 {
yyb3054 = yyj3054 > l
} else {
yyb3054 = r.CheckBreak()
}
if yyb3054 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3054++
if yyhl3054 {
yyb3054 = yyj3054 > l
} else {
yyb3054 = r.CheckBreak()
}
if yyb3054 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3054-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodSignature) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3060 := z.EncBinary()
_ = yym3060
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3061 := !z.EncBinary()
yy2arr3061 := z.EncBasicHandle().StructToArray
var yyq3061 [1]bool
_, _, _ = yysep3061, yyq3061, yy2arr3061
const yyr3061 bool = false
yyq3061[0] = x.PodController != nil
var yynn3061 int
if yyr3061 || yy2arr3061 {
r.EncodeArrayStart(1)
} else {
yynn3061 = 0
for _, b := range yyq3061 {
if b {
yynn3061++
}
}
r.EncodeMapStart(yynn3061)
yynn3061 = 0
}
if yyr3061 || yy2arr3061 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3061[0] {
if x.PodController == nil {
r.EncodeNil()
} else {
x.PodController.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3061[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podController"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PodController == nil {
r.EncodeNil()
} else {
x.PodController.CodecEncodeSelf(e)
}
}
}
if yyr3061 || yy2arr3061 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *PodSignature) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3063 := z.DecBinary()
_ = yym3063
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3064 := r.ContainerType()
if yyct3064 == codecSelferValueTypeMap1234 {
yyl3064 := r.ReadMapStart()
if yyl3064 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3064, d)
}
} else if yyct3064 == codecSelferValueTypeArray1234 {
yyl3064 := r.ReadArrayStart()
if yyl3064 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3064, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodSignature) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3065Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3065Slc
var yyhl3065 bool = l >= 0
for yyj3065 := 0; ; yyj3065++ {
if yyhl3065 {
if yyj3065 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3065Slc = r.DecodeBytes(yys3065Slc, true, true)
yys3065 := string(yys3065Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3065 {
case "podController":
if r.TryDecodeAsNil() {
if x.PodController != nil {
x.PodController = nil
}
} else {
if x.PodController == nil {
x.PodController = new(OwnerReference)
}
x.PodController.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3065)
} // end switch yys3065
} // end for yyj3065
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *PodSignature) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3067 int
var yyb3067 bool
var yyhl3067 bool = l >= 0
yyj3067++
if yyhl3067 {
yyb3067 = yyj3067 > l
} else {
yyb3067 = r.CheckBreak()
}
if yyb3067 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.PodController != nil {
x.PodController = nil
}
} else {
if x.PodController == nil {
x.PodController = new(OwnerReference)
}
x.PodController.CodecDecodeSelf(d)
}
for {
yyj3067++
if yyhl3067 {
yyb3067 = yyj3067 > l
} else {
yyb3067 = r.CheckBreak()
}
if yyb3067 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3067-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 {
yym3069 := z.EncBinary()
_ = yym3069
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3070 := !z.EncBinary()
yy2arr3070 := z.EncBasicHandle().StructToArray
var yyq3070 [2]bool
_, _, _ = yysep3070, yyq3070, yy2arr3070
const yyr3070 bool = false
yyq3070[1] = x.SizeBytes != 0
var yynn3070 int
if yyr3070 || yy2arr3070 {
r.EncodeArrayStart(2)
} else {
yynn3070 = 1
for _, b := range yyq3070 {
if b {
yynn3070++
}
}
r.EncodeMapStart(yynn3070)
yynn3070 = 0
}
if yyr3070 || yy2arr3070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Names == nil {
r.EncodeNil()
} else {
yym3072 := z.EncBinary()
_ = yym3072
if false {
} else {
z.F.EncSliceStringV(x.Names, false, e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("names"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Names == nil {
r.EncodeNil()
} else {
yym3073 := z.EncBinary()
_ = yym3073
if false {
} else {
z.F.EncSliceStringV(x.Names, false, e)
}
}
}
if yyr3070 || yy2arr3070 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3070[1] {
yym3075 := z.EncBinary()
_ = yym3075
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3070[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sizeBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3076 := z.EncBinary()
_ = yym3076
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
}
}
if yyr3070 || yy2arr3070 {
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
yym3077 := z.DecBinary()
_ = yym3077
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3078 := r.ContainerType()
if yyct3078 == codecSelferValueTypeMap1234 {
yyl3078 := r.ReadMapStart()
if yyl3078 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3078, d)
}
} else if yyct3078 == codecSelferValueTypeArray1234 {
yyl3078 := r.ReadArrayStart()
if yyl3078 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3078, 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 yys3079Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3079Slc
var yyhl3079 bool = l >= 0
for yyj3079 := 0; ; yyj3079++ {
if yyhl3079 {
if yyj3079 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3079Slc = r.DecodeBytes(yys3079Slc, true, true)
yys3079 := string(yys3079Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3079 {
case "names":
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3080 := &x.Names
yym3081 := z.DecBinary()
_ = yym3081
if false {
} else {
z.F.DecSliceStringX(yyv3080, false, d)
}
}
case "sizeBytes":
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys3079)
} // end switch yys3079
} // end for yyj3079
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 yyj3083 int
var yyb3083 bool
var yyhl3083 bool = l >= 0
yyj3083++
if yyhl3083 {
yyb3083 = yyj3083 > l
} else {
yyb3083 = r.CheckBreak()
}
if yyb3083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3084 := &x.Names
yym3085 := z.DecBinary()
_ = yym3085
if false {
} else {
z.F.DecSliceStringX(yyv3084, false, d)
}
}
yyj3083++
if yyhl3083 {
yyb3083 = yyj3083 > l
} else {
yyb3083 = r.CheckBreak()
}
if yyb3083 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
for {
yyj3083++
if yyhl3083 {
yyb3083 = yyj3083 > l
} else {
yyb3083 = r.CheckBreak()
}
if yyb3083 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3083-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3087 := z.EncBinary()
_ = yym3087
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
yym3088 := z.DecBinary()
_ = yym3088
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
yym3089 := z.EncBinary()
_ = yym3089
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
yym3090 := z.DecBinary()
_ = yym3090
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 {
yym3091 := z.EncBinary()
_ = yym3091
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3092 := !z.EncBinary()
yy2arr3092 := z.EncBasicHandle().StructToArray
var yyq3092 [6]bool
_, _, _ = yysep3092, yyq3092, yy2arr3092
const yyr3092 bool = false
yyq3092[2] = true
yyq3092[3] = true
yyq3092[4] = x.Reason != ""
yyq3092[5] = x.Message != ""
var yynn3092 int
if yyr3092 || yy2arr3092 {
r.EncodeArrayStart(6)
} else {
yynn3092 = 2
for _, b := range yyq3092 {
if b {
yynn3092++
}
}
r.EncodeMapStart(yynn3092)
yynn3092 = 0
}
if yyr3092 || yy2arr3092 {
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 yyr3092 || yy2arr3092 {
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 yyr3092 || yy2arr3092 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3092[2] {
yy3096 := &x.LastHeartbeatTime
yym3097 := z.EncBinary()
_ = yym3097
if false {
} else if z.HasExtensions() && z.EncExt(yy3096) {
} else if yym3097 {
z.EncBinaryMarshal(yy3096)
} else if !yym3097 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3096)
} else {
z.EncFallback(yy3096)
}
} else {
r.EncodeNil()
}
} else {
if yyq3092[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3098 := &x.LastHeartbeatTime
yym3099 := z.EncBinary()
_ = yym3099
if false {
} else if z.HasExtensions() && z.EncExt(yy3098) {
} else if yym3099 {
z.EncBinaryMarshal(yy3098)
} else if !yym3099 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3098)
} else {
z.EncFallback(yy3098)
}
}
}
if yyr3092 || yy2arr3092 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3092[3] {
yy3101 := &x.LastTransitionTime
yym3102 := z.EncBinary()
_ = yym3102
if false {
} else if z.HasExtensions() && z.EncExt(yy3101) {
} else if yym3102 {
z.EncBinaryMarshal(yy3101)
} else if !yym3102 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3101)
} else {
z.EncFallback(yy3101)
}
} else {
r.EncodeNil()
}
} else {
if yyq3092[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3103 := &x.LastTransitionTime
yym3104 := z.EncBinary()
_ = yym3104
if false {
} else if z.HasExtensions() && z.EncExt(yy3103) {
} else if yym3104 {
z.EncBinaryMarshal(yy3103)
} else if !yym3104 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3103)
} else {
z.EncFallback(yy3103)
}
}
}
if yyr3092 || yy2arr3092 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3092[4] {
yym3106 := z.EncBinary()
_ = yym3106
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3092[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3107 := z.EncBinary()
_ = yym3107
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3092 || yy2arr3092 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3092[5] {
yym3109 := z.EncBinary()
_ = yym3109
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3092[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3110 := z.EncBinary()
_ = yym3110
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3092 || yy2arr3092 {
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
yym3111 := z.DecBinary()
_ = yym3111
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3112 := r.ContainerType()
if yyct3112 == codecSelferValueTypeMap1234 {
yyl3112 := r.ReadMapStart()
if yyl3112 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3112, d)
}
} else if yyct3112 == codecSelferValueTypeArray1234 {
yyl3112 := r.ReadArrayStart()
if yyl3112 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3112, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3113Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3113Slc
var yyhl3113 bool = l >= 0
for yyj3113 := 0; ; yyj3113++ {
if yyhl3113 {
if yyj3113 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3113Slc = r.DecodeBytes(yys3113Slc, true, true)
yys3113 := string(yys3113Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3113 {
case "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 {
yyv3116 := &x.LastHeartbeatTime
yym3117 := z.DecBinary()
_ = yym3117
if false {
} else if z.HasExtensions() && z.DecExt(yyv3116) {
} else if yym3117 {
z.DecBinaryUnmarshal(yyv3116)
} else if !yym3117 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3116)
} else {
z.DecFallback(yyv3116, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3118 := &x.LastTransitionTime
yym3119 := z.DecBinary()
_ = yym3119
if false {
} else if z.HasExtensions() && z.DecExt(yyv3118) {
} else if yym3119 {
z.DecBinaryUnmarshal(yyv3118)
} else if !yym3119 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3118)
} else {
z.DecFallback(yyv3118, 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, yys3113)
} // end switch yys3113
} // end for yyj3113
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 yyj3122 int
var yyb3122 bool
var yyhl3122 bool = l >= 0
yyj3122++
if yyhl3122 {
yyb3122 = yyj3122 > l
} else {
yyb3122 = r.CheckBreak()
}
if yyb3122 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeConditionType(r.DecodeString())
}
yyj3122++
if yyhl3122 {
yyb3122 = yyj3122 > l
} else {
yyb3122 = r.CheckBreak()
}
if yyb3122 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj3122++
if yyhl3122 {
yyb3122 = yyj3122 > l
} else {
yyb3122 = r.CheckBreak()
}
if yyb3122 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastHeartbeatTime = pkg2_unversioned.Time{}
} else {
yyv3125 := &x.LastHeartbeatTime
yym3126 := z.DecBinary()
_ = yym3126
if false {
} else if z.HasExtensions() && z.DecExt(yyv3125) {
} else if yym3126 {
z.DecBinaryUnmarshal(yyv3125)
} else if !yym3126 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3125)
} else {
z.DecFallback(yyv3125, false)
}
}
yyj3122++
if yyhl3122 {
yyb3122 = yyj3122 > l
} else {
yyb3122 = r.CheckBreak()
}
if yyb3122 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3127 := &x.LastTransitionTime
yym3128 := z.DecBinary()
_ = yym3128
if false {
} else if z.HasExtensions() && z.DecExt(yyv3127) {
} else if yym3128 {
z.DecBinaryUnmarshal(yyv3127)
} else if !yym3128 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3127)
} else {
z.DecFallback(yyv3127, false)
}
}
yyj3122++
if yyhl3122 {
yyb3122 = yyj3122 > l
} else {
yyb3122 = r.CheckBreak()
}
if yyb3122 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3122++
if yyhl3122 {
yyb3122 = yyj3122 > l
} else {
yyb3122 = r.CheckBreak()
}
if yyb3122 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3122++
if yyhl3122 {
yyb3122 = yyj3122 > l
} else {
yyb3122 = r.CheckBreak()
}
if yyb3122 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3122-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3131 := z.EncBinary()
_ = yym3131
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
yym3132 := z.DecBinary()
_ = yym3132
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 {
yym3133 := z.EncBinary()
_ = yym3133
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3134 := !z.EncBinary()
yy2arr3134 := z.EncBasicHandle().StructToArray
var yyq3134 [2]bool
_, _, _ = yysep3134, yyq3134, yy2arr3134
const yyr3134 bool = false
var yynn3134 int
if yyr3134 || yy2arr3134 {
r.EncodeArrayStart(2)
} else {
yynn3134 = 2
for _, b := range yyq3134 {
if b {
yynn3134++
}
}
r.EncodeMapStart(yynn3134)
yynn3134 = 0
}
if yyr3134 || yy2arr3134 {
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 yyr3134 || yy2arr3134 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3137 := z.EncBinary()
_ = yym3137
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)
yym3138 := z.EncBinary()
_ = yym3138
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
}
}
if yyr3134 || yy2arr3134 {
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
yym3139 := z.DecBinary()
_ = yym3139
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3140 := r.ContainerType()
if yyct3140 == codecSelferValueTypeMap1234 {
yyl3140 := r.ReadMapStart()
if yyl3140 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3140, d)
}
} else if yyct3140 == codecSelferValueTypeArray1234 {
yyl3140 := r.ReadArrayStart()
if yyl3140 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3140, 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 yys3141Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3141Slc
var yyhl3141 bool = l >= 0
for yyj3141 := 0; ; yyj3141++ {
if yyhl3141 {
if yyj3141 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3141Slc = r.DecodeBytes(yys3141Slc, true, true)
yys3141 := string(yys3141Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3141 {
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, yys3141)
} // end switch yys3141
} // end for yyj3141
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 yyj3144 int
var yyb3144 bool
var yyhl3144 bool = l >= 0
yyj3144++
if yyhl3144 {
yyb3144 = yyj3144 > l
} else {
yyb3144 = r.CheckBreak()
}
if yyb3144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeAddressType(r.DecodeString())
}
yyj3144++
if yyhl3144 {
yyb3144 = yyj3144 > l
} else {
yyb3144 = r.CheckBreak()
}
if yyb3144 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Address = ""
} else {
x.Address = string(r.DecodeString())
}
for {
yyj3144++
if yyhl3144 {
yyb3144 = yyj3144 > l
} else {
yyb3144 = r.CheckBreak()
}
if yyb3144 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3144-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 {
yym3147 := z.EncBinary()
_ = yym3147
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3148 := !z.EncBinary()
yy2arr3148 := z.EncBasicHandle().StructToArray
var yyq3148 [1]bool
_, _, _ = yysep3148, yyq3148, yy2arr3148
const yyr3148 bool = false
yyq3148[0] = len(x.Capacity) != 0
var yynn3148 int
if yyr3148 || yy2arr3148 {
r.EncodeArrayStart(1)
} else {
yynn3148 = 0
for _, b := range yyq3148 {
if b {
yynn3148++
}
}
r.EncodeMapStart(yynn3148)
yynn3148 = 0
}
if yyr3148 || yy2arr3148 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3148[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3148[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 yyr3148 || yy2arr3148 {
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
yym3150 := z.DecBinary()
_ = yym3150
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3151 := r.ContainerType()
if yyct3151 == codecSelferValueTypeMap1234 {
yyl3151 := r.ReadMapStart()
if yyl3151 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3151, d)
}
} else if yyct3151 == codecSelferValueTypeArray1234 {
yyl3151 := r.ReadArrayStart()
if yyl3151 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3151, 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 yys3152Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3152Slc
var yyhl3152 bool = l >= 0
for yyj3152 := 0; ; yyj3152++ {
if yyhl3152 {
if yyj3152 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3152Slc = r.DecodeBytes(yys3152Slc, true, true)
yys3152 := string(yys3152Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3152 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3153 := &x.Capacity
yyv3153.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3152)
} // end switch yys3152
} // end for yyj3152
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 yyj3154 int
var yyb3154 bool
var yyhl3154 bool = l >= 0
yyj3154++
if yyhl3154 {
yyb3154 = yyj3154 > l
} else {
yyb3154 = r.CheckBreak()
}
if yyb3154 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3155 := &x.Capacity
yyv3155.CodecDecodeSelf(d)
}
for {
yyj3154++
if yyhl3154 {
yyb3154 = yyj3154 > l
} else {
yyb3154 = r.CheckBreak()
}
if yyb3154 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3154-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3156 := z.EncBinary()
_ = yym3156
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
yym3157 := z.DecBinary()
_ = yym3157
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 {
yym3158 := z.EncBinary()
_ = yym3158
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
yym3159 := z.DecBinary()
_ = yym3159
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 {
yym3160 := z.EncBinary()
_ = yym3160
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3161 := !z.EncBinary()
yy2arr3161 := z.EncBasicHandle().StructToArray
var yyq3161 [5]bool
_, _, _ = yysep3161, yyq3161, yy2arr3161
const yyr3161 bool = false
yyq3161[0] = x.Kind != ""
yyq3161[1] = x.APIVersion != ""
yyq3161[2] = true
yyq3161[3] = true
yyq3161[4] = true
var yynn3161 int
if yyr3161 || yy2arr3161 {
r.EncodeArrayStart(5)
} else {
yynn3161 = 0
for _, b := range yyq3161 {
if b {
yynn3161++
}
}
r.EncodeMapStart(yynn3161)
yynn3161 = 0
}
if yyr3161 || yy2arr3161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3161[0] {
yym3163 := z.EncBinary()
_ = yym3163
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3161[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3164 := z.EncBinary()
_ = yym3164
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3161 || yy2arr3161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3161[1] {
yym3166 := z.EncBinary()
_ = yym3166
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3161[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3167 := z.EncBinary()
_ = yym3167
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3161 || yy2arr3161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3161[2] {
yy3169 := &x.ObjectMeta
yy3169.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3161[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3170 := &x.ObjectMeta
yy3170.CodecEncodeSelf(e)
}
}
if yyr3161 || yy2arr3161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3161[3] {
yy3172 := &x.Spec
yy3172.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3161[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3173 := &x.Spec
yy3173.CodecEncodeSelf(e)
}
}
if yyr3161 || yy2arr3161 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3161[4] {
yy3175 := &x.Status
yy3175.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3161[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3176 := &x.Status
yy3176.CodecEncodeSelf(e)
}
}
if yyr3161 || yy2arr3161 {
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
yym3177 := z.DecBinary()
_ = yym3177
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3178 := r.ContainerType()
if yyct3178 == codecSelferValueTypeMap1234 {
yyl3178 := r.ReadMapStart()
if yyl3178 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3178, d)
}
} else if yyct3178 == codecSelferValueTypeArray1234 {
yyl3178 := r.ReadArrayStart()
if yyl3178 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3178, 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 yys3179Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3179Slc
var yyhl3179 bool = l >= 0
for yyj3179 := 0; ; yyj3179++ {
if yyhl3179 {
if yyj3179 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3179Slc = r.DecodeBytes(yys3179Slc, true, true)
yys3179 := string(yys3179Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3179 {
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 {
yyv3182 := &x.ObjectMeta
yyv3182.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3183 := &x.Spec
yyv3183.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3184 := &x.Status
yyv3184.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3179)
} // end switch yys3179
} // end for yyj3179
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 yyj3185 int
var yyb3185 bool
var yyhl3185 bool = l >= 0
yyj3185++
if yyhl3185 {
yyb3185 = yyj3185 > l
} else {
yyb3185 = r.CheckBreak()
}
if yyb3185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3185++
if yyhl3185 {
yyb3185 = yyj3185 > l
} else {
yyb3185 = r.CheckBreak()
}
if yyb3185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3185++
if yyhl3185 {
yyb3185 = yyj3185 > l
} else {
yyb3185 = r.CheckBreak()
}
if yyb3185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3188 := &x.ObjectMeta
yyv3188.CodecDecodeSelf(d)
}
yyj3185++
if yyhl3185 {
yyb3185 = yyj3185 > l
} else {
yyb3185 = r.CheckBreak()
}
if yyb3185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3189 := &x.Spec
yyv3189.CodecDecodeSelf(d)
}
yyj3185++
if yyhl3185 {
yyb3185 = yyj3185 > l
} else {
yyb3185 = r.CheckBreak()
}
if yyb3185 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3190 := &x.Status
yyv3190.CodecDecodeSelf(d)
}
for {
yyj3185++
if yyhl3185 {
yyb3185 = yyj3185 > l
} else {
yyb3185 = r.CheckBreak()
}
if yyb3185 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3185-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 {
yym3191 := z.EncBinary()
_ = yym3191
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3192 := !z.EncBinary()
yy2arr3192 := z.EncBasicHandle().StructToArray
var yyq3192 [4]bool
_, _, _ = yysep3192, yyq3192, yy2arr3192
const yyr3192 bool = false
yyq3192[0] = x.Kind != ""
yyq3192[1] = x.APIVersion != ""
yyq3192[2] = true
var yynn3192 int
if yyr3192 || yy2arr3192 {
r.EncodeArrayStart(4)
} else {
yynn3192 = 1
for _, b := range yyq3192 {
if b {
yynn3192++
}
}
r.EncodeMapStart(yynn3192)
yynn3192 = 0
}
if yyr3192 || yy2arr3192 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3192[0] {
yym3194 := z.EncBinary()
_ = yym3194
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3192[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3195 := z.EncBinary()
_ = yym3195
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3192 || yy2arr3192 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3192[1] {
yym3197 := z.EncBinary()
_ = yym3197
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3192[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3198 := z.EncBinary()
_ = yym3198
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3192 || yy2arr3192 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3192[2] {
yy3200 := &x.ListMeta
yym3201 := z.EncBinary()
_ = yym3201
if false {
} else if z.HasExtensions() && z.EncExt(yy3200) {
} else {
z.EncFallback(yy3200)
}
} else {
r.EncodeNil()
}
} else {
if yyq3192[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3202 := &x.ListMeta
yym3203 := z.EncBinary()
_ = yym3203
if false {
} else if z.HasExtensions() && z.EncExt(yy3202) {
} else {
z.EncFallback(yy3202)
}
}
}
if yyr3192 || yy2arr3192 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3205 := z.EncBinary()
_ = yym3205
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 {
yym3206 := z.EncBinary()
_ = yym3206
if false {
} else {
h.encSliceNode(([]Node)(x.Items), e)
}
}
}
if yyr3192 || yy2arr3192 {
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
yym3207 := z.DecBinary()
_ = yym3207
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3208 := r.ContainerType()
if yyct3208 == codecSelferValueTypeMap1234 {
yyl3208 := r.ReadMapStart()
if yyl3208 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3208, d)
}
} else if yyct3208 == codecSelferValueTypeArray1234 {
yyl3208 := r.ReadArrayStart()
if yyl3208 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3208, 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 yys3209Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3209Slc
var yyhl3209 bool = l >= 0
for yyj3209 := 0; ; yyj3209++ {
if yyhl3209 {
if yyj3209 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3209Slc = r.DecodeBytes(yys3209Slc, true, true)
yys3209 := string(yys3209Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3209 {
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 {
yyv3212 := &x.ListMeta
yym3213 := z.DecBinary()
_ = yym3213
if false {
} else if z.HasExtensions() && z.DecExt(yyv3212) {
} else {
z.DecFallback(yyv3212, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3214 := &x.Items
yym3215 := z.DecBinary()
_ = yym3215
if false {
} else {
h.decSliceNode((*[]Node)(yyv3214), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3209)
} // end switch yys3209
} // end for yyj3209
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 yyj3216 int
var yyb3216 bool
var yyhl3216 bool = l >= 0
yyj3216++
if yyhl3216 {
yyb3216 = yyj3216 > l
} else {
yyb3216 = r.CheckBreak()
}
if yyb3216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3216++
if yyhl3216 {
yyb3216 = yyj3216 > l
} else {
yyb3216 = r.CheckBreak()
}
if yyb3216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3216++
if yyhl3216 {
yyb3216 = yyj3216 > l
} else {
yyb3216 = r.CheckBreak()
}
if yyb3216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3219 := &x.ListMeta
yym3220 := z.DecBinary()
_ = yym3220
if false {
} else if z.HasExtensions() && z.DecExt(yyv3219) {
} else {
z.DecFallback(yyv3219, false)
}
}
yyj3216++
if yyhl3216 {
yyb3216 = yyj3216 > l
} else {
yyb3216 = r.CheckBreak()
}
if yyb3216 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3221 := &x.Items
yym3222 := z.DecBinary()
_ = yym3222
if false {
} else {
h.decSliceNode((*[]Node)(yyv3221), d)
}
}
for {
yyj3216++
if yyhl3216 {
yyb3216 = yyj3216 > l
} else {
yyb3216 = r.CheckBreak()
}
if yyb3216 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3216-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 {
yym3223 := z.EncBinary()
_ = yym3223
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3224 := !z.EncBinary()
yy2arr3224 := z.EncBasicHandle().StructToArray
var yyq3224 [1]bool
_, _, _ = yysep3224, yyq3224, yy2arr3224
const yyr3224 bool = false
var yynn3224 int
if yyr3224 || yy2arr3224 {
r.EncodeArrayStart(1)
} else {
yynn3224 = 1
for _, b := range yyq3224 {
if b {
yynn3224++
}
}
r.EncodeMapStart(yynn3224)
yynn3224 = 0
}
if yyr3224 || yy2arr3224 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym3226 := z.EncBinary()
_ = yym3226
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 {
yym3227 := z.EncBinary()
_ = yym3227
if false {
} else {
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
}
}
}
if yyr3224 || yy2arr3224 {
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
yym3228 := z.DecBinary()
_ = yym3228
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3229 := r.ContainerType()
if yyct3229 == codecSelferValueTypeMap1234 {
yyl3229 := r.ReadMapStart()
if yyl3229 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3229, d)
}
} else if yyct3229 == codecSelferValueTypeArray1234 {
yyl3229 := r.ReadArrayStart()
if yyl3229 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3229, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NamespaceSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3230Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3230Slc
var yyhl3230 bool = l >= 0
for yyj3230 := 0; ; yyj3230++ {
if yyhl3230 {
if yyj3230 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3230Slc = r.DecodeBytes(yys3230Slc, true, true)
yys3230 := string(yys3230Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3230 {
case "Finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3231 := &x.Finalizers
yym3232 := z.DecBinary()
_ = yym3232
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3231), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3230)
} // end switch yys3230
} // end for yyj3230
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 yyj3233 int
var yyb3233 bool
var yyhl3233 bool = l >= 0
yyj3233++
if yyhl3233 {
yyb3233 = yyj3233 > l
} else {
yyb3233 = r.CheckBreak()
}
if yyb3233 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3234 := &x.Finalizers
yym3235 := z.DecBinary()
_ = yym3235
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3234), d)
}
}
for {
yyj3233++
if yyhl3233 {
yyb3233 = yyj3233 > l
} else {
yyb3233 = r.CheckBreak()
}
if yyb3233 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3233-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3236 := z.EncBinary()
_ = yym3236
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
yym3237 := z.DecBinary()
_ = yym3237
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 {
yym3238 := z.EncBinary()
_ = yym3238
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3239 := !z.EncBinary()
yy2arr3239 := z.EncBasicHandle().StructToArray
var yyq3239 [1]bool
_, _, _ = yysep3239, yyq3239, yy2arr3239
const yyr3239 bool = false
yyq3239[0] = x.Phase != ""
var yynn3239 int
if yyr3239 || yy2arr3239 {
r.EncodeArrayStart(1)
} else {
yynn3239 = 0
for _, b := range yyq3239 {
if b {
yynn3239++
}
}
r.EncodeMapStart(yynn3239)
yynn3239 = 0
}
if yyr3239 || yy2arr3239 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3239[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3239[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr3239 || yy2arr3239 {
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
yym3241 := z.DecBinary()
_ = yym3241
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3242 := r.ContainerType()
if yyct3242 == codecSelferValueTypeMap1234 {
yyl3242 := r.ReadMapStart()
if yyl3242 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3242, d)
}
} else if yyct3242 == codecSelferValueTypeArray1234 {
yyl3242 := r.ReadArrayStart()
if yyl3242 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3242, 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 yys3243Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3243Slc
var yyhl3243 bool = l >= 0
for yyj3243 := 0; ; yyj3243++ {
if yyhl3243 {
if yyj3243 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3243Slc = r.DecodeBytes(yys3243Slc, true, true)
yys3243 := string(yys3243Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3243 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3243)
} // end switch yys3243
} // end for yyj3243
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 yyj3245 int
var yyb3245 bool
var yyhl3245 bool = l >= 0
yyj3245++
if yyhl3245 {
yyb3245 = yyj3245 > l
} else {
yyb3245 = r.CheckBreak()
}
if yyb3245 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
for {
yyj3245++
if yyhl3245 {
yyb3245 = yyj3245 > l
} else {
yyb3245 = r.CheckBreak()
}
if yyb3245 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3245-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3247 := z.EncBinary()
_ = yym3247
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
yym3248 := z.DecBinary()
_ = yym3248
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 {
yym3249 := z.EncBinary()
_ = yym3249
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3250 := !z.EncBinary()
yy2arr3250 := z.EncBasicHandle().StructToArray
var yyq3250 [5]bool
_, _, _ = yysep3250, yyq3250, yy2arr3250
const yyr3250 bool = false
yyq3250[0] = x.Kind != ""
yyq3250[1] = x.APIVersion != ""
yyq3250[2] = true
yyq3250[3] = true
yyq3250[4] = true
var yynn3250 int
if yyr3250 || yy2arr3250 {
r.EncodeArrayStart(5)
} else {
yynn3250 = 0
for _, b := range yyq3250 {
if b {
yynn3250++
}
}
r.EncodeMapStart(yynn3250)
yynn3250 = 0
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[0] {
yym3252 := z.EncBinary()
_ = yym3252
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3250[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3253 := z.EncBinary()
_ = yym3253
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[1] {
yym3255 := z.EncBinary()
_ = yym3255
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3250[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3256 := z.EncBinary()
_ = yym3256
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[2] {
yy3258 := &x.ObjectMeta
yy3258.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3250[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3259 := &x.ObjectMeta
yy3259.CodecEncodeSelf(e)
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[3] {
yy3261 := &x.Spec
yy3261.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3250[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3262 := &x.Spec
yy3262.CodecEncodeSelf(e)
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3250[4] {
yy3264 := &x.Status
yy3264.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3250[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3265 := &x.Status
yy3265.CodecEncodeSelf(e)
}
}
if yyr3250 || yy2arr3250 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Namespace) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3266 := z.DecBinary()
_ = yym3266
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3267 := r.ContainerType()
if yyct3267 == codecSelferValueTypeMap1234 {
yyl3267 := r.ReadMapStart()
if yyl3267 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3267, d)
}
} else if yyct3267 == codecSelferValueTypeArray1234 {
yyl3267 := r.ReadArrayStart()
if yyl3267 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3267, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Namespace) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3268Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3268Slc
var yyhl3268 bool = l >= 0
for yyj3268 := 0; ; yyj3268++ {
if yyhl3268 {
if yyj3268 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3268Slc = r.DecodeBytes(yys3268Slc, true, true)
yys3268 := string(yys3268Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3268 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3271 := &x.ObjectMeta
yyv3271.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3272 := &x.Spec
yyv3272.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3273 := &x.Status
yyv3273.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3268)
} // end switch yys3268
} // end for yyj3268
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 yyj3274 int
var yyb3274 bool
var yyhl3274 bool = l >= 0
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3277 := &x.ObjectMeta
yyv3277.CodecDecodeSelf(d)
}
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3278 := &x.Spec
yyv3278.CodecDecodeSelf(d)
}
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3279 := &x.Status
yyv3279.CodecDecodeSelf(d)
}
for {
yyj3274++
if yyhl3274 {
yyb3274 = yyj3274 > l
} else {
yyb3274 = r.CheckBreak()
}
if yyb3274 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3274-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NamespaceList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3280 := z.EncBinary()
_ = yym3280
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3281 := !z.EncBinary()
yy2arr3281 := z.EncBasicHandle().StructToArray
var yyq3281 [4]bool
_, _, _ = yysep3281, yyq3281, yy2arr3281
const yyr3281 bool = false
yyq3281[0] = x.Kind != ""
yyq3281[1] = x.APIVersion != ""
yyq3281[2] = true
var yynn3281 int
if yyr3281 || yy2arr3281 {
r.EncodeArrayStart(4)
} else {
yynn3281 = 1
for _, b := range yyq3281 {
if b {
yynn3281++
}
}
r.EncodeMapStart(yynn3281)
yynn3281 = 0
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3281[0] {
yym3283 := z.EncBinary()
_ = yym3283
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3281[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3284 := z.EncBinary()
_ = yym3284
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3281[1] {
yym3286 := z.EncBinary()
_ = yym3286
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3281[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3287 := z.EncBinary()
_ = yym3287
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3281[2] {
yy3289 := &x.ListMeta
yym3290 := z.EncBinary()
_ = yym3290
if false {
} else if z.HasExtensions() && z.EncExt(yy3289) {
} else {
z.EncFallback(yy3289)
}
} else {
r.EncodeNil()
}
} else {
if yyq3281[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3291 := &x.ListMeta
yym3292 := z.EncBinary()
_ = yym3292
if false {
} else if z.HasExtensions() && z.EncExt(yy3291) {
} else {
z.EncFallback(yy3291)
}
}
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3294 := z.EncBinary()
_ = yym3294
if false {
} else {
h.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 {
yym3295 := z.EncBinary()
_ = yym3295
if false {
} else {
h.encSliceNamespace(([]Namespace)(x.Items), e)
}
}
}
if yyr3281 || yy2arr3281 {
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
yym3296 := z.DecBinary()
_ = yym3296
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3297 := r.ContainerType()
if yyct3297 == codecSelferValueTypeMap1234 {
yyl3297 := r.ReadMapStart()
if yyl3297 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3297, d)
}
} else if yyct3297 == codecSelferValueTypeArray1234 {
yyl3297 := r.ReadArrayStart()
if yyl3297 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3297, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3298Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3298Slc
var yyhl3298 bool = l >= 0
for yyj3298 := 0; ; yyj3298++ {
if yyhl3298 {
if yyj3298 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3298Slc = r.DecodeBytes(yys3298Slc, true, true)
yys3298 := string(yys3298Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3298 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3301 := &x.ListMeta
yym3302 := z.DecBinary()
_ = yym3302
if false {
} else if z.HasExtensions() && z.DecExt(yyv3301) {
} else {
z.DecFallback(yyv3301, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3303 := &x.Items
yym3304 := z.DecBinary()
_ = yym3304
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3303), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3298)
} // end switch yys3298
} // end for yyj3298
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 yyj3305 int
var yyb3305 bool
var yyhl3305 bool = l >= 0
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3308 := &x.ListMeta
yym3309 := z.DecBinary()
_ = yym3309
if false {
} else if z.HasExtensions() && z.DecExt(yyv3308) {
} else {
z.DecFallback(yyv3308, false)
}
}
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3310 := &x.Items
yym3311 := z.DecBinary()
_ = yym3311
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3310), d)
}
}
for {
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3305-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3312 := z.EncBinary()
_ = yym3312
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3313 := !z.EncBinary()
yy2arr3313 := z.EncBasicHandle().StructToArray
var yyq3313 [4]bool
_, _, _ = yysep3313, yyq3313, yy2arr3313
const yyr3313 bool = false
yyq3313[0] = x.Kind != ""
yyq3313[1] = x.APIVersion != ""
yyq3313[2] = true
var yynn3313 int
if yyr3313 || yy2arr3313 {
r.EncodeArrayStart(4)
} else {
yynn3313 = 1
for _, b := range yyq3313 {
if b {
yynn3313++
}
}
r.EncodeMapStart(yynn3313)
yynn3313 = 0
}
if yyr3313 || yy2arr3313 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3313[0] {
yym3315 := z.EncBinary()
_ = yym3315
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3313[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3316 := z.EncBinary()
_ = yym3316
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3313 || yy2arr3313 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3313[1] {
yym3318 := z.EncBinary()
_ = yym3318
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3313[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3319 := z.EncBinary()
_ = yym3319
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3313 || yy2arr3313 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3313[2] {
yy3321 := &x.ObjectMeta
yy3321.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3313[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3322 := &x.ObjectMeta
yy3322.CodecEncodeSelf(e)
}
}
if yyr3313 || yy2arr3313 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3324 := &x.Target
yy3324.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("target"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3325 := &x.Target
yy3325.CodecEncodeSelf(e)
}
if yyr3313 || yy2arr3313 {
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
yym3326 := z.DecBinary()
_ = yym3326
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3327 := r.ContainerType()
if yyct3327 == codecSelferValueTypeMap1234 {
yyl3327 := r.ReadMapStart()
if yyl3327 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3327, d)
}
} else if yyct3327 == codecSelferValueTypeArray1234 {
yyl3327 := r.ReadArrayStart()
if yyl3327 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3327, 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 yys3328Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3328Slc
var yyhl3328 bool = l >= 0
for yyj3328 := 0; ; yyj3328++ {
if yyhl3328 {
if yyj3328 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3328Slc = r.DecodeBytes(yys3328Slc, true, true)
yys3328 := string(yys3328Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3328 {
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 {
yyv3331 := &x.ObjectMeta
yyv3331.CodecDecodeSelf(d)
}
case "target":
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv3332 := &x.Target
yyv3332.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3328)
} // end switch yys3328
} // end for yyj3328
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 yyj3333 int
var yyb3333 bool
var yyhl3333 bool = l >= 0
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3336 := &x.ObjectMeta
yyv3336.CodecDecodeSelf(d)
}
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv3337 := &x.Target
yyv3337.CodecDecodeSelf(d)
}
for {
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3333-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3338 := z.EncBinary()
_ = yym3338
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3339 := !z.EncBinary()
yy2arr3339 := z.EncBasicHandle().StructToArray
var yyq3339 [1]bool
_, _, _ = yysep3339, yyq3339, yy2arr3339
const yyr3339 bool = false
yyq3339[0] = x.UID != nil
var yynn3339 int
if yyr3339 || yy2arr3339 {
r.EncodeArrayStart(1)
} else {
yynn3339 = 0
for _, b := range yyq3339 {
if b {
yynn3339++
}
}
r.EncodeMapStart(yynn3339)
yynn3339 = 0
}
if yyr3339 || yy2arr3339 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3339[0] {
if x.UID == nil {
r.EncodeNil()
} else {
yy3341 := *x.UID
yym3342 := z.EncBinary()
_ = yym3342
if false {
} else if z.HasExtensions() && z.EncExt(yy3341) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3341))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3339[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.UID == nil {
r.EncodeNil()
} else {
yy3343 := *x.UID
yym3344 := z.EncBinary()
_ = yym3344
if false {
} else if z.HasExtensions() && z.EncExt(yy3343) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3343))
}
}
}
}
if yyr3339 || yy2arr3339 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Preconditions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3345 := z.DecBinary()
_ = yym3345
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3346 := r.ContainerType()
if yyct3346 == codecSelferValueTypeMap1234 {
yyl3346 := r.ReadMapStart()
if yyl3346 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3346, d)
}
} else if yyct3346 == codecSelferValueTypeArray1234 {
yyl3346 := r.ReadArrayStart()
if yyl3346 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3346, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Preconditions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3347Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3347Slc
var yyhl3347 bool = l >= 0
for yyj3347 := 0; ; yyj3347++ {
if yyhl3347 {
if yyj3347 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3347Slc = r.DecodeBytes(yys3347Slc, true, true)
yys3347 := string(yys3347Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3347 {
case "uid":
if r.TryDecodeAsNil() {
if x.UID != nil {
x.UID = nil
}
} else {
if x.UID == nil {
x.UID = new(pkg1_types.UID)
}
yym3349 := z.DecBinary()
_ = yym3349
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
default:
z.DecStructFieldNotFound(-1, yys3347)
} // end switch yys3347
} // end for yyj3347
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *Preconditions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3350 int
var yyb3350 bool
var yyhl3350 bool = l >= 0
yyj3350++
if yyhl3350 {
yyb3350 = yyj3350 > l
} else {
yyb3350 = r.CheckBreak()
}
if yyb3350 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.UID != nil {
x.UID = nil
}
} else {
if x.UID == nil {
x.UID = new(pkg1_types.UID)
}
yym3352 := z.DecBinary()
_ = yym3352
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
for {
yyj3350++
if yyhl3350 {
yyb3350 = yyj3350 > l
} else {
yyb3350 = r.CheckBreak()
}
if yyb3350 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3350-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *DeleteOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3353 := z.EncBinary()
_ = yym3353
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3354 := !z.EncBinary()
yy2arr3354 := z.EncBasicHandle().StructToArray
var yyq3354 [5]bool
_, _, _ = yysep3354, yyq3354, yy2arr3354
const yyr3354 bool = false
yyq3354[0] = x.Kind != ""
yyq3354[1] = x.APIVersion != ""
yyq3354[2] = x.GracePeriodSeconds != nil
yyq3354[3] = x.Preconditions != nil
yyq3354[4] = x.OrphanDependents != nil
var yynn3354 int
if yyr3354 || yy2arr3354 {
r.EncodeArrayStart(5)
} else {
yynn3354 = 0
for _, b := range yyq3354 {
if b {
yynn3354++
}
}
r.EncodeMapStart(yynn3354)
yynn3354 = 0
}
if yyr3354 || yy2arr3354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3354[0] {
yym3356 := z.EncBinary()
_ = yym3356
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3354[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3357 := z.EncBinary()
_ = yym3357
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3354 || yy2arr3354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3354[1] {
yym3359 := z.EncBinary()
_ = yym3359
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3354[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3360 := z.EncBinary()
_ = yym3360
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3354 || yy2arr3354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3354[2] {
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3362 := *x.GracePeriodSeconds
yym3363 := z.EncBinary()
_ = yym3363
if false {
} else {
r.EncodeInt(int64(yy3362))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3354[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3364 := *x.GracePeriodSeconds
yym3365 := z.EncBinary()
_ = yym3365
if false {
} else {
r.EncodeInt(int64(yy3364))
}
}
}
}
if yyr3354 || yy2arr3354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3354[3] {
if x.Preconditions == nil {
r.EncodeNil()
} else {
x.Preconditions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3354[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preconditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Preconditions == nil {
r.EncodeNil()
} else {
x.Preconditions.CodecEncodeSelf(e)
}
}
}
if yyr3354 || yy2arr3354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3354[4] {
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3368 := *x.OrphanDependents
yym3369 := z.EncBinary()
_ = yym3369
if false {
} else {
r.EncodeBool(bool(yy3368))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3354[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("orphanDependents"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3370 := *x.OrphanDependents
yym3371 := z.EncBinary()
_ = yym3371
if false {
} else {
r.EncodeBool(bool(yy3370))
}
}
}
}
if yyr3354 || yy2arr3354 {
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
yym3372 := z.DecBinary()
_ = yym3372
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3373 := r.ContainerType()
if yyct3373 == codecSelferValueTypeMap1234 {
yyl3373 := r.ReadMapStart()
if yyl3373 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3373, d)
}
} else if yyct3373 == codecSelferValueTypeArray1234 {
yyl3373 := r.ReadArrayStart()
if yyl3373 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3373, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *DeleteOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3374Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3374Slc
var yyhl3374 bool = l >= 0
for yyj3374 := 0; ; yyj3374++ {
if yyhl3374 {
if yyj3374 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3374Slc = r.DecodeBytes(yys3374Slc, true, true)
yys3374 := string(yys3374Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3374 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "gracePeriodSeconds":
if r.TryDecodeAsNil() {
if x.GracePeriodSeconds != nil {
x.GracePeriodSeconds = nil
}
} else {
if x.GracePeriodSeconds == nil {
x.GracePeriodSeconds = new(int64)
}
yym3378 := z.DecBinary()
_ = yym3378
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
case "preconditions":
if r.TryDecodeAsNil() {
if x.Preconditions != nil {
x.Preconditions = nil
}
} else {
if x.Preconditions == nil {
x.Preconditions = new(Preconditions)
}
x.Preconditions.CodecDecodeSelf(d)
}
case "orphanDependents":
if r.TryDecodeAsNil() {
if x.OrphanDependents != nil {
x.OrphanDependents = nil
}
} else {
if x.OrphanDependents == nil {
x.OrphanDependents = new(bool)
}
yym3381 := z.DecBinary()
_ = yym3381
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3374)
} // end switch yys3374
} // end for yyj3374
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 yyj3382 int
var yyb3382 bool
var yyhl3382 bool = l >= 0
yyj3382++
if yyhl3382 {
yyb3382 = yyj3382 > l
} else {
yyb3382 = r.CheckBreak()
}
if yyb3382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3382++
if yyhl3382 {
yyb3382 = yyj3382 > l
} else {
yyb3382 = r.CheckBreak()
}
if yyb3382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3382++
if yyhl3382 {
yyb3382 = yyj3382 > l
} else {
yyb3382 = r.CheckBreak()
}
if yyb3382 {
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)
}
yym3386 := z.DecBinary()
_ = yym3386
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3382++
if yyhl3382 {
yyb3382 = yyj3382 > l
} else {
yyb3382 = r.CheckBreak()
}
if yyb3382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Preconditions != nil {
x.Preconditions = nil
}
} else {
if x.Preconditions == nil {
x.Preconditions = new(Preconditions)
}
x.Preconditions.CodecDecodeSelf(d)
}
yyj3382++
if yyhl3382 {
yyb3382 = yyj3382 > l
} else {
yyb3382 = r.CheckBreak()
}
if yyb3382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.OrphanDependents != nil {
x.OrphanDependents = nil
}
} else {
if x.OrphanDependents == nil {
x.OrphanDependents = new(bool)
}
yym3389 := z.DecBinary()
_ = yym3389
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
for {
yyj3382++
if yyhl3382 {
yyb3382 = yyj3382 > l
} else {
yyb3382 = r.CheckBreak()
}
if yyb3382 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3382-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 {
yym3390 := z.EncBinary()
_ = yym3390
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3391 := !z.EncBinary()
yy2arr3391 := z.EncBasicHandle().StructToArray
var yyq3391 [4]bool
_, _, _ = yysep3391, yyq3391, yy2arr3391
const yyr3391 bool = false
yyq3391[0] = x.Kind != ""
yyq3391[1] = x.APIVersion != ""
var yynn3391 int
if yyr3391 || yy2arr3391 {
r.EncodeArrayStart(4)
} else {
yynn3391 = 2
for _, b := range yyq3391 {
if b {
yynn3391++
}
}
r.EncodeMapStart(yynn3391)
yynn3391 = 0
}
if yyr3391 || yy2arr3391 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3391[0] {
yym3393 := z.EncBinary()
_ = yym3393
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3391[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3394 := z.EncBinary()
_ = yym3394
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3391 || yy2arr3391 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3391[1] {
yym3396 := z.EncBinary()
_ = yym3396
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3391[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3397 := z.EncBinary()
_ = yym3397
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3391 || yy2arr3391 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3399 := z.EncBinary()
_ = yym3399
if false {
} else {
r.EncodeBool(bool(x.Export))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("export"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3400 := z.EncBinary()
_ = yym3400
if false {
} else {
r.EncodeBool(bool(x.Export))
}
}
if yyr3391 || yy2arr3391 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3402 := z.EncBinary()
_ = yym3402
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exact"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3403 := z.EncBinary()
_ = yym3403
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
}
if yyr3391 || yy2arr3391 {
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
yym3404 := z.DecBinary()
_ = yym3404
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3405 := r.ContainerType()
if yyct3405 == codecSelferValueTypeMap1234 {
yyl3405 := r.ReadMapStart()
if yyl3405 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3405, d)
}
} else if yyct3405 == codecSelferValueTypeArray1234 {
yyl3405 := r.ReadArrayStart()
if yyl3405 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3405, 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 yys3406Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3406Slc
var yyhl3406 bool = l >= 0
for yyj3406 := 0; ; yyj3406++ {
if yyhl3406 {
if yyj3406 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3406Slc = r.DecodeBytes(yys3406Slc, true, true)
yys3406 := string(yys3406Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3406 {
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, yys3406)
} // end switch yys3406
} // end for yyj3406
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 yyj3411 int
var yyb3411 bool
var yyhl3411 bool = l >= 0
yyj3411++
if yyhl3411 {
yyb3411 = yyj3411 > l
} else {
yyb3411 = r.CheckBreak()
}
if yyb3411 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3411++
if yyhl3411 {
yyb3411 = yyj3411 > l
} else {
yyb3411 = r.CheckBreak()
}
if yyb3411 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3411++
if yyhl3411 {
yyb3411 = yyj3411 > l
} else {
yyb3411 = r.CheckBreak()
}
if yyb3411 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
yyj3411++
if yyhl3411 {
yyb3411 = yyj3411 > l
} else {
yyb3411 = r.CheckBreak()
}
if yyb3411 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
for {
yyj3411++
if yyhl3411 {
yyb3411 = yyj3411 > l
} else {
yyb3411 = r.CheckBreak()
}
if yyb3411 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3411-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ListOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3416 := z.EncBinary()
_ = yym3416
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3417 := !z.EncBinary()
yy2arr3417 := z.EncBasicHandle().StructToArray
var yyq3417 [7]bool
_, _, _ = yysep3417, yyq3417, yy2arr3417
const yyr3417 bool = false
yyq3417[0] = x.Kind != ""
yyq3417[1] = x.APIVersion != ""
var yynn3417 int
if yyr3417 || yy2arr3417 {
r.EncodeArrayStart(7)
} else {
yynn3417 = 5
for _, b := range yyq3417 {
if b {
yynn3417++
}
}
r.EncodeMapStart(yynn3417)
yynn3417 = 0
}
if yyr3417 || yy2arr3417 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3417[0] {
yym3419 := z.EncBinary()
_ = yym3419
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3417[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3420 := z.EncBinary()
_ = yym3420
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3417 || yy2arr3417 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3417[1] {
yym3422 := z.EncBinary()
_ = yym3422
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3417[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3423 := z.EncBinary()
_ = yym3423
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3417 || yy2arr3417 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym3425 := z.EncBinary()
_ = yym3425
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 {
yym3426 := z.EncBinary()
_ = yym3426
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
if yyr3417 || yy2arr3417 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldSelector == nil {
r.EncodeNil()
} else {
yym3428 := z.EncBinary()
_ = yym3428
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 {
yym3429 := z.EncBinary()
_ = yym3429
if false {
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
} else {
z.EncFallback(x.FieldSelector)
}
}
}
if yyr3417 || yy2arr3417 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3431 := z.EncBinary()
_ = yym3431
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3432 := z.EncBinary()
_ = yym3432
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
}
if yyr3417 || yy2arr3417 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3434 := z.EncBinary()
_ = yym3434
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)
yym3435 := z.EncBinary()
_ = yym3435
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
if yyr3417 || yy2arr3417 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3437 := *x.TimeoutSeconds
yym3438 := z.EncBinary()
_ = yym3438
if false {
} else {
r.EncodeInt(int64(yy3437))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3439 := *x.TimeoutSeconds
yym3440 := z.EncBinary()
_ = yym3440
if false {
} else {
r.EncodeInt(int64(yy3439))
}
}
}
if yyr3417 || yy2arr3417 {
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
yym3441 := z.DecBinary()
_ = yym3441
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3442 := r.ContainerType()
if yyct3442 == codecSelferValueTypeMap1234 {
yyl3442 := r.ReadMapStart()
if yyl3442 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3442, d)
}
} else if yyct3442 == codecSelferValueTypeArray1234 {
yyl3442 := r.ReadArrayStart()
if yyl3442 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3442, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ListOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3443Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3443Slc
var yyhl3443 bool = l >= 0
for yyj3443 := 0; ; yyj3443++ {
if yyhl3443 {
if yyj3443 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3443Slc = r.DecodeBytes(yys3443Slc, true, true)
yys3443 := string(yys3443Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3443 {
case "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 {
yyv3446 := &x.LabelSelector
yym3447 := z.DecBinary()
_ = yym3447
if false {
} else if z.HasExtensions() && z.DecExt(yyv3446) {
} else {
z.DecFallback(yyv3446, true)
}
}
case "FieldSelector":
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3448 := &x.FieldSelector
yym3449 := z.DecBinary()
_ = yym3449
if false {
} else if z.HasExtensions() && z.DecExt(yyv3448) {
} else {
z.DecFallback(yyv3448, 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)
}
yym3453 := z.DecBinary()
_ = yym3453
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3443)
} // end switch yys3443
} // end for yyj3443
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 yyj3454 int
var yyb3454 bool
var yyhl3454 bool = l >= 0
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LabelSelector = nil
} else {
yyv3457 := &x.LabelSelector
yym3458 := z.DecBinary()
_ = yym3458
if false {
} else if z.HasExtensions() && z.DecExt(yyv3457) {
} else {
z.DecFallback(yyv3457, true)
}
}
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3459 := &x.FieldSelector
yym3460 := z.DecBinary()
_ = yym3460
if false {
} else if z.HasExtensions() && z.DecExt(yyv3459) {
} else {
z.DecFallback(yyv3459, true)
}
}
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Watch = false
} else {
x.Watch = bool(r.DecodeBool())
}
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
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)
}
yym3464 := z.DecBinary()
_ = yym3464
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj3454++
if yyhl3454 {
yyb3454 = yyj3454 > l
} else {
yyb3454 = r.CheckBreak()
}
if yyb3454 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3454-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 {
yym3465 := z.EncBinary()
_ = yym3465
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3466 := !z.EncBinary()
yy2arr3466 := z.EncBasicHandle().StructToArray
var yyq3466 [10]bool
_, _, _ = yysep3466, yyq3466, yy2arr3466
const yyr3466 bool = false
yyq3466[0] = x.Kind != ""
yyq3466[1] = x.APIVersion != ""
var yynn3466 int
if yyr3466 || yy2arr3466 {
r.EncodeArrayStart(10)
} else {
yynn3466 = 8
for _, b := range yyq3466 {
if b {
yynn3466++
}
}
r.EncodeMapStart(yynn3466)
yynn3466 = 0
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3466[0] {
yym3468 := z.EncBinary()
_ = yym3468
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3466[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3469 := z.EncBinary()
_ = yym3469
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3466[1] {
yym3471 := z.EncBinary()
_ = yym3471
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3466[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3472 := z.EncBinary()
_ = yym3472
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3474 := z.EncBinary()
_ = yym3474
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)
yym3475 := z.EncBinary()
_ = yym3475
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3477 := z.EncBinary()
_ = yym3477
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3478 := z.EncBinary()
_ = yym3478
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3480 := z.EncBinary()
_ = yym3480
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3481 := z.EncBinary()
_ = yym3481
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3483 := *x.SinceSeconds
yym3484 := z.EncBinary()
_ = yym3484
if false {
} else {
r.EncodeInt(int64(yy3483))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3485 := *x.SinceSeconds
yym3486 := z.EncBinary()
_ = yym3486
if false {
} else {
r.EncodeInt(int64(yy3485))
}
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceTime == nil {
r.EncodeNil()
} else {
yym3488 := z.EncBinary()
_ = yym3488
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3488 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3488 && 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 {
yym3489 := z.EncBinary()
_ = yym3489
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3489 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3489 && z.IsJSONHandle() {
z.EncJSONMarshal(x.SinceTime)
} else {
z.EncFallback(x.SinceTime)
}
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3491 := z.EncBinary()
_ = yym3491
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3492 := z.EncBinary()
_ = yym3492
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3494 := *x.TailLines
yym3495 := z.EncBinary()
_ = yym3495
if false {
} else {
r.EncodeInt(int64(yy3494))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3496 := *x.TailLines
yym3497 := z.EncBinary()
_ = yym3497
if false {
} else {
r.EncodeInt(int64(yy3496))
}
}
}
if yyr3466 || yy2arr3466 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3499 := *x.LimitBytes
yym3500 := z.EncBinary()
_ = yym3500
if false {
} else {
r.EncodeInt(int64(yy3499))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3501 := *x.LimitBytes
yym3502 := z.EncBinary()
_ = yym3502
if false {
} else {
r.EncodeInt(int64(yy3501))
}
}
}
if yyr3466 || yy2arr3466 {
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
yym3503 := z.DecBinary()
_ = yym3503
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3504 := r.ContainerType()
if yyct3504 == codecSelferValueTypeMap1234 {
yyl3504 := r.ReadMapStart()
if yyl3504 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3504, d)
}
} else if yyct3504 == codecSelferValueTypeArray1234 {
yyl3504 := r.ReadArrayStart()
if yyl3504 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3504, 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 yys3505Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3505Slc
var yyhl3505 bool = l >= 0
for yyj3505 := 0; ; yyj3505++ {
if yyhl3505 {
if yyj3505 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3505Slc = r.DecodeBytes(yys3505Slc, true, true)
yys3505 := string(yys3505Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3505 {
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)
}
yym3512 := z.DecBinary()
_ = yym3512
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)
}
yym3514 := z.DecBinary()
_ = yym3514
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3514 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3514 && 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)
}
yym3517 := z.DecBinary()
_ = yym3517
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)
}
yym3519 := z.DecBinary()
_ = yym3519
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3505)
} // end switch yys3505
} // end for yyj3505
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 yyj3520 int
var yyb3520 bool
var yyhl3520 bool = l >= 0
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Follow = false
} else {
x.Follow = bool(r.DecodeBool())
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Previous = false
} else {
x.Previous = bool(r.DecodeBool())
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
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)
}
yym3527 := z.DecBinary()
_ = yym3527
if false {
} else {
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
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)
}
yym3529 := z.DecBinary()
_ = yym3529
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3529 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3529 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.SinceTime)
} else {
z.DecFallback(x.SinceTime, false)
}
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Timestamps = false
} else {
x.Timestamps = bool(r.DecodeBool())
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
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)
}
yym3532 := z.DecBinary()
_ = yym3532
if false {
} else {
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
}
}
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
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)
}
yym3534 := z.DecBinary()
_ = yym3534
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
for {
yyj3520++
if yyhl3520 {
yyb3520 = yyj3520 > l
} else {
yyb3520 = r.CheckBreak()
}
if yyb3520 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3520-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 {
yym3535 := z.EncBinary()
_ = yym3535
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3536 := !z.EncBinary()
yy2arr3536 := z.EncBasicHandle().StructToArray
var yyq3536 [7]bool
_, _, _ = yysep3536, yyq3536, yy2arr3536
const yyr3536 bool = false
yyq3536[0] = x.Kind != ""
yyq3536[1] = x.APIVersion != ""
yyq3536[2] = x.Stdin != false
yyq3536[3] = x.Stdout != false
yyq3536[4] = x.Stderr != false
yyq3536[5] = x.TTY != false
yyq3536[6] = x.Container != ""
var yynn3536 int
if yyr3536 || yy2arr3536 {
r.EncodeArrayStart(7)
} else {
yynn3536 = 0
for _, b := range yyq3536 {
if b {
yynn3536++
}
}
r.EncodeMapStart(yynn3536)
yynn3536 = 0
}
if yyr3536 || yy2arr3536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3536[0] {
yym3538 := z.EncBinary()
_ = yym3538
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3536[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3539 := z.EncBinary()
_ = yym3539
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3536 || yy2arr3536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3536[1] {
yym3541 := z.EncBinary()
_ = yym3541
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3536[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3542 := z.EncBinary()
_ = yym3542
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3536 || yy2arr3536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3536[2] {
yym3544 := z.EncBinary()
_ = yym3544
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3536[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3545 := z.EncBinary()
_ = yym3545
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr3536 || yy2arr3536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3536[3] {
yym3547 := z.EncBinary()
_ = yym3547
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3536[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3548 := z.EncBinary()
_ = yym3548
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
}
if yyr3536 || yy2arr3536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3536[4] {
yym3550 := z.EncBinary()
_ = yym3550
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3536[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3551 := z.EncBinary()
_ = yym3551
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
}
if yyr3536 || yy2arr3536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3536[5] {
yym3553 := z.EncBinary()
_ = yym3553
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3536[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3554 := z.EncBinary()
_ = yym3554
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr3536 || yy2arr3536 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3536[6] {
yym3556 := z.EncBinary()
_ = yym3556
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3536[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("container"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3557 := z.EncBinary()
_ = yym3557
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
}
if yyr3536 || yy2arr3536 {
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
yym3558 := z.DecBinary()
_ = yym3558
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3559 := r.ContainerType()
if yyct3559 == codecSelferValueTypeMap1234 {
yyl3559 := r.ReadMapStart()
if yyl3559 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3559, d)
}
} else if yyct3559 == codecSelferValueTypeArray1234 {
yyl3559 := r.ReadArrayStart()
if yyl3559 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3559, 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 yys3560Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3560Slc
var yyhl3560 bool = l >= 0
for yyj3560 := 0; ; yyj3560++ {
if yyhl3560 {
if yyj3560 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3560Slc = r.DecodeBytes(yys3560Slc, true, true)
yys3560 := string(yys3560Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3560 {
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, yys3560)
} // end switch yys3560
} // end for yyj3560
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 yyj3568 int
var yyb3568 bool
var yyhl3568 bool = l >= 0
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
for {
yyj3568++
if yyhl3568 {
yyb3568 = yyj3568 > l
} else {
yyb3568 = r.CheckBreak()
}
if yyb3568 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3568-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 {
yym3576 := z.EncBinary()
_ = yym3576
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3577 := !z.EncBinary()
yy2arr3577 := z.EncBasicHandle().StructToArray
var yyq3577 [8]bool
_, _, _ = yysep3577, yyq3577, yy2arr3577
const yyr3577 bool = false
yyq3577[0] = x.Kind != ""
yyq3577[1] = x.APIVersion != ""
var yynn3577 int
if yyr3577 || yy2arr3577 {
r.EncodeArrayStart(8)
} else {
yynn3577 = 6
for _, b := range yyq3577 {
if b {
yynn3577++
}
}
r.EncodeMapStart(yynn3577)
yynn3577 = 0
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3577[0] {
yym3579 := z.EncBinary()
_ = yym3579
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3577[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3580 := z.EncBinary()
_ = yym3580
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3577[1] {
yym3582 := z.EncBinary()
_ = yym3582
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3577[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3583 := z.EncBinary()
_ = yym3583
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3585 := z.EncBinary()
_ = yym3585
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3586 := z.EncBinary()
_ = yym3586
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3588 := z.EncBinary()
_ = yym3588
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3589 := z.EncBinary()
_ = yym3589
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3591 := z.EncBinary()
_ = yym3591
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3592 := z.EncBinary()
_ = yym3592
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3594 := z.EncBinary()
_ = yym3594
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3595 := z.EncBinary()
_ = yym3595
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3597 := z.EncBinary()
_ = yym3597
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)
yym3598 := z.EncBinary()
_ = yym3598
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3577 || yy2arr3577 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym3600 := z.EncBinary()
_ = yym3600
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 {
yym3601 := z.EncBinary()
_ = yym3601
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
if yyr3577 || yy2arr3577 {
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
yym3602 := z.DecBinary()
_ = yym3602
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3603 := r.ContainerType()
if yyct3603 == codecSelferValueTypeMap1234 {
yyl3603 := r.ReadMapStart()
if yyl3603 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3603, d)
}
} else if yyct3603 == codecSelferValueTypeArray1234 {
yyl3603 := r.ReadArrayStart()
if yyl3603 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3603, 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 yys3604Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3604Slc
var yyhl3604 bool = l >= 0
for yyj3604 := 0; ; yyj3604++ {
if yyhl3604 {
if yyj3604 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3604Slc = r.DecodeBytes(yys3604Slc, true, true)
yys3604 := string(yys3604Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3604 {
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 {
yyv3612 := &x.Command
yym3613 := z.DecBinary()
_ = yym3613
if false {
} else {
z.F.DecSliceStringX(yyv3612, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3604)
} // end switch yys3604
} // end for yyj3604
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 yyj3614 int
var yyb3614 bool
var yyhl3614 bool = l >= 0
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv3622 := &x.Command
yym3623 := z.DecBinary()
_ = yym3623
if false {
} else {
z.F.DecSliceStringX(yyv3622, false, d)
}
}
for {
yyj3614++
if yyhl3614 {
yyb3614 = yyj3614 > l
} else {
yyb3614 = r.CheckBreak()
}
if yyb3614 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3614-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 {
yym3624 := z.EncBinary()
_ = yym3624
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3625 := !z.EncBinary()
yy2arr3625 := z.EncBasicHandle().StructToArray
var yyq3625 [3]bool
_, _, _ = yysep3625, yyq3625, yy2arr3625
const yyr3625 bool = false
yyq3625[0] = x.Kind != ""
yyq3625[1] = x.APIVersion != ""
var yynn3625 int
if yyr3625 || yy2arr3625 {
r.EncodeArrayStart(3)
} else {
yynn3625 = 1
for _, b := range yyq3625 {
if b {
yynn3625++
}
}
r.EncodeMapStart(yynn3625)
yynn3625 = 0
}
if yyr3625 || yy2arr3625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3625[0] {
yym3627 := z.EncBinary()
_ = yym3627
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3625[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3628 := z.EncBinary()
_ = yym3628
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3625 || yy2arr3625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3625[1] {
yym3630 := z.EncBinary()
_ = yym3630
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3625[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3631 := z.EncBinary()
_ = yym3631
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3625 || yy2arr3625 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3633 := z.EncBinary()
_ = yym3633
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)
yym3634 := z.EncBinary()
_ = yym3634
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3625 || yy2arr3625 {
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
yym3635 := z.DecBinary()
_ = yym3635
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3636 := r.ContainerType()
if yyct3636 == codecSelferValueTypeMap1234 {
yyl3636 := r.ReadMapStart()
if yyl3636 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3636, d)
}
} else if yyct3636 == codecSelferValueTypeArray1234 {
yyl3636 := r.ReadArrayStart()
if yyl3636 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3636, 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 yys3637Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3637Slc
var yyhl3637 bool = l >= 0
for yyj3637 := 0; ; yyj3637++ {
if yyhl3637 {
if yyj3637 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3637Slc = r.DecodeBytes(yys3637Slc, true, true)
yys3637 := string(yys3637Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3637 {
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, yys3637)
} // end switch yys3637
} // end for yyj3637
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 yyj3641 int
var yyb3641 bool
var yyhl3641 bool = l >= 0
yyj3641++
if yyhl3641 {
yyb3641 = yyj3641 > l
} else {
yyb3641 = r.CheckBreak()
}
if yyb3641 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3641++
if yyhl3641 {
yyb3641 = yyj3641 > l
} else {
yyb3641 = r.CheckBreak()
}
if yyb3641 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3641++
if yyhl3641 {
yyb3641 = yyj3641 > l
} else {
yyb3641 = r.CheckBreak()
}
if yyb3641 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3641++
if yyhl3641 {
yyb3641 = yyj3641 > l
} else {
yyb3641 = r.CheckBreak()
}
if yyb3641 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3641-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3645 := z.EncBinary()
_ = yym3645
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3646 := !z.EncBinary()
yy2arr3646 := z.EncBasicHandle().StructToArray
var yyq3646 [3]bool
_, _, _ = yysep3646, yyq3646, yy2arr3646
const yyr3646 bool = false
yyq3646[0] = x.Kind != ""
yyq3646[1] = x.APIVersion != ""
var yynn3646 int
if yyr3646 || yy2arr3646 {
r.EncodeArrayStart(3)
} else {
yynn3646 = 1
for _, b := range yyq3646 {
if b {
yynn3646++
}
}
r.EncodeMapStart(yynn3646)
yynn3646 = 0
}
if yyr3646 || yy2arr3646 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3646[0] {
yym3648 := z.EncBinary()
_ = yym3648
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3646[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3649 := z.EncBinary()
_ = yym3649
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3646 || yy2arr3646 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3646[1] {
yym3651 := z.EncBinary()
_ = yym3651
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3646[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3652 := z.EncBinary()
_ = yym3652
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3646 || yy2arr3646 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3654 := z.EncBinary()
_ = yym3654
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)
yym3655 := z.EncBinary()
_ = yym3655
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3646 || yy2arr3646 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *NodeProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3656 := z.DecBinary()
_ = yym3656
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3657 := r.ContainerType()
if yyct3657 == codecSelferValueTypeMap1234 {
yyl3657 := r.ReadMapStart()
if yyl3657 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3657, d)
}
} else if yyct3657 == codecSelferValueTypeArray1234 {
yyl3657 := r.ReadArrayStart()
if yyl3657 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3657, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3658Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3658Slc
var yyhl3658 bool = l >= 0
for yyj3658 := 0; ; yyj3658++ {
if yyhl3658 {
if yyj3658 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3658Slc = r.DecodeBytes(yys3658Slc, true, true)
yys3658 := string(yys3658Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3658 {
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, yys3658)
} // end switch yys3658
} // end for yyj3658
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *NodeProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3662 int
var yyb3662 bool
var yyhl3662 bool = l >= 0
yyj3662++
if yyhl3662 {
yyb3662 = yyj3662 > l
} else {
yyb3662 = r.CheckBreak()
}
if yyb3662 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3662++
if yyhl3662 {
yyb3662 = yyj3662 > l
} else {
yyb3662 = r.CheckBreak()
}
if yyb3662 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3662++
if yyhl3662 {
yyb3662 = yyj3662 > l
} else {
yyb3662 = r.CheckBreak()
}
if yyb3662 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3662++
if yyhl3662 {
yyb3662 = yyj3662 > l
} else {
yyb3662 = r.CheckBreak()
}
if yyb3662 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3662-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServiceProxyOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3666 := z.EncBinary()
_ = yym3666
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3667 := !z.EncBinary()
yy2arr3667 := z.EncBasicHandle().StructToArray
var yyq3667 [3]bool
_, _, _ = yysep3667, yyq3667, yy2arr3667
const yyr3667 bool = false
yyq3667[0] = x.Kind != ""
yyq3667[1] = x.APIVersion != ""
var yynn3667 int
if yyr3667 || yy2arr3667 {
r.EncodeArrayStart(3)
} else {
yynn3667 = 1
for _, b := range yyq3667 {
if b {
yynn3667++
}
}
r.EncodeMapStart(yynn3667)
yynn3667 = 0
}
if yyr3667 || yy2arr3667 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3667[0] {
yym3669 := z.EncBinary()
_ = yym3669
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3667[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3670 := z.EncBinary()
_ = yym3670
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3667 || yy2arr3667 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3667[1] {
yym3672 := z.EncBinary()
_ = yym3672
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3667[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3673 := z.EncBinary()
_ = yym3673
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3667 || yy2arr3667 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3675 := z.EncBinary()
_ = yym3675
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)
yym3676 := z.EncBinary()
_ = yym3676
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3667 || yy2arr3667 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ServiceProxyOptions) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3677 := z.DecBinary()
_ = yym3677
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3678 := r.ContainerType()
if yyct3678 == codecSelferValueTypeMap1234 {
yyl3678 := r.ReadMapStart()
if yyl3678 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3678, d)
}
} else if yyct3678 == codecSelferValueTypeArray1234 {
yyl3678 := r.ReadArrayStart()
if yyl3678 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3678, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ServiceProxyOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3679Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3679Slc
var yyhl3679 bool = l >= 0
for yyj3679 := 0; ; yyj3679++ {
if yyhl3679 {
if yyj3679 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3679Slc = r.DecodeBytes(yys3679Slc, true, true)
yys3679 := string(yys3679Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3679 {
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, yys3679)
} // end switch yys3679
} // end for yyj3679
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ServiceProxyOptions) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3683 int
var yyb3683 bool
var yyhl3683 bool = l >= 0
yyj3683++
if yyhl3683 {
yyb3683 = yyj3683 > l
} else {
yyb3683 = r.CheckBreak()
}
if yyb3683 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3683++
if yyhl3683 {
yyb3683 = yyj3683 > l
} else {
yyb3683 = r.CheckBreak()
}
if yyb3683 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3683++
if yyhl3683 {
yyb3683 = yyj3683 > l
} else {
yyb3683 = r.CheckBreak()
}
if yyb3683 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3683++
if yyhl3683 {
yyb3683 = yyj3683 > l
} else {
yyb3683 = r.CheckBreak()
}
if yyb3683 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3683-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *OwnerReference) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3687 := z.EncBinary()
_ = yym3687
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3688 := !z.EncBinary()
yy2arr3688 := z.EncBasicHandle().StructToArray
var yyq3688 [5]bool
_, _, _ = yysep3688, yyq3688, yy2arr3688
const yyr3688 bool = false
yyq3688[4] = x.Controller != nil
var yynn3688 int
if yyr3688 || yy2arr3688 {
r.EncodeArrayStart(5)
} else {
yynn3688 = 4
for _, b := range yyq3688 {
if b {
yynn3688++
}
}
r.EncodeMapStart(yynn3688)
yynn3688 = 0
}
if yyr3688 || yy2arr3688 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3690 := z.EncBinary()
_ = yym3690
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)
yym3691 := z.EncBinary()
_ = yym3691
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr3688 || yy2arr3688 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3693 := z.EncBinary()
_ = yym3693
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3694 := z.EncBinary()
_ = yym3694
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
if yyr3688 || yy2arr3688 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3696 := z.EncBinary()
_ = yym3696
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)
yym3697 := z.EncBinary()
_ = yym3697
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3688 || yy2arr3688 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3699 := z.EncBinary()
_ = yym3699
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3700 := z.EncBinary()
_ = yym3700
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
if yyr3688 || yy2arr3688 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3688[4] {
if x.Controller == nil {
r.EncodeNil()
} else {
yy3702 := *x.Controller
yym3703 := z.EncBinary()
_ = yym3703
if false {
} else {
r.EncodeBool(bool(yy3702))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3688[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("controller"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Controller == nil {
r.EncodeNil()
} else {
yy3704 := *x.Controller
yym3705 := z.EncBinary()
_ = yym3705
if false {
} else {
r.EncodeBool(bool(yy3704))
}
}
}
}
if yyr3688 || yy2arr3688 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *OwnerReference) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym3706 := z.DecBinary()
_ = yym3706
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3707 := r.ContainerType()
if yyct3707 == codecSelferValueTypeMap1234 {
yyl3707 := r.ReadMapStart()
if yyl3707 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3707, d)
}
} else if yyct3707 == codecSelferValueTypeArray1234 {
yyl3707 := r.ReadArrayStart()
if yyl3707 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3707, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *OwnerReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3708Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3708Slc
var yyhl3708 bool = l >= 0
for yyj3708 := 0; ; yyj3708++ {
if yyhl3708 {
if yyj3708 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3708Slc = r.DecodeBytes(yys3708Slc, true, true)
yys3708 := string(yys3708Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3708 {
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "uid":
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
case "controller":
if r.TryDecodeAsNil() {
if x.Controller != nil {
x.Controller = nil
}
} else {
if x.Controller == nil {
x.Controller = new(bool)
}
yym3714 := z.DecBinary()
_ = yym3714
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3708)
} // end switch yys3708
} // end for yyj3708
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *OwnerReference) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj3715 int
var yyb3715 bool
var yyhl3715 bool = l >= 0
yyj3715++
if yyhl3715 {
yyb3715 = yyj3715 > l
} else {
yyb3715 = r.CheckBreak()
}
if yyb3715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3715++
if yyhl3715 {
yyb3715 = yyj3715 > l
} else {
yyb3715 = r.CheckBreak()
}
if yyb3715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3715++
if yyhl3715 {
yyb3715 = yyj3715 > l
} else {
yyb3715 = r.CheckBreak()
}
if yyb3715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3715++
if yyhl3715 {
yyb3715 = yyj3715 > l
} else {
yyb3715 = r.CheckBreak()
}
if yyb3715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3715++
if yyhl3715 {
yyb3715 = yyj3715 > l
} else {
yyb3715 = r.CheckBreak()
}
if yyb3715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Controller != nil {
x.Controller = nil
}
} else {
if x.Controller == nil {
x.Controller = new(bool)
}
yym3721 := z.DecBinary()
_ = yym3721
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
for {
yyj3715++
if yyhl3715 {
yyb3715 = yyj3715 > l
} else {
yyb3715 = r.CheckBreak()
}
if yyb3715 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3715-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 {
yym3722 := z.EncBinary()
_ = yym3722
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3723 := !z.EncBinary()
yy2arr3723 := z.EncBasicHandle().StructToArray
var yyq3723 [7]bool
_, _, _ = yysep3723, yyq3723, yy2arr3723
const yyr3723 bool = false
yyq3723[0] = x.Kind != ""
yyq3723[1] = x.Namespace != ""
yyq3723[2] = x.Name != ""
yyq3723[3] = x.UID != ""
yyq3723[4] = x.APIVersion != ""
yyq3723[5] = x.ResourceVersion != ""
yyq3723[6] = x.FieldPath != ""
var yynn3723 int
if yyr3723 || yy2arr3723 {
r.EncodeArrayStart(7)
} else {
yynn3723 = 0
for _, b := range yyq3723 {
if b {
yynn3723++
}
}
r.EncodeMapStart(yynn3723)
yynn3723 = 0
}
if yyr3723 || yy2arr3723 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3723[0] {
yym3725 := z.EncBinary()
_ = yym3725
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3723[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3726 := z.EncBinary()
_ = yym3726
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3723 || yy2arr3723 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3723[1] {
yym3728 := z.EncBinary()
_ = yym3728
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3723[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3729 := z.EncBinary()
_ = yym3729
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr3723 || yy2arr3723 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3723[2] {
yym3731 := z.EncBinary()
_ = yym3731
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3723[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3732 := z.EncBinary()
_ = yym3732
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr3723 || yy2arr3723 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3723[3] {
yym3734 := z.EncBinary()
_ = yym3734
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 yyq3723[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3735 := z.EncBinary()
_ = yym3735
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr3723 || yy2arr3723 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3723[4] {
yym3737 := z.EncBinary()
_ = yym3737
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3723[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3738 := z.EncBinary()
_ = yym3738
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3723 || yy2arr3723 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3723[5] {
yym3740 := z.EncBinary()
_ = yym3740
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3723[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3741 := z.EncBinary()
_ = yym3741
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr3723 || yy2arr3723 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3723[6] {
yym3743 := z.EncBinary()
_ = yym3743
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3723[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3744 := z.EncBinary()
_ = yym3744
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
}
if yyr3723 || yy2arr3723 {
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
yym3745 := z.DecBinary()
_ = yym3745
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3746 := r.ContainerType()
if yyct3746 == codecSelferValueTypeMap1234 {
yyl3746 := r.ReadMapStart()
if yyl3746 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3746, d)
}
} else if yyct3746 == codecSelferValueTypeArray1234 {
yyl3746 := r.ReadArrayStart()
if yyl3746 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3746, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ObjectReference) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3747Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3747Slc
var yyhl3747 bool = l >= 0
for yyj3747 := 0; ; yyj3747++ {
if yyhl3747 {
if yyj3747 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3747Slc = r.DecodeBytes(yys3747Slc, true, true)
yys3747 := string(yys3747Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3747 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "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, yys3747)
} // end switch yys3747
} // end for yyj3747
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 yyj3755 int
var yyb3755 bool
var yyhl3755 bool = l >= 0
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj3755++
if yyhl3755 {
yyb3755 = yyj3755 > l
} else {
yyb3755 = r.CheckBreak()
}
if yyb3755 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3755-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 {
yym3763 := z.EncBinary()
_ = yym3763
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3764 := !z.EncBinary()
yy2arr3764 := z.EncBasicHandle().StructToArray
var yyq3764 [1]bool
_, _, _ = yysep3764, yyq3764, yy2arr3764
const yyr3764 bool = false
var yynn3764 int
if yyr3764 || yy2arr3764 {
r.EncodeArrayStart(1)
} else {
yynn3764 = 1
for _, b := range yyq3764 {
if b {
yynn3764++
}
}
r.EncodeMapStart(yynn3764)
yynn3764 = 0
}
if yyr3764 || yy2arr3764 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3766 := z.EncBinary()
_ = yym3766
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)
yym3767 := z.EncBinary()
_ = yym3767
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3764 || yy2arr3764 {
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
yym3768 := z.DecBinary()
_ = yym3768
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3769 := r.ContainerType()
if yyct3769 == codecSelferValueTypeMap1234 {
yyl3769 := r.ReadMapStart()
if yyl3769 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3769, d)
}
} else if yyct3769 == codecSelferValueTypeArray1234 {
yyl3769 := r.ReadArrayStart()
if yyl3769 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3769, 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 yys3770Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3770Slc
var yyhl3770 bool = l >= 0
for yyj3770 := 0; ; yyj3770++ {
if yyhl3770 {
if yyj3770 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3770Slc = r.DecodeBytes(yys3770Slc, true, true)
yys3770 := string(yys3770Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3770 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3770)
} // end switch yys3770
} // end for yyj3770
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 yyj3772 int
var yyb3772 bool
var yyhl3772 bool = l >= 0
yyj3772++
if yyhl3772 {
yyb3772 = yyj3772 > l
} else {
yyb3772 = r.CheckBreak()
}
if yyb3772 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj3772++
if yyhl3772 {
yyb3772 = yyj3772 > l
} else {
yyb3772 = r.CheckBreak()
}
if yyb3772 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3772-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *SerializedReference) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3774 := z.EncBinary()
_ = yym3774
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3775 := !z.EncBinary()
yy2arr3775 := z.EncBasicHandle().StructToArray
var yyq3775 [3]bool
_, _, _ = yysep3775, yyq3775, yy2arr3775
const yyr3775 bool = false
yyq3775[0] = x.Kind != ""
yyq3775[1] = x.APIVersion != ""
yyq3775[2] = true
var yynn3775 int
if yyr3775 || yy2arr3775 {
r.EncodeArrayStart(3)
} else {
yynn3775 = 0
for _, b := range yyq3775 {
if b {
yynn3775++
}
}
r.EncodeMapStart(yynn3775)
yynn3775 = 0
}
if yyr3775 || yy2arr3775 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3775[0] {
yym3777 := z.EncBinary()
_ = yym3777
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3775[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3778 := z.EncBinary()
_ = yym3778
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3775 || yy2arr3775 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3775[1] {
yym3780 := z.EncBinary()
_ = yym3780
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3775[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3781 := z.EncBinary()
_ = yym3781
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3775 || yy2arr3775 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3775[2] {
yy3783 := &x.Reference
yy3783.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3775[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3784 := &x.Reference
yy3784.CodecEncodeSelf(e)
}
}
if yyr3775 || yy2arr3775 {
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
yym3785 := z.DecBinary()
_ = yym3785
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3786 := r.ContainerType()
if yyct3786 == codecSelferValueTypeMap1234 {
yyl3786 := r.ReadMapStart()
if yyl3786 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3786, d)
}
} else if yyct3786 == codecSelferValueTypeArray1234 {
yyl3786 := r.ReadArrayStart()
if yyl3786 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3786, 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 yys3787Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3787Slc
var yyhl3787 bool = l >= 0
for yyj3787 := 0; ; yyj3787++ {
if yyhl3787 {
if yyj3787 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3787Slc = r.DecodeBytes(yys3787Slc, true, true)
yys3787 := string(yys3787Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3787 {
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 {
yyv3790 := &x.Reference
yyv3790.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3787)
} // end switch yys3787
} // end for yyj3787
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 yyj3791 int
var yyb3791 bool
var yyhl3791 bool = l >= 0
yyj3791++
if yyhl3791 {
yyb3791 = yyj3791 > l
} else {
yyb3791 = r.CheckBreak()
}
if yyb3791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3791++
if yyhl3791 {
yyb3791 = yyj3791 > l
} else {
yyb3791 = r.CheckBreak()
}
if yyb3791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3791++
if yyhl3791 {
yyb3791 = yyj3791 > l
} else {
yyb3791 = r.CheckBreak()
}
if yyb3791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reference = ObjectReference{}
} else {
yyv3794 := &x.Reference
yyv3794.CodecDecodeSelf(d)
}
for {
yyj3791++
if yyhl3791 {
yyb3791 = yyj3791 > l
} else {
yyb3791 = r.CheckBreak()
}
if yyb3791 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3791-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 {
yym3795 := z.EncBinary()
_ = yym3795
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3796 := !z.EncBinary()
yy2arr3796 := z.EncBasicHandle().StructToArray
var yyq3796 [2]bool
_, _, _ = yysep3796, yyq3796, yy2arr3796
const yyr3796 bool = false
yyq3796[0] = x.Component != ""
yyq3796[1] = x.Host != ""
var yynn3796 int
if yyr3796 || yy2arr3796 {
r.EncodeArrayStart(2)
} else {
yynn3796 = 0
for _, b := range yyq3796 {
if b {
yynn3796++
}
}
r.EncodeMapStart(yynn3796)
yynn3796 = 0
}
if yyr3796 || yy2arr3796 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3796[0] {
yym3798 := z.EncBinary()
_ = yym3798
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3796[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("component"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3799 := z.EncBinary()
_ = yym3799
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
}
}
if yyr3796 || yy2arr3796 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3796[1] {
yym3801 := z.EncBinary()
_ = yym3801
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3796[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3802 := z.EncBinary()
_ = yym3802
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr3796 || yy2arr3796 {
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
yym3803 := z.DecBinary()
_ = yym3803
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3804 := r.ContainerType()
if yyct3804 == codecSelferValueTypeMap1234 {
yyl3804 := r.ReadMapStart()
if yyl3804 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3804, d)
}
} else if yyct3804 == codecSelferValueTypeArray1234 {
yyl3804 := r.ReadArrayStart()
if yyl3804 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3804, 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 yys3805Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3805Slc
var yyhl3805 bool = l >= 0
for yyj3805 := 0; ; yyj3805++ {
if yyhl3805 {
if yyj3805 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3805Slc = r.DecodeBytes(yys3805Slc, true, true)
yys3805 := string(yys3805Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3805 {
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, yys3805)
} // end switch yys3805
} // end for yyj3805
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 yyj3808 int
var yyb3808 bool
var yyhl3808 bool = l >= 0
yyj3808++
if yyhl3808 {
yyb3808 = yyj3808 > l
} else {
yyb3808 = r.CheckBreak()
}
if yyb3808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Component = ""
} else {
x.Component = string(r.DecodeString())
}
yyj3808++
if yyhl3808 {
yyb3808 = yyj3808 > l
} else {
yyb3808 = r.CheckBreak()
}
if yyb3808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
for {
yyj3808++
if yyhl3808 {
yyb3808 = yyj3808 > l
} else {
yyb3808 = r.CheckBreak()
}
if yyb3808 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3808-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 {
yym3811 := z.EncBinary()
_ = yym3811
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3812 := !z.EncBinary()
yy2arr3812 := z.EncBasicHandle().StructToArray
var yyq3812 [11]bool
_, _, _ = yysep3812, yyq3812, yy2arr3812
const yyr3812 bool = false
yyq3812[0] = x.Kind != ""
yyq3812[1] = x.APIVersion != ""
yyq3812[2] = true
yyq3812[3] = true
yyq3812[4] = x.Reason != ""
yyq3812[5] = x.Message != ""
yyq3812[6] = true
yyq3812[7] = true
yyq3812[8] = true
yyq3812[9] = x.Count != 0
yyq3812[10] = x.Type != ""
var yynn3812 int
if yyr3812 || yy2arr3812 {
r.EncodeArrayStart(11)
} else {
yynn3812 = 0
for _, b := range yyq3812 {
if b {
yynn3812++
}
}
r.EncodeMapStart(yynn3812)
yynn3812 = 0
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[0] {
yym3814 := z.EncBinary()
_ = yym3814
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3812[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3815 := z.EncBinary()
_ = yym3815
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[1] {
yym3817 := z.EncBinary()
_ = yym3817
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3812[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3818 := z.EncBinary()
_ = yym3818
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[2] {
yy3820 := &x.ObjectMeta
yy3820.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3812[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3821 := &x.ObjectMeta
yy3821.CodecEncodeSelf(e)
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[3] {
yy3823 := &x.InvolvedObject
yy3823.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3812[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3824 := &x.InvolvedObject
yy3824.CodecEncodeSelf(e)
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[4] {
yym3826 := z.EncBinary()
_ = yym3826
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3812[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3827 := z.EncBinary()
_ = yym3827
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[5] {
yym3829 := z.EncBinary()
_ = yym3829
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3812[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3830 := z.EncBinary()
_ = yym3830
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[6] {
yy3832 := &x.Source
yy3832.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3812[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("source"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3833 := &x.Source
yy3833.CodecEncodeSelf(e)
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[7] {
yy3835 := &x.FirstTimestamp
yym3836 := z.EncBinary()
_ = yym3836
if false {
} else if z.HasExtensions() && z.EncExt(yy3835) {
} else if yym3836 {
z.EncBinaryMarshal(yy3835)
} else if !yym3836 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3835)
} else {
z.EncFallback(yy3835)
}
} else {
r.EncodeNil()
}
} else {
if yyq3812[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3837 := &x.FirstTimestamp
yym3838 := z.EncBinary()
_ = yym3838
if false {
} else if z.HasExtensions() && z.EncExt(yy3837) {
} else if yym3838 {
z.EncBinaryMarshal(yy3837)
} else if !yym3838 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3837)
} else {
z.EncFallback(yy3837)
}
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[8] {
yy3840 := &x.LastTimestamp
yym3841 := z.EncBinary()
_ = yym3841
if false {
} else if z.HasExtensions() && z.EncExt(yy3840) {
} else if yym3841 {
z.EncBinaryMarshal(yy3840)
} else if !yym3841 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3840)
} else {
z.EncFallback(yy3840)
}
} else {
r.EncodeNil()
}
} else {
if yyq3812[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3842 := &x.LastTimestamp
yym3843 := z.EncBinary()
_ = yym3843
if false {
} else if z.HasExtensions() && z.EncExt(yy3842) {
} else if yym3843 {
z.EncBinaryMarshal(yy3842)
} else if !yym3843 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3842)
} else {
z.EncFallback(yy3842)
}
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[9] {
yym3845 := z.EncBinary()
_ = yym3845
if false {
} else {
r.EncodeInt(int64(x.Count))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3812[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("count"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3846 := z.EncBinary()
_ = yym3846
if false {
} else {
r.EncodeInt(int64(x.Count))
}
}
}
if yyr3812 || yy2arr3812 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3812[10] {
yym3848 := z.EncBinary()
_ = yym3848
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3812[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3849 := z.EncBinary()
_ = yym3849
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3812 || yy2arr3812 {
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
yym3850 := z.DecBinary()
_ = yym3850
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3851 := r.ContainerType()
if yyct3851 == codecSelferValueTypeMap1234 {
yyl3851 := r.ReadMapStart()
if yyl3851 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3851, d)
}
} else if yyct3851 == codecSelferValueTypeArray1234 {
yyl3851 := r.ReadArrayStart()
if yyl3851 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3851, 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 yys3852Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3852Slc
var yyhl3852 bool = l >= 0
for yyj3852 := 0; ; yyj3852++ {
if yyhl3852 {
if yyj3852 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3852Slc = r.DecodeBytes(yys3852Slc, true, true)
yys3852 := string(yys3852Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3852 {
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 {
yyv3855 := &x.ObjectMeta
yyv3855.CodecDecodeSelf(d)
}
case "involvedObject":
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3856 := &x.InvolvedObject
yyv3856.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 {
yyv3859 := &x.Source
yyv3859.CodecDecodeSelf(d)
}
case "firstTimestamp":
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3860 := &x.FirstTimestamp
yym3861 := z.DecBinary()
_ = yym3861
if false {
} else if z.HasExtensions() && z.DecExt(yyv3860) {
} else if yym3861 {
z.DecBinaryUnmarshal(yyv3860)
} else if !yym3861 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3860)
} else {
z.DecFallback(yyv3860, false)
}
}
case "lastTimestamp":
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3862 := &x.LastTimestamp
yym3863 := z.DecBinary()
_ = yym3863
if false {
} else if z.HasExtensions() && z.DecExt(yyv3862) {
} else if yym3863 {
z.DecBinaryUnmarshal(yyv3862)
} else if !yym3863 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3862)
} else {
z.DecFallback(yyv3862, false)
}
}
case "count":
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int32(r.DecodeInt(32))
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3852)
} // end switch yys3852
} // end for yyj3852
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 yyj3866 int
var yyb3866 bool
var yyhl3866 bool = l >= 0
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3869 := &x.ObjectMeta
yyv3869.CodecDecodeSelf(d)
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3870 := &x.InvolvedObject
yyv3870.CodecDecodeSelf(d)
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Source = EventSource{}
} else {
yyv3873 := &x.Source
yyv3873.CodecDecodeSelf(d)
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3874 := &x.FirstTimestamp
yym3875 := z.DecBinary()
_ = yym3875
if false {
} else if z.HasExtensions() && z.DecExt(yyv3874) {
} else if yym3875 {
z.DecBinaryUnmarshal(yyv3874)
} else if !yym3875 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3874)
} else {
z.DecFallback(yyv3874, false)
}
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3876 := &x.LastTimestamp
yym3877 := z.DecBinary()
_ = yym3877
if false {
} else if z.HasExtensions() && z.DecExt(yyv3876) {
} else if yym3877 {
z.DecBinaryUnmarshal(yyv3876)
} else if !yym3877 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3876)
} else {
z.DecFallback(yyv3876, false)
}
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int32(r.DecodeInt(32))
}
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
for {
yyj3866++
if yyhl3866 {
yyb3866 = yyj3866 > l
} else {
yyb3866 = r.CheckBreak()
}
if yyb3866 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3866-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 {
yym3880 := z.EncBinary()
_ = yym3880
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3881 := !z.EncBinary()
yy2arr3881 := z.EncBasicHandle().StructToArray
var yyq3881 [4]bool
_, _, _ = yysep3881, yyq3881, yy2arr3881
const yyr3881 bool = false
yyq3881[0] = x.Kind != ""
yyq3881[1] = x.APIVersion != ""
yyq3881[2] = true
var yynn3881 int
if yyr3881 || yy2arr3881 {
r.EncodeArrayStart(4)
} else {
yynn3881 = 1
for _, b := range yyq3881 {
if b {
yynn3881++
}
}
r.EncodeMapStart(yynn3881)
yynn3881 = 0
}
if yyr3881 || yy2arr3881 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3881[0] {
yym3883 := z.EncBinary()
_ = yym3883
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3881[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3884 := z.EncBinary()
_ = yym3884
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3881 || yy2arr3881 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3881[1] {
yym3886 := z.EncBinary()
_ = yym3886
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3881[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3887 := z.EncBinary()
_ = yym3887
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3881 || yy2arr3881 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3881[2] {
yy3889 := &x.ListMeta
yym3890 := z.EncBinary()
_ = yym3890
if false {
} else if z.HasExtensions() && z.EncExt(yy3889) {
} else {
z.EncFallback(yy3889)
}
} else {
r.EncodeNil()
}
} else {
if yyq3881[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3891 := &x.ListMeta
yym3892 := z.EncBinary()
_ = yym3892
if false {
} else if z.HasExtensions() && z.EncExt(yy3891) {
} else {
z.EncFallback(yy3891)
}
}
}
if yyr3881 || yy2arr3881 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3894 := z.EncBinary()
_ = yym3894
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 {
yym3895 := z.EncBinary()
_ = yym3895
if false {
} else {
h.encSliceEvent(([]Event)(x.Items), e)
}
}
}
if yyr3881 || yy2arr3881 {
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
yym3896 := z.DecBinary()
_ = yym3896
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3897 := r.ContainerType()
if yyct3897 == codecSelferValueTypeMap1234 {
yyl3897 := r.ReadMapStart()
if yyl3897 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3897, d)
}
} else if yyct3897 == codecSelferValueTypeArray1234 {
yyl3897 := r.ReadArrayStart()
if yyl3897 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3897, 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 yys3898Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3898Slc
var yyhl3898 bool = l >= 0
for yyj3898 := 0; ; yyj3898++ {
if yyhl3898 {
if yyj3898 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3898Slc = r.DecodeBytes(yys3898Slc, true, true)
yys3898 := string(yys3898Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3898 {
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 {
yyv3901 := &x.ListMeta
yym3902 := z.DecBinary()
_ = yym3902
if false {
} else if z.HasExtensions() && z.DecExt(yyv3901) {
} else {
z.DecFallback(yyv3901, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3903 := &x.Items
yym3904 := z.DecBinary()
_ = yym3904
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3903), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3898)
} // end switch yys3898
} // end for yyj3898
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 yyj3905 int
var yyb3905 bool
var yyhl3905 bool = l >= 0
yyj3905++
if yyhl3905 {
yyb3905 = yyj3905 > l
} else {
yyb3905 = r.CheckBreak()
}
if yyb3905 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3905++
if yyhl3905 {
yyb3905 = yyj3905 > l
} else {
yyb3905 = r.CheckBreak()
}
if yyb3905 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3905++
if yyhl3905 {
yyb3905 = yyj3905 > l
} else {
yyb3905 = r.CheckBreak()
}
if yyb3905 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3908 := &x.ListMeta
yym3909 := z.DecBinary()
_ = yym3909
if false {
} else if z.HasExtensions() && z.DecExt(yyv3908) {
} else {
z.DecFallback(yyv3908, false)
}
}
yyj3905++
if yyhl3905 {
yyb3905 = yyj3905 > l
} else {
yyb3905 = r.CheckBreak()
}
if yyb3905 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3910 := &x.Items
yym3911 := z.DecBinary()
_ = yym3911
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3910), d)
}
}
for {
yyj3905++
if yyhl3905 {
yyb3905 = yyj3905 > l
} else {
yyb3905 = r.CheckBreak()
}
if yyb3905 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3905-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 {
yym3912 := z.EncBinary()
_ = yym3912
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3913 := !z.EncBinary()
yy2arr3913 := z.EncBasicHandle().StructToArray
var yyq3913 [4]bool
_, _, _ = yysep3913, yyq3913, yy2arr3913
const yyr3913 bool = false
yyq3913[0] = x.Kind != ""
yyq3913[1] = x.APIVersion != ""
yyq3913[2] = true
var yynn3913 int
if yyr3913 || yy2arr3913 {
r.EncodeArrayStart(4)
} else {
yynn3913 = 1
for _, b := range yyq3913 {
if b {
yynn3913++
}
}
r.EncodeMapStart(yynn3913)
yynn3913 = 0
}
if yyr3913 || yy2arr3913 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3913[0] {
yym3915 := z.EncBinary()
_ = yym3915
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3913[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3916 := z.EncBinary()
_ = yym3916
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3913 || yy2arr3913 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3913[1] {
yym3918 := z.EncBinary()
_ = yym3918
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3913[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3919 := z.EncBinary()
_ = yym3919
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3913 || yy2arr3913 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3913[2] {
yy3921 := &x.ListMeta
yym3922 := z.EncBinary()
_ = yym3922
if false {
} else if z.HasExtensions() && z.EncExt(yy3921) {
} else {
z.EncFallback(yy3921)
}
} else {
r.EncodeNil()
}
} else {
if yyq3913[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3923 := &x.ListMeta
yym3924 := z.EncBinary()
_ = yym3924
if false {
} else if z.HasExtensions() && z.EncExt(yy3923) {
} else {
z.EncFallback(yy3923)
}
}
}
if yyr3913 || yy2arr3913 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3926 := z.EncBinary()
_ = yym3926
if false {
} else {
h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3927 := z.EncBinary()
_ = yym3927
if false {
} else {
h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e)
}
}
}
if yyr3913 || yy2arr3913 {
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
yym3928 := z.DecBinary()
_ = yym3928
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3929 := r.ContainerType()
if yyct3929 == codecSelferValueTypeMap1234 {
yyl3929 := r.ReadMapStart()
if yyl3929 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3929, d)
}
} else if yyct3929 == codecSelferValueTypeArray1234 {
yyl3929 := r.ReadArrayStart()
if yyl3929 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3929, 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 yys3930Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3930Slc
var yyhl3930 bool = l >= 0
for yyj3930 := 0; ; yyj3930++ {
if yyhl3930 {
if yyj3930 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3930Slc = r.DecodeBytes(yys3930Slc, true, true)
yys3930 := string(yys3930Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3930 {
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 {
yyv3933 := &x.ListMeta
yym3934 := z.DecBinary()
_ = yym3934
if false {
} else if z.HasExtensions() && z.DecExt(yyv3933) {
} else {
z.DecFallback(yyv3933, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3935 := &x.Items
yym3936 := z.DecBinary()
_ = yym3936
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3935), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3930)
} // end switch yys3930
} // end for yyj3930
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 yyj3937 int
var yyb3937 bool
var yyhl3937 bool = l >= 0
yyj3937++
if yyhl3937 {
yyb3937 = yyj3937 > l
} else {
yyb3937 = r.CheckBreak()
}
if yyb3937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3937++
if yyhl3937 {
yyb3937 = yyj3937 > l
} else {
yyb3937 = r.CheckBreak()
}
if yyb3937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3937++
if yyhl3937 {
yyb3937 = yyj3937 > l
} else {
yyb3937 = r.CheckBreak()
}
if yyb3937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3940 := &x.ListMeta
yym3941 := z.DecBinary()
_ = yym3941
if false {
} else if z.HasExtensions() && z.DecExt(yyv3940) {
} else {
z.DecFallback(yyv3940, false)
}
}
yyj3937++
if yyhl3937 {
yyb3937 = yyj3937 > l
} else {
yyb3937 = r.CheckBreak()
}
if yyb3937 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3942 := &x.Items
yym3943 := z.DecBinary()
_ = yym3943
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3942), d)
}
}
for {
yyj3937++
if yyhl3937 {
yyb3937 = yyj3937 > l
} else {
yyb3937 = r.CheckBreak()
}
if yyb3937 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3937-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3944 := z.EncBinary()
_ = yym3944
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
yym3945 := z.DecBinary()
_ = yym3945
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 {
yym3946 := z.EncBinary()
_ = yym3946
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3947 := !z.EncBinary()
yy2arr3947 := z.EncBasicHandle().StructToArray
var yyq3947 [6]bool
_, _, _ = yysep3947, yyq3947, yy2arr3947
const yyr3947 bool = false
yyq3947[0] = x.Type != ""
yyq3947[1] = len(x.Max) != 0
yyq3947[2] = len(x.Min) != 0
yyq3947[3] = len(x.Default) != 0
yyq3947[4] = len(x.DefaultRequest) != 0
yyq3947[5] = len(x.MaxLimitRequestRatio) != 0
var yynn3947 int
if yyr3947 || yy2arr3947 {
r.EncodeArrayStart(6)
} else {
yynn3947 = 0
for _, b := range yyq3947 {
if b {
yynn3947++
}
}
r.EncodeMapStart(yynn3947)
yynn3947 = 0
}
if yyr3947 || yy2arr3947 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3947[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3947[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3947 || yy2arr3947 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3947[1] {
if x.Max == nil {
r.EncodeNil()
} else {
x.Max.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3947[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 yyr3947 || yy2arr3947 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3947[2] {
if x.Min == nil {
r.EncodeNil()
} else {
x.Min.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3947[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 yyr3947 || yy2arr3947 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3947[3] {
if x.Default == nil {
r.EncodeNil()
} else {
x.Default.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3947[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 yyr3947 || yy2arr3947 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3947[4] {
if x.DefaultRequest == nil {
r.EncodeNil()
} else {
x.DefaultRequest.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3947[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 yyr3947 || yy2arr3947 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3947[5] {
if x.MaxLimitRequestRatio == nil {
r.EncodeNil()
} else {
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3947[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 yyr3947 || yy2arr3947 {
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
yym3954 := z.DecBinary()
_ = yym3954
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3955 := r.ContainerType()
if yyct3955 == codecSelferValueTypeMap1234 {
yyl3955 := r.ReadMapStart()
if yyl3955 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3955, d)
}
} else if yyct3955 == codecSelferValueTypeArray1234 {
yyl3955 := r.ReadArrayStart()
if yyl3955 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3955, 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 yys3956Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3956Slc
var yyhl3956 bool = l >= 0
for yyj3956 := 0; ; yyj3956++ {
if yyhl3956 {
if yyj3956 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3956Slc = r.DecodeBytes(yys3956Slc, true, true)
yys3956 := string(yys3956Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3956 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
case "max":
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3958 := &x.Max
yyv3958.CodecDecodeSelf(d)
}
case "min":
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3959 := &x.Min
yyv3959.CodecDecodeSelf(d)
}
case "default":
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3960 := &x.Default
yyv3960.CodecDecodeSelf(d)
}
case "defaultRequest":
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3961 := &x.DefaultRequest
yyv3961.CodecDecodeSelf(d)
}
case "maxLimitRequestRatio":
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3962 := &x.MaxLimitRequestRatio
yyv3962.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3956)
} // end switch yys3956
} // end for yyj3956
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 yyj3963 int
var yyb3963 bool
var yyhl3963 bool = l >= 0
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3965 := &x.Max
yyv3965.CodecDecodeSelf(d)
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3966 := &x.Min
yyv3966.CodecDecodeSelf(d)
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3967 := &x.Default
yyv3967.CodecDecodeSelf(d)
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3968 := &x.DefaultRequest
yyv3968.CodecDecodeSelf(d)
}
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3969 := &x.MaxLimitRequestRatio
yyv3969.CodecDecodeSelf(d)
}
for {
yyj3963++
if yyhl3963 {
yyb3963 = yyj3963 > l
} else {
yyb3963 = r.CheckBreak()
}
if yyb3963 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3963-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 {
yym3970 := z.EncBinary()
_ = yym3970
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3971 := !z.EncBinary()
yy2arr3971 := z.EncBasicHandle().StructToArray
var yyq3971 [1]bool
_, _, _ = yysep3971, yyq3971, yy2arr3971
const yyr3971 bool = false
var yynn3971 int
if yyr3971 || yy2arr3971 {
r.EncodeArrayStart(1)
} else {
yynn3971 = 1
for _, b := range yyq3971 {
if b {
yynn3971++
}
}
r.EncodeMapStart(yynn3971)
yynn3971 = 0
}
if yyr3971 || yy2arr3971 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Limits == nil {
r.EncodeNil()
} else {
yym3973 := z.EncBinary()
_ = yym3973
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 {
yym3974 := z.EncBinary()
_ = yym3974
if false {
} else {
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
}
}
}
if yyr3971 || yy2arr3971 {
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
yym3975 := z.DecBinary()
_ = yym3975
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3976 := r.ContainerType()
if yyct3976 == codecSelferValueTypeMap1234 {
yyl3976 := r.ReadMapStart()
if yyl3976 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3976, d)
}
} else if yyct3976 == codecSelferValueTypeArray1234 {
yyl3976 := r.ReadArrayStart()
if yyl3976 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3976, 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 yys3977Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3977Slc
var yyhl3977 bool = l >= 0
for yyj3977 := 0; ; yyj3977++ {
if yyhl3977 {
if yyj3977 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3977Slc = r.DecodeBytes(yys3977Slc, true, true)
yys3977 := string(yys3977Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3977 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3978 := &x.Limits
yym3979 := z.DecBinary()
_ = yym3979
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3978), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3977)
} // end switch yys3977
} // end for yyj3977
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 yyj3980 int
var yyb3980 bool
var yyhl3980 bool = l >= 0
yyj3980++
if yyhl3980 {
yyb3980 = yyj3980 > l
} else {
yyb3980 = r.CheckBreak()
}
if yyb3980 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3981 := &x.Limits
yym3982 := z.DecBinary()
_ = yym3982
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3981), d)
}
}
for {
yyj3980++
if yyhl3980 {
yyb3980 = yyj3980 > l
} else {
yyb3980 = r.CheckBreak()
}
if yyb3980 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3980-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 {
yym3983 := z.EncBinary()
_ = yym3983
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3984 := !z.EncBinary()
yy2arr3984 := z.EncBasicHandle().StructToArray
var yyq3984 [4]bool
_, _, _ = yysep3984, yyq3984, yy2arr3984
const yyr3984 bool = false
yyq3984[0] = x.Kind != ""
yyq3984[1] = x.APIVersion != ""
yyq3984[2] = true
yyq3984[3] = true
var yynn3984 int
if yyr3984 || yy2arr3984 {
r.EncodeArrayStart(4)
} else {
yynn3984 = 0
for _, b := range yyq3984 {
if b {
yynn3984++
}
}
r.EncodeMapStart(yynn3984)
yynn3984 = 0
}
if yyr3984 || yy2arr3984 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3984[0] {
yym3986 := z.EncBinary()
_ = yym3986
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3984[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3987 := z.EncBinary()
_ = yym3987
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3984 || yy2arr3984 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3984[1] {
yym3989 := z.EncBinary()
_ = yym3989
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3984[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3990 := z.EncBinary()
_ = yym3990
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3984 || yy2arr3984 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3984[2] {
yy3992 := &x.ObjectMeta
yy3992.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3984[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3993 := &x.ObjectMeta
yy3993.CodecEncodeSelf(e)
}
}
if yyr3984 || yy2arr3984 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3984[3] {
yy3995 := &x.Spec
yy3995.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3984[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3996 := &x.Spec
yy3996.CodecEncodeSelf(e)
}
}
if yyr3984 || yy2arr3984 {
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
yym3997 := z.DecBinary()
_ = yym3997
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3998 := r.ContainerType()
if yyct3998 == codecSelferValueTypeMap1234 {
yyl3998 := r.ReadMapStart()
if yyl3998 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3998, d)
}
} else if yyct3998 == codecSelferValueTypeArray1234 {
yyl3998 := r.ReadArrayStart()
if yyl3998 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3998, 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 yys3999Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3999Slc
var yyhl3999 bool = l >= 0
for yyj3999 := 0; ; yyj3999++ {
if yyhl3999 {
if yyj3999 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3999Slc = r.DecodeBytes(yys3999Slc, true, true)
yys3999 := string(yys3999Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3999 {
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 {
yyv4002 := &x.ObjectMeta
yyv4002.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv4003 := &x.Spec
yyv4003.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3999)
} // end switch yys3999
} // end for yyj3999
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 yyj4004 int
var yyb4004 bool
var yyhl4004 bool = l >= 0
yyj4004++
if yyhl4004 {
yyb4004 = yyj4004 > l
} else {
yyb4004 = r.CheckBreak()
}
if yyb4004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4004++
if yyhl4004 {
yyb4004 = yyj4004 > l
} else {
yyb4004 = r.CheckBreak()
}
if yyb4004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4004++
if yyhl4004 {
yyb4004 = yyj4004 > l
} else {
yyb4004 = r.CheckBreak()
}
if yyb4004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4007 := &x.ObjectMeta
yyv4007.CodecDecodeSelf(d)
}
yyj4004++
if yyhl4004 {
yyb4004 = yyj4004 > l
} else {
yyb4004 = r.CheckBreak()
}
if yyb4004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv4008 := &x.Spec
yyv4008.CodecDecodeSelf(d)
}
for {
yyj4004++
if yyhl4004 {
yyb4004 = yyj4004 > l
} else {
yyb4004 = r.CheckBreak()
}
if yyb4004 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4004-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 {
yym4009 := z.EncBinary()
_ = yym4009
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4010 := !z.EncBinary()
yy2arr4010 := z.EncBasicHandle().StructToArray
var yyq4010 [4]bool
_, _, _ = yysep4010, yyq4010, yy2arr4010
const yyr4010 bool = false
yyq4010[0] = x.Kind != ""
yyq4010[1] = x.APIVersion != ""
yyq4010[2] = true
var yynn4010 int
if yyr4010 || yy2arr4010 {
r.EncodeArrayStart(4)
} else {
yynn4010 = 1
for _, b := range yyq4010 {
if b {
yynn4010++
}
}
r.EncodeMapStart(yynn4010)
yynn4010 = 0
}
if yyr4010 || yy2arr4010 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4010[0] {
yym4012 := z.EncBinary()
_ = yym4012
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4010[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4013 := z.EncBinary()
_ = yym4013
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4010 || yy2arr4010 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4010[1] {
yym4015 := z.EncBinary()
_ = yym4015
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4010[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4016 := z.EncBinary()
_ = yym4016
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4010 || yy2arr4010 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4010[2] {
yy4018 := &x.ListMeta
yym4019 := z.EncBinary()
_ = yym4019
if false {
} else if z.HasExtensions() && z.EncExt(yy4018) {
} else {
z.EncFallback(yy4018)
}
} else {
r.EncodeNil()
}
} else {
if yyq4010[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4020 := &x.ListMeta
yym4021 := z.EncBinary()
_ = yym4021
if false {
} else if z.HasExtensions() && z.EncExt(yy4020) {
} else {
z.EncFallback(yy4020)
}
}
}
if yyr4010 || yy2arr4010 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4023 := z.EncBinary()
_ = yym4023
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 {
yym4024 := z.EncBinary()
_ = yym4024
if false {
} else {
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
}
}
}
if yyr4010 || yy2arr4010 {
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
yym4025 := z.DecBinary()
_ = yym4025
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4026 := r.ContainerType()
if yyct4026 == codecSelferValueTypeMap1234 {
yyl4026 := r.ReadMapStart()
if yyl4026 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4026, d)
}
} else if yyct4026 == codecSelferValueTypeArray1234 {
yyl4026 := r.ReadArrayStart()
if yyl4026 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4026, 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 yys4027Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4027Slc
var yyhl4027 bool = l >= 0
for yyj4027 := 0; ; yyj4027++ {
if yyhl4027 {
if yyj4027 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4027Slc = r.DecodeBytes(yys4027Slc, true, true)
yys4027 := string(yys4027Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4027 {
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 {
yyv4030 := &x.ListMeta
yym4031 := z.DecBinary()
_ = yym4031
if false {
} else if z.HasExtensions() && z.DecExt(yyv4030) {
} else {
z.DecFallback(yyv4030, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4032 := &x.Items
yym4033 := z.DecBinary()
_ = yym4033
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4032), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4027)
} // end switch yys4027
} // end for yyj4027
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 yyj4034 int
var yyb4034 bool
var yyhl4034 bool = l >= 0
yyj4034++
if yyhl4034 {
yyb4034 = yyj4034 > l
} else {
yyb4034 = r.CheckBreak()
}
if yyb4034 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4034++
if yyhl4034 {
yyb4034 = yyj4034 > l
} else {
yyb4034 = r.CheckBreak()
}
if yyb4034 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4034++
if yyhl4034 {
yyb4034 = yyj4034 > l
} else {
yyb4034 = r.CheckBreak()
}
if yyb4034 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4037 := &x.ListMeta
yym4038 := z.DecBinary()
_ = yym4038
if false {
} else if z.HasExtensions() && z.DecExt(yyv4037) {
} else {
z.DecFallback(yyv4037, false)
}
}
yyj4034++
if yyhl4034 {
yyb4034 = yyj4034 > l
} else {
yyb4034 = r.CheckBreak()
}
if yyb4034 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4039 := &x.Items
yym4040 := z.DecBinary()
_ = yym4040
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4039), d)
}
}
for {
yyj4034++
if yyhl4034 {
yyb4034 = yyj4034 > l
} else {
yyb4034 = r.CheckBreak()
}
if yyb4034 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4034-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4041 := z.EncBinary()
_ = yym4041
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x))
}
}
func (x *ResourceQuotaScope) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym4042 := z.DecBinary()
_ = yym4042
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
*((*string)(x)) = r.DecodeString()
}
}
func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym4043 := z.EncBinary()
_ = yym4043
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4044 := !z.EncBinary()
yy2arr4044 := z.EncBasicHandle().StructToArray
var yyq4044 [2]bool
_, _, _ = yysep4044, yyq4044, yy2arr4044
const yyr4044 bool = false
yyq4044[0] = len(x.Hard) != 0
yyq4044[1] = len(x.Scopes) != 0
var yynn4044 int
if yyr4044 || yy2arr4044 {
r.EncodeArrayStart(2)
} else {
yynn4044 = 0
for _, b := range yyq4044 {
if b {
yynn4044++
}
}
r.EncodeMapStart(yynn4044)
yynn4044 = 0
}
if yyr4044 || yy2arr4044 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4044[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4044[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 yyr4044 || yy2arr4044 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4044[1] {
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4047 := z.EncBinary()
_ = yym4047
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4044[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scopes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4048 := z.EncBinary()
_ = yym4048
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
}
}
if yyr4044 || yy2arr4044 {
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
yym4049 := z.DecBinary()
_ = yym4049
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4050 := r.ContainerType()
if yyct4050 == codecSelferValueTypeMap1234 {
yyl4050 := r.ReadMapStart()
if yyl4050 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4050, d)
}
} else if yyct4050 == codecSelferValueTypeArray1234 {
yyl4050 := r.ReadArrayStart()
if yyl4050 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4050, 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 yys4051Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4051Slc
var yyhl4051 bool = l >= 0
for yyj4051 := 0; ; yyj4051++ {
if yyhl4051 {
if yyj4051 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4051Slc = r.DecodeBytes(yys4051Slc, true, true)
yys4051 := string(yys4051Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4051 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4052 := &x.Hard
yyv4052.CodecDecodeSelf(d)
}
case "scopes":
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4053 := &x.Scopes
yym4054 := z.DecBinary()
_ = yym4054
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4053), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4051)
} // end switch yys4051
} // end for yyj4051
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 yyj4055 int
var yyb4055 bool
var yyhl4055 bool = l >= 0
yyj4055++
if yyhl4055 {
yyb4055 = yyj4055 > l
} else {
yyb4055 = r.CheckBreak()
}
if yyb4055 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4056 := &x.Hard
yyv4056.CodecDecodeSelf(d)
}
yyj4055++
if yyhl4055 {
yyb4055 = yyj4055 > l
} else {
yyb4055 = r.CheckBreak()
}
if yyb4055 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4057 := &x.Scopes
yym4058 := z.DecBinary()
_ = yym4058
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4057), d)
}
}
for {
yyj4055++
if yyhl4055 {
yyb4055 = yyj4055 > l
} else {
yyb4055 = r.CheckBreak()
}
if yyb4055 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4055-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 {
yym4059 := z.EncBinary()
_ = yym4059
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4060 := !z.EncBinary()
yy2arr4060 := z.EncBasicHandle().StructToArray
var yyq4060 [2]bool
_, _, _ = yysep4060, yyq4060, yy2arr4060
const yyr4060 bool = false
yyq4060[0] = len(x.Hard) != 0
yyq4060[1] = len(x.Used) != 0
var yynn4060 int
if yyr4060 || yy2arr4060 {
r.EncodeArrayStart(2)
} else {
yynn4060 = 0
for _, b := range yyq4060 {
if b {
yynn4060++
}
}
r.EncodeMapStart(yynn4060)
yynn4060 = 0
}
if yyr4060 || yy2arr4060 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4060[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4060[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 yyr4060 || yy2arr4060 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4060[1] {
if x.Used == nil {
r.EncodeNil()
} else {
x.Used.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4060[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 yyr4060 || yy2arr4060 {
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
yym4063 := z.DecBinary()
_ = yym4063
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4064 := r.ContainerType()
if yyct4064 == codecSelferValueTypeMap1234 {
yyl4064 := r.ReadMapStart()
if yyl4064 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4064, d)
}
} else if yyct4064 == codecSelferValueTypeArray1234 {
yyl4064 := r.ReadArrayStart()
if yyl4064 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4064, 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 yys4065Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4065Slc
var yyhl4065 bool = l >= 0
for yyj4065 := 0; ; yyj4065++ {
if yyhl4065 {
if yyj4065 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4065Slc = r.DecodeBytes(yys4065Slc, true, true)
yys4065 := string(yys4065Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4065 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4066 := &x.Hard
yyv4066.CodecDecodeSelf(d)
}
case "used":
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4067 := &x.Used
yyv4067.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4065)
} // end switch yys4065
} // end for yyj4065
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 yyj4068 int
var yyb4068 bool
var yyhl4068 bool = l >= 0
yyj4068++
if yyhl4068 {
yyb4068 = yyj4068 > l
} else {
yyb4068 = r.CheckBreak()
}
if yyb4068 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4069 := &x.Hard
yyv4069.CodecDecodeSelf(d)
}
yyj4068++
if yyhl4068 {
yyb4068 = yyj4068 > l
} else {
yyb4068 = r.CheckBreak()
}
if yyb4068 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4070 := &x.Used
yyv4070.CodecDecodeSelf(d)
}
for {
yyj4068++
if yyhl4068 {
yyb4068 = yyj4068 > l
} else {
yyb4068 = r.CheckBreak()
}
if yyb4068 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4068-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 {
yym4071 := z.EncBinary()
_ = yym4071
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4072 := !z.EncBinary()
yy2arr4072 := z.EncBasicHandle().StructToArray
var yyq4072 [5]bool
_, _, _ = yysep4072, yyq4072, yy2arr4072
const yyr4072 bool = false
yyq4072[0] = x.Kind != ""
yyq4072[1] = x.APIVersion != ""
yyq4072[2] = true
yyq4072[3] = true
yyq4072[4] = true
var yynn4072 int
if yyr4072 || yy2arr4072 {
r.EncodeArrayStart(5)
} else {
yynn4072 = 0
for _, b := range yyq4072 {
if b {
yynn4072++
}
}
r.EncodeMapStart(yynn4072)
yynn4072 = 0
}
if yyr4072 || yy2arr4072 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4072[0] {
yym4074 := z.EncBinary()
_ = yym4074
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4072[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4075 := z.EncBinary()
_ = yym4075
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4072 || yy2arr4072 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4072[1] {
yym4077 := z.EncBinary()
_ = yym4077
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4072[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4078 := z.EncBinary()
_ = yym4078
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4072 || yy2arr4072 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4072[2] {
yy4080 := &x.ObjectMeta
yy4080.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4072[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4081 := &x.ObjectMeta
yy4081.CodecEncodeSelf(e)
}
}
if yyr4072 || yy2arr4072 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4072[3] {
yy4083 := &x.Spec
yy4083.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4072[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4084 := &x.Spec
yy4084.CodecEncodeSelf(e)
}
}
if yyr4072 || yy2arr4072 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4072[4] {
yy4086 := &x.Status
yy4086.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4072[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4087 := &x.Status
yy4087.CodecEncodeSelf(e)
}
}
if yyr4072 || yy2arr4072 {
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
yym4088 := z.DecBinary()
_ = yym4088
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4089 := r.ContainerType()
if yyct4089 == codecSelferValueTypeMap1234 {
yyl4089 := r.ReadMapStart()
if yyl4089 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4089, d)
}
} else if yyct4089 == codecSelferValueTypeArray1234 {
yyl4089 := r.ReadArrayStart()
if yyl4089 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4089, 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 yys4090Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4090Slc
var yyhl4090 bool = l >= 0
for yyj4090 := 0; ; yyj4090++ {
if yyhl4090 {
if yyj4090 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4090Slc = r.DecodeBytes(yys4090Slc, true, true)
yys4090 := string(yys4090Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4090 {
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 {
yyv4093 := &x.ObjectMeta
yyv4093.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4094 := &x.Spec
yyv4094.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4095 := &x.Status
yyv4095.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4090)
} // end switch yys4090
} // end for yyj4090
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 yyj4096 int
var yyb4096 bool
var yyhl4096 bool = l >= 0
yyj4096++
if yyhl4096 {
yyb4096 = yyj4096 > l
} else {
yyb4096 = r.CheckBreak()
}
if yyb4096 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4096++
if yyhl4096 {
yyb4096 = yyj4096 > l
} else {
yyb4096 = r.CheckBreak()
}
if yyb4096 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4096++
if yyhl4096 {
yyb4096 = yyj4096 > l
} else {
yyb4096 = r.CheckBreak()
}
if yyb4096 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4099 := &x.ObjectMeta
yyv4099.CodecDecodeSelf(d)
}
yyj4096++
if yyhl4096 {
yyb4096 = yyj4096 > l
} else {
yyb4096 = r.CheckBreak()
}
if yyb4096 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4100 := &x.Spec
yyv4100.CodecDecodeSelf(d)
}
yyj4096++
if yyhl4096 {
yyb4096 = yyj4096 > l
} else {
yyb4096 = r.CheckBreak()
}
if yyb4096 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4101 := &x.Status
yyv4101.CodecDecodeSelf(d)
}
for {
yyj4096++
if yyhl4096 {
yyb4096 = yyj4096 > l
} else {
yyb4096 = r.CheckBreak()
}
if yyb4096 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4096-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 {
yym4102 := z.EncBinary()
_ = yym4102
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4103 := !z.EncBinary()
yy2arr4103 := z.EncBasicHandle().StructToArray
var yyq4103 [4]bool
_, _, _ = yysep4103, yyq4103, yy2arr4103
const yyr4103 bool = false
yyq4103[0] = x.Kind != ""
yyq4103[1] = x.APIVersion != ""
yyq4103[2] = true
var yynn4103 int
if yyr4103 || yy2arr4103 {
r.EncodeArrayStart(4)
} else {
yynn4103 = 1
for _, b := range yyq4103 {
if b {
yynn4103++
}
}
r.EncodeMapStart(yynn4103)
yynn4103 = 0
}
if yyr4103 || yy2arr4103 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4103[0] {
yym4105 := z.EncBinary()
_ = yym4105
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4103[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4106 := z.EncBinary()
_ = yym4106
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4103 || yy2arr4103 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4103[1] {
yym4108 := z.EncBinary()
_ = yym4108
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4103[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4109 := z.EncBinary()
_ = yym4109
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4103 || yy2arr4103 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4103[2] {
yy4111 := &x.ListMeta
yym4112 := z.EncBinary()
_ = yym4112
if false {
} else if z.HasExtensions() && z.EncExt(yy4111) {
} else {
z.EncFallback(yy4111)
}
} else {
r.EncodeNil()
}
} else {
if yyq4103[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4113 := &x.ListMeta
yym4114 := z.EncBinary()
_ = yym4114
if false {
} else if z.HasExtensions() && z.EncExt(yy4113) {
} else {
z.EncFallback(yy4113)
}
}
}
if yyr4103 || yy2arr4103 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4116 := z.EncBinary()
_ = yym4116
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 {
yym4117 := z.EncBinary()
_ = yym4117
if false {
} else {
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
}
}
}
if yyr4103 || yy2arr4103 {
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
yym4118 := z.DecBinary()
_ = yym4118
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4119 := r.ContainerType()
if yyct4119 == codecSelferValueTypeMap1234 {
yyl4119 := r.ReadMapStart()
if yyl4119 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4119, d)
}
} else if yyct4119 == codecSelferValueTypeArray1234 {
yyl4119 := r.ReadArrayStart()
if yyl4119 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4119, 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 yys4120Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4120Slc
var yyhl4120 bool = l >= 0
for yyj4120 := 0; ; yyj4120++ {
if yyhl4120 {
if yyj4120 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4120Slc = r.DecodeBytes(yys4120Slc, true, true)
yys4120 := string(yys4120Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4120 {
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 {
yyv4123 := &x.ListMeta
yym4124 := z.DecBinary()
_ = yym4124
if false {
} else if z.HasExtensions() && z.DecExt(yyv4123) {
} else {
z.DecFallback(yyv4123, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4125 := &x.Items
yym4126 := z.DecBinary()
_ = yym4126
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4125), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4120)
} // end switch yys4120
} // end for yyj4120
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 yyj4127 int
var yyb4127 bool
var yyhl4127 bool = l >= 0
yyj4127++
if yyhl4127 {
yyb4127 = yyj4127 > l
} else {
yyb4127 = r.CheckBreak()
}
if yyb4127 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4127++
if yyhl4127 {
yyb4127 = yyj4127 > l
} else {
yyb4127 = r.CheckBreak()
}
if yyb4127 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4127++
if yyhl4127 {
yyb4127 = yyj4127 > l
} else {
yyb4127 = r.CheckBreak()
}
if yyb4127 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4130 := &x.ListMeta
yym4131 := z.DecBinary()
_ = yym4131
if false {
} else if z.HasExtensions() && z.DecExt(yyv4130) {
} else {
z.DecFallback(yyv4130, false)
}
}
yyj4127++
if yyhl4127 {
yyb4127 = yyj4127 > l
} else {
yyb4127 = r.CheckBreak()
}
if yyb4127 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4132 := &x.Items
yym4133 := z.DecBinary()
_ = yym4133
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4132), d)
}
}
for {
yyj4127++
if yyhl4127 {
yyb4127 = yyj4127 > l
} else {
yyb4127 = r.CheckBreak()
}
if yyb4127 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4127-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 {
yym4134 := z.EncBinary()
_ = yym4134
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4135 := !z.EncBinary()
yy2arr4135 := z.EncBasicHandle().StructToArray
var yyq4135 [5]bool
_, _, _ = yysep4135, yyq4135, yy2arr4135
const yyr4135 bool = false
yyq4135[0] = x.Kind != ""
yyq4135[1] = x.APIVersion != ""
yyq4135[2] = true
yyq4135[3] = len(x.Data) != 0
yyq4135[4] = x.Type != ""
var yynn4135 int
if yyr4135 || yy2arr4135 {
r.EncodeArrayStart(5)
} else {
yynn4135 = 0
for _, b := range yyq4135 {
if b {
yynn4135++
}
}
r.EncodeMapStart(yynn4135)
yynn4135 = 0
}
if yyr4135 || yy2arr4135 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4135[0] {
yym4137 := z.EncBinary()
_ = yym4137
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4135[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4138 := z.EncBinary()
_ = yym4138
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4135 || yy2arr4135 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4135[1] {
yym4140 := z.EncBinary()
_ = yym4140
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4135[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4141 := z.EncBinary()
_ = yym4141
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4135 || yy2arr4135 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4135[2] {
yy4143 := &x.ObjectMeta
yy4143.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4135[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4144 := &x.ObjectMeta
yy4144.CodecEncodeSelf(e)
}
}
if yyr4135 || yy2arr4135 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4135[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4146 := z.EncBinary()
_ = yym4146
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4135[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4147 := z.EncBinary()
_ = yym4147
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
}
}
if yyr4135 || yy2arr4135 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4135[4] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4135[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr4135 || yy2arr4135 {
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
yym4149 := z.DecBinary()
_ = yym4149
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4150 := r.ContainerType()
if yyct4150 == codecSelferValueTypeMap1234 {
yyl4150 := r.ReadMapStart()
if yyl4150 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4150, d)
}
} else if yyct4150 == codecSelferValueTypeArray1234 {
yyl4150 := r.ReadArrayStart()
if yyl4150 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4150, 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 yys4151Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4151Slc
var yyhl4151 bool = l >= 0
for yyj4151 := 0; ; yyj4151++ {
if yyhl4151 {
if yyj4151 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4151Slc = r.DecodeBytes(yys4151Slc, true, true)
yys4151 := string(yys4151Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4151 {
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 {
yyv4154 := &x.ObjectMeta
yyv4154.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4155 := &x.Data
yym4156 := z.DecBinary()
_ = yym4156
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4155), d)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys4151)
} // end switch yys4151
} // end for yyj4151
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 yyj4158 int
var yyb4158 bool
var yyhl4158 bool = l >= 0
yyj4158++
if yyhl4158 {
yyb4158 = yyj4158 > l
} else {
yyb4158 = r.CheckBreak()
}
if yyb4158 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4158++
if yyhl4158 {
yyb4158 = yyj4158 > l
} else {
yyb4158 = r.CheckBreak()
}
if yyb4158 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4158++
if yyhl4158 {
yyb4158 = yyj4158 > l
} else {
yyb4158 = r.CheckBreak()
}
if yyb4158 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4161 := &x.ObjectMeta
yyv4161.CodecDecodeSelf(d)
}
yyj4158++
if yyhl4158 {
yyb4158 = yyj4158 > l
} else {
yyb4158 = r.CheckBreak()
}
if yyb4158 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4162 := &x.Data
yym4163 := z.DecBinary()
_ = yym4163
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4162), d)
}
}
yyj4158++
if yyhl4158 {
yyb4158 = yyj4158 > l
} else {
yyb4158 = r.CheckBreak()
}
if yyb4158 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
for {
yyj4158++
if yyhl4158 {
yyb4158 = yyj4158 > l
} else {
yyb4158 = r.CheckBreak()
}
if yyb4158 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4158-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4165 := z.EncBinary()
_ = yym4165
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
yym4166 := z.DecBinary()
_ = yym4166
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 {
yym4167 := z.EncBinary()
_ = yym4167
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4168 := !z.EncBinary()
yy2arr4168 := z.EncBasicHandle().StructToArray
var yyq4168 [4]bool
_, _, _ = yysep4168, yyq4168, yy2arr4168
const yyr4168 bool = false
yyq4168[0] = x.Kind != ""
yyq4168[1] = x.APIVersion != ""
yyq4168[2] = true
var yynn4168 int
if yyr4168 || yy2arr4168 {
r.EncodeArrayStart(4)
} else {
yynn4168 = 1
for _, b := range yyq4168 {
if b {
yynn4168++
}
}
r.EncodeMapStart(yynn4168)
yynn4168 = 0
}
if yyr4168 || yy2arr4168 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4168[0] {
yym4170 := z.EncBinary()
_ = yym4170
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4168[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4171 := z.EncBinary()
_ = yym4171
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4168 || yy2arr4168 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4168[1] {
yym4173 := z.EncBinary()
_ = yym4173
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4168[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4174 := z.EncBinary()
_ = yym4174
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4168 || yy2arr4168 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4168[2] {
yy4176 := &x.ListMeta
yym4177 := z.EncBinary()
_ = yym4177
if false {
} else if z.HasExtensions() && z.EncExt(yy4176) {
} else {
z.EncFallback(yy4176)
}
} else {
r.EncodeNil()
}
} else {
if yyq4168[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4178 := &x.ListMeta
yym4179 := z.EncBinary()
_ = yym4179
if false {
} else if z.HasExtensions() && z.EncExt(yy4178) {
} else {
z.EncFallback(yy4178)
}
}
}
if yyr4168 || yy2arr4168 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4181 := z.EncBinary()
_ = yym4181
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 {
yym4182 := z.EncBinary()
_ = yym4182
if false {
} else {
h.encSliceSecret(([]Secret)(x.Items), e)
}
}
}
if yyr4168 || yy2arr4168 {
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
yym4183 := z.DecBinary()
_ = yym4183
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4184 := r.ContainerType()
if yyct4184 == codecSelferValueTypeMap1234 {
yyl4184 := r.ReadMapStart()
if yyl4184 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4184, d)
}
} else if yyct4184 == codecSelferValueTypeArray1234 {
yyl4184 := r.ReadArrayStart()
if yyl4184 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4184, 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 yys4185Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4185Slc
var yyhl4185 bool = l >= 0
for yyj4185 := 0; ; yyj4185++ {
if yyhl4185 {
if yyj4185 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4185Slc = r.DecodeBytes(yys4185Slc, true, true)
yys4185 := string(yys4185Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4185 {
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 {
yyv4188 := &x.ListMeta
yym4189 := z.DecBinary()
_ = yym4189
if false {
} else if z.HasExtensions() && z.DecExt(yyv4188) {
} else {
z.DecFallback(yyv4188, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4190 := &x.Items
yym4191 := z.DecBinary()
_ = yym4191
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4190), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4185)
} // end switch yys4185
} // end for yyj4185
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 yyj4192 int
var yyb4192 bool
var yyhl4192 bool = l >= 0
yyj4192++
if yyhl4192 {
yyb4192 = yyj4192 > l
} else {
yyb4192 = r.CheckBreak()
}
if yyb4192 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4192++
if yyhl4192 {
yyb4192 = yyj4192 > l
} else {
yyb4192 = r.CheckBreak()
}
if yyb4192 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4192++
if yyhl4192 {
yyb4192 = yyj4192 > l
} else {
yyb4192 = r.CheckBreak()
}
if yyb4192 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4195 := &x.ListMeta
yym4196 := z.DecBinary()
_ = yym4196
if false {
} else if z.HasExtensions() && z.DecExt(yyv4195) {
} else {
z.DecFallback(yyv4195, false)
}
}
yyj4192++
if yyhl4192 {
yyb4192 = yyj4192 > l
} else {
yyb4192 = r.CheckBreak()
}
if yyb4192 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4197 := &x.Items
yym4198 := z.DecBinary()
_ = yym4198
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4197), d)
}
}
for {
yyj4192++
if yyhl4192 {
yyb4192 = yyj4192 > l
} else {
yyb4192 = r.CheckBreak()
}
if yyb4192 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4192-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ConfigMap) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym4199 := z.EncBinary()
_ = yym4199
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4200 := !z.EncBinary()
yy2arr4200 := z.EncBasicHandle().StructToArray
var yyq4200 [4]bool
_, _, _ = yysep4200, yyq4200, yy2arr4200
const yyr4200 bool = false
yyq4200[0] = x.Kind != ""
yyq4200[1] = x.APIVersion != ""
yyq4200[2] = true
yyq4200[3] = len(x.Data) != 0
var yynn4200 int
if yyr4200 || yy2arr4200 {
r.EncodeArrayStart(4)
} else {
yynn4200 = 0
for _, b := range yyq4200 {
if b {
yynn4200++
}
}
r.EncodeMapStart(yynn4200)
yynn4200 = 0
}
if yyr4200 || yy2arr4200 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4200[0] {
yym4202 := z.EncBinary()
_ = yym4202
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4200[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4203 := z.EncBinary()
_ = yym4203
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4200 || yy2arr4200 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4200[1] {
yym4205 := z.EncBinary()
_ = yym4205
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4200[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4206 := z.EncBinary()
_ = yym4206
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4200 || yy2arr4200 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4200[2] {
yy4208 := &x.ObjectMeta
yy4208.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4200[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4209 := &x.ObjectMeta
yy4209.CodecEncodeSelf(e)
}
}
if yyr4200 || yy2arr4200 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4200[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4211 := z.EncBinary()
_ = yym4211
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4200[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4212 := z.EncBinary()
_ = yym4212
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
}
}
if yyr4200 || yy2arr4200 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMap) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym4213 := z.DecBinary()
_ = yym4213
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4214 := r.ContainerType()
if yyct4214 == codecSelferValueTypeMap1234 {
yyl4214 := r.ReadMapStart()
if yyl4214 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4214, d)
}
} else if yyct4214 == codecSelferValueTypeArray1234 {
yyl4214 := r.ReadArrayStart()
if yyl4214 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4214, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMap) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys4215Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4215Slc
var yyhl4215 bool = l >= 0
for yyj4215 := 0; ; yyj4215++ {
if yyhl4215 {
if yyj4215 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4215Slc = r.DecodeBytes(yys4215Slc, true, true)
yys4215 := string(yys4215Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4215 {
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 {
yyv4218 := &x.ObjectMeta
yyv4218.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4219 := &x.Data
yym4220 := z.DecBinary()
_ = yym4220
if false {
} else {
z.F.DecMapStringStringX(yyv4219, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4215)
} // end switch yys4215
} // end for yyj4215
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMap) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj4221 int
var yyb4221 bool
var yyhl4221 bool = l >= 0
yyj4221++
if yyhl4221 {
yyb4221 = yyj4221 > l
} else {
yyb4221 = r.CheckBreak()
}
if yyb4221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4221++
if yyhl4221 {
yyb4221 = yyj4221 > l
} else {
yyb4221 = r.CheckBreak()
}
if yyb4221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4221++
if yyhl4221 {
yyb4221 = yyj4221 > l
} else {
yyb4221 = r.CheckBreak()
}
if yyb4221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4224 := &x.ObjectMeta
yyv4224.CodecDecodeSelf(d)
}
yyj4221++
if yyhl4221 {
yyb4221 = yyj4221 > l
} else {
yyb4221 = r.CheckBreak()
}
if yyb4221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4225 := &x.Data
yym4226 := z.DecBinary()
_ = yym4226
if false {
} else {
z.F.DecMapStringStringX(yyv4225, false, d)
}
}
for {
yyj4221++
if yyhl4221 {
yyb4221 = yyj4221 > l
} else {
yyb4221 = r.CheckBreak()
}
if yyb4221 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4221-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ConfigMapList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym4227 := z.EncBinary()
_ = yym4227
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4228 := !z.EncBinary()
yy2arr4228 := z.EncBasicHandle().StructToArray
var yyq4228 [4]bool
_, _, _ = yysep4228, yyq4228, yy2arr4228
const yyr4228 bool = false
yyq4228[0] = x.Kind != ""
yyq4228[1] = x.APIVersion != ""
yyq4228[2] = true
var yynn4228 int
if yyr4228 || yy2arr4228 {
r.EncodeArrayStart(4)
} else {
yynn4228 = 1
for _, b := range yyq4228 {
if b {
yynn4228++
}
}
r.EncodeMapStart(yynn4228)
yynn4228 = 0
}
if yyr4228 || yy2arr4228 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4228[0] {
yym4230 := z.EncBinary()
_ = yym4230
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4228[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4231 := z.EncBinary()
_ = yym4231
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4228 || yy2arr4228 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4228[1] {
yym4233 := z.EncBinary()
_ = yym4233
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4228[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4234 := z.EncBinary()
_ = yym4234
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4228 || yy2arr4228 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4228[2] {
yy4236 := &x.ListMeta
yym4237 := z.EncBinary()
_ = yym4237
if false {
} else if z.HasExtensions() && z.EncExt(yy4236) {
} else {
z.EncFallback(yy4236)
}
} else {
r.EncodeNil()
}
} else {
if yyq4228[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4238 := &x.ListMeta
yym4239 := z.EncBinary()
_ = yym4239
if false {
} else if z.HasExtensions() && z.EncExt(yy4238) {
} else {
z.EncFallback(yy4238)
}
}
}
if yyr4228 || yy2arr4228 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4241 := z.EncBinary()
_ = yym4241
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4242 := z.EncBinary()
_ = yym4242
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
}
if yyr4228 || yy2arr4228 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ConfigMapList) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym4243 := z.DecBinary()
_ = yym4243
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4244 := r.ContainerType()
if yyct4244 == codecSelferValueTypeMap1234 {
yyl4244 := r.ReadMapStart()
if yyl4244 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4244, d)
}
} else if yyct4244 == codecSelferValueTypeArray1234 {
yyl4244 := r.ReadArrayStart()
if yyl4244 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4244, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ConfigMapList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys4245Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4245Slc
var yyhl4245 bool = l >= 0
for yyj4245 := 0; ; yyj4245++ {
if yyhl4245 {
if yyj4245 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4245Slc = r.DecodeBytes(yys4245Slc, true, true)
yys4245 := string(yys4245Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4245 {
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 {
yyv4248 := &x.ListMeta
yym4249 := z.DecBinary()
_ = yym4249
if false {
} else if z.HasExtensions() && z.DecExt(yyv4248) {
} else {
z.DecFallback(yyv4248, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4250 := &x.Items
yym4251 := z.DecBinary()
_ = yym4251
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4250), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4245)
} // end switch yys4245
} // end for yyj4245
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ConfigMapList) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj4252 int
var yyb4252 bool
var yyhl4252 bool = l >= 0
yyj4252++
if yyhl4252 {
yyb4252 = yyj4252 > l
} else {
yyb4252 = r.CheckBreak()
}
if yyb4252 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4252++
if yyhl4252 {
yyb4252 = yyj4252 > l
} else {
yyb4252 = r.CheckBreak()
}
if yyb4252 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4252++
if yyhl4252 {
yyb4252 = yyj4252 > l
} else {
yyb4252 = r.CheckBreak()
}
if yyb4252 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4255 := &x.ListMeta
yym4256 := z.DecBinary()
_ = yym4256
if false {
} else if z.HasExtensions() && z.DecExt(yyv4255) {
} else {
z.DecFallback(yyv4255, false)
}
}
yyj4252++
if yyhl4252 {
yyb4252 = yyj4252 > l
} else {
yyb4252 = r.CheckBreak()
}
if yyb4252 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4257 := &x.Items
yym4258 := z.DecBinary()
_ = yym4258
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4257), d)
}
}
for {
yyj4252++
if yyhl4252 {
yyb4252 = yyj4252 > l
} else {
yyb4252 = r.CheckBreak()
}
if yyb4252 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4252-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4259 := z.EncBinary()
_ = yym4259
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
yym4260 := z.DecBinary()
_ = yym4260
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
yym4261 := z.EncBinary()
_ = yym4261
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
yym4262 := z.DecBinary()
_ = yym4262
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 {
yym4263 := z.EncBinary()
_ = yym4263
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4264 := !z.EncBinary()
yy2arr4264 := z.EncBasicHandle().StructToArray
var yyq4264 [4]bool
_, _, _ = yysep4264, yyq4264, yy2arr4264
const yyr4264 bool = false
yyq4264[2] = x.Message != ""
yyq4264[3] = x.Error != ""
var yynn4264 int
if yyr4264 || yy2arr4264 {
r.EncodeArrayStart(4)
} else {
yynn4264 = 2
for _, b := range yyq4264 {
if b {
yynn4264++
}
}
r.EncodeMapStart(yynn4264)
yynn4264 = 0
}
if yyr4264 || yy2arr4264 {
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 yyr4264 || yy2arr4264 {
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 yyr4264 || yy2arr4264 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4264[2] {
yym4268 := z.EncBinary()
_ = yym4268
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4264[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4269 := z.EncBinary()
_ = yym4269
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr4264 || yy2arr4264 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4264[3] {
yym4271 := z.EncBinary()
_ = yym4271
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4264[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("error"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4272 := z.EncBinary()
_ = yym4272
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
}
}
if yyr4264 || yy2arr4264 {
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
yym4273 := z.DecBinary()
_ = yym4273
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4274 := r.ContainerType()
if yyct4274 == codecSelferValueTypeMap1234 {
yyl4274 := r.ReadMapStart()
if yyl4274 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4274, d)
}
} else if yyct4274 == codecSelferValueTypeArray1234 {
yyl4274 := r.ReadArrayStart()
if yyl4274 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4274, 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 yys4275Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4275Slc
var yyhl4275 bool = l >= 0
for yyj4275 := 0; ; yyj4275++ {
if yyhl4275 {
if yyj4275 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4275Slc = r.DecodeBytes(yys4275Slc, true, true)
yys4275 := string(yys4275Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4275 {
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, yys4275)
} // end switch yys4275
} // end for yyj4275
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 yyj4280 int
var yyb4280 bool
var yyhl4280 bool = l >= 0
yyj4280++
if yyhl4280 {
yyb4280 = yyj4280 > l
} else {
yyb4280 = r.CheckBreak()
}
if yyb4280 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ComponentConditionType(r.DecodeString())
}
yyj4280++
if yyhl4280 {
yyb4280 = yyj4280 > l
} else {
yyb4280 = r.CheckBreak()
}
if yyb4280 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj4280++
if yyhl4280 {
yyb4280 = yyj4280 > l
} else {
yyb4280 = r.CheckBreak()
}
if yyb4280 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj4280++
if yyhl4280 {
yyb4280 = yyj4280 > l
} else {
yyb4280 = r.CheckBreak()
}
if yyb4280 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Error = ""
} else {
x.Error = string(r.DecodeString())
}
for {
yyj4280++
if yyhl4280 {
yyb4280 = yyj4280 > l
} else {
yyb4280 = r.CheckBreak()
}
if yyb4280 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4280-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 {
yym4285 := z.EncBinary()
_ = yym4285
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4286 := !z.EncBinary()
yy2arr4286 := z.EncBasicHandle().StructToArray
var yyq4286 [4]bool
_, _, _ = yysep4286, yyq4286, yy2arr4286
const yyr4286 bool = false
yyq4286[0] = x.Kind != ""
yyq4286[1] = x.APIVersion != ""
yyq4286[2] = true
yyq4286[3] = len(x.Conditions) != 0
var yynn4286 int
if yyr4286 || yy2arr4286 {
r.EncodeArrayStart(4)
} else {
yynn4286 = 0
for _, b := range yyq4286 {
if b {
yynn4286++
}
}
r.EncodeMapStart(yynn4286)
yynn4286 = 0
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4286[0] {
yym4288 := z.EncBinary()
_ = yym4288
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4286[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4289 := z.EncBinary()
_ = yym4289
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4286[1] {
yym4291 := z.EncBinary()
_ = yym4291
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4286[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4292 := z.EncBinary()
_ = yym4292
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4286[2] {
yy4294 := &x.ObjectMeta
yy4294.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4286[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4295 := &x.ObjectMeta
yy4295.CodecEncodeSelf(e)
}
}
if yyr4286 || yy2arr4286 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4286[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4297 := z.EncBinary()
_ = yym4297
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4286[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4298 := z.EncBinary()
_ = yym4298
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
}
}
if yyr4286 || yy2arr4286 {
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
yym4299 := z.DecBinary()
_ = yym4299
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4300 := r.ContainerType()
if yyct4300 == codecSelferValueTypeMap1234 {
yyl4300 := r.ReadMapStart()
if yyl4300 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4300, d)
}
} else if yyct4300 == codecSelferValueTypeArray1234 {
yyl4300 := r.ReadArrayStart()
if yyl4300 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4300, 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 yys4301Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4301Slc
var yyhl4301 bool = l >= 0
for yyj4301 := 0; ; yyj4301++ {
if yyhl4301 {
if yyj4301 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4301Slc = r.DecodeBytes(yys4301Slc, true, true)
yys4301 := string(yys4301Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4301 {
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 {
yyv4304 := &x.ObjectMeta
yyv4304.CodecDecodeSelf(d)
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4305 := &x.Conditions
yym4306 := z.DecBinary()
_ = yym4306
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4305), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4301)
} // end switch yys4301
} // end for yyj4301
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 yyj4307 int
var yyb4307 bool
var yyhl4307 bool = l >= 0
yyj4307++
if yyhl4307 {
yyb4307 = yyj4307 > l
} else {
yyb4307 = r.CheckBreak()
}
if yyb4307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4307++
if yyhl4307 {
yyb4307 = yyj4307 > l
} else {
yyb4307 = r.CheckBreak()
}
if yyb4307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4307++
if yyhl4307 {
yyb4307 = yyj4307 > l
} else {
yyb4307 = r.CheckBreak()
}
if yyb4307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4310 := &x.ObjectMeta
yyv4310.CodecDecodeSelf(d)
}
yyj4307++
if yyhl4307 {
yyb4307 = yyj4307 > l
} else {
yyb4307 = r.CheckBreak()
}
if yyb4307 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4311 := &x.Conditions
yym4312 := z.DecBinary()
_ = yym4312
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4311), d)
}
}
for {
yyj4307++
if yyhl4307 {
yyb4307 = yyj4307 > l
} else {
yyb4307 = r.CheckBreak()
}
if yyb4307 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4307-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 {
yym4313 := z.EncBinary()
_ = yym4313
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4314 := !z.EncBinary()
yy2arr4314 := z.EncBasicHandle().StructToArray
var yyq4314 [4]bool
_, _, _ = yysep4314, yyq4314, yy2arr4314
const yyr4314 bool = false
yyq4314[0] = x.Kind != ""
yyq4314[1] = x.APIVersion != ""
yyq4314[2] = true
var yynn4314 int
if yyr4314 || yy2arr4314 {
r.EncodeArrayStart(4)
} else {
yynn4314 = 1
for _, b := range yyq4314 {
if b {
yynn4314++
}
}
r.EncodeMapStart(yynn4314)
yynn4314 = 0
}
if yyr4314 || yy2arr4314 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4314[0] {
yym4316 := z.EncBinary()
_ = yym4316
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4314[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4317 := z.EncBinary()
_ = yym4317
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4314 || yy2arr4314 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4314[1] {
yym4319 := z.EncBinary()
_ = yym4319
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4314[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4320 := z.EncBinary()
_ = yym4320
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4314 || yy2arr4314 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4314[2] {
yy4322 := &x.ListMeta
yym4323 := z.EncBinary()
_ = yym4323
if false {
} else if z.HasExtensions() && z.EncExt(yy4322) {
} else {
z.EncFallback(yy4322)
}
} else {
r.EncodeNil()
}
} else {
if yyq4314[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4324 := &x.ListMeta
yym4325 := z.EncBinary()
_ = yym4325
if false {
} else if z.HasExtensions() && z.EncExt(yy4324) {
} else {
z.EncFallback(yy4324)
}
}
}
if yyr4314 || yy2arr4314 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4327 := z.EncBinary()
_ = yym4327
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 {
yym4328 := z.EncBinary()
_ = yym4328
if false {
} else {
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
}
}
}
if yyr4314 || yy2arr4314 {
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
yym4329 := z.DecBinary()
_ = yym4329
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4330 := r.ContainerType()
if yyct4330 == codecSelferValueTypeMap1234 {
yyl4330 := r.ReadMapStart()
if yyl4330 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4330, d)
}
} else if yyct4330 == codecSelferValueTypeArray1234 {
yyl4330 := r.ReadArrayStart()
if yyl4330 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4330, 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 yys4331Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4331Slc
var yyhl4331 bool = l >= 0
for yyj4331 := 0; ; yyj4331++ {
if yyhl4331 {
if yyj4331 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4331Slc = r.DecodeBytes(yys4331Slc, true, true)
yys4331 := string(yys4331Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4331 {
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 {
yyv4334 := &x.ListMeta
yym4335 := z.DecBinary()
_ = yym4335
if false {
} else if z.HasExtensions() && z.DecExt(yyv4334) {
} else {
z.DecFallback(yyv4334, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4336 := &x.Items
yym4337 := z.DecBinary()
_ = yym4337
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4336), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4331)
} // end switch yys4331
} // end for yyj4331
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 yyj4338 int
var yyb4338 bool
var yyhl4338 bool = l >= 0
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4341 := &x.ListMeta
yym4342 := z.DecBinary()
_ = yym4342
if false {
} else if z.HasExtensions() && z.DecExt(yyv4341) {
} else {
z.DecFallback(yyv4341, false)
}
}
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4343 := &x.Items
yym4344 := z.DecBinary()
_ = yym4344
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4343), d)
}
}
for {
yyj4338++
if yyhl4338 {
yyb4338 = yyj4338 > l
} else {
yyb4338 = r.CheckBreak()
}
if yyb4338 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4338-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 {
yym4345 := z.EncBinary()
_ = yym4345
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4346 := !z.EncBinary()
yy2arr4346 := z.EncBasicHandle().StructToArray
var yyq4346 [6]bool
_, _, _ = yysep4346, yyq4346, yy2arr4346
const yyr4346 bool = false
yyq4346[0] = x.Capabilities != nil
yyq4346[1] = x.Privileged != nil
yyq4346[2] = x.SELinuxOptions != nil
yyq4346[3] = x.RunAsUser != nil
yyq4346[4] = x.RunAsNonRoot != nil
yyq4346[5] = x.ReadOnlyRootFilesystem != nil
var yynn4346 int
if yyr4346 || yy2arr4346 {
r.EncodeArrayStart(6)
} else {
yynn4346 = 0
for _, b := range yyq4346 {
if b {
yynn4346++
}
}
r.EncodeMapStart(yynn4346)
yynn4346 = 0
}
if yyr4346 || yy2arr4346 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4346[0] {
if x.Capabilities == nil {
r.EncodeNil()
} else {
x.Capabilities.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4346[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 yyr4346 || yy2arr4346 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4346[1] {
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4349 := *x.Privileged
yym4350 := z.EncBinary()
_ = yym4350
if false {
} else {
r.EncodeBool(bool(yy4349))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4346[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4351 := *x.Privileged
yym4352 := z.EncBinary()
_ = yym4352
if false {
} else {
r.EncodeBool(bool(yy4351))
}
}
}
}
if yyr4346 || yy2arr4346 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4346[2] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4346[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 yyr4346 || yy2arr4346 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4346[3] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4355 := *x.RunAsUser
yym4356 := z.EncBinary()
_ = yym4356
if false {
} else {
r.EncodeInt(int64(yy4355))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4346[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4357 := *x.RunAsUser
yym4358 := z.EncBinary()
_ = yym4358
if false {
} else {
r.EncodeInt(int64(yy4357))
}
}
}
}
if yyr4346 || yy2arr4346 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4346[4] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4360 := *x.RunAsNonRoot
yym4361 := z.EncBinary()
_ = yym4361
if false {
} else {
r.EncodeBool(bool(yy4360))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4346[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4362 := *x.RunAsNonRoot
yym4363 := z.EncBinary()
_ = yym4363
if false {
} else {
r.EncodeBool(bool(yy4362))
}
}
}
}
if yyr4346 || yy2arr4346 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4346[5] {
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4365 := *x.ReadOnlyRootFilesystem
yym4366 := z.EncBinary()
_ = yym4366
if false {
} else {
r.EncodeBool(bool(yy4365))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4346[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4367 := *x.ReadOnlyRootFilesystem
yym4368 := z.EncBinary()
_ = yym4368
if false {
} else {
r.EncodeBool(bool(yy4367))
}
}
}
}
if yyr4346 || yy2arr4346 {
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
yym4369 := z.DecBinary()
_ = yym4369
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4370 := r.ContainerType()
if yyct4370 == codecSelferValueTypeMap1234 {
yyl4370 := r.ReadMapStart()
if yyl4370 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4370, d)
}
} else if yyct4370 == codecSelferValueTypeArray1234 {
yyl4370 := r.ReadArrayStart()
if yyl4370 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4370, 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 yys4371Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4371Slc
var yyhl4371 bool = l >= 0
for yyj4371 := 0; ; yyj4371++ {
if yyhl4371 {
if yyj4371 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4371Slc = r.DecodeBytes(yys4371Slc, true, true)
yys4371 := string(yys4371Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4371 {
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)
}
yym4374 := z.DecBinary()
_ = yym4374
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)
}
yym4377 := z.DecBinary()
_ = yym4377
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)
}
yym4379 := z.DecBinary()
_ = yym4379
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "readOnlyRootFilesystem":
if r.TryDecodeAsNil() {
if x.ReadOnlyRootFilesystem != nil {
x.ReadOnlyRootFilesystem = nil
}
} else {
if x.ReadOnlyRootFilesystem == nil {
x.ReadOnlyRootFilesystem = new(bool)
}
yym4381 := z.DecBinary()
_ = yym4381
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys4371)
} // end switch yys4371
} // end for yyj4371
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 yyj4382 int
var yyb4382 bool
var yyhl4382 bool = l >= 0
yyj4382++
if yyhl4382 {
yyb4382 = yyj4382 > l
} else {
yyb4382 = r.CheckBreak()
}
if yyb4382 {
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)
}
yyj4382++
if yyhl4382 {
yyb4382 = yyj4382 > l
} else {
yyb4382 = r.CheckBreak()
}
if yyb4382 {
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)
}
yym4385 := z.DecBinary()
_ = yym4385
if false {
} else {
*((*bool)(x.Privileged)) = r.DecodeBool()
}
}
yyj4382++
if yyhl4382 {
yyb4382 = yyj4382 > l
} else {
yyb4382 = r.CheckBreak()
}
if yyb4382 {
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)
}
yyj4382++
if yyhl4382 {
yyb4382 = yyj4382 > l
} else {
yyb4382 = r.CheckBreak()
}
if yyb4382 {
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)
}
yym4388 := z.DecBinary()
_ = yym4388
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj4382++
if yyhl4382 {
yyb4382 = yyj4382 > l
} else {
yyb4382 = r.CheckBreak()
}
if yyb4382 {
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)
}
yym4390 := z.DecBinary()
_ = yym4390
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj4382++
if yyhl4382 {
yyb4382 = yyj4382 > l
} else {
yyb4382 = r.CheckBreak()
}
if yyb4382 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.ReadOnlyRootFilesystem != nil {
x.ReadOnlyRootFilesystem = nil
}
} else {
if x.ReadOnlyRootFilesystem == nil {
x.ReadOnlyRootFilesystem = new(bool)
}
yym4392 := z.DecBinary()
_ = yym4392
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
for {
yyj4382++
if yyhl4382 {
yyb4382 = yyj4382 > l
} else {
yyb4382 = r.CheckBreak()
}
if yyb4382 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4382-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 {
yym4393 := z.EncBinary()
_ = yym4393
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4394 := !z.EncBinary()
yy2arr4394 := z.EncBasicHandle().StructToArray
var yyq4394 [4]bool
_, _, _ = yysep4394, yyq4394, yy2arr4394
const yyr4394 bool = false
yyq4394[0] = x.User != ""
yyq4394[1] = x.Role != ""
yyq4394[2] = x.Type != ""
yyq4394[3] = x.Level != ""
var yynn4394 int
if yyr4394 || yy2arr4394 {
r.EncodeArrayStart(4)
} else {
yynn4394 = 0
for _, b := range yyq4394 {
if b {
yynn4394++
}
}
r.EncodeMapStart(yynn4394)
yynn4394 = 0
}
if yyr4394 || yy2arr4394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4394[0] {
yym4396 := z.EncBinary()
_ = yym4396
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4394[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4397 := z.EncBinary()
_ = yym4397
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr4394 || yy2arr4394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4394[1] {
yym4399 := z.EncBinary()
_ = yym4399
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4394[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("role"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4400 := z.EncBinary()
_ = yym4400
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
}
}
if yyr4394 || yy2arr4394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4394[2] {
yym4402 := z.EncBinary()
_ = yym4402
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4394[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4403 := z.EncBinary()
_ = yym4403
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr4394 || yy2arr4394 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4394[3] {
yym4405 := z.EncBinary()
_ = yym4405
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4394[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("level"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4406 := z.EncBinary()
_ = yym4406
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
}
}
if yyr4394 || yy2arr4394 {
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
yym4407 := z.DecBinary()
_ = yym4407
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4408 := r.ContainerType()
if yyct4408 == codecSelferValueTypeMap1234 {
yyl4408 := r.ReadMapStart()
if yyl4408 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4408, d)
}
} else if yyct4408 == codecSelferValueTypeArray1234 {
yyl4408 := r.ReadArrayStart()
if yyl4408 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4408, 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 yys4409Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4409Slc
var yyhl4409 bool = l >= 0
for yyj4409 := 0; ; yyj4409++ {
if yyhl4409 {
if yyj4409 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4409Slc = r.DecodeBytes(yys4409Slc, true, true)
yys4409 := string(yys4409Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4409 {
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, yys4409)
} // end switch yys4409
} // end for yyj4409
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 yyj4414 int
var yyb4414 bool
var yyhl4414 bool = l >= 0
yyj4414++
if yyhl4414 {
yyb4414 = yyj4414 > l
} else {
yyb4414 = r.CheckBreak()
}
if yyb4414 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj4414++
if yyhl4414 {
yyb4414 = yyj4414 > l
} else {
yyb4414 = r.CheckBreak()
}
if yyb4414 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Role = ""
} else {
x.Role = string(r.DecodeString())
}
yyj4414++
if yyhl4414 {
yyb4414 = yyj4414 > l
} else {
yyb4414 = r.CheckBreak()
}
if yyb4414 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
yyj4414++
if yyhl4414 {
yyb4414 = yyj4414 > l
} else {
yyb4414 = r.CheckBreak()
}
if yyb4414 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Level = ""
} else {
x.Level = string(r.DecodeString())
}
for {
yyj4414++
if yyhl4414 {
yyb4414 = yyj4414 > l
} else {
yyb4414 = r.CheckBreak()
}
if yyb4414 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4414-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 {
yym4419 := z.EncBinary()
_ = yym4419
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4420 := !z.EncBinary()
yy2arr4420 := z.EncBasicHandle().StructToArray
var yyq4420 [5]bool
_, _, _ = yysep4420, yyq4420, yy2arr4420
const yyr4420 bool = false
yyq4420[0] = x.Kind != ""
yyq4420[1] = x.APIVersion != ""
yyq4420[2] = true
var yynn4420 int
if yyr4420 || yy2arr4420 {
r.EncodeArrayStart(5)
} else {
yynn4420 = 2
for _, b := range yyq4420 {
if b {
yynn4420++
}
}
r.EncodeMapStart(yynn4420)
yynn4420 = 0
}
if yyr4420 || yy2arr4420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4420[0] {
yym4422 := z.EncBinary()
_ = yym4422
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4420[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4423 := z.EncBinary()
_ = yym4423
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4420 || yy2arr4420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4420[1] {
yym4425 := z.EncBinary()
_ = yym4425
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4420[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4426 := z.EncBinary()
_ = yym4426
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4420 || yy2arr4420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4420[2] {
yy4428 := &x.ObjectMeta
yy4428.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4420[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4429 := &x.ObjectMeta
yy4429.CodecEncodeSelf(e)
}
}
if yyr4420 || yy2arr4420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym4431 := z.EncBinary()
_ = yym4431
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)
yym4432 := z.EncBinary()
_ = yym4432
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
}
}
if yyr4420 || yy2arr4420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4434 := z.EncBinary()
_ = yym4434
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 {
yym4435 := z.EncBinary()
_ = yym4435
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
if yyr4420 || yy2arr4420 {
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
yym4436 := z.DecBinary()
_ = yym4436
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4437 := r.ContainerType()
if yyct4437 == codecSelferValueTypeMap1234 {
yyl4437 := r.ReadMapStart()
if yyl4437 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4437, d)
}
} else if yyct4437 == codecSelferValueTypeArray1234 {
yyl4437 := r.ReadArrayStart()
if yyl4437 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4437, 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 yys4438Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4438Slc
var yyhl4438 bool = l >= 0
for yyj4438 := 0; ; yyj4438++ {
if yyhl4438 {
if yyj4438 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4438Slc = r.DecodeBytes(yys4438Slc, true, true)
yys4438 := string(yys4438Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4438 {
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 {
yyv4441 := &x.ObjectMeta
yyv4441.CodecDecodeSelf(d)
}
case "range":
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4443 := &x.Data
yym4444 := z.DecBinary()
_ = yym4444
if false {
} else {
*yyv4443 = r.DecodeBytes(*(*[]byte)(yyv4443), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys4438)
} // end switch yys4438
} // end for yyj4438
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 yyj4445 int
var yyb4445 bool
var yyhl4445 bool = l >= 0
yyj4445++
if yyhl4445 {
yyb4445 = yyj4445 > l
} else {
yyb4445 = r.CheckBreak()
}
if yyb4445 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4445++
if yyhl4445 {
yyb4445 = yyj4445 > l
} else {
yyb4445 = r.CheckBreak()
}
if yyb4445 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4445++
if yyhl4445 {
yyb4445 = yyj4445 > l
} else {
yyb4445 = r.CheckBreak()
}
if yyb4445 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4448 := &x.ObjectMeta
yyv4448.CodecDecodeSelf(d)
}
yyj4445++
if yyhl4445 {
yyb4445 = yyj4445 > l
} else {
yyb4445 = r.CheckBreak()
}
if yyb4445 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
yyj4445++
if yyhl4445 {
yyb4445 = yyj4445 > l
} else {
yyb4445 = r.CheckBreak()
}
if yyb4445 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4450 := &x.Data
yym4451 := z.DecBinary()
_ = yym4451
if false {
} else {
*yyv4450 = r.DecodeBytes(*(*[]byte)(yyv4450), false, false)
}
}
for {
yyj4445++
if yyhl4445 {
yyb4445 = yyj4445 > l
} else {
yyb4445 = r.CheckBreak()
}
if yyb4445 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4445-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSliceOwnerReference(v []OwnerReference, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4452 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4453 := &yyv4452
yy4453.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceOwnerReference(v *[]OwnerReference, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4454 := *v
yyh4454, yyl4454 := z.DecSliceHelperStart()
var yyc4454 bool
if yyl4454 == 0 {
if yyv4454 == nil {
yyv4454 = []OwnerReference{}
yyc4454 = true
} else if len(yyv4454) != 0 {
yyv4454 = yyv4454[:0]
yyc4454 = true
}
} else if yyl4454 > 0 {
var yyrr4454, yyrl4454 int
var yyrt4454 bool
if yyl4454 > cap(yyv4454) {
yyrg4454 := len(yyv4454) > 0
yyv24454 := yyv4454
yyrl4454, yyrt4454 = z.DecInferLen(yyl4454, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4454 {
if yyrl4454 <= cap(yyv4454) {
yyv4454 = yyv4454[:yyrl4454]
} else {
yyv4454 = make([]OwnerReference, yyrl4454)
}
} else {
yyv4454 = make([]OwnerReference, yyrl4454)
}
yyc4454 = true
yyrr4454 = len(yyv4454)
if yyrg4454 {
copy(yyv4454, yyv24454)
}
} else if yyl4454 != len(yyv4454) {
yyv4454 = yyv4454[:yyl4454]
yyc4454 = true
}
yyj4454 := 0
for ; yyj4454 < yyrr4454; yyj4454++ {
yyh4454.ElemContainerState(yyj4454)
if r.TryDecodeAsNil() {
yyv4454[yyj4454] = OwnerReference{}
} else {
yyv4455 := &yyv4454[yyj4454]
yyv4455.CodecDecodeSelf(d)
}
}
if yyrt4454 {
for ; yyj4454 < yyl4454; yyj4454++ {
yyv4454 = append(yyv4454, OwnerReference{})
yyh4454.ElemContainerState(yyj4454)
if r.TryDecodeAsNil() {
yyv4454[yyj4454] = OwnerReference{}
} else {
yyv4456 := &yyv4454[yyj4454]
yyv4456.CodecDecodeSelf(d)
}
}
}
} else {
yyj4454 := 0
for ; !r.CheckBreak(); yyj4454++ {
if yyj4454 >= len(yyv4454) {
yyv4454 = append(yyv4454, OwnerReference{}) // var yyz4454 OwnerReference
yyc4454 = true
}
yyh4454.ElemContainerState(yyj4454)
if yyj4454 < len(yyv4454) {
if r.TryDecodeAsNil() {
yyv4454[yyj4454] = OwnerReference{}
} else {
yyv4457 := &yyv4454[yyj4454]
yyv4457.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4454 < len(yyv4454) {
yyv4454 = yyv4454[:yyj4454]
yyc4454 = true
} else if yyj4454 == 0 && yyv4454 == nil {
yyv4454 = []OwnerReference{}
yyc4454 = true
}
}
yyh4454.End()
if yyc4454 {
*v = yyv4454
}
}
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 _, yyv4458 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4458.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
yyv4459 := *v
yyh4459, yyl4459 := z.DecSliceHelperStart()
var yyc4459 bool
if yyl4459 == 0 {
if yyv4459 == nil {
yyv4459 = []PersistentVolumeAccessMode{}
yyc4459 = true
} else if len(yyv4459) != 0 {
yyv4459 = yyv4459[:0]
yyc4459 = true
}
} else if yyl4459 > 0 {
var yyrr4459, yyrl4459 int
var yyrt4459 bool
if yyl4459 > cap(yyv4459) {
yyrl4459, yyrt4459 = z.DecInferLen(yyl4459, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4459 {
if yyrl4459 <= cap(yyv4459) {
yyv4459 = yyv4459[:yyrl4459]
} else {
yyv4459 = make([]PersistentVolumeAccessMode, yyrl4459)
}
} else {
yyv4459 = make([]PersistentVolumeAccessMode, yyrl4459)
}
yyc4459 = true
yyrr4459 = len(yyv4459)
} else if yyl4459 != len(yyv4459) {
yyv4459 = yyv4459[:yyl4459]
yyc4459 = true
}
yyj4459 := 0
for ; yyj4459 < yyrr4459; yyj4459++ {
yyh4459.ElemContainerState(yyj4459)
if r.TryDecodeAsNil() {
yyv4459[yyj4459] = ""
} else {
yyv4459[yyj4459] = PersistentVolumeAccessMode(r.DecodeString())
}
}
if yyrt4459 {
for ; yyj4459 < yyl4459; yyj4459++ {
yyv4459 = append(yyv4459, "")
yyh4459.ElemContainerState(yyj4459)
if r.TryDecodeAsNil() {
yyv4459[yyj4459] = ""
} else {
yyv4459[yyj4459] = PersistentVolumeAccessMode(r.DecodeString())
}
}
}
} else {
yyj4459 := 0
for ; !r.CheckBreak(); yyj4459++ {
if yyj4459 >= len(yyv4459) {
yyv4459 = append(yyv4459, "") // var yyz4459 PersistentVolumeAccessMode
yyc4459 = true
}
yyh4459.ElemContainerState(yyj4459)
if yyj4459 < len(yyv4459) {
if r.TryDecodeAsNil() {
yyv4459[yyj4459] = ""
} else {
yyv4459[yyj4459] = PersistentVolumeAccessMode(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4459 < len(yyv4459) {
yyv4459 = yyv4459[:yyj4459]
yyc4459 = true
} else if yyj4459 == 0 && yyv4459 == nil {
yyv4459 = []PersistentVolumeAccessMode{}
yyc4459 = true
}
}
yyh4459.End()
if yyc4459 {
*v = yyv4459
}
}
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 _, yyv4463 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4464 := &yyv4463
yy4464.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
yyv4465 := *v
yyh4465, yyl4465 := z.DecSliceHelperStart()
var yyc4465 bool
if yyl4465 == 0 {
if yyv4465 == nil {
yyv4465 = []PersistentVolume{}
yyc4465 = true
} else if len(yyv4465) != 0 {
yyv4465 = yyv4465[:0]
yyc4465 = true
}
} else if yyl4465 > 0 {
var yyrr4465, yyrl4465 int
var yyrt4465 bool
if yyl4465 > cap(yyv4465) {
yyrg4465 := len(yyv4465) > 0
yyv24465 := yyv4465
yyrl4465, yyrt4465 = z.DecInferLen(yyl4465, z.DecBasicHandle().MaxInitLen, 464)
if yyrt4465 {
if yyrl4465 <= cap(yyv4465) {
yyv4465 = yyv4465[:yyrl4465]
} else {
yyv4465 = make([]PersistentVolume, yyrl4465)
}
} else {
yyv4465 = make([]PersistentVolume, yyrl4465)
}
yyc4465 = true
yyrr4465 = len(yyv4465)
if yyrg4465 {
copy(yyv4465, yyv24465)
}
} else if yyl4465 != len(yyv4465) {
yyv4465 = yyv4465[:yyl4465]
yyc4465 = true
}
yyj4465 := 0
for ; yyj4465 < yyrr4465; yyj4465++ {
yyh4465.ElemContainerState(yyj4465)
if r.TryDecodeAsNil() {
yyv4465[yyj4465] = PersistentVolume{}
} else {
yyv4466 := &yyv4465[yyj4465]
yyv4466.CodecDecodeSelf(d)
}
}
if yyrt4465 {
for ; yyj4465 < yyl4465; yyj4465++ {
yyv4465 = append(yyv4465, PersistentVolume{})
yyh4465.ElemContainerState(yyj4465)
if r.TryDecodeAsNil() {
yyv4465[yyj4465] = PersistentVolume{}
} else {
yyv4467 := &yyv4465[yyj4465]
yyv4467.CodecDecodeSelf(d)
}
}
}
} else {
yyj4465 := 0
for ; !r.CheckBreak(); yyj4465++ {
if yyj4465 >= len(yyv4465) {
yyv4465 = append(yyv4465, PersistentVolume{}) // var yyz4465 PersistentVolume
yyc4465 = true
}
yyh4465.ElemContainerState(yyj4465)
if yyj4465 < len(yyv4465) {
if r.TryDecodeAsNil() {
yyv4465[yyj4465] = PersistentVolume{}
} else {
yyv4468 := &yyv4465[yyj4465]
yyv4468.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4465 < len(yyv4465) {
yyv4465 = yyv4465[:yyj4465]
yyc4465 = true
} else if yyj4465 == 0 && yyv4465 == nil {
yyv4465 = []PersistentVolume{}
yyc4465 = true
}
}
yyh4465.End()
if yyc4465 {
*v = yyv4465
}
}
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 _, yyv4469 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4470 := &yyv4469
yy4470.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
yyv4471 := *v
yyh4471, yyl4471 := z.DecSliceHelperStart()
var yyc4471 bool
if yyl4471 == 0 {
if yyv4471 == nil {
yyv4471 = []PersistentVolumeClaim{}
yyc4471 = true
} else if len(yyv4471) != 0 {
yyv4471 = yyv4471[:0]
yyc4471 = true
}
} else if yyl4471 > 0 {
var yyrr4471, yyrl4471 int
var yyrt4471 bool
if yyl4471 > cap(yyv4471) {
yyrg4471 := len(yyv4471) > 0
yyv24471 := yyv4471
yyrl4471, yyrt4471 = z.DecInferLen(yyl4471, z.DecBasicHandle().MaxInitLen, 352)
if yyrt4471 {
if yyrl4471 <= cap(yyv4471) {
yyv4471 = yyv4471[:yyrl4471]
} else {
yyv4471 = make([]PersistentVolumeClaim, yyrl4471)
}
} else {
yyv4471 = make([]PersistentVolumeClaim, yyrl4471)
}
yyc4471 = true
yyrr4471 = len(yyv4471)
if yyrg4471 {
copy(yyv4471, yyv24471)
}
} else if yyl4471 != len(yyv4471) {
yyv4471 = yyv4471[:yyl4471]
yyc4471 = true
}
yyj4471 := 0
for ; yyj4471 < yyrr4471; yyj4471++ {
yyh4471.ElemContainerState(yyj4471)
if r.TryDecodeAsNil() {
yyv4471[yyj4471] = PersistentVolumeClaim{}
} else {
yyv4472 := &yyv4471[yyj4471]
yyv4472.CodecDecodeSelf(d)
}
}
if yyrt4471 {
for ; yyj4471 < yyl4471; yyj4471++ {
yyv4471 = append(yyv4471, PersistentVolumeClaim{})
yyh4471.ElemContainerState(yyj4471)
if r.TryDecodeAsNil() {
yyv4471[yyj4471] = PersistentVolumeClaim{}
} else {
yyv4473 := &yyv4471[yyj4471]
yyv4473.CodecDecodeSelf(d)
}
}
}
} else {
yyj4471 := 0
for ; !r.CheckBreak(); yyj4471++ {
if yyj4471 >= len(yyv4471) {
yyv4471 = append(yyv4471, PersistentVolumeClaim{}) // var yyz4471 PersistentVolumeClaim
yyc4471 = true
}
yyh4471.ElemContainerState(yyj4471)
if yyj4471 < len(yyv4471) {
if r.TryDecodeAsNil() {
yyv4471[yyj4471] = PersistentVolumeClaim{}
} else {
yyv4474 := &yyv4471[yyj4471]
yyv4474.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4471 < len(yyv4471) {
yyv4471 = yyv4471[:yyj4471]
yyc4471 = true
} else if yyj4471 == 0 && yyv4471 == nil {
yyv4471 = []PersistentVolumeClaim{}
yyc4471 = true
}
}
yyh4471.End()
if yyc4471 {
*v = yyv4471
}
}
func (x codecSelfer1234) encSliceKeyToPath(v []KeyToPath, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4475 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4476 := &yyv4475
yy4476.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceKeyToPath(v *[]KeyToPath, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4477 := *v
yyh4477, yyl4477 := z.DecSliceHelperStart()
var yyc4477 bool
if yyl4477 == 0 {
if yyv4477 == nil {
yyv4477 = []KeyToPath{}
yyc4477 = true
} else if len(yyv4477) != 0 {
yyv4477 = yyv4477[:0]
yyc4477 = true
}
} else if yyl4477 > 0 {
var yyrr4477, yyrl4477 int
var yyrt4477 bool
if yyl4477 > cap(yyv4477) {
yyrg4477 := len(yyv4477) > 0
yyv24477 := yyv4477
yyrl4477, yyrt4477 = z.DecInferLen(yyl4477, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4477 {
if yyrl4477 <= cap(yyv4477) {
yyv4477 = yyv4477[:yyrl4477]
} else {
yyv4477 = make([]KeyToPath, yyrl4477)
}
} else {
yyv4477 = make([]KeyToPath, yyrl4477)
}
yyc4477 = true
yyrr4477 = len(yyv4477)
if yyrg4477 {
copy(yyv4477, yyv24477)
}
} else if yyl4477 != len(yyv4477) {
yyv4477 = yyv4477[:yyl4477]
yyc4477 = true
}
yyj4477 := 0
for ; yyj4477 < yyrr4477; yyj4477++ {
yyh4477.ElemContainerState(yyj4477)
if r.TryDecodeAsNil() {
yyv4477[yyj4477] = KeyToPath{}
} else {
yyv4478 := &yyv4477[yyj4477]
yyv4478.CodecDecodeSelf(d)
}
}
if yyrt4477 {
for ; yyj4477 < yyl4477; yyj4477++ {
yyv4477 = append(yyv4477, KeyToPath{})
yyh4477.ElemContainerState(yyj4477)
if r.TryDecodeAsNil() {
yyv4477[yyj4477] = KeyToPath{}
} else {
yyv4479 := &yyv4477[yyj4477]
yyv4479.CodecDecodeSelf(d)
}
}
}
} else {
yyj4477 := 0
for ; !r.CheckBreak(); yyj4477++ {
if yyj4477 >= len(yyv4477) {
yyv4477 = append(yyv4477, KeyToPath{}) // var yyz4477 KeyToPath
yyc4477 = true
}
yyh4477.ElemContainerState(yyj4477)
if yyj4477 < len(yyv4477) {
if r.TryDecodeAsNil() {
yyv4477[yyj4477] = KeyToPath{}
} else {
yyv4480 := &yyv4477[yyj4477]
yyv4480.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4477 < len(yyv4477) {
yyv4477 = yyv4477[:yyj4477]
yyc4477 = true
} else if yyj4477 == 0 && yyv4477 == nil {
yyv4477 = []KeyToPath{}
yyc4477 = true
}
}
yyh4477.End()
if yyc4477 {
*v = yyv4477
}
}
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 _, yyv4481 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4482 := &yyv4481
yy4482.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
yyv4483 := *v
yyh4483, yyl4483 := z.DecSliceHelperStart()
var yyc4483 bool
if yyl4483 == 0 {
if yyv4483 == nil {
yyv4483 = []DownwardAPIVolumeFile{}
yyc4483 = true
} else if len(yyv4483) != 0 {
yyv4483 = yyv4483[:0]
yyc4483 = true
}
} else if yyl4483 > 0 {
var yyrr4483, yyrl4483 int
var yyrt4483 bool
if yyl4483 > cap(yyv4483) {
yyrg4483 := len(yyv4483) > 0
yyv24483 := yyv4483
yyrl4483, yyrt4483 = z.DecInferLen(yyl4483, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4483 {
if yyrl4483 <= cap(yyv4483) {
yyv4483 = yyv4483[:yyrl4483]
} else {
yyv4483 = make([]DownwardAPIVolumeFile, yyrl4483)
}
} else {
yyv4483 = make([]DownwardAPIVolumeFile, yyrl4483)
}
yyc4483 = true
yyrr4483 = len(yyv4483)
if yyrg4483 {
copy(yyv4483, yyv24483)
}
} else if yyl4483 != len(yyv4483) {
yyv4483 = yyv4483[:yyl4483]
yyc4483 = true
}
yyj4483 := 0
for ; yyj4483 < yyrr4483; yyj4483++ {
yyh4483.ElemContainerState(yyj4483)
if r.TryDecodeAsNil() {
yyv4483[yyj4483] = DownwardAPIVolumeFile{}
} else {
yyv4484 := &yyv4483[yyj4483]
yyv4484.CodecDecodeSelf(d)
}
}
if yyrt4483 {
for ; yyj4483 < yyl4483; yyj4483++ {
yyv4483 = append(yyv4483, DownwardAPIVolumeFile{})
yyh4483.ElemContainerState(yyj4483)
if r.TryDecodeAsNil() {
yyv4483[yyj4483] = DownwardAPIVolumeFile{}
} else {
yyv4485 := &yyv4483[yyj4483]
yyv4485.CodecDecodeSelf(d)
}
}
}
} else {
yyj4483 := 0
for ; !r.CheckBreak(); yyj4483++ {
if yyj4483 >= len(yyv4483) {
yyv4483 = append(yyv4483, DownwardAPIVolumeFile{}) // var yyz4483 DownwardAPIVolumeFile
yyc4483 = true
}
yyh4483.ElemContainerState(yyj4483)
if yyj4483 < len(yyv4483) {
if r.TryDecodeAsNil() {
yyv4483[yyj4483] = DownwardAPIVolumeFile{}
} else {
yyv4486 := &yyv4483[yyj4483]
yyv4486.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4483 < len(yyv4483) {
yyv4483 = yyv4483[:yyj4483]
yyc4483 = true
} else if yyj4483 == 0 && yyv4483 == nil {
yyv4483 = []DownwardAPIVolumeFile{}
yyc4483 = true
}
}
yyh4483.End()
if yyc4483 {
*v = yyv4483
}
}
func (x codecSelfer1234) encSliceHTTPHeader(v []HTTPHeader, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4487 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4488 := &yyv4487
yy4488.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceHTTPHeader(v *[]HTTPHeader, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4489 := *v
yyh4489, yyl4489 := z.DecSliceHelperStart()
var yyc4489 bool
if yyl4489 == 0 {
if yyv4489 == nil {
yyv4489 = []HTTPHeader{}
yyc4489 = true
} else if len(yyv4489) != 0 {
yyv4489 = yyv4489[:0]
yyc4489 = true
}
} else if yyl4489 > 0 {
var yyrr4489, yyrl4489 int
var yyrt4489 bool
if yyl4489 > cap(yyv4489) {
yyrg4489 := len(yyv4489) > 0
yyv24489 := yyv4489
yyrl4489, yyrt4489 = z.DecInferLen(yyl4489, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4489 {
if yyrl4489 <= cap(yyv4489) {
yyv4489 = yyv4489[:yyrl4489]
} else {
yyv4489 = make([]HTTPHeader, yyrl4489)
}
} else {
yyv4489 = make([]HTTPHeader, yyrl4489)
}
yyc4489 = true
yyrr4489 = len(yyv4489)
if yyrg4489 {
copy(yyv4489, yyv24489)
}
} else if yyl4489 != len(yyv4489) {
yyv4489 = yyv4489[:yyl4489]
yyc4489 = true
}
yyj4489 := 0
for ; yyj4489 < yyrr4489; yyj4489++ {
yyh4489.ElemContainerState(yyj4489)
if r.TryDecodeAsNil() {
yyv4489[yyj4489] = HTTPHeader{}
} else {
yyv4490 := &yyv4489[yyj4489]
yyv4490.CodecDecodeSelf(d)
}
}
if yyrt4489 {
for ; yyj4489 < yyl4489; yyj4489++ {
yyv4489 = append(yyv4489, HTTPHeader{})
yyh4489.ElemContainerState(yyj4489)
if r.TryDecodeAsNil() {
yyv4489[yyj4489] = HTTPHeader{}
} else {
yyv4491 := &yyv4489[yyj4489]
yyv4491.CodecDecodeSelf(d)
}
}
}
} else {
yyj4489 := 0
for ; !r.CheckBreak(); yyj4489++ {
if yyj4489 >= len(yyv4489) {
yyv4489 = append(yyv4489, HTTPHeader{}) // var yyz4489 HTTPHeader
yyc4489 = true
}
yyh4489.ElemContainerState(yyj4489)
if yyj4489 < len(yyv4489) {
if r.TryDecodeAsNil() {
yyv4489[yyj4489] = HTTPHeader{}
} else {
yyv4492 := &yyv4489[yyj4489]
yyv4492.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4489 < len(yyv4489) {
yyv4489 = yyv4489[:yyj4489]
yyc4489 = true
} else if yyj4489 == 0 && yyv4489 == nil {
yyv4489 = []HTTPHeader{}
yyc4489 = true
}
}
yyh4489.End()
if yyc4489 {
*v = yyv4489
}
}
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 _, yyv4493 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4493.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
yyv4494 := *v
yyh4494, yyl4494 := z.DecSliceHelperStart()
var yyc4494 bool
if yyl4494 == 0 {
if yyv4494 == nil {
yyv4494 = []Capability{}
yyc4494 = true
} else if len(yyv4494) != 0 {
yyv4494 = yyv4494[:0]
yyc4494 = true
}
} else if yyl4494 > 0 {
var yyrr4494, yyrl4494 int
var yyrt4494 bool
if yyl4494 > cap(yyv4494) {
yyrl4494, yyrt4494 = z.DecInferLen(yyl4494, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4494 {
if yyrl4494 <= cap(yyv4494) {
yyv4494 = yyv4494[:yyrl4494]
} else {
yyv4494 = make([]Capability, yyrl4494)
}
} else {
yyv4494 = make([]Capability, yyrl4494)
}
yyc4494 = true
yyrr4494 = len(yyv4494)
} else if yyl4494 != len(yyv4494) {
yyv4494 = yyv4494[:yyl4494]
yyc4494 = true
}
yyj4494 := 0
for ; yyj4494 < yyrr4494; yyj4494++ {
yyh4494.ElemContainerState(yyj4494)
if r.TryDecodeAsNil() {
yyv4494[yyj4494] = ""
} else {
yyv4494[yyj4494] = Capability(r.DecodeString())
}
}
if yyrt4494 {
for ; yyj4494 < yyl4494; yyj4494++ {
yyv4494 = append(yyv4494, "")
yyh4494.ElemContainerState(yyj4494)
if r.TryDecodeAsNil() {
yyv4494[yyj4494] = ""
} else {
yyv4494[yyj4494] = Capability(r.DecodeString())
}
}
}
} else {
yyj4494 := 0
for ; !r.CheckBreak(); yyj4494++ {
if yyj4494 >= len(yyv4494) {
yyv4494 = append(yyv4494, "") // var yyz4494 Capability
yyc4494 = true
}
yyh4494.ElemContainerState(yyj4494)
if yyj4494 < len(yyv4494) {
if r.TryDecodeAsNil() {
yyv4494[yyj4494] = ""
} else {
yyv4494[yyj4494] = Capability(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4494 < len(yyv4494) {
yyv4494 = yyv4494[:yyj4494]
yyc4494 = true
} else if yyj4494 == 0 && yyv4494 == nil {
yyv4494 = []Capability{}
yyc4494 = true
}
}
yyh4494.End()
if yyc4494 {
*v = yyv4494
}
}
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 _, yyv4498 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4499 := &yyv4498
yy4499.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
yyv4500 := *v
yyh4500, yyl4500 := z.DecSliceHelperStart()
var yyc4500 bool
if yyl4500 == 0 {
if yyv4500 == nil {
yyv4500 = []ContainerPort{}
yyc4500 = true
} else if len(yyv4500) != 0 {
yyv4500 = yyv4500[:0]
yyc4500 = true
}
} else if yyl4500 > 0 {
var yyrr4500, yyrl4500 int
var yyrt4500 bool
if yyl4500 > cap(yyv4500) {
yyrg4500 := len(yyv4500) > 0
yyv24500 := yyv4500
yyrl4500, yyrt4500 = z.DecInferLen(yyl4500, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4500 {
if yyrl4500 <= cap(yyv4500) {
yyv4500 = yyv4500[:yyrl4500]
} else {
yyv4500 = make([]ContainerPort, yyrl4500)
}
} else {
yyv4500 = make([]ContainerPort, yyrl4500)
}
yyc4500 = true
yyrr4500 = len(yyv4500)
if yyrg4500 {
copy(yyv4500, yyv24500)
}
} else if yyl4500 != len(yyv4500) {
yyv4500 = yyv4500[:yyl4500]
yyc4500 = true
}
yyj4500 := 0
for ; yyj4500 < yyrr4500; yyj4500++ {
yyh4500.ElemContainerState(yyj4500)
if r.TryDecodeAsNil() {
yyv4500[yyj4500] = ContainerPort{}
} else {
yyv4501 := &yyv4500[yyj4500]
yyv4501.CodecDecodeSelf(d)
}
}
if yyrt4500 {
for ; yyj4500 < yyl4500; yyj4500++ {
yyv4500 = append(yyv4500, ContainerPort{})
yyh4500.ElemContainerState(yyj4500)
if r.TryDecodeAsNil() {
yyv4500[yyj4500] = ContainerPort{}
} else {
yyv4502 := &yyv4500[yyj4500]
yyv4502.CodecDecodeSelf(d)
}
}
}
} else {
yyj4500 := 0
for ; !r.CheckBreak(); yyj4500++ {
if yyj4500 >= len(yyv4500) {
yyv4500 = append(yyv4500, ContainerPort{}) // var yyz4500 ContainerPort
yyc4500 = true
}
yyh4500.ElemContainerState(yyj4500)
if yyj4500 < len(yyv4500) {
if r.TryDecodeAsNil() {
yyv4500[yyj4500] = ContainerPort{}
} else {
yyv4503 := &yyv4500[yyj4500]
yyv4503.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4500 < len(yyv4500) {
yyv4500 = yyv4500[:yyj4500]
yyc4500 = true
} else if yyj4500 == 0 && yyv4500 == nil {
yyv4500 = []ContainerPort{}
yyc4500 = true
}
}
yyh4500.End()
if yyc4500 {
*v = yyv4500
}
}
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 _, yyv4504 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4505 := &yyv4504
yy4505.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
yyv4506 := *v
yyh4506, yyl4506 := z.DecSliceHelperStart()
var yyc4506 bool
if yyl4506 == 0 {
if yyv4506 == nil {
yyv4506 = []EnvVar{}
yyc4506 = true
} else if len(yyv4506) != 0 {
yyv4506 = yyv4506[:0]
yyc4506 = true
}
} else if yyl4506 > 0 {
var yyrr4506, yyrl4506 int
var yyrt4506 bool
if yyl4506 > cap(yyv4506) {
yyrg4506 := len(yyv4506) > 0
yyv24506 := yyv4506
yyrl4506, yyrt4506 = z.DecInferLen(yyl4506, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4506 {
if yyrl4506 <= cap(yyv4506) {
yyv4506 = yyv4506[:yyrl4506]
} else {
yyv4506 = make([]EnvVar, yyrl4506)
}
} else {
yyv4506 = make([]EnvVar, yyrl4506)
}
yyc4506 = true
yyrr4506 = len(yyv4506)
if yyrg4506 {
copy(yyv4506, yyv24506)
}
} else if yyl4506 != len(yyv4506) {
yyv4506 = yyv4506[:yyl4506]
yyc4506 = true
}
yyj4506 := 0
for ; yyj4506 < yyrr4506; yyj4506++ {
yyh4506.ElemContainerState(yyj4506)
if r.TryDecodeAsNil() {
yyv4506[yyj4506] = EnvVar{}
} else {
yyv4507 := &yyv4506[yyj4506]
yyv4507.CodecDecodeSelf(d)
}
}
if yyrt4506 {
for ; yyj4506 < yyl4506; yyj4506++ {
yyv4506 = append(yyv4506, EnvVar{})
yyh4506.ElemContainerState(yyj4506)
if r.TryDecodeAsNil() {
yyv4506[yyj4506] = EnvVar{}
} else {
yyv4508 := &yyv4506[yyj4506]
yyv4508.CodecDecodeSelf(d)
}
}
}
} else {
yyj4506 := 0
for ; !r.CheckBreak(); yyj4506++ {
if yyj4506 >= len(yyv4506) {
yyv4506 = append(yyv4506, EnvVar{}) // var yyz4506 EnvVar
yyc4506 = true
}
yyh4506.ElemContainerState(yyj4506)
if yyj4506 < len(yyv4506) {
if r.TryDecodeAsNil() {
yyv4506[yyj4506] = EnvVar{}
} else {
yyv4509 := &yyv4506[yyj4506]
yyv4509.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4506 < len(yyv4506) {
yyv4506 = yyv4506[:yyj4506]
yyc4506 = true
} else if yyj4506 == 0 && yyv4506 == nil {
yyv4506 = []EnvVar{}
yyc4506 = true
}
}
yyh4506.End()
if yyc4506 {
*v = yyv4506
}
}
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 _, yyv4510 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4511 := &yyv4510
yy4511.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
yyv4512 := *v
yyh4512, yyl4512 := z.DecSliceHelperStart()
var yyc4512 bool
if yyl4512 == 0 {
if yyv4512 == nil {
yyv4512 = []VolumeMount{}
yyc4512 = true
} else if len(yyv4512) != 0 {
yyv4512 = yyv4512[:0]
yyc4512 = true
}
} else if yyl4512 > 0 {
var yyrr4512, yyrl4512 int
var yyrt4512 bool
if yyl4512 > cap(yyv4512) {
yyrg4512 := len(yyv4512) > 0
yyv24512 := yyv4512
yyrl4512, yyrt4512 = z.DecInferLen(yyl4512, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4512 {
if yyrl4512 <= cap(yyv4512) {
yyv4512 = yyv4512[:yyrl4512]
} else {
yyv4512 = make([]VolumeMount, yyrl4512)
}
} else {
yyv4512 = make([]VolumeMount, yyrl4512)
}
yyc4512 = true
yyrr4512 = len(yyv4512)
if yyrg4512 {
copy(yyv4512, yyv24512)
}
} else if yyl4512 != len(yyv4512) {
yyv4512 = yyv4512[:yyl4512]
yyc4512 = true
}
yyj4512 := 0
for ; yyj4512 < yyrr4512; yyj4512++ {
yyh4512.ElemContainerState(yyj4512)
if r.TryDecodeAsNil() {
yyv4512[yyj4512] = VolumeMount{}
} else {
yyv4513 := &yyv4512[yyj4512]
yyv4513.CodecDecodeSelf(d)
}
}
if yyrt4512 {
for ; yyj4512 < yyl4512; yyj4512++ {
yyv4512 = append(yyv4512, VolumeMount{})
yyh4512.ElemContainerState(yyj4512)
if r.TryDecodeAsNil() {
yyv4512[yyj4512] = VolumeMount{}
} else {
yyv4514 := &yyv4512[yyj4512]
yyv4514.CodecDecodeSelf(d)
}
}
}
} else {
yyj4512 := 0
for ; !r.CheckBreak(); yyj4512++ {
if yyj4512 >= len(yyv4512) {
yyv4512 = append(yyv4512, VolumeMount{}) // var yyz4512 VolumeMount
yyc4512 = true
}
yyh4512.ElemContainerState(yyj4512)
if yyj4512 < len(yyv4512) {
if r.TryDecodeAsNil() {
yyv4512[yyj4512] = VolumeMount{}
} else {
yyv4515 := &yyv4512[yyj4512]
yyv4515.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4512 < len(yyv4512) {
yyv4512 = yyv4512[:yyj4512]
yyc4512 = true
} else if yyj4512 == 0 && yyv4512 == nil {
yyv4512 = []VolumeMount{}
yyc4512 = true
}
}
yyh4512.End()
if yyc4512 {
*v = yyv4512
}
}
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 _, yyv4516 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4517 := &yyv4516
yy4517.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
yyv4518 := *v
yyh4518, yyl4518 := z.DecSliceHelperStart()
var yyc4518 bool
if yyl4518 == 0 {
if yyv4518 == nil {
yyv4518 = []Pod{}
yyc4518 = true
} else if len(yyv4518) != 0 {
yyv4518 = yyv4518[:0]
yyc4518 = true
}
} else if yyl4518 > 0 {
var yyrr4518, yyrl4518 int
var yyrt4518 bool
if yyl4518 > cap(yyv4518) {
yyrg4518 := len(yyv4518) > 0
yyv24518 := yyv4518
yyrl4518, yyrt4518 = z.DecInferLen(yyl4518, z.DecBasicHandle().MaxInitLen, 624)
if yyrt4518 {
if yyrl4518 <= cap(yyv4518) {
yyv4518 = yyv4518[:yyrl4518]
} else {
yyv4518 = make([]Pod, yyrl4518)
}
} else {
yyv4518 = make([]Pod, yyrl4518)
}
yyc4518 = true
yyrr4518 = len(yyv4518)
if yyrg4518 {
copy(yyv4518, yyv24518)
}
} else if yyl4518 != len(yyv4518) {
yyv4518 = yyv4518[:yyl4518]
yyc4518 = true
}
yyj4518 := 0
for ; yyj4518 < yyrr4518; yyj4518++ {
yyh4518.ElemContainerState(yyj4518)
if r.TryDecodeAsNil() {
yyv4518[yyj4518] = Pod{}
} else {
yyv4519 := &yyv4518[yyj4518]
yyv4519.CodecDecodeSelf(d)
}
}
if yyrt4518 {
for ; yyj4518 < yyl4518; yyj4518++ {
yyv4518 = append(yyv4518, Pod{})
yyh4518.ElemContainerState(yyj4518)
if r.TryDecodeAsNil() {
yyv4518[yyj4518] = Pod{}
} else {
yyv4520 := &yyv4518[yyj4518]
yyv4520.CodecDecodeSelf(d)
}
}
}
} else {
yyj4518 := 0
for ; !r.CheckBreak(); yyj4518++ {
if yyj4518 >= len(yyv4518) {
yyv4518 = append(yyv4518, Pod{}) // var yyz4518 Pod
yyc4518 = true
}
yyh4518.ElemContainerState(yyj4518)
if yyj4518 < len(yyv4518) {
if r.TryDecodeAsNil() {
yyv4518[yyj4518] = Pod{}
} else {
yyv4521 := &yyv4518[yyj4518]
yyv4521.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4518 < len(yyv4518) {
yyv4518 = yyv4518[:yyj4518]
yyc4518 = true
} else if yyj4518 == 0 && yyv4518 == nil {
yyv4518 = []Pod{}
yyc4518 = true
}
}
yyh4518.End()
if yyc4518 {
*v = yyv4518
}
}
func (x codecSelfer1234) encSliceNodeSelectorTerm(v []NodeSelectorTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4522 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4523 := &yyv4522
yy4523.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNodeSelectorTerm(v *[]NodeSelectorTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4524 := *v
yyh4524, yyl4524 := z.DecSliceHelperStart()
var yyc4524 bool
if yyl4524 == 0 {
if yyv4524 == nil {
yyv4524 = []NodeSelectorTerm{}
yyc4524 = true
} else if len(yyv4524) != 0 {
yyv4524 = yyv4524[:0]
yyc4524 = true
}
} else if yyl4524 > 0 {
var yyrr4524, yyrl4524 int
var yyrt4524 bool
if yyl4524 > cap(yyv4524) {
yyrg4524 := len(yyv4524) > 0
yyv24524 := yyv4524
yyrl4524, yyrt4524 = z.DecInferLen(yyl4524, z.DecBasicHandle().MaxInitLen, 24)
if yyrt4524 {
if yyrl4524 <= cap(yyv4524) {
yyv4524 = yyv4524[:yyrl4524]
} else {
yyv4524 = make([]NodeSelectorTerm, yyrl4524)
}
} else {
yyv4524 = make([]NodeSelectorTerm, yyrl4524)
}
yyc4524 = true
yyrr4524 = len(yyv4524)
if yyrg4524 {
copy(yyv4524, yyv24524)
}
} else if yyl4524 != len(yyv4524) {
yyv4524 = yyv4524[:yyl4524]
yyc4524 = true
}
yyj4524 := 0
for ; yyj4524 < yyrr4524; yyj4524++ {
yyh4524.ElemContainerState(yyj4524)
if r.TryDecodeAsNil() {
yyv4524[yyj4524] = NodeSelectorTerm{}
} else {
yyv4525 := &yyv4524[yyj4524]
yyv4525.CodecDecodeSelf(d)
}
}
if yyrt4524 {
for ; yyj4524 < yyl4524; yyj4524++ {
yyv4524 = append(yyv4524, NodeSelectorTerm{})
yyh4524.ElemContainerState(yyj4524)
if r.TryDecodeAsNil() {
yyv4524[yyj4524] = NodeSelectorTerm{}
} else {
yyv4526 := &yyv4524[yyj4524]
yyv4526.CodecDecodeSelf(d)
}
}
}
} else {
yyj4524 := 0
for ; !r.CheckBreak(); yyj4524++ {
if yyj4524 >= len(yyv4524) {
yyv4524 = append(yyv4524, NodeSelectorTerm{}) // var yyz4524 NodeSelectorTerm
yyc4524 = true
}
yyh4524.ElemContainerState(yyj4524)
if yyj4524 < len(yyv4524) {
if r.TryDecodeAsNil() {
yyv4524[yyj4524] = NodeSelectorTerm{}
} else {
yyv4527 := &yyv4524[yyj4524]
yyv4527.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4524 < len(yyv4524) {
yyv4524 = yyv4524[:yyj4524]
yyc4524 = true
} else if yyj4524 == 0 && yyv4524 == nil {
yyv4524 = []NodeSelectorTerm{}
yyc4524 = true
}
}
yyh4524.End()
if yyc4524 {
*v = yyv4524
}
}
func (x codecSelfer1234) encSliceNodeSelectorRequirement(v []NodeSelectorRequirement, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4528 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4529 := &yyv4528
yy4529.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceNodeSelectorRequirement(v *[]NodeSelectorRequirement, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4530 := *v
yyh4530, yyl4530 := z.DecSliceHelperStart()
var yyc4530 bool
if yyl4530 == 0 {
if yyv4530 == nil {
yyv4530 = []NodeSelectorRequirement{}
yyc4530 = true
} else if len(yyv4530) != 0 {
yyv4530 = yyv4530[:0]
yyc4530 = true
}
} else if yyl4530 > 0 {
var yyrr4530, yyrl4530 int
var yyrt4530 bool
if yyl4530 > cap(yyv4530) {
yyrg4530 := len(yyv4530) > 0
yyv24530 := yyv4530
yyrl4530, yyrt4530 = z.DecInferLen(yyl4530, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4530 {
if yyrl4530 <= cap(yyv4530) {
yyv4530 = yyv4530[:yyrl4530]
} else {
yyv4530 = make([]NodeSelectorRequirement, yyrl4530)
}
} else {
yyv4530 = make([]NodeSelectorRequirement, yyrl4530)
}
yyc4530 = true
yyrr4530 = len(yyv4530)
if yyrg4530 {
copy(yyv4530, yyv24530)
}
} else if yyl4530 != len(yyv4530) {
yyv4530 = yyv4530[:yyl4530]
yyc4530 = true
}
yyj4530 := 0
for ; yyj4530 < yyrr4530; yyj4530++ {
yyh4530.ElemContainerState(yyj4530)
if r.TryDecodeAsNil() {
yyv4530[yyj4530] = NodeSelectorRequirement{}
} else {
yyv4531 := &yyv4530[yyj4530]
yyv4531.CodecDecodeSelf(d)
}
}
if yyrt4530 {
for ; yyj4530 < yyl4530; yyj4530++ {
yyv4530 = append(yyv4530, NodeSelectorRequirement{})
yyh4530.ElemContainerState(yyj4530)
if r.TryDecodeAsNil() {
yyv4530[yyj4530] = NodeSelectorRequirement{}
} else {
yyv4532 := &yyv4530[yyj4530]
yyv4532.CodecDecodeSelf(d)
}
}
}
} else {
yyj4530 := 0
for ; !r.CheckBreak(); yyj4530++ {
if yyj4530 >= len(yyv4530) {
yyv4530 = append(yyv4530, NodeSelectorRequirement{}) // var yyz4530 NodeSelectorRequirement
yyc4530 = true
}
yyh4530.ElemContainerState(yyj4530)
if yyj4530 < len(yyv4530) {
if r.TryDecodeAsNil() {
yyv4530[yyj4530] = NodeSelectorRequirement{}
} else {
yyv4533 := &yyv4530[yyj4530]
yyv4533.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4530 < len(yyv4530) {
yyv4530 = yyv4530[:yyj4530]
yyc4530 = true
} else if yyj4530 == 0 && yyv4530 == nil {
yyv4530 = []NodeSelectorRequirement{}
yyc4530 = true
}
}
yyh4530.End()
if yyc4530 {
*v = yyv4530
}
}
func (x codecSelfer1234) encSlicePodAffinityTerm(v []PodAffinityTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4534 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4535 := &yyv4534
yy4535.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicePodAffinityTerm(v *[]PodAffinityTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4536 := *v
yyh4536, yyl4536 := z.DecSliceHelperStart()
var yyc4536 bool
if yyl4536 == 0 {
if yyv4536 == nil {
yyv4536 = []PodAffinityTerm{}
yyc4536 = true
} else if len(yyv4536) != 0 {
yyv4536 = yyv4536[:0]
yyc4536 = true
}
} else if yyl4536 > 0 {
var yyrr4536, yyrl4536 int
var yyrt4536 bool
if yyl4536 > cap(yyv4536) {
yyrg4536 := len(yyv4536) > 0
yyv24536 := yyv4536
yyrl4536, yyrt4536 = z.DecInferLen(yyl4536, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4536 {
if yyrl4536 <= cap(yyv4536) {
yyv4536 = yyv4536[:yyrl4536]
} else {
yyv4536 = make([]PodAffinityTerm, yyrl4536)
}
} else {
yyv4536 = make([]PodAffinityTerm, yyrl4536)
}
yyc4536 = true
yyrr4536 = len(yyv4536)
if yyrg4536 {
copy(yyv4536, yyv24536)
}
} else if yyl4536 != len(yyv4536) {
yyv4536 = yyv4536[:yyl4536]
yyc4536 = true
}
yyj4536 := 0
for ; yyj4536 < yyrr4536; yyj4536++ {
yyh4536.ElemContainerState(yyj4536)
if r.TryDecodeAsNil() {
yyv4536[yyj4536] = PodAffinityTerm{}
} else {
yyv4537 := &yyv4536[yyj4536]
yyv4537.CodecDecodeSelf(d)
}
}
if yyrt4536 {
for ; yyj4536 < yyl4536; yyj4536++ {
yyv4536 = append(yyv4536, PodAffinityTerm{})
yyh4536.ElemContainerState(yyj4536)
if r.TryDecodeAsNil() {
yyv4536[yyj4536] = PodAffinityTerm{}
} else {
yyv4538 := &yyv4536[yyj4536]
yyv4538.CodecDecodeSelf(d)
}
}
}
} else {
yyj4536 := 0
for ; !r.CheckBreak(); yyj4536++ {
if yyj4536 >= len(yyv4536) {
yyv4536 = append(yyv4536, PodAffinityTerm{}) // var yyz4536 PodAffinityTerm
yyc4536 = true
}
yyh4536.ElemContainerState(yyj4536)
if yyj4536 < len(yyv4536) {
if r.TryDecodeAsNil() {
yyv4536[yyj4536] = PodAffinityTerm{}
} else {
yyv4539 := &yyv4536[yyj4536]
yyv4539.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4536 < len(yyv4536) {
yyv4536 = yyv4536[:yyj4536]
yyc4536 = true
} else if yyj4536 == 0 && yyv4536 == nil {
yyv4536 = []PodAffinityTerm{}
yyc4536 = true
}
}
yyh4536.End()
if yyc4536 {
*v = yyv4536
}
}
func (x codecSelfer1234) encSliceWeightedPodAffinityTerm(v []WeightedPodAffinityTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4540 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4541 := &yyv4540
yy4541.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceWeightedPodAffinityTerm(v *[]WeightedPodAffinityTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4542 := *v
yyh4542, yyl4542 := z.DecSliceHelperStart()
var yyc4542 bool
if yyl4542 == 0 {
if yyv4542 == nil {
yyv4542 = []WeightedPodAffinityTerm{}
yyc4542 = true
} else if len(yyv4542) != 0 {
yyv4542 = yyv4542[:0]
yyc4542 = true
}
} else if yyl4542 > 0 {
var yyrr4542, yyrl4542 int
var yyrt4542 bool
if yyl4542 > cap(yyv4542) {
yyrg4542 := len(yyv4542) > 0
yyv24542 := yyv4542
yyrl4542, yyrt4542 = z.DecInferLen(yyl4542, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4542 {
if yyrl4542 <= cap(yyv4542) {
yyv4542 = yyv4542[:yyrl4542]
} else {
yyv4542 = make([]WeightedPodAffinityTerm, yyrl4542)
}
} else {
yyv4542 = make([]WeightedPodAffinityTerm, yyrl4542)
}
yyc4542 = true
yyrr4542 = len(yyv4542)
if yyrg4542 {
copy(yyv4542, yyv24542)
}
} else if yyl4542 != len(yyv4542) {
yyv4542 = yyv4542[:yyl4542]
yyc4542 = true
}
yyj4542 := 0
for ; yyj4542 < yyrr4542; yyj4542++ {
yyh4542.ElemContainerState(yyj4542)
if r.TryDecodeAsNil() {
yyv4542[yyj4542] = WeightedPodAffinityTerm{}
} else {
yyv4543 := &yyv4542[yyj4542]
yyv4543.CodecDecodeSelf(d)
}
}
if yyrt4542 {
for ; yyj4542 < yyl4542; yyj4542++ {
yyv4542 = append(yyv4542, WeightedPodAffinityTerm{})
yyh4542.ElemContainerState(yyj4542)
if r.TryDecodeAsNil() {
yyv4542[yyj4542] = WeightedPodAffinityTerm{}
} else {
yyv4544 := &yyv4542[yyj4542]
yyv4544.CodecDecodeSelf(d)
}
}
}
} else {
yyj4542 := 0
for ; !r.CheckBreak(); yyj4542++ {
if yyj4542 >= len(yyv4542) {
yyv4542 = append(yyv4542, WeightedPodAffinityTerm{}) // var yyz4542 WeightedPodAffinityTerm
yyc4542 = true
}
yyh4542.ElemContainerState(yyj4542)
if yyj4542 < len(yyv4542) {
if r.TryDecodeAsNil() {
yyv4542[yyj4542] = WeightedPodAffinityTerm{}
} else {
yyv4545 := &yyv4542[yyj4542]
yyv4545.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4542 < len(yyv4542) {
yyv4542 = yyv4542[:yyj4542]
yyc4542 = true
} else if yyj4542 == 0 && yyv4542 == nil {
yyv4542 = []WeightedPodAffinityTerm{}
yyc4542 = true
}
}
yyh4542.End()
if yyc4542 {
*v = yyv4542
}
}
func (x codecSelfer1234) encSlicePreferredSchedulingTerm(v []PreferredSchedulingTerm, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4546 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4547 := &yyv4546
yy4547.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicePreferredSchedulingTerm(v *[]PreferredSchedulingTerm, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4548 := *v
yyh4548, yyl4548 := z.DecSliceHelperStart()
var yyc4548 bool
if yyl4548 == 0 {
if yyv4548 == nil {
yyv4548 = []PreferredSchedulingTerm{}
yyc4548 = true
} else if len(yyv4548) != 0 {
yyv4548 = yyv4548[:0]
yyc4548 = true
}
} else if yyl4548 > 0 {
var yyrr4548, yyrl4548 int
var yyrt4548 bool
if yyl4548 > cap(yyv4548) {
yyrg4548 := len(yyv4548) > 0
yyv24548 := yyv4548
yyrl4548, yyrt4548 = z.DecInferLen(yyl4548, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4548 {
if yyrl4548 <= cap(yyv4548) {
yyv4548 = yyv4548[:yyrl4548]
} else {
yyv4548 = make([]PreferredSchedulingTerm, yyrl4548)
}
} else {
yyv4548 = make([]PreferredSchedulingTerm, yyrl4548)
}
yyc4548 = true
yyrr4548 = len(yyv4548)
if yyrg4548 {
copy(yyv4548, yyv24548)
}
} else if yyl4548 != len(yyv4548) {
yyv4548 = yyv4548[:yyl4548]
yyc4548 = true
}
yyj4548 := 0
for ; yyj4548 < yyrr4548; yyj4548++ {
yyh4548.ElemContainerState(yyj4548)
if r.TryDecodeAsNil() {
yyv4548[yyj4548] = PreferredSchedulingTerm{}
} else {
yyv4549 := &yyv4548[yyj4548]
yyv4549.CodecDecodeSelf(d)
}
}
if yyrt4548 {
for ; yyj4548 < yyl4548; yyj4548++ {
yyv4548 = append(yyv4548, PreferredSchedulingTerm{})
yyh4548.ElemContainerState(yyj4548)
if r.TryDecodeAsNil() {
yyv4548[yyj4548] = PreferredSchedulingTerm{}
} else {
yyv4550 := &yyv4548[yyj4548]
yyv4550.CodecDecodeSelf(d)
}
}
}
} else {
yyj4548 := 0
for ; !r.CheckBreak(); yyj4548++ {
if yyj4548 >= len(yyv4548) {
yyv4548 = append(yyv4548, PreferredSchedulingTerm{}) // var yyz4548 PreferredSchedulingTerm
yyc4548 = true
}
yyh4548.ElemContainerState(yyj4548)
if yyj4548 < len(yyv4548) {
if r.TryDecodeAsNil() {
yyv4548[yyj4548] = PreferredSchedulingTerm{}
} else {
yyv4551 := &yyv4548[yyj4548]
yyv4551.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4548 < len(yyv4548) {
yyv4548 = yyv4548[:yyj4548]
yyc4548 = true
} else if yyj4548 == 0 && yyv4548 == nil {
yyv4548 = []PreferredSchedulingTerm{}
yyc4548 = true
}
}
yyh4548.End()
if yyc4548 {
*v = yyv4548
}
}
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 _, yyv4552 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4553 := &yyv4552
yy4553.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
yyv4554 := *v
yyh4554, yyl4554 := z.DecSliceHelperStart()
var yyc4554 bool
if yyl4554 == 0 {
if yyv4554 == nil {
yyv4554 = []Volume{}
yyc4554 = true
} else if len(yyv4554) != 0 {
yyv4554 = yyv4554[:0]
yyc4554 = true
}
} else if yyl4554 > 0 {
var yyrr4554, yyrl4554 int
var yyrt4554 bool
if yyl4554 > cap(yyv4554) {
yyrg4554 := len(yyv4554) > 0
yyv24554 := yyv4554
yyrl4554, yyrt4554 = z.DecInferLen(yyl4554, z.DecBasicHandle().MaxInitLen, 184)
if yyrt4554 {
if yyrl4554 <= cap(yyv4554) {
yyv4554 = yyv4554[:yyrl4554]
} else {
yyv4554 = make([]Volume, yyrl4554)
}
} else {
yyv4554 = make([]Volume, yyrl4554)
}
yyc4554 = true
yyrr4554 = len(yyv4554)
if yyrg4554 {
copy(yyv4554, yyv24554)
}
} else if yyl4554 != len(yyv4554) {
yyv4554 = yyv4554[:yyl4554]
yyc4554 = true
}
yyj4554 := 0
for ; yyj4554 < yyrr4554; yyj4554++ {
yyh4554.ElemContainerState(yyj4554)
if r.TryDecodeAsNil() {
yyv4554[yyj4554] = Volume{}
} else {
yyv4555 := &yyv4554[yyj4554]
yyv4555.CodecDecodeSelf(d)
}
}
if yyrt4554 {
for ; yyj4554 < yyl4554; yyj4554++ {
yyv4554 = append(yyv4554, Volume{})
yyh4554.ElemContainerState(yyj4554)
if r.TryDecodeAsNil() {
yyv4554[yyj4554] = Volume{}
} else {
yyv4556 := &yyv4554[yyj4554]
yyv4556.CodecDecodeSelf(d)
}
}
}
} else {
yyj4554 := 0
for ; !r.CheckBreak(); yyj4554++ {
if yyj4554 >= len(yyv4554) {
yyv4554 = append(yyv4554, Volume{}) // var yyz4554 Volume
yyc4554 = true
}
yyh4554.ElemContainerState(yyj4554)
if yyj4554 < len(yyv4554) {
if r.TryDecodeAsNil() {
yyv4554[yyj4554] = Volume{}
} else {
yyv4557 := &yyv4554[yyj4554]
yyv4557.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4554 < len(yyv4554) {
yyv4554 = yyv4554[:yyj4554]
yyc4554 = true
} else if yyj4554 == 0 && yyv4554 == nil {
yyv4554 = []Volume{}
yyc4554 = true
}
}
yyh4554.End()
if yyc4554 {
*v = yyv4554
}
}
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 _, yyv4558 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4559 := &yyv4558
yy4559.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
yyv4560 := *v
yyh4560, yyl4560 := z.DecSliceHelperStart()
var yyc4560 bool
if yyl4560 == 0 {
if yyv4560 == nil {
yyv4560 = []Container{}
yyc4560 = true
} else if len(yyv4560) != 0 {
yyv4560 = yyv4560[:0]
yyc4560 = true
}
} else if yyl4560 > 0 {
var yyrr4560, yyrl4560 int
var yyrt4560 bool
if yyl4560 > cap(yyv4560) {
yyrg4560 := len(yyv4560) > 0
yyv24560 := yyv4560
yyrl4560, yyrt4560 = z.DecInferLen(yyl4560, z.DecBasicHandle().MaxInitLen, 256)
if yyrt4560 {
if yyrl4560 <= cap(yyv4560) {
yyv4560 = yyv4560[:yyrl4560]
} else {
yyv4560 = make([]Container, yyrl4560)
}
} else {
yyv4560 = make([]Container, yyrl4560)
}
yyc4560 = true
yyrr4560 = len(yyv4560)
if yyrg4560 {
copy(yyv4560, yyv24560)
}
} else if yyl4560 != len(yyv4560) {
yyv4560 = yyv4560[:yyl4560]
yyc4560 = true
}
yyj4560 := 0
for ; yyj4560 < yyrr4560; yyj4560++ {
yyh4560.ElemContainerState(yyj4560)
if r.TryDecodeAsNil() {
yyv4560[yyj4560] = Container{}
} else {
yyv4561 := &yyv4560[yyj4560]
yyv4561.CodecDecodeSelf(d)
}
}
if yyrt4560 {
for ; yyj4560 < yyl4560; yyj4560++ {
yyv4560 = append(yyv4560, Container{})
yyh4560.ElemContainerState(yyj4560)
if r.TryDecodeAsNil() {
yyv4560[yyj4560] = Container{}
} else {
yyv4562 := &yyv4560[yyj4560]
yyv4562.CodecDecodeSelf(d)
}
}
}
} else {
yyj4560 := 0
for ; !r.CheckBreak(); yyj4560++ {
if yyj4560 >= len(yyv4560) {
yyv4560 = append(yyv4560, Container{}) // var yyz4560 Container
yyc4560 = true
}
yyh4560.ElemContainerState(yyj4560)
if yyj4560 < len(yyv4560) {
if r.TryDecodeAsNil() {
yyv4560[yyj4560] = Container{}
} else {
yyv4563 := &yyv4560[yyj4560]
yyv4563.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4560 < len(yyv4560) {
yyv4560 = yyv4560[:yyj4560]
yyc4560 = true
} else if yyj4560 == 0 && yyv4560 == nil {
yyv4560 = []Container{}
yyc4560 = true
}
}
yyh4560.End()
if yyc4560 {
*v = yyv4560
}
}
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 _, yyv4564 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4565 := &yyv4564
yy4565.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
yyv4566 := *v
yyh4566, yyl4566 := z.DecSliceHelperStart()
var yyc4566 bool
if yyl4566 == 0 {
if yyv4566 == nil {
yyv4566 = []LocalObjectReference{}
yyc4566 = true
} else if len(yyv4566) != 0 {
yyv4566 = yyv4566[:0]
yyc4566 = true
}
} else if yyl4566 > 0 {
var yyrr4566, yyrl4566 int
var yyrt4566 bool
if yyl4566 > cap(yyv4566) {
yyrg4566 := len(yyv4566) > 0
yyv24566 := yyv4566
yyrl4566, yyrt4566 = z.DecInferLen(yyl4566, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4566 {
if yyrl4566 <= cap(yyv4566) {
yyv4566 = yyv4566[:yyrl4566]
} else {
yyv4566 = make([]LocalObjectReference, yyrl4566)
}
} else {
yyv4566 = make([]LocalObjectReference, yyrl4566)
}
yyc4566 = true
yyrr4566 = len(yyv4566)
if yyrg4566 {
copy(yyv4566, yyv24566)
}
} else if yyl4566 != len(yyv4566) {
yyv4566 = yyv4566[:yyl4566]
yyc4566 = true
}
yyj4566 := 0
for ; yyj4566 < yyrr4566; yyj4566++ {
yyh4566.ElemContainerState(yyj4566)
if r.TryDecodeAsNil() {
yyv4566[yyj4566] = LocalObjectReference{}
} else {
yyv4567 := &yyv4566[yyj4566]
yyv4567.CodecDecodeSelf(d)
}
}
if yyrt4566 {
for ; yyj4566 < yyl4566; yyj4566++ {
yyv4566 = append(yyv4566, LocalObjectReference{})
yyh4566.ElemContainerState(yyj4566)
if r.TryDecodeAsNil() {
yyv4566[yyj4566] = LocalObjectReference{}
} else {
yyv4568 := &yyv4566[yyj4566]
yyv4568.CodecDecodeSelf(d)
}
}
}
} else {
yyj4566 := 0
for ; !r.CheckBreak(); yyj4566++ {
if yyj4566 >= len(yyv4566) {
yyv4566 = append(yyv4566, LocalObjectReference{}) // var yyz4566 LocalObjectReference
yyc4566 = true
}
yyh4566.ElemContainerState(yyj4566)
if yyj4566 < len(yyv4566) {
if r.TryDecodeAsNil() {
yyv4566[yyj4566] = LocalObjectReference{}
} else {
yyv4569 := &yyv4566[yyj4566]
yyv4569.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4566 < len(yyv4566) {
yyv4566 = yyv4566[:yyj4566]
yyc4566 = true
} else if yyj4566 == 0 && yyv4566 == nil {
yyv4566 = []LocalObjectReference{}
yyc4566 = true
}
}
yyh4566.End()
if yyc4566 {
*v = yyv4566
}
}
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 _, yyv4570 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4571 := &yyv4570
yy4571.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
yyv4572 := *v
yyh4572, yyl4572 := z.DecSliceHelperStart()
var yyc4572 bool
if yyl4572 == 0 {
if yyv4572 == nil {
yyv4572 = []PodCondition{}
yyc4572 = true
} else if len(yyv4572) != 0 {
yyv4572 = yyv4572[:0]
yyc4572 = true
}
} else if yyl4572 > 0 {
var yyrr4572, yyrl4572 int
var yyrt4572 bool
if yyl4572 > cap(yyv4572) {
yyrg4572 := len(yyv4572) > 0
yyv24572 := yyv4572
yyrl4572, yyrt4572 = z.DecInferLen(yyl4572, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4572 {
if yyrl4572 <= cap(yyv4572) {
yyv4572 = yyv4572[:yyrl4572]
} else {
yyv4572 = make([]PodCondition, yyrl4572)
}
} else {
yyv4572 = make([]PodCondition, yyrl4572)
}
yyc4572 = true
yyrr4572 = len(yyv4572)
if yyrg4572 {
copy(yyv4572, yyv24572)
}
} else if yyl4572 != len(yyv4572) {
yyv4572 = yyv4572[:yyl4572]
yyc4572 = true
}
yyj4572 := 0
for ; yyj4572 < yyrr4572; yyj4572++ {
yyh4572.ElemContainerState(yyj4572)
if r.TryDecodeAsNil() {
yyv4572[yyj4572] = PodCondition{}
} else {
yyv4573 := &yyv4572[yyj4572]
yyv4573.CodecDecodeSelf(d)
}
}
if yyrt4572 {
for ; yyj4572 < yyl4572; yyj4572++ {
yyv4572 = append(yyv4572, PodCondition{})
yyh4572.ElemContainerState(yyj4572)
if r.TryDecodeAsNil() {
yyv4572[yyj4572] = PodCondition{}
} else {
yyv4574 := &yyv4572[yyj4572]
yyv4574.CodecDecodeSelf(d)
}
}
}
} else {
yyj4572 := 0
for ; !r.CheckBreak(); yyj4572++ {
if yyj4572 >= len(yyv4572) {
yyv4572 = append(yyv4572, PodCondition{}) // var yyz4572 PodCondition
yyc4572 = true
}
yyh4572.ElemContainerState(yyj4572)
if yyj4572 < len(yyv4572) {
if r.TryDecodeAsNil() {
yyv4572[yyj4572] = PodCondition{}
} else {
yyv4575 := &yyv4572[yyj4572]
yyv4575.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4572 < len(yyv4572) {
yyv4572 = yyv4572[:yyj4572]
yyc4572 = true
} else if yyj4572 == 0 && yyv4572 == nil {
yyv4572 = []PodCondition{}
yyc4572 = true
}
}
yyh4572.End()
if yyc4572 {
*v = yyv4572
}
}
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 _, yyv4576 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4577 := &yyv4576
yy4577.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
yyv4578 := *v
yyh4578, yyl4578 := z.DecSliceHelperStart()
var yyc4578 bool
if yyl4578 == 0 {
if yyv4578 == nil {
yyv4578 = []ContainerStatus{}
yyc4578 = true
} else if len(yyv4578) != 0 {
yyv4578 = yyv4578[:0]
yyc4578 = true
}
} else if yyl4578 > 0 {
var yyrr4578, yyrl4578 int
var yyrt4578 bool
if yyl4578 > cap(yyv4578) {
yyrg4578 := len(yyv4578) > 0
yyv24578 := yyv4578
yyrl4578, yyrt4578 = z.DecInferLen(yyl4578, z.DecBasicHandle().MaxInitLen, 120)
if yyrt4578 {
if yyrl4578 <= cap(yyv4578) {
yyv4578 = yyv4578[:yyrl4578]
} else {
yyv4578 = make([]ContainerStatus, yyrl4578)
}
} else {
yyv4578 = make([]ContainerStatus, yyrl4578)
}
yyc4578 = true
yyrr4578 = len(yyv4578)
if yyrg4578 {
copy(yyv4578, yyv24578)
}
} else if yyl4578 != len(yyv4578) {
yyv4578 = yyv4578[:yyl4578]
yyc4578 = true
}
yyj4578 := 0
for ; yyj4578 < yyrr4578; yyj4578++ {
yyh4578.ElemContainerState(yyj4578)
if r.TryDecodeAsNil() {
yyv4578[yyj4578] = ContainerStatus{}
} else {
yyv4579 := &yyv4578[yyj4578]
yyv4579.CodecDecodeSelf(d)
}
}
if yyrt4578 {
for ; yyj4578 < yyl4578; yyj4578++ {
yyv4578 = append(yyv4578, ContainerStatus{})
yyh4578.ElemContainerState(yyj4578)
if r.TryDecodeAsNil() {
yyv4578[yyj4578] = ContainerStatus{}
} else {
yyv4580 := &yyv4578[yyj4578]
yyv4580.CodecDecodeSelf(d)
}
}
}
} else {
yyj4578 := 0
for ; !r.CheckBreak(); yyj4578++ {
if yyj4578 >= len(yyv4578) {
yyv4578 = append(yyv4578, ContainerStatus{}) // var yyz4578 ContainerStatus
yyc4578 = true
}
yyh4578.ElemContainerState(yyj4578)
if yyj4578 < len(yyv4578) {
if r.TryDecodeAsNil() {
yyv4578[yyj4578] = ContainerStatus{}
} else {
yyv4581 := &yyv4578[yyj4578]
yyv4581.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4578 < len(yyv4578) {
yyv4578 = yyv4578[:yyj4578]
yyc4578 = true
} else if yyj4578 == 0 && yyv4578 == nil {
yyv4578 = []ContainerStatus{}
yyc4578 = true
}
}
yyh4578.End()
if yyc4578 {
*v = yyv4578
}
}
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 _, yyv4582 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4583 := &yyv4582
yy4583.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
yyv4584 := *v
yyh4584, yyl4584 := z.DecSliceHelperStart()
var yyc4584 bool
if yyl4584 == 0 {
if yyv4584 == nil {
yyv4584 = []PodTemplate{}
yyc4584 = true
} else if len(yyv4584) != 0 {
yyv4584 = yyv4584[:0]
yyc4584 = true
}
} else if yyl4584 > 0 {
var yyrr4584, yyrl4584 int
var yyrt4584 bool
if yyl4584 > cap(yyv4584) {
yyrg4584 := len(yyv4584) > 0
yyv24584 := yyv4584
yyrl4584, yyrt4584 = z.DecInferLen(yyl4584, z.DecBasicHandle().MaxInitLen, 672)
if yyrt4584 {
if yyrl4584 <= cap(yyv4584) {
yyv4584 = yyv4584[:yyrl4584]
} else {
yyv4584 = make([]PodTemplate, yyrl4584)
}
} else {
yyv4584 = make([]PodTemplate, yyrl4584)
}
yyc4584 = true
yyrr4584 = len(yyv4584)
if yyrg4584 {
copy(yyv4584, yyv24584)
}
} else if yyl4584 != len(yyv4584) {
yyv4584 = yyv4584[:yyl4584]
yyc4584 = true
}
yyj4584 := 0
for ; yyj4584 < yyrr4584; yyj4584++ {
yyh4584.ElemContainerState(yyj4584)
if r.TryDecodeAsNil() {
yyv4584[yyj4584] = PodTemplate{}
} else {
yyv4585 := &yyv4584[yyj4584]
yyv4585.CodecDecodeSelf(d)
}
}
if yyrt4584 {
for ; yyj4584 < yyl4584; yyj4584++ {
yyv4584 = append(yyv4584, PodTemplate{})
yyh4584.ElemContainerState(yyj4584)
if r.TryDecodeAsNil() {
yyv4584[yyj4584] = PodTemplate{}
} else {
yyv4586 := &yyv4584[yyj4584]
yyv4586.CodecDecodeSelf(d)
}
}
}
} else {
yyj4584 := 0
for ; !r.CheckBreak(); yyj4584++ {
if yyj4584 >= len(yyv4584) {
yyv4584 = append(yyv4584, PodTemplate{}) // var yyz4584 PodTemplate
yyc4584 = true
}
yyh4584.ElemContainerState(yyj4584)
if yyj4584 < len(yyv4584) {
if r.TryDecodeAsNil() {
yyv4584[yyj4584] = PodTemplate{}
} else {
yyv4587 := &yyv4584[yyj4584]
yyv4587.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4584 < len(yyv4584) {
yyv4584 = yyv4584[:yyj4584]
yyc4584 = true
} else if yyj4584 == 0 && yyv4584 == nil {
yyv4584 = []PodTemplate{}
yyc4584 = true
}
}
yyh4584.End()
if yyc4584 {
*v = yyv4584
}
}
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 _, yyv4588 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4589 := &yyv4588
yy4589.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
yyv4590 := *v
yyh4590, yyl4590 := z.DecSliceHelperStart()
var yyc4590 bool
if yyl4590 == 0 {
if yyv4590 == nil {
yyv4590 = []ReplicationController{}
yyc4590 = true
} else if len(yyv4590) != 0 {
yyv4590 = yyv4590[:0]
yyc4590 = true
}
} else if yyl4590 > 0 {
var yyrr4590, yyrl4590 int
var yyrt4590 bool
if yyl4590 > cap(yyv4590) {
yyrg4590 := len(yyv4590) > 0
yyv24590 := yyv4590
yyrl4590, yyrt4590 = z.DecInferLen(yyl4590, z.DecBasicHandle().MaxInitLen, 288)
if yyrt4590 {
if yyrl4590 <= cap(yyv4590) {
yyv4590 = yyv4590[:yyrl4590]
} else {
yyv4590 = make([]ReplicationController, yyrl4590)
}
} else {
yyv4590 = make([]ReplicationController, yyrl4590)
}
yyc4590 = true
yyrr4590 = len(yyv4590)
if yyrg4590 {
copy(yyv4590, yyv24590)
}
} else if yyl4590 != len(yyv4590) {
yyv4590 = yyv4590[:yyl4590]
yyc4590 = true
}
yyj4590 := 0
for ; yyj4590 < yyrr4590; yyj4590++ {
yyh4590.ElemContainerState(yyj4590)
if r.TryDecodeAsNil() {
yyv4590[yyj4590] = ReplicationController{}
} else {
yyv4591 := &yyv4590[yyj4590]
yyv4591.CodecDecodeSelf(d)
}
}
if yyrt4590 {
for ; yyj4590 < yyl4590; yyj4590++ {
yyv4590 = append(yyv4590, ReplicationController{})
yyh4590.ElemContainerState(yyj4590)
if r.TryDecodeAsNil() {
yyv4590[yyj4590] = ReplicationController{}
} else {
yyv4592 := &yyv4590[yyj4590]
yyv4592.CodecDecodeSelf(d)
}
}
}
} else {
yyj4590 := 0
for ; !r.CheckBreak(); yyj4590++ {
if yyj4590 >= len(yyv4590) {
yyv4590 = append(yyv4590, ReplicationController{}) // var yyz4590 ReplicationController
yyc4590 = true
}
yyh4590.ElemContainerState(yyj4590)
if yyj4590 < len(yyv4590) {
if r.TryDecodeAsNil() {
yyv4590[yyj4590] = ReplicationController{}
} else {
yyv4593 := &yyv4590[yyj4590]
yyv4593.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4590 < len(yyv4590) {
yyv4590 = yyv4590[:yyj4590]
yyc4590 = true
} else if yyj4590 == 0 && yyv4590 == nil {
yyv4590 = []ReplicationController{}
yyc4590 = true
}
}
yyh4590.End()
if yyc4590 {
*v = yyv4590
}
}
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 _, yyv4594 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4595 := &yyv4594
yy4595.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
yyv4596 := *v
yyh4596, yyl4596 := z.DecSliceHelperStart()
var yyc4596 bool
if yyl4596 == 0 {
if yyv4596 == nil {
yyv4596 = []Service{}
yyc4596 = true
} else if len(yyv4596) != 0 {
yyv4596 = yyv4596[:0]
yyc4596 = true
}
} else if yyl4596 > 0 {
var yyrr4596, yyrl4596 int
var yyrt4596 bool
if yyl4596 > cap(yyv4596) {
yyrg4596 := len(yyv4596) > 0
yyv24596 := yyv4596
yyrl4596, yyrt4596 = z.DecInferLen(yyl4596, z.DecBasicHandle().MaxInitLen, 424)
if yyrt4596 {
if yyrl4596 <= cap(yyv4596) {
yyv4596 = yyv4596[:yyrl4596]
} else {
yyv4596 = make([]Service, yyrl4596)
}
} else {
yyv4596 = make([]Service, yyrl4596)
}
yyc4596 = true
yyrr4596 = len(yyv4596)
if yyrg4596 {
copy(yyv4596, yyv24596)
}
} else if yyl4596 != len(yyv4596) {
yyv4596 = yyv4596[:yyl4596]
yyc4596 = true
}
yyj4596 := 0
for ; yyj4596 < yyrr4596; yyj4596++ {
yyh4596.ElemContainerState(yyj4596)
if r.TryDecodeAsNil() {
yyv4596[yyj4596] = Service{}
} else {
yyv4597 := &yyv4596[yyj4596]
yyv4597.CodecDecodeSelf(d)
}
}
if yyrt4596 {
for ; yyj4596 < yyl4596; yyj4596++ {
yyv4596 = append(yyv4596, Service{})
yyh4596.ElemContainerState(yyj4596)
if r.TryDecodeAsNil() {
yyv4596[yyj4596] = Service{}
} else {
yyv4598 := &yyv4596[yyj4596]
yyv4598.CodecDecodeSelf(d)
}
}
}
} else {
yyj4596 := 0
for ; !r.CheckBreak(); yyj4596++ {
if yyj4596 >= len(yyv4596) {
yyv4596 = append(yyv4596, Service{}) // var yyz4596 Service
yyc4596 = true
}
yyh4596.ElemContainerState(yyj4596)
if yyj4596 < len(yyv4596) {
if r.TryDecodeAsNil() {
yyv4596[yyj4596] = Service{}
} else {
yyv4599 := &yyv4596[yyj4596]
yyv4599.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4596 < len(yyv4596) {
yyv4596 = yyv4596[:yyj4596]
yyc4596 = true
} else if yyj4596 == 0 && yyv4596 == nil {
yyv4596 = []Service{}
yyc4596 = true
}
}
yyh4596.End()
if yyc4596 {
*v = yyv4596
}
}
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 _, yyv4600 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4601 := &yyv4600
yy4601.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
yyv4602 := *v
yyh4602, yyl4602 := z.DecSliceHelperStart()
var yyc4602 bool
if yyl4602 == 0 {
if yyv4602 == nil {
yyv4602 = []LoadBalancerIngress{}
yyc4602 = true
} else if len(yyv4602) != 0 {
yyv4602 = yyv4602[:0]
yyc4602 = true
}
} else if yyl4602 > 0 {
var yyrr4602, yyrl4602 int
var yyrt4602 bool
if yyl4602 > cap(yyv4602) {
yyrg4602 := len(yyv4602) > 0
yyv24602 := yyv4602
yyrl4602, yyrt4602 = z.DecInferLen(yyl4602, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4602 {
if yyrl4602 <= cap(yyv4602) {
yyv4602 = yyv4602[:yyrl4602]
} else {
yyv4602 = make([]LoadBalancerIngress, yyrl4602)
}
} else {
yyv4602 = make([]LoadBalancerIngress, yyrl4602)
}
yyc4602 = true
yyrr4602 = len(yyv4602)
if yyrg4602 {
copy(yyv4602, yyv24602)
}
} else if yyl4602 != len(yyv4602) {
yyv4602 = yyv4602[:yyl4602]
yyc4602 = true
}
yyj4602 := 0
for ; yyj4602 < yyrr4602; yyj4602++ {
yyh4602.ElemContainerState(yyj4602)
if r.TryDecodeAsNil() {
yyv4602[yyj4602] = LoadBalancerIngress{}
} else {
yyv4603 := &yyv4602[yyj4602]
yyv4603.CodecDecodeSelf(d)
}
}
if yyrt4602 {
for ; yyj4602 < yyl4602; yyj4602++ {
yyv4602 = append(yyv4602, LoadBalancerIngress{})
yyh4602.ElemContainerState(yyj4602)
if r.TryDecodeAsNil() {
yyv4602[yyj4602] = LoadBalancerIngress{}
} else {
yyv4604 := &yyv4602[yyj4602]
yyv4604.CodecDecodeSelf(d)
}
}
}
} else {
yyj4602 := 0
for ; !r.CheckBreak(); yyj4602++ {
if yyj4602 >= len(yyv4602) {
yyv4602 = append(yyv4602, LoadBalancerIngress{}) // var yyz4602 LoadBalancerIngress
yyc4602 = true
}
yyh4602.ElemContainerState(yyj4602)
if yyj4602 < len(yyv4602) {
if r.TryDecodeAsNil() {
yyv4602[yyj4602] = LoadBalancerIngress{}
} else {
yyv4605 := &yyv4602[yyj4602]
yyv4605.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4602 < len(yyv4602) {
yyv4602 = yyv4602[:yyj4602]
yyc4602 = true
} else if yyj4602 == 0 && yyv4602 == nil {
yyv4602 = []LoadBalancerIngress{}
yyc4602 = true
}
}
yyh4602.End()
if yyc4602 {
*v = yyv4602
}
}
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 _, yyv4606 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4607 := &yyv4606
yy4607.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
yyv4608 := *v
yyh4608, yyl4608 := z.DecSliceHelperStart()
var yyc4608 bool
if yyl4608 == 0 {
if yyv4608 == nil {
yyv4608 = []ServicePort{}
yyc4608 = true
} else if len(yyv4608) != 0 {
yyv4608 = yyv4608[:0]
yyc4608 = true
}
} else if yyl4608 > 0 {
var yyrr4608, yyrl4608 int
var yyrt4608 bool
if yyl4608 > cap(yyv4608) {
yyrg4608 := len(yyv4608) > 0
yyv24608 := yyv4608
yyrl4608, yyrt4608 = z.DecInferLen(yyl4608, z.DecBasicHandle().MaxInitLen, 80)
if yyrt4608 {
if yyrl4608 <= cap(yyv4608) {
yyv4608 = yyv4608[:yyrl4608]
} else {
yyv4608 = make([]ServicePort, yyrl4608)
}
} else {
yyv4608 = make([]ServicePort, yyrl4608)
}
yyc4608 = true
yyrr4608 = len(yyv4608)
if yyrg4608 {
copy(yyv4608, yyv24608)
}
} else if yyl4608 != len(yyv4608) {
yyv4608 = yyv4608[:yyl4608]
yyc4608 = true
}
yyj4608 := 0
for ; yyj4608 < yyrr4608; yyj4608++ {
yyh4608.ElemContainerState(yyj4608)
if r.TryDecodeAsNil() {
yyv4608[yyj4608] = ServicePort{}
} else {
yyv4609 := &yyv4608[yyj4608]
yyv4609.CodecDecodeSelf(d)
}
}
if yyrt4608 {
for ; yyj4608 < yyl4608; yyj4608++ {
yyv4608 = append(yyv4608, ServicePort{})
yyh4608.ElemContainerState(yyj4608)
if r.TryDecodeAsNil() {
yyv4608[yyj4608] = ServicePort{}
} else {
yyv4610 := &yyv4608[yyj4608]
yyv4610.CodecDecodeSelf(d)
}
}
}
} else {
yyj4608 := 0
for ; !r.CheckBreak(); yyj4608++ {
if yyj4608 >= len(yyv4608) {
yyv4608 = append(yyv4608, ServicePort{}) // var yyz4608 ServicePort
yyc4608 = true
}
yyh4608.ElemContainerState(yyj4608)
if yyj4608 < len(yyv4608) {
if r.TryDecodeAsNil() {
yyv4608[yyj4608] = ServicePort{}
} else {
yyv4611 := &yyv4608[yyj4608]
yyv4611.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4608 < len(yyv4608) {
yyv4608 = yyv4608[:yyj4608]
yyc4608 = true
} else if yyj4608 == 0 && yyv4608 == nil {
yyv4608 = []ServicePort{}
yyc4608 = true
}
}
yyh4608.End()
if yyc4608 {
*v = yyv4608
}
}
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 _, yyv4612 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4613 := &yyv4612
yy4613.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
yyv4614 := *v
yyh4614, yyl4614 := z.DecSliceHelperStart()
var yyc4614 bool
if yyl4614 == 0 {
if yyv4614 == nil {
yyv4614 = []ObjectReference{}
yyc4614 = true
} else if len(yyv4614) != 0 {
yyv4614 = yyv4614[:0]
yyc4614 = true
}
} else if yyl4614 > 0 {
var yyrr4614, yyrl4614 int
var yyrt4614 bool
if yyl4614 > cap(yyv4614) {
yyrg4614 := len(yyv4614) > 0
yyv24614 := yyv4614
yyrl4614, yyrt4614 = z.DecInferLen(yyl4614, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4614 {
if yyrl4614 <= cap(yyv4614) {
yyv4614 = yyv4614[:yyrl4614]
} else {
yyv4614 = make([]ObjectReference, yyrl4614)
}
} else {
yyv4614 = make([]ObjectReference, yyrl4614)
}
yyc4614 = true
yyrr4614 = len(yyv4614)
if yyrg4614 {
copy(yyv4614, yyv24614)
}
} else if yyl4614 != len(yyv4614) {
yyv4614 = yyv4614[:yyl4614]
yyc4614 = true
}
yyj4614 := 0
for ; yyj4614 < yyrr4614; yyj4614++ {
yyh4614.ElemContainerState(yyj4614)
if r.TryDecodeAsNil() {
yyv4614[yyj4614] = ObjectReference{}
} else {
yyv4615 := &yyv4614[yyj4614]
yyv4615.CodecDecodeSelf(d)
}
}
if yyrt4614 {
for ; yyj4614 < yyl4614; yyj4614++ {
yyv4614 = append(yyv4614, ObjectReference{})
yyh4614.ElemContainerState(yyj4614)
if r.TryDecodeAsNil() {
yyv4614[yyj4614] = ObjectReference{}
} else {
yyv4616 := &yyv4614[yyj4614]
yyv4616.CodecDecodeSelf(d)
}
}
}
} else {
yyj4614 := 0
for ; !r.CheckBreak(); yyj4614++ {
if yyj4614 >= len(yyv4614) {
yyv4614 = append(yyv4614, ObjectReference{}) // var yyz4614 ObjectReference
yyc4614 = true
}
yyh4614.ElemContainerState(yyj4614)
if yyj4614 < len(yyv4614) {
if r.TryDecodeAsNil() {
yyv4614[yyj4614] = ObjectReference{}
} else {
yyv4617 := &yyv4614[yyj4614]
yyv4617.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4614 < len(yyv4614) {
yyv4614 = yyv4614[:yyj4614]
yyc4614 = true
} else if yyj4614 == 0 && yyv4614 == nil {
yyv4614 = []ObjectReference{}
yyc4614 = true
}
}
yyh4614.End()
if yyc4614 {
*v = yyv4614
}
}
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 _, yyv4618 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4619 := &yyv4618
yy4619.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
yyv4620 := *v
yyh4620, yyl4620 := z.DecSliceHelperStart()
var yyc4620 bool
if yyl4620 == 0 {
if yyv4620 == nil {
yyv4620 = []ServiceAccount{}
yyc4620 = true
} else if len(yyv4620) != 0 {
yyv4620 = yyv4620[:0]
yyc4620 = true
}
} else if yyl4620 > 0 {
var yyrr4620, yyrl4620 int
var yyrt4620 bool
if yyl4620 > cap(yyv4620) {
yyrg4620 := len(yyv4620) > 0
yyv24620 := yyv4620
yyrl4620, yyrt4620 = z.DecInferLen(yyl4620, z.DecBasicHandle().MaxInitLen, 288)
if yyrt4620 {
if yyrl4620 <= cap(yyv4620) {
yyv4620 = yyv4620[:yyrl4620]
} else {
yyv4620 = make([]ServiceAccount, yyrl4620)
}
} else {
yyv4620 = make([]ServiceAccount, yyrl4620)
}
yyc4620 = true
yyrr4620 = len(yyv4620)
if yyrg4620 {
copy(yyv4620, yyv24620)
}
} else if yyl4620 != len(yyv4620) {
yyv4620 = yyv4620[:yyl4620]
yyc4620 = true
}
yyj4620 := 0
for ; yyj4620 < yyrr4620; yyj4620++ {
yyh4620.ElemContainerState(yyj4620)
if r.TryDecodeAsNil() {
yyv4620[yyj4620] = ServiceAccount{}
} else {
yyv4621 := &yyv4620[yyj4620]
yyv4621.CodecDecodeSelf(d)
}
}
if yyrt4620 {
for ; yyj4620 < yyl4620; yyj4620++ {
yyv4620 = append(yyv4620, ServiceAccount{})
yyh4620.ElemContainerState(yyj4620)
if r.TryDecodeAsNil() {
yyv4620[yyj4620] = ServiceAccount{}
} else {
yyv4622 := &yyv4620[yyj4620]
yyv4622.CodecDecodeSelf(d)
}
}
}
} else {
yyj4620 := 0
for ; !r.CheckBreak(); yyj4620++ {
if yyj4620 >= len(yyv4620) {
yyv4620 = append(yyv4620, ServiceAccount{}) // var yyz4620 ServiceAccount
yyc4620 = true
}
yyh4620.ElemContainerState(yyj4620)
if yyj4620 < len(yyv4620) {
if r.TryDecodeAsNil() {
yyv4620[yyj4620] = ServiceAccount{}
} else {
yyv4623 := &yyv4620[yyj4620]
yyv4623.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4620 < len(yyv4620) {
yyv4620 = yyv4620[:yyj4620]
yyc4620 = true
} else if yyj4620 == 0 && yyv4620 == nil {
yyv4620 = []ServiceAccount{}
yyc4620 = true
}
}
yyh4620.End()
if yyc4620 {
*v = yyv4620
}
}
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 _, yyv4624 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4625 := &yyv4624
yy4625.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
yyv4626 := *v
yyh4626, yyl4626 := z.DecSliceHelperStart()
var yyc4626 bool
if yyl4626 == 0 {
if yyv4626 == nil {
yyv4626 = []EndpointSubset{}
yyc4626 = true
} else if len(yyv4626) != 0 {
yyv4626 = yyv4626[:0]
yyc4626 = true
}
} else if yyl4626 > 0 {
var yyrr4626, yyrl4626 int
var yyrt4626 bool
if yyl4626 > cap(yyv4626) {
yyrg4626 := len(yyv4626) > 0
yyv24626 := yyv4626
yyrl4626, yyrt4626 = z.DecInferLen(yyl4626, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4626 {
if yyrl4626 <= cap(yyv4626) {
yyv4626 = yyv4626[:yyrl4626]
} else {
yyv4626 = make([]EndpointSubset, yyrl4626)
}
} else {
yyv4626 = make([]EndpointSubset, yyrl4626)
}
yyc4626 = true
yyrr4626 = len(yyv4626)
if yyrg4626 {
copy(yyv4626, yyv24626)
}
} else if yyl4626 != len(yyv4626) {
yyv4626 = yyv4626[:yyl4626]
yyc4626 = true
}
yyj4626 := 0
for ; yyj4626 < yyrr4626; yyj4626++ {
yyh4626.ElemContainerState(yyj4626)
if r.TryDecodeAsNil() {
yyv4626[yyj4626] = EndpointSubset{}
} else {
yyv4627 := &yyv4626[yyj4626]
yyv4627.CodecDecodeSelf(d)
}
}
if yyrt4626 {
for ; yyj4626 < yyl4626; yyj4626++ {
yyv4626 = append(yyv4626, EndpointSubset{})
yyh4626.ElemContainerState(yyj4626)
if r.TryDecodeAsNil() {
yyv4626[yyj4626] = EndpointSubset{}
} else {
yyv4628 := &yyv4626[yyj4626]
yyv4628.CodecDecodeSelf(d)
}
}
}
} else {
yyj4626 := 0
for ; !r.CheckBreak(); yyj4626++ {
if yyj4626 >= len(yyv4626) {
yyv4626 = append(yyv4626, EndpointSubset{}) // var yyz4626 EndpointSubset
yyc4626 = true
}
yyh4626.ElemContainerState(yyj4626)
if yyj4626 < len(yyv4626) {
if r.TryDecodeAsNil() {
yyv4626[yyj4626] = EndpointSubset{}
} else {
yyv4629 := &yyv4626[yyj4626]
yyv4629.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4626 < len(yyv4626) {
yyv4626 = yyv4626[:yyj4626]
yyc4626 = true
} else if yyj4626 == 0 && yyv4626 == nil {
yyv4626 = []EndpointSubset{}
yyc4626 = true
}
}
yyh4626.End()
if yyc4626 {
*v = yyv4626
}
}
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 _, yyv4630 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4631 := &yyv4630
yy4631.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
yyv4632 := *v
yyh4632, yyl4632 := z.DecSliceHelperStart()
var yyc4632 bool
if yyl4632 == 0 {
if yyv4632 == nil {
yyv4632 = []EndpointAddress{}
yyc4632 = true
} else if len(yyv4632) != 0 {
yyv4632 = yyv4632[:0]
yyc4632 = true
}
} else if yyl4632 > 0 {
var yyrr4632, yyrl4632 int
var yyrt4632 bool
if yyl4632 > cap(yyv4632) {
yyrg4632 := len(yyv4632) > 0
yyv24632 := yyv4632
yyrl4632, yyrt4632 = z.DecInferLen(yyl4632, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4632 {
if yyrl4632 <= cap(yyv4632) {
yyv4632 = yyv4632[:yyrl4632]
} else {
yyv4632 = make([]EndpointAddress, yyrl4632)
}
} else {
yyv4632 = make([]EndpointAddress, yyrl4632)
}
yyc4632 = true
yyrr4632 = len(yyv4632)
if yyrg4632 {
copy(yyv4632, yyv24632)
}
} else if yyl4632 != len(yyv4632) {
yyv4632 = yyv4632[:yyl4632]
yyc4632 = true
}
yyj4632 := 0
for ; yyj4632 < yyrr4632; yyj4632++ {
yyh4632.ElemContainerState(yyj4632)
if r.TryDecodeAsNil() {
yyv4632[yyj4632] = EndpointAddress{}
} else {
yyv4633 := &yyv4632[yyj4632]
yyv4633.CodecDecodeSelf(d)
}
}
if yyrt4632 {
for ; yyj4632 < yyl4632; yyj4632++ {
yyv4632 = append(yyv4632, EndpointAddress{})
yyh4632.ElemContainerState(yyj4632)
if r.TryDecodeAsNil() {
yyv4632[yyj4632] = EndpointAddress{}
} else {
yyv4634 := &yyv4632[yyj4632]
yyv4634.CodecDecodeSelf(d)
}
}
}
} else {
yyj4632 := 0
for ; !r.CheckBreak(); yyj4632++ {
if yyj4632 >= len(yyv4632) {
yyv4632 = append(yyv4632, EndpointAddress{}) // var yyz4632 EndpointAddress
yyc4632 = true
}
yyh4632.ElemContainerState(yyj4632)
if yyj4632 < len(yyv4632) {
if r.TryDecodeAsNil() {
yyv4632[yyj4632] = EndpointAddress{}
} else {
yyv4635 := &yyv4632[yyj4632]
yyv4635.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4632 < len(yyv4632) {
yyv4632 = yyv4632[:yyj4632]
yyc4632 = true
} else if yyj4632 == 0 && yyv4632 == nil {
yyv4632 = []EndpointAddress{}
yyc4632 = true
}
}
yyh4632.End()
if yyc4632 {
*v = yyv4632
}
}
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 _, yyv4636 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4637 := &yyv4636
yy4637.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
yyv4638 := *v
yyh4638, yyl4638 := z.DecSliceHelperStart()
var yyc4638 bool
if yyl4638 == 0 {
if yyv4638 == nil {
yyv4638 = []EndpointPort{}
yyc4638 = true
} else if len(yyv4638) != 0 {
yyv4638 = yyv4638[:0]
yyc4638 = true
}
} else if yyl4638 > 0 {
var yyrr4638, yyrl4638 int
var yyrt4638 bool
if yyl4638 > cap(yyv4638) {
yyrg4638 := len(yyv4638) > 0
yyv24638 := yyv4638
yyrl4638, yyrt4638 = z.DecInferLen(yyl4638, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4638 {
if yyrl4638 <= cap(yyv4638) {
yyv4638 = yyv4638[:yyrl4638]
} else {
yyv4638 = make([]EndpointPort, yyrl4638)
}
} else {
yyv4638 = make([]EndpointPort, yyrl4638)
}
yyc4638 = true
yyrr4638 = len(yyv4638)
if yyrg4638 {
copy(yyv4638, yyv24638)
}
} else if yyl4638 != len(yyv4638) {
yyv4638 = yyv4638[:yyl4638]
yyc4638 = true
}
yyj4638 := 0
for ; yyj4638 < yyrr4638; yyj4638++ {
yyh4638.ElemContainerState(yyj4638)
if r.TryDecodeAsNil() {
yyv4638[yyj4638] = EndpointPort{}
} else {
yyv4639 := &yyv4638[yyj4638]
yyv4639.CodecDecodeSelf(d)
}
}
if yyrt4638 {
for ; yyj4638 < yyl4638; yyj4638++ {
yyv4638 = append(yyv4638, EndpointPort{})
yyh4638.ElemContainerState(yyj4638)
if r.TryDecodeAsNil() {
yyv4638[yyj4638] = EndpointPort{}
} else {
yyv4640 := &yyv4638[yyj4638]
yyv4640.CodecDecodeSelf(d)
}
}
}
} else {
yyj4638 := 0
for ; !r.CheckBreak(); yyj4638++ {
if yyj4638 >= len(yyv4638) {
yyv4638 = append(yyv4638, EndpointPort{}) // var yyz4638 EndpointPort
yyc4638 = true
}
yyh4638.ElemContainerState(yyj4638)
if yyj4638 < len(yyv4638) {
if r.TryDecodeAsNil() {
yyv4638[yyj4638] = EndpointPort{}
} else {
yyv4641 := &yyv4638[yyj4638]
yyv4641.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4638 < len(yyv4638) {
yyv4638 = yyv4638[:yyj4638]
yyc4638 = true
} else if yyj4638 == 0 && yyv4638 == nil {
yyv4638 = []EndpointPort{}
yyc4638 = true
}
}
yyh4638.End()
if yyc4638 {
*v = yyv4638
}
}
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 _, yyv4642 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4643 := &yyv4642
yy4643.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
yyv4644 := *v
yyh4644, yyl4644 := z.DecSliceHelperStart()
var yyc4644 bool
if yyl4644 == 0 {
if yyv4644 == nil {
yyv4644 = []Endpoints{}
yyc4644 = true
} else if len(yyv4644) != 0 {
yyv4644 = yyv4644[:0]
yyc4644 = true
}
} else if yyl4644 > 0 {
var yyrr4644, yyrl4644 int
var yyrt4644 bool
if yyl4644 > cap(yyv4644) {
yyrg4644 := len(yyv4644) > 0
yyv24644 := yyv4644
yyrl4644, yyrt4644 = z.DecInferLen(yyl4644, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4644 {
if yyrl4644 <= cap(yyv4644) {
yyv4644 = yyv4644[:yyrl4644]
} else {
yyv4644 = make([]Endpoints, yyrl4644)
}
} else {
yyv4644 = make([]Endpoints, yyrl4644)
}
yyc4644 = true
yyrr4644 = len(yyv4644)
if yyrg4644 {
copy(yyv4644, yyv24644)
}
} else if yyl4644 != len(yyv4644) {
yyv4644 = yyv4644[:yyl4644]
yyc4644 = true
}
yyj4644 := 0
for ; yyj4644 < yyrr4644; yyj4644++ {
yyh4644.ElemContainerState(yyj4644)
if r.TryDecodeAsNil() {
yyv4644[yyj4644] = Endpoints{}
} else {
yyv4645 := &yyv4644[yyj4644]
yyv4645.CodecDecodeSelf(d)
}
}
if yyrt4644 {
for ; yyj4644 < yyl4644; yyj4644++ {
yyv4644 = append(yyv4644, Endpoints{})
yyh4644.ElemContainerState(yyj4644)
if r.TryDecodeAsNil() {
yyv4644[yyj4644] = Endpoints{}
} else {
yyv4646 := &yyv4644[yyj4644]
yyv4646.CodecDecodeSelf(d)
}
}
}
} else {
yyj4644 := 0
for ; !r.CheckBreak(); yyj4644++ {
if yyj4644 >= len(yyv4644) {
yyv4644 = append(yyv4644, Endpoints{}) // var yyz4644 Endpoints
yyc4644 = true
}
yyh4644.ElemContainerState(yyj4644)
if yyj4644 < len(yyv4644) {
if r.TryDecodeAsNil() {
yyv4644[yyj4644] = Endpoints{}
} else {
yyv4647 := &yyv4644[yyj4644]
yyv4647.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4644 < len(yyv4644) {
yyv4644 = yyv4644[:yyj4644]
yyc4644 = true
} else if yyj4644 == 0 && yyv4644 == nil {
yyv4644 = []Endpoints{}
yyc4644 = true
}
}
yyh4644.End()
if yyc4644 {
*v = yyv4644
}
}
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 _, yyv4648 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4649 := &yyv4648
yy4649.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
yyv4650 := *v
yyh4650, yyl4650 := z.DecSliceHelperStart()
var yyc4650 bool
if yyl4650 == 0 {
if yyv4650 == nil {
yyv4650 = []NodeCondition{}
yyc4650 = true
} else if len(yyv4650) != 0 {
yyv4650 = yyv4650[:0]
yyc4650 = true
}
} else if yyl4650 > 0 {
var yyrr4650, yyrl4650 int
var yyrt4650 bool
if yyl4650 > cap(yyv4650) {
yyrg4650 := len(yyv4650) > 0
yyv24650 := yyv4650
yyrl4650, yyrt4650 = z.DecInferLen(yyl4650, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4650 {
if yyrl4650 <= cap(yyv4650) {
yyv4650 = yyv4650[:yyrl4650]
} else {
yyv4650 = make([]NodeCondition, yyrl4650)
}
} else {
yyv4650 = make([]NodeCondition, yyrl4650)
}
yyc4650 = true
yyrr4650 = len(yyv4650)
if yyrg4650 {
copy(yyv4650, yyv24650)
}
} else if yyl4650 != len(yyv4650) {
yyv4650 = yyv4650[:yyl4650]
yyc4650 = true
}
yyj4650 := 0
for ; yyj4650 < yyrr4650; yyj4650++ {
yyh4650.ElemContainerState(yyj4650)
if r.TryDecodeAsNil() {
yyv4650[yyj4650] = NodeCondition{}
} else {
yyv4651 := &yyv4650[yyj4650]
yyv4651.CodecDecodeSelf(d)
}
}
if yyrt4650 {
for ; yyj4650 < yyl4650; yyj4650++ {
yyv4650 = append(yyv4650, NodeCondition{})
yyh4650.ElemContainerState(yyj4650)
if r.TryDecodeAsNil() {
yyv4650[yyj4650] = NodeCondition{}
} else {
yyv4652 := &yyv4650[yyj4650]
yyv4652.CodecDecodeSelf(d)
}
}
}
} else {
yyj4650 := 0
for ; !r.CheckBreak(); yyj4650++ {
if yyj4650 >= len(yyv4650) {
yyv4650 = append(yyv4650, NodeCondition{}) // var yyz4650 NodeCondition
yyc4650 = true
}
yyh4650.ElemContainerState(yyj4650)
if yyj4650 < len(yyv4650) {
if r.TryDecodeAsNil() {
yyv4650[yyj4650] = NodeCondition{}
} else {
yyv4653 := &yyv4650[yyj4650]
yyv4653.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4650 < len(yyv4650) {
yyv4650 = yyv4650[:yyj4650]
yyc4650 = true
} else if yyj4650 == 0 && yyv4650 == nil {
yyv4650 = []NodeCondition{}
yyc4650 = true
}
}
yyh4650.End()
if yyc4650 {
*v = yyv4650
}
}
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 _, yyv4654 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4655 := &yyv4654
yy4655.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
yyv4656 := *v
yyh4656, yyl4656 := z.DecSliceHelperStart()
var yyc4656 bool
if yyl4656 == 0 {
if yyv4656 == nil {
yyv4656 = []NodeAddress{}
yyc4656 = true
} else if len(yyv4656) != 0 {
yyv4656 = yyv4656[:0]
yyc4656 = true
}
} else if yyl4656 > 0 {
var yyrr4656, yyrl4656 int
var yyrt4656 bool
if yyl4656 > cap(yyv4656) {
yyrg4656 := len(yyv4656) > 0
yyv24656 := yyv4656
yyrl4656, yyrt4656 = z.DecInferLen(yyl4656, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4656 {
if yyrl4656 <= cap(yyv4656) {
yyv4656 = yyv4656[:yyrl4656]
} else {
yyv4656 = make([]NodeAddress, yyrl4656)
}
} else {
yyv4656 = make([]NodeAddress, yyrl4656)
}
yyc4656 = true
yyrr4656 = len(yyv4656)
if yyrg4656 {
copy(yyv4656, yyv24656)
}
} else if yyl4656 != len(yyv4656) {
yyv4656 = yyv4656[:yyl4656]
yyc4656 = true
}
yyj4656 := 0
for ; yyj4656 < yyrr4656; yyj4656++ {
yyh4656.ElemContainerState(yyj4656)
if r.TryDecodeAsNil() {
yyv4656[yyj4656] = NodeAddress{}
} else {
yyv4657 := &yyv4656[yyj4656]
yyv4657.CodecDecodeSelf(d)
}
}
if yyrt4656 {
for ; yyj4656 < yyl4656; yyj4656++ {
yyv4656 = append(yyv4656, NodeAddress{})
yyh4656.ElemContainerState(yyj4656)
if r.TryDecodeAsNil() {
yyv4656[yyj4656] = NodeAddress{}
} else {
yyv4658 := &yyv4656[yyj4656]
yyv4658.CodecDecodeSelf(d)
}
}
}
} else {
yyj4656 := 0
for ; !r.CheckBreak(); yyj4656++ {
if yyj4656 >= len(yyv4656) {
yyv4656 = append(yyv4656, NodeAddress{}) // var yyz4656 NodeAddress
yyc4656 = true
}
yyh4656.ElemContainerState(yyj4656)
if yyj4656 < len(yyv4656) {
if r.TryDecodeAsNil() {
yyv4656[yyj4656] = NodeAddress{}
} else {
yyv4659 := &yyv4656[yyj4656]
yyv4659.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4656 < len(yyv4656) {
yyv4656 = yyv4656[:yyj4656]
yyc4656 = true
} else if yyj4656 == 0 && yyv4656 == nil {
yyv4656 = []NodeAddress{}
yyc4656 = true
}
}
yyh4656.End()
if yyc4656 {
*v = yyv4656
}
}
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 _, yyv4660 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4661 := &yyv4660
yy4661.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
yyv4662 := *v
yyh4662, yyl4662 := z.DecSliceHelperStart()
var yyc4662 bool
if yyl4662 == 0 {
if yyv4662 == nil {
yyv4662 = []ContainerImage{}
yyc4662 = true
} else if len(yyv4662) != 0 {
yyv4662 = yyv4662[:0]
yyc4662 = true
}
} else if yyl4662 > 0 {
var yyrr4662, yyrl4662 int
var yyrt4662 bool
if yyl4662 > cap(yyv4662) {
yyrg4662 := len(yyv4662) > 0
yyv24662 := yyv4662
yyrl4662, yyrt4662 = z.DecInferLen(yyl4662, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4662 {
if yyrl4662 <= cap(yyv4662) {
yyv4662 = yyv4662[:yyrl4662]
} else {
yyv4662 = make([]ContainerImage, yyrl4662)
}
} else {
yyv4662 = make([]ContainerImage, yyrl4662)
}
yyc4662 = true
yyrr4662 = len(yyv4662)
if yyrg4662 {
copy(yyv4662, yyv24662)
}
} else if yyl4662 != len(yyv4662) {
yyv4662 = yyv4662[:yyl4662]
yyc4662 = true
}
yyj4662 := 0
for ; yyj4662 < yyrr4662; yyj4662++ {
yyh4662.ElemContainerState(yyj4662)
if r.TryDecodeAsNil() {
yyv4662[yyj4662] = ContainerImage{}
} else {
yyv4663 := &yyv4662[yyj4662]
yyv4663.CodecDecodeSelf(d)
}
}
if yyrt4662 {
for ; yyj4662 < yyl4662; yyj4662++ {
yyv4662 = append(yyv4662, ContainerImage{})
yyh4662.ElemContainerState(yyj4662)
if r.TryDecodeAsNil() {
yyv4662[yyj4662] = ContainerImage{}
} else {
yyv4664 := &yyv4662[yyj4662]
yyv4664.CodecDecodeSelf(d)
}
}
}
} else {
yyj4662 := 0
for ; !r.CheckBreak(); yyj4662++ {
if yyj4662 >= len(yyv4662) {
yyv4662 = append(yyv4662, ContainerImage{}) // var yyz4662 ContainerImage
yyc4662 = true
}
yyh4662.ElemContainerState(yyj4662)
if yyj4662 < len(yyv4662) {
if r.TryDecodeAsNil() {
yyv4662[yyj4662] = ContainerImage{}
} else {
yyv4665 := &yyv4662[yyj4662]
yyv4665.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4662 < len(yyv4662) {
yyv4662 = yyv4662[:yyj4662]
yyc4662 = true
} else if yyj4662 == 0 && yyv4662 == nil {
yyv4662 = []ContainerImage{}
yyc4662 = true
}
}
yyh4662.End()
if yyc4662 {
*v = yyv4662
}
}
func (x codecSelfer1234) encSliceUniqueVolumeName(v []UniqueVolumeName, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4666 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4666.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceUniqueVolumeName(v *[]UniqueVolumeName, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4667 := *v
yyh4667, yyl4667 := z.DecSliceHelperStart()
var yyc4667 bool
if yyl4667 == 0 {
if yyv4667 == nil {
yyv4667 = []UniqueVolumeName{}
yyc4667 = true
} else if len(yyv4667) != 0 {
yyv4667 = yyv4667[:0]
yyc4667 = true
}
} else if yyl4667 > 0 {
var yyrr4667, yyrl4667 int
var yyrt4667 bool
if yyl4667 > cap(yyv4667) {
yyrl4667, yyrt4667 = z.DecInferLen(yyl4667, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4667 {
if yyrl4667 <= cap(yyv4667) {
yyv4667 = yyv4667[:yyrl4667]
} else {
yyv4667 = make([]UniqueVolumeName, yyrl4667)
}
} else {
yyv4667 = make([]UniqueVolumeName, yyrl4667)
}
yyc4667 = true
yyrr4667 = len(yyv4667)
} else if yyl4667 != len(yyv4667) {
yyv4667 = yyv4667[:yyl4667]
yyc4667 = true
}
yyj4667 := 0
for ; yyj4667 < yyrr4667; yyj4667++ {
yyh4667.ElemContainerState(yyj4667)
if r.TryDecodeAsNil() {
yyv4667[yyj4667] = ""
} else {
yyv4667[yyj4667] = UniqueVolumeName(r.DecodeString())
}
}
if yyrt4667 {
for ; yyj4667 < yyl4667; yyj4667++ {
yyv4667 = append(yyv4667, "")
yyh4667.ElemContainerState(yyj4667)
if r.TryDecodeAsNil() {
yyv4667[yyj4667] = ""
} else {
yyv4667[yyj4667] = UniqueVolumeName(r.DecodeString())
}
}
}
} else {
yyj4667 := 0
for ; !r.CheckBreak(); yyj4667++ {
if yyj4667 >= len(yyv4667) {
yyv4667 = append(yyv4667, "") // var yyz4667 UniqueVolumeName
yyc4667 = true
}
yyh4667.ElemContainerState(yyj4667)
if yyj4667 < len(yyv4667) {
if r.TryDecodeAsNil() {
yyv4667[yyj4667] = ""
} else {
yyv4667[yyj4667] = UniqueVolumeName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4667 < len(yyv4667) {
yyv4667 = yyv4667[:yyj4667]
yyc4667 = true
} else if yyj4667 == 0 && yyv4667 == nil {
yyv4667 = []UniqueVolumeName{}
yyc4667 = true
}
}
yyh4667.End()
if yyc4667 {
*v = yyv4667
}
}
func (x codecSelfer1234) encSliceAttachedVolume(v []AttachedVolume, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4671 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4672 := &yyv4671
yy4672.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceAttachedVolume(v *[]AttachedVolume, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4673 := *v
yyh4673, yyl4673 := z.DecSliceHelperStart()
var yyc4673 bool
if yyl4673 == 0 {
if yyv4673 == nil {
yyv4673 = []AttachedVolume{}
yyc4673 = true
} else if len(yyv4673) != 0 {
yyv4673 = yyv4673[:0]
yyc4673 = true
}
} else if yyl4673 > 0 {
var yyrr4673, yyrl4673 int
var yyrt4673 bool
if yyl4673 > cap(yyv4673) {
yyrg4673 := len(yyv4673) > 0
yyv24673 := yyv4673
yyrl4673, yyrt4673 = z.DecInferLen(yyl4673, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4673 {
if yyrl4673 <= cap(yyv4673) {
yyv4673 = yyv4673[:yyrl4673]
} else {
yyv4673 = make([]AttachedVolume, yyrl4673)
}
} else {
yyv4673 = make([]AttachedVolume, yyrl4673)
}
yyc4673 = true
yyrr4673 = len(yyv4673)
if yyrg4673 {
copy(yyv4673, yyv24673)
}
} else if yyl4673 != len(yyv4673) {
yyv4673 = yyv4673[:yyl4673]
yyc4673 = true
}
yyj4673 := 0
for ; yyj4673 < yyrr4673; yyj4673++ {
yyh4673.ElemContainerState(yyj4673)
if r.TryDecodeAsNil() {
yyv4673[yyj4673] = AttachedVolume{}
} else {
yyv4674 := &yyv4673[yyj4673]
yyv4674.CodecDecodeSelf(d)
}
}
if yyrt4673 {
for ; yyj4673 < yyl4673; yyj4673++ {
yyv4673 = append(yyv4673, AttachedVolume{})
yyh4673.ElemContainerState(yyj4673)
if r.TryDecodeAsNil() {
yyv4673[yyj4673] = AttachedVolume{}
} else {
yyv4675 := &yyv4673[yyj4673]
yyv4675.CodecDecodeSelf(d)
}
}
}
} else {
yyj4673 := 0
for ; !r.CheckBreak(); yyj4673++ {
if yyj4673 >= len(yyv4673) {
yyv4673 = append(yyv4673, AttachedVolume{}) // var yyz4673 AttachedVolume
yyc4673 = true
}
yyh4673.ElemContainerState(yyj4673)
if yyj4673 < len(yyv4673) {
if r.TryDecodeAsNil() {
yyv4673[yyj4673] = AttachedVolume{}
} else {
yyv4676 := &yyv4673[yyj4673]
yyv4676.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4673 < len(yyv4673) {
yyv4673 = yyv4673[:yyj4673]
yyc4673 = true
} else if yyj4673 == 0 && yyv4673 == nil {
yyv4673 = []AttachedVolume{}
yyc4673 = true
}
}
yyh4673.End()
if yyc4673 {
*v = yyv4673
}
}
func (x codecSelfer1234) encSlicePreferAvoidPodsEntry(v []PreferAvoidPodsEntry, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4677 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4678 := &yyv4677
yy4678.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSlicePreferAvoidPodsEntry(v *[]PreferAvoidPodsEntry, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4679 := *v
yyh4679, yyl4679 := z.DecSliceHelperStart()
var yyc4679 bool
if yyl4679 == 0 {
if yyv4679 == nil {
yyv4679 = []PreferAvoidPodsEntry{}
yyc4679 = true
} else if len(yyv4679) != 0 {
yyv4679 = yyv4679[:0]
yyc4679 = true
}
} else if yyl4679 > 0 {
var yyrr4679, yyrl4679 int
var yyrt4679 bool
if yyl4679 > cap(yyv4679) {
yyrg4679 := len(yyv4679) > 0
yyv24679 := yyv4679
yyrl4679, yyrt4679 = z.DecInferLen(yyl4679, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4679 {
if yyrl4679 <= cap(yyv4679) {
yyv4679 = yyv4679[:yyrl4679]
} else {
yyv4679 = make([]PreferAvoidPodsEntry, yyrl4679)
}
} else {
yyv4679 = make([]PreferAvoidPodsEntry, yyrl4679)
}
yyc4679 = true
yyrr4679 = len(yyv4679)
if yyrg4679 {
copy(yyv4679, yyv24679)
}
} else if yyl4679 != len(yyv4679) {
yyv4679 = yyv4679[:yyl4679]
yyc4679 = true
}
yyj4679 := 0
for ; yyj4679 < yyrr4679; yyj4679++ {
yyh4679.ElemContainerState(yyj4679)
if r.TryDecodeAsNil() {
yyv4679[yyj4679] = PreferAvoidPodsEntry{}
} else {
yyv4680 := &yyv4679[yyj4679]
yyv4680.CodecDecodeSelf(d)
}
}
if yyrt4679 {
for ; yyj4679 < yyl4679; yyj4679++ {
yyv4679 = append(yyv4679, PreferAvoidPodsEntry{})
yyh4679.ElemContainerState(yyj4679)
if r.TryDecodeAsNil() {
yyv4679[yyj4679] = PreferAvoidPodsEntry{}
} else {
yyv4681 := &yyv4679[yyj4679]
yyv4681.CodecDecodeSelf(d)
}
}
}
} else {
yyj4679 := 0
for ; !r.CheckBreak(); yyj4679++ {
if yyj4679 >= len(yyv4679) {
yyv4679 = append(yyv4679, PreferAvoidPodsEntry{}) // var yyz4679 PreferAvoidPodsEntry
yyc4679 = true
}
yyh4679.ElemContainerState(yyj4679)
if yyj4679 < len(yyv4679) {
if r.TryDecodeAsNil() {
yyv4679[yyj4679] = PreferAvoidPodsEntry{}
} else {
yyv4682 := &yyv4679[yyj4679]
yyv4682.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4679 < len(yyv4679) {
yyv4679 = yyv4679[:yyj4679]
yyc4679 = true
} else if yyj4679 == 0 && yyv4679 == nil {
yyv4679 = []PreferAvoidPodsEntry{}
yyc4679 = true
}
}
yyh4679.End()
if yyc4679 {
*v = yyv4679
}
}
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 yyk4683, yyv4683 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yyk4683.CodecEncodeSelf(e)
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4684 := &yyv4683
yym4685 := z.EncBinary()
_ = yym4685
if false {
} else if z.HasExtensions() && z.EncExt(yy4684) {
} else if !yym4685 && z.IsJSONHandle() {
z.EncJSONMarshal(yy4684)
} else {
z.EncFallback(yy4684)
}
}
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4686 := *v
yyl4686 := r.ReadMapStart()
yybh4686 := z.DecBasicHandle()
if yyv4686 == nil {
yyrl4686, _ := z.DecInferLen(yyl4686, yybh4686.MaxInitLen, 72)
yyv4686 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4686)
*v = yyv4686
}
var yymk4686 ResourceName
var yymv4686 pkg3_resource.Quantity
var yymg4686 bool
if yybh4686.MapValueReset {
yymg4686 = true
}
if yyl4686 > 0 {
for yyj4686 := 0; yyj4686 < yyl4686; yyj4686++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4686 = ""
} else {
yymk4686 = ResourceName(r.DecodeString())
}
if yymg4686 {
yymv4686 = yyv4686[yymk4686]
} else {
yymv4686 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4686 = pkg3_resource.Quantity{}
} else {
yyv4688 := &yymv4686
yym4689 := z.DecBinary()
_ = yym4689
if false {
} else if z.HasExtensions() && z.DecExt(yyv4688) {
} else if !yym4689 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4688)
} else {
z.DecFallback(yyv4688, false)
}
}
if yyv4686 != nil {
yyv4686[yymk4686] = yymv4686
}
}
} else if yyl4686 < 0 {
for yyj4686 := 0; !r.CheckBreak(); yyj4686++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4686 = ""
} else {
yymk4686 = ResourceName(r.DecodeString())
}
if yymg4686 {
yymv4686 = yyv4686[yymk4686]
} else {
yymv4686 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4686 = pkg3_resource.Quantity{}
} else {
yyv4691 := &yymv4686
yym4692 := z.DecBinary()
_ = yym4692
if false {
} else if z.HasExtensions() && z.DecExt(yyv4691) {
} else if !yym4692 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4691)
} else {
z.DecFallback(yyv4691, false)
}
}
if yyv4686 != nil {
yyv4686[yymk4686] = yymv4686
}
}
} // 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 _, yyv4693 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4694 := &yyv4693
yy4694.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
yyv4695 := *v
yyh4695, yyl4695 := z.DecSliceHelperStart()
var yyc4695 bool
if yyl4695 == 0 {
if yyv4695 == nil {
yyv4695 = []Node{}
yyc4695 = true
} else if len(yyv4695) != 0 {
yyv4695 = yyv4695[:0]
yyc4695 = true
}
} else if yyl4695 > 0 {
var yyrr4695, yyrl4695 int
var yyrt4695 bool
if yyl4695 > cap(yyv4695) {
yyrg4695 := len(yyv4695) > 0
yyv24695 := yyv4695
yyrl4695, yyrt4695 = z.DecInferLen(yyl4695, z.DecBasicHandle().MaxInitLen, 616)
if yyrt4695 {
if yyrl4695 <= cap(yyv4695) {
yyv4695 = yyv4695[:yyrl4695]
} else {
yyv4695 = make([]Node, yyrl4695)
}
} else {
yyv4695 = make([]Node, yyrl4695)
}
yyc4695 = true
yyrr4695 = len(yyv4695)
if yyrg4695 {
copy(yyv4695, yyv24695)
}
} else if yyl4695 != len(yyv4695) {
yyv4695 = yyv4695[:yyl4695]
yyc4695 = true
}
yyj4695 := 0
for ; yyj4695 < yyrr4695; yyj4695++ {
yyh4695.ElemContainerState(yyj4695)
if r.TryDecodeAsNil() {
yyv4695[yyj4695] = Node{}
} else {
yyv4696 := &yyv4695[yyj4695]
yyv4696.CodecDecodeSelf(d)
}
}
if yyrt4695 {
for ; yyj4695 < yyl4695; yyj4695++ {
yyv4695 = append(yyv4695, Node{})
yyh4695.ElemContainerState(yyj4695)
if r.TryDecodeAsNil() {
yyv4695[yyj4695] = Node{}
} else {
yyv4697 := &yyv4695[yyj4695]
yyv4697.CodecDecodeSelf(d)
}
}
}
} else {
yyj4695 := 0
for ; !r.CheckBreak(); yyj4695++ {
if yyj4695 >= len(yyv4695) {
yyv4695 = append(yyv4695, Node{}) // var yyz4695 Node
yyc4695 = true
}
yyh4695.ElemContainerState(yyj4695)
if yyj4695 < len(yyv4695) {
if r.TryDecodeAsNil() {
yyv4695[yyj4695] = Node{}
} else {
yyv4698 := &yyv4695[yyj4695]
yyv4698.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4695 < len(yyv4695) {
yyv4695 = yyv4695[:yyj4695]
yyc4695 = true
} else if yyj4695 == 0 && yyv4695 == nil {
yyv4695 = []Node{}
yyc4695 = true
}
}
yyh4695.End()
if yyc4695 {
*v = yyv4695
}
}
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 _, yyv4699 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4699.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
yyv4700 := *v
yyh4700, yyl4700 := z.DecSliceHelperStart()
var yyc4700 bool
if yyl4700 == 0 {
if yyv4700 == nil {
yyv4700 = []FinalizerName{}
yyc4700 = true
} else if len(yyv4700) != 0 {
yyv4700 = yyv4700[:0]
yyc4700 = true
}
} else if yyl4700 > 0 {
var yyrr4700, yyrl4700 int
var yyrt4700 bool
if yyl4700 > cap(yyv4700) {
yyrl4700, yyrt4700 = z.DecInferLen(yyl4700, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4700 {
if yyrl4700 <= cap(yyv4700) {
yyv4700 = yyv4700[:yyrl4700]
} else {
yyv4700 = make([]FinalizerName, yyrl4700)
}
} else {
yyv4700 = make([]FinalizerName, yyrl4700)
}
yyc4700 = true
yyrr4700 = len(yyv4700)
} else if yyl4700 != len(yyv4700) {
yyv4700 = yyv4700[:yyl4700]
yyc4700 = true
}
yyj4700 := 0
for ; yyj4700 < yyrr4700; yyj4700++ {
yyh4700.ElemContainerState(yyj4700)
if r.TryDecodeAsNil() {
yyv4700[yyj4700] = ""
} else {
yyv4700[yyj4700] = FinalizerName(r.DecodeString())
}
}
if yyrt4700 {
for ; yyj4700 < yyl4700; yyj4700++ {
yyv4700 = append(yyv4700, "")
yyh4700.ElemContainerState(yyj4700)
if r.TryDecodeAsNil() {
yyv4700[yyj4700] = ""
} else {
yyv4700[yyj4700] = FinalizerName(r.DecodeString())
}
}
}
} else {
yyj4700 := 0
for ; !r.CheckBreak(); yyj4700++ {
if yyj4700 >= len(yyv4700) {
yyv4700 = append(yyv4700, "") // var yyz4700 FinalizerName
yyc4700 = true
}
yyh4700.ElemContainerState(yyj4700)
if yyj4700 < len(yyv4700) {
if r.TryDecodeAsNil() {
yyv4700[yyj4700] = ""
} else {
yyv4700[yyj4700] = FinalizerName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4700 < len(yyv4700) {
yyv4700 = yyv4700[:yyj4700]
yyc4700 = true
} else if yyj4700 == 0 && yyv4700 == nil {
yyv4700 = []FinalizerName{}
yyc4700 = true
}
}
yyh4700.End()
if yyc4700 {
*v = yyv4700
}
}
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 _, yyv4704 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4705 := &yyv4704
yy4705.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
yyv4706 := *v
yyh4706, yyl4706 := z.DecSliceHelperStart()
var yyc4706 bool
if yyl4706 == 0 {
if yyv4706 == nil {
yyv4706 = []Namespace{}
yyc4706 = true
} else if len(yyv4706) != 0 {
yyv4706 = yyv4706[:0]
yyc4706 = true
}
} else if yyl4706 > 0 {
var yyrr4706, yyrl4706 int
var yyrt4706 bool
if yyl4706 > cap(yyv4706) {
yyrg4706 := len(yyv4706) > 0
yyv24706 := yyv4706
yyrl4706, yyrt4706 = z.DecInferLen(yyl4706, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4706 {
if yyrl4706 <= cap(yyv4706) {
yyv4706 = yyv4706[:yyrl4706]
} else {
yyv4706 = make([]Namespace, yyrl4706)
}
} else {
yyv4706 = make([]Namespace, yyrl4706)
}
yyc4706 = true
yyrr4706 = len(yyv4706)
if yyrg4706 {
copy(yyv4706, yyv24706)
}
} else if yyl4706 != len(yyv4706) {
yyv4706 = yyv4706[:yyl4706]
yyc4706 = true
}
yyj4706 := 0
for ; yyj4706 < yyrr4706; yyj4706++ {
yyh4706.ElemContainerState(yyj4706)
if r.TryDecodeAsNil() {
yyv4706[yyj4706] = Namespace{}
} else {
yyv4707 := &yyv4706[yyj4706]
yyv4707.CodecDecodeSelf(d)
}
}
if yyrt4706 {
for ; yyj4706 < yyl4706; yyj4706++ {
yyv4706 = append(yyv4706, Namespace{})
yyh4706.ElemContainerState(yyj4706)
if r.TryDecodeAsNil() {
yyv4706[yyj4706] = Namespace{}
} else {
yyv4708 := &yyv4706[yyj4706]
yyv4708.CodecDecodeSelf(d)
}
}
}
} else {
yyj4706 := 0
for ; !r.CheckBreak(); yyj4706++ {
if yyj4706 >= len(yyv4706) {
yyv4706 = append(yyv4706, Namespace{}) // var yyz4706 Namespace
yyc4706 = true
}
yyh4706.ElemContainerState(yyj4706)
if yyj4706 < len(yyv4706) {
if r.TryDecodeAsNil() {
yyv4706[yyj4706] = Namespace{}
} else {
yyv4709 := &yyv4706[yyj4706]
yyv4709.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4706 < len(yyv4706) {
yyv4706 = yyv4706[:yyj4706]
yyc4706 = true
} else if yyj4706 == 0 && yyv4706 == nil {
yyv4706 = []Namespace{}
yyc4706 = true
}
}
yyh4706.End()
if yyc4706 {
*v = yyv4706
}
}
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 _, yyv4710 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4711 := &yyv4710
yy4711.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
yyv4712 := *v
yyh4712, yyl4712 := z.DecSliceHelperStart()
var yyc4712 bool
if yyl4712 == 0 {
if yyv4712 == nil {
yyv4712 = []Event{}
yyc4712 = true
} else if len(yyv4712) != 0 {
yyv4712 = yyv4712[:0]
yyc4712 = true
}
} else if yyl4712 > 0 {
var yyrr4712, yyrl4712 int
var yyrt4712 bool
if yyl4712 > cap(yyv4712) {
yyrg4712 := len(yyv4712) > 0
yyv24712 := yyv4712
yyrl4712, yyrt4712 = z.DecInferLen(yyl4712, z.DecBasicHandle().MaxInitLen, 488)
if yyrt4712 {
if yyrl4712 <= cap(yyv4712) {
yyv4712 = yyv4712[:yyrl4712]
} else {
yyv4712 = make([]Event, yyrl4712)
}
} else {
yyv4712 = make([]Event, yyrl4712)
}
yyc4712 = true
yyrr4712 = len(yyv4712)
if yyrg4712 {
copy(yyv4712, yyv24712)
}
} else if yyl4712 != len(yyv4712) {
yyv4712 = yyv4712[:yyl4712]
yyc4712 = true
}
yyj4712 := 0
for ; yyj4712 < yyrr4712; yyj4712++ {
yyh4712.ElemContainerState(yyj4712)
if r.TryDecodeAsNil() {
yyv4712[yyj4712] = Event{}
} else {
yyv4713 := &yyv4712[yyj4712]
yyv4713.CodecDecodeSelf(d)
}
}
if yyrt4712 {
for ; yyj4712 < yyl4712; yyj4712++ {
yyv4712 = append(yyv4712, Event{})
yyh4712.ElemContainerState(yyj4712)
if r.TryDecodeAsNil() {
yyv4712[yyj4712] = Event{}
} else {
yyv4714 := &yyv4712[yyj4712]
yyv4714.CodecDecodeSelf(d)
}
}
}
} else {
yyj4712 := 0
for ; !r.CheckBreak(); yyj4712++ {
if yyj4712 >= len(yyv4712) {
yyv4712 = append(yyv4712, Event{}) // var yyz4712 Event
yyc4712 = true
}
yyh4712.ElemContainerState(yyj4712)
if yyj4712 < len(yyv4712) {
if r.TryDecodeAsNil() {
yyv4712[yyj4712] = Event{}
} else {
yyv4715 := &yyv4712[yyj4712]
yyv4715.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4712 < len(yyv4712) {
yyv4712 = yyv4712[:yyj4712]
yyc4712 = true
} else if yyj4712 == 0 && yyv4712 == nil {
yyv4712 = []Event{}
yyc4712 = true
}
}
yyh4712.End()
if yyc4712 {
*v = yyv4712
}
}
func (x codecSelfer1234) encSliceruntime_Object(v []pkg7_runtime.Object, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4716 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyv4716 == nil {
r.EncodeNil()
} else {
yym4717 := z.EncBinary()
_ = yym4717
if false {
} else if z.HasExtensions() && z.EncExt(yyv4716) {
} else {
z.EncFallback(yyv4716)
}
}
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg7_runtime.Object, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4718 := *v
yyh4718, yyl4718 := z.DecSliceHelperStart()
var yyc4718 bool
if yyl4718 == 0 {
if yyv4718 == nil {
yyv4718 = []pkg7_runtime.Object{}
yyc4718 = true
} else if len(yyv4718) != 0 {
yyv4718 = yyv4718[:0]
yyc4718 = true
}
} else if yyl4718 > 0 {
var yyrr4718, yyrl4718 int
var yyrt4718 bool
if yyl4718 > cap(yyv4718) {
yyrg4718 := len(yyv4718) > 0
yyv24718 := yyv4718
yyrl4718, yyrt4718 = z.DecInferLen(yyl4718, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4718 {
if yyrl4718 <= cap(yyv4718) {
yyv4718 = yyv4718[:yyrl4718]
} else {
yyv4718 = make([]pkg7_runtime.Object, yyrl4718)
}
} else {
yyv4718 = make([]pkg7_runtime.Object, yyrl4718)
}
yyc4718 = true
yyrr4718 = len(yyv4718)
if yyrg4718 {
copy(yyv4718, yyv24718)
}
} else if yyl4718 != len(yyv4718) {
yyv4718 = yyv4718[:yyl4718]
yyc4718 = true
}
yyj4718 := 0
for ; yyj4718 < yyrr4718; yyj4718++ {
yyh4718.ElemContainerState(yyj4718)
if r.TryDecodeAsNil() {
yyv4718[yyj4718] = nil
} else {
yyv4719 := &yyv4718[yyj4718]
yym4720 := z.DecBinary()
_ = yym4720
if false {
} else if z.HasExtensions() && z.DecExt(yyv4719) {
} else {
z.DecFallback(yyv4719, true)
}
}
}
if yyrt4718 {
for ; yyj4718 < yyl4718; yyj4718++ {
yyv4718 = append(yyv4718, nil)
yyh4718.ElemContainerState(yyj4718)
if r.TryDecodeAsNil() {
yyv4718[yyj4718] = nil
} else {
yyv4721 := &yyv4718[yyj4718]
yym4722 := z.DecBinary()
_ = yym4722
if false {
} else if z.HasExtensions() && z.DecExt(yyv4721) {
} else {
z.DecFallback(yyv4721, true)
}
}
}
}
} else {
yyj4718 := 0
for ; !r.CheckBreak(); yyj4718++ {
if yyj4718 >= len(yyv4718) {
yyv4718 = append(yyv4718, nil) // var yyz4718 pkg7_runtime.Object
yyc4718 = true
}
yyh4718.ElemContainerState(yyj4718)
if yyj4718 < len(yyv4718) {
if r.TryDecodeAsNil() {
yyv4718[yyj4718] = nil
} else {
yyv4723 := &yyv4718[yyj4718]
yym4724 := z.DecBinary()
_ = yym4724
if false {
} else if z.HasExtensions() && z.DecExt(yyv4723) {
} else {
z.DecFallback(yyv4723, true)
}
}
} else {
z.DecSwallow()
}
}
if yyj4718 < len(yyv4718) {
yyv4718 = yyv4718[:yyj4718]
yyc4718 = true
} else if yyj4718 == 0 && yyv4718 == nil {
yyv4718 = []pkg7_runtime.Object{}
yyc4718 = true
}
}
yyh4718.End()
if yyc4718 {
*v = yyv4718
}
}
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 _, yyv4725 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4726 := &yyv4725
yy4726.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
yyv4727 := *v
yyh4727, yyl4727 := z.DecSliceHelperStart()
var yyc4727 bool
if yyl4727 == 0 {
if yyv4727 == nil {
yyv4727 = []LimitRangeItem{}
yyc4727 = true
} else if len(yyv4727) != 0 {
yyv4727 = yyv4727[:0]
yyc4727 = true
}
} else if yyl4727 > 0 {
var yyrr4727, yyrl4727 int
var yyrt4727 bool
if yyl4727 > cap(yyv4727) {
yyrg4727 := len(yyv4727) > 0
yyv24727 := yyv4727
yyrl4727, yyrt4727 = z.DecInferLen(yyl4727, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4727 {
if yyrl4727 <= cap(yyv4727) {
yyv4727 = yyv4727[:yyrl4727]
} else {
yyv4727 = make([]LimitRangeItem, yyrl4727)
}
} else {
yyv4727 = make([]LimitRangeItem, yyrl4727)
}
yyc4727 = true
yyrr4727 = len(yyv4727)
if yyrg4727 {
copy(yyv4727, yyv24727)
}
} else if yyl4727 != len(yyv4727) {
yyv4727 = yyv4727[:yyl4727]
yyc4727 = true
}
yyj4727 := 0
for ; yyj4727 < yyrr4727; yyj4727++ {
yyh4727.ElemContainerState(yyj4727)
if r.TryDecodeAsNil() {
yyv4727[yyj4727] = LimitRangeItem{}
} else {
yyv4728 := &yyv4727[yyj4727]
yyv4728.CodecDecodeSelf(d)
}
}
if yyrt4727 {
for ; yyj4727 < yyl4727; yyj4727++ {
yyv4727 = append(yyv4727, LimitRangeItem{})
yyh4727.ElemContainerState(yyj4727)
if r.TryDecodeAsNil() {
yyv4727[yyj4727] = LimitRangeItem{}
} else {
yyv4729 := &yyv4727[yyj4727]
yyv4729.CodecDecodeSelf(d)
}
}
}
} else {
yyj4727 := 0
for ; !r.CheckBreak(); yyj4727++ {
if yyj4727 >= len(yyv4727) {
yyv4727 = append(yyv4727, LimitRangeItem{}) // var yyz4727 LimitRangeItem
yyc4727 = true
}
yyh4727.ElemContainerState(yyj4727)
if yyj4727 < len(yyv4727) {
if r.TryDecodeAsNil() {
yyv4727[yyj4727] = LimitRangeItem{}
} else {
yyv4730 := &yyv4727[yyj4727]
yyv4730.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4727 < len(yyv4727) {
yyv4727 = yyv4727[:yyj4727]
yyc4727 = true
} else if yyj4727 == 0 && yyv4727 == nil {
yyv4727 = []LimitRangeItem{}
yyc4727 = true
}
}
yyh4727.End()
if yyc4727 {
*v = yyv4727
}
}
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 _, yyv4731 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4732 := &yyv4731
yy4732.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
yyv4733 := *v
yyh4733, yyl4733 := z.DecSliceHelperStart()
var yyc4733 bool
if yyl4733 == 0 {
if yyv4733 == nil {
yyv4733 = []LimitRange{}
yyc4733 = true
} else if len(yyv4733) != 0 {
yyv4733 = yyv4733[:0]
yyc4733 = true
}
} else if yyl4733 > 0 {
var yyrr4733, yyrl4733 int
var yyrt4733 bool
if yyl4733 > cap(yyv4733) {
yyrg4733 := len(yyv4733) > 0
yyv24733 := yyv4733
yyrl4733, yyrt4733 = z.DecInferLen(yyl4733, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4733 {
if yyrl4733 <= cap(yyv4733) {
yyv4733 = yyv4733[:yyrl4733]
} else {
yyv4733 = make([]LimitRange, yyrl4733)
}
} else {
yyv4733 = make([]LimitRange, yyrl4733)
}
yyc4733 = true
yyrr4733 = len(yyv4733)
if yyrg4733 {
copy(yyv4733, yyv24733)
}
} else if yyl4733 != len(yyv4733) {
yyv4733 = yyv4733[:yyl4733]
yyc4733 = true
}
yyj4733 := 0
for ; yyj4733 < yyrr4733; yyj4733++ {
yyh4733.ElemContainerState(yyj4733)
if r.TryDecodeAsNil() {
yyv4733[yyj4733] = LimitRange{}
} else {
yyv4734 := &yyv4733[yyj4733]
yyv4734.CodecDecodeSelf(d)
}
}
if yyrt4733 {
for ; yyj4733 < yyl4733; yyj4733++ {
yyv4733 = append(yyv4733, LimitRange{})
yyh4733.ElemContainerState(yyj4733)
if r.TryDecodeAsNil() {
yyv4733[yyj4733] = LimitRange{}
} else {
yyv4735 := &yyv4733[yyj4733]
yyv4735.CodecDecodeSelf(d)
}
}
}
} else {
yyj4733 := 0
for ; !r.CheckBreak(); yyj4733++ {
if yyj4733 >= len(yyv4733) {
yyv4733 = append(yyv4733, LimitRange{}) // var yyz4733 LimitRange
yyc4733 = true
}
yyh4733.ElemContainerState(yyj4733)
if yyj4733 < len(yyv4733) {
if r.TryDecodeAsNil() {
yyv4733[yyj4733] = LimitRange{}
} else {
yyv4736 := &yyv4733[yyj4733]
yyv4736.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4733 < len(yyv4733) {
yyv4733 = yyv4733[:yyj4733]
yyc4733 = true
} else if yyj4733 == 0 && yyv4733 == nil {
yyv4733 = []LimitRange{}
yyc4733 = true
}
}
yyh4733.End()
if yyc4733 {
*v = yyv4733
}
}
func (x codecSelfer1234) encSliceResourceQuotaScope(v []ResourceQuotaScope, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4737 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4737.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceResourceQuotaScope(v *[]ResourceQuotaScope, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4738 := *v
yyh4738, yyl4738 := z.DecSliceHelperStart()
var yyc4738 bool
if yyl4738 == 0 {
if yyv4738 == nil {
yyv4738 = []ResourceQuotaScope{}
yyc4738 = true
} else if len(yyv4738) != 0 {
yyv4738 = yyv4738[:0]
yyc4738 = true
}
} else if yyl4738 > 0 {
var yyrr4738, yyrl4738 int
var yyrt4738 bool
if yyl4738 > cap(yyv4738) {
yyrl4738, yyrt4738 = z.DecInferLen(yyl4738, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4738 {
if yyrl4738 <= cap(yyv4738) {
yyv4738 = yyv4738[:yyrl4738]
} else {
yyv4738 = make([]ResourceQuotaScope, yyrl4738)
}
} else {
yyv4738 = make([]ResourceQuotaScope, yyrl4738)
}
yyc4738 = true
yyrr4738 = len(yyv4738)
} else if yyl4738 != len(yyv4738) {
yyv4738 = yyv4738[:yyl4738]
yyc4738 = true
}
yyj4738 := 0
for ; yyj4738 < yyrr4738; yyj4738++ {
yyh4738.ElemContainerState(yyj4738)
if r.TryDecodeAsNil() {
yyv4738[yyj4738] = ""
} else {
yyv4738[yyj4738] = ResourceQuotaScope(r.DecodeString())
}
}
if yyrt4738 {
for ; yyj4738 < yyl4738; yyj4738++ {
yyv4738 = append(yyv4738, "")
yyh4738.ElemContainerState(yyj4738)
if r.TryDecodeAsNil() {
yyv4738[yyj4738] = ""
} else {
yyv4738[yyj4738] = ResourceQuotaScope(r.DecodeString())
}
}
}
} else {
yyj4738 := 0
for ; !r.CheckBreak(); yyj4738++ {
if yyj4738 >= len(yyv4738) {
yyv4738 = append(yyv4738, "") // var yyz4738 ResourceQuotaScope
yyc4738 = true
}
yyh4738.ElemContainerState(yyj4738)
if yyj4738 < len(yyv4738) {
if r.TryDecodeAsNil() {
yyv4738[yyj4738] = ""
} else {
yyv4738[yyj4738] = ResourceQuotaScope(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4738 < len(yyv4738) {
yyv4738 = yyv4738[:yyj4738]
yyc4738 = true
} else if yyj4738 == 0 && yyv4738 == nil {
yyv4738 = []ResourceQuotaScope{}
yyc4738 = true
}
}
yyh4738.End()
if yyc4738 {
*v = yyv4738
}
}
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 _, yyv4742 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4743 := &yyv4742
yy4743.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
yyv4744 := *v
yyh4744, yyl4744 := z.DecSliceHelperStart()
var yyc4744 bool
if yyl4744 == 0 {
if yyv4744 == nil {
yyv4744 = []ResourceQuota{}
yyc4744 = true
} else if len(yyv4744) != 0 {
yyv4744 = yyv4744[:0]
yyc4744 = true
}
} else if yyl4744 > 0 {
var yyrr4744, yyrl4744 int
var yyrt4744 bool
if yyl4744 > cap(yyv4744) {
yyrg4744 := len(yyv4744) > 0
yyv24744 := yyv4744
yyrl4744, yyrt4744 = z.DecInferLen(yyl4744, z.DecBasicHandle().MaxInitLen, 288)
if yyrt4744 {
if yyrl4744 <= cap(yyv4744) {
yyv4744 = yyv4744[:yyrl4744]
} else {
yyv4744 = make([]ResourceQuota, yyrl4744)
}
} else {
yyv4744 = make([]ResourceQuota, yyrl4744)
}
yyc4744 = true
yyrr4744 = len(yyv4744)
if yyrg4744 {
copy(yyv4744, yyv24744)
}
} else if yyl4744 != len(yyv4744) {
yyv4744 = yyv4744[:yyl4744]
yyc4744 = true
}
yyj4744 := 0
for ; yyj4744 < yyrr4744; yyj4744++ {
yyh4744.ElemContainerState(yyj4744)
if r.TryDecodeAsNil() {
yyv4744[yyj4744] = ResourceQuota{}
} else {
yyv4745 := &yyv4744[yyj4744]
yyv4745.CodecDecodeSelf(d)
}
}
if yyrt4744 {
for ; yyj4744 < yyl4744; yyj4744++ {
yyv4744 = append(yyv4744, ResourceQuota{})
yyh4744.ElemContainerState(yyj4744)
if r.TryDecodeAsNil() {
yyv4744[yyj4744] = ResourceQuota{}
} else {
yyv4746 := &yyv4744[yyj4744]
yyv4746.CodecDecodeSelf(d)
}
}
}
} else {
yyj4744 := 0
for ; !r.CheckBreak(); yyj4744++ {
if yyj4744 >= len(yyv4744) {
yyv4744 = append(yyv4744, ResourceQuota{}) // var yyz4744 ResourceQuota
yyc4744 = true
}
yyh4744.ElemContainerState(yyj4744)
if yyj4744 < len(yyv4744) {
if r.TryDecodeAsNil() {
yyv4744[yyj4744] = ResourceQuota{}
} else {
yyv4747 := &yyv4744[yyj4744]
yyv4747.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4744 < len(yyv4744) {
yyv4744 = yyv4744[:yyj4744]
yyc4744 = true
} else if yyj4744 == 0 && yyv4744 == nil {
yyv4744 = []ResourceQuota{}
yyc4744 = true
}
}
yyh4744.End()
if yyc4744 {
*v = yyv4744
}
}
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 yyk4748, yyv4748 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym4749 := z.EncBinary()
_ = yym4749
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yyk4748))
}
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyv4748 == nil {
r.EncodeNil()
} else {
yym4750 := z.EncBinary()
_ = yym4750
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4748))
}
}
}
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
yyv4751 := *v
yyl4751 := r.ReadMapStart()
yybh4751 := z.DecBasicHandle()
if yyv4751 == nil {
yyrl4751, _ := z.DecInferLen(yyl4751, yybh4751.MaxInitLen, 40)
yyv4751 = make(map[string][]uint8, yyrl4751)
*v = yyv4751
}
var yymk4751 string
var yymv4751 []uint8
var yymg4751 bool
if yybh4751.MapValueReset {
yymg4751 = true
}
if yyl4751 > 0 {
for yyj4751 := 0; yyj4751 < yyl4751; yyj4751++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4751 = ""
} else {
yymk4751 = string(r.DecodeString())
}
if yymg4751 {
yymv4751 = yyv4751[yymk4751]
} else {
yymv4751 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4751 = nil
} else {
yyv4753 := &yymv4751
yym4754 := z.DecBinary()
_ = yym4754
if false {
} else {
*yyv4753 = r.DecodeBytes(*(*[]byte)(yyv4753), false, false)
}
}
if yyv4751 != nil {
yyv4751[yymk4751] = yymv4751
}
}
} else if yyl4751 < 0 {
for yyj4751 := 0; !r.CheckBreak(); yyj4751++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4751 = ""
} else {
yymk4751 = string(r.DecodeString())
}
if yymg4751 {
yymv4751 = yyv4751[yymk4751]
} else {
yymv4751 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4751 = nil
} else {
yyv4756 := &yymv4751
yym4757 := z.DecBinary()
_ = yym4757
if false {
} else {
*yyv4756 = r.DecodeBytes(*(*[]byte)(yyv4756), false, false)
}
}
if yyv4751 != nil {
yyv4751[yymk4751] = yymv4751
}
}
} // 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 _, yyv4758 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4759 := &yyv4758
yy4759.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
yyv4760 := *v
yyh4760, yyl4760 := z.DecSliceHelperStart()
var yyc4760 bool
if yyl4760 == 0 {
if yyv4760 == nil {
yyv4760 = []Secret{}
yyc4760 = true
} else if len(yyv4760) != 0 {
yyv4760 = yyv4760[:0]
yyc4760 = true
}
} else if yyl4760 > 0 {
var yyrr4760, yyrl4760 int
var yyrt4760 bool
if yyl4760 > cap(yyv4760) {
yyrg4760 := len(yyv4760) > 0
yyv24760 := yyv4760
yyrl4760, yyrt4760 = z.DecInferLen(yyl4760, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4760 {
if yyrl4760 <= cap(yyv4760) {
yyv4760 = yyv4760[:yyrl4760]
} else {
yyv4760 = make([]Secret, yyrl4760)
}
} else {
yyv4760 = make([]Secret, yyrl4760)
}
yyc4760 = true
yyrr4760 = len(yyv4760)
if yyrg4760 {
copy(yyv4760, yyv24760)
}
} else if yyl4760 != len(yyv4760) {
yyv4760 = yyv4760[:yyl4760]
yyc4760 = true
}
yyj4760 := 0
for ; yyj4760 < yyrr4760; yyj4760++ {
yyh4760.ElemContainerState(yyj4760)
if r.TryDecodeAsNil() {
yyv4760[yyj4760] = Secret{}
} else {
yyv4761 := &yyv4760[yyj4760]
yyv4761.CodecDecodeSelf(d)
}
}
if yyrt4760 {
for ; yyj4760 < yyl4760; yyj4760++ {
yyv4760 = append(yyv4760, Secret{})
yyh4760.ElemContainerState(yyj4760)
if r.TryDecodeAsNil() {
yyv4760[yyj4760] = Secret{}
} else {
yyv4762 := &yyv4760[yyj4760]
yyv4762.CodecDecodeSelf(d)
}
}
}
} else {
yyj4760 := 0
for ; !r.CheckBreak(); yyj4760++ {
if yyj4760 >= len(yyv4760) {
yyv4760 = append(yyv4760, Secret{}) // var yyz4760 Secret
yyc4760 = true
}
yyh4760.ElemContainerState(yyj4760)
if yyj4760 < len(yyv4760) {
if r.TryDecodeAsNil() {
yyv4760[yyj4760] = Secret{}
} else {
yyv4763 := &yyv4760[yyj4760]
yyv4763.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4760 < len(yyv4760) {
yyv4760 = yyv4760[:yyj4760]
yyc4760 = true
} else if yyj4760 == 0 && yyv4760 == nil {
yyv4760 = []Secret{}
yyc4760 = true
}
}
yyh4760.End()
if yyc4760 {
*v = yyv4760
}
}
func (x codecSelfer1234) encSliceConfigMap(v []ConfigMap, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv4764 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4765 := &yyv4764
yy4765.CodecEncodeSelf(e)
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceConfigMap(v *[]ConfigMap, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4766 := *v
yyh4766, yyl4766 := z.DecSliceHelperStart()
var yyc4766 bool
if yyl4766 == 0 {
if yyv4766 == nil {
yyv4766 = []ConfigMap{}
yyc4766 = true
} else if len(yyv4766) != 0 {
yyv4766 = yyv4766[:0]
yyc4766 = true
}
} else if yyl4766 > 0 {
var yyrr4766, yyrl4766 int
var yyrt4766 bool
if yyl4766 > cap(yyv4766) {
yyrg4766 := len(yyv4766) > 0
yyv24766 := yyv4766
yyrl4766, yyrt4766 = z.DecInferLen(yyl4766, z.DecBasicHandle().MaxInitLen, 248)
if yyrt4766 {
if yyrl4766 <= cap(yyv4766) {
yyv4766 = yyv4766[:yyrl4766]
} else {
yyv4766 = make([]ConfigMap, yyrl4766)
}
} else {
yyv4766 = make([]ConfigMap, yyrl4766)
}
yyc4766 = true
yyrr4766 = len(yyv4766)
if yyrg4766 {
copy(yyv4766, yyv24766)
}
} else if yyl4766 != len(yyv4766) {
yyv4766 = yyv4766[:yyl4766]
yyc4766 = true
}
yyj4766 := 0
for ; yyj4766 < yyrr4766; yyj4766++ {
yyh4766.ElemContainerState(yyj4766)
if r.TryDecodeAsNil() {
yyv4766[yyj4766] = ConfigMap{}
} else {
yyv4767 := &yyv4766[yyj4766]
yyv4767.CodecDecodeSelf(d)
}
}
if yyrt4766 {
for ; yyj4766 < yyl4766; yyj4766++ {
yyv4766 = append(yyv4766, ConfigMap{})
yyh4766.ElemContainerState(yyj4766)
if r.TryDecodeAsNil() {
yyv4766[yyj4766] = ConfigMap{}
} else {
yyv4768 := &yyv4766[yyj4766]
yyv4768.CodecDecodeSelf(d)
}
}
}
} else {
yyj4766 := 0
for ; !r.CheckBreak(); yyj4766++ {
if yyj4766 >= len(yyv4766) {
yyv4766 = append(yyv4766, ConfigMap{}) // var yyz4766 ConfigMap
yyc4766 = true
}
yyh4766.ElemContainerState(yyj4766)
if yyj4766 < len(yyv4766) {
if r.TryDecodeAsNil() {
yyv4766[yyj4766] = ConfigMap{}
} else {
yyv4769 := &yyv4766[yyj4766]
yyv4769.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4766 < len(yyv4766) {
yyv4766 = yyv4766[:yyj4766]
yyc4766 = true
} else if yyj4766 == 0 && yyv4766 == nil {
yyv4766 = []ConfigMap{}
yyc4766 = true
}
}
yyh4766.End()
if yyc4766 {
*v = yyv4766
}
}
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 _, yyv4770 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4771 := &yyv4770
yy4771.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
yyv4772 := *v
yyh4772, yyl4772 := z.DecSliceHelperStart()
var yyc4772 bool
if yyl4772 == 0 {
if yyv4772 == nil {
yyv4772 = []ComponentCondition{}
yyc4772 = true
} else if len(yyv4772) != 0 {
yyv4772 = yyv4772[:0]
yyc4772 = true
}
} else if yyl4772 > 0 {
var yyrr4772, yyrl4772 int
var yyrt4772 bool
if yyl4772 > cap(yyv4772) {
yyrg4772 := len(yyv4772) > 0
yyv24772 := yyv4772
yyrl4772, yyrt4772 = z.DecInferLen(yyl4772, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4772 {
if yyrl4772 <= cap(yyv4772) {
yyv4772 = yyv4772[:yyrl4772]
} else {
yyv4772 = make([]ComponentCondition, yyrl4772)
}
} else {
yyv4772 = make([]ComponentCondition, yyrl4772)
}
yyc4772 = true
yyrr4772 = len(yyv4772)
if yyrg4772 {
copy(yyv4772, yyv24772)
}
} else if yyl4772 != len(yyv4772) {
yyv4772 = yyv4772[:yyl4772]
yyc4772 = true
}
yyj4772 := 0
for ; yyj4772 < yyrr4772; yyj4772++ {
yyh4772.ElemContainerState(yyj4772)
if r.TryDecodeAsNil() {
yyv4772[yyj4772] = ComponentCondition{}
} else {
yyv4773 := &yyv4772[yyj4772]
yyv4773.CodecDecodeSelf(d)
}
}
if yyrt4772 {
for ; yyj4772 < yyl4772; yyj4772++ {
yyv4772 = append(yyv4772, ComponentCondition{})
yyh4772.ElemContainerState(yyj4772)
if r.TryDecodeAsNil() {
yyv4772[yyj4772] = ComponentCondition{}
} else {
yyv4774 := &yyv4772[yyj4772]
yyv4774.CodecDecodeSelf(d)
}
}
}
} else {
yyj4772 := 0
for ; !r.CheckBreak(); yyj4772++ {
if yyj4772 >= len(yyv4772) {
yyv4772 = append(yyv4772, ComponentCondition{}) // var yyz4772 ComponentCondition
yyc4772 = true
}
yyh4772.ElemContainerState(yyj4772)
if yyj4772 < len(yyv4772) {
if r.TryDecodeAsNil() {
yyv4772[yyj4772] = ComponentCondition{}
} else {
yyv4775 := &yyv4772[yyj4772]
yyv4775.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4772 < len(yyv4772) {
yyv4772 = yyv4772[:yyj4772]
yyc4772 = true
} else if yyj4772 == 0 && yyv4772 == nil {
yyv4772 = []ComponentCondition{}
yyc4772 = true
}
}
yyh4772.End()
if yyc4772 {
*v = yyv4772
}
}
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 _, yyv4776 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4777 := &yyv4776
yy4777.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
yyv4778 := *v
yyh4778, yyl4778 := z.DecSliceHelperStart()
var yyc4778 bool
if yyl4778 == 0 {
if yyv4778 == nil {
yyv4778 = []ComponentStatus{}
yyc4778 = true
} else if len(yyv4778) != 0 {
yyv4778 = yyv4778[:0]
yyc4778 = true
}
} else if yyl4778 > 0 {
var yyrr4778, yyrl4778 int
var yyrt4778 bool
if yyl4778 > cap(yyv4778) {
yyrg4778 := len(yyv4778) > 0
yyv24778 := yyv4778
yyrl4778, yyrt4778 = z.DecInferLen(yyl4778, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4778 {
if yyrl4778 <= cap(yyv4778) {
yyv4778 = yyv4778[:yyrl4778]
} else {
yyv4778 = make([]ComponentStatus, yyrl4778)
}
} else {
yyv4778 = make([]ComponentStatus, yyrl4778)
}
yyc4778 = true
yyrr4778 = len(yyv4778)
if yyrg4778 {
copy(yyv4778, yyv24778)
}
} else if yyl4778 != len(yyv4778) {
yyv4778 = yyv4778[:yyl4778]
yyc4778 = true
}
yyj4778 := 0
for ; yyj4778 < yyrr4778; yyj4778++ {
yyh4778.ElemContainerState(yyj4778)
if r.TryDecodeAsNil() {
yyv4778[yyj4778] = ComponentStatus{}
} else {
yyv4779 := &yyv4778[yyj4778]
yyv4779.CodecDecodeSelf(d)
}
}
if yyrt4778 {
for ; yyj4778 < yyl4778; yyj4778++ {
yyv4778 = append(yyv4778, ComponentStatus{})
yyh4778.ElemContainerState(yyj4778)
if r.TryDecodeAsNil() {
yyv4778[yyj4778] = ComponentStatus{}
} else {
yyv4780 := &yyv4778[yyj4778]
yyv4780.CodecDecodeSelf(d)
}
}
}
} else {
yyj4778 := 0
for ; !r.CheckBreak(); yyj4778++ {
if yyj4778 >= len(yyv4778) {
yyv4778 = append(yyv4778, ComponentStatus{}) // var yyz4778 ComponentStatus
yyc4778 = true
}
yyh4778.ElemContainerState(yyj4778)
if yyj4778 < len(yyv4778) {
if r.TryDecodeAsNil() {
yyv4778[yyj4778] = ComponentStatus{}
} else {
yyv4781 := &yyv4778[yyj4778]
yyv4781.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4778 < len(yyv4778) {
yyv4778 = yyv4778[:yyj4778]
yyc4778 = true
} else if yyj4778 == 0 && yyv4778 == nil {
yyv4778 = []ComponentStatus{}
yyc4778 = true
}
}
yyh4778.End()
if yyc4778 {
*v = yyv4778
}
}