kubernetes/pkg/api/types.generated.go
2016-08-18 17:13:50 +02:00

61384 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 [3]bool
_, _, _ = yysep2353, yyq2353, yy2arr2353
const yyr2353 bool = false
yyq2353[1] = x.FullyLabeledReplicas != 0
yyq2353[2] = x.ObservedGeneration != 0
var yynn2353 int
if yyr2353 || yy2arr2353 {
r.EncodeArrayStart(3)
} 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.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2353[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2362 := z.EncBinary()
_ = yym2362
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
yym2363 := z.DecBinary()
_ = yym2363
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2364 := r.ContainerType()
if yyct2364 == codecSelferValueTypeMap1234 {
yyl2364 := r.ReadMapStart()
if yyl2364 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2364, d)
}
} else if yyct2364 == codecSelferValueTypeArray1234 {
yyl2364 := r.ReadArrayStart()
if yyl2364 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2364, 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 yys2365Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2365Slc
var yyhl2365 bool = l >= 0
for yyj2365 := 0; ; yyj2365++ {
if yyhl2365 {
if yyj2365 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2365Slc = r.DecodeBytes(yys2365Slc, true, true)
yys2365 := string(yys2365Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2365 {
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 "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys2365)
} // end switch yys2365
} // end for yyj2365
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 yyj2369 int
var yyb2369 bool
var yyhl2369 bool = l >= 0
yyj2369++
if yyhl2369 {
yyb2369 = yyj2369 > l
} else {
yyb2369 = r.CheckBreak()
}
if yyb2369 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int32(r.DecodeInt(32))
}
yyj2369++
if yyhl2369 {
yyb2369 = yyj2369 > l
} else {
yyb2369 = r.CheckBreak()
}
if yyb2369 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FullyLabeledReplicas = 0
} else {
x.FullyLabeledReplicas = int32(r.DecodeInt(32))
}
yyj2369++
if yyhl2369 {
yyb2369 = yyj2369 > l
} else {
yyb2369 = r.CheckBreak()
}
if yyb2369 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
for {
yyj2369++
if yyhl2369 {
yyb2369 = yyj2369 > l
} else {
yyb2369 = r.CheckBreak()
}
if yyb2369 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2369-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 {
yym2373 := z.EncBinary()
_ = yym2373
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2374 := !z.EncBinary()
yy2arr2374 := z.EncBasicHandle().StructToArray
var yyq2374 [5]bool
_, _, _ = yysep2374, yyq2374, yy2arr2374
const yyr2374 bool = false
yyq2374[0] = x.Kind != ""
yyq2374[1] = x.APIVersion != ""
yyq2374[2] = true
yyq2374[3] = true
yyq2374[4] = true
var yynn2374 int
if yyr2374 || yy2arr2374 {
r.EncodeArrayStart(5)
} else {
yynn2374 = 0
for _, b := range yyq2374 {
if b {
yynn2374++
}
}
r.EncodeMapStart(yynn2374)
yynn2374 = 0
}
if yyr2374 || yy2arr2374 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2374[0] {
yym2376 := z.EncBinary()
_ = yym2376
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2374[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2377 := z.EncBinary()
_ = yym2377
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2374 || yy2arr2374 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2374[1] {
yym2379 := z.EncBinary()
_ = yym2379
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2374[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2380 := z.EncBinary()
_ = yym2380
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2374 || yy2arr2374 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2374[2] {
yy2382 := &x.ObjectMeta
yy2382.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2374[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2383 := &x.ObjectMeta
yy2383.CodecEncodeSelf(e)
}
}
if yyr2374 || yy2arr2374 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2374[3] {
yy2385 := &x.Spec
yy2385.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2374[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2386 := &x.Spec
yy2386.CodecEncodeSelf(e)
}
}
if yyr2374 || yy2arr2374 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2374[4] {
yy2388 := &x.Status
yy2388.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2374[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2389 := &x.Status
yy2389.CodecEncodeSelf(e)
}
}
if yyr2374 || yy2arr2374 {
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
yym2390 := z.DecBinary()
_ = yym2390
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2391 := r.ContainerType()
if yyct2391 == codecSelferValueTypeMap1234 {
yyl2391 := r.ReadMapStart()
if yyl2391 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2391, d)
}
} else if yyct2391 == codecSelferValueTypeArray1234 {
yyl2391 := r.ReadArrayStart()
if yyl2391 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2391, 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 yys2392Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2392Slc
var yyhl2392 bool = l >= 0
for yyj2392 := 0; ; yyj2392++ {
if yyhl2392 {
if yyj2392 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2392Slc = r.DecodeBytes(yys2392Slc, true, true)
yys2392 := string(yys2392Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2392 {
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 {
yyv2395 := &x.ObjectMeta
yyv2395.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2396 := &x.Spec
yyv2396.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2397 := &x.Status
yyv2397.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2392)
} // end switch yys2392
} // end for yyj2392
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 yyj2398 int
var yyb2398 bool
var yyhl2398 bool = l >= 0
yyj2398++
if yyhl2398 {
yyb2398 = yyj2398 > l
} else {
yyb2398 = r.CheckBreak()
}
if yyb2398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2398++
if yyhl2398 {
yyb2398 = yyj2398 > l
} else {
yyb2398 = r.CheckBreak()
}
if yyb2398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2398++
if yyhl2398 {
yyb2398 = yyj2398 > l
} else {
yyb2398 = r.CheckBreak()
}
if yyb2398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2401 := &x.ObjectMeta
yyv2401.CodecDecodeSelf(d)
}
yyj2398++
if yyhl2398 {
yyb2398 = yyj2398 > l
} else {
yyb2398 = r.CheckBreak()
}
if yyb2398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv2402 := &x.Spec
yyv2402.CodecDecodeSelf(d)
}
yyj2398++
if yyhl2398 {
yyb2398 = yyj2398 > l
} else {
yyb2398 = r.CheckBreak()
}
if yyb2398 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv2403 := &x.Status
yyv2403.CodecDecodeSelf(d)
}
for {
yyj2398++
if yyhl2398 {
yyb2398 = yyj2398 > l
} else {
yyb2398 = r.CheckBreak()
}
if yyb2398 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2398-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 {
yym2404 := z.EncBinary()
_ = yym2404
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2405 := !z.EncBinary()
yy2arr2405 := z.EncBasicHandle().StructToArray
var yyq2405 [4]bool
_, _, _ = yysep2405, yyq2405, yy2arr2405
const yyr2405 bool = false
yyq2405[0] = x.Kind != ""
yyq2405[1] = x.APIVersion != ""
yyq2405[2] = true
var yynn2405 int
if yyr2405 || yy2arr2405 {
r.EncodeArrayStart(4)
} else {
yynn2405 = 1
for _, b := range yyq2405 {
if b {
yynn2405++
}
}
r.EncodeMapStart(yynn2405)
yynn2405 = 0
}
if yyr2405 || yy2arr2405 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2405[0] {
yym2407 := z.EncBinary()
_ = yym2407
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2405[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2408 := z.EncBinary()
_ = yym2408
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2405 || yy2arr2405 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2405[1] {
yym2410 := z.EncBinary()
_ = yym2410
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2405[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2411 := z.EncBinary()
_ = yym2411
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2405 || yy2arr2405 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2405[2] {
yy2413 := &x.ListMeta
yym2414 := z.EncBinary()
_ = yym2414
if false {
} else if z.HasExtensions() && z.EncExt(yy2413) {
} else {
z.EncFallback(yy2413)
}
} else {
r.EncodeNil()
}
} else {
if yyq2405[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2415 := &x.ListMeta
yym2416 := z.EncBinary()
_ = yym2416
if false {
} else if z.HasExtensions() && z.EncExt(yy2415) {
} else {
z.EncFallback(yy2415)
}
}
}
if yyr2405 || yy2arr2405 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2418 := z.EncBinary()
_ = yym2418
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 {
yym2419 := z.EncBinary()
_ = yym2419
if false {
} else {
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
}
}
}
if yyr2405 || yy2arr2405 {
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
yym2420 := z.DecBinary()
_ = yym2420
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2421 := r.ContainerType()
if yyct2421 == codecSelferValueTypeMap1234 {
yyl2421 := r.ReadMapStart()
if yyl2421 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2421, d)
}
} else if yyct2421 == codecSelferValueTypeArray1234 {
yyl2421 := r.ReadArrayStart()
if yyl2421 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2421, 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 yys2422Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2422Slc
var yyhl2422 bool = l >= 0
for yyj2422 := 0; ; yyj2422++ {
if yyhl2422 {
if yyj2422 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2422Slc = r.DecodeBytes(yys2422Slc, true, true)
yys2422 := string(yys2422Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2422 {
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 {
yyv2425 := &x.ListMeta
yym2426 := z.DecBinary()
_ = yym2426
if false {
} else if z.HasExtensions() && z.DecExt(yyv2425) {
} else {
z.DecFallback(yyv2425, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2427 := &x.Items
yym2428 := z.DecBinary()
_ = yym2428
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2427), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2422)
} // end switch yys2422
} // end for yyj2422
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 yyj2429 int
var yyb2429 bool
var yyhl2429 bool = l >= 0
yyj2429++
if yyhl2429 {
yyb2429 = yyj2429 > l
} else {
yyb2429 = r.CheckBreak()
}
if yyb2429 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2429++
if yyhl2429 {
yyb2429 = yyj2429 > l
} else {
yyb2429 = r.CheckBreak()
}
if yyb2429 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2429++
if yyhl2429 {
yyb2429 = yyj2429 > l
} else {
yyb2429 = r.CheckBreak()
}
if yyb2429 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2432 := &x.ListMeta
yym2433 := z.DecBinary()
_ = yym2433
if false {
} else if z.HasExtensions() && z.DecExt(yyv2432) {
} else {
z.DecFallback(yyv2432, false)
}
}
yyj2429++
if yyhl2429 {
yyb2429 = yyj2429 > l
} else {
yyb2429 = r.CheckBreak()
}
if yyb2429 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2434 := &x.Items
yym2435 := z.DecBinary()
_ = yym2435
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv2434), d)
}
}
for {
yyj2429++
if yyhl2429 {
yyb2429 = yyj2429 > l
} else {
yyb2429 = r.CheckBreak()
}
if yyb2429 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2429-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 {
yym2436 := z.EncBinary()
_ = yym2436
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2437 := !z.EncBinary()
yy2arr2437 := z.EncBasicHandle().StructToArray
var yyq2437 [4]bool
_, _, _ = yysep2437, yyq2437, yy2arr2437
const yyr2437 bool = false
yyq2437[0] = x.Kind != ""
yyq2437[1] = x.APIVersion != ""
yyq2437[2] = true
var yynn2437 int
if yyr2437 || yy2arr2437 {
r.EncodeArrayStart(4)
} else {
yynn2437 = 1
for _, b := range yyq2437 {
if b {
yynn2437++
}
}
r.EncodeMapStart(yynn2437)
yynn2437 = 0
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[0] {
yym2439 := z.EncBinary()
_ = yym2439
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2437[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2440 := z.EncBinary()
_ = yym2440
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[1] {
yym2442 := z.EncBinary()
_ = yym2442
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2437[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2443 := z.EncBinary()
_ = yym2443
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2437[2] {
yy2445 := &x.ListMeta
yym2446 := z.EncBinary()
_ = yym2446
if false {
} else if z.HasExtensions() && z.EncExt(yy2445) {
} else {
z.EncFallback(yy2445)
}
} else {
r.EncodeNil()
}
} else {
if yyq2437[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2447 := &x.ListMeta
yym2448 := z.EncBinary()
_ = yym2448
if false {
} else if z.HasExtensions() && z.EncExt(yy2447) {
} else {
z.EncFallback(yy2447)
}
}
}
if yyr2437 || yy2arr2437 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2450 := z.EncBinary()
_ = yym2450
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 {
yym2451 := z.EncBinary()
_ = yym2451
if false {
} else {
h.encSliceService(([]Service)(x.Items), e)
}
}
}
if yyr2437 || yy2arr2437 {
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
yym2452 := z.DecBinary()
_ = yym2452
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2453 := r.ContainerType()
if yyct2453 == codecSelferValueTypeMap1234 {
yyl2453 := r.ReadMapStart()
if yyl2453 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2453, d)
}
} else if yyct2453 == codecSelferValueTypeArray1234 {
yyl2453 := r.ReadArrayStart()
if yyl2453 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2453, 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 yys2454Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2454Slc
var yyhl2454 bool = l >= 0
for yyj2454 := 0; ; yyj2454++ {
if yyhl2454 {
if yyj2454 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2454Slc = r.DecodeBytes(yys2454Slc, true, true)
yys2454 := string(yys2454Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2454 {
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 {
yyv2457 := &x.ListMeta
yym2458 := z.DecBinary()
_ = yym2458
if false {
} else if z.HasExtensions() && z.DecExt(yyv2457) {
} else {
z.DecFallback(yyv2457, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2459 := &x.Items
yym2460 := z.DecBinary()
_ = yym2460
if false {
} else {
h.decSliceService((*[]Service)(yyv2459), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2454)
} // end switch yys2454
} // end for yyj2454
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 yyj2461 int
var yyb2461 bool
var yyhl2461 bool = l >= 0
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2464 := &x.ListMeta
yym2465 := z.DecBinary()
_ = yym2465
if false {
} else if z.HasExtensions() && z.DecExt(yyv2464) {
} else {
z.DecFallback(yyv2464, false)
}
}
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2466 := &x.Items
yym2467 := z.DecBinary()
_ = yym2467
if false {
} else {
h.decSliceService((*[]Service)(yyv2466), d)
}
}
for {
yyj2461++
if yyhl2461 {
yyb2461 = yyj2461 > l
} else {
yyb2461 = r.CheckBreak()
}
if yyb2461 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2461-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2468 := z.EncBinary()
_ = yym2468
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
yym2469 := z.DecBinary()
_ = yym2469
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
yym2470 := z.EncBinary()
_ = yym2470
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
yym2471 := z.DecBinary()
_ = yym2471
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 {
yym2472 := z.EncBinary()
_ = yym2472
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2473 := !z.EncBinary()
yy2arr2473 := z.EncBasicHandle().StructToArray
var yyq2473 [1]bool
_, _, _ = yysep2473, yyq2473, yy2arr2473
const yyr2473 bool = false
yyq2473[0] = true
var yynn2473 int
if yyr2473 || yy2arr2473 {
r.EncodeArrayStart(1)
} else {
yynn2473 = 0
for _, b := range yyq2473 {
if b {
yynn2473++
}
}
r.EncodeMapStart(yynn2473)
yynn2473 = 0
}
if yyr2473 || yy2arr2473 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2473[0] {
yy2475 := &x.LoadBalancer
yy2475.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2473[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2476 := &x.LoadBalancer
yy2476.CodecEncodeSelf(e)
}
}
if yyr2473 || yy2arr2473 {
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
yym2477 := z.DecBinary()
_ = yym2477
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2478 := r.ContainerType()
if yyct2478 == codecSelferValueTypeMap1234 {
yyl2478 := r.ReadMapStart()
if yyl2478 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2478, d)
}
} else if yyct2478 == codecSelferValueTypeArray1234 {
yyl2478 := r.ReadArrayStart()
if yyl2478 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2478, 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 yys2479Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2479Slc
var yyhl2479 bool = l >= 0
for yyj2479 := 0; ; yyj2479++ {
if yyhl2479 {
if yyj2479 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2479Slc = r.DecodeBytes(yys2479Slc, true, true)
yys2479 := string(yys2479Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2479 {
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2480 := &x.LoadBalancer
yyv2480.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2479)
} // end switch yys2479
} // end for yyj2479
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 yyj2481 int
var yyb2481 bool
var yyhl2481 bool = l >= 0
yyj2481++
if yyhl2481 {
yyb2481 = yyj2481 > l
} else {
yyb2481 = r.CheckBreak()
}
if yyb2481 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv2482 := &x.LoadBalancer
yyv2482.CodecDecodeSelf(d)
}
for {
yyj2481++
if yyhl2481 {
yyb2481 = yyj2481 > l
} else {
yyb2481 = r.CheckBreak()
}
if yyb2481 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2481-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 {
yym2483 := z.EncBinary()
_ = yym2483
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2484 := !z.EncBinary()
yy2arr2484 := z.EncBasicHandle().StructToArray
var yyq2484 [1]bool
_, _, _ = yysep2484, yyq2484, yy2arr2484
const yyr2484 bool = false
yyq2484[0] = len(x.Ingress) != 0
var yynn2484 int
if yyr2484 || yy2arr2484 {
r.EncodeArrayStart(1)
} else {
yynn2484 = 0
for _, b := range yyq2484 {
if b {
yynn2484++
}
}
r.EncodeMapStart(yynn2484)
yynn2484 = 0
}
if yyr2484 || yy2arr2484 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2484[0] {
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2486 := z.EncBinary()
_ = yym2486
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2484[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
yym2487 := z.EncBinary()
_ = yym2487
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
}
}
if yyr2484 || yy2arr2484 {
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
yym2488 := z.DecBinary()
_ = yym2488
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2489 := r.ContainerType()
if yyct2489 == codecSelferValueTypeMap1234 {
yyl2489 := r.ReadMapStart()
if yyl2489 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2489, d)
}
} else if yyct2489 == codecSelferValueTypeArray1234 {
yyl2489 := r.ReadArrayStart()
if yyl2489 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2489, 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 yys2490Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2490Slc
var yyhl2490 bool = l >= 0
for yyj2490 := 0; ; yyj2490++ {
if yyhl2490 {
if yyj2490 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2490Slc = r.DecodeBytes(yys2490Slc, true, true)
yys2490 := string(yys2490Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2490 {
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2491 := &x.Ingress
yym2492 := z.DecBinary()
_ = yym2492
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2491), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2490)
} // end switch yys2490
} // end for yyj2490
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 yyj2493 int
var yyb2493 bool
var yyhl2493 bool = l >= 0
yyj2493++
if yyhl2493 {
yyb2493 = yyj2493 > l
} else {
yyb2493 = r.CheckBreak()
}
if yyb2493 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv2494 := &x.Ingress
yym2495 := z.DecBinary()
_ = yym2495
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv2494), d)
}
}
for {
yyj2493++
if yyhl2493 {
yyb2493 = yyj2493 > l
} else {
yyb2493 = r.CheckBreak()
}
if yyb2493 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2493-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 {
yym2496 := z.EncBinary()
_ = yym2496
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2497 := !z.EncBinary()
yy2arr2497 := z.EncBasicHandle().StructToArray
var yyq2497 [2]bool
_, _, _ = yysep2497, yyq2497, yy2arr2497
const yyr2497 bool = false
yyq2497[0] = x.IP != ""
yyq2497[1] = x.Hostname != ""
var yynn2497 int
if yyr2497 || yy2arr2497 {
r.EncodeArrayStart(2)
} else {
yynn2497 = 0
for _, b := range yyq2497 {
if b {
yynn2497++
}
}
r.EncodeMapStart(yynn2497)
yynn2497 = 0
}
if yyr2497 || yy2arr2497 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2497[0] {
yym2499 := z.EncBinary()
_ = yym2499
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2497[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ip"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2500 := z.EncBinary()
_ = yym2500
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
}
if yyr2497 || yy2arr2497 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2497[1] {
yym2502 := z.EncBinary()
_ = yym2502
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2497[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2503 := z.EncBinary()
_ = yym2503
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2497 || yy2arr2497 {
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
yym2504 := z.DecBinary()
_ = yym2504
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2505 := r.ContainerType()
if yyct2505 == codecSelferValueTypeMap1234 {
yyl2505 := r.ReadMapStart()
if yyl2505 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2505, d)
}
} else if yyct2505 == codecSelferValueTypeArray1234 {
yyl2505 := r.ReadArrayStart()
if yyl2505 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2505, 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 yys2506Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2506Slc
var yyhl2506 bool = l >= 0
for yyj2506 := 0; ; yyj2506++ {
if yyhl2506 {
if yyj2506 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2506Slc = r.DecodeBytes(yys2506Slc, true, true)
yys2506 := string(yys2506Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2506 {
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, yys2506)
} // end switch yys2506
} // end for yyj2506
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 yyj2509 int
var yyb2509 bool
var yyhl2509 bool = l >= 0
yyj2509++
if yyhl2509 {
yyb2509 = yyj2509 > l
} else {
yyb2509 = r.CheckBreak()
}
if yyb2509 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2509++
if yyhl2509 {
yyb2509 = yyj2509 > l
} else {
yyb2509 = r.CheckBreak()
}
if yyb2509 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
for {
yyj2509++
if yyhl2509 {
yyb2509 = yyj2509 > l
} else {
yyb2509 = r.CheckBreak()
}
if yyb2509 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2509-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 {
yym2512 := z.EncBinary()
_ = yym2512
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2513 := !z.EncBinary()
yy2arr2513 := z.EncBasicHandle().StructToArray
var yyq2513 [8]bool
_, _, _ = yysep2513, yyq2513, yy2arr2513
const yyr2513 bool = false
yyq2513[0] = x.Type != ""
yyq2513[3] = x.ClusterIP != ""
yyq2513[4] = len(x.ExternalIPs) != 0
yyq2513[5] = x.LoadBalancerIP != ""
yyq2513[6] = x.SessionAffinity != ""
yyq2513[7] = len(x.LoadBalancerSourceRanges) != 0
var yynn2513 int
if yyr2513 || yy2arr2513 {
r.EncodeArrayStart(8)
} else {
yynn2513 = 2
for _, b := range yyq2513 {
if b {
yynn2513++
}
}
r.EncodeMapStart(yynn2513)
yynn2513 = 0
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2513[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2513[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2516 := z.EncBinary()
_ = yym2516
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 {
yym2517 := z.EncBinary()
_ = yym2517
if false {
} else {
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
}
}
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym2519 := z.EncBinary()
_ = yym2519
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 {
yym2520 := z.EncBinary()
_ = yym2520
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2513[3] {
yym2522 := z.EncBinary()
_ = yym2522
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2513[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2523 := z.EncBinary()
_ = yym2523
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
}
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2513[4] {
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2525 := z.EncBinary()
_ = yym2525
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2513[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym2526 := z.EncBinary()
_ = yym2526
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
}
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2513[5] {
yym2528 := z.EncBinary()
_ = yym2528
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2513[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2529 := z.EncBinary()
_ = yym2529
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
}
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2513[6] {
x.SessionAffinity.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2513[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.SessionAffinity.CodecEncodeSelf(e)
}
}
if yyr2513 || yy2arr2513 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2513[7] {
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2532 := z.EncBinary()
_ = yym2532
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2513[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerSourceRanges"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LoadBalancerSourceRanges == nil {
r.EncodeNil()
} else {
yym2533 := z.EncBinary()
_ = yym2533
if false {
} else {
z.F.EncSliceStringV(x.LoadBalancerSourceRanges, false, e)
}
}
}
}
if yyr2513 || yy2arr2513 {
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
yym2534 := z.DecBinary()
_ = yym2534
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2535 := r.ContainerType()
if yyct2535 == codecSelferValueTypeMap1234 {
yyl2535 := r.ReadMapStart()
if yyl2535 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2535, d)
}
} else if yyct2535 == codecSelferValueTypeArray1234 {
yyl2535 := r.ReadArrayStart()
if yyl2535 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2535, 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 yys2536Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2536Slc
var yyhl2536 bool = l >= 0
for yyj2536 := 0; ; yyj2536++ {
if yyhl2536 {
if yyj2536 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2536Slc = r.DecodeBytes(yys2536Slc, true, true)
yys2536 := string(yys2536Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2536 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2538 := &x.Ports
yym2539 := z.DecBinary()
_ = yym2539
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2538), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2540 := &x.Selector
yym2541 := z.DecBinary()
_ = yym2541
if false {
} else {
z.F.DecMapStringStringX(yyv2540, false, d)
}
}
case "clusterIP":
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
case "externalIPs":
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2543 := &x.ExternalIPs
yym2544 := z.DecBinary()
_ = yym2544
if false {
} else {
z.F.DecSliceStringX(yyv2543, 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 {
yyv2547 := &x.LoadBalancerSourceRanges
yym2548 := z.DecBinary()
_ = yym2548
if false {
} else {
z.F.DecSliceStringX(yyv2547, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2536)
} // end switch yys2536
} // end for yyj2536
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 yyj2549 int
var yyb2549 bool
var yyhl2549 bool = l >= 0
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2551 := &x.Ports
yym2552 := z.DecBinary()
_ = yym2552
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv2551), d)
}
}
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv2553 := &x.Selector
yym2554 := z.DecBinary()
_ = yym2554
if false {
} else {
z.F.DecMapStringStringX(yyv2553, false, d)
}
}
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv2556 := &x.ExternalIPs
yym2557 := z.DecBinary()
_ = yym2557
if false {
} else {
z.F.DecSliceStringX(yyv2556, false, d)
}
}
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerSourceRanges = nil
} else {
yyv2560 := &x.LoadBalancerSourceRanges
yym2561 := z.DecBinary()
_ = yym2561
if false {
} else {
z.F.DecSliceStringX(yyv2560, false, d)
}
}
for {
yyj2549++
if yyhl2549 {
yyb2549 = yyj2549 > l
} else {
yyb2549 = r.CheckBreak()
}
if yyb2549 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2549-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 {
yym2562 := z.EncBinary()
_ = yym2562
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2563 := !z.EncBinary()
yy2arr2563 := z.EncBasicHandle().StructToArray
var yyq2563 [5]bool
_, _, _ = yysep2563, yyq2563, yy2arr2563
const yyr2563 bool = false
var yynn2563 int
if yyr2563 || yy2arr2563 {
r.EncodeArrayStart(5)
} else {
yynn2563 = 5
for _, b := range yyq2563 {
if b {
yynn2563++
}
}
r.EncodeMapStart(yynn2563)
yynn2563 = 0
}
if yyr2563 || yy2arr2563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2565 := z.EncBinary()
_ = yym2565
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)
yym2566 := z.EncBinary()
_ = yym2566
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2563 || yy2arr2563 {
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 yyr2563 || yy2arr2563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2569 := z.EncBinary()
_ = yym2569
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2570 := z.EncBinary()
_ = yym2570
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2563 || yy2arr2563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2572 := &x.TargetPort
yym2573 := z.EncBinary()
_ = yym2573
if false {
} else if z.HasExtensions() && z.EncExt(yy2572) {
} else if !yym2573 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2572)
} else {
z.EncFallback(yy2572)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2574 := &x.TargetPort
yym2575 := z.EncBinary()
_ = yym2575
if false {
} else if z.HasExtensions() && z.EncExt(yy2574) {
} else if !yym2575 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2574)
} else {
z.EncFallback(yy2574)
}
}
if yyr2563 || yy2arr2563 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2577 := z.EncBinary()
_ = yym2577
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2578 := z.EncBinary()
_ = yym2578
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
}
if yyr2563 || yy2arr2563 {
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
yym2579 := z.DecBinary()
_ = yym2579
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2580 := r.ContainerType()
if yyct2580 == codecSelferValueTypeMap1234 {
yyl2580 := r.ReadMapStart()
if yyl2580 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2580, d)
}
} else if yyct2580 == codecSelferValueTypeArray1234 {
yyl2580 := r.ReadArrayStart()
if yyl2580 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2580, 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 yys2581Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2581Slc
var yyhl2581 bool = l >= 0
for yyj2581 := 0; ; yyj2581++ {
if yyhl2581 {
if yyj2581 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2581Slc = r.DecodeBytes(yys2581Slc, true, true)
yys2581 := string(yys2581Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2581 {
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 {
yyv2585 := &x.TargetPort
yym2586 := z.DecBinary()
_ = yym2586
if false {
} else if z.HasExtensions() && z.DecExt(yyv2585) {
} else if !yym2586 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2585)
} else {
z.DecFallback(yyv2585, false)
}
}
case "nodePort":
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2581)
} // end switch yys2581
} // end for yyj2581
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 yyj2588 int
var yyb2588 bool
var yyhl2588 bool = l >= 0
yyj2588++
if yyhl2588 {
yyb2588 = yyj2588 > l
} else {
yyb2588 = r.CheckBreak()
}
if yyb2588 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2588++
if yyhl2588 {
yyb2588 = yyj2588 > l
} else {
yyb2588 = r.CheckBreak()
}
if yyb2588 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj2588++
if yyhl2588 {
yyb2588 = yyj2588 > l
} else {
yyb2588 = r.CheckBreak()
}
if yyb2588 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2588++
if yyhl2588 {
yyb2588 = yyj2588 > l
} else {
yyb2588 = r.CheckBreak()
}
if yyb2588 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPort = pkg4_intstr.IntOrString{}
} else {
yyv2592 := &x.TargetPort
yym2593 := z.DecBinary()
_ = yym2593
if false {
} else if z.HasExtensions() && z.DecExt(yyv2592) {
} else if !yym2593 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2592)
} else {
z.DecFallback(yyv2592, false)
}
}
yyj2588++
if yyhl2588 {
yyb2588 = yyj2588 > l
} else {
yyb2588 = r.CheckBreak()
}
if yyb2588 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int32(r.DecodeInt(32))
}
for {
yyj2588++
if yyhl2588 {
yyb2588 = yyj2588 > l
} else {
yyb2588 = r.CheckBreak()
}
if yyb2588 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2588-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 {
yym2595 := z.EncBinary()
_ = yym2595
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2596 := !z.EncBinary()
yy2arr2596 := z.EncBasicHandle().StructToArray
var yyq2596 [5]bool
_, _, _ = yysep2596, yyq2596, yy2arr2596
const yyr2596 bool = false
yyq2596[0] = x.Kind != ""
yyq2596[1] = x.APIVersion != ""
yyq2596[2] = true
yyq2596[3] = true
yyq2596[4] = true
var yynn2596 int
if yyr2596 || yy2arr2596 {
r.EncodeArrayStart(5)
} else {
yynn2596 = 0
for _, b := range yyq2596 {
if b {
yynn2596++
}
}
r.EncodeMapStart(yynn2596)
yynn2596 = 0
}
if yyr2596 || yy2arr2596 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2596[0] {
yym2598 := z.EncBinary()
_ = yym2598
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2596[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2599 := z.EncBinary()
_ = yym2599
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2596 || yy2arr2596 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2596[1] {
yym2601 := z.EncBinary()
_ = yym2601
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2596[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2602 := z.EncBinary()
_ = yym2602
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2596 || yy2arr2596 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2596[2] {
yy2604 := &x.ObjectMeta
yy2604.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2596[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2605 := &x.ObjectMeta
yy2605.CodecEncodeSelf(e)
}
}
if yyr2596 || yy2arr2596 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2596[3] {
yy2607 := &x.Spec
yy2607.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2596[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2608 := &x.Spec
yy2608.CodecEncodeSelf(e)
}
}
if yyr2596 || yy2arr2596 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2596[4] {
yy2610 := &x.Status
yy2610.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2596[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2611 := &x.Status
yy2611.CodecEncodeSelf(e)
}
}
if yyr2596 || yy2arr2596 {
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
yym2612 := z.DecBinary()
_ = yym2612
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2613 := r.ContainerType()
if yyct2613 == codecSelferValueTypeMap1234 {
yyl2613 := r.ReadMapStart()
if yyl2613 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2613, d)
}
} else if yyct2613 == codecSelferValueTypeArray1234 {
yyl2613 := r.ReadArrayStart()
if yyl2613 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2613, 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 yys2614Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2614Slc
var yyhl2614 bool = l >= 0
for yyj2614 := 0; ; yyj2614++ {
if yyhl2614 {
if yyj2614 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2614Slc = r.DecodeBytes(yys2614Slc, true, true)
yys2614 := string(yys2614Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2614 {
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 {
yyv2617 := &x.ObjectMeta
yyv2617.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2618 := &x.Spec
yyv2618.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2619 := &x.Status
yyv2619.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2614)
} // end switch yys2614
} // end for yyj2614
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 yyj2620 int
var yyb2620 bool
var yyhl2620 bool = l >= 0
yyj2620++
if yyhl2620 {
yyb2620 = yyj2620 > l
} else {
yyb2620 = r.CheckBreak()
}
if yyb2620 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2620++
if yyhl2620 {
yyb2620 = yyj2620 > l
} else {
yyb2620 = r.CheckBreak()
}
if yyb2620 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2620++
if yyhl2620 {
yyb2620 = yyj2620 > l
} else {
yyb2620 = r.CheckBreak()
}
if yyb2620 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2623 := &x.ObjectMeta
yyv2623.CodecDecodeSelf(d)
}
yyj2620++
if yyhl2620 {
yyb2620 = yyj2620 > l
} else {
yyb2620 = r.CheckBreak()
}
if yyb2620 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2624 := &x.Spec
yyv2624.CodecDecodeSelf(d)
}
yyj2620++
if yyhl2620 {
yyb2620 = yyj2620 > l
} else {
yyb2620 = r.CheckBreak()
}
if yyb2620 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2625 := &x.Status
yyv2625.CodecDecodeSelf(d)
}
for {
yyj2620++
if yyhl2620 {
yyb2620 = yyj2620 > l
} else {
yyb2620 = r.CheckBreak()
}
if yyb2620 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2620-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 {
yym2626 := z.EncBinary()
_ = yym2626
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2627 := !z.EncBinary()
yy2arr2627 := z.EncBasicHandle().StructToArray
var yyq2627 [5]bool
_, _, _ = yysep2627, yyq2627, yy2arr2627
const yyr2627 bool = false
yyq2627[0] = x.Kind != ""
yyq2627[1] = x.APIVersion != ""
yyq2627[2] = true
yyq2627[4] = len(x.ImagePullSecrets) != 0
var yynn2627 int
if yyr2627 || yy2arr2627 {
r.EncodeArrayStart(5)
} else {
yynn2627 = 1
for _, b := range yyq2627 {
if b {
yynn2627++
}
}
r.EncodeMapStart(yynn2627)
yynn2627 = 0
}
if yyr2627 || yy2arr2627 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2627[0] {
yym2629 := z.EncBinary()
_ = yym2629
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2627[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2630 := z.EncBinary()
_ = yym2630
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2627 || yy2arr2627 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2627[1] {
yym2632 := z.EncBinary()
_ = yym2632
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2627[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2633 := z.EncBinary()
_ = yym2633
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2627 || yy2arr2627 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2627[2] {
yy2635 := &x.ObjectMeta
yy2635.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2627[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2636 := &x.ObjectMeta
yy2636.CodecEncodeSelf(e)
}
}
if yyr2627 || yy2arr2627 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Secrets == nil {
r.EncodeNil()
} else {
yym2638 := z.EncBinary()
_ = yym2638
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 {
yym2639 := z.EncBinary()
_ = yym2639
if false {
} else {
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
}
}
}
if yyr2627 || yy2arr2627 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2627[4] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2641 := z.EncBinary()
_ = yym2641
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2627[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2642 := z.EncBinary()
_ = yym2642
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2627 || yy2arr2627 {
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
yym2643 := z.DecBinary()
_ = yym2643
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2644 := r.ContainerType()
if yyct2644 == codecSelferValueTypeMap1234 {
yyl2644 := r.ReadMapStart()
if yyl2644 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2644, d)
}
} else if yyct2644 == codecSelferValueTypeArray1234 {
yyl2644 := r.ReadArrayStart()
if yyl2644 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2644, 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 yys2645Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2645Slc
var yyhl2645 bool = l >= 0
for yyj2645 := 0; ; yyj2645++ {
if yyhl2645 {
if yyj2645 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2645Slc = r.DecodeBytes(yys2645Slc, true, true)
yys2645 := string(yys2645Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2645 {
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 {
yyv2648 := &x.ObjectMeta
yyv2648.CodecDecodeSelf(d)
}
case "secrets":
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2649 := &x.Secrets
yym2650 := z.DecBinary()
_ = yym2650
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2649), d)
}
}
case "imagePullSecrets":
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2651 := &x.ImagePullSecrets
yym2652 := z.DecBinary()
_ = yym2652
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2651), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2645)
} // end switch yys2645
} // end for yyj2645
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 yyj2653 int
var yyb2653 bool
var yyhl2653 bool = l >= 0
yyj2653++
if yyhl2653 {
yyb2653 = yyj2653 > l
} else {
yyb2653 = r.CheckBreak()
}
if yyb2653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2653++
if yyhl2653 {
yyb2653 = yyj2653 > l
} else {
yyb2653 = r.CheckBreak()
}
if yyb2653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2653++
if yyhl2653 {
yyb2653 = yyj2653 > l
} else {
yyb2653 = r.CheckBreak()
}
if yyb2653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2656 := &x.ObjectMeta
yyv2656.CodecDecodeSelf(d)
}
yyj2653++
if yyhl2653 {
yyb2653 = yyj2653 > l
} else {
yyb2653 = r.CheckBreak()
}
if yyb2653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2657 := &x.Secrets
yym2658 := z.DecBinary()
_ = yym2658
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2657), d)
}
}
yyj2653++
if yyhl2653 {
yyb2653 = yyj2653 > l
} else {
yyb2653 = r.CheckBreak()
}
if yyb2653 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2659 := &x.ImagePullSecrets
yym2660 := z.DecBinary()
_ = yym2660
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2659), d)
}
}
for {
yyj2653++
if yyhl2653 {
yyb2653 = yyj2653 > l
} else {
yyb2653 = r.CheckBreak()
}
if yyb2653 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2653-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 {
yym2661 := z.EncBinary()
_ = yym2661
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2662 := !z.EncBinary()
yy2arr2662 := z.EncBasicHandle().StructToArray
var yyq2662 [4]bool
_, _, _ = yysep2662, yyq2662, yy2arr2662
const yyr2662 bool = false
yyq2662[0] = x.Kind != ""
yyq2662[1] = x.APIVersion != ""
yyq2662[2] = true
var yynn2662 int
if yyr2662 || yy2arr2662 {
r.EncodeArrayStart(4)
} else {
yynn2662 = 1
for _, b := range yyq2662 {
if b {
yynn2662++
}
}
r.EncodeMapStart(yynn2662)
yynn2662 = 0
}
if yyr2662 || yy2arr2662 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2662[0] {
yym2664 := z.EncBinary()
_ = yym2664
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2662[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2665 := z.EncBinary()
_ = yym2665
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2662 || yy2arr2662 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2662[1] {
yym2667 := z.EncBinary()
_ = yym2667
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2662[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2668 := z.EncBinary()
_ = yym2668
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2662 || yy2arr2662 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2662[2] {
yy2670 := &x.ListMeta
yym2671 := z.EncBinary()
_ = yym2671
if false {
} else if z.HasExtensions() && z.EncExt(yy2670) {
} else {
z.EncFallback(yy2670)
}
} else {
r.EncodeNil()
}
} else {
if yyq2662[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2672 := &x.ListMeta
yym2673 := z.EncBinary()
_ = yym2673
if false {
} else if z.HasExtensions() && z.EncExt(yy2672) {
} else {
z.EncFallback(yy2672)
}
}
}
if yyr2662 || yy2arr2662 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2675 := z.EncBinary()
_ = yym2675
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 {
yym2676 := z.EncBinary()
_ = yym2676
if false {
} else {
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
}
}
}
if yyr2662 || yy2arr2662 {
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
yym2677 := z.DecBinary()
_ = yym2677
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2678 := r.ContainerType()
if yyct2678 == codecSelferValueTypeMap1234 {
yyl2678 := r.ReadMapStart()
if yyl2678 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2678, d)
}
} else if yyct2678 == codecSelferValueTypeArray1234 {
yyl2678 := r.ReadArrayStart()
if yyl2678 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2678, 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 yys2679Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2679Slc
var yyhl2679 bool = l >= 0
for yyj2679 := 0; ; yyj2679++ {
if yyhl2679 {
if yyj2679 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2679Slc = r.DecodeBytes(yys2679Slc, true, true)
yys2679 := string(yys2679Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2679 {
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 {
yyv2682 := &x.ListMeta
yym2683 := z.DecBinary()
_ = yym2683
if false {
} else if z.HasExtensions() && z.DecExt(yyv2682) {
} else {
z.DecFallback(yyv2682, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2684 := &x.Items
yym2685 := z.DecBinary()
_ = yym2685
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2684), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2679)
} // end switch yys2679
} // end for yyj2679
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 yyj2686 int
var yyb2686 bool
var yyhl2686 bool = l >= 0
yyj2686++
if yyhl2686 {
yyb2686 = yyj2686 > l
} else {
yyb2686 = r.CheckBreak()
}
if yyb2686 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2686++
if yyhl2686 {
yyb2686 = yyj2686 > l
} else {
yyb2686 = r.CheckBreak()
}
if yyb2686 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2686++
if yyhl2686 {
yyb2686 = yyj2686 > l
} else {
yyb2686 = r.CheckBreak()
}
if yyb2686 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2689 := &x.ListMeta
yym2690 := z.DecBinary()
_ = yym2690
if false {
} else if z.HasExtensions() && z.DecExt(yyv2689) {
} else {
z.DecFallback(yyv2689, false)
}
}
yyj2686++
if yyhl2686 {
yyb2686 = yyj2686 > l
} else {
yyb2686 = r.CheckBreak()
}
if yyb2686 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2691 := &x.Items
yym2692 := z.DecBinary()
_ = yym2692
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2691), d)
}
}
for {
yyj2686++
if yyhl2686 {
yyb2686 = yyj2686 > l
} else {
yyb2686 = r.CheckBreak()
}
if yyb2686 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2686-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 {
yym2693 := z.EncBinary()
_ = yym2693
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2694 := !z.EncBinary()
yy2arr2694 := z.EncBasicHandle().StructToArray
var yyq2694 [4]bool
_, _, _ = yysep2694, yyq2694, yy2arr2694
const yyr2694 bool = false
yyq2694[0] = x.Kind != ""
yyq2694[1] = x.APIVersion != ""
yyq2694[2] = true
var yynn2694 int
if yyr2694 || yy2arr2694 {
r.EncodeArrayStart(4)
} else {
yynn2694 = 1
for _, b := range yyq2694 {
if b {
yynn2694++
}
}
r.EncodeMapStart(yynn2694)
yynn2694 = 0
}
if yyr2694 || yy2arr2694 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2694[0] {
yym2696 := z.EncBinary()
_ = yym2696
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2694[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2697 := z.EncBinary()
_ = yym2697
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2694 || yy2arr2694 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2694[1] {
yym2699 := z.EncBinary()
_ = yym2699
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2694[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2700 := z.EncBinary()
_ = yym2700
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2694 || yy2arr2694 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2694[2] {
yy2702 := &x.ObjectMeta
yy2702.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2694[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2703 := &x.ObjectMeta
yy2703.CodecEncodeSelf(e)
}
}
if yyr2694 || yy2arr2694 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Subsets == nil {
r.EncodeNil()
} else {
yym2705 := z.EncBinary()
_ = yym2705
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 {
yym2706 := z.EncBinary()
_ = yym2706
if false {
} else {
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
}
}
}
if yyr2694 || yy2arr2694 {
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
yym2707 := z.DecBinary()
_ = yym2707
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2708 := r.ContainerType()
if yyct2708 == codecSelferValueTypeMap1234 {
yyl2708 := r.ReadMapStart()
if yyl2708 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2708, d)
}
} else if yyct2708 == codecSelferValueTypeArray1234 {
yyl2708 := r.ReadArrayStart()
if yyl2708 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2708, 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 yys2709Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2709Slc
var yyhl2709 bool = l >= 0
for yyj2709 := 0; ; yyj2709++ {
if yyhl2709 {
if yyj2709 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2709Slc = r.DecodeBytes(yys2709Slc, true, true)
yys2709 := string(yys2709Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2709 {
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 {
yyv2712 := &x.ObjectMeta
yyv2712.CodecDecodeSelf(d)
}
case "Subsets":
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2713 := &x.Subsets
yym2714 := z.DecBinary()
_ = yym2714
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2713), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2709)
} // end switch yys2709
} // end for yyj2709
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 yyj2715 int
var yyb2715 bool
var yyhl2715 bool = l >= 0
yyj2715++
if yyhl2715 {
yyb2715 = yyj2715 > l
} else {
yyb2715 = r.CheckBreak()
}
if yyb2715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2715++
if yyhl2715 {
yyb2715 = yyj2715 > l
} else {
yyb2715 = r.CheckBreak()
}
if yyb2715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2715++
if yyhl2715 {
yyb2715 = yyj2715 > l
} else {
yyb2715 = r.CheckBreak()
}
if yyb2715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2718 := &x.ObjectMeta
yyv2718.CodecDecodeSelf(d)
}
yyj2715++
if yyhl2715 {
yyb2715 = yyj2715 > l
} else {
yyb2715 = r.CheckBreak()
}
if yyb2715 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2719 := &x.Subsets
yym2720 := z.DecBinary()
_ = yym2720
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2719), d)
}
}
for {
yyj2715++
if yyhl2715 {
yyb2715 = yyj2715 > l
} else {
yyb2715 = r.CheckBreak()
}
if yyb2715 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2715-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 {
yym2721 := z.EncBinary()
_ = yym2721
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2722 := !z.EncBinary()
yy2arr2722 := z.EncBasicHandle().StructToArray
var yyq2722 [3]bool
_, _, _ = yysep2722, yyq2722, yy2arr2722
const yyr2722 bool = false
var yynn2722 int
if yyr2722 || yy2arr2722 {
r.EncodeArrayStart(3)
} else {
yynn2722 = 3
for _, b := range yyq2722 {
if b {
yynn2722++
}
}
r.EncodeMapStart(yynn2722)
yynn2722 = 0
}
if yyr2722 || yy2arr2722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2724 := z.EncBinary()
_ = yym2724
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 {
yym2725 := z.EncBinary()
_ = yym2725
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
}
}
}
if yyr2722 || yy2arr2722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NotReadyAddresses == nil {
r.EncodeNil()
} else {
yym2727 := z.EncBinary()
_ = yym2727
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 {
yym2728 := z.EncBinary()
_ = yym2728
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
}
}
}
if yyr2722 || yy2arr2722 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2730 := z.EncBinary()
_ = yym2730
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 {
yym2731 := z.EncBinary()
_ = yym2731
if false {
} else {
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
}
}
}
if yyr2722 || yy2arr2722 {
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
yym2732 := z.DecBinary()
_ = yym2732
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2733 := r.ContainerType()
if yyct2733 == codecSelferValueTypeMap1234 {
yyl2733 := r.ReadMapStart()
if yyl2733 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2733, d)
}
} else if yyct2733 == codecSelferValueTypeArray1234 {
yyl2733 := r.ReadArrayStart()
if yyl2733 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2733, 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 yys2734Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2734Slc
var yyhl2734 bool = l >= 0
for yyj2734 := 0; ; yyj2734++ {
if yyhl2734 {
if yyj2734 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2734Slc = r.DecodeBytes(yys2734Slc, true, true)
yys2734 := string(yys2734Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2734 {
case "Addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2735 := &x.Addresses
yym2736 := z.DecBinary()
_ = yym2736
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2735), d)
}
}
case "NotReadyAddresses":
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2737 := &x.NotReadyAddresses
yym2738 := z.DecBinary()
_ = yym2738
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2737), d)
}
}
case "Ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2739 := &x.Ports
yym2740 := z.DecBinary()
_ = yym2740
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2739), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2734)
} // end switch yys2734
} // end for yyj2734
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 yyj2741 int
var yyb2741 bool
var yyhl2741 bool = l >= 0
yyj2741++
if yyhl2741 {
yyb2741 = yyj2741 > l
} else {
yyb2741 = r.CheckBreak()
}
if yyb2741 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2742 := &x.Addresses
yym2743 := z.DecBinary()
_ = yym2743
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2742), d)
}
}
yyj2741++
if yyhl2741 {
yyb2741 = yyj2741 > l
} else {
yyb2741 = r.CheckBreak()
}
if yyb2741 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2744 := &x.NotReadyAddresses
yym2745 := z.DecBinary()
_ = yym2745
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2744), d)
}
}
yyj2741++
if yyhl2741 {
yyb2741 = yyj2741 > l
} else {
yyb2741 = r.CheckBreak()
}
if yyb2741 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2746 := &x.Ports
yym2747 := z.DecBinary()
_ = yym2747
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2746), d)
}
}
for {
yyj2741++
if yyhl2741 {
yyb2741 = yyj2741 > l
} else {
yyb2741 = r.CheckBreak()
}
if yyb2741 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2741-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 {
yym2748 := z.EncBinary()
_ = yym2748
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2749 := !z.EncBinary()
yy2arr2749 := z.EncBasicHandle().StructToArray
var yyq2749 [4]bool
_, _, _ = yysep2749, yyq2749, yy2arr2749
const yyr2749 bool = false
yyq2749[1] = x.Hostname != ""
yyq2749[2] = x.NodeName != nil
var yynn2749 int
if yyr2749 || yy2arr2749 {
r.EncodeArrayStart(4)
} else {
yynn2749 = 2
for _, b := range yyq2749 {
if b {
yynn2749++
}
}
r.EncodeMapStart(yynn2749)
yynn2749 = 0
}
if yyr2749 || yy2arr2749 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2751 := z.EncBinary()
_ = yym2751
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)
yym2752 := z.EncBinary()
_ = yym2752
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
if yyr2749 || yy2arr2749 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2749[1] {
yym2754 := z.EncBinary()
_ = yym2754
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2749[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2755 := z.EncBinary()
_ = yym2755
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr2749 || yy2arr2749 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2749[2] {
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2757 := *x.NodeName
yym2758 := z.EncBinary()
_ = yym2758
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2757))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2749[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeName == nil {
r.EncodeNil()
} else {
yy2759 := *x.NodeName
yym2760 := z.EncBinary()
_ = yym2760
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy2759))
}
}
}
}
if yyr2749 || yy2arr2749 {
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 yyr2749 || yy2arr2749 {
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
yym2762 := z.DecBinary()
_ = yym2762
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2763 := r.ContainerType()
if yyct2763 == codecSelferValueTypeMap1234 {
yyl2763 := r.ReadMapStart()
if yyl2763 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2763, d)
}
} else if yyct2763 == codecSelferValueTypeArray1234 {
yyl2763 := r.ReadArrayStart()
if yyl2763 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2763, 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 yys2764Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2764Slc
var yyhl2764 bool = l >= 0
for yyj2764 := 0; ; yyj2764++ {
if yyhl2764 {
if yyj2764 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2764Slc = r.DecodeBytes(yys2764Slc, true, true)
yys2764 := string(yys2764Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2764 {
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)
}
yym2768 := z.DecBinary()
_ = yym2768
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, yys2764)
} // end switch yys2764
} // end for yyj2764
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 yyj2770 int
var yyb2770 bool
var yyhl2770 bool = l >= 0
yyj2770++
if yyhl2770 {
yyb2770 = yyj2770 > l
} else {
yyb2770 = r.CheckBreak()
}
if yyb2770 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2770++
if yyhl2770 {
yyb2770 = yyj2770 > l
} else {
yyb2770 = r.CheckBreak()
}
if yyb2770 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
yyj2770++
if yyhl2770 {
yyb2770 = yyj2770 > l
} else {
yyb2770 = r.CheckBreak()
}
if yyb2770 {
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)
}
yym2774 := z.DecBinary()
_ = yym2774
if false {
} else {
*((*string)(x.NodeName)) = r.DecodeString()
}
}
yyj2770++
if yyhl2770 {
yyb2770 = yyj2770 > l
} else {
yyb2770 = r.CheckBreak()
}
if yyb2770 {
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 {
yyj2770++
if yyhl2770 {
yyb2770 = yyj2770 > l
} else {
yyb2770 = r.CheckBreak()
}
if yyb2770 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2770-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 {
yym2776 := z.EncBinary()
_ = yym2776
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2777 := !z.EncBinary()
yy2arr2777 := z.EncBasicHandle().StructToArray
var yyq2777 [3]bool
_, _, _ = yysep2777, yyq2777, yy2arr2777
const yyr2777 bool = false
var yynn2777 int
if yyr2777 || yy2arr2777 {
r.EncodeArrayStart(3)
} else {
yynn2777 = 3
for _, b := range yyq2777 {
if b {
yynn2777++
}
}
r.EncodeMapStart(yynn2777)
yynn2777 = 0
}
if yyr2777 || yy2arr2777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2779 := z.EncBinary()
_ = yym2779
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)
yym2780 := z.EncBinary()
_ = yym2780
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2777 || yy2arr2777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2782 := z.EncBinary()
_ = yym2782
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2783 := z.EncBinary()
_ = yym2783
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2777 || yy2arr2777 {
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 yyr2777 || yy2arr2777 {
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
yym2785 := z.DecBinary()
_ = yym2785
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2786 := r.ContainerType()
if yyct2786 == codecSelferValueTypeMap1234 {
yyl2786 := r.ReadMapStart()
if yyl2786 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2786, d)
}
} else if yyct2786 == codecSelferValueTypeArray1234 {
yyl2786 := r.ReadArrayStart()
if yyl2786 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2786, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *EndpointPort) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2787Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2787Slc
var yyhl2787 bool = l >= 0
for yyj2787 := 0; ; yyj2787++ {
if yyhl2787 {
if yyj2787 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2787Slc = r.DecodeBytes(yys2787Slc, true, true)
yys2787 := string(yys2787Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2787 {
case "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, yys2787)
} // end switch yys2787
} // end for yyj2787
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 yyj2791 int
var yyb2791 bool
var yyhl2791 bool = l >= 0
yyj2791++
if yyhl2791 {
yyb2791 = yyj2791 > l
} else {
yyb2791 = r.CheckBreak()
}
if yyb2791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2791++
if yyhl2791 {
yyb2791 = yyj2791 > l
} else {
yyb2791 = r.CheckBreak()
}
if yyb2791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
yyj2791++
if yyhl2791 {
yyb2791 = yyj2791 > l
} else {
yyb2791 = r.CheckBreak()
}
if yyb2791 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
for {
yyj2791++
if yyhl2791 {
yyb2791 = yyj2791 > l
} else {
yyb2791 = r.CheckBreak()
}
if yyb2791 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2791-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 {
yym2795 := z.EncBinary()
_ = yym2795
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2796 := !z.EncBinary()
yy2arr2796 := z.EncBasicHandle().StructToArray
var yyq2796 [4]bool
_, _, _ = yysep2796, yyq2796, yy2arr2796
const yyr2796 bool = false
yyq2796[0] = x.Kind != ""
yyq2796[1] = x.APIVersion != ""
yyq2796[2] = true
var yynn2796 int
if yyr2796 || yy2arr2796 {
r.EncodeArrayStart(4)
} else {
yynn2796 = 1
for _, b := range yyq2796 {
if b {
yynn2796++
}
}
r.EncodeMapStart(yynn2796)
yynn2796 = 0
}
if yyr2796 || yy2arr2796 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2796[0] {
yym2798 := z.EncBinary()
_ = yym2798
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2796[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2799 := z.EncBinary()
_ = yym2799
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2796 || yy2arr2796 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2796[1] {
yym2801 := z.EncBinary()
_ = yym2801
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2796[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2802 := z.EncBinary()
_ = yym2802
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2796 || yy2arr2796 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2796[2] {
yy2804 := &x.ListMeta
yym2805 := z.EncBinary()
_ = yym2805
if false {
} else if z.HasExtensions() && z.EncExt(yy2804) {
} else {
z.EncFallback(yy2804)
}
} else {
r.EncodeNil()
}
} else {
if yyq2796[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2806 := &x.ListMeta
yym2807 := z.EncBinary()
_ = yym2807
if false {
} else if z.HasExtensions() && z.EncExt(yy2806) {
} else {
z.EncFallback(yy2806)
}
}
}
if yyr2796 || yy2arr2796 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2809 := z.EncBinary()
_ = yym2809
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 {
yym2810 := z.EncBinary()
_ = yym2810
if false {
} else {
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
}
}
}
if yyr2796 || yy2arr2796 {
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
yym2811 := z.DecBinary()
_ = yym2811
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2812 := r.ContainerType()
if yyct2812 == codecSelferValueTypeMap1234 {
yyl2812 := r.ReadMapStart()
if yyl2812 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2812, d)
}
} else if yyct2812 == codecSelferValueTypeArray1234 {
yyl2812 := r.ReadArrayStart()
if yyl2812 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2812, 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 yys2813Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2813Slc
var yyhl2813 bool = l >= 0
for yyj2813 := 0; ; yyj2813++ {
if yyhl2813 {
if yyj2813 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2813Slc = r.DecodeBytes(yys2813Slc, true, true)
yys2813 := string(yys2813Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2813 {
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 {
yyv2816 := &x.ListMeta
yym2817 := z.DecBinary()
_ = yym2817
if false {
} else if z.HasExtensions() && z.DecExt(yyv2816) {
} else {
z.DecFallback(yyv2816, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2818 := &x.Items
yym2819 := z.DecBinary()
_ = yym2819
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2818), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2813)
} // end switch yys2813
} // end for yyj2813
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 yyj2820 int
var yyb2820 bool
var yyhl2820 bool = l >= 0
yyj2820++
if yyhl2820 {
yyb2820 = yyj2820 > l
} else {
yyb2820 = r.CheckBreak()
}
if yyb2820 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2820++
if yyhl2820 {
yyb2820 = yyj2820 > l
} else {
yyb2820 = r.CheckBreak()
}
if yyb2820 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2820++
if yyhl2820 {
yyb2820 = yyj2820 > l
} else {
yyb2820 = r.CheckBreak()
}
if yyb2820 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2823 := &x.ListMeta
yym2824 := z.DecBinary()
_ = yym2824
if false {
} else if z.HasExtensions() && z.DecExt(yyv2823) {
} else {
z.DecFallback(yyv2823, false)
}
}
yyj2820++
if yyhl2820 {
yyb2820 = yyj2820 > l
} else {
yyb2820 = r.CheckBreak()
}
if yyb2820 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2825 := &x.Items
yym2826 := z.DecBinary()
_ = yym2826
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2825), d)
}
}
for {
yyj2820++
if yyhl2820 {
yyb2820 = yyj2820 > l
} else {
yyb2820 = r.CheckBreak()
}
if yyb2820 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2820-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 {
yym2827 := z.EncBinary()
_ = yym2827
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2828 := !z.EncBinary()
yy2arr2828 := z.EncBasicHandle().StructToArray
var yyq2828 [4]bool
_, _, _ = yysep2828, yyq2828, yy2arr2828
const yyr2828 bool = false
yyq2828[0] = x.PodCIDR != ""
yyq2828[1] = x.ExternalID != ""
yyq2828[2] = x.ProviderID != ""
yyq2828[3] = x.Unschedulable != false
var yynn2828 int
if yyr2828 || yy2arr2828 {
r.EncodeArrayStart(4)
} else {
yynn2828 = 0
for _, b := range yyq2828 {
if b {
yynn2828++
}
}
r.EncodeMapStart(yynn2828)
yynn2828 = 0
}
if yyr2828 || yy2arr2828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2828[0] {
yym2830 := z.EncBinary()
_ = yym2830
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2828[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2831 := z.EncBinary()
_ = yym2831
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
}
}
if yyr2828 || yy2arr2828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2828[1] {
yym2833 := z.EncBinary()
_ = yym2833
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2828[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2834 := z.EncBinary()
_ = yym2834
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
}
}
if yyr2828 || yy2arr2828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2828[2] {
yym2836 := z.EncBinary()
_ = yym2836
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2828[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2837 := z.EncBinary()
_ = yym2837
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
}
}
if yyr2828 || yy2arr2828 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2828[3] {
yym2839 := z.EncBinary()
_ = yym2839
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2828[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2840 := z.EncBinary()
_ = yym2840
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
}
}
if yyr2828 || yy2arr2828 {
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
yym2841 := z.DecBinary()
_ = yym2841
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2842 := r.ContainerType()
if yyct2842 == codecSelferValueTypeMap1234 {
yyl2842 := r.ReadMapStart()
if yyl2842 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2842, d)
}
} else if yyct2842 == codecSelferValueTypeArray1234 {
yyl2842 := r.ReadArrayStart()
if yyl2842 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2842, 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 yys2843Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2843Slc
var yyhl2843 bool = l >= 0
for yyj2843 := 0; ; yyj2843++ {
if yyhl2843 {
if yyj2843 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2843Slc = r.DecodeBytes(yys2843Slc, true, true)
yys2843 := string(yys2843Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2843 {
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, yys2843)
} // end switch yys2843
} // end for yyj2843
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 yyj2848 int
var yyb2848 bool
var yyhl2848 bool = l >= 0
yyj2848++
if yyhl2848 {
yyb2848 = yyj2848 > l
} else {
yyb2848 = r.CheckBreak()
}
if yyb2848 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodCIDR = ""
} else {
x.PodCIDR = string(r.DecodeString())
}
yyj2848++
if yyhl2848 {
yyb2848 = yyj2848 > l
} else {
yyb2848 = r.CheckBreak()
}
if yyb2848 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalID = ""
} else {
x.ExternalID = string(r.DecodeString())
}
yyj2848++
if yyhl2848 {
yyb2848 = yyj2848 > l
} else {
yyb2848 = r.CheckBreak()
}
if yyb2848 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ProviderID = ""
} else {
x.ProviderID = string(r.DecodeString())
}
yyj2848++
if yyhl2848 {
yyb2848 = yyj2848 > l
} else {
yyb2848 = r.CheckBreak()
}
if yyb2848 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Unschedulable = false
} else {
x.Unschedulable = bool(r.DecodeBool())
}
for {
yyj2848++
if yyhl2848 {
yyb2848 = yyj2848 > l
} else {
yyb2848 = r.CheckBreak()
}
if yyb2848 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2848-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 {
yym2853 := z.EncBinary()
_ = yym2853
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2854 := !z.EncBinary()
yy2arr2854 := z.EncBasicHandle().StructToArray
var yyq2854 [1]bool
_, _, _ = yysep2854, yyq2854, yy2arr2854
const yyr2854 bool = false
var yynn2854 int
if yyr2854 || yy2arr2854 {
r.EncodeArrayStart(1)
} else {
yynn2854 = 1
for _, b := range yyq2854 {
if b {
yynn2854++
}
}
r.EncodeMapStart(yynn2854)
yynn2854 = 0
}
if yyr2854 || yy2arr2854 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2856 := z.EncBinary()
_ = yym2856
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2857 := z.EncBinary()
_ = yym2857
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2854 || yy2arr2854 {
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
yym2858 := z.DecBinary()
_ = yym2858
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2859 := r.ContainerType()
if yyct2859 == codecSelferValueTypeMap1234 {
yyl2859 := r.ReadMapStart()
if yyl2859 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2859, d)
}
} else if yyct2859 == codecSelferValueTypeArray1234 {
yyl2859 := r.ReadArrayStart()
if yyl2859 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2859, 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 yys2860Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2860Slc
var yyhl2860 bool = l >= 0
for yyj2860 := 0; ; yyj2860++ {
if yyhl2860 {
if yyj2860 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2860Slc = r.DecodeBytes(yys2860Slc, true, true)
yys2860 := string(yys2860Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2860 {
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
default:
z.DecStructFieldNotFound(-1, yys2860)
} // end switch yys2860
} // end for yyj2860
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 yyj2862 int
var yyb2862 bool
var yyhl2862 bool = l >= 0
yyj2862++
if yyhl2862 {
yyb2862 = yyj2862 > l
} else {
yyb2862 = r.CheckBreak()
}
if yyb2862 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int32(r.DecodeInt(32))
}
for {
yyj2862++
if yyhl2862 {
yyb2862 = yyj2862 > l
} else {
yyb2862 = r.CheckBreak()
}
if yyb2862 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2862-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 {
yym2864 := z.EncBinary()
_ = yym2864
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2865 := !z.EncBinary()
yy2arr2865 := z.EncBasicHandle().StructToArray
var yyq2865 [1]bool
_, _, _ = yysep2865, yyq2865, yy2arr2865
const yyr2865 bool = false
yyq2865[0] = true
var yynn2865 int
if yyr2865 || yy2arr2865 {
r.EncodeArrayStart(1)
} else {
yynn2865 = 0
for _, b := range yyq2865 {
if b {
yynn2865++
}
}
r.EncodeMapStart(yynn2865)
yynn2865 = 0
}
if yyr2865 || yy2arr2865 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2865[0] {
yy2867 := &x.KubeletEndpoint
yy2867.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2865[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2868 := &x.KubeletEndpoint
yy2868.CodecEncodeSelf(e)
}
}
if yyr2865 || yy2arr2865 {
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
yym2869 := z.DecBinary()
_ = yym2869
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2870 := r.ContainerType()
if yyct2870 == codecSelferValueTypeMap1234 {
yyl2870 := r.ReadMapStart()
if yyl2870 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2870, d)
}
} else if yyct2870 == codecSelferValueTypeArray1234 {
yyl2870 := r.ReadArrayStart()
if yyl2870 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2870, 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 yys2871Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2871Slc
var yyhl2871 bool = l >= 0
for yyj2871 := 0; ; yyj2871++ {
if yyhl2871 {
if yyj2871 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2871Slc = r.DecodeBytes(yys2871Slc, true, true)
yys2871 := string(yys2871Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2871 {
case "kubeletEndpoint":
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2872 := &x.KubeletEndpoint
yyv2872.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2871)
} // end switch yys2871
} // end for yyj2871
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 yyj2873 int
var yyb2873 bool
var yyhl2873 bool = l >= 0
yyj2873++
if yyhl2873 {
yyb2873 = yyj2873 > l
} else {
yyb2873 = r.CheckBreak()
}
if yyb2873 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2874 := &x.KubeletEndpoint
yyv2874.CodecDecodeSelf(d)
}
for {
yyj2873++
if yyhl2873 {
yyb2873 = yyj2873 > l
} else {
yyb2873 = r.CheckBreak()
}
if yyb2873 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2873-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 {
yym2875 := z.EncBinary()
_ = yym2875
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2876 := !z.EncBinary()
yy2arr2876 := z.EncBasicHandle().StructToArray
var yyq2876 [10]bool
_, _, _ = yysep2876, yyq2876, yy2arr2876
const yyr2876 bool = false
var yynn2876 int
if yyr2876 || yy2arr2876 {
r.EncodeArrayStart(10)
} else {
yynn2876 = 10
for _, b := range yyq2876 {
if b {
yynn2876++
}
}
r.EncodeMapStart(yynn2876)
yynn2876 = 0
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2878 := z.EncBinary()
_ = yym2878
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("machineID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2879 := z.EncBinary()
_ = yym2879
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2881 := z.EncBinary()
_ = yym2881
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)
yym2882 := z.EncBinary()
_ = yym2882
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2884 := z.EncBinary()
_ = yym2884
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)
yym2885 := z.EncBinary()
_ = yym2885
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2887 := z.EncBinary()
_ = yym2887
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)
yym2888 := z.EncBinary()
_ = yym2888
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2890 := z.EncBinary()
_ = yym2890
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)
yym2891 := z.EncBinary()
_ = yym2891
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OSImage))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2893 := z.EncBinary()
_ = yym2893
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)
yym2894 := z.EncBinary()
_ = yym2894
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2896 := z.EncBinary()
_ = yym2896
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)
yym2897 := z.EncBinary()
_ = yym2897
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2899 := z.EncBinary()
_ = yym2899
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)
yym2900 := z.EncBinary()
_ = yym2900
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2902 := z.EncBinary()
_ = yym2902
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)
yym2903 := z.EncBinary()
_ = yym2903
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OperatingSystem))
}
}
if yyr2876 || yy2arr2876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2905 := z.EncBinary()
_ = yym2905
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)
yym2906 := z.EncBinary()
_ = yym2906
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Architecture))
}
}
if yyr2876 || yy2arr2876 {
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
yym2907 := z.DecBinary()
_ = yym2907
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2908 := r.ContainerType()
if yyct2908 == codecSelferValueTypeMap1234 {
yyl2908 := r.ReadMapStart()
if yyl2908 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2908, d)
}
} else if yyct2908 == codecSelferValueTypeArray1234 {
yyl2908 := r.ReadArrayStart()
if yyl2908 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2908, 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 yys2909Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2909Slc
var yyhl2909 bool = l >= 0
for yyj2909 := 0; ; yyj2909++ {
if yyhl2909 {
if yyj2909 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2909Slc = r.DecodeBytes(yys2909Slc, true, true)
yys2909 := string(yys2909Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2909 {
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, yys2909)
} // end switch yys2909
} // end for yyj2909
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 yyj2920 int
var yyb2920 bool
var yyhl2920 bool = l >= 0
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OSImage = ""
} else {
x.OSImage = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.OperatingSystem = ""
} else {
x.OperatingSystem = string(r.DecodeString())
}
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Architecture = ""
} else {
x.Architecture = string(r.DecodeString())
}
for {
yyj2920++
if yyhl2920 {
yyb2920 = yyj2920 > l
} else {
yyb2920 = r.CheckBreak()
}
if yyb2920 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2920-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2931 := z.EncBinary()
_ = yym2931
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2932 := !z.EncBinary()
yy2arr2932 := z.EncBasicHandle().StructToArray
var yyq2932 [10]bool
_, _, _ = yysep2932, yyq2932, yy2arr2932
const yyr2932 bool = false
yyq2932[0] = len(x.Capacity) != 0
yyq2932[1] = len(x.Allocatable) != 0
yyq2932[2] = x.Phase != ""
yyq2932[3] = len(x.Conditions) != 0
yyq2932[4] = len(x.Addresses) != 0
yyq2932[5] = true
yyq2932[6] = true
yyq2932[7] = len(x.Images) != 0
yyq2932[8] = len(x.VolumesInUse) != 0
yyq2932[9] = len(x.VolumesAttached) != 0
var yynn2932 int
if yyr2932 || yy2arr2932 {
r.EncodeArrayStart(10)
} else {
yynn2932 = 0
for _, b := range yyq2932 {
if b {
yynn2932++
}
}
r.EncodeMapStart(yynn2932)
yynn2932 = 0
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2932[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 yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[1] {
if x.Allocatable == nil {
r.EncodeNil()
} else {
x.Allocatable.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2932[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 yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[2] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2932[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2937 := z.EncBinary()
_ = yym2937
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2932[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2938 := z.EncBinary()
_ = yym2938
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
}
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[4] {
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2940 := z.EncBinary()
_ = yym2940
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2932[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2941 := z.EncBinary()
_ = yym2941
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
}
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[5] {
yy2943 := &x.DaemonEndpoints
yy2943.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2932[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2944 := &x.DaemonEndpoints
yy2944.CodecEncodeSelf(e)
}
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[6] {
yy2946 := &x.NodeInfo
yy2946.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2932[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2947 := &x.NodeInfo
yy2947.CodecEncodeSelf(e)
}
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[7] {
if x.Images == nil {
r.EncodeNil()
} else {
yym2949 := z.EncBinary()
_ = yym2949
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2932[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("images"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Images == nil {
r.EncodeNil()
} else {
yym2950 := z.EncBinary()
_ = yym2950
if false {
} else {
h.encSliceContainerImage(([]ContainerImage)(x.Images), e)
}
}
}
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[8] {
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym2952 := z.EncBinary()
_ = yym2952
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2932[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesInUse"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesInUse == nil {
r.EncodeNil()
} else {
yym2953 := z.EncBinary()
_ = yym2953
if false {
} else {
h.encSliceUniqueVolumeName(([]UniqueVolumeName)(x.VolumesInUse), e)
}
}
}
}
if yyr2932 || yy2arr2932 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2932[9] {
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym2955 := z.EncBinary()
_ = yym2955
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2932[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumesAttached"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumesAttached == nil {
r.EncodeNil()
} else {
yym2956 := z.EncBinary()
_ = yym2956
if false {
} else {
h.encSliceAttachedVolume(([]AttachedVolume)(x.VolumesAttached), e)
}
}
}
}
if yyr2932 || yy2arr2932 {
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
yym2957 := z.DecBinary()
_ = yym2957
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2958 := r.ContainerType()
if yyct2958 == codecSelferValueTypeMap1234 {
yyl2958 := r.ReadMapStart()
if yyl2958 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2958, d)
}
} else if yyct2958 == codecSelferValueTypeArray1234 {
yyl2958 := r.ReadArrayStart()
if yyl2958 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2958, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2959Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2959Slc
var yyhl2959 bool = l >= 0
for yyj2959 := 0; ; yyj2959++ {
if yyhl2959 {
if yyj2959 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2959Slc = r.DecodeBytes(yys2959Slc, true, true)
yys2959 := string(yys2959Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2959 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2960 := &x.Capacity
yyv2960.CodecDecodeSelf(d)
}
case "allocatable":
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2961 := &x.Allocatable
yyv2961.CodecDecodeSelf(d)
}
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2963 := &x.Conditions
yym2964 := z.DecBinary()
_ = yym2964
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2963), d)
}
}
case "addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2965 := &x.Addresses
yym2966 := z.DecBinary()
_ = yym2966
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2965), d)
}
}
case "daemonEndpoints":
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2967 := &x.DaemonEndpoints
yyv2967.CodecDecodeSelf(d)
}
case "nodeInfo":
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2968 := &x.NodeInfo
yyv2968.CodecDecodeSelf(d)
}
case "images":
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2969 := &x.Images
yym2970 := z.DecBinary()
_ = yym2970
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2969), d)
}
}
case "volumesInUse":
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv2971 := &x.VolumesInUse
yym2972 := z.DecBinary()
_ = yym2972
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2971), d)
}
}
case "volumesAttached":
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv2973 := &x.VolumesAttached
yym2974 := z.DecBinary()
_ = yym2974
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2973), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2959)
} // end switch yys2959
} // end for yyj2959
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 yyj2975 int
var yyb2975 bool
var yyhl2975 bool = l >= 0
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2976 := &x.Capacity
yyv2976.CodecDecodeSelf(d)
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Allocatable = nil
} else {
yyv2977 := &x.Allocatable
yyv2977.CodecDecodeSelf(d)
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2979 := &x.Conditions
yym2980 := z.DecBinary()
_ = yym2980
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2979), d)
}
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2981 := &x.Addresses
yym2982 := z.DecBinary()
_ = yym2982
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2981), d)
}
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2983 := &x.DaemonEndpoints
yyv2983.CodecDecodeSelf(d)
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2984 := &x.NodeInfo
yyv2984.CodecDecodeSelf(d)
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Images = nil
} else {
yyv2985 := &x.Images
yym2986 := z.DecBinary()
_ = yym2986
if false {
} else {
h.decSliceContainerImage((*[]ContainerImage)(yyv2985), d)
}
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesInUse = nil
} else {
yyv2987 := &x.VolumesInUse
yym2988 := z.DecBinary()
_ = yym2988
if false {
} else {
h.decSliceUniqueVolumeName((*[]UniqueVolumeName)(yyv2987), d)
}
}
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumesAttached = nil
} else {
yyv2989 := &x.VolumesAttached
yym2990 := z.DecBinary()
_ = yym2990
if false {
} else {
h.decSliceAttachedVolume((*[]AttachedVolume)(yyv2989), d)
}
}
for {
yyj2975++
if yyhl2975 {
yyb2975 = yyj2975 > l
} else {
yyb2975 = r.CheckBreak()
}
if yyb2975 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2975-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x UniqueVolumeName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2991 := z.EncBinary()
_ = yym2991
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
yym2992 := z.DecBinary()
_ = yym2992
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 {
yym2993 := z.EncBinary()
_ = yym2993
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2994 := !z.EncBinary()
yy2arr2994 := z.EncBasicHandle().StructToArray
var yyq2994 [2]bool
_, _, _ = yysep2994, yyq2994, yy2arr2994
const yyr2994 bool = false
var yynn2994 int
if yyr2994 || yy2arr2994 {
r.EncodeArrayStart(2)
} else {
yynn2994 = 2
for _, b := range yyq2994 {
if b {
yynn2994++
}
}
r.EncodeMapStart(yynn2994)
yynn2994 = 0
}
if yyr2994 || yy2arr2994 {
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 yyr2994 || yy2arr2994 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2997 := z.EncBinary()
_ = yym2997
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)
yym2998 := z.EncBinary()
_ = yym2998
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DevicePath))
}
}
if yyr2994 || yy2arr2994 {
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
yym2999 := z.DecBinary()
_ = yym2999
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3000 := r.ContainerType()
if yyct3000 == codecSelferValueTypeMap1234 {
yyl3000 := r.ReadMapStart()
if yyl3000 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3000, d)
}
} else if yyct3000 == codecSelferValueTypeArray1234 {
yyl3000 := r.ReadArrayStart()
if yyl3000 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3000, 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 yys3001Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3001Slc
var yyhl3001 bool = l >= 0
for yyj3001 := 0; ; yyj3001++ {
if yyhl3001 {
if yyj3001 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3001Slc = r.DecodeBytes(yys3001Slc, true, true)
yys3001 := string(yys3001Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3001 {
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, yys3001)
} // end switch yys3001
} // end for yyj3001
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 yyj3004 int
var yyb3004 bool
var yyhl3004 bool = l >= 0
yyj3004++
if yyhl3004 {
yyb3004 = yyj3004 > l
} else {
yyb3004 = r.CheckBreak()
}
if yyb3004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = UniqueVolumeName(r.DecodeString())
}
yyj3004++
if yyhl3004 {
yyb3004 = yyj3004 > l
} else {
yyb3004 = r.CheckBreak()
}
if yyb3004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DevicePath = ""
} else {
x.DevicePath = string(r.DecodeString())
}
for {
yyj3004++
if yyhl3004 {
yyb3004 = yyj3004 > l
} else {
yyb3004 = r.CheckBreak()
}
if yyb3004 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3004-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 {
yym3007 := z.EncBinary()
_ = yym3007
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3008 := !z.EncBinary()
yy2arr3008 := z.EncBasicHandle().StructToArray
var yyq3008 [1]bool
_, _, _ = yysep3008, yyq3008, yy2arr3008
const yyr3008 bool = false
yyq3008[0] = len(x.PreferAvoidPods) != 0
var yynn3008 int
if yyr3008 || yy2arr3008 {
r.EncodeArrayStart(1)
} else {
yynn3008 = 0
for _, b := range yyq3008 {
if b {
yynn3008++
}
}
r.EncodeMapStart(yynn3008)
yynn3008 = 0
}
if yyr3008 || yy2arr3008 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3008[0] {
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3010 := z.EncBinary()
_ = yym3010
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3008[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("preferAvoidPods"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.PreferAvoidPods == nil {
r.EncodeNil()
} else {
yym3011 := z.EncBinary()
_ = yym3011
if false {
} else {
h.encSlicePreferAvoidPodsEntry(([]PreferAvoidPodsEntry)(x.PreferAvoidPods), e)
}
}
}
}
if yyr3008 || yy2arr3008 {
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
yym3012 := z.DecBinary()
_ = yym3012
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3013 := r.ContainerType()
if yyct3013 == codecSelferValueTypeMap1234 {
yyl3013 := r.ReadMapStart()
if yyl3013 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3013, d)
}
} else if yyct3013 == codecSelferValueTypeArray1234 {
yyl3013 := r.ReadArrayStart()
if yyl3013 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3013, 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 yys3014Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3014Slc
var yyhl3014 bool = l >= 0
for yyj3014 := 0; ; yyj3014++ {
if yyhl3014 {
if yyj3014 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3014Slc = r.DecodeBytes(yys3014Slc, true, true)
yys3014 := string(yys3014Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3014 {
case "preferAvoidPods":
if r.TryDecodeAsNil() {
x.PreferAvoidPods = nil
} else {
yyv3015 := &x.PreferAvoidPods
yym3016 := z.DecBinary()
_ = yym3016
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3015), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3014)
} // end switch yys3014
} // end for yyj3014
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 yyj3017 int
var yyb3017 bool
var yyhl3017 bool = l >= 0
yyj3017++
if yyhl3017 {
yyb3017 = yyj3017 > l
} else {
yyb3017 = r.CheckBreak()
}
if yyb3017 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PreferAvoidPods = nil
} else {
yyv3018 := &x.PreferAvoidPods
yym3019 := z.DecBinary()
_ = yym3019
if false {
} else {
h.decSlicePreferAvoidPodsEntry((*[]PreferAvoidPodsEntry)(yyv3018), d)
}
}
for {
yyj3017++
if yyhl3017 {
yyb3017 = yyj3017 > l
} else {
yyb3017 = r.CheckBreak()
}
if yyb3017 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3017-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PreferAvoidPodsEntry) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3020 := z.EncBinary()
_ = yym3020
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3021 := !z.EncBinary()
yy2arr3021 := z.EncBasicHandle().StructToArray
var yyq3021 [4]bool
_, _, _ = yysep3021, yyq3021, yy2arr3021
const yyr3021 bool = false
yyq3021[1] = true
yyq3021[2] = x.Reason != ""
yyq3021[3] = x.Message != ""
var yynn3021 int
if yyr3021 || yy2arr3021 {
r.EncodeArrayStart(4)
} else {
yynn3021 = 1
for _, b := range yyq3021 {
if b {
yynn3021++
}
}
r.EncodeMapStart(yynn3021)
yynn3021 = 0
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3023 := &x.PodSignature
yy3023.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podSignature"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3024 := &x.PodSignature
yy3024.CodecEncodeSelf(e)
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[1] {
yy3026 := &x.EvictionTime
yym3027 := z.EncBinary()
_ = yym3027
if false {
} else if z.HasExtensions() && z.EncExt(yy3026) {
} else if yym3027 {
z.EncBinaryMarshal(yy3026)
} else if !yym3027 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3026)
} else {
z.EncFallback(yy3026)
}
} else {
r.EncodeNil()
}
} else {
if yyq3021[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("evictionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3028 := &x.EvictionTime
yym3029 := z.EncBinary()
_ = yym3029
if false {
} else if z.HasExtensions() && z.EncExt(yy3028) {
} else if yym3029 {
z.EncBinaryMarshal(yy3028)
} else if !yym3029 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3028)
} else {
z.EncFallback(yy3028)
}
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[2] {
yym3031 := z.EncBinary()
_ = yym3031
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3021[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3032 := z.EncBinary()
_ = yym3032
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3021 || yy2arr3021 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3021[3] {
yym3034 := z.EncBinary()
_ = yym3034
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3021[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3035 := z.EncBinary()
_ = yym3035
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3021 || yy2arr3021 {
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
yym3036 := z.DecBinary()
_ = yym3036
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3037 := r.ContainerType()
if yyct3037 == codecSelferValueTypeMap1234 {
yyl3037 := r.ReadMapStart()
if yyl3037 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3037, d)
}
} else if yyct3037 == codecSelferValueTypeArray1234 {
yyl3037 := r.ReadArrayStart()
if yyl3037 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3037, 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 yys3038Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3038Slc
var yyhl3038 bool = l >= 0
for yyj3038 := 0; ; yyj3038++ {
if yyhl3038 {
if yyj3038 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3038Slc = r.DecodeBytes(yys3038Slc, true, true)
yys3038 := string(yys3038Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3038 {
case "podSignature":
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3039 := &x.PodSignature
yyv3039.CodecDecodeSelf(d)
}
case "evictionTime":
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3040 := &x.EvictionTime
yym3041 := z.DecBinary()
_ = yym3041
if false {
} else if z.HasExtensions() && z.DecExt(yyv3040) {
} else if yym3041 {
z.DecBinaryUnmarshal(yyv3040)
} else if !yym3041 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3040)
} else {
z.DecFallback(yyv3040, 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, yys3038)
} // end switch yys3038
} // end for yyj3038
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 yyj3044 int
var yyb3044 bool
var yyhl3044 bool = l >= 0
yyj3044++
if yyhl3044 {
yyb3044 = yyj3044 > l
} else {
yyb3044 = r.CheckBreak()
}
if yyb3044 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodSignature = PodSignature{}
} else {
yyv3045 := &x.PodSignature
yyv3045.CodecDecodeSelf(d)
}
yyj3044++
if yyhl3044 {
yyb3044 = yyj3044 > l
} else {
yyb3044 = r.CheckBreak()
}
if yyb3044 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EvictionTime = pkg2_unversioned.Time{}
} else {
yyv3046 := &x.EvictionTime
yym3047 := z.DecBinary()
_ = yym3047
if false {
} else if z.HasExtensions() && z.DecExt(yyv3046) {
} else if yym3047 {
z.DecBinaryUnmarshal(yyv3046)
} else if !yym3047 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3046)
} else {
z.DecFallback(yyv3046, false)
}
}
yyj3044++
if yyhl3044 {
yyb3044 = yyj3044 > l
} else {
yyb3044 = r.CheckBreak()
}
if yyb3044 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3044++
if yyhl3044 {
yyb3044 = yyj3044 > l
} else {
yyb3044 = r.CheckBreak()
}
if yyb3044 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3044++
if yyhl3044 {
yyb3044 = yyj3044 > l
} else {
yyb3044 = r.CheckBreak()
}
if yyb3044 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3044-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 {
yym3050 := z.EncBinary()
_ = yym3050
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3051 := !z.EncBinary()
yy2arr3051 := z.EncBasicHandle().StructToArray
var yyq3051 [1]bool
_, _, _ = yysep3051, yyq3051, yy2arr3051
const yyr3051 bool = false
yyq3051[0] = x.PodController != nil
var yynn3051 int
if yyr3051 || yy2arr3051 {
r.EncodeArrayStart(1)
} else {
yynn3051 = 0
for _, b := range yyq3051 {
if b {
yynn3051++
}
}
r.EncodeMapStart(yynn3051)
yynn3051 = 0
}
if yyr3051 || yy2arr3051 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3051[0] {
if x.PodController == nil {
r.EncodeNil()
} else {
x.PodController.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3051[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 yyr3051 || yy2arr3051 {
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
yym3053 := z.DecBinary()
_ = yym3053
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3054 := r.ContainerType()
if yyct3054 == codecSelferValueTypeMap1234 {
yyl3054 := r.ReadMapStart()
if yyl3054 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3054, d)
}
} else if yyct3054 == codecSelferValueTypeArray1234 {
yyl3054 := r.ReadArrayStart()
if yyl3054 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3054, 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 yys3055Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3055Slc
var yyhl3055 bool = l >= 0
for yyj3055 := 0; ; yyj3055++ {
if yyhl3055 {
if yyj3055 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3055Slc = r.DecodeBytes(yys3055Slc, true, true)
yys3055 := string(yys3055Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3055 {
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, yys3055)
} // end switch yys3055
} // end for yyj3055
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 yyj3057 int
var yyb3057 bool
var yyhl3057 bool = l >= 0
yyj3057++
if yyhl3057 {
yyb3057 = yyj3057 > l
} else {
yyb3057 = r.CheckBreak()
}
if yyb3057 {
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 {
yyj3057++
if yyhl3057 {
yyb3057 = yyj3057 > l
} else {
yyb3057 = r.CheckBreak()
}
if yyb3057 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3057-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 {
yym3059 := z.EncBinary()
_ = yym3059
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3060 := !z.EncBinary()
yy2arr3060 := z.EncBasicHandle().StructToArray
var yyq3060 [2]bool
_, _, _ = yysep3060, yyq3060, yy2arr3060
const yyr3060 bool = false
yyq3060[1] = x.SizeBytes != 0
var yynn3060 int
if yyr3060 || yy2arr3060 {
r.EncodeArrayStart(2)
} else {
yynn3060 = 1
for _, b := range yyq3060 {
if b {
yynn3060++
}
}
r.EncodeMapStart(yynn3060)
yynn3060 = 0
}
if yyr3060 || yy2arr3060 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Names == nil {
r.EncodeNil()
} else {
yym3062 := z.EncBinary()
_ = yym3062
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 {
yym3063 := z.EncBinary()
_ = yym3063
if false {
} else {
z.F.EncSliceStringV(x.Names, false, e)
}
}
}
if yyr3060 || yy2arr3060 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3060[1] {
yym3065 := z.EncBinary()
_ = yym3065
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3060[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sizeBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3066 := z.EncBinary()
_ = yym3066
if false {
} else {
r.EncodeInt(int64(x.SizeBytes))
}
}
}
if yyr3060 || yy2arr3060 {
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
yym3067 := z.DecBinary()
_ = yym3067
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3068 := r.ContainerType()
if yyct3068 == codecSelferValueTypeMap1234 {
yyl3068 := r.ReadMapStart()
if yyl3068 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3068, d)
}
} else if yyct3068 == codecSelferValueTypeArray1234 {
yyl3068 := r.ReadArrayStart()
if yyl3068 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3068, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerImage) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3069Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3069Slc
var yyhl3069 bool = l >= 0
for yyj3069 := 0; ; yyj3069++ {
if yyhl3069 {
if yyj3069 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3069Slc = r.DecodeBytes(yys3069Slc, true, true)
yys3069 := string(yys3069Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3069 {
case "names":
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3070 := &x.Names
yym3071 := z.DecBinary()
_ = yym3071
if false {
} else {
z.F.DecSliceStringX(yyv3070, false, d)
}
}
case "sizeBytes":
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys3069)
} // end switch yys3069
} // end for yyj3069
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 yyj3073 int
var yyb3073 bool
var yyhl3073 bool = l >= 0
yyj3073++
if yyhl3073 {
yyb3073 = yyj3073 > l
} else {
yyb3073 = r.CheckBreak()
}
if yyb3073 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Names = nil
} else {
yyv3074 := &x.Names
yym3075 := z.DecBinary()
_ = yym3075
if false {
} else {
z.F.DecSliceStringX(yyv3074, false, d)
}
}
yyj3073++
if yyhl3073 {
yyb3073 = yyj3073 > l
} else {
yyb3073 = r.CheckBreak()
}
if yyb3073 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SizeBytes = 0
} else {
x.SizeBytes = int64(r.DecodeInt(64))
}
for {
yyj3073++
if yyhl3073 {
yyb3073 = yyj3073 > l
} else {
yyb3073 = r.CheckBreak()
}
if yyb3073 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3073-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3077 := z.EncBinary()
_ = yym3077
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
yym3078 := z.DecBinary()
_ = yym3078
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
yym3079 := z.EncBinary()
_ = yym3079
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
yym3080 := z.DecBinary()
_ = yym3080
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 {
yym3081 := z.EncBinary()
_ = yym3081
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3082 := !z.EncBinary()
yy2arr3082 := z.EncBasicHandle().StructToArray
var yyq3082 [6]bool
_, _, _ = yysep3082, yyq3082, yy2arr3082
const yyr3082 bool = false
yyq3082[2] = true
yyq3082[3] = true
yyq3082[4] = x.Reason != ""
yyq3082[5] = x.Message != ""
var yynn3082 int
if yyr3082 || yy2arr3082 {
r.EncodeArrayStart(6)
} else {
yynn3082 = 2
for _, b := range yyq3082 {
if b {
yynn3082++
}
}
r.EncodeMapStart(yynn3082)
yynn3082 = 0
}
if yyr3082 || yy2arr3082 {
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 yyr3082 || yy2arr3082 {
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 yyr3082 || yy2arr3082 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3082[2] {
yy3086 := &x.LastHeartbeatTime
yym3087 := z.EncBinary()
_ = yym3087
if false {
} else if z.HasExtensions() && z.EncExt(yy3086) {
} else if yym3087 {
z.EncBinaryMarshal(yy3086)
} else if !yym3087 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3086)
} else {
z.EncFallback(yy3086)
}
} else {
r.EncodeNil()
}
} else {
if yyq3082[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3088 := &x.LastHeartbeatTime
yym3089 := z.EncBinary()
_ = yym3089
if false {
} else if z.HasExtensions() && z.EncExt(yy3088) {
} else if yym3089 {
z.EncBinaryMarshal(yy3088)
} else if !yym3089 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3088)
} else {
z.EncFallback(yy3088)
}
}
}
if yyr3082 || yy2arr3082 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3082[3] {
yy3091 := &x.LastTransitionTime
yym3092 := z.EncBinary()
_ = yym3092
if false {
} else if z.HasExtensions() && z.EncExt(yy3091) {
} else if yym3092 {
z.EncBinaryMarshal(yy3091)
} else if !yym3092 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3091)
} else {
z.EncFallback(yy3091)
}
} else {
r.EncodeNil()
}
} else {
if yyq3082[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3093 := &x.LastTransitionTime
yym3094 := z.EncBinary()
_ = yym3094
if false {
} else if z.HasExtensions() && z.EncExt(yy3093) {
} else if yym3094 {
z.EncBinaryMarshal(yy3093)
} else if !yym3094 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3093)
} else {
z.EncFallback(yy3093)
}
}
}
if yyr3082 || yy2arr3082 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3082[4] {
yym3096 := z.EncBinary()
_ = yym3096
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3082[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3097 := z.EncBinary()
_ = yym3097
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3082 || yy2arr3082 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3082[5] {
yym3099 := z.EncBinary()
_ = yym3099
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3082[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3100 := z.EncBinary()
_ = yym3100
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3082 || yy2arr3082 {
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
yym3101 := z.DecBinary()
_ = yym3101
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3102 := r.ContainerType()
if yyct3102 == codecSelferValueTypeMap1234 {
yyl3102 := r.ReadMapStart()
if yyl3102 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3102, d)
}
} else if yyct3102 == codecSelferValueTypeArray1234 {
yyl3102 := r.ReadArrayStart()
if yyl3102 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3102, 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 yys3103Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3103Slc
var yyhl3103 bool = l >= 0
for yyj3103 := 0; ; yyj3103++ {
if yyhl3103 {
if yyj3103 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3103Slc = r.DecodeBytes(yys3103Slc, true, true)
yys3103 := string(yys3103Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3103 {
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 {
yyv3106 := &x.LastHeartbeatTime
yym3107 := z.DecBinary()
_ = yym3107
if false {
} else if z.HasExtensions() && z.DecExt(yyv3106) {
} else if yym3107 {
z.DecBinaryUnmarshal(yyv3106)
} else if !yym3107 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3106)
} else {
z.DecFallback(yyv3106, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3108 := &x.LastTransitionTime
yym3109 := z.DecBinary()
_ = yym3109
if false {
} else if z.HasExtensions() && z.DecExt(yyv3108) {
} else if yym3109 {
z.DecBinaryUnmarshal(yyv3108)
} else if !yym3109 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3108)
} else {
z.DecFallback(yyv3108, 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, yys3103)
} // end switch yys3103
} // end for yyj3103
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 yyj3112 int
var yyb3112 bool
var yyhl3112 bool = l >= 0
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeConditionType(r.DecodeString())
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastHeartbeatTime = pkg2_unversioned.Time{}
} else {
yyv3115 := &x.LastHeartbeatTime
yym3116 := z.DecBinary()
_ = yym3116
if false {
} else if z.HasExtensions() && z.DecExt(yyv3115) {
} else if yym3116 {
z.DecBinaryUnmarshal(yyv3115)
} else if !yym3116 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3115)
} else {
z.DecFallback(yyv3115, false)
}
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv3117 := &x.LastTransitionTime
yym3118 := z.DecBinary()
_ = yym3118
if false {
} else if z.HasExtensions() && z.DecExt(yyv3117) {
} else if yym3118 {
z.DecBinaryUnmarshal(yyv3117)
} else if !yym3118 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3117)
} else {
z.DecFallback(yyv3117, false)
}
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj3112++
if yyhl3112 {
yyb3112 = yyj3112 > l
} else {
yyb3112 = r.CheckBreak()
}
if yyb3112 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3112-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3121 := z.EncBinary()
_ = yym3121
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
yym3122 := z.DecBinary()
_ = yym3122
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 {
yym3123 := z.EncBinary()
_ = yym3123
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3124 := !z.EncBinary()
yy2arr3124 := z.EncBasicHandle().StructToArray
var yyq3124 [2]bool
_, _, _ = yysep3124, yyq3124, yy2arr3124
const yyr3124 bool = false
var yynn3124 int
if yyr3124 || yy2arr3124 {
r.EncodeArrayStart(2)
} else {
yynn3124 = 2
for _, b := range yyq3124 {
if b {
yynn3124++
}
}
r.EncodeMapStart(yynn3124)
yynn3124 = 0
}
if yyr3124 || yy2arr3124 {
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 yyr3124 || yy2arr3124 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3127 := z.EncBinary()
_ = yym3127
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)
yym3128 := z.EncBinary()
_ = yym3128
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
}
}
if yyr3124 || yy2arr3124 {
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
yym3129 := z.DecBinary()
_ = yym3129
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3130 := r.ContainerType()
if yyct3130 == codecSelferValueTypeMap1234 {
yyl3130 := r.ReadMapStart()
if yyl3130 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3130, d)
}
} else if yyct3130 == codecSelferValueTypeArray1234 {
yyl3130 := r.ReadArrayStart()
if yyl3130 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3130, 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 yys3131Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3131Slc
var yyhl3131 bool = l >= 0
for yyj3131 := 0; ; yyj3131++ {
if yyhl3131 {
if yyj3131 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3131Slc = r.DecodeBytes(yys3131Slc, true, true)
yys3131 := string(yys3131Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3131 {
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, yys3131)
} // end switch yys3131
} // end for yyj3131
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 yyj3134 int
var yyb3134 bool
var yyhl3134 bool = l >= 0
yyj3134++
if yyhl3134 {
yyb3134 = yyj3134 > l
} else {
yyb3134 = r.CheckBreak()
}
if yyb3134 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeAddressType(r.DecodeString())
}
yyj3134++
if yyhl3134 {
yyb3134 = yyj3134 > l
} else {
yyb3134 = r.CheckBreak()
}
if yyb3134 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Address = ""
} else {
x.Address = string(r.DecodeString())
}
for {
yyj3134++
if yyhl3134 {
yyb3134 = yyj3134 > l
} else {
yyb3134 = r.CheckBreak()
}
if yyb3134 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3134-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 {
yym3137 := z.EncBinary()
_ = yym3137
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3138 := !z.EncBinary()
yy2arr3138 := z.EncBasicHandle().StructToArray
var yyq3138 [1]bool
_, _, _ = yysep3138, yyq3138, yy2arr3138
const yyr3138 bool = false
yyq3138[0] = len(x.Capacity) != 0
var yynn3138 int
if yyr3138 || yy2arr3138 {
r.EncodeArrayStart(1)
} else {
yynn3138 = 0
for _, b := range yyq3138 {
if b {
yynn3138++
}
}
r.EncodeMapStart(yynn3138)
yynn3138 = 0
}
if yyr3138 || yy2arr3138 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3138[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3138[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 yyr3138 || yy2arr3138 {
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
yym3140 := z.DecBinary()
_ = yym3140
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3141 := r.ContainerType()
if yyct3141 == codecSelferValueTypeMap1234 {
yyl3141 := r.ReadMapStart()
if yyl3141 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3141, d)
}
} else if yyct3141 == codecSelferValueTypeArray1234 {
yyl3141 := r.ReadArrayStart()
if yyl3141 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3141, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3142Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3142Slc
var yyhl3142 bool = l >= 0
for yyj3142 := 0; ; yyj3142++ {
if yyhl3142 {
if yyj3142 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3142Slc = r.DecodeBytes(yys3142Slc, true, true)
yys3142 := string(yys3142Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3142 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv3143 := &x.Capacity
yyv3143.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3142)
} // end switch yys3142
} // end for yyj3142
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 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.Capacity = nil
} else {
yyv3145 := &x.Capacity
yyv3145.CodecDecodeSelf(d)
}
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 ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3146 := z.EncBinary()
_ = yym3146
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
yym3147 := z.DecBinary()
_ = yym3147
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 {
yym3148 := z.EncBinary()
_ = yym3148
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
yym3149 := z.DecBinary()
_ = yym3149
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 {
yym3150 := z.EncBinary()
_ = yym3150
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3151 := !z.EncBinary()
yy2arr3151 := z.EncBasicHandle().StructToArray
var yyq3151 [5]bool
_, _, _ = yysep3151, yyq3151, yy2arr3151
const yyr3151 bool = false
yyq3151[0] = x.Kind != ""
yyq3151[1] = x.APIVersion != ""
yyq3151[2] = true
yyq3151[3] = true
yyq3151[4] = true
var yynn3151 int
if yyr3151 || yy2arr3151 {
r.EncodeArrayStart(5)
} else {
yynn3151 = 0
for _, b := range yyq3151 {
if b {
yynn3151++
}
}
r.EncodeMapStart(yynn3151)
yynn3151 = 0
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[0] {
yym3153 := z.EncBinary()
_ = yym3153
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3151[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3154 := z.EncBinary()
_ = yym3154
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[1] {
yym3156 := z.EncBinary()
_ = yym3156
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3151[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3157 := z.EncBinary()
_ = yym3157
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[2] {
yy3159 := &x.ObjectMeta
yy3159.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3151[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3160 := &x.ObjectMeta
yy3160.CodecEncodeSelf(e)
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[3] {
yy3162 := &x.Spec
yy3162.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3151[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3163 := &x.Spec
yy3163.CodecEncodeSelf(e)
}
}
if yyr3151 || yy2arr3151 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3151[4] {
yy3165 := &x.Status
yy3165.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3151[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3166 := &x.Status
yy3166.CodecEncodeSelf(e)
}
}
if yyr3151 || yy2arr3151 {
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
yym3167 := z.DecBinary()
_ = yym3167
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3168 := r.ContainerType()
if yyct3168 == codecSelferValueTypeMap1234 {
yyl3168 := r.ReadMapStart()
if yyl3168 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3168, d)
}
} else if yyct3168 == codecSelferValueTypeArray1234 {
yyl3168 := r.ReadArrayStart()
if yyl3168 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3168, 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 yys3169Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3169Slc
var yyhl3169 bool = l >= 0
for yyj3169 := 0; ; yyj3169++ {
if yyhl3169 {
if yyj3169 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3169Slc = r.DecodeBytes(yys3169Slc, true, true)
yys3169 := string(yys3169Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3169 {
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 {
yyv3172 := &x.ObjectMeta
yyv3172.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3173 := &x.Spec
yyv3173.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3174 := &x.Status
yyv3174.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3169)
} // end switch yys3169
} // end for yyj3169
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 yyj3175 int
var yyb3175 bool
var yyhl3175 bool = l >= 0
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3178 := &x.ObjectMeta
yyv3178.CodecDecodeSelf(d)
}
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv3179 := &x.Spec
yyv3179.CodecDecodeSelf(d)
}
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv3180 := &x.Status
yyv3180.CodecDecodeSelf(d)
}
for {
yyj3175++
if yyhl3175 {
yyb3175 = yyj3175 > l
} else {
yyb3175 = r.CheckBreak()
}
if yyb3175 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3175-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *NodeList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3181 := z.EncBinary()
_ = yym3181
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3182 := !z.EncBinary()
yy2arr3182 := z.EncBasicHandle().StructToArray
var yyq3182 [4]bool
_, _, _ = yysep3182, yyq3182, yy2arr3182
const yyr3182 bool = false
yyq3182[0] = x.Kind != ""
yyq3182[1] = x.APIVersion != ""
yyq3182[2] = true
var yynn3182 int
if yyr3182 || yy2arr3182 {
r.EncodeArrayStart(4)
} else {
yynn3182 = 1
for _, b := range yyq3182 {
if b {
yynn3182++
}
}
r.EncodeMapStart(yynn3182)
yynn3182 = 0
}
if yyr3182 || yy2arr3182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3182[0] {
yym3184 := z.EncBinary()
_ = yym3184
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3182[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3185 := z.EncBinary()
_ = yym3185
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3182 || yy2arr3182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3182[1] {
yym3187 := z.EncBinary()
_ = yym3187
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3182[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3188 := z.EncBinary()
_ = yym3188
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3182 || yy2arr3182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3182[2] {
yy3190 := &x.ListMeta
yym3191 := z.EncBinary()
_ = yym3191
if false {
} else if z.HasExtensions() && z.EncExt(yy3190) {
} else {
z.EncFallback(yy3190)
}
} else {
r.EncodeNil()
}
} else {
if yyq3182[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3192 := &x.ListMeta
yym3193 := z.EncBinary()
_ = yym3193
if false {
} else if z.HasExtensions() && z.EncExt(yy3192) {
} else {
z.EncFallback(yy3192)
}
}
}
if yyr3182 || yy2arr3182 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3195 := z.EncBinary()
_ = yym3195
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 {
yym3196 := z.EncBinary()
_ = yym3196
if false {
} else {
h.encSliceNode(([]Node)(x.Items), e)
}
}
}
if yyr3182 || yy2arr3182 {
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
yym3197 := z.DecBinary()
_ = yym3197
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3198 := r.ContainerType()
if yyct3198 == codecSelferValueTypeMap1234 {
yyl3198 := r.ReadMapStart()
if yyl3198 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3198, d)
}
} else if yyct3198 == codecSelferValueTypeArray1234 {
yyl3198 := r.ReadArrayStart()
if yyl3198 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3198, 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 yys3199Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3199Slc
var yyhl3199 bool = l >= 0
for yyj3199 := 0; ; yyj3199++ {
if yyhl3199 {
if yyj3199 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3199Slc = r.DecodeBytes(yys3199Slc, true, true)
yys3199 := string(yys3199Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3199 {
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 {
yyv3202 := &x.ListMeta
yym3203 := z.DecBinary()
_ = yym3203
if false {
} else if z.HasExtensions() && z.DecExt(yyv3202) {
} else {
z.DecFallback(yyv3202, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3204 := &x.Items
yym3205 := z.DecBinary()
_ = yym3205
if false {
} else {
h.decSliceNode((*[]Node)(yyv3204), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3199)
} // end switch yys3199
} // end for yyj3199
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 yyj3206 int
var yyb3206 bool
var yyhl3206 bool = l >= 0
yyj3206++
if yyhl3206 {
yyb3206 = yyj3206 > l
} else {
yyb3206 = r.CheckBreak()
}
if yyb3206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3206++
if yyhl3206 {
yyb3206 = yyj3206 > l
} else {
yyb3206 = r.CheckBreak()
}
if yyb3206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3206++
if yyhl3206 {
yyb3206 = yyj3206 > l
} else {
yyb3206 = r.CheckBreak()
}
if yyb3206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3209 := &x.ListMeta
yym3210 := z.DecBinary()
_ = yym3210
if false {
} else if z.HasExtensions() && z.DecExt(yyv3209) {
} else {
z.DecFallback(yyv3209, false)
}
}
yyj3206++
if yyhl3206 {
yyb3206 = yyj3206 > l
} else {
yyb3206 = r.CheckBreak()
}
if yyb3206 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3211 := &x.Items
yym3212 := z.DecBinary()
_ = yym3212
if false {
} else {
h.decSliceNode((*[]Node)(yyv3211), d)
}
}
for {
yyj3206++
if yyhl3206 {
yyb3206 = yyj3206 > l
} else {
yyb3206 = r.CheckBreak()
}
if yyb3206 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3206-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 {
yym3213 := z.EncBinary()
_ = yym3213
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3214 := !z.EncBinary()
yy2arr3214 := z.EncBasicHandle().StructToArray
var yyq3214 [1]bool
_, _, _ = yysep3214, yyq3214, yy2arr3214
const yyr3214 bool = false
var yynn3214 int
if yyr3214 || yy2arr3214 {
r.EncodeArrayStart(1)
} else {
yynn3214 = 1
for _, b := range yyq3214 {
if b {
yynn3214++
}
}
r.EncodeMapStart(yynn3214)
yynn3214 = 0
}
if yyr3214 || yy2arr3214 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym3216 := z.EncBinary()
_ = yym3216
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 {
yym3217 := z.EncBinary()
_ = yym3217
if false {
} else {
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
}
}
}
if yyr3214 || yy2arr3214 {
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
yym3218 := z.DecBinary()
_ = yym3218
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3219 := r.ContainerType()
if yyct3219 == codecSelferValueTypeMap1234 {
yyl3219 := r.ReadMapStart()
if yyl3219 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3219, d)
}
} else if yyct3219 == codecSelferValueTypeArray1234 {
yyl3219 := r.ReadArrayStart()
if yyl3219 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3219, 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 yys3220Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3220Slc
var yyhl3220 bool = l >= 0
for yyj3220 := 0; ; yyj3220++ {
if yyhl3220 {
if yyj3220 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3220Slc = r.DecodeBytes(yys3220Slc, true, true)
yys3220 := string(yys3220Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3220 {
case "Finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3221 := &x.Finalizers
yym3222 := z.DecBinary()
_ = yym3222
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3221), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3220)
} // end switch yys3220
} // end for yyj3220
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 yyj3223 int
var yyb3223 bool
var yyhl3223 bool = l >= 0
yyj3223++
if yyhl3223 {
yyb3223 = yyj3223 > l
} else {
yyb3223 = r.CheckBreak()
}
if yyb3223 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv3224 := &x.Finalizers
yym3225 := z.DecBinary()
_ = yym3225
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv3224), d)
}
}
for {
yyj3223++
if yyhl3223 {
yyb3223 = yyj3223 > l
} else {
yyb3223 = r.CheckBreak()
}
if yyb3223 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3223-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3226 := z.EncBinary()
_ = yym3226
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
yym3227 := z.DecBinary()
_ = yym3227
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 {
yym3228 := z.EncBinary()
_ = yym3228
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3229 := !z.EncBinary()
yy2arr3229 := z.EncBasicHandle().StructToArray
var yyq3229 [1]bool
_, _, _ = yysep3229, yyq3229, yy2arr3229
const yyr3229 bool = false
yyq3229[0] = x.Phase != ""
var yynn3229 int
if yyr3229 || yy2arr3229 {
r.EncodeArrayStart(1)
} else {
yynn3229 = 0
for _, b := range yyq3229 {
if b {
yynn3229++
}
}
r.EncodeMapStart(yynn3229)
yynn3229 = 0
}
if yyr3229 || yy2arr3229 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3229[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3229[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr3229 || yy2arr3229 {
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
yym3231 := z.DecBinary()
_ = yym3231
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3232 := r.ContainerType()
if yyct3232 == codecSelferValueTypeMap1234 {
yyl3232 := r.ReadMapStart()
if yyl3232 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3232, d)
}
} else if yyct3232 == codecSelferValueTypeArray1234 {
yyl3232 := r.ReadArrayStart()
if yyl3232 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3232, 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 yys3233Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3233Slc
var yyhl3233 bool = l >= 0
for yyj3233 := 0; ; yyj3233++ {
if yyhl3233 {
if yyj3233 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3233Slc = r.DecodeBytes(yys3233Slc, true, true)
yys3233 := string(yys3233Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3233 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3233)
} // end switch yys3233
} // end for yyj3233
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 yyj3235 int
var yyb3235 bool
var yyhl3235 bool = l >= 0
yyj3235++
if yyhl3235 {
yyb3235 = yyj3235 > l
} else {
yyb3235 = r.CheckBreak()
}
if yyb3235 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
for {
yyj3235++
if yyhl3235 {
yyb3235 = yyj3235 > l
} else {
yyb3235 = r.CheckBreak()
}
if yyb3235 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3235-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3237 := z.EncBinary()
_ = yym3237
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
yym3238 := z.DecBinary()
_ = yym3238
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 {
yym3239 := z.EncBinary()
_ = yym3239
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3240 := !z.EncBinary()
yy2arr3240 := z.EncBasicHandle().StructToArray
var yyq3240 [5]bool
_, _, _ = yysep3240, yyq3240, yy2arr3240
const yyr3240 bool = false
yyq3240[0] = x.Kind != ""
yyq3240[1] = x.APIVersion != ""
yyq3240[2] = true
yyq3240[3] = true
yyq3240[4] = true
var yynn3240 int
if yyr3240 || yy2arr3240 {
r.EncodeArrayStart(5)
} else {
yynn3240 = 0
for _, b := range yyq3240 {
if b {
yynn3240++
}
}
r.EncodeMapStart(yynn3240)
yynn3240 = 0
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[0] {
yym3242 := z.EncBinary()
_ = yym3242
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3240[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3243 := z.EncBinary()
_ = yym3243
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[1] {
yym3245 := z.EncBinary()
_ = yym3245
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3240[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3246 := z.EncBinary()
_ = yym3246
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[2] {
yy3248 := &x.ObjectMeta
yy3248.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3240[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3249 := &x.ObjectMeta
yy3249.CodecEncodeSelf(e)
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[3] {
yy3251 := &x.Spec
yy3251.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3240[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3252 := &x.Spec
yy3252.CodecEncodeSelf(e)
}
}
if yyr3240 || yy2arr3240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3240[4] {
yy3254 := &x.Status
yy3254.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3240[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3255 := &x.Status
yy3255.CodecEncodeSelf(e)
}
}
if yyr3240 || yy2arr3240 {
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
yym3256 := z.DecBinary()
_ = yym3256
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3257 := r.ContainerType()
if yyct3257 == codecSelferValueTypeMap1234 {
yyl3257 := r.ReadMapStart()
if yyl3257 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3257, d)
}
} else if yyct3257 == codecSelferValueTypeArray1234 {
yyl3257 := r.ReadArrayStart()
if yyl3257 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3257, 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 yys3258Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3258Slc
var yyhl3258 bool = l >= 0
for yyj3258 := 0; ; yyj3258++ {
if yyhl3258 {
if yyj3258 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3258Slc = r.DecodeBytes(yys3258Slc, true, true)
yys3258 := string(yys3258Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3258 {
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 {
yyv3261 := &x.ObjectMeta
yyv3261.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3262 := &x.Spec
yyv3262.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3263 := &x.Status
yyv3263.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3258)
} // end switch yys3258
} // end for yyj3258
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 yyj3264 int
var yyb3264 bool
var yyhl3264 bool = l >= 0
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3267 := &x.ObjectMeta
yyv3267.CodecDecodeSelf(d)
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv3268 := &x.Spec
yyv3268.CodecDecodeSelf(d)
}
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv3269 := &x.Status
yyv3269.CodecDecodeSelf(d)
}
for {
yyj3264++
if yyhl3264 {
yyb3264 = yyj3264 > l
} else {
yyb3264 = r.CheckBreak()
}
if yyb3264 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3264-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 {
yym3270 := z.EncBinary()
_ = yym3270
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3271 := !z.EncBinary()
yy2arr3271 := z.EncBasicHandle().StructToArray
var yyq3271 [4]bool
_, _, _ = yysep3271, yyq3271, yy2arr3271
const yyr3271 bool = false
yyq3271[0] = x.Kind != ""
yyq3271[1] = x.APIVersion != ""
yyq3271[2] = true
var yynn3271 int
if yyr3271 || yy2arr3271 {
r.EncodeArrayStart(4)
} else {
yynn3271 = 1
for _, b := range yyq3271 {
if b {
yynn3271++
}
}
r.EncodeMapStart(yynn3271)
yynn3271 = 0
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3271[0] {
yym3273 := z.EncBinary()
_ = yym3273
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3271[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3274 := z.EncBinary()
_ = yym3274
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3271[1] {
yym3276 := z.EncBinary()
_ = yym3276
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3271[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3277 := z.EncBinary()
_ = yym3277
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3271[2] {
yy3279 := &x.ListMeta
yym3280 := z.EncBinary()
_ = yym3280
if false {
} else if z.HasExtensions() && z.EncExt(yy3279) {
} else {
z.EncFallback(yy3279)
}
} else {
r.EncodeNil()
}
} else {
if yyq3271[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3281 := &x.ListMeta
yym3282 := z.EncBinary()
_ = yym3282
if false {
} else if z.HasExtensions() && z.EncExt(yy3281) {
} else {
z.EncFallback(yy3281)
}
}
}
if yyr3271 || yy2arr3271 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3284 := z.EncBinary()
_ = yym3284
if false {
} else {
h.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 {
yym3285 := z.EncBinary()
_ = yym3285
if false {
} else {
h.encSliceNamespace(([]Namespace)(x.Items), e)
}
}
}
if yyr3271 || yy2arr3271 {
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
yym3286 := z.DecBinary()
_ = yym3286
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3287 := r.ContainerType()
if yyct3287 == codecSelferValueTypeMap1234 {
yyl3287 := r.ReadMapStart()
if yyl3287 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3287, d)
}
} else if yyct3287 == codecSelferValueTypeArray1234 {
yyl3287 := r.ReadArrayStart()
if yyl3287 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3287, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NamespaceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3288Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3288Slc
var yyhl3288 bool = l >= 0
for yyj3288 := 0; ; yyj3288++ {
if yyhl3288 {
if yyj3288 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3288Slc = r.DecodeBytes(yys3288Slc, true, true)
yys3288 := string(yys3288Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3288 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3291 := &x.ListMeta
yym3292 := z.DecBinary()
_ = yym3292
if false {
} else if z.HasExtensions() && z.DecExt(yyv3291) {
} else {
z.DecFallback(yyv3291, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3293 := &x.Items
yym3294 := z.DecBinary()
_ = yym3294
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3293), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3288)
} // end switch yys3288
} // end for yyj3288
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 yyj3295 int
var yyb3295 bool
var yyhl3295 bool = l >= 0
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3298 := &x.ListMeta
yym3299 := z.DecBinary()
_ = yym3299
if false {
} else if z.HasExtensions() && z.DecExt(yyv3298) {
} else {
z.DecFallback(yyv3298, false)
}
}
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3300 := &x.Items
yym3301 := z.DecBinary()
_ = yym3301
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv3300), d)
}
}
for {
yyj3295++
if yyhl3295 {
yyb3295 = yyj3295 > l
} else {
yyb3295 = r.CheckBreak()
}
if yyb3295 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3295-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Binding) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3302 := z.EncBinary()
_ = yym3302
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3303 := !z.EncBinary()
yy2arr3303 := z.EncBasicHandle().StructToArray
var yyq3303 [4]bool
_, _, _ = yysep3303, yyq3303, yy2arr3303
const yyr3303 bool = false
yyq3303[0] = x.Kind != ""
yyq3303[1] = x.APIVersion != ""
yyq3303[2] = true
var yynn3303 int
if yyr3303 || yy2arr3303 {
r.EncodeArrayStart(4)
} else {
yynn3303 = 1
for _, b := range yyq3303 {
if b {
yynn3303++
}
}
r.EncodeMapStart(yynn3303)
yynn3303 = 0
}
if yyr3303 || yy2arr3303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3303[0] {
yym3305 := z.EncBinary()
_ = yym3305
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3303[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3306 := z.EncBinary()
_ = yym3306
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3303 || yy2arr3303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3303[1] {
yym3308 := z.EncBinary()
_ = yym3308
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3303[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3309 := z.EncBinary()
_ = yym3309
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3303 || yy2arr3303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3303[2] {
yy3311 := &x.ObjectMeta
yy3311.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3303[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3312 := &x.ObjectMeta
yy3312.CodecEncodeSelf(e)
}
}
if yyr3303 || yy2arr3303 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3314 := &x.Target
yy3314.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("target"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3315 := &x.Target
yy3315.CodecEncodeSelf(e)
}
if yyr3303 || yy2arr3303 {
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
yym3316 := z.DecBinary()
_ = yym3316
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3317 := r.ContainerType()
if yyct3317 == codecSelferValueTypeMap1234 {
yyl3317 := r.ReadMapStart()
if yyl3317 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3317, d)
}
} else if yyct3317 == codecSelferValueTypeArray1234 {
yyl3317 := r.ReadArrayStart()
if yyl3317 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3317, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Binding) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3318Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3318Slc
var yyhl3318 bool = l >= 0
for yyj3318 := 0; ; yyj3318++ {
if yyhl3318 {
if yyj3318 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3318Slc = r.DecodeBytes(yys3318Slc, true, true)
yys3318 := string(yys3318Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3318 {
case "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 {
yyv3321 := &x.ObjectMeta
yyv3321.CodecDecodeSelf(d)
}
case "target":
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv3322 := &x.Target
yyv3322.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3318)
} // end switch yys3318
} // end for yyj3318
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 yyj3323 int
var yyb3323 bool
var yyhl3323 bool = l >= 0
yyj3323++
if yyhl3323 {
yyb3323 = yyj3323 > l
} else {
yyb3323 = r.CheckBreak()
}
if yyb3323 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3323++
if yyhl3323 {
yyb3323 = yyj3323 > l
} else {
yyb3323 = r.CheckBreak()
}
if yyb3323 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3323++
if yyhl3323 {
yyb3323 = yyj3323 > l
} else {
yyb3323 = r.CheckBreak()
}
if yyb3323 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3326 := &x.ObjectMeta
yyv3326.CodecDecodeSelf(d)
}
yyj3323++
if yyhl3323 {
yyb3323 = yyj3323 > l
} else {
yyb3323 = r.CheckBreak()
}
if yyb3323 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv3327 := &x.Target
yyv3327.CodecDecodeSelf(d)
}
for {
yyj3323++
if yyhl3323 {
yyb3323 = yyj3323 > l
} else {
yyb3323 = r.CheckBreak()
}
if yyb3323 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3323-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Preconditions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3328 := z.EncBinary()
_ = yym3328
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3329 := !z.EncBinary()
yy2arr3329 := z.EncBasicHandle().StructToArray
var yyq3329 [1]bool
_, _, _ = yysep3329, yyq3329, yy2arr3329
const yyr3329 bool = false
yyq3329[0] = x.UID != nil
var yynn3329 int
if yyr3329 || yy2arr3329 {
r.EncodeArrayStart(1)
} else {
yynn3329 = 0
for _, b := range yyq3329 {
if b {
yynn3329++
}
}
r.EncodeMapStart(yynn3329)
yynn3329 = 0
}
if yyr3329 || yy2arr3329 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3329[0] {
if x.UID == nil {
r.EncodeNil()
} else {
yy3331 := *x.UID
yym3332 := z.EncBinary()
_ = yym3332
if false {
} else if z.HasExtensions() && z.EncExt(yy3331) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3331))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3329[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.UID == nil {
r.EncodeNil()
} else {
yy3333 := *x.UID
yym3334 := z.EncBinary()
_ = yym3334
if false {
} else if z.HasExtensions() && z.EncExt(yy3333) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yy3333))
}
}
}
}
if yyr3329 || yy2arr3329 {
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
yym3335 := z.DecBinary()
_ = yym3335
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3336 := r.ContainerType()
if yyct3336 == codecSelferValueTypeMap1234 {
yyl3336 := r.ReadMapStart()
if yyl3336 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3336, d)
}
} else if yyct3336 == codecSelferValueTypeArray1234 {
yyl3336 := r.ReadArrayStart()
if yyl3336 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3336, 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 yys3337Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3337Slc
var yyhl3337 bool = l >= 0
for yyj3337 := 0; ; yyj3337++ {
if yyhl3337 {
if yyj3337 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3337Slc = r.DecodeBytes(yys3337Slc, true, true)
yys3337 := string(yys3337Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3337 {
case "uid":
if r.TryDecodeAsNil() {
if x.UID != nil {
x.UID = nil
}
} else {
if x.UID == nil {
x.UID = new(pkg1_types.UID)
}
yym3339 := z.DecBinary()
_ = yym3339
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
default:
z.DecStructFieldNotFound(-1, yys3337)
} // end switch yys3337
} // end for yyj3337
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 yyj3340 int
var yyb3340 bool
var yyhl3340 bool = l >= 0
yyj3340++
if yyhl3340 {
yyb3340 = yyj3340 > l
} else {
yyb3340 = r.CheckBreak()
}
if yyb3340 {
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)
}
yym3342 := z.DecBinary()
_ = yym3342
if false {
} else if z.HasExtensions() && z.DecExt(x.UID) {
} else {
*((*string)(x.UID)) = r.DecodeString()
}
}
for {
yyj3340++
if yyhl3340 {
yyb3340 = yyj3340 > l
} else {
yyb3340 = r.CheckBreak()
}
if yyb3340 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3340-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 {
yym3343 := z.EncBinary()
_ = yym3343
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3344 := !z.EncBinary()
yy2arr3344 := z.EncBasicHandle().StructToArray
var yyq3344 [5]bool
_, _, _ = yysep3344, yyq3344, yy2arr3344
const yyr3344 bool = false
yyq3344[0] = x.Kind != ""
yyq3344[1] = x.APIVersion != ""
yyq3344[2] = x.GracePeriodSeconds != nil
yyq3344[3] = x.Preconditions != nil
yyq3344[4] = x.OrphanDependents != nil
var yynn3344 int
if yyr3344 || yy2arr3344 {
r.EncodeArrayStart(5)
} else {
yynn3344 = 0
for _, b := range yyq3344 {
if b {
yynn3344++
}
}
r.EncodeMapStart(yynn3344)
yynn3344 = 0
}
if yyr3344 || yy2arr3344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3344[0] {
yym3346 := z.EncBinary()
_ = yym3346
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3344[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3347 := z.EncBinary()
_ = yym3347
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3344 || yy2arr3344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3344[1] {
yym3349 := z.EncBinary()
_ = yym3349
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3344[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3350 := z.EncBinary()
_ = yym3350
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3344 || yy2arr3344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3344[2] {
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3352 := *x.GracePeriodSeconds
yym3353 := z.EncBinary()
_ = yym3353
if false {
} else {
r.EncodeInt(int64(yy3352))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3344[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy3354 := *x.GracePeriodSeconds
yym3355 := z.EncBinary()
_ = yym3355
if false {
} else {
r.EncodeInt(int64(yy3354))
}
}
}
}
if yyr3344 || yy2arr3344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3344[3] {
if x.Preconditions == nil {
r.EncodeNil()
} else {
x.Preconditions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3344[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 yyr3344 || yy2arr3344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3344[4] {
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3358 := *x.OrphanDependents
yym3359 := z.EncBinary()
_ = yym3359
if false {
} else {
r.EncodeBool(bool(yy3358))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3344[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("orphanDependents"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.OrphanDependents == nil {
r.EncodeNil()
} else {
yy3360 := *x.OrphanDependents
yym3361 := z.EncBinary()
_ = yym3361
if false {
} else {
r.EncodeBool(bool(yy3360))
}
}
}
}
if yyr3344 || yy2arr3344 {
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
yym3362 := z.DecBinary()
_ = yym3362
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3363 := r.ContainerType()
if yyct3363 == codecSelferValueTypeMap1234 {
yyl3363 := r.ReadMapStart()
if yyl3363 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3363, d)
}
} else if yyct3363 == codecSelferValueTypeArray1234 {
yyl3363 := r.ReadArrayStart()
if yyl3363 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3363, 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 yys3364Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3364Slc
var yyhl3364 bool = l >= 0
for yyj3364 := 0; ; yyj3364++ {
if yyhl3364 {
if yyj3364 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3364Slc = r.DecodeBytes(yys3364Slc, true, true)
yys3364 := string(yys3364Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3364 {
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)
}
yym3368 := z.DecBinary()
_ = yym3368
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)
}
yym3371 := z.DecBinary()
_ = yym3371
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3364)
} // end switch yys3364
} // end for yyj3364
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 yyj3372 int
var yyb3372 bool
var yyhl3372 bool = l >= 0
yyj3372++
if yyhl3372 {
yyb3372 = yyj3372 > l
} else {
yyb3372 = r.CheckBreak()
}
if yyb3372 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3372++
if yyhl3372 {
yyb3372 = yyj3372 > l
} else {
yyb3372 = r.CheckBreak()
}
if yyb3372 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3372++
if yyhl3372 {
yyb3372 = yyj3372 > l
} else {
yyb3372 = r.CheckBreak()
}
if yyb3372 {
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)
}
yym3376 := z.DecBinary()
_ = yym3376
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3372++
if yyhl3372 {
yyb3372 = yyj3372 > l
} else {
yyb3372 = r.CheckBreak()
}
if yyb3372 {
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)
}
yyj3372++
if yyhl3372 {
yyb3372 = yyj3372 > l
} else {
yyb3372 = r.CheckBreak()
}
if yyb3372 {
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)
}
yym3379 := z.DecBinary()
_ = yym3379
if false {
} else {
*((*bool)(x.OrphanDependents)) = r.DecodeBool()
}
}
for {
yyj3372++
if yyhl3372 {
yyb3372 = yyj3372 > l
} else {
yyb3372 = r.CheckBreak()
}
if yyb3372 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3372-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 {
yym3380 := z.EncBinary()
_ = yym3380
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3381 := !z.EncBinary()
yy2arr3381 := z.EncBasicHandle().StructToArray
var yyq3381 [4]bool
_, _, _ = yysep3381, yyq3381, yy2arr3381
const yyr3381 bool = false
yyq3381[0] = x.Kind != ""
yyq3381[1] = x.APIVersion != ""
var yynn3381 int
if yyr3381 || yy2arr3381 {
r.EncodeArrayStart(4)
} else {
yynn3381 = 2
for _, b := range yyq3381 {
if b {
yynn3381++
}
}
r.EncodeMapStart(yynn3381)
yynn3381 = 0
}
if yyr3381 || yy2arr3381 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3381[0] {
yym3383 := z.EncBinary()
_ = yym3383
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3381[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3384 := z.EncBinary()
_ = yym3384
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3381 || yy2arr3381 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3381[1] {
yym3386 := z.EncBinary()
_ = yym3386
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3381[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3387 := z.EncBinary()
_ = yym3387
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3381 || yy2arr3381 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3389 := z.EncBinary()
_ = yym3389
if false {
} else {
r.EncodeBool(bool(x.Export))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("export"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3390 := z.EncBinary()
_ = yym3390
if false {
} else {
r.EncodeBool(bool(x.Export))
}
}
if yyr3381 || yy2arr3381 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3392 := z.EncBinary()
_ = yym3392
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exact"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3393 := z.EncBinary()
_ = yym3393
if false {
} else {
r.EncodeBool(bool(x.Exact))
}
}
if yyr3381 || yy2arr3381 {
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
yym3394 := z.DecBinary()
_ = yym3394
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3395 := r.ContainerType()
if yyct3395 == codecSelferValueTypeMap1234 {
yyl3395 := r.ReadMapStart()
if yyl3395 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3395, d)
}
} else if yyct3395 == codecSelferValueTypeArray1234 {
yyl3395 := r.ReadArrayStart()
if yyl3395 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3395, 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 yys3396Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3396Slc
var yyhl3396 bool = l >= 0
for yyj3396 := 0; ; yyj3396++ {
if yyhl3396 {
if yyj3396 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3396Slc = r.DecodeBytes(yys3396Slc, true, true)
yys3396 := string(yys3396Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3396 {
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, yys3396)
} // end switch yys3396
} // end for yyj3396
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 yyj3401 int
var yyb3401 bool
var yyhl3401 bool = l >= 0
yyj3401++
if yyhl3401 {
yyb3401 = yyj3401 > l
} else {
yyb3401 = r.CheckBreak()
}
if yyb3401 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3401++
if yyhl3401 {
yyb3401 = yyj3401 > l
} else {
yyb3401 = r.CheckBreak()
}
if yyb3401 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3401++
if yyhl3401 {
yyb3401 = yyj3401 > l
} else {
yyb3401 = r.CheckBreak()
}
if yyb3401 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Export = false
} else {
x.Export = bool(r.DecodeBool())
}
yyj3401++
if yyhl3401 {
yyb3401 = yyj3401 > l
} else {
yyb3401 = r.CheckBreak()
}
if yyb3401 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Exact = false
} else {
x.Exact = bool(r.DecodeBool())
}
for {
yyj3401++
if yyhl3401 {
yyb3401 = yyj3401 > l
} else {
yyb3401 = r.CheckBreak()
}
if yyb3401 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3401-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 {
yym3406 := z.EncBinary()
_ = yym3406
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3407 := !z.EncBinary()
yy2arr3407 := z.EncBasicHandle().StructToArray
var yyq3407 [7]bool
_, _, _ = yysep3407, yyq3407, yy2arr3407
const yyr3407 bool = false
yyq3407[0] = x.Kind != ""
yyq3407[1] = x.APIVersion != ""
var yynn3407 int
if yyr3407 || yy2arr3407 {
r.EncodeArrayStart(7)
} else {
yynn3407 = 5
for _, b := range yyq3407 {
if b {
yynn3407++
}
}
r.EncodeMapStart(yynn3407)
yynn3407 = 0
}
if yyr3407 || yy2arr3407 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3407[0] {
yym3409 := z.EncBinary()
_ = yym3409
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3407[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3410 := z.EncBinary()
_ = yym3410
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3407 || yy2arr3407 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3407[1] {
yym3412 := z.EncBinary()
_ = yym3412
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3407[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3413 := z.EncBinary()
_ = yym3413
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3407 || yy2arr3407 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym3415 := z.EncBinary()
_ = yym3415
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 {
yym3416 := z.EncBinary()
_ = yym3416
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
if yyr3407 || yy2arr3407 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldSelector == nil {
r.EncodeNil()
} else {
yym3418 := z.EncBinary()
_ = yym3418
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 {
yym3419 := z.EncBinary()
_ = yym3419
if false {
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
} else {
z.EncFallback(x.FieldSelector)
}
}
}
if yyr3407 || yy2arr3407 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3421 := z.EncBinary()
_ = yym3421
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3422 := z.EncBinary()
_ = yym3422
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
}
if yyr3407 || yy2arr3407 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3424 := z.EncBinary()
_ = yym3424
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)
yym3425 := z.EncBinary()
_ = yym3425
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
if yyr3407 || yy2arr3407 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3427 := *x.TimeoutSeconds
yym3428 := z.EncBinary()
_ = yym3428
if false {
} else {
r.EncodeInt(int64(yy3427))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy3429 := *x.TimeoutSeconds
yym3430 := z.EncBinary()
_ = yym3430
if false {
} else {
r.EncodeInt(int64(yy3429))
}
}
}
if yyr3407 || yy2arr3407 {
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
yym3431 := z.DecBinary()
_ = yym3431
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3432 := r.ContainerType()
if yyct3432 == codecSelferValueTypeMap1234 {
yyl3432 := r.ReadMapStart()
if yyl3432 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3432, d)
}
} else if yyct3432 == codecSelferValueTypeArray1234 {
yyl3432 := r.ReadArrayStart()
if yyl3432 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3432, 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 yys3433Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3433Slc
var yyhl3433 bool = l >= 0
for yyj3433 := 0; ; yyj3433++ {
if yyhl3433 {
if yyj3433 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3433Slc = r.DecodeBytes(yys3433Slc, true, true)
yys3433 := string(yys3433Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3433 {
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 {
yyv3436 := &x.LabelSelector
yym3437 := z.DecBinary()
_ = yym3437
if false {
} else if z.HasExtensions() && z.DecExt(yyv3436) {
} else {
z.DecFallback(yyv3436, true)
}
}
case "FieldSelector":
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3438 := &x.FieldSelector
yym3439 := z.DecBinary()
_ = yym3439
if false {
} else if z.HasExtensions() && z.DecExt(yyv3438) {
} else {
z.DecFallback(yyv3438, 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)
}
yym3443 := z.DecBinary()
_ = yym3443
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3433)
} // end switch yys3433
} // end for yyj3433
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 yyj3444 int
var yyb3444 bool
var yyhl3444 bool = l >= 0
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LabelSelector = nil
} else {
yyv3447 := &x.LabelSelector
yym3448 := z.DecBinary()
_ = yym3448
if false {
} else if z.HasExtensions() && z.DecExt(yyv3447) {
} else {
z.DecFallback(yyv3447, true)
}
}
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv3449 := &x.FieldSelector
yym3450 := z.DecBinary()
_ = yym3450
if false {
} else if z.HasExtensions() && z.DecExt(yyv3449) {
} else {
z.DecFallback(yyv3449, true)
}
}
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Watch = false
} else {
x.Watch = bool(r.DecodeBool())
}
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
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)
}
yym3454 := z.DecBinary()
_ = yym3454
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj3444++
if yyhl3444 {
yyb3444 = yyj3444 > l
} else {
yyb3444 = r.CheckBreak()
}
if yyb3444 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3444-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 {
yym3455 := z.EncBinary()
_ = yym3455
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3456 := !z.EncBinary()
yy2arr3456 := z.EncBasicHandle().StructToArray
var yyq3456 [10]bool
_, _, _ = yysep3456, yyq3456, yy2arr3456
const yyr3456 bool = false
yyq3456[0] = x.Kind != ""
yyq3456[1] = x.APIVersion != ""
var yynn3456 int
if yyr3456 || yy2arr3456 {
r.EncodeArrayStart(10)
} else {
yynn3456 = 8
for _, b := range yyq3456 {
if b {
yynn3456++
}
}
r.EncodeMapStart(yynn3456)
yynn3456 = 0
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3456[0] {
yym3458 := z.EncBinary()
_ = yym3458
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3456[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3459 := z.EncBinary()
_ = yym3459
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3456[1] {
yym3461 := z.EncBinary()
_ = yym3461
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3456[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3462 := z.EncBinary()
_ = yym3462
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3464 := z.EncBinary()
_ = yym3464
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)
yym3465 := z.EncBinary()
_ = yym3465
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3467 := z.EncBinary()
_ = yym3467
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3468 := z.EncBinary()
_ = yym3468
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3470 := z.EncBinary()
_ = yym3470
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3471 := z.EncBinary()
_ = yym3471
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3473 := *x.SinceSeconds
yym3474 := z.EncBinary()
_ = yym3474
if false {
} else {
r.EncodeInt(int64(yy3473))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy3475 := *x.SinceSeconds
yym3476 := z.EncBinary()
_ = yym3476
if false {
} else {
r.EncodeInt(int64(yy3475))
}
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceTime == nil {
r.EncodeNil()
} else {
yym3478 := z.EncBinary()
_ = yym3478
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3478 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3478 && 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 {
yym3479 := z.EncBinary()
_ = yym3479
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym3479 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym3479 && z.IsJSONHandle() {
z.EncJSONMarshal(x.SinceTime)
} else {
z.EncFallback(x.SinceTime)
}
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3481 := z.EncBinary()
_ = yym3481
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3482 := z.EncBinary()
_ = yym3482
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3484 := *x.TailLines
yym3485 := z.EncBinary()
_ = yym3485
if false {
} else {
r.EncodeInt(int64(yy3484))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy3486 := *x.TailLines
yym3487 := z.EncBinary()
_ = yym3487
if false {
} else {
r.EncodeInt(int64(yy3486))
}
}
}
if yyr3456 || yy2arr3456 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3489 := *x.LimitBytes
yym3490 := z.EncBinary()
_ = yym3490
if false {
} else {
r.EncodeInt(int64(yy3489))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy3491 := *x.LimitBytes
yym3492 := z.EncBinary()
_ = yym3492
if false {
} else {
r.EncodeInt(int64(yy3491))
}
}
}
if yyr3456 || yy2arr3456 {
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
yym3493 := z.DecBinary()
_ = yym3493
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3494 := r.ContainerType()
if yyct3494 == codecSelferValueTypeMap1234 {
yyl3494 := r.ReadMapStart()
if yyl3494 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3494, d)
}
} else if yyct3494 == codecSelferValueTypeArray1234 {
yyl3494 := r.ReadArrayStart()
if yyl3494 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3494, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodLogOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3495Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3495Slc
var yyhl3495 bool = l >= 0
for yyj3495 := 0; ; yyj3495++ {
if yyhl3495 {
if yyj3495 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3495Slc = r.DecodeBytes(yys3495Slc, true, true)
yys3495 := string(yys3495Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3495 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "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)
}
yym3502 := z.DecBinary()
_ = yym3502
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)
}
yym3504 := z.DecBinary()
_ = yym3504
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3504 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3504 && 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)
}
yym3507 := z.DecBinary()
_ = yym3507
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)
}
yym3509 := z.DecBinary()
_ = yym3509
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys3495)
} // end switch yys3495
} // end for yyj3495
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 yyj3510 int
var yyb3510 bool
var yyhl3510 bool = l >= 0
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Follow = false
} else {
x.Follow = bool(r.DecodeBool())
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Previous = false
} else {
x.Previous = bool(r.DecodeBool())
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
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)
}
yym3517 := z.DecBinary()
_ = yym3517
if false {
} else {
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
}
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
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)
}
yym3519 := z.DecBinary()
_ = yym3519
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym3519 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym3519 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.SinceTime)
} else {
z.DecFallback(x.SinceTime, false)
}
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Timestamps = false
} else {
x.Timestamps = bool(r.DecodeBool())
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
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)
}
yym3522 := z.DecBinary()
_ = yym3522
if false {
} else {
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
}
}
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
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)
}
yym3524 := z.DecBinary()
_ = yym3524
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
for {
yyj3510++
if yyhl3510 {
yyb3510 = yyj3510 > l
} else {
yyb3510 = r.CheckBreak()
}
if yyb3510 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3510-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 {
yym3525 := z.EncBinary()
_ = yym3525
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3526 := !z.EncBinary()
yy2arr3526 := z.EncBasicHandle().StructToArray
var yyq3526 [7]bool
_, _, _ = yysep3526, yyq3526, yy2arr3526
const yyr3526 bool = false
yyq3526[0] = x.Kind != ""
yyq3526[1] = x.APIVersion != ""
yyq3526[2] = x.Stdin != false
yyq3526[3] = x.Stdout != false
yyq3526[4] = x.Stderr != false
yyq3526[5] = x.TTY != false
yyq3526[6] = x.Container != ""
var yynn3526 int
if yyr3526 || yy2arr3526 {
r.EncodeArrayStart(7)
} else {
yynn3526 = 0
for _, b := range yyq3526 {
if b {
yynn3526++
}
}
r.EncodeMapStart(yynn3526)
yynn3526 = 0
}
if yyr3526 || yy2arr3526 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3526[0] {
yym3528 := z.EncBinary()
_ = yym3528
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3526[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3529 := z.EncBinary()
_ = yym3529
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3526 || yy2arr3526 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3526[1] {
yym3531 := z.EncBinary()
_ = yym3531
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3526[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3532 := z.EncBinary()
_ = yym3532
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3526 || yy2arr3526 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3526[2] {
yym3534 := z.EncBinary()
_ = yym3534
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3526[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3535 := z.EncBinary()
_ = yym3535
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr3526 || yy2arr3526 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3526[3] {
yym3537 := z.EncBinary()
_ = yym3537
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3526[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3538 := z.EncBinary()
_ = yym3538
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
}
if yyr3526 || yy2arr3526 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3526[4] {
yym3540 := z.EncBinary()
_ = yym3540
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3526[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3541 := z.EncBinary()
_ = yym3541
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
}
if yyr3526 || yy2arr3526 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3526[5] {
yym3543 := z.EncBinary()
_ = yym3543
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq3526[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3544 := z.EncBinary()
_ = yym3544
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr3526 || yy2arr3526 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3526[6] {
yym3546 := z.EncBinary()
_ = yym3546
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3526[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("container"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3547 := z.EncBinary()
_ = yym3547
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
}
if yyr3526 || yy2arr3526 {
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
yym3548 := z.DecBinary()
_ = yym3548
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3549 := r.ContainerType()
if yyct3549 == codecSelferValueTypeMap1234 {
yyl3549 := r.ReadMapStart()
if yyl3549 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3549, d)
}
} else if yyct3549 == codecSelferValueTypeArray1234 {
yyl3549 := r.ReadArrayStart()
if yyl3549 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3549, 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 yys3550Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3550Slc
var yyhl3550 bool = l >= 0
for yyj3550 := 0; ; yyj3550++ {
if yyhl3550 {
if yyj3550 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3550Slc = r.DecodeBytes(yys3550Slc, true, true)
yys3550 := string(yys3550Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3550 {
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, yys3550)
} // end switch yys3550
} // end for yyj3550
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 yyj3558 int
var yyb3558 bool
var yyhl3558 bool = l >= 0
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
for {
yyj3558++
if yyhl3558 {
yyb3558 = yyj3558 > l
} else {
yyb3558 = r.CheckBreak()
}
if yyb3558 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3558-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 {
yym3566 := z.EncBinary()
_ = yym3566
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3567 := !z.EncBinary()
yy2arr3567 := z.EncBasicHandle().StructToArray
var yyq3567 [8]bool
_, _, _ = yysep3567, yyq3567, yy2arr3567
const yyr3567 bool = false
yyq3567[0] = x.Kind != ""
yyq3567[1] = x.APIVersion != ""
var yynn3567 int
if yyr3567 || yy2arr3567 {
r.EncodeArrayStart(8)
} else {
yynn3567 = 6
for _, b := range yyq3567 {
if b {
yynn3567++
}
}
r.EncodeMapStart(yynn3567)
yynn3567 = 0
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3567[0] {
yym3569 := z.EncBinary()
_ = yym3569
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3567[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3570 := z.EncBinary()
_ = yym3570
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3567[1] {
yym3572 := z.EncBinary()
_ = yym3572
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3567[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3573 := z.EncBinary()
_ = yym3573
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3575 := z.EncBinary()
_ = yym3575
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3576 := z.EncBinary()
_ = yym3576
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3578 := z.EncBinary()
_ = yym3578
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3579 := z.EncBinary()
_ = yym3579
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3581 := z.EncBinary()
_ = yym3581
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3582 := z.EncBinary()
_ = yym3582
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3584 := z.EncBinary()
_ = yym3584
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3585 := z.EncBinary()
_ = yym3585
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3587 := z.EncBinary()
_ = yym3587
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)
yym3588 := z.EncBinary()
_ = yym3588
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr3567 || yy2arr3567 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym3590 := z.EncBinary()
_ = yym3590
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 {
yym3591 := z.EncBinary()
_ = yym3591
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
if yyr3567 || yy2arr3567 {
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
yym3592 := z.DecBinary()
_ = yym3592
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3593 := r.ContainerType()
if yyct3593 == codecSelferValueTypeMap1234 {
yyl3593 := r.ReadMapStart()
if yyl3593 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3593, d)
}
} else if yyct3593 == codecSelferValueTypeArray1234 {
yyl3593 := r.ReadArrayStart()
if yyl3593 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3593, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *PodExecOptions) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3594Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3594Slc
var yyhl3594 bool = l >= 0
for yyj3594 := 0; ; yyj3594++ {
if yyhl3594 {
if yyj3594 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3594Slc = r.DecodeBytes(yys3594Slc, true, true)
yys3594 := string(yys3594Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3594 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "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 {
yyv3602 := &x.Command
yym3603 := z.DecBinary()
_ = yym3603
if false {
} else {
z.F.DecSliceStringX(yyv3602, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3594)
} // end switch yys3594
} // end for yyj3594
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 yyj3604 int
var yyb3604 bool
var yyhl3604 bool = l >= 0
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv3612 := &x.Command
yym3613 := z.DecBinary()
_ = yym3613
if false {
} else {
z.F.DecSliceStringX(yyv3612, false, d)
}
}
for {
yyj3604++
if yyhl3604 {
yyb3604 = yyj3604 > l
} else {
yyb3604 = r.CheckBreak()
}
if yyb3604 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3604-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 {
yym3614 := z.EncBinary()
_ = yym3614
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3615 := !z.EncBinary()
yy2arr3615 := z.EncBasicHandle().StructToArray
var yyq3615 [3]bool
_, _, _ = yysep3615, yyq3615, yy2arr3615
const yyr3615 bool = false
yyq3615[0] = x.Kind != ""
yyq3615[1] = x.APIVersion != ""
var yynn3615 int
if yyr3615 || yy2arr3615 {
r.EncodeArrayStart(3)
} else {
yynn3615 = 1
for _, b := range yyq3615 {
if b {
yynn3615++
}
}
r.EncodeMapStart(yynn3615)
yynn3615 = 0
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[0] {
yym3617 := z.EncBinary()
_ = yym3617
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3615[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3618 := z.EncBinary()
_ = yym3618
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3615[1] {
yym3620 := z.EncBinary()
_ = yym3620
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3615[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3621 := z.EncBinary()
_ = yym3621
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3615 || yy2arr3615 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3623 := z.EncBinary()
_ = yym3623
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)
yym3624 := z.EncBinary()
_ = yym3624
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3615 || yy2arr3615 {
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
yym3625 := z.DecBinary()
_ = yym3625
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3626 := r.ContainerType()
if yyct3626 == codecSelferValueTypeMap1234 {
yyl3626 := r.ReadMapStart()
if yyl3626 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3626, d)
}
} else if yyct3626 == codecSelferValueTypeArray1234 {
yyl3626 := r.ReadArrayStart()
if yyl3626 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3626, 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 yys3627Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3627Slc
var yyhl3627 bool = l >= 0
for yyj3627 := 0; ; yyj3627++ {
if yyhl3627 {
if yyj3627 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3627Slc = r.DecodeBytes(yys3627Slc, true, true)
yys3627 := string(yys3627Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3627 {
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, yys3627)
} // end switch yys3627
} // end for yyj3627
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 yyj3631 int
var yyb3631 bool
var yyhl3631 bool = l >= 0
yyj3631++
if yyhl3631 {
yyb3631 = yyj3631 > l
} else {
yyb3631 = r.CheckBreak()
}
if yyb3631 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3631++
if yyhl3631 {
yyb3631 = yyj3631 > l
} else {
yyb3631 = r.CheckBreak()
}
if yyb3631 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3631++
if yyhl3631 {
yyb3631 = yyj3631 > l
} else {
yyb3631 = r.CheckBreak()
}
if yyb3631 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3631++
if yyhl3631 {
yyb3631 = yyj3631 > l
} else {
yyb3631 = r.CheckBreak()
}
if yyb3631 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3631-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 {
yym3635 := z.EncBinary()
_ = yym3635
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3636 := !z.EncBinary()
yy2arr3636 := z.EncBasicHandle().StructToArray
var yyq3636 [3]bool
_, _, _ = yysep3636, yyq3636, yy2arr3636
const yyr3636 bool = false
yyq3636[0] = x.Kind != ""
yyq3636[1] = x.APIVersion != ""
var yynn3636 int
if yyr3636 || yy2arr3636 {
r.EncodeArrayStart(3)
} else {
yynn3636 = 1
for _, b := range yyq3636 {
if b {
yynn3636++
}
}
r.EncodeMapStart(yynn3636)
yynn3636 = 0
}
if yyr3636 || yy2arr3636 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3636[0] {
yym3638 := z.EncBinary()
_ = yym3638
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3636[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3639 := z.EncBinary()
_ = yym3639
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3636 || yy2arr3636 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3636[1] {
yym3641 := z.EncBinary()
_ = yym3641
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3636[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3642 := z.EncBinary()
_ = yym3642
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3636 || yy2arr3636 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3644 := z.EncBinary()
_ = yym3644
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)
yym3645 := z.EncBinary()
_ = yym3645
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3636 || yy2arr3636 {
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
yym3646 := z.DecBinary()
_ = yym3646
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3647 := r.ContainerType()
if yyct3647 == codecSelferValueTypeMap1234 {
yyl3647 := r.ReadMapStart()
if yyl3647 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3647, d)
}
} else if yyct3647 == codecSelferValueTypeArray1234 {
yyl3647 := r.ReadArrayStart()
if yyl3647 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3647, 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 yys3648Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3648Slc
var yyhl3648 bool = l >= 0
for yyj3648 := 0; ; yyj3648++ {
if yyhl3648 {
if yyj3648 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3648Slc = r.DecodeBytes(yys3648Slc, true, true)
yys3648 := string(yys3648Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3648 {
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, yys3648)
} // end switch yys3648
} // end for yyj3648
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 yyj3652 int
var yyb3652 bool
var yyhl3652 bool = l >= 0
yyj3652++
if yyhl3652 {
yyb3652 = yyj3652 > l
} else {
yyb3652 = r.CheckBreak()
}
if yyb3652 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3652++
if yyhl3652 {
yyb3652 = yyj3652 > l
} else {
yyb3652 = r.CheckBreak()
}
if yyb3652 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3652++
if yyhl3652 {
yyb3652 = yyj3652 > l
} else {
yyb3652 = r.CheckBreak()
}
if yyb3652 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3652++
if yyhl3652 {
yyb3652 = yyj3652 > l
} else {
yyb3652 = r.CheckBreak()
}
if yyb3652 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3652-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 {
yym3656 := z.EncBinary()
_ = yym3656
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3657 := !z.EncBinary()
yy2arr3657 := z.EncBasicHandle().StructToArray
var yyq3657 [3]bool
_, _, _ = yysep3657, yyq3657, yy2arr3657
const yyr3657 bool = false
yyq3657[0] = x.Kind != ""
yyq3657[1] = x.APIVersion != ""
var yynn3657 int
if yyr3657 || yy2arr3657 {
r.EncodeArrayStart(3)
} else {
yynn3657 = 1
for _, b := range yyq3657 {
if b {
yynn3657++
}
}
r.EncodeMapStart(yynn3657)
yynn3657 = 0
}
if yyr3657 || yy2arr3657 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3657[0] {
yym3659 := z.EncBinary()
_ = yym3659
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3657[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3660 := z.EncBinary()
_ = yym3660
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3657 || yy2arr3657 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3657[1] {
yym3662 := z.EncBinary()
_ = yym3662
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3657[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3663 := z.EncBinary()
_ = yym3663
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3657 || yy2arr3657 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3665 := z.EncBinary()
_ = yym3665
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)
yym3666 := z.EncBinary()
_ = yym3666
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr3657 || yy2arr3657 {
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
yym3667 := z.DecBinary()
_ = yym3667
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3668 := r.ContainerType()
if yyct3668 == codecSelferValueTypeMap1234 {
yyl3668 := r.ReadMapStart()
if yyl3668 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3668, d)
}
} else if yyct3668 == codecSelferValueTypeArray1234 {
yyl3668 := r.ReadArrayStart()
if yyl3668 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3668, 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 yys3669Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3669Slc
var yyhl3669 bool = l >= 0
for yyj3669 := 0; ; yyj3669++ {
if yyhl3669 {
if yyj3669 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3669Slc = r.DecodeBytes(yys3669Slc, true, true)
yys3669 := string(yys3669Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3669 {
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, yys3669)
} // end switch yys3669
} // end for yyj3669
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 yyj3673 int
var yyb3673 bool
var yyhl3673 bool = l >= 0
yyj3673++
if yyhl3673 {
yyb3673 = yyj3673 > l
} else {
yyb3673 = r.CheckBreak()
}
if yyb3673 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3673++
if yyhl3673 {
yyb3673 = yyj3673 > l
} else {
yyb3673 = r.CheckBreak()
}
if yyb3673 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3673++
if yyhl3673 {
yyb3673 = yyj3673 > l
} else {
yyb3673 = r.CheckBreak()
}
if yyb3673 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj3673++
if yyhl3673 {
yyb3673 = yyj3673 > l
} else {
yyb3673 = r.CheckBreak()
}
if yyb3673 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3673-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 {
yym3677 := z.EncBinary()
_ = yym3677
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3678 := !z.EncBinary()
yy2arr3678 := z.EncBasicHandle().StructToArray
var yyq3678 [5]bool
_, _, _ = yysep3678, yyq3678, yy2arr3678
const yyr3678 bool = false
yyq3678[4] = x.Controller != nil
var yynn3678 int
if yyr3678 || yy2arr3678 {
r.EncodeArrayStart(5)
} else {
yynn3678 = 4
for _, b := range yyq3678 {
if b {
yynn3678++
}
}
r.EncodeMapStart(yynn3678)
yynn3678 = 0
}
if yyr3678 || yy2arr3678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3680 := z.EncBinary()
_ = yym3680
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)
yym3681 := z.EncBinary()
_ = yym3681
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr3678 || yy2arr3678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3683 := z.EncBinary()
_ = yym3683
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)
yym3684 := z.EncBinary()
_ = yym3684
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
if yyr3678 || yy2arr3678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3686 := z.EncBinary()
_ = yym3686
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)
yym3687 := z.EncBinary()
_ = yym3687
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3678 || yy2arr3678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3689 := z.EncBinary()
_ = yym3689
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)
yym3690 := z.EncBinary()
_ = yym3690
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
if yyr3678 || yy2arr3678 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3678[4] {
if x.Controller == nil {
r.EncodeNil()
} else {
yy3692 := *x.Controller
yym3693 := z.EncBinary()
_ = yym3693
if false {
} else {
r.EncodeBool(bool(yy3692))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3678[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("controller"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Controller == nil {
r.EncodeNil()
} else {
yy3694 := *x.Controller
yym3695 := z.EncBinary()
_ = yym3695
if false {
} else {
r.EncodeBool(bool(yy3694))
}
}
}
}
if yyr3678 || yy2arr3678 {
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
yym3696 := z.DecBinary()
_ = yym3696
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3697 := r.ContainerType()
if yyct3697 == codecSelferValueTypeMap1234 {
yyl3697 := r.ReadMapStart()
if yyl3697 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3697, d)
}
} else if yyct3697 == codecSelferValueTypeArray1234 {
yyl3697 := r.ReadArrayStart()
if yyl3697 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3697, 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 yys3698Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3698Slc
var yyhl3698 bool = l >= 0
for yyj3698 := 0; ; yyj3698++ {
if yyhl3698 {
if yyj3698 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3698Slc = r.DecodeBytes(yys3698Slc, true, true)
yys3698 := string(yys3698Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3698 {
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)
}
yym3704 := z.DecBinary()
_ = yym3704
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3698)
} // end switch yys3698
} // end for yyj3698
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 yyj3705 int
var yyb3705 bool
var yyhl3705 bool = l >= 0
yyj3705++
if yyhl3705 {
yyb3705 = yyj3705 > l
} else {
yyb3705 = r.CheckBreak()
}
if yyb3705 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3705++
if yyhl3705 {
yyb3705 = yyj3705 > l
} else {
yyb3705 = r.CheckBreak()
}
if yyb3705 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3705++
if yyhl3705 {
yyb3705 = yyj3705 > l
} else {
yyb3705 = r.CheckBreak()
}
if yyb3705 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3705++
if yyhl3705 {
yyb3705 = yyj3705 > l
} else {
yyb3705 = r.CheckBreak()
}
if yyb3705 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3705++
if yyhl3705 {
yyb3705 = yyj3705 > l
} else {
yyb3705 = r.CheckBreak()
}
if yyb3705 {
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)
}
yym3711 := z.DecBinary()
_ = yym3711
if false {
} else {
*((*bool)(x.Controller)) = r.DecodeBool()
}
}
for {
yyj3705++
if yyhl3705 {
yyb3705 = yyj3705 > l
} else {
yyb3705 = r.CheckBreak()
}
if yyb3705 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3705-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 {
yym3712 := z.EncBinary()
_ = yym3712
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3713 := !z.EncBinary()
yy2arr3713 := z.EncBasicHandle().StructToArray
var yyq3713 [7]bool
_, _, _ = yysep3713, yyq3713, yy2arr3713
const yyr3713 bool = false
yyq3713[0] = x.Kind != ""
yyq3713[1] = x.Namespace != ""
yyq3713[2] = x.Name != ""
yyq3713[3] = x.UID != ""
yyq3713[4] = x.APIVersion != ""
yyq3713[5] = x.ResourceVersion != ""
yyq3713[6] = x.FieldPath != ""
var yynn3713 int
if yyr3713 || yy2arr3713 {
r.EncodeArrayStart(7)
} else {
yynn3713 = 0
for _, b := range yyq3713 {
if b {
yynn3713++
}
}
r.EncodeMapStart(yynn3713)
yynn3713 = 0
}
if yyr3713 || yy2arr3713 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3713[0] {
yym3715 := z.EncBinary()
_ = yym3715
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3713[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3716 := z.EncBinary()
_ = yym3716
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3713 || yy2arr3713 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3713[1] {
yym3718 := z.EncBinary()
_ = yym3718
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3713[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3719 := z.EncBinary()
_ = yym3719
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr3713 || yy2arr3713 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3713[2] {
yym3721 := z.EncBinary()
_ = yym3721
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3713[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3722 := z.EncBinary()
_ = yym3722
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr3713 || yy2arr3713 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3713[3] {
yym3724 := z.EncBinary()
_ = yym3724
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 yyq3713[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3725 := z.EncBinary()
_ = yym3725
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr3713 || yy2arr3713 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3713[4] {
yym3727 := z.EncBinary()
_ = yym3727
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3713[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3728 := z.EncBinary()
_ = yym3728
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3713 || yy2arr3713 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3713[5] {
yym3730 := z.EncBinary()
_ = yym3730
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3713[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3731 := z.EncBinary()
_ = yym3731
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr3713 || yy2arr3713 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3713[6] {
yym3733 := z.EncBinary()
_ = yym3733
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3713[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3734 := z.EncBinary()
_ = yym3734
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
}
if yyr3713 || yy2arr3713 {
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
yym3735 := z.DecBinary()
_ = yym3735
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3736 := r.ContainerType()
if yyct3736 == codecSelferValueTypeMap1234 {
yyl3736 := r.ReadMapStart()
if yyl3736 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3736, d)
}
} else if yyct3736 == codecSelferValueTypeArray1234 {
yyl3736 := r.ReadArrayStart()
if yyl3736 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3736, 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 yys3737Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3737Slc
var yyhl3737 bool = l >= 0
for yyj3737 := 0; ; yyj3737++ {
if yyhl3737 {
if yyj3737 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3737Slc = r.DecodeBytes(yys3737Slc, true, true)
yys3737 := string(yys3737Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3737 {
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, yys3737)
} // end switch yys3737
} // end for yyj3737
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 yyj3745 int
var yyb3745 bool
var yyhl3745 bool = l >= 0
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj3745++
if yyhl3745 {
yyb3745 = yyj3745 > l
} else {
yyb3745 = r.CheckBreak()
}
if yyb3745 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3745-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 {
yym3753 := z.EncBinary()
_ = yym3753
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3754 := !z.EncBinary()
yy2arr3754 := z.EncBasicHandle().StructToArray
var yyq3754 [1]bool
_, _, _ = yysep3754, yyq3754, yy2arr3754
const yyr3754 bool = false
var yynn3754 int
if yyr3754 || yy2arr3754 {
r.EncodeArrayStart(1)
} else {
yynn3754 = 1
for _, b := range yyq3754 {
if b {
yynn3754++
}
}
r.EncodeMapStart(yynn3754)
yynn3754 = 0
}
if yyr3754 || yy2arr3754 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3756 := z.EncBinary()
_ = yym3756
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)
yym3757 := z.EncBinary()
_ = yym3757
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr3754 || yy2arr3754 {
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
yym3758 := z.DecBinary()
_ = yym3758
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3759 := r.ContainerType()
if yyct3759 == codecSelferValueTypeMap1234 {
yyl3759 := r.ReadMapStart()
if yyl3759 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3759, d)
}
} else if yyct3759 == codecSelferValueTypeArray1234 {
yyl3759 := r.ReadArrayStart()
if yyl3759 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3759, 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 yys3760Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3760Slc
var yyhl3760 bool = l >= 0
for yyj3760 := 0; ; yyj3760++ {
if yyhl3760 {
if yyj3760 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3760Slc = r.DecodeBytes(yys3760Slc, true, true)
yys3760 := string(yys3760Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3760 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3760)
} // end switch yys3760
} // end for yyj3760
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 yyj3762 int
var yyb3762 bool
var yyhl3762 bool = l >= 0
yyj3762++
if yyhl3762 {
yyb3762 = yyj3762 > l
} else {
yyb3762 = r.CheckBreak()
}
if yyb3762 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj3762++
if yyhl3762 {
yyb3762 = yyj3762 > l
} else {
yyb3762 = r.CheckBreak()
}
if yyb3762 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3762-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 {
yym3764 := z.EncBinary()
_ = yym3764
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3765 := !z.EncBinary()
yy2arr3765 := z.EncBasicHandle().StructToArray
var yyq3765 [3]bool
_, _, _ = yysep3765, yyq3765, yy2arr3765
const yyr3765 bool = false
yyq3765[0] = x.Kind != ""
yyq3765[1] = x.APIVersion != ""
yyq3765[2] = true
var yynn3765 int
if yyr3765 || yy2arr3765 {
r.EncodeArrayStart(3)
} else {
yynn3765 = 0
for _, b := range yyq3765 {
if b {
yynn3765++
}
}
r.EncodeMapStart(yynn3765)
yynn3765 = 0
}
if yyr3765 || yy2arr3765 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3765[0] {
yym3767 := z.EncBinary()
_ = yym3767
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3765[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3768 := z.EncBinary()
_ = yym3768
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3765 || yy2arr3765 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3765[1] {
yym3770 := z.EncBinary()
_ = yym3770
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3765[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3771 := z.EncBinary()
_ = yym3771
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3765 || yy2arr3765 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3765[2] {
yy3773 := &x.Reference
yy3773.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3765[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3774 := &x.Reference
yy3774.CodecEncodeSelf(e)
}
}
if yyr3765 || yy2arr3765 {
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
yym3775 := z.DecBinary()
_ = yym3775
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3776 := r.ContainerType()
if yyct3776 == codecSelferValueTypeMap1234 {
yyl3776 := r.ReadMapStart()
if yyl3776 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3776, d)
}
} else if yyct3776 == codecSelferValueTypeArray1234 {
yyl3776 := r.ReadArrayStart()
if yyl3776 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3776, 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 yys3777Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3777Slc
var yyhl3777 bool = l >= 0
for yyj3777 := 0; ; yyj3777++ {
if yyhl3777 {
if yyj3777 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3777Slc = r.DecodeBytes(yys3777Slc, true, true)
yys3777 := string(yys3777Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3777 {
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 {
yyv3780 := &x.Reference
yyv3780.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3777)
} // end switch yys3777
} // end for yyj3777
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 yyj3781 int
var yyb3781 bool
var yyhl3781 bool = l >= 0
yyj3781++
if yyhl3781 {
yyb3781 = yyj3781 > l
} else {
yyb3781 = r.CheckBreak()
}
if yyb3781 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3781++
if yyhl3781 {
yyb3781 = yyj3781 > l
} else {
yyb3781 = r.CheckBreak()
}
if yyb3781 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3781++
if yyhl3781 {
yyb3781 = yyj3781 > l
} else {
yyb3781 = r.CheckBreak()
}
if yyb3781 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reference = ObjectReference{}
} else {
yyv3784 := &x.Reference
yyv3784.CodecDecodeSelf(d)
}
for {
yyj3781++
if yyhl3781 {
yyb3781 = yyj3781 > l
} else {
yyb3781 = r.CheckBreak()
}
if yyb3781 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3781-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 {
yym3785 := z.EncBinary()
_ = yym3785
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3786 := !z.EncBinary()
yy2arr3786 := z.EncBasicHandle().StructToArray
var yyq3786 [2]bool
_, _, _ = yysep3786, yyq3786, yy2arr3786
const yyr3786 bool = false
yyq3786[0] = x.Component != ""
yyq3786[1] = x.Host != ""
var yynn3786 int
if yyr3786 || yy2arr3786 {
r.EncodeArrayStart(2)
} else {
yynn3786 = 0
for _, b := range yyq3786 {
if b {
yynn3786++
}
}
r.EncodeMapStart(yynn3786)
yynn3786 = 0
}
if yyr3786 || yy2arr3786 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3786[0] {
yym3788 := z.EncBinary()
_ = yym3788
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3786[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("component"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3789 := z.EncBinary()
_ = yym3789
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
}
}
if yyr3786 || yy2arr3786 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3786[1] {
yym3791 := z.EncBinary()
_ = yym3791
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3786[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3792 := z.EncBinary()
_ = yym3792
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr3786 || yy2arr3786 {
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
yym3793 := z.DecBinary()
_ = yym3793
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3794 := r.ContainerType()
if yyct3794 == codecSelferValueTypeMap1234 {
yyl3794 := r.ReadMapStart()
if yyl3794 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3794, d)
}
} else if yyct3794 == codecSelferValueTypeArray1234 {
yyl3794 := r.ReadArrayStart()
if yyl3794 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3794, 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 yys3795Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3795Slc
var yyhl3795 bool = l >= 0
for yyj3795 := 0; ; yyj3795++ {
if yyhl3795 {
if yyj3795 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3795Slc = r.DecodeBytes(yys3795Slc, true, true)
yys3795 := string(yys3795Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3795 {
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, yys3795)
} // end switch yys3795
} // end for yyj3795
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 yyj3798 int
var yyb3798 bool
var yyhl3798 bool = l >= 0
yyj3798++
if yyhl3798 {
yyb3798 = yyj3798 > l
} else {
yyb3798 = r.CheckBreak()
}
if yyb3798 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Component = ""
} else {
x.Component = string(r.DecodeString())
}
yyj3798++
if yyhl3798 {
yyb3798 = yyj3798 > l
} else {
yyb3798 = r.CheckBreak()
}
if yyb3798 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
for {
yyj3798++
if yyhl3798 {
yyb3798 = yyj3798 > l
} else {
yyb3798 = r.CheckBreak()
}
if yyb3798 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3798-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 {
yym3801 := z.EncBinary()
_ = yym3801
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3802 := !z.EncBinary()
yy2arr3802 := z.EncBasicHandle().StructToArray
var yyq3802 [11]bool
_, _, _ = yysep3802, yyq3802, yy2arr3802
const yyr3802 bool = false
yyq3802[0] = x.Kind != ""
yyq3802[1] = x.APIVersion != ""
yyq3802[2] = true
yyq3802[3] = true
yyq3802[4] = x.Reason != ""
yyq3802[5] = x.Message != ""
yyq3802[6] = true
yyq3802[7] = true
yyq3802[8] = true
yyq3802[9] = x.Count != 0
yyq3802[10] = x.Type != ""
var yynn3802 int
if yyr3802 || yy2arr3802 {
r.EncodeArrayStart(11)
} else {
yynn3802 = 0
for _, b := range yyq3802 {
if b {
yynn3802++
}
}
r.EncodeMapStart(yynn3802)
yynn3802 = 0
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[0] {
yym3804 := z.EncBinary()
_ = yym3804
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3805 := z.EncBinary()
_ = yym3805
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[1] {
yym3807 := z.EncBinary()
_ = yym3807
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3808 := z.EncBinary()
_ = yym3808
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[2] {
yy3810 := &x.ObjectMeta
yy3810.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3802[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3811 := &x.ObjectMeta
yy3811.CodecEncodeSelf(e)
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[3] {
yy3813 := &x.InvolvedObject
yy3813.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3802[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3814 := &x.InvolvedObject
yy3814.CodecEncodeSelf(e)
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[4] {
yym3816 := z.EncBinary()
_ = yym3816
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3817 := z.EncBinary()
_ = yym3817
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[5] {
yym3819 := z.EncBinary()
_ = yym3819
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3820 := z.EncBinary()
_ = yym3820
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[6] {
yy3822 := &x.Source
yy3822.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3802[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("source"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3823 := &x.Source
yy3823.CodecEncodeSelf(e)
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[7] {
yy3825 := &x.FirstTimestamp
yym3826 := z.EncBinary()
_ = yym3826
if false {
} else if z.HasExtensions() && z.EncExt(yy3825) {
} else if yym3826 {
z.EncBinaryMarshal(yy3825)
} else if !yym3826 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3825)
} else {
z.EncFallback(yy3825)
}
} else {
r.EncodeNil()
}
} else {
if yyq3802[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3827 := &x.FirstTimestamp
yym3828 := z.EncBinary()
_ = yym3828
if false {
} else if z.HasExtensions() && z.EncExt(yy3827) {
} else if yym3828 {
z.EncBinaryMarshal(yy3827)
} else if !yym3828 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3827)
} else {
z.EncFallback(yy3827)
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[8] {
yy3830 := &x.LastTimestamp
yym3831 := z.EncBinary()
_ = yym3831
if false {
} else if z.HasExtensions() && z.EncExt(yy3830) {
} else if yym3831 {
z.EncBinaryMarshal(yy3830)
} else if !yym3831 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3830)
} else {
z.EncFallback(yy3830)
}
} else {
r.EncodeNil()
}
} else {
if yyq3802[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3832 := &x.LastTimestamp
yym3833 := z.EncBinary()
_ = yym3833
if false {
} else if z.HasExtensions() && z.EncExt(yy3832) {
} else if yym3833 {
z.EncBinaryMarshal(yy3832)
} else if !yym3833 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3832)
} else {
z.EncFallback(yy3832)
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[9] {
yym3835 := z.EncBinary()
_ = yym3835
if false {
} else {
r.EncodeInt(int64(x.Count))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq3802[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("count"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3836 := z.EncBinary()
_ = yym3836
if false {
} else {
r.EncodeInt(int64(x.Count))
}
}
}
if yyr3802 || yy2arr3802 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3802[10] {
yym3838 := z.EncBinary()
_ = yym3838
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3802[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3839 := z.EncBinary()
_ = yym3839
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3802 || yy2arr3802 {
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
yym3840 := z.DecBinary()
_ = yym3840
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3841 := r.ContainerType()
if yyct3841 == codecSelferValueTypeMap1234 {
yyl3841 := r.ReadMapStart()
if yyl3841 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3841, d)
}
} else if yyct3841 == codecSelferValueTypeArray1234 {
yyl3841 := r.ReadArrayStart()
if yyl3841 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3841, 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 yys3842Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3842Slc
var yyhl3842 bool = l >= 0
for yyj3842 := 0; ; yyj3842++ {
if yyhl3842 {
if yyj3842 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3842Slc = r.DecodeBytes(yys3842Slc, true, true)
yys3842 := string(yys3842Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3842 {
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 {
yyv3845 := &x.ObjectMeta
yyv3845.CodecDecodeSelf(d)
}
case "involvedObject":
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3846 := &x.InvolvedObject
yyv3846.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 {
yyv3849 := &x.Source
yyv3849.CodecDecodeSelf(d)
}
case "firstTimestamp":
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3850 := &x.FirstTimestamp
yym3851 := z.DecBinary()
_ = yym3851
if false {
} else if z.HasExtensions() && z.DecExt(yyv3850) {
} else if yym3851 {
z.DecBinaryUnmarshal(yyv3850)
} else if !yym3851 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3850)
} else {
z.DecFallback(yyv3850, false)
}
}
case "lastTimestamp":
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3852 := &x.LastTimestamp
yym3853 := z.DecBinary()
_ = yym3853
if false {
} else if z.HasExtensions() && z.DecExt(yyv3852) {
} else if yym3853 {
z.DecBinaryUnmarshal(yyv3852)
} else if !yym3853 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3852)
} else {
z.DecFallback(yyv3852, 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, yys3842)
} // end switch yys3842
} // end for yyj3842
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 yyj3856 int
var yyb3856 bool
var yyhl3856 bool = l >= 0
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3859 := &x.ObjectMeta
yyv3859.CodecDecodeSelf(d)
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv3860 := &x.InvolvedObject
yyv3860.CodecDecodeSelf(d)
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Source = EventSource{}
} else {
yyv3863 := &x.Source
yyv3863.CodecDecodeSelf(d)
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv3864 := &x.FirstTimestamp
yym3865 := z.DecBinary()
_ = yym3865
if false {
} else if z.HasExtensions() && z.DecExt(yyv3864) {
} else if yym3865 {
z.DecBinaryUnmarshal(yyv3864)
} else if !yym3865 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3864)
} else {
z.DecFallback(yyv3864, false)
}
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv3866 := &x.LastTimestamp
yym3867 := z.DecBinary()
_ = yym3867
if false {
} else if z.HasExtensions() && z.DecExt(yyv3866) {
} else if yym3867 {
z.DecBinaryUnmarshal(yyv3866)
} else if !yym3867 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3866)
} else {
z.DecFallback(yyv3866, false)
}
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int32(r.DecodeInt(32))
}
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
for {
yyj3856++
if yyhl3856 {
yyb3856 = yyj3856 > l
} else {
yyb3856 = r.CheckBreak()
}
if yyb3856 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3856-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 {
yym3870 := z.EncBinary()
_ = yym3870
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3871 := !z.EncBinary()
yy2arr3871 := z.EncBasicHandle().StructToArray
var yyq3871 [4]bool
_, _, _ = yysep3871, yyq3871, yy2arr3871
const yyr3871 bool = false
yyq3871[0] = x.Kind != ""
yyq3871[1] = x.APIVersion != ""
yyq3871[2] = true
var yynn3871 int
if yyr3871 || yy2arr3871 {
r.EncodeArrayStart(4)
} else {
yynn3871 = 1
for _, b := range yyq3871 {
if b {
yynn3871++
}
}
r.EncodeMapStart(yynn3871)
yynn3871 = 0
}
if yyr3871 || yy2arr3871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3871[0] {
yym3873 := z.EncBinary()
_ = yym3873
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3871[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3874 := z.EncBinary()
_ = yym3874
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3871 || yy2arr3871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3871[1] {
yym3876 := z.EncBinary()
_ = yym3876
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3871[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3877 := z.EncBinary()
_ = yym3877
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3871 || yy2arr3871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3871[2] {
yy3879 := &x.ListMeta
yym3880 := z.EncBinary()
_ = yym3880
if false {
} else if z.HasExtensions() && z.EncExt(yy3879) {
} else {
z.EncFallback(yy3879)
}
} else {
r.EncodeNil()
}
} else {
if yyq3871[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3881 := &x.ListMeta
yym3882 := z.EncBinary()
_ = yym3882
if false {
} else if z.HasExtensions() && z.EncExt(yy3881) {
} else {
z.EncFallback(yy3881)
}
}
}
if yyr3871 || yy2arr3871 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3884 := z.EncBinary()
_ = yym3884
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 {
yym3885 := z.EncBinary()
_ = yym3885
if false {
} else {
h.encSliceEvent(([]Event)(x.Items), e)
}
}
}
if yyr3871 || yy2arr3871 {
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
yym3886 := z.DecBinary()
_ = yym3886
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3887 := r.ContainerType()
if yyct3887 == codecSelferValueTypeMap1234 {
yyl3887 := r.ReadMapStart()
if yyl3887 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3887, d)
}
} else if yyct3887 == codecSelferValueTypeArray1234 {
yyl3887 := r.ReadArrayStart()
if yyl3887 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3887, 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 yys3888Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3888Slc
var yyhl3888 bool = l >= 0
for yyj3888 := 0; ; yyj3888++ {
if yyhl3888 {
if yyj3888 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3888Slc = r.DecodeBytes(yys3888Slc, true, true)
yys3888 := string(yys3888Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3888 {
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 {
yyv3891 := &x.ListMeta
yym3892 := z.DecBinary()
_ = yym3892
if false {
} else if z.HasExtensions() && z.DecExt(yyv3891) {
} else {
z.DecFallback(yyv3891, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3893 := &x.Items
yym3894 := z.DecBinary()
_ = yym3894
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3893), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3888)
} // end switch yys3888
} // end for yyj3888
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 yyj3895 int
var yyb3895 bool
var yyhl3895 bool = l >= 0
yyj3895++
if yyhl3895 {
yyb3895 = yyj3895 > l
} else {
yyb3895 = r.CheckBreak()
}
if yyb3895 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3895++
if yyhl3895 {
yyb3895 = yyj3895 > l
} else {
yyb3895 = r.CheckBreak()
}
if yyb3895 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3895++
if yyhl3895 {
yyb3895 = yyj3895 > l
} else {
yyb3895 = r.CheckBreak()
}
if yyb3895 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3898 := &x.ListMeta
yym3899 := z.DecBinary()
_ = yym3899
if false {
} else if z.HasExtensions() && z.DecExt(yyv3898) {
} else {
z.DecFallback(yyv3898, false)
}
}
yyj3895++
if yyhl3895 {
yyb3895 = yyj3895 > l
} else {
yyb3895 = r.CheckBreak()
}
if yyb3895 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3900 := &x.Items
yym3901 := z.DecBinary()
_ = yym3901
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3900), d)
}
}
for {
yyj3895++
if yyhl3895 {
yyb3895 = yyj3895 > l
} else {
yyb3895 = r.CheckBreak()
}
if yyb3895 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3895-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 {
yym3902 := z.EncBinary()
_ = yym3902
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3903 := !z.EncBinary()
yy2arr3903 := z.EncBasicHandle().StructToArray
var yyq3903 [4]bool
_, _, _ = yysep3903, yyq3903, yy2arr3903
const yyr3903 bool = false
yyq3903[0] = x.Kind != ""
yyq3903[1] = x.APIVersion != ""
yyq3903[2] = true
var yynn3903 int
if yyr3903 || yy2arr3903 {
r.EncodeArrayStart(4)
} else {
yynn3903 = 1
for _, b := range yyq3903 {
if b {
yynn3903++
}
}
r.EncodeMapStart(yynn3903)
yynn3903 = 0
}
if yyr3903 || yy2arr3903 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3903[0] {
yym3905 := z.EncBinary()
_ = yym3905
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3903[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3906 := z.EncBinary()
_ = yym3906
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3903 || yy2arr3903 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3903[1] {
yym3908 := z.EncBinary()
_ = yym3908
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3903[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3909 := z.EncBinary()
_ = yym3909
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3903 || yy2arr3903 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3903[2] {
yy3911 := &x.ListMeta
yym3912 := z.EncBinary()
_ = yym3912
if false {
} else if z.HasExtensions() && z.EncExt(yy3911) {
} else {
z.EncFallback(yy3911)
}
} else {
r.EncodeNil()
}
} else {
if yyq3903[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3913 := &x.ListMeta
yym3914 := z.EncBinary()
_ = yym3914
if false {
} else if z.HasExtensions() && z.EncExt(yy3913) {
} else {
z.EncFallback(yy3913)
}
}
}
if yyr3903 || yy2arr3903 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3916 := z.EncBinary()
_ = yym3916
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 {
yym3917 := z.EncBinary()
_ = yym3917
if false {
} else {
h.encSliceruntime_Object(([]pkg7_runtime.Object)(x.Items), e)
}
}
}
if yyr3903 || yy2arr3903 {
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
yym3918 := z.DecBinary()
_ = yym3918
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3919 := r.ContainerType()
if yyct3919 == codecSelferValueTypeMap1234 {
yyl3919 := r.ReadMapStart()
if yyl3919 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3919, d)
}
} else if yyct3919 == codecSelferValueTypeArray1234 {
yyl3919 := r.ReadArrayStart()
if yyl3919 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3919, 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 yys3920Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3920Slc
var yyhl3920 bool = l >= 0
for yyj3920 := 0; ; yyj3920++ {
if yyhl3920 {
if yyj3920 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3920Slc = r.DecodeBytes(yys3920Slc, true, true)
yys3920 := string(yys3920Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3920 {
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 {
yyv3923 := &x.ListMeta
yym3924 := z.DecBinary()
_ = yym3924
if false {
} else if z.HasExtensions() && z.DecExt(yyv3923) {
} else {
z.DecFallback(yyv3923, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3925 := &x.Items
yym3926 := z.DecBinary()
_ = yym3926
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3925), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3920)
} // end switch yys3920
} // end for yyj3920
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 yyj3927 int
var yyb3927 bool
var yyhl3927 bool = l >= 0
yyj3927++
if yyhl3927 {
yyb3927 = yyj3927 > l
} else {
yyb3927 = r.CheckBreak()
}
if yyb3927 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3927++
if yyhl3927 {
yyb3927 = yyj3927 > l
} else {
yyb3927 = r.CheckBreak()
}
if yyb3927 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3927++
if yyhl3927 {
yyb3927 = yyj3927 > l
} else {
yyb3927 = r.CheckBreak()
}
if yyb3927 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3930 := &x.ListMeta
yym3931 := z.DecBinary()
_ = yym3931
if false {
} else if z.HasExtensions() && z.DecExt(yyv3930) {
} else {
z.DecFallback(yyv3930, false)
}
}
yyj3927++
if yyhl3927 {
yyb3927 = yyj3927 > l
} else {
yyb3927 = r.CheckBreak()
}
if yyb3927 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3932 := &x.Items
yym3933 := z.DecBinary()
_ = yym3933
if false {
} else {
h.decSliceruntime_Object((*[]pkg7_runtime.Object)(yyv3932), d)
}
}
for {
yyj3927++
if yyhl3927 {
yyb3927 = yyj3927 > l
} else {
yyb3927 = r.CheckBreak()
}
if yyb3927 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3927-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3934 := z.EncBinary()
_ = yym3934
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
yym3935 := z.DecBinary()
_ = yym3935
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 {
yym3936 := z.EncBinary()
_ = yym3936
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3937 := !z.EncBinary()
yy2arr3937 := z.EncBasicHandle().StructToArray
var yyq3937 [6]bool
_, _, _ = yysep3937, yyq3937, yy2arr3937
const yyr3937 bool = false
yyq3937[0] = x.Type != ""
yyq3937[1] = len(x.Max) != 0
yyq3937[2] = len(x.Min) != 0
yyq3937[3] = len(x.Default) != 0
yyq3937[4] = len(x.DefaultRequest) != 0
yyq3937[5] = len(x.MaxLimitRequestRatio) != 0
var yynn3937 int
if yyr3937 || yy2arr3937 {
r.EncodeArrayStart(6)
} else {
yynn3937 = 0
for _, b := range yyq3937 {
if b {
yynn3937++
}
}
r.EncodeMapStart(yynn3937)
yynn3937 = 0
}
if yyr3937 || yy2arr3937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3937[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3937[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3937 || yy2arr3937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3937[1] {
if x.Max == nil {
r.EncodeNil()
} else {
x.Max.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3937[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 yyr3937 || yy2arr3937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3937[2] {
if x.Min == nil {
r.EncodeNil()
} else {
x.Min.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3937[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 yyr3937 || yy2arr3937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3937[3] {
if x.Default == nil {
r.EncodeNil()
} else {
x.Default.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3937[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 yyr3937 || yy2arr3937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3937[4] {
if x.DefaultRequest == nil {
r.EncodeNil()
} else {
x.DefaultRequest.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3937[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 yyr3937 || yy2arr3937 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3937[5] {
if x.MaxLimitRequestRatio == nil {
r.EncodeNil()
} else {
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3937[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 yyr3937 || yy2arr3937 {
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
yym3944 := z.DecBinary()
_ = yym3944
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3945 := r.ContainerType()
if yyct3945 == codecSelferValueTypeMap1234 {
yyl3945 := r.ReadMapStart()
if yyl3945 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3945, d)
}
} else if yyct3945 == codecSelferValueTypeArray1234 {
yyl3945 := r.ReadArrayStart()
if yyl3945 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3945, 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 yys3946Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3946Slc
var yyhl3946 bool = l >= 0
for yyj3946 := 0; ; yyj3946++ {
if yyhl3946 {
if yyj3946 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3946Slc = r.DecodeBytes(yys3946Slc, true, true)
yys3946 := string(yys3946Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3946 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
case "max":
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3948 := &x.Max
yyv3948.CodecDecodeSelf(d)
}
case "min":
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3949 := &x.Min
yyv3949.CodecDecodeSelf(d)
}
case "default":
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3950 := &x.Default
yyv3950.CodecDecodeSelf(d)
}
case "defaultRequest":
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3951 := &x.DefaultRequest
yyv3951.CodecDecodeSelf(d)
}
case "maxLimitRequestRatio":
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3952 := &x.MaxLimitRequestRatio
yyv3952.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3946)
} // end switch yys3946
} // end for yyj3946
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 yyj3953 int
var yyb3953 bool
var yyhl3953 bool = l >= 0
yyj3953++
if yyhl3953 {
yyb3953 = yyj3953 > l
} else {
yyb3953 = r.CheckBreak()
}
if yyb3953 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
yyj3953++
if yyhl3953 {
yyb3953 = yyj3953 > l
} else {
yyb3953 = r.CheckBreak()
}
if yyb3953 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3955 := &x.Max
yyv3955.CodecDecodeSelf(d)
}
yyj3953++
if yyhl3953 {
yyb3953 = yyj3953 > l
} else {
yyb3953 = r.CheckBreak()
}
if yyb3953 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3956 := &x.Min
yyv3956.CodecDecodeSelf(d)
}
yyj3953++
if yyhl3953 {
yyb3953 = yyj3953 > l
} else {
yyb3953 = r.CheckBreak()
}
if yyb3953 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3957 := &x.Default
yyv3957.CodecDecodeSelf(d)
}
yyj3953++
if yyhl3953 {
yyb3953 = yyj3953 > l
} else {
yyb3953 = r.CheckBreak()
}
if yyb3953 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3958 := &x.DefaultRequest
yyv3958.CodecDecodeSelf(d)
}
yyj3953++
if yyhl3953 {
yyb3953 = yyj3953 > l
} else {
yyb3953 = r.CheckBreak()
}
if yyb3953 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3959 := &x.MaxLimitRequestRatio
yyv3959.CodecDecodeSelf(d)
}
for {
yyj3953++
if yyhl3953 {
yyb3953 = yyj3953 > l
} else {
yyb3953 = r.CheckBreak()
}
if yyb3953 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3953-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 {
yym3960 := z.EncBinary()
_ = yym3960
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3961 := !z.EncBinary()
yy2arr3961 := z.EncBasicHandle().StructToArray
var yyq3961 [1]bool
_, _, _ = yysep3961, yyq3961, yy2arr3961
const yyr3961 bool = false
var yynn3961 int
if yyr3961 || yy2arr3961 {
r.EncodeArrayStart(1)
} else {
yynn3961 = 1
for _, b := range yyq3961 {
if b {
yynn3961++
}
}
r.EncodeMapStart(yynn3961)
yynn3961 = 0
}
if yyr3961 || yy2arr3961 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Limits == nil {
r.EncodeNil()
} else {
yym3963 := z.EncBinary()
_ = yym3963
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 {
yym3964 := z.EncBinary()
_ = yym3964
if false {
} else {
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
}
}
}
if yyr3961 || yy2arr3961 {
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
yym3965 := z.DecBinary()
_ = yym3965
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3966 := r.ContainerType()
if yyct3966 == codecSelferValueTypeMap1234 {
yyl3966 := r.ReadMapStart()
if yyl3966 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3966, d)
}
} else if yyct3966 == codecSelferValueTypeArray1234 {
yyl3966 := r.ReadArrayStart()
if yyl3966 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3966, 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 yys3967Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3967Slc
var yyhl3967 bool = l >= 0
for yyj3967 := 0; ; yyj3967++ {
if yyhl3967 {
if yyj3967 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3967Slc = r.DecodeBytes(yys3967Slc, true, true)
yys3967 := string(yys3967Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3967 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3968 := &x.Limits
yym3969 := z.DecBinary()
_ = yym3969
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3968), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3967)
} // end switch yys3967
} // end for yyj3967
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 yyj3970 int
var yyb3970 bool
var yyhl3970 bool = l >= 0
yyj3970++
if yyhl3970 {
yyb3970 = yyj3970 > l
} else {
yyb3970 = r.CheckBreak()
}
if yyb3970 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3971 := &x.Limits
yym3972 := z.DecBinary()
_ = yym3972
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3971), d)
}
}
for {
yyj3970++
if yyhl3970 {
yyb3970 = yyj3970 > l
} else {
yyb3970 = r.CheckBreak()
}
if yyb3970 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3970-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 {
yym3973 := z.EncBinary()
_ = yym3973
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3974 := !z.EncBinary()
yy2arr3974 := z.EncBasicHandle().StructToArray
var yyq3974 [4]bool
_, _, _ = yysep3974, yyq3974, yy2arr3974
const yyr3974 bool = false
yyq3974[0] = x.Kind != ""
yyq3974[1] = x.APIVersion != ""
yyq3974[2] = true
yyq3974[3] = true
var yynn3974 int
if yyr3974 || yy2arr3974 {
r.EncodeArrayStart(4)
} else {
yynn3974 = 0
for _, b := range yyq3974 {
if b {
yynn3974++
}
}
r.EncodeMapStart(yynn3974)
yynn3974 = 0
}
if yyr3974 || yy2arr3974 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3974[0] {
yym3976 := z.EncBinary()
_ = yym3976
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3974[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3977 := z.EncBinary()
_ = yym3977
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3974 || yy2arr3974 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3974[1] {
yym3979 := z.EncBinary()
_ = yym3979
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3974[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3980 := z.EncBinary()
_ = yym3980
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3974 || yy2arr3974 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3974[2] {
yy3982 := &x.ObjectMeta
yy3982.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3974[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3983 := &x.ObjectMeta
yy3983.CodecEncodeSelf(e)
}
}
if yyr3974 || yy2arr3974 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3974[3] {
yy3985 := &x.Spec
yy3985.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3974[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3986 := &x.Spec
yy3986.CodecEncodeSelf(e)
}
}
if yyr3974 || yy2arr3974 {
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
yym3987 := z.DecBinary()
_ = yym3987
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3988 := r.ContainerType()
if yyct3988 == codecSelferValueTypeMap1234 {
yyl3988 := r.ReadMapStart()
if yyl3988 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3988, d)
}
} else if yyct3988 == codecSelferValueTypeArray1234 {
yyl3988 := r.ReadArrayStart()
if yyl3988 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3988, 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 yys3989Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3989Slc
var yyhl3989 bool = l >= 0
for yyj3989 := 0; ; yyj3989++ {
if yyhl3989 {
if yyj3989 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3989Slc = r.DecodeBytes(yys3989Slc, true, true)
yys3989 := string(yys3989Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3989 {
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 {
yyv3992 := &x.ObjectMeta
yyv3992.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3993 := &x.Spec
yyv3993.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3989)
} // end switch yys3989
} // end for yyj3989
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 yyj3994 int
var yyb3994 bool
var yyhl3994 bool = l >= 0
yyj3994++
if yyhl3994 {
yyb3994 = yyj3994 > l
} else {
yyb3994 = r.CheckBreak()
}
if yyb3994 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3994++
if yyhl3994 {
yyb3994 = yyj3994 > l
} else {
yyb3994 = r.CheckBreak()
}
if yyb3994 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3994++
if yyhl3994 {
yyb3994 = yyj3994 > l
} else {
yyb3994 = r.CheckBreak()
}
if yyb3994 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3997 := &x.ObjectMeta
yyv3997.CodecDecodeSelf(d)
}
yyj3994++
if yyhl3994 {
yyb3994 = yyj3994 > l
} else {
yyb3994 = r.CheckBreak()
}
if yyb3994 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3998 := &x.Spec
yyv3998.CodecDecodeSelf(d)
}
for {
yyj3994++
if yyhl3994 {
yyb3994 = yyj3994 > l
} else {
yyb3994 = r.CheckBreak()
}
if yyb3994 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3994-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *LimitRangeList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3999 := z.EncBinary()
_ = yym3999
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4000 := !z.EncBinary()
yy2arr4000 := z.EncBasicHandle().StructToArray
var yyq4000 [4]bool
_, _, _ = yysep4000, yyq4000, yy2arr4000
const yyr4000 bool = false
yyq4000[0] = x.Kind != ""
yyq4000[1] = x.APIVersion != ""
yyq4000[2] = true
var yynn4000 int
if yyr4000 || yy2arr4000 {
r.EncodeArrayStart(4)
} else {
yynn4000 = 1
for _, b := range yyq4000 {
if b {
yynn4000++
}
}
r.EncodeMapStart(yynn4000)
yynn4000 = 0
}
if yyr4000 || yy2arr4000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4000[0] {
yym4002 := z.EncBinary()
_ = yym4002
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4000[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4003 := z.EncBinary()
_ = yym4003
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4000 || yy2arr4000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4000[1] {
yym4005 := z.EncBinary()
_ = yym4005
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4000[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4006 := z.EncBinary()
_ = yym4006
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4000 || yy2arr4000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4000[2] {
yy4008 := &x.ListMeta
yym4009 := z.EncBinary()
_ = yym4009
if false {
} else if z.HasExtensions() && z.EncExt(yy4008) {
} else {
z.EncFallback(yy4008)
}
} else {
r.EncodeNil()
}
} else {
if yyq4000[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4010 := &x.ListMeta
yym4011 := z.EncBinary()
_ = yym4011
if false {
} else if z.HasExtensions() && z.EncExt(yy4010) {
} else {
z.EncFallback(yy4010)
}
}
}
if yyr4000 || yy2arr4000 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4013 := z.EncBinary()
_ = yym4013
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 {
yym4014 := z.EncBinary()
_ = yym4014
if false {
} else {
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
}
}
}
if yyr4000 || yy2arr4000 {
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
yym4015 := z.DecBinary()
_ = yym4015
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4016 := r.ContainerType()
if yyct4016 == codecSelferValueTypeMap1234 {
yyl4016 := r.ReadMapStart()
if yyl4016 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4016, d)
}
} else if yyct4016 == codecSelferValueTypeArray1234 {
yyl4016 := r.ReadArrayStart()
if yyl4016 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4016, 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 yys4017Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4017Slc
var yyhl4017 bool = l >= 0
for yyj4017 := 0; ; yyj4017++ {
if yyhl4017 {
if yyj4017 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4017Slc = r.DecodeBytes(yys4017Slc, true, true)
yys4017 := string(yys4017Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4017 {
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 {
yyv4020 := &x.ListMeta
yym4021 := z.DecBinary()
_ = yym4021
if false {
} else if z.HasExtensions() && z.DecExt(yyv4020) {
} else {
z.DecFallback(yyv4020, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4022 := &x.Items
yym4023 := z.DecBinary()
_ = yym4023
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4022), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4017)
} // end switch yys4017
} // end for yyj4017
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 yyj4024 int
var yyb4024 bool
var yyhl4024 bool = l >= 0
yyj4024++
if yyhl4024 {
yyb4024 = yyj4024 > l
} else {
yyb4024 = r.CheckBreak()
}
if yyb4024 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4024++
if yyhl4024 {
yyb4024 = yyj4024 > l
} else {
yyb4024 = r.CheckBreak()
}
if yyb4024 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4024++
if yyhl4024 {
yyb4024 = yyj4024 > l
} else {
yyb4024 = r.CheckBreak()
}
if yyb4024 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4027 := &x.ListMeta
yym4028 := z.DecBinary()
_ = yym4028
if false {
} else if z.HasExtensions() && z.DecExt(yyv4027) {
} else {
z.DecFallback(yyv4027, false)
}
}
yyj4024++
if yyhl4024 {
yyb4024 = yyj4024 > l
} else {
yyb4024 = r.CheckBreak()
}
if yyb4024 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4029 := &x.Items
yym4030 := z.DecBinary()
_ = yym4030
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv4029), d)
}
}
for {
yyj4024++
if yyhl4024 {
yyb4024 = yyj4024 > l
} else {
yyb4024 = r.CheckBreak()
}
if yyb4024 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4024-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceQuotaScope) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4031 := z.EncBinary()
_ = yym4031
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
yym4032 := z.DecBinary()
_ = yym4032
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 {
yym4033 := z.EncBinary()
_ = yym4033
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4034 := !z.EncBinary()
yy2arr4034 := z.EncBasicHandle().StructToArray
var yyq4034 [2]bool
_, _, _ = yysep4034, yyq4034, yy2arr4034
const yyr4034 bool = false
yyq4034[0] = len(x.Hard) != 0
yyq4034[1] = len(x.Scopes) != 0
var yynn4034 int
if yyr4034 || yy2arr4034 {
r.EncodeArrayStart(2)
} else {
yynn4034 = 0
for _, b := range yyq4034 {
if b {
yynn4034++
}
}
r.EncodeMapStart(yynn4034)
yynn4034 = 0
}
if yyr4034 || yy2arr4034 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4034[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4034[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 yyr4034 || yy2arr4034 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4034[1] {
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4037 := z.EncBinary()
_ = yym4037
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4034[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scopes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Scopes == nil {
r.EncodeNil()
} else {
yym4038 := z.EncBinary()
_ = yym4038
if false {
} else {
h.encSliceResourceQuotaScope(([]ResourceQuotaScope)(x.Scopes), e)
}
}
}
}
if yyr4034 || yy2arr4034 {
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
yym4039 := z.DecBinary()
_ = yym4039
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4040 := r.ContainerType()
if yyct4040 == codecSelferValueTypeMap1234 {
yyl4040 := r.ReadMapStart()
if yyl4040 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4040, d)
}
} else if yyct4040 == codecSelferValueTypeArray1234 {
yyl4040 := r.ReadArrayStart()
if yyl4040 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4040, 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 yys4041Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4041Slc
var yyhl4041 bool = l >= 0
for yyj4041 := 0; ; yyj4041++ {
if yyhl4041 {
if yyj4041 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4041Slc = r.DecodeBytes(yys4041Slc, true, true)
yys4041 := string(yys4041Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4041 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4042 := &x.Hard
yyv4042.CodecDecodeSelf(d)
}
case "scopes":
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4043 := &x.Scopes
yym4044 := z.DecBinary()
_ = yym4044
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4043), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4041)
} // end switch yys4041
} // end for yyj4041
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 yyj4045 int
var yyb4045 bool
var yyhl4045 bool = l >= 0
yyj4045++
if yyhl4045 {
yyb4045 = yyj4045 > l
} else {
yyb4045 = r.CheckBreak()
}
if yyb4045 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4046 := &x.Hard
yyv4046.CodecDecodeSelf(d)
}
yyj4045++
if yyhl4045 {
yyb4045 = yyj4045 > l
} else {
yyb4045 = r.CheckBreak()
}
if yyb4045 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scopes = nil
} else {
yyv4047 := &x.Scopes
yym4048 := z.DecBinary()
_ = yym4048
if false {
} else {
h.decSliceResourceQuotaScope((*[]ResourceQuotaScope)(yyv4047), d)
}
}
for {
yyj4045++
if yyhl4045 {
yyb4045 = yyj4045 > l
} else {
yyb4045 = r.CheckBreak()
}
if yyb4045 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4045-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 {
yym4049 := z.EncBinary()
_ = yym4049
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4050 := !z.EncBinary()
yy2arr4050 := z.EncBasicHandle().StructToArray
var yyq4050 [2]bool
_, _, _ = yysep4050, yyq4050, yy2arr4050
const yyr4050 bool = false
yyq4050[0] = len(x.Hard) != 0
yyq4050[1] = len(x.Used) != 0
var yynn4050 int
if yyr4050 || yy2arr4050 {
r.EncodeArrayStart(2)
} else {
yynn4050 = 0
for _, b := range yyq4050 {
if b {
yynn4050++
}
}
r.EncodeMapStart(yynn4050)
yynn4050 = 0
}
if yyr4050 || yy2arr4050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4050[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4050[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 yyr4050 || yy2arr4050 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4050[1] {
if x.Used == nil {
r.EncodeNil()
} else {
x.Used.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4050[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 yyr4050 || yy2arr4050 {
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
yym4053 := z.DecBinary()
_ = yym4053
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4054 := r.ContainerType()
if yyct4054 == codecSelferValueTypeMap1234 {
yyl4054 := r.ReadMapStart()
if yyl4054 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4054, d)
}
} else if yyct4054 == codecSelferValueTypeArray1234 {
yyl4054 := r.ReadArrayStart()
if yyl4054 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4054, 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 yys4055Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4055Slc
var yyhl4055 bool = l >= 0
for yyj4055 := 0; ; yyj4055++ {
if yyhl4055 {
if yyj4055 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4055Slc = r.DecodeBytes(yys4055Slc, true, true)
yys4055 := string(yys4055Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4055 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4056 := &x.Hard
yyv4056.CodecDecodeSelf(d)
}
case "used":
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4057 := &x.Used
yyv4057.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4055)
} // end switch yys4055
} // end for yyj4055
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 yyj4058 int
var yyb4058 bool
var yyhl4058 bool = l >= 0
yyj4058++
if yyhl4058 {
yyb4058 = yyj4058 > l
} else {
yyb4058 = r.CheckBreak()
}
if yyb4058 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv4059 := &x.Hard
yyv4059.CodecDecodeSelf(d)
}
yyj4058++
if yyhl4058 {
yyb4058 = yyj4058 > l
} else {
yyb4058 = r.CheckBreak()
}
if yyb4058 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv4060 := &x.Used
yyv4060.CodecDecodeSelf(d)
}
for {
yyj4058++
if yyhl4058 {
yyb4058 = yyj4058 > l
} else {
yyb4058 = r.CheckBreak()
}
if yyb4058 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4058-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 {
yym4061 := z.EncBinary()
_ = yym4061
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4062 := !z.EncBinary()
yy2arr4062 := z.EncBasicHandle().StructToArray
var yyq4062 [5]bool
_, _, _ = yysep4062, yyq4062, yy2arr4062
const yyr4062 bool = false
yyq4062[0] = x.Kind != ""
yyq4062[1] = x.APIVersion != ""
yyq4062[2] = true
yyq4062[3] = true
yyq4062[4] = true
var yynn4062 int
if yyr4062 || yy2arr4062 {
r.EncodeArrayStart(5)
} else {
yynn4062 = 0
for _, b := range yyq4062 {
if b {
yynn4062++
}
}
r.EncodeMapStart(yynn4062)
yynn4062 = 0
}
if yyr4062 || yy2arr4062 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4062[0] {
yym4064 := z.EncBinary()
_ = yym4064
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4062[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4065 := z.EncBinary()
_ = yym4065
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4062 || yy2arr4062 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4062[1] {
yym4067 := z.EncBinary()
_ = yym4067
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4062[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4068 := z.EncBinary()
_ = yym4068
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4062 || yy2arr4062 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4062[2] {
yy4070 := &x.ObjectMeta
yy4070.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4062[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4071 := &x.ObjectMeta
yy4071.CodecEncodeSelf(e)
}
}
if yyr4062 || yy2arr4062 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4062[3] {
yy4073 := &x.Spec
yy4073.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4062[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4074 := &x.Spec
yy4074.CodecEncodeSelf(e)
}
}
if yyr4062 || yy2arr4062 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4062[4] {
yy4076 := &x.Status
yy4076.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4062[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4077 := &x.Status
yy4077.CodecEncodeSelf(e)
}
}
if yyr4062 || yy2arr4062 {
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
yym4078 := z.DecBinary()
_ = yym4078
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4079 := r.ContainerType()
if yyct4079 == codecSelferValueTypeMap1234 {
yyl4079 := r.ReadMapStart()
if yyl4079 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4079, d)
}
} else if yyct4079 == codecSelferValueTypeArray1234 {
yyl4079 := r.ReadArrayStart()
if yyl4079 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4079, 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 yys4080Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4080Slc
var yyhl4080 bool = l >= 0
for yyj4080 := 0; ; yyj4080++ {
if yyhl4080 {
if yyj4080 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4080Slc = r.DecodeBytes(yys4080Slc, true, true)
yys4080 := string(yys4080Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4080 {
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 {
yyv4083 := &x.ObjectMeta
yyv4083.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4084 := &x.Spec
yyv4084.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4085 := &x.Status
yyv4085.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys4080)
} // end switch yys4080
} // end for yyj4080
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 yyj4086 int
var yyb4086 bool
var yyhl4086 bool = l >= 0
yyj4086++
if yyhl4086 {
yyb4086 = yyj4086 > l
} else {
yyb4086 = r.CheckBreak()
}
if yyb4086 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4086++
if yyhl4086 {
yyb4086 = yyj4086 > l
} else {
yyb4086 = r.CheckBreak()
}
if yyb4086 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4086++
if yyhl4086 {
yyb4086 = yyj4086 > l
} else {
yyb4086 = r.CheckBreak()
}
if yyb4086 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4089 := &x.ObjectMeta
yyv4089.CodecDecodeSelf(d)
}
yyj4086++
if yyhl4086 {
yyb4086 = yyj4086 > l
} else {
yyb4086 = r.CheckBreak()
}
if yyb4086 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv4090 := &x.Spec
yyv4090.CodecDecodeSelf(d)
}
yyj4086++
if yyhl4086 {
yyb4086 = yyj4086 > l
} else {
yyb4086 = r.CheckBreak()
}
if yyb4086 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv4091 := &x.Status
yyv4091.CodecDecodeSelf(d)
}
for {
yyj4086++
if yyhl4086 {
yyb4086 = yyj4086 > l
} else {
yyb4086 = r.CheckBreak()
}
if yyb4086 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4086-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 {
yym4092 := z.EncBinary()
_ = yym4092
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4093 := !z.EncBinary()
yy2arr4093 := z.EncBasicHandle().StructToArray
var yyq4093 [4]bool
_, _, _ = yysep4093, yyq4093, yy2arr4093
const yyr4093 bool = false
yyq4093[0] = x.Kind != ""
yyq4093[1] = x.APIVersion != ""
yyq4093[2] = true
var yynn4093 int
if yyr4093 || yy2arr4093 {
r.EncodeArrayStart(4)
} else {
yynn4093 = 1
for _, b := range yyq4093 {
if b {
yynn4093++
}
}
r.EncodeMapStart(yynn4093)
yynn4093 = 0
}
if yyr4093 || yy2arr4093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4093[0] {
yym4095 := z.EncBinary()
_ = yym4095
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4093[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4096 := z.EncBinary()
_ = yym4096
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4093 || yy2arr4093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4093[1] {
yym4098 := z.EncBinary()
_ = yym4098
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4093[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4099 := z.EncBinary()
_ = yym4099
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4093 || yy2arr4093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4093[2] {
yy4101 := &x.ListMeta
yym4102 := z.EncBinary()
_ = yym4102
if false {
} else if z.HasExtensions() && z.EncExt(yy4101) {
} else {
z.EncFallback(yy4101)
}
} else {
r.EncodeNil()
}
} else {
if yyq4093[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4103 := &x.ListMeta
yym4104 := z.EncBinary()
_ = yym4104
if false {
} else if z.HasExtensions() && z.EncExt(yy4103) {
} else {
z.EncFallback(yy4103)
}
}
}
if yyr4093 || yy2arr4093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4106 := z.EncBinary()
_ = yym4106
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 {
yym4107 := z.EncBinary()
_ = yym4107
if false {
} else {
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
}
}
}
if yyr4093 || yy2arr4093 {
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
yym4108 := z.DecBinary()
_ = yym4108
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4109 := r.ContainerType()
if yyct4109 == codecSelferValueTypeMap1234 {
yyl4109 := r.ReadMapStart()
if yyl4109 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4109, d)
}
} else if yyct4109 == codecSelferValueTypeArray1234 {
yyl4109 := r.ReadArrayStart()
if yyl4109 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4109, 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 yys4110Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4110Slc
var yyhl4110 bool = l >= 0
for yyj4110 := 0; ; yyj4110++ {
if yyhl4110 {
if yyj4110 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4110Slc = r.DecodeBytes(yys4110Slc, true, true)
yys4110 := string(yys4110Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4110 {
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 {
yyv4113 := &x.ListMeta
yym4114 := z.DecBinary()
_ = yym4114
if false {
} else if z.HasExtensions() && z.DecExt(yyv4113) {
} else {
z.DecFallback(yyv4113, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4115 := &x.Items
yym4116 := z.DecBinary()
_ = yym4116
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4115), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4110)
} // end switch yys4110
} // end for yyj4110
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 yyj4117 int
var yyb4117 bool
var yyhl4117 bool = l >= 0
yyj4117++
if yyhl4117 {
yyb4117 = yyj4117 > l
} else {
yyb4117 = r.CheckBreak()
}
if yyb4117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4117++
if yyhl4117 {
yyb4117 = yyj4117 > l
} else {
yyb4117 = r.CheckBreak()
}
if yyb4117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4117++
if yyhl4117 {
yyb4117 = yyj4117 > l
} else {
yyb4117 = r.CheckBreak()
}
if yyb4117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4120 := &x.ListMeta
yym4121 := z.DecBinary()
_ = yym4121
if false {
} else if z.HasExtensions() && z.DecExt(yyv4120) {
} else {
z.DecFallback(yyv4120, false)
}
}
yyj4117++
if yyhl4117 {
yyb4117 = yyj4117 > l
} else {
yyb4117 = r.CheckBreak()
}
if yyb4117 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4122 := &x.Items
yym4123 := z.DecBinary()
_ = yym4123
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv4122), d)
}
}
for {
yyj4117++
if yyhl4117 {
yyb4117 = yyj4117 > l
} else {
yyb4117 = r.CheckBreak()
}
if yyb4117 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4117-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 {
yym4124 := z.EncBinary()
_ = yym4124
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4125 := !z.EncBinary()
yy2arr4125 := z.EncBasicHandle().StructToArray
var yyq4125 [5]bool
_, _, _ = yysep4125, yyq4125, yy2arr4125
const yyr4125 bool = false
yyq4125[0] = x.Kind != ""
yyq4125[1] = x.APIVersion != ""
yyq4125[2] = true
yyq4125[3] = len(x.Data) != 0
yyq4125[4] = x.Type != ""
var yynn4125 int
if yyr4125 || yy2arr4125 {
r.EncodeArrayStart(5)
} else {
yynn4125 = 0
for _, b := range yyq4125 {
if b {
yynn4125++
}
}
r.EncodeMapStart(yynn4125)
yynn4125 = 0
}
if yyr4125 || yy2arr4125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4125[0] {
yym4127 := z.EncBinary()
_ = yym4127
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4125[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4128 := z.EncBinary()
_ = yym4128
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4125 || yy2arr4125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4125[1] {
yym4130 := z.EncBinary()
_ = yym4130
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4125[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4131 := z.EncBinary()
_ = yym4131
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4125 || yy2arr4125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4125[2] {
yy4133 := &x.ObjectMeta
yy4133.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4125[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4134 := &x.ObjectMeta
yy4134.CodecEncodeSelf(e)
}
}
if yyr4125 || yy2arr4125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4125[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4136 := z.EncBinary()
_ = yym4136
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4125[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4137 := z.EncBinary()
_ = yym4137
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
}
}
if yyr4125 || yy2arr4125 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4125[4] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4125[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr4125 || yy2arr4125 {
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
yym4139 := z.DecBinary()
_ = yym4139
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4140 := r.ContainerType()
if yyct4140 == codecSelferValueTypeMap1234 {
yyl4140 := r.ReadMapStart()
if yyl4140 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4140, d)
}
} else if yyct4140 == codecSelferValueTypeArray1234 {
yyl4140 := r.ReadArrayStart()
if yyl4140 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4140, 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 yys4141Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4141Slc
var yyhl4141 bool = l >= 0
for yyj4141 := 0; ; yyj4141++ {
if yyhl4141 {
if yyj4141 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4141Slc = r.DecodeBytes(yys4141Slc, true, true)
yys4141 := string(yys4141Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4141 {
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 {
yyv4144 := &x.ObjectMeta
yyv4144.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4145 := &x.Data
yym4146 := z.DecBinary()
_ = yym4146
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4145), d)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys4141)
} // end switch yys4141
} // end for yyj4141
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 yyj4148 int
var yyb4148 bool
var yyhl4148 bool = l >= 0
yyj4148++
if yyhl4148 {
yyb4148 = yyj4148 > l
} else {
yyb4148 = r.CheckBreak()
}
if yyb4148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4148++
if yyhl4148 {
yyb4148 = yyj4148 > l
} else {
yyb4148 = r.CheckBreak()
}
if yyb4148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4148++
if yyhl4148 {
yyb4148 = yyj4148 > l
} else {
yyb4148 = r.CheckBreak()
}
if yyb4148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4151 := &x.ObjectMeta
yyv4151.CodecDecodeSelf(d)
}
yyj4148++
if yyhl4148 {
yyb4148 = yyj4148 > l
} else {
yyb4148 = r.CheckBreak()
}
if yyb4148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4152 := &x.Data
yym4153 := z.DecBinary()
_ = yym4153
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv4152), d)
}
}
yyj4148++
if yyhl4148 {
yyb4148 = yyj4148 > l
} else {
yyb4148 = r.CheckBreak()
}
if yyb4148 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
for {
yyj4148++
if yyhl4148 {
yyb4148 = yyj4148 > l
} else {
yyb4148 = r.CheckBreak()
}
if yyb4148 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4148-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4155 := z.EncBinary()
_ = yym4155
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
yym4156 := z.DecBinary()
_ = yym4156
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 {
yym4157 := z.EncBinary()
_ = yym4157
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4158 := !z.EncBinary()
yy2arr4158 := z.EncBasicHandle().StructToArray
var yyq4158 [4]bool
_, _, _ = yysep4158, yyq4158, yy2arr4158
const yyr4158 bool = false
yyq4158[0] = x.Kind != ""
yyq4158[1] = x.APIVersion != ""
yyq4158[2] = true
var yynn4158 int
if yyr4158 || yy2arr4158 {
r.EncodeArrayStart(4)
} else {
yynn4158 = 1
for _, b := range yyq4158 {
if b {
yynn4158++
}
}
r.EncodeMapStart(yynn4158)
yynn4158 = 0
}
if yyr4158 || yy2arr4158 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4158[0] {
yym4160 := z.EncBinary()
_ = yym4160
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4158[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4161 := z.EncBinary()
_ = yym4161
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4158 || yy2arr4158 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4158[1] {
yym4163 := z.EncBinary()
_ = yym4163
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4158[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4164 := z.EncBinary()
_ = yym4164
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4158 || yy2arr4158 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4158[2] {
yy4166 := &x.ListMeta
yym4167 := z.EncBinary()
_ = yym4167
if false {
} else if z.HasExtensions() && z.EncExt(yy4166) {
} else {
z.EncFallback(yy4166)
}
} else {
r.EncodeNil()
}
} else {
if yyq4158[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4168 := &x.ListMeta
yym4169 := z.EncBinary()
_ = yym4169
if false {
} else if z.HasExtensions() && z.EncExt(yy4168) {
} else {
z.EncFallback(yy4168)
}
}
}
if yyr4158 || yy2arr4158 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4171 := z.EncBinary()
_ = yym4171
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 {
yym4172 := z.EncBinary()
_ = yym4172
if false {
} else {
h.encSliceSecret(([]Secret)(x.Items), e)
}
}
}
if yyr4158 || yy2arr4158 {
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
yym4173 := z.DecBinary()
_ = yym4173
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4174 := r.ContainerType()
if yyct4174 == codecSelferValueTypeMap1234 {
yyl4174 := r.ReadMapStart()
if yyl4174 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4174, d)
}
} else if yyct4174 == codecSelferValueTypeArray1234 {
yyl4174 := r.ReadArrayStart()
if yyl4174 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4174, 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 yys4175Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4175Slc
var yyhl4175 bool = l >= 0
for yyj4175 := 0; ; yyj4175++ {
if yyhl4175 {
if yyj4175 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4175Slc = r.DecodeBytes(yys4175Slc, true, true)
yys4175 := string(yys4175Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4175 {
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 {
yyv4178 := &x.ListMeta
yym4179 := z.DecBinary()
_ = yym4179
if false {
} else if z.HasExtensions() && z.DecExt(yyv4178) {
} else {
z.DecFallback(yyv4178, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4180 := &x.Items
yym4181 := z.DecBinary()
_ = yym4181
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4180), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4175)
} // end switch yys4175
} // end for yyj4175
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 yyj4182 int
var yyb4182 bool
var yyhl4182 bool = l >= 0
yyj4182++
if yyhl4182 {
yyb4182 = yyj4182 > l
} else {
yyb4182 = r.CheckBreak()
}
if yyb4182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4182++
if yyhl4182 {
yyb4182 = yyj4182 > l
} else {
yyb4182 = r.CheckBreak()
}
if yyb4182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4182++
if yyhl4182 {
yyb4182 = yyj4182 > l
} else {
yyb4182 = r.CheckBreak()
}
if yyb4182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4185 := &x.ListMeta
yym4186 := z.DecBinary()
_ = yym4186
if false {
} else if z.HasExtensions() && z.DecExt(yyv4185) {
} else {
z.DecFallback(yyv4185, false)
}
}
yyj4182++
if yyhl4182 {
yyb4182 = yyj4182 > l
} else {
yyb4182 = r.CheckBreak()
}
if yyb4182 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4187 := &x.Items
yym4188 := z.DecBinary()
_ = yym4188
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv4187), d)
}
}
for {
yyj4182++
if yyhl4182 {
yyb4182 = yyj4182 > l
} else {
yyb4182 = r.CheckBreak()
}
if yyb4182 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4182-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 {
yym4189 := z.EncBinary()
_ = yym4189
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4190 := !z.EncBinary()
yy2arr4190 := z.EncBasicHandle().StructToArray
var yyq4190 [4]bool
_, _, _ = yysep4190, yyq4190, yy2arr4190
const yyr4190 bool = false
yyq4190[0] = x.Kind != ""
yyq4190[1] = x.APIVersion != ""
yyq4190[2] = true
yyq4190[3] = len(x.Data) != 0
var yynn4190 int
if yyr4190 || yy2arr4190 {
r.EncodeArrayStart(4)
} else {
yynn4190 = 0
for _, b := range yyq4190 {
if b {
yynn4190++
}
}
r.EncodeMapStart(yynn4190)
yynn4190 = 0
}
if yyr4190 || yy2arr4190 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4190[0] {
yym4192 := z.EncBinary()
_ = yym4192
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4190[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4193 := z.EncBinary()
_ = yym4193
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4190 || yy2arr4190 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4190[1] {
yym4195 := z.EncBinary()
_ = yym4195
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4190[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4196 := z.EncBinary()
_ = yym4196
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4190 || yy2arr4190 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4190[2] {
yy4198 := &x.ObjectMeta
yy4198.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4190[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4199 := &x.ObjectMeta
yy4199.CodecEncodeSelf(e)
}
}
if yyr4190 || yy2arr4190 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4190[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym4201 := z.EncBinary()
_ = yym4201
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4190[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4202 := z.EncBinary()
_ = yym4202
if false {
} else {
z.F.EncMapStringStringV(x.Data, false, e)
}
}
}
}
if yyr4190 || yy2arr4190 {
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
yym4203 := z.DecBinary()
_ = yym4203
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4204 := r.ContainerType()
if yyct4204 == codecSelferValueTypeMap1234 {
yyl4204 := r.ReadMapStart()
if yyl4204 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4204, d)
}
} else if yyct4204 == codecSelferValueTypeArray1234 {
yyl4204 := r.ReadArrayStart()
if yyl4204 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4204, 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 yys4205Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4205Slc
var yyhl4205 bool = l >= 0
for yyj4205 := 0; ; yyj4205++ {
if yyhl4205 {
if yyj4205 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4205Slc = r.DecodeBytes(yys4205Slc, true, true)
yys4205 := string(yys4205Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4205 {
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 {
yyv4208 := &x.ObjectMeta
yyv4208.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4209 := &x.Data
yym4210 := z.DecBinary()
_ = yym4210
if false {
} else {
z.F.DecMapStringStringX(yyv4209, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4205)
} // end switch yys4205
} // end for yyj4205
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 yyj4211 int
var yyb4211 bool
var yyhl4211 bool = l >= 0
yyj4211++
if yyhl4211 {
yyb4211 = yyj4211 > l
} else {
yyb4211 = r.CheckBreak()
}
if yyb4211 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4211++
if yyhl4211 {
yyb4211 = yyj4211 > l
} else {
yyb4211 = r.CheckBreak()
}
if yyb4211 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4211++
if yyhl4211 {
yyb4211 = yyj4211 > l
} else {
yyb4211 = r.CheckBreak()
}
if yyb4211 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4214 := &x.ObjectMeta
yyv4214.CodecDecodeSelf(d)
}
yyj4211++
if yyhl4211 {
yyb4211 = yyj4211 > l
} else {
yyb4211 = r.CheckBreak()
}
if yyb4211 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4215 := &x.Data
yym4216 := z.DecBinary()
_ = yym4216
if false {
} else {
z.F.DecMapStringStringX(yyv4215, false, d)
}
}
for {
yyj4211++
if yyhl4211 {
yyb4211 = yyj4211 > l
} else {
yyb4211 = r.CheckBreak()
}
if yyb4211 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4211-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 {
yym4217 := z.EncBinary()
_ = yym4217
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4218 := !z.EncBinary()
yy2arr4218 := z.EncBasicHandle().StructToArray
var yyq4218 [4]bool
_, _, _ = yysep4218, yyq4218, yy2arr4218
const yyr4218 bool = false
yyq4218[0] = x.Kind != ""
yyq4218[1] = x.APIVersion != ""
yyq4218[2] = true
var yynn4218 int
if yyr4218 || yy2arr4218 {
r.EncodeArrayStart(4)
} else {
yynn4218 = 1
for _, b := range yyq4218 {
if b {
yynn4218++
}
}
r.EncodeMapStart(yynn4218)
yynn4218 = 0
}
if yyr4218 || yy2arr4218 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4218[0] {
yym4220 := z.EncBinary()
_ = yym4220
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4218[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4221 := z.EncBinary()
_ = yym4221
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4218 || yy2arr4218 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4218[1] {
yym4223 := z.EncBinary()
_ = yym4223
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4218[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4224 := z.EncBinary()
_ = yym4224
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4218 || yy2arr4218 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4218[2] {
yy4226 := &x.ListMeta
yym4227 := z.EncBinary()
_ = yym4227
if false {
} else if z.HasExtensions() && z.EncExt(yy4226) {
} else {
z.EncFallback(yy4226)
}
} else {
r.EncodeNil()
}
} else {
if yyq4218[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4228 := &x.ListMeta
yym4229 := z.EncBinary()
_ = yym4229
if false {
} else if z.HasExtensions() && z.EncExt(yy4228) {
} else {
z.EncFallback(yy4228)
}
}
}
if yyr4218 || yy2arr4218 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4231 := z.EncBinary()
_ = yym4231
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 {
yym4232 := z.EncBinary()
_ = yym4232
if false {
} else {
h.encSliceConfigMap(([]ConfigMap)(x.Items), e)
}
}
}
if yyr4218 || yy2arr4218 {
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
yym4233 := z.DecBinary()
_ = yym4233
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4234 := r.ContainerType()
if yyct4234 == codecSelferValueTypeMap1234 {
yyl4234 := r.ReadMapStart()
if yyl4234 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4234, d)
}
} else if yyct4234 == codecSelferValueTypeArray1234 {
yyl4234 := r.ReadArrayStart()
if yyl4234 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4234, 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 yys4235Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4235Slc
var yyhl4235 bool = l >= 0
for yyj4235 := 0; ; yyj4235++ {
if yyhl4235 {
if yyj4235 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4235Slc = r.DecodeBytes(yys4235Slc, true, true)
yys4235 := string(yys4235Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4235 {
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 {
yyv4238 := &x.ListMeta
yym4239 := z.DecBinary()
_ = yym4239
if false {
} else if z.HasExtensions() && z.DecExt(yyv4238) {
} else {
z.DecFallback(yyv4238, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4240 := &x.Items
yym4241 := z.DecBinary()
_ = yym4241
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4240), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4235)
} // end switch yys4235
} // end for yyj4235
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 yyj4242 int
var yyb4242 bool
var yyhl4242 bool = l >= 0
yyj4242++
if yyhl4242 {
yyb4242 = yyj4242 > l
} else {
yyb4242 = r.CheckBreak()
}
if yyb4242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4242++
if yyhl4242 {
yyb4242 = yyj4242 > l
} else {
yyb4242 = r.CheckBreak()
}
if yyb4242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4242++
if yyhl4242 {
yyb4242 = yyj4242 > l
} else {
yyb4242 = r.CheckBreak()
}
if yyb4242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4245 := &x.ListMeta
yym4246 := z.DecBinary()
_ = yym4246
if false {
} else if z.HasExtensions() && z.DecExt(yyv4245) {
} else {
z.DecFallback(yyv4245, false)
}
}
yyj4242++
if yyhl4242 {
yyb4242 = yyj4242 > l
} else {
yyb4242 = r.CheckBreak()
}
if yyb4242 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4247 := &x.Items
yym4248 := z.DecBinary()
_ = yym4248
if false {
} else {
h.decSliceConfigMap((*[]ConfigMap)(yyv4247), d)
}
}
for {
yyj4242++
if yyhl4242 {
yyb4242 = yyj4242 > l
} else {
yyb4242 = r.CheckBreak()
}
if yyb4242 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4242-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym4249 := z.EncBinary()
_ = yym4249
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
yym4250 := z.DecBinary()
_ = yym4250
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
yym4251 := z.EncBinary()
_ = yym4251
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
yym4252 := z.DecBinary()
_ = yym4252
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 {
yym4253 := z.EncBinary()
_ = yym4253
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4254 := !z.EncBinary()
yy2arr4254 := z.EncBasicHandle().StructToArray
var yyq4254 [4]bool
_, _, _ = yysep4254, yyq4254, yy2arr4254
const yyr4254 bool = false
yyq4254[2] = x.Message != ""
yyq4254[3] = x.Error != ""
var yynn4254 int
if yyr4254 || yy2arr4254 {
r.EncodeArrayStart(4)
} else {
yynn4254 = 2
for _, b := range yyq4254 {
if b {
yynn4254++
}
}
r.EncodeMapStart(yynn4254)
yynn4254 = 0
}
if yyr4254 || yy2arr4254 {
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 yyr4254 || yy2arr4254 {
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 yyr4254 || yy2arr4254 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4254[2] {
yym4258 := z.EncBinary()
_ = yym4258
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4254[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4259 := z.EncBinary()
_ = yym4259
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr4254 || yy2arr4254 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4254[3] {
yym4261 := z.EncBinary()
_ = yym4261
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4254[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("error"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4262 := z.EncBinary()
_ = yym4262
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
}
}
if yyr4254 || yy2arr4254 {
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
yym4263 := z.DecBinary()
_ = yym4263
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4264 := r.ContainerType()
if yyct4264 == codecSelferValueTypeMap1234 {
yyl4264 := r.ReadMapStart()
if yyl4264 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4264, d)
}
} else if yyct4264 == codecSelferValueTypeArray1234 {
yyl4264 := r.ReadArrayStart()
if yyl4264 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4264, 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 yys4265Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4265Slc
var yyhl4265 bool = l >= 0
for yyj4265 := 0; ; yyj4265++ {
if yyhl4265 {
if yyj4265 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4265Slc = r.DecodeBytes(yys4265Slc, true, true)
yys4265 := string(yys4265Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4265 {
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, yys4265)
} // end switch yys4265
} // end for yyj4265
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 yyj4270 int
var yyb4270 bool
var yyhl4270 bool = l >= 0
yyj4270++
if yyhl4270 {
yyb4270 = yyj4270 > l
} else {
yyb4270 = r.CheckBreak()
}
if yyb4270 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ComponentConditionType(r.DecodeString())
}
yyj4270++
if yyhl4270 {
yyb4270 = yyj4270 > l
} else {
yyb4270 = r.CheckBreak()
}
if yyb4270 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj4270++
if yyhl4270 {
yyb4270 = yyj4270 > l
} else {
yyb4270 = r.CheckBreak()
}
if yyb4270 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj4270++
if yyhl4270 {
yyb4270 = yyj4270 > l
} else {
yyb4270 = r.CheckBreak()
}
if yyb4270 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Error = ""
} else {
x.Error = string(r.DecodeString())
}
for {
yyj4270++
if yyhl4270 {
yyb4270 = yyj4270 > l
} else {
yyb4270 = r.CheckBreak()
}
if yyb4270 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4270-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 {
yym4275 := z.EncBinary()
_ = yym4275
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4276 := !z.EncBinary()
yy2arr4276 := z.EncBasicHandle().StructToArray
var yyq4276 [4]bool
_, _, _ = yysep4276, yyq4276, yy2arr4276
const yyr4276 bool = false
yyq4276[0] = x.Kind != ""
yyq4276[1] = x.APIVersion != ""
yyq4276[2] = true
yyq4276[3] = len(x.Conditions) != 0
var yynn4276 int
if yyr4276 || yy2arr4276 {
r.EncodeArrayStart(4)
} else {
yynn4276 = 0
for _, b := range yyq4276 {
if b {
yynn4276++
}
}
r.EncodeMapStart(yynn4276)
yynn4276 = 0
}
if yyr4276 || yy2arr4276 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4276[0] {
yym4278 := z.EncBinary()
_ = yym4278
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4276[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4279 := z.EncBinary()
_ = yym4279
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4276 || yy2arr4276 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4276[1] {
yym4281 := z.EncBinary()
_ = yym4281
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4276[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4282 := z.EncBinary()
_ = yym4282
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4276 || yy2arr4276 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4276[2] {
yy4284 := &x.ObjectMeta
yy4284.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4276[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4285 := &x.ObjectMeta
yy4285.CodecEncodeSelf(e)
}
}
if yyr4276 || yy2arr4276 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4276[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4287 := z.EncBinary()
_ = yym4287
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4276[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym4288 := z.EncBinary()
_ = yym4288
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
}
}
if yyr4276 || yy2arr4276 {
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
yym4289 := z.DecBinary()
_ = yym4289
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4290 := r.ContainerType()
if yyct4290 == codecSelferValueTypeMap1234 {
yyl4290 := r.ReadMapStart()
if yyl4290 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4290, d)
}
} else if yyct4290 == codecSelferValueTypeArray1234 {
yyl4290 := r.ReadArrayStart()
if yyl4290 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4290, 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 yys4291Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4291Slc
var yyhl4291 bool = l >= 0
for yyj4291 := 0; ; yyj4291++ {
if yyhl4291 {
if yyj4291 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4291Slc = r.DecodeBytes(yys4291Slc, true, true)
yys4291 := string(yys4291Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4291 {
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 {
yyv4294 := &x.ObjectMeta
yyv4294.CodecDecodeSelf(d)
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4295 := &x.Conditions
yym4296 := z.DecBinary()
_ = yym4296
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4295), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4291)
} // end switch yys4291
} // end for yyj4291
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 yyj4297 int
var yyb4297 bool
var yyhl4297 bool = l >= 0
yyj4297++
if yyhl4297 {
yyb4297 = yyj4297 > l
} else {
yyb4297 = r.CheckBreak()
}
if yyb4297 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4297++
if yyhl4297 {
yyb4297 = yyj4297 > l
} else {
yyb4297 = r.CheckBreak()
}
if yyb4297 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4297++
if yyhl4297 {
yyb4297 = yyj4297 > l
} else {
yyb4297 = r.CheckBreak()
}
if yyb4297 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4300 := &x.ObjectMeta
yyv4300.CodecDecodeSelf(d)
}
yyj4297++
if yyhl4297 {
yyb4297 = yyj4297 > l
} else {
yyb4297 = r.CheckBreak()
}
if yyb4297 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv4301 := &x.Conditions
yym4302 := z.DecBinary()
_ = yym4302
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv4301), d)
}
}
for {
yyj4297++
if yyhl4297 {
yyb4297 = yyj4297 > l
} else {
yyb4297 = r.CheckBreak()
}
if yyb4297 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4297-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 {
yym4303 := z.EncBinary()
_ = yym4303
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4304 := !z.EncBinary()
yy2arr4304 := z.EncBasicHandle().StructToArray
var yyq4304 [4]bool
_, _, _ = yysep4304, yyq4304, yy2arr4304
const yyr4304 bool = false
yyq4304[0] = x.Kind != ""
yyq4304[1] = x.APIVersion != ""
yyq4304[2] = true
var yynn4304 int
if yyr4304 || yy2arr4304 {
r.EncodeArrayStart(4)
} else {
yynn4304 = 1
for _, b := range yyq4304 {
if b {
yynn4304++
}
}
r.EncodeMapStart(yynn4304)
yynn4304 = 0
}
if yyr4304 || yy2arr4304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4304[0] {
yym4306 := z.EncBinary()
_ = yym4306
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4304[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4307 := z.EncBinary()
_ = yym4307
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4304 || yy2arr4304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4304[1] {
yym4309 := z.EncBinary()
_ = yym4309
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4304[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4310 := z.EncBinary()
_ = yym4310
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4304 || yy2arr4304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4304[2] {
yy4312 := &x.ListMeta
yym4313 := z.EncBinary()
_ = yym4313
if false {
} else if z.HasExtensions() && z.EncExt(yy4312) {
} else {
z.EncFallback(yy4312)
}
} else {
r.EncodeNil()
}
} else {
if yyq4304[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4314 := &x.ListMeta
yym4315 := z.EncBinary()
_ = yym4315
if false {
} else if z.HasExtensions() && z.EncExt(yy4314) {
} else {
z.EncFallback(yy4314)
}
}
}
if yyr4304 || yy2arr4304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym4317 := z.EncBinary()
_ = yym4317
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 {
yym4318 := z.EncBinary()
_ = yym4318
if false {
} else {
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
}
}
}
if yyr4304 || yy2arr4304 {
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
yym4319 := z.DecBinary()
_ = yym4319
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4320 := r.ContainerType()
if yyct4320 == codecSelferValueTypeMap1234 {
yyl4320 := r.ReadMapStart()
if yyl4320 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4320, d)
}
} else if yyct4320 == codecSelferValueTypeArray1234 {
yyl4320 := r.ReadArrayStart()
if yyl4320 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4320, 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 yys4321Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4321Slc
var yyhl4321 bool = l >= 0
for yyj4321 := 0; ; yyj4321++ {
if yyhl4321 {
if yyj4321 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4321Slc = r.DecodeBytes(yys4321Slc, true, true)
yys4321 := string(yys4321Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4321 {
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 {
yyv4324 := &x.ListMeta
yym4325 := z.DecBinary()
_ = yym4325
if false {
} else if z.HasExtensions() && z.DecExt(yyv4324) {
} else {
z.DecFallback(yyv4324, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4326 := &x.Items
yym4327 := z.DecBinary()
_ = yym4327
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4326), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys4321)
} // end switch yys4321
} // end for yyj4321
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 yyj4328 int
var yyb4328 bool
var yyhl4328 bool = l >= 0
yyj4328++
if yyhl4328 {
yyb4328 = yyj4328 > l
} else {
yyb4328 = r.CheckBreak()
}
if yyb4328 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4328++
if yyhl4328 {
yyb4328 = yyj4328 > l
} else {
yyb4328 = r.CheckBreak()
}
if yyb4328 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4328++
if yyhl4328 {
yyb4328 = yyj4328 > l
} else {
yyb4328 = r.CheckBreak()
}
if yyb4328 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv4331 := &x.ListMeta
yym4332 := z.DecBinary()
_ = yym4332
if false {
} else if z.HasExtensions() && z.DecExt(yyv4331) {
} else {
z.DecFallback(yyv4331, false)
}
}
yyj4328++
if yyhl4328 {
yyb4328 = yyj4328 > l
} else {
yyb4328 = r.CheckBreak()
}
if yyb4328 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv4333 := &x.Items
yym4334 := z.DecBinary()
_ = yym4334
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv4333), d)
}
}
for {
yyj4328++
if yyhl4328 {
yyb4328 = yyj4328 > l
} else {
yyb4328 = r.CheckBreak()
}
if yyb4328 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4328-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 {
yym4335 := z.EncBinary()
_ = yym4335
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4336 := !z.EncBinary()
yy2arr4336 := z.EncBasicHandle().StructToArray
var yyq4336 [6]bool
_, _, _ = yysep4336, yyq4336, yy2arr4336
const yyr4336 bool = false
yyq4336[0] = x.Capabilities != nil
yyq4336[1] = x.Privileged != nil
yyq4336[2] = x.SELinuxOptions != nil
yyq4336[3] = x.RunAsUser != nil
yyq4336[4] = x.RunAsNonRoot != nil
yyq4336[5] = x.ReadOnlyRootFilesystem != nil
var yynn4336 int
if yyr4336 || yy2arr4336 {
r.EncodeArrayStart(6)
} else {
yynn4336 = 0
for _, b := range yyq4336 {
if b {
yynn4336++
}
}
r.EncodeMapStart(yynn4336)
yynn4336 = 0
}
if yyr4336 || yy2arr4336 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4336[0] {
if x.Capabilities == nil {
r.EncodeNil()
} else {
x.Capabilities.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4336[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 yyr4336 || yy2arr4336 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4336[1] {
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4339 := *x.Privileged
yym4340 := z.EncBinary()
_ = yym4340
if false {
} else {
r.EncodeBool(bool(yy4339))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4336[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Privileged == nil {
r.EncodeNil()
} else {
yy4341 := *x.Privileged
yym4342 := z.EncBinary()
_ = yym4342
if false {
} else {
r.EncodeBool(bool(yy4341))
}
}
}
}
if yyr4336 || yy2arr4336 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4336[2] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq4336[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 yyr4336 || yy2arr4336 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4336[3] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4345 := *x.RunAsUser
yym4346 := z.EncBinary()
_ = yym4346
if false {
} else {
r.EncodeInt(int64(yy4345))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4336[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy4347 := *x.RunAsUser
yym4348 := z.EncBinary()
_ = yym4348
if false {
} else {
r.EncodeInt(int64(yy4347))
}
}
}
}
if yyr4336 || yy2arr4336 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4336[4] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4350 := *x.RunAsNonRoot
yym4351 := z.EncBinary()
_ = yym4351
if false {
} else {
r.EncodeBool(bool(yy4350))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4336[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy4352 := *x.RunAsNonRoot
yym4353 := z.EncBinary()
_ = yym4353
if false {
} else {
r.EncodeBool(bool(yy4352))
}
}
}
}
if yyr4336 || yy2arr4336 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4336[5] {
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4355 := *x.ReadOnlyRootFilesystem
yym4356 := z.EncBinary()
_ = yym4356
if false {
} else {
r.EncodeBool(bool(yy4355))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq4336[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnlyRootFilesystem"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ReadOnlyRootFilesystem == nil {
r.EncodeNil()
} else {
yy4357 := *x.ReadOnlyRootFilesystem
yym4358 := z.EncBinary()
_ = yym4358
if false {
} else {
r.EncodeBool(bool(yy4357))
}
}
}
}
if yyr4336 || yy2arr4336 {
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
yym4359 := z.DecBinary()
_ = yym4359
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4360 := r.ContainerType()
if yyct4360 == codecSelferValueTypeMap1234 {
yyl4360 := r.ReadMapStart()
if yyl4360 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4360, d)
}
} else if yyct4360 == codecSelferValueTypeArray1234 {
yyl4360 := r.ReadArrayStart()
if yyl4360 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4360, 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 yys4361Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4361Slc
var yyhl4361 bool = l >= 0
for yyj4361 := 0; ; yyj4361++ {
if yyhl4361 {
if yyj4361 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4361Slc = r.DecodeBytes(yys4361Slc, true, true)
yys4361 := string(yys4361Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4361 {
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)
}
yym4364 := z.DecBinary()
_ = yym4364
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)
}
yym4367 := z.DecBinary()
_ = yym4367
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)
}
yym4369 := z.DecBinary()
_ = yym4369
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)
}
yym4371 := z.DecBinary()
_ = yym4371
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys4361)
} // end switch yys4361
} // end for yyj4361
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 yyj4372 int
var yyb4372 bool
var yyhl4372 bool = l >= 0
yyj4372++
if yyhl4372 {
yyb4372 = yyj4372 > l
} else {
yyb4372 = r.CheckBreak()
}
if yyb4372 {
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)
}
yyj4372++
if yyhl4372 {
yyb4372 = yyj4372 > l
} else {
yyb4372 = r.CheckBreak()
}
if yyb4372 {
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)
}
yym4375 := z.DecBinary()
_ = yym4375
if false {
} else {
*((*bool)(x.Privileged)) = r.DecodeBool()
}
}
yyj4372++
if yyhl4372 {
yyb4372 = yyj4372 > l
} else {
yyb4372 = r.CheckBreak()
}
if yyb4372 {
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)
}
yyj4372++
if yyhl4372 {
yyb4372 = yyj4372 > l
} else {
yyb4372 = r.CheckBreak()
}
if yyb4372 {
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)
}
yym4378 := z.DecBinary()
_ = yym4378
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj4372++
if yyhl4372 {
yyb4372 = yyj4372 > l
} else {
yyb4372 = r.CheckBreak()
}
if yyb4372 {
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)
}
yym4380 := z.DecBinary()
_ = yym4380
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj4372++
if yyhl4372 {
yyb4372 = yyj4372 > l
} else {
yyb4372 = r.CheckBreak()
}
if yyb4372 {
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)
}
yym4382 := z.DecBinary()
_ = yym4382
if false {
} else {
*((*bool)(x.ReadOnlyRootFilesystem)) = r.DecodeBool()
}
}
for {
yyj4372++
if yyhl4372 {
yyb4372 = yyj4372 > l
} else {
yyb4372 = r.CheckBreak()
}
if yyb4372 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4372-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 {
yym4383 := z.EncBinary()
_ = yym4383
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4384 := !z.EncBinary()
yy2arr4384 := z.EncBasicHandle().StructToArray
var yyq4384 [4]bool
_, _, _ = yysep4384, yyq4384, yy2arr4384
const yyr4384 bool = false
yyq4384[0] = x.User != ""
yyq4384[1] = x.Role != ""
yyq4384[2] = x.Type != ""
yyq4384[3] = x.Level != ""
var yynn4384 int
if yyr4384 || yy2arr4384 {
r.EncodeArrayStart(4)
} else {
yynn4384 = 0
for _, b := range yyq4384 {
if b {
yynn4384++
}
}
r.EncodeMapStart(yynn4384)
yynn4384 = 0
}
if yyr4384 || yy2arr4384 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4384[0] {
yym4386 := z.EncBinary()
_ = yym4386
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4384[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4387 := z.EncBinary()
_ = yym4387
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr4384 || yy2arr4384 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4384[1] {
yym4389 := z.EncBinary()
_ = yym4389
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4384[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("role"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4390 := z.EncBinary()
_ = yym4390
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
}
}
if yyr4384 || yy2arr4384 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4384[2] {
yym4392 := z.EncBinary()
_ = yym4392
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4384[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4393 := z.EncBinary()
_ = yym4393
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr4384 || yy2arr4384 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4384[3] {
yym4395 := z.EncBinary()
_ = yym4395
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4384[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("level"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4396 := z.EncBinary()
_ = yym4396
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
}
}
if yyr4384 || yy2arr4384 {
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
yym4397 := z.DecBinary()
_ = yym4397
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4398 := r.ContainerType()
if yyct4398 == codecSelferValueTypeMap1234 {
yyl4398 := r.ReadMapStart()
if yyl4398 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4398, d)
}
} else if yyct4398 == codecSelferValueTypeArray1234 {
yyl4398 := r.ReadArrayStart()
if yyl4398 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4398, 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 yys4399Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4399Slc
var yyhl4399 bool = l >= 0
for yyj4399 := 0; ; yyj4399++ {
if yyhl4399 {
if yyj4399 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4399Slc = r.DecodeBytes(yys4399Slc, true, true)
yys4399 := string(yys4399Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4399 {
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, yys4399)
} // end switch yys4399
} // end for yyj4399
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 yyj4404 int
var yyb4404 bool
var yyhl4404 bool = l >= 0
yyj4404++
if yyhl4404 {
yyb4404 = yyj4404 > l
} else {
yyb4404 = r.CheckBreak()
}
if yyb4404 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj4404++
if yyhl4404 {
yyb4404 = yyj4404 > l
} else {
yyb4404 = r.CheckBreak()
}
if yyb4404 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Role = ""
} else {
x.Role = string(r.DecodeString())
}
yyj4404++
if yyhl4404 {
yyb4404 = yyj4404 > l
} else {
yyb4404 = r.CheckBreak()
}
if yyb4404 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
yyj4404++
if yyhl4404 {
yyb4404 = yyj4404 > l
} else {
yyb4404 = r.CheckBreak()
}
if yyb4404 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Level = ""
} else {
x.Level = string(r.DecodeString())
}
for {
yyj4404++
if yyhl4404 {
yyb4404 = yyj4404 > l
} else {
yyb4404 = r.CheckBreak()
}
if yyb4404 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4404-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 {
yym4409 := z.EncBinary()
_ = yym4409
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep4410 := !z.EncBinary()
yy2arr4410 := z.EncBasicHandle().StructToArray
var yyq4410 [5]bool
_, _, _ = yysep4410, yyq4410, yy2arr4410
const yyr4410 bool = false
yyq4410[0] = x.Kind != ""
yyq4410[1] = x.APIVersion != ""
yyq4410[2] = true
var yynn4410 int
if yyr4410 || yy2arr4410 {
r.EncodeArrayStart(5)
} else {
yynn4410 = 2
for _, b := range yyq4410 {
if b {
yynn4410++
}
}
r.EncodeMapStart(yynn4410)
yynn4410 = 0
}
if yyr4410 || yy2arr4410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4410[0] {
yym4412 := z.EncBinary()
_ = yym4412
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4410[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4413 := z.EncBinary()
_ = yym4413
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr4410 || yy2arr4410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4410[1] {
yym4415 := z.EncBinary()
_ = yym4415
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq4410[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym4416 := z.EncBinary()
_ = yym4416
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr4410 || yy2arr4410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq4410[2] {
yy4418 := &x.ObjectMeta
yy4418.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq4410[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4419 := &x.ObjectMeta
yy4419.CodecEncodeSelf(e)
}
}
if yyr4410 || yy2arr4410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym4421 := z.EncBinary()
_ = yym4421
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)
yym4422 := z.EncBinary()
_ = yym4422
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
}
}
if yyr4410 || yy2arr4410 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym4424 := z.EncBinary()
_ = yym4424
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 {
yym4425 := z.EncBinary()
_ = yym4425
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
if yyr4410 || yy2arr4410 {
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
yym4426 := z.DecBinary()
_ = yym4426
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct4427 := r.ContainerType()
if yyct4427 == codecSelferValueTypeMap1234 {
yyl4427 := r.ReadMapStart()
if yyl4427 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl4427, d)
}
} else if yyct4427 == codecSelferValueTypeArray1234 {
yyl4427 := r.ReadArrayStart()
if yyl4427 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl4427, 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 yys4428Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys4428Slc
var yyhl4428 bool = l >= 0
for yyj4428 := 0; ; yyj4428++ {
if yyhl4428 {
if yyj4428 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys4428Slc = r.DecodeBytes(yys4428Slc, true, true)
yys4428 := string(yys4428Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys4428 {
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 {
yyv4431 := &x.ObjectMeta
yyv4431.CodecDecodeSelf(d)
}
case "range":
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4433 := &x.Data
yym4434 := z.DecBinary()
_ = yym4434
if false {
} else {
*yyv4433 = r.DecodeBytes(*(*[]byte)(yyv4433), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys4428)
} // end switch yys4428
} // end for yyj4428
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 yyj4435 int
var yyb4435 bool
var yyhl4435 bool = l >= 0
yyj4435++
if yyhl4435 {
yyb4435 = yyj4435 > l
} else {
yyb4435 = r.CheckBreak()
}
if yyb4435 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj4435++
if yyhl4435 {
yyb4435 = yyj4435 > l
} else {
yyb4435 = r.CheckBreak()
}
if yyb4435 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj4435++
if yyhl4435 {
yyb4435 = yyj4435 > l
} else {
yyb4435 = r.CheckBreak()
}
if yyb4435 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv4438 := &x.ObjectMeta
yyv4438.CodecDecodeSelf(d)
}
yyj4435++
if yyhl4435 {
yyb4435 = yyj4435 > l
} else {
yyb4435 = r.CheckBreak()
}
if yyb4435 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
yyj4435++
if yyhl4435 {
yyb4435 = yyj4435 > l
} else {
yyb4435 = r.CheckBreak()
}
if yyb4435 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv4440 := &x.Data
yym4441 := z.DecBinary()
_ = yym4441
if false {
} else {
*yyv4440 = r.DecodeBytes(*(*[]byte)(yyv4440), false, false)
}
}
for {
yyj4435++
if yyhl4435 {
yyb4435 = yyj4435 > l
} else {
yyb4435 = r.CheckBreak()
}
if yyb4435 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj4435-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 _, yyv4442 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4443 := &yyv4442
yy4443.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
yyv4444 := *v
yyh4444, yyl4444 := z.DecSliceHelperStart()
var yyc4444 bool
if yyl4444 == 0 {
if yyv4444 == nil {
yyv4444 = []OwnerReference{}
yyc4444 = true
} else if len(yyv4444) != 0 {
yyv4444 = yyv4444[:0]
yyc4444 = true
}
} else if yyl4444 > 0 {
var yyrr4444, yyrl4444 int
var yyrt4444 bool
if yyl4444 > cap(yyv4444) {
yyrg4444 := len(yyv4444) > 0
yyv24444 := yyv4444
yyrl4444, yyrt4444 = z.DecInferLen(yyl4444, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4444 {
if yyrl4444 <= cap(yyv4444) {
yyv4444 = yyv4444[:yyrl4444]
} else {
yyv4444 = make([]OwnerReference, yyrl4444)
}
} else {
yyv4444 = make([]OwnerReference, yyrl4444)
}
yyc4444 = true
yyrr4444 = len(yyv4444)
if yyrg4444 {
copy(yyv4444, yyv24444)
}
} else if yyl4444 != len(yyv4444) {
yyv4444 = yyv4444[:yyl4444]
yyc4444 = true
}
yyj4444 := 0
for ; yyj4444 < yyrr4444; yyj4444++ {
yyh4444.ElemContainerState(yyj4444)
if r.TryDecodeAsNil() {
yyv4444[yyj4444] = OwnerReference{}
} else {
yyv4445 := &yyv4444[yyj4444]
yyv4445.CodecDecodeSelf(d)
}
}
if yyrt4444 {
for ; yyj4444 < yyl4444; yyj4444++ {
yyv4444 = append(yyv4444, OwnerReference{})
yyh4444.ElemContainerState(yyj4444)
if r.TryDecodeAsNil() {
yyv4444[yyj4444] = OwnerReference{}
} else {
yyv4446 := &yyv4444[yyj4444]
yyv4446.CodecDecodeSelf(d)
}
}
}
} else {
yyj4444 := 0
for ; !r.CheckBreak(); yyj4444++ {
if yyj4444 >= len(yyv4444) {
yyv4444 = append(yyv4444, OwnerReference{}) // var yyz4444 OwnerReference
yyc4444 = true
}
yyh4444.ElemContainerState(yyj4444)
if yyj4444 < len(yyv4444) {
if r.TryDecodeAsNil() {
yyv4444[yyj4444] = OwnerReference{}
} else {
yyv4447 := &yyv4444[yyj4444]
yyv4447.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4444 < len(yyv4444) {
yyv4444 = yyv4444[:yyj4444]
yyc4444 = true
} else if yyj4444 == 0 && yyv4444 == nil {
yyv4444 = []OwnerReference{}
yyc4444 = true
}
}
yyh4444.End()
if yyc4444 {
*v = yyv4444
}
}
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 _, yyv4448 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4448.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
yyv4449 := *v
yyh4449, yyl4449 := z.DecSliceHelperStart()
var yyc4449 bool
if yyl4449 == 0 {
if yyv4449 == nil {
yyv4449 = []PersistentVolumeAccessMode{}
yyc4449 = true
} else if len(yyv4449) != 0 {
yyv4449 = yyv4449[:0]
yyc4449 = true
}
} else if yyl4449 > 0 {
var yyrr4449, yyrl4449 int
var yyrt4449 bool
if yyl4449 > cap(yyv4449) {
yyrl4449, yyrt4449 = z.DecInferLen(yyl4449, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4449 {
if yyrl4449 <= cap(yyv4449) {
yyv4449 = yyv4449[:yyrl4449]
} else {
yyv4449 = make([]PersistentVolumeAccessMode, yyrl4449)
}
} else {
yyv4449 = make([]PersistentVolumeAccessMode, yyrl4449)
}
yyc4449 = true
yyrr4449 = len(yyv4449)
} else if yyl4449 != len(yyv4449) {
yyv4449 = yyv4449[:yyl4449]
yyc4449 = true
}
yyj4449 := 0
for ; yyj4449 < yyrr4449; yyj4449++ {
yyh4449.ElemContainerState(yyj4449)
if r.TryDecodeAsNil() {
yyv4449[yyj4449] = ""
} else {
yyv4449[yyj4449] = PersistentVolumeAccessMode(r.DecodeString())
}
}
if yyrt4449 {
for ; yyj4449 < yyl4449; yyj4449++ {
yyv4449 = append(yyv4449, "")
yyh4449.ElemContainerState(yyj4449)
if r.TryDecodeAsNil() {
yyv4449[yyj4449] = ""
} else {
yyv4449[yyj4449] = PersistentVolumeAccessMode(r.DecodeString())
}
}
}
} else {
yyj4449 := 0
for ; !r.CheckBreak(); yyj4449++ {
if yyj4449 >= len(yyv4449) {
yyv4449 = append(yyv4449, "") // var yyz4449 PersistentVolumeAccessMode
yyc4449 = true
}
yyh4449.ElemContainerState(yyj4449)
if yyj4449 < len(yyv4449) {
if r.TryDecodeAsNil() {
yyv4449[yyj4449] = ""
} else {
yyv4449[yyj4449] = PersistentVolumeAccessMode(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4449 < len(yyv4449) {
yyv4449 = yyv4449[:yyj4449]
yyc4449 = true
} else if yyj4449 == 0 && yyv4449 == nil {
yyv4449 = []PersistentVolumeAccessMode{}
yyc4449 = true
}
}
yyh4449.End()
if yyc4449 {
*v = yyv4449
}
}
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 _, yyv4453 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4454 := &yyv4453
yy4454.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
yyv4455 := *v
yyh4455, yyl4455 := z.DecSliceHelperStart()
var yyc4455 bool
if yyl4455 == 0 {
if yyv4455 == nil {
yyv4455 = []PersistentVolume{}
yyc4455 = true
} else if len(yyv4455) != 0 {
yyv4455 = yyv4455[:0]
yyc4455 = true
}
} else if yyl4455 > 0 {
var yyrr4455, yyrl4455 int
var yyrt4455 bool
if yyl4455 > cap(yyv4455) {
yyrg4455 := len(yyv4455) > 0
yyv24455 := yyv4455
yyrl4455, yyrt4455 = z.DecInferLen(yyl4455, z.DecBasicHandle().MaxInitLen, 464)
if yyrt4455 {
if yyrl4455 <= cap(yyv4455) {
yyv4455 = yyv4455[:yyrl4455]
} else {
yyv4455 = make([]PersistentVolume, yyrl4455)
}
} else {
yyv4455 = make([]PersistentVolume, yyrl4455)
}
yyc4455 = true
yyrr4455 = len(yyv4455)
if yyrg4455 {
copy(yyv4455, yyv24455)
}
} else if yyl4455 != len(yyv4455) {
yyv4455 = yyv4455[:yyl4455]
yyc4455 = true
}
yyj4455 := 0
for ; yyj4455 < yyrr4455; yyj4455++ {
yyh4455.ElemContainerState(yyj4455)
if r.TryDecodeAsNil() {
yyv4455[yyj4455] = PersistentVolume{}
} else {
yyv4456 := &yyv4455[yyj4455]
yyv4456.CodecDecodeSelf(d)
}
}
if yyrt4455 {
for ; yyj4455 < yyl4455; yyj4455++ {
yyv4455 = append(yyv4455, PersistentVolume{})
yyh4455.ElemContainerState(yyj4455)
if r.TryDecodeAsNil() {
yyv4455[yyj4455] = PersistentVolume{}
} else {
yyv4457 := &yyv4455[yyj4455]
yyv4457.CodecDecodeSelf(d)
}
}
}
} else {
yyj4455 := 0
for ; !r.CheckBreak(); yyj4455++ {
if yyj4455 >= len(yyv4455) {
yyv4455 = append(yyv4455, PersistentVolume{}) // var yyz4455 PersistentVolume
yyc4455 = true
}
yyh4455.ElemContainerState(yyj4455)
if yyj4455 < len(yyv4455) {
if r.TryDecodeAsNil() {
yyv4455[yyj4455] = PersistentVolume{}
} else {
yyv4458 := &yyv4455[yyj4455]
yyv4458.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4455 < len(yyv4455) {
yyv4455 = yyv4455[:yyj4455]
yyc4455 = true
} else if yyj4455 == 0 && yyv4455 == nil {
yyv4455 = []PersistentVolume{}
yyc4455 = true
}
}
yyh4455.End()
if yyc4455 {
*v = yyv4455
}
}
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 _, yyv4459 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4460 := &yyv4459
yy4460.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
yyv4461 := *v
yyh4461, yyl4461 := z.DecSliceHelperStart()
var yyc4461 bool
if yyl4461 == 0 {
if yyv4461 == nil {
yyv4461 = []PersistentVolumeClaim{}
yyc4461 = true
} else if len(yyv4461) != 0 {
yyv4461 = yyv4461[:0]
yyc4461 = true
}
} else if yyl4461 > 0 {
var yyrr4461, yyrl4461 int
var yyrt4461 bool
if yyl4461 > cap(yyv4461) {
yyrg4461 := len(yyv4461) > 0
yyv24461 := yyv4461
yyrl4461, yyrt4461 = z.DecInferLen(yyl4461, z.DecBasicHandle().MaxInitLen, 352)
if yyrt4461 {
if yyrl4461 <= cap(yyv4461) {
yyv4461 = yyv4461[:yyrl4461]
} else {
yyv4461 = make([]PersistentVolumeClaim, yyrl4461)
}
} else {
yyv4461 = make([]PersistentVolumeClaim, yyrl4461)
}
yyc4461 = true
yyrr4461 = len(yyv4461)
if yyrg4461 {
copy(yyv4461, yyv24461)
}
} else if yyl4461 != len(yyv4461) {
yyv4461 = yyv4461[:yyl4461]
yyc4461 = true
}
yyj4461 := 0
for ; yyj4461 < yyrr4461; yyj4461++ {
yyh4461.ElemContainerState(yyj4461)
if r.TryDecodeAsNil() {
yyv4461[yyj4461] = PersistentVolumeClaim{}
} else {
yyv4462 := &yyv4461[yyj4461]
yyv4462.CodecDecodeSelf(d)
}
}
if yyrt4461 {
for ; yyj4461 < yyl4461; yyj4461++ {
yyv4461 = append(yyv4461, PersistentVolumeClaim{})
yyh4461.ElemContainerState(yyj4461)
if r.TryDecodeAsNil() {
yyv4461[yyj4461] = PersistentVolumeClaim{}
} else {
yyv4463 := &yyv4461[yyj4461]
yyv4463.CodecDecodeSelf(d)
}
}
}
} else {
yyj4461 := 0
for ; !r.CheckBreak(); yyj4461++ {
if yyj4461 >= len(yyv4461) {
yyv4461 = append(yyv4461, PersistentVolumeClaim{}) // var yyz4461 PersistentVolumeClaim
yyc4461 = true
}
yyh4461.ElemContainerState(yyj4461)
if yyj4461 < len(yyv4461) {
if r.TryDecodeAsNil() {
yyv4461[yyj4461] = PersistentVolumeClaim{}
} else {
yyv4464 := &yyv4461[yyj4461]
yyv4464.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4461 < len(yyv4461) {
yyv4461 = yyv4461[:yyj4461]
yyc4461 = true
} else if yyj4461 == 0 && yyv4461 == nil {
yyv4461 = []PersistentVolumeClaim{}
yyc4461 = true
}
}
yyh4461.End()
if yyc4461 {
*v = yyv4461
}
}
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 _, yyv4465 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4466 := &yyv4465
yy4466.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
yyv4467 := *v
yyh4467, yyl4467 := z.DecSliceHelperStart()
var yyc4467 bool
if yyl4467 == 0 {
if yyv4467 == nil {
yyv4467 = []KeyToPath{}
yyc4467 = true
} else if len(yyv4467) != 0 {
yyv4467 = yyv4467[:0]
yyc4467 = true
}
} else if yyl4467 > 0 {
var yyrr4467, yyrl4467 int
var yyrt4467 bool
if yyl4467 > cap(yyv4467) {
yyrg4467 := len(yyv4467) > 0
yyv24467 := yyv4467
yyrl4467, yyrt4467 = z.DecInferLen(yyl4467, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4467 {
if yyrl4467 <= cap(yyv4467) {
yyv4467 = yyv4467[:yyrl4467]
} else {
yyv4467 = make([]KeyToPath, yyrl4467)
}
} else {
yyv4467 = make([]KeyToPath, yyrl4467)
}
yyc4467 = true
yyrr4467 = len(yyv4467)
if yyrg4467 {
copy(yyv4467, yyv24467)
}
} else if yyl4467 != len(yyv4467) {
yyv4467 = yyv4467[:yyl4467]
yyc4467 = true
}
yyj4467 := 0
for ; yyj4467 < yyrr4467; yyj4467++ {
yyh4467.ElemContainerState(yyj4467)
if r.TryDecodeAsNil() {
yyv4467[yyj4467] = KeyToPath{}
} else {
yyv4468 := &yyv4467[yyj4467]
yyv4468.CodecDecodeSelf(d)
}
}
if yyrt4467 {
for ; yyj4467 < yyl4467; yyj4467++ {
yyv4467 = append(yyv4467, KeyToPath{})
yyh4467.ElemContainerState(yyj4467)
if r.TryDecodeAsNil() {
yyv4467[yyj4467] = KeyToPath{}
} else {
yyv4469 := &yyv4467[yyj4467]
yyv4469.CodecDecodeSelf(d)
}
}
}
} else {
yyj4467 := 0
for ; !r.CheckBreak(); yyj4467++ {
if yyj4467 >= len(yyv4467) {
yyv4467 = append(yyv4467, KeyToPath{}) // var yyz4467 KeyToPath
yyc4467 = true
}
yyh4467.ElemContainerState(yyj4467)
if yyj4467 < len(yyv4467) {
if r.TryDecodeAsNil() {
yyv4467[yyj4467] = KeyToPath{}
} else {
yyv4470 := &yyv4467[yyj4467]
yyv4470.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4467 < len(yyv4467) {
yyv4467 = yyv4467[:yyj4467]
yyc4467 = true
} else if yyj4467 == 0 && yyv4467 == nil {
yyv4467 = []KeyToPath{}
yyc4467 = true
}
}
yyh4467.End()
if yyc4467 {
*v = yyv4467
}
}
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 _, yyv4471 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4472 := &yyv4471
yy4472.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
yyv4473 := *v
yyh4473, yyl4473 := z.DecSliceHelperStart()
var yyc4473 bool
if yyl4473 == 0 {
if yyv4473 == nil {
yyv4473 = []DownwardAPIVolumeFile{}
yyc4473 = true
} else if len(yyv4473) != 0 {
yyv4473 = yyv4473[:0]
yyc4473 = true
}
} else if yyl4473 > 0 {
var yyrr4473, yyrl4473 int
var yyrt4473 bool
if yyl4473 > cap(yyv4473) {
yyrg4473 := len(yyv4473) > 0
yyv24473 := yyv4473
yyrl4473, yyrt4473 = z.DecInferLen(yyl4473, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4473 {
if yyrl4473 <= cap(yyv4473) {
yyv4473 = yyv4473[:yyrl4473]
} else {
yyv4473 = make([]DownwardAPIVolumeFile, yyrl4473)
}
} else {
yyv4473 = make([]DownwardAPIVolumeFile, yyrl4473)
}
yyc4473 = true
yyrr4473 = len(yyv4473)
if yyrg4473 {
copy(yyv4473, yyv24473)
}
} else if yyl4473 != len(yyv4473) {
yyv4473 = yyv4473[:yyl4473]
yyc4473 = true
}
yyj4473 := 0
for ; yyj4473 < yyrr4473; yyj4473++ {
yyh4473.ElemContainerState(yyj4473)
if r.TryDecodeAsNil() {
yyv4473[yyj4473] = DownwardAPIVolumeFile{}
} else {
yyv4474 := &yyv4473[yyj4473]
yyv4474.CodecDecodeSelf(d)
}
}
if yyrt4473 {
for ; yyj4473 < yyl4473; yyj4473++ {
yyv4473 = append(yyv4473, DownwardAPIVolumeFile{})
yyh4473.ElemContainerState(yyj4473)
if r.TryDecodeAsNil() {
yyv4473[yyj4473] = DownwardAPIVolumeFile{}
} else {
yyv4475 := &yyv4473[yyj4473]
yyv4475.CodecDecodeSelf(d)
}
}
}
} else {
yyj4473 := 0
for ; !r.CheckBreak(); yyj4473++ {
if yyj4473 >= len(yyv4473) {
yyv4473 = append(yyv4473, DownwardAPIVolumeFile{}) // var yyz4473 DownwardAPIVolumeFile
yyc4473 = true
}
yyh4473.ElemContainerState(yyj4473)
if yyj4473 < len(yyv4473) {
if r.TryDecodeAsNil() {
yyv4473[yyj4473] = DownwardAPIVolumeFile{}
} else {
yyv4476 := &yyv4473[yyj4473]
yyv4476.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4473 < len(yyv4473) {
yyv4473 = yyv4473[:yyj4473]
yyc4473 = true
} else if yyj4473 == 0 && yyv4473 == nil {
yyv4473 = []DownwardAPIVolumeFile{}
yyc4473 = true
}
}
yyh4473.End()
if yyc4473 {
*v = yyv4473
}
}
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 _, yyv4477 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4478 := &yyv4477
yy4478.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
yyv4479 := *v
yyh4479, yyl4479 := z.DecSliceHelperStart()
var yyc4479 bool
if yyl4479 == 0 {
if yyv4479 == nil {
yyv4479 = []HTTPHeader{}
yyc4479 = true
} else if len(yyv4479) != 0 {
yyv4479 = yyv4479[:0]
yyc4479 = true
}
} else if yyl4479 > 0 {
var yyrr4479, yyrl4479 int
var yyrt4479 bool
if yyl4479 > cap(yyv4479) {
yyrg4479 := len(yyv4479) > 0
yyv24479 := yyv4479
yyrl4479, yyrt4479 = z.DecInferLen(yyl4479, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4479 {
if yyrl4479 <= cap(yyv4479) {
yyv4479 = yyv4479[:yyrl4479]
} else {
yyv4479 = make([]HTTPHeader, yyrl4479)
}
} else {
yyv4479 = make([]HTTPHeader, yyrl4479)
}
yyc4479 = true
yyrr4479 = len(yyv4479)
if yyrg4479 {
copy(yyv4479, yyv24479)
}
} else if yyl4479 != len(yyv4479) {
yyv4479 = yyv4479[:yyl4479]
yyc4479 = true
}
yyj4479 := 0
for ; yyj4479 < yyrr4479; yyj4479++ {
yyh4479.ElemContainerState(yyj4479)
if r.TryDecodeAsNil() {
yyv4479[yyj4479] = HTTPHeader{}
} else {
yyv4480 := &yyv4479[yyj4479]
yyv4480.CodecDecodeSelf(d)
}
}
if yyrt4479 {
for ; yyj4479 < yyl4479; yyj4479++ {
yyv4479 = append(yyv4479, HTTPHeader{})
yyh4479.ElemContainerState(yyj4479)
if r.TryDecodeAsNil() {
yyv4479[yyj4479] = HTTPHeader{}
} else {
yyv4481 := &yyv4479[yyj4479]
yyv4481.CodecDecodeSelf(d)
}
}
}
} else {
yyj4479 := 0
for ; !r.CheckBreak(); yyj4479++ {
if yyj4479 >= len(yyv4479) {
yyv4479 = append(yyv4479, HTTPHeader{}) // var yyz4479 HTTPHeader
yyc4479 = true
}
yyh4479.ElemContainerState(yyj4479)
if yyj4479 < len(yyv4479) {
if r.TryDecodeAsNil() {
yyv4479[yyj4479] = HTTPHeader{}
} else {
yyv4482 := &yyv4479[yyj4479]
yyv4482.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4479 < len(yyv4479) {
yyv4479 = yyv4479[:yyj4479]
yyc4479 = true
} else if yyj4479 == 0 && yyv4479 == nil {
yyv4479 = []HTTPHeader{}
yyc4479 = true
}
}
yyh4479.End()
if yyc4479 {
*v = yyv4479
}
}
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 _, yyv4483 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4483.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
yyv4484 := *v
yyh4484, yyl4484 := z.DecSliceHelperStart()
var yyc4484 bool
if yyl4484 == 0 {
if yyv4484 == nil {
yyv4484 = []Capability{}
yyc4484 = true
} else if len(yyv4484) != 0 {
yyv4484 = yyv4484[:0]
yyc4484 = true
}
} else if yyl4484 > 0 {
var yyrr4484, yyrl4484 int
var yyrt4484 bool
if yyl4484 > cap(yyv4484) {
yyrl4484, yyrt4484 = z.DecInferLen(yyl4484, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4484 {
if yyrl4484 <= cap(yyv4484) {
yyv4484 = yyv4484[:yyrl4484]
} else {
yyv4484 = make([]Capability, yyrl4484)
}
} else {
yyv4484 = make([]Capability, yyrl4484)
}
yyc4484 = true
yyrr4484 = len(yyv4484)
} else if yyl4484 != len(yyv4484) {
yyv4484 = yyv4484[:yyl4484]
yyc4484 = true
}
yyj4484 := 0
for ; yyj4484 < yyrr4484; yyj4484++ {
yyh4484.ElemContainerState(yyj4484)
if r.TryDecodeAsNil() {
yyv4484[yyj4484] = ""
} else {
yyv4484[yyj4484] = Capability(r.DecodeString())
}
}
if yyrt4484 {
for ; yyj4484 < yyl4484; yyj4484++ {
yyv4484 = append(yyv4484, "")
yyh4484.ElemContainerState(yyj4484)
if r.TryDecodeAsNil() {
yyv4484[yyj4484] = ""
} else {
yyv4484[yyj4484] = Capability(r.DecodeString())
}
}
}
} else {
yyj4484 := 0
for ; !r.CheckBreak(); yyj4484++ {
if yyj4484 >= len(yyv4484) {
yyv4484 = append(yyv4484, "") // var yyz4484 Capability
yyc4484 = true
}
yyh4484.ElemContainerState(yyj4484)
if yyj4484 < len(yyv4484) {
if r.TryDecodeAsNil() {
yyv4484[yyj4484] = ""
} else {
yyv4484[yyj4484] = Capability(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4484 < len(yyv4484) {
yyv4484 = yyv4484[:yyj4484]
yyc4484 = true
} else if yyj4484 == 0 && yyv4484 == nil {
yyv4484 = []Capability{}
yyc4484 = true
}
}
yyh4484.End()
if yyc4484 {
*v = yyv4484
}
}
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 _, yyv4488 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4489 := &yyv4488
yy4489.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
yyv4490 := *v
yyh4490, yyl4490 := z.DecSliceHelperStart()
var yyc4490 bool
if yyl4490 == 0 {
if yyv4490 == nil {
yyv4490 = []ContainerPort{}
yyc4490 = true
} else if len(yyv4490) != 0 {
yyv4490 = yyv4490[:0]
yyc4490 = true
}
} else if yyl4490 > 0 {
var yyrr4490, yyrl4490 int
var yyrt4490 bool
if yyl4490 > cap(yyv4490) {
yyrg4490 := len(yyv4490) > 0
yyv24490 := yyv4490
yyrl4490, yyrt4490 = z.DecInferLen(yyl4490, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4490 {
if yyrl4490 <= cap(yyv4490) {
yyv4490 = yyv4490[:yyrl4490]
} else {
yyv4490 = make([]ContainerPort, yyrl4490)
}
} else {
yyv4490 = make([]ContainerPort, yyrl4490)
}
yyc4490 = true
yyrr4490 = len(yyv4490)
if yyrg4490 {
copy(yyv4490, yyv24490)
}
} else if yyl4490 != len(yyv4490) {
yyv4490 = yyv4490[:yyl4490]
yyc4490 = true
}
yyj4490 := 0
for ; yyj4490 < yyrr4490; yyj4490++ {
yyh4490.ElemContainerState(yyj4490)
if r.TryDecodeAsNil() {
yyv4490[yyj4490] = ContainerPort{}
} else {
yyv4491 := &yyv4490[yyj4490]
yyv4491.CodecDecodeSelf(d)
}
}
if yyrt4490 {
for ; yyj4490 < yyl4490; yyj4490++ {
yyv4490 = append(yyv4490, ContainerPort{})
yyh4490.ElemContainerState(yyj4490)
if r.TryDecodeAsNil() {
yyv4490[yyj4490] = ContainerPort{}
} else {
yyv4492 := &yyv4490[yyj4490]
yyv4492.CodecDecodeSelf(d)
}
}
}
} else {
yyj4490 := 0
for ; !r.CheckBreak(); yyj4490++ {
if yyj4490 >= len(yyv4490) {
yyv4490 = append(yyv4490, ContainerPort{}) // var yyz4490 ContainerPort
yyc4490 = true
}
yyh4490.ElemContainerState(yyj4490)
if yyj4490 < len(yyv4490) {
if r.TryDecodeAsNil() {
yyv4490[yyj4490] = ContainerPort{}
} else {
yyv4493 := &yyv4490[yyj4490]
yyv4493.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4490 < len(yyv4490) {
yyv4490 = yyv4490[:yyj4490]
yyc4490 = true
} else if yyj4490 == 0 && yyv4490 == nil {
yyv4490 = []ContainerPort{}
yyc4490 = true
}
}
yyh4490.End()
if yyc4490 {
*v = yyv4490
}
}
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 _, yyv4494 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4495 := &yyv4494
yy4495.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
yyv4496 := *v
yyh4496, yyl4496 := z.DecSliceHelperStart()
var yyc4496 bool
if yyl4496 == 0 {
if yyv4496 == nil {
yyv4496 = []EnvVar{}
yyc4496 = true
} else if len(yyv4496) != 0 {
yyv4496 = yyv4496[:0]
yyc4496 = true
}
} else if yyl4496 > 0 {
var yyrr4496, yyrl4496 int
var yyrt4496 bool
if yyl4496 > cap(yyv4496) {
yyrg4496 := len(yyv4496) > 0
yyv24496 := yyv4496
yyrl4496, yyrt4496 = z.DecInferLen(yyl4496, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4496 {
if yyrl4496 <= cap(yyv4496) {
yyv4496 = yyv4496[:yyrl4496]
} else {
yyv4496 = make([]EnvVar, yyrl4496)
}
} else {
yyv4496 = make([]EnvVar, yyrl4496)
}
yyc4496 = true
yyrr4496 = len(yyv4496)
if yyrg4496 {
copy(yyv4496, yyv24496)
}
} else if yyl4496 != len(yyv4496) {
yyv4496 = yyv4496[:yyl4496]
yyc4496 = true
}
yyj4496 := 0
for ; yyj4496 < yyrr4496; yyj4496++ {
yyh4496.ElemContainerState(yyj4496)
if r.TryDecodeAsNil() {
yyv4496[yyj4496] = EnvVar{}
} else {
yyv4497 := &yyv4496[yyj4496]
yyv4497.CodecDecodeSelf(d)
}
}
if yyrt4496 {
for ; yyj4496 < yyl4496; yyj4496++ {
yyv4496 = append(yyv4496, EnvVar{})
yyh4496.ElemContainerState(yyj4496)
if r.TryDecodeAsNil() {
yyv4496[yyj4496] = EnvVar{}
} else {
yyv4498 := &yyv4496[yyj4496]
yyv4498.CodecDecodeSelf(d)
}
}
}
} else {
yyj4496 := 0
for ; !r.CheckBreak(); yyj4496++ {
if yyj4496 >= len(yyv4496) {
yyv4496 = append(yyv4496, EnvVar{}) // var yyz4496 EnvVar
yyc4496 = true
}
yyh4496.ElemContainerState(yyj4496)
if yyj4496 < len(yyv4496) {
if r.TryDecodeAsNil() {
yyv4496[yyj4496] = EnvVar{}
} else {
yyv4499 := &yyv4496[yyj4496]
yyv4499.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4496 < len(yyv4496) {
yyv4496 = yyv4496[:yyj4496]
yyc4496 = true
} else if yyj4496 == 0 && yyv4496 == nil {
yyv4496 = []EnvVar{}
yyc4496 = true
}
}
yyh4496.End()
if yyc4496 {
*v = yyv4496
}
}
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 _, yyv4500 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4501 := &yyv4500
yy4501.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
yyv4502 := *v
yyh4502, yyl4502 := z.DecSliceHelperStart()
var yyc4502 bool
if yyl4502 == 0 {
if yyv4502 == nil {
yyv4502 = []VolumeMount{}
yyc4502 = true
} else if len(yyv4502) != 0 {
yyv4502 = yyv4502[:0]
yyc4502 = true
}
} else if yyl4502 > 0 {
var yyrr4502, yyrl4502 int
var yyrt4502 bool
if yyl4502 > cap(yyv4502) {
yyrg4502 := len(yyv4502) > 0
yyv24502 := yyv4502
yyrl4502, yyrt4502 = z.DecInferLen(yyl4502, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4502 {
if yyrl4502 <= cap(yyv4502) {
yyv4502 = yyv4502[:yyrl4502]
} else {
yyv4502 = make([]VolumeMount, yyrl4502)
}
} else {
yyv4502 = make([]VolumeMount, yyrl4502)
}
yyc4502 = true
yyrr4502 = len(yyv4502)
if yyrg4502 {
copy(yyv4502, yyv24502)
}
} else if yyl4502 != len(yyv4502) {
yyv4502 = yyv4502[:yyl4502]
yyc4502 = true
}
yyj4502 := 0
for ; yyj4502 < yyrr4502; yyj4502++ {
yyh4502.ElemContainerState(yyj4502)
if r.TryDecodeAsNil() {
yyv4502[yyj4502] = VolumeMount{}
} else {
yyv4503 := &yyv4502[yyj4502]
yyv4503.CodecDecodeSelf(d)
}
}
if yyrt4502 {
for ; yyj4502 < yyl4502; yyj4502++ {
yyv4502 = append(yyv4502, VolumeMount{})
yyh4502.ElemContainerState(yyj4502)
if r.TryDecodeAsNil() {
yyv4502[yyj4502] = VolumeMount{}
} else {
yyv4504 := &yyv4502[yyj4502]
yyv4504.CodecDecodeSelf(d)
}
}
}
} else {
yyj4502 := 0
for ; !r.CheckBreak(); yyj4502++ {
if yyj4502 >= len(yyv4502) {
yyv4502 = append(yyv4502, VolumeMount{}) // var yyz4502 VolumeMount
yyc4502 = true
}
yyh4502.ElemContainerState(yyj4502)
if yyj4502 < len(yyv4502) {
if r.TryDecodeAsNil() {
yyv4502[yyj4502] = VolumeMount{}
} else {
yyv4505 := &yyv4502[yyj4502]
yyv4505.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4502 < len(yyv4502) {
yyv4502 = yyv4502[:yyj4502]
yyc4502 = true
} else if yyj4502 == 0 && yyv4502 == nil {
yyv4502 = []VolumeMount{}
yyc4502 = true
}
}
yyh4502.End()
if yyc4502 {
*v = yyv4502
}
}
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 _, yyv4506 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4507 := &yyv4506
yy4507.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
yyv4508 := *v
yyh4508, yyl4508 := z.DecSliceHelperStart()
var yyc4508 bool
if yyl4508 == 0 {
if yyv4508 == nil {
yyv4508 = []Pod{}
yyc4508 = true
} else if len(yyv4508) != 0 {
yyv4508 = yyv4508[:0]
yyc4508 = true
}
} else if yyl4508 > 0 {
var yyrr4508, yyrl4508 int
var yyrt4508 bool
if yyl4508 > cap(yyv4508) {
yyrg4508 := len(yyv4508) > 0
yyv24508 := yyv4508
yyrl4508, yyrt4508 = z.DecInferLen(yyl4508, z.DecBasicHandle().MaxInitLen, 624)
if yyrt4508 {
if yyrl4508 <= cap(yyv4508) {
yyv4508 = yyv4508[:yyrl4508]
} else {
yyv4508 = make([]Pod, yyrl4508)
}
} else {
yyv4508 = make([]Pod, yyrl4508)
}
yyc4508 = true
yyrr4508 = len(yyv4508)
if yyrg4508 {
copy(yyv4508, yyv24508)
}
} else if yyl4508 != len(yyv4508) {
yyv4508 = yyv4508[:yyl4508]
yyc4508 = true
}
yyj4508 := 0
for ; yyj4508 < yyrr4508; yyj4508++ {
yyh4508.ElemContainerState(yyj4508)
if r.TryDecodeAsNil() {
yyv4508[yyj4508] = Pod{}
} else {
yyv4509 := &yyv4508[yyj4508]
yyv4509.CodecDecodeSelf(d)
}
}
if yyrt4508 {
for ; yyj4508 < yyl4508; yyj4508++ {
yyv4508 = append(yyv4508, Pod{})
yyh4508.ElemContainerState(yyj4508)
if r.TryDecodeAsNil() {
yyv4508[yyj4508] = Pod{}
} else {
yyv4510 := &yyv4508[yyj4508]
yyv4510.CodecDecodeSelf(d)
}
}
}
} else {
yyj4508 := 0
for ; !r.CheckBreak(); yyj4508++ {
if yyj4508 >= len(yyv4508) {
yyv4508 = append(yyv4508, Pod{}) // var yyz4508 Pod
yyc4508 = true
}
yyh4508.ElemContainerState(yyj4508)
if yyj4508 < len(yyv4508) {
if r.TryDecodeAsNil() {
yyv4508[yyj4508] = Pod{}
} else {
yyv4511 := &yyv4508[yyj4508]
yyv4511.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4508 < len(yyv4508) {
yyv4508 = yyv4508[:yyj4508]
yyc4508 = true
} else if yyj4508 == 0 && yyv4508 == nil {
yyv4508 = []Pod{}
yyc4508 = true
}
}
yyh4508.End()
if yyc4508 {
*v = yyv4508
}
}
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 _, yyv4512 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4513 := &yyv4512
yy4513.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
yyv4514 := *v
yyh4514, yyl4514 := z.DecSliceHelperStart()
var yyc4514 bool
if yyl4514 == 0 {
if yyv4514 == nil {
yyv4514 = []NodeSelectorTerm{}
yyc4514 = true
} else if len(yyv4514) != 0 {
yyv4514 = yyv4514[:0]
yyc4514 = true
}
} else if yyl4514 > 0 {
var yyrr4514, yyrl4514 int
var yyrt4514 bool
if yyl4514 > cap(yyv4514) {
yyrg4514 := len(yyv4514) > 0
yyv24514 := yyv4514
yyrl4514, yyrt4514 = z.DecInferLen(yyl4514, z.DecBasicHandle().MaxInitLen, 24)
if yyrt4514 {
if yyrl4514 <= cap(yyv4514) {
yyv4514 = yyv4514[:yyrl4514]
} else {
yyv4514 = make([]NodeSelectorTerm, yyrl4514)
}
} else {
yyv4514 = make([]NodeSelectorTerm, yyrl4514)
}
yyc4514 = true
yyrr4514 = len(yyv4514)
if yyrg4514 {
copy(yyv4514, yyv24514)
}
} else if yyl4514 != len(yyv4514) {
yyv4514 = yyv4514[:yyl4514]
yyc4514 = true
}
yyj4514 := 0
for ; yyj4514 < yyrr4514; yyj4514++ {
yyh4514.ElemContainerState(yyj4514)
if r.TryDecodeAsNil() {
yyv4514[yyj4514] = NodeSelectorTerm{}
} else {
yyv4515 := &yyv4514[yyj4514]
yyv4515.CodecDecodeSelf(d)
}
}
if yyrt4514 {
for ; yyj4514 < yyl4514; yyj4514++ {
yyv4514 = append(yyv4514, NodeSelectorTerm{})
yyh4514.ElemContainerState(yyj4514)
if r.TryDecodeAsNil() {
yyv4514[yyj4514] = NodeSelectorTerm{}
} else {
yyv4516 := &yyv4514[yyj4514]
yyv4516.CodecDecodeSelf(d)
}
}
}
} else {
yyj4514 := 0
for ; !r.CheckBreak(); yyj4514++ {
if yyj4514 >= len(yyv4514) {
yyv4514 = append(yyv4514, NodeSelectorTerm{}) // var yyz4514 NodeSelectorTerm
yyc4514 = true
}
yyh4514.ElemContainerState(yyj4514)
if yyj4514 < len(yyv4514) {
if r.TryDecodeAsNil() {
yyv4514[yyj4514] = NodeSelectorTerm{}
} else {
yyv4517 := &yyv4514[yyj4514]
yyv4517.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4514 < len(yyv4514) {
yyv4514 = yyv4514[:yyj4514]
yyc4514 = true
} else if yyj4514 == 0 && yyv4514 == nil {
yyv4514 = []NodeSelectorTerm{}
yyc4514 = true
}
}
yyh4514.End()
if yyc4514 {
*v = yyv4514
}
}
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 _, yyv4518 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4519 := &yyv4518
yy4519.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
yyv4520 := *v
yyh4520, yyl4520 := z.DecSliceHelperStart()
var yyc4520 bool
if yyl4520 == 0 {
if yyv4520 == nil {
yyv4520 = []NodeSelectorRequirement{}
yyc4520 = true
} else if len(yyv4520) != 0 {
yyv4520 = yyv4520[:0]
yyc4520 = true
}
} else if yyl4520 > 0 {
var yyrr4520, yyrl4520 int
var yyrt4520 bool
if yyl4520 > cap(yyv4520) {
yyrg4520 := len(yyv4520) > 0
yyv24520 := yyv4520
yyrl4520, yyrt4520 = z.DecInferLen(yyl4520, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4520 {
if yyrl4520 <= cap(yyv4520) {
yyv4520 = yyv4520[:yyrl4520]
} else {
yyv4520 = make([]NodeSelectorRequirement, yyrl4520)
}
} else {
yyv4520 = make([]NodeSelectorRequirement, yyrl4520)
}
yyc4520 = true
yyrr4520 = len(yyv4520)
if yyrg4520 {
copy(yyv4520, yyv24520)
}
} else if yyl4520 != len(yyv4520) {
yyv4520 = yyv4520[:yyl4520]
yyc4520 = true
}
yyj4520 := 0
for ; yyj4520 < yyrr4520; yyj4520++ {
yyh4520.ElemContainerState(yyj4520)
if r.TryDecodeAsNil() {
yyv4520[yyj4520] = NodeSelectorRequirement{}
} else {
yyv4521 := &yyv4520[yyj4520]
yyv4521.CodecDecodeSelf(d)
}
}
if yyrt4520 {
for ; yyj4520 < yyl4520; yyj4520++ {
yyv4520 = append(yyv4520, NodeSelectorRequirement{})
yyh4520.ElemContainerState(yyj4520)
if r.TryDecodeAsNil() {
yyv4520[yyj4520] = NodeSelectorRequirement{}
} else {
yyv4522 := &yyv4520[yyj4520]
yyv4522.CodecDecodeSelf(d)
}
}
}
} else {
yyj4520 := 0
for ; !r.CheckBreak(); yyj4520++ {
if yyj4520 >= len(yyv4520) {
yyv4520 = append(yyv4520, NodeSelectorRequirement{}) // var yyz4520 NodeSelectorRequirement
yyc4520 = true
}
yyh4520.ElemContainerState(yyj4520)
if yyj4520 < len(yyv4520) {
if r.TryDecodeAsNil() {
yyv4520[yyj4520] = NodeSelectorRequirement{}
} else {
yyv4523 := &yyv4520[yyj4520]
yyv4523.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4520 < len(yyv4520) {
yyv4520 = yyv4520[:yyj4520]
yyc4520 = true
} else if yyj4520 == 0 && yyv4520 == nil {
yyv4520 = []NodeSelectorRequirement{}
yyc4520 = true
}
}
yyh4520.End()
if yyc4520 {
*v = yyv4520
}
}
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 _, yyv4524 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4525 := &yyv4524
yy4525.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
yyv4526 := *v
yyh4526, yyl4526 := z.DecSliceHelperStart()
var yyc4526 bool
if yyl4526 == 0 {
if yyv4526 == nil {
yyv4526 = []PodAffinityTerm{}
yyc4526 = true
} else if len(yyv4526) != 0 {
yyv4526 = yyv4526[:0]
yyc4526 = true
}
} else if yyl4526 > 0 {
var yyrr4526, yyrl4526 int
var yyrt4526 bool
if yyl4526 > cap(yyv4526) {
yyrg4526 := len(yyv4526) > 0
yyv24526 := yyv4526
yyrl4526, yyrt4526 = z.DecInferLen(yyl4526, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4526 {
if yyrl4526 <= cap(yyv4526) {
yyv4526 = yyv4526[:yyrl4526]
} else {
yyv4526 = make([]PodAffinityTerm, yyrl4526)
}
} else {
yyv4526 = make([]PodAffinityTerm, yyrl4526)
}
yyc4526 = true
yyrr4526 = len(yyv4526)
if yyrg4526 {
copy(yyv4526, yyv24526)
}
} else if yyl4526 != len(yyv4526) {
yyv4526 = yyv4526[:yyl4526]
yyc4526 = true
}
yyj4526 := 0
for ; yyj4526 < yyrr4526; yyj4526++ {
yyh4526.ElemContainerState(yyj4526)
if r.TryDecodeAsNil() {
yyv4526[yyj4526] = PodAffinityTerm{}
} else {
yyv4527 := &yyv4526[yyj4526]
yyv4527.CodecDecodeSelf(d)
}
}
if yyrt4526 {
for ; yyj4526 < yyl4526; yyj4526++ {
yyv4526 = append(yyv4526, PodAffinityTerm{})
yyh4526.ElemContainerState(yyj4526)
if r.TryDecodeAsNil() {
yyv4526[yyj4526] = PodAffinityTerm{}
} else {
yyv4528 := &yyv4526[yyj4526]
yyv4528.CodecDecodeSelf(d)
}
}
}
} else {
yyj4526 := 0
for ; !r.CheckBreak(); yyj4526++ {
if yyj4526 >= len(yyv4526) {
yyv4526 = append(yyv4526, PodAffinityTerm{}) // var yyz4526 PodAffinityTerm
yyc4526 = true
}
yyh4526.ElemContainerState(yyj4526)
if yyj4526 < len(yyv4526) {
if r.TryDecodeAsNil() {
yyv4526[yyj4526] = PodAffinityTerm{}
} else {
yyv4529 := &yyv4526[yyj4526]
yyv4529.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4526 < len(yyv4526) {
yyv4526 = yyv4526[:yyj4526]
yyc4526 = true
} else if yyj4526 == 0 && yyv4526 == nil {
yyv4526 = []PodAffinityTerm{}
yyc4526 = true
}
}
yyh4526.End()
if yyc4526 {
*v = yyv4526
}
}
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 _, yyv4530 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4531 := &yyv4530
yy4531.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
yyv4532 := *v
yyh4532, yyl4532 := z.DecSliceHelperStart()
var yyc4532 bool
if yyl4532 == 0 {
if yyv4532 == nil {
yyv4532 = []WeightedPodAffinityTerm{}
yyc4532 = true
} else if len(yyv4532) != 0 {
yyv4532 = yyv4532[:0]
yyc4532 = true
}
} else if yyl4532 > 0 {
var yyrr4532, yyrl4532 int
var yyrt4532 bool
if yyl4532 > cap(yyv4532) {
yyrg4532 := len(yyv4532) > 0
yyv24532 := yyv4532
yyrl4532, yyrt4532 = z.DecInferLen(yyl4532, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4532 {
if yyrl4532 <= cap(yyv4532) {
yyv4532 = yyv4532[:yyrl4532]
} else {
yyv4532 = make([]WeightedPodAffinityTerm, yyrl4532)
}
} else {
yyv4532 = make([]WeightedPodAffinityTerm, yyrl4532)
}
yyc4532 = true
yyrr4532 = len(yyv4532)
if yyrg4532 {
copy(yyv4532, yyv24532)
}
} else if yyl4532 != len(yyv4532) {
yyv4532 = yyv4532[:yyl4532]
yyc4532 = true
}
yyj4532 := 0
for ; yyj4532 < yyrr4532; yyj4532++ {
yyh4532.ElemContainerState(yyj4532)
if r.TryDecodeAsNil() {
yyv4532[yyj4532] = WeightedPodAffinityTerm{}
} else {
yyv4533 := &yyv4532[yyj4532]
yyv4533.CodecDecodeSelf(d)
}
}
if yyrt4532 {
for ; yyj4532 < yyl4532; yyj4532++ {
yyv4532 = append(yyv4532, WeightedPodAffinityTerm{})
yyh4532.ElemContainerState(yyj4532)
if r.TryDecodeAsNil() {
yyv4532[yyj4532] = WeightedPodAffinityTerm{}
} else {
yyv4534 := &yyv4532[yyj4532]
yyv4534.CodecDecodeSelf(d)
}
}
}
} else {
yyj4532 := 0
for ; !r.CheckBreak(); yyj4532++ {
if yyj4532 >= len(yyv4532) {
yyv4532 = append(yyv4532, WeightedPodAffinityTerm{}) // var yyz4532 WeightedPodAffinityTerm
yyc4532 = true
}
yyh4532.ElemContainerState(yyj4532)
if yyj4532 < len(yyv4532) {
if r.TryDecodeAsNil() {
yyv4532[yyj4532] = WeightedPodAffinityTerm{}
} else {
yyv4535 := &yyv4532[yyj4532]
yyv4535.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4532 < len(yyv4532) {
yyv4532 = yyv4532[:yyj4532]
yyc4532 = true
} else if yyj4532 == 0 && yyv4532 == nil {
yyv4532 = []WeightedPodAffinityTerm{}
yyc4532 = true
}
}
yyh4532.End()
if yyc4532 {
*v = yyv4532
}
}
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 _, yyv4536 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4537 := &yyv4536
yy4537.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
yyv4538 := *v
yyh4538, yyl4538 := z.DecSliceHelperStart()
var yyc4538 bool
if yyl4538 == 0 {
if yyv4538 == nil {
yyv4538 = []PreferredSchedulingTerm{}
yyc4538 = true
} else if len(yyv4538) != 0 {
yyv4538 = yyv4538[:0]
yyc4538 = true
}
} else if yyl4538 > 0 {
var yyrr4538, yyrl4538 int
var yyrt4538 bool
if yyl4538 > cap(yyv4538) {
yyrg4538 := len(yyv4538) > 0
yyv24538 := yyv4538
yyrl4538, yyrt4538 = z.DecInferLen(yyl4538, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4538 {
if yyrl4538 <= cap(yyv4538) {
yyv4538 = yyv4538[:yyrl4538]
} else {
yyv4538 = make([]PreferredSchedulingTerm, yyrl4538)
}
} else {
yyv4538 = make([]PreferredSchedulingTerm, yyrl4538)
}
yyc4538 = true
yyrr4538 = len(yyv4538)
if yyrg4538 {
copy(yyv4538, yyv24538)
}
} else if yyl4538 != len(yyv4538) {
yyv4538 = yyv4538[:yyl4538]
yyc4538 = true
}
yyj4538 := 0
for ; yyj4538 < yyrr4538; yyj4538++ {
yyh4538.ElemContainerState(yyj4538)
if r.TryDecodeAsNil() {
yyv4538[yyj4538] = PreferredSchedulingTerm{}
} else {
yyv4539 := &yyv4538[yyj4538]
yyv4539.CodecDecodeSelf(d)
}
}
if yyrt4538 {
for ; yyj4538 < yyl4538; yyj4538++ {
yyv4538 = append(yyv4538, PreferredSchedulingTerm{})
yyh4538.ElemContainerState(yyj4538)
if r.TryDecodeAsNil() {
yyv4538[yyj4538] = PreferredSchedulingTerm{}
} else {
yyv4540 := &yyv4538[yyj4538]
yyv4540.CodecDecodeSelf(d)
}
}
}
} else {
yyj4538 := 0
for ; !r.CheckBreak(); yyj4538++ {
if yyj4538 >= len(yyv4538) {
yyv4538 = append(yyv4538, PreferredSchedulingTerm{}) // var yyz4538 PreferredSchedulingTerm
yyc4538 = true
}
yyh4538.ElemContainerState(yyj4538)
if yyj4538 < len(yyv4538) {
if r.TryDecodeAsNil() {
yyv4538[yyj4538] = PreferredSchedulingTerm{}
} else {
yyv4541 := &yyv4538[yyj4538]
yyv4541.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4538 < len(yyv4538) {
yyv4538 = yyv4538[:yyj4538]
yyc4538 = true
} else if yyj4538 == 0 && yyv4538 == nil {
yyv4538 = []PreferredSchedulingTerm{}
yyc4538 = true
}
}
yyh4538.End()
if yyc4538 {
*v = yyv4538
}
}
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 _, yyv4542 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4543 := &yyv4542
yy4543.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
yyv4544 := *v
yyh4544, yyl4544 := z.DecSliceHelperStart()
var yyc4544 bool
if yyl4544 == 0 {
if yyv4544 == nil {
yyv4544 = []Volume{}
yyc4544 = true
} else if len(yyv4544) != 0 {
yyv4544 = yyv4544[:0]
yyc4544 = true
}
} else if yyl4544 > 0 {
var yyrr4544, yyrl4544 int
var yyrt4544 bool
if yyl4544 > cap(yyv4544) {
yyrg4544 := len(yyv4544) > 0
yyv24544 := yyv4544
yyrl4544, yyrt4544 = z.DecInferLen(yyl4544, z.DecBasicHandle().MaxInitLen, 184)
if yyrt4544 {
if yyrl4544 <= cap(yyv4544) {
yyv4544 = yyv4544[:yyrl4544]
} else {
yyv4544 = make([]Volume, yyrl4544)
}
} else {
yyv4544 = make([]Volume, yyrl4544)
}
yyc4544 = true
yyrr4544 = len(yyv4544)
if yyrg4544 {
copy(yyv4544, yyv24544)
}
} else if yyl4544 != len(yyv4544) {
yyv4544 = yyv4544[:yyl4544]
yyc4544 = true
}
yyj4544 := 0
for ; yyj4544 < yyrr4544; yyj4544++ {
yyh4544.ElemContainerState(yyj4544)
if r.TryDecodeAsNil() {
yyv4544[yyj4544] = Volume{}
} else {
yyv4545 := &yyv4544[yyj4544]
yyv4545.CodecDecodeSelf(d)
}
}
if yyrt4544 {
for ; yyj4544 < yyl4544; yyj4544++ {
yyv4544 = append(yyv4544, Volume{})
yyh4544.ElemContainerState(yyj4544)
if r.TryDecodeAsNil() {
yyv4544[yyj4544] = Volume{}
} else {
yyv4546 := &yyv4544[yyj4544]
yyv4546.CodecDecodeSelf(d)
}
}
}
} else {
yyj4544 := 0
for ; !r.CheckBreak(); yyj4544++ {
if yyj4544 >= len(yyv4544) {
yyv4544 = append(yyv4544, Volume{}) // var yyz4544 Volume
yyc4544 = true
}
yyh4544.ElemContainerState(yyj4544)
if yyj4544 < len(yyv4544) {
if r.TryDecodeAsNil() {
yyv4544[yyj4544] = Volume{}
} else {
yyv4547 := &yyv4544[yyj4544]
yyv4547.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4544 < len(yyv4544) {
yyv4544 = yyv4544[:yyj4544]
yyc4544 = true
} else if yyj4544 == 0 && yyv4544 == nil {
yyv4544 = []Volume{}
yyc4544 = true
}
}
yyh4544.End()
if yyc4544 {
*v = yyv4544
}
}
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 _, yyv4548 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4549 := &yyv4548
yy4549.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
yyv4550 := *v
yyh4550, yyl4550 := z.DecSliceHelperStart()
var yyc4550 bool
if yyl4550 == 0 {
if yyv4550 == nil {
yyv4550 = []Container{}
yyc4550 = true
} else if len(yyv4550) != 0 {
yyv4550 = yyv4550[:0]
yyc4550 = true
}
} else if yyl4550 > 0 {
var yyrr4550, yyrl4550 int
var yyrt4550 bool
if yyl4550 > cap(yyv4550) {
yyrg4550 := len(yyv4550) > 0
yyv24550 := yyv4550
yyrl4550, yyrt4550 = z.DecInferLen(yyl4550, z.DecBasicHandle().MaxInitLen, 256)
if yyrt4550 {
if yyrl4550 <= cap(yyv4550) {
yyv4550 = yyv4550[:yyrl4550]
} else {
yyv4550 = make([]Container, yyrl4550)
}
} else {
yyv4550 = make([]Container, yyrl4550)
}
yyc4550 = true
yyrr4550 = len(yyv4550)
if yyrg4550 {
copy(yyv4550, yyv24550)
}
} else if yyl4550 != len(yyv4550) {
yyv4550 = yyv4550[:yyl4550]
yyc4550 = true
}
yyj4550 := 0
for ; yyj4550 < yyrr4550; yyj4550++ {
yyh4550.ElemContainerState(yyj4550)
if r.TryDecodeAsNil() {
yyv4550[yyj4550] = Container{}
} else {
yyv4551 := &yyv4550[yyj4550]
yyv4551.CodecDecodeSelf(d)
}
}
if yyrt4550 {
for ; yyj4550 < yyl4550; yyj4550++ {
yyv4550 = append(yyv4550, Container{})
yyh4550.ElemContainerState(yyj4550)
if r.TryDecodeAsNil() {
yyv4550[yyj4550] = Container{}
} else {
yyv4552 := &yyv4550[yyj4550]
yyv4552.CodecDecodeSelf(d)
}
}
}
} else {
yyj4550 := 0
for ; !r.CheckBreak(); yyj4550++ {
if yyj4550 >= len(yyv4550) {
yyv4550 = append(yyv4550, Container{}) // var yyz4550 Container
yyc4550 = true
}
yyh4550.ElemContainerState(yyj4550)
if yyj4550 < len(yyv4550) {
if r.TryDecodeAsNil() {
yyv4550[yyj4550] = Container{}
} else {
yyv4553 := &yyv4550[yyj4550]
yyv4553.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4550 < len(yyv4550) {
yyv4550 = yyv4550[:yyj4550]
yyc4550 = true
} else if yyj4550 == 0 && yyv4550 == nil {
yyv4550 = []Container{}
yyc4550 = true
}
}
yyh4550.End()
if yyc4550 {
*v = yyv4550
}
}
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 _, yyv4554 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4555 := &yyv4554
yy4555.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
yyv4556 := *v
yyh4556, yyl4556 := z.DecSliceHelperStart()
var yyc4556 bool
if yyl4556 == 0 {
if yyv4556 == nil {
yyv4556 = []LocalObjectReference{}
yyc4556 = true
} else if len(yyv4556) != 0 {
yyv4556 = yyv4556[:0]
yyc4556 = true
}
} else if yyl4556 > 0 {
var yyrr4556, yyrl4556 int
var yyrt4556 bool
if yyl4556 > cap(yyv4556) {
yyrg4556 := len(yyv4556) > 0
yyv24556 := yyv4556
yyrl4556, yyrt4556 = z.DecInferLen(yyl4556, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4556 {
if yyrl4556 <= cap(yyv4556) {
yyv4556 = yyv4556[:yyrl4556]
} else {
yyv4556 = make([]LocalObjectReference, yyrl4556)
}
} else {
yyv4556 = make([]LocalObjectReference, yyrl4556)
}
yyc4556 = true
yyrr4556 = len(yyv4556)
if yyrg4556 {
copy(yyv4556, yyv24556)
}
} else if yyl4556 != len(yyv4556) {
yyv4556 = yyv4556[:yyl4556]
yyc4556 = true
}
yyj4556 := 0
for ; yyj4556 < yyrr4556; yyj4556++ {
yyh4556.ElemContainerState(yyj4556)
if r.TryDecodeAsNil() {
yyv4556[yyj4556] = LocalObjectReference{}
} else {
yyv4557 := &yyv4556[yyj4556]
yyv4557.CodecDecodeSelf(d)
}
}
if yyrt4556 {
for ; yyj4556 < yyl4556; yyj4556++ {
yyv4556 = append(yyv4556, LocalObjectReference{})
yyh4556.ElemContainerState(yyj4556)
if r.TryDecodeAsNil() {
yyv4556[yyj4556] = LocalObjectReference{}
} else {
yyv4558 := &yyv4556[yyj4556]
yyv4558.CodecDecodeSelf(d)
}
}
}
} else {
yyj4556 := 0
for ; !r.CheckBreak(); yyj4556++ {
if yyj4556 >= len(yyv4556) {
yyv4556 = append(yyv4556, LocalObjectReference{}) // var yyz4556 LocalObjectReference
yyc4556 = true
}
yyh4556.ElemContainerState(yyj4556)
if yyj4556 < len(yyv4556) {
if r.TryDecodeAsNil() {
yyv4556[yyj4556] = LocalObjectReference{}
} else {
yyv4559 := &yyv4556[yyj4556]
yyv4559.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4556 < len(yyv4556) {
yyv4556 = yyv4556[:yyj4556]
yyc4556 = true
} else if yyj4556 == 0 && yyv4556 == nil {
yyv4556 = []LocalObjectReference{}
yyc4556 = true
}
}
yyh4556.End()
if yyc4556 {
*v = yyv4556
}
}
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 _, yyv4560 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4561 := &yyv4560
yy4561.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
yyv4562 := *v
yyh4562, yyl4562 := z.DecSliceHelperStart()
var yyc4562 bool
if yyl4562 == 0 {
if yyv4562 == nil {
yyv4562 = []PodCondition{}
yyc4562 = true
} else if len(yyv4562) != 0 {
yyv4562 = yyv4562[:0]
yyc4562 = true
}
} else if yyl4562 > 0 {
var yyrr4562, yyrl4562 int
var yyrt4562 bool
if yyl4562 > cap(yyv4562) {
yyrg4562 := len(yyv4562) > 0
yyv24562 := yyv4562
yyrl4562, yyrt4562 = z.DecInferLen(yyl4562, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4562 {
if yyrl4562 <= cap(yyv4562) {
yyv4562 = yyv4562[:yyrl4562]
} else {
yyv4562 = make([]PodCondition, yyrl4562)
}
} else {
yyv4562 = make([]PodCondition, yyrl4562)
}
yyc4562 = true
yyrr4562 = len(yyv4562)
if yyrg4562 {
copy(yyv4562, yyv24562)
}
} else if yyl4562 != len(yyv4562) {
yyv4562 = yyv4562[:yyl4562]
yyc4562 = true
}
yyj4562 := 0
for ; yyj4562 < yyrr4562; yyj4562++ {
yyh4562.ElemContainerState(yyj4562)
if r.TryDecodeAsNil() {
yyv4562[yyj4562] = PodCondition{}
} else {
yyv4563 := &yyv4562[yyj4562]
yyv4563.CodecDecodeSelf(d)
}
}
if yyrt4562 {
for ; yyj4562 < yyl4562; yyj4562++ {
yyv4562 = append(yyv4562, PodCondition{})
yyh4562.ElemContainerState(yyj4562)
if r.TryDecodeAsNil() {
yyv4562[yyj4562] = PodCondition{}
} else {
yyv4564 := &yyv4562[yyj4562]
yyv4564.CodecDecodeSelf(d)
}
}
}
} else {
yyj4562 := 0
for ; !r.CheckBreak(); yyj4562++ {
if yyj4562 >= len(yyv4562) {
yyv4562 = append(yyv4562, PodCondition{}) // var yyz4562 PodCondition
yyc4562 = true
}
yyh4562.ElemContainerState(yyj4562)
if yyj4562 < len(yyv4562) {
if r.TryDecodeAsNil() {
yyv4562[yyj4562] = PodCondition{}
} else {
yyv4565 := &yyv4562[yyj4562]
yyv4565.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4562 < len(yyv4562) {
yyv4562 = yyv4562[:yyj4562]
yyc4562 = true
} else if yyj4562 == 0 && yyv4562 == nil {
yyv4562 = []PodCondition{}
yyc4562 = true
}
}
yyh4562.End()
if yyc4562 {
*v = yyv4562
}
}
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 _, yyv4566 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4567 := &yyv4566
yy4567.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
yyv4568 := *v
yyh4568, yyl4568 := z.DecSliceHelperStart()
var yyc4568 bool
if yyl4568 == 0 {
if yyv4568 == nil {
yyv4568 = []ContainerStatus{}
yyc4568 = true
} else if len(yyv4568) != 0 {
yyv4568 = yyv4568[:0]
yyc4568 = true
}
} else if yyl4568 > 0 {
var yyrr4568, yyrl4568 int
var yyrt4568 bool
if yyl4568 > cap(yyv4568) {
yyrg4568 := len(yyv4568) > 0
yyv24568 := yyv4568
yyrl4568, yyrt4568 = z.DecInferLen(yyl4568, z.DecBasicHandle().MaxInitLen, 120)
if yyrt4568 {
if yyrl4568 <= cap(yyv4568) {
yyv4568 = yyv4568[:yyrl4568]
} else {
yyv4568 = make([]ContainerStatus, yyrl4568)
}
} else {
yyv4568 = make([]ContainerStatus, yyrl4568)
}
yyc4568 = true
yyrr4568 = len(yyv4568)
if yyrg4568 {
copy(yyv4568, yyv24568)
}
} else if yyl4568 != len(yyv4568) {
yyv4568 = yyv4568[:yyl4568]
yyc4568 = true
}
yyj4568 := 0
for ; yyj4568 < yyrr4568; yyj4568++ {
yyh4568.ElemContainerState(yyj4568)
if r.TryDecodeAsNil() {
yyv4568[yyj4568] = ContainerStatus{}
} else {
yyv4569 := &yyv4568[yyj4568]
yyv4569.CodecDecodeSelf(d)
}
}
if yyrt4568 {
for ; yyj4568 < yyl4568; yyj4568++ {
yyv4568 = append(yyv4568, ContainerStatus{})
yyh4568.ElemContainerState(yyj4568)
if r.TryDecodeAsNil() {
yyv4568[yyj4568] = ContainerStatus{}
} else {
yyv4570 := &yyv4568[yyj4568]
yyv4570.CodecDecodeSelf(d)
}
}
}
} else {
yyj4568 := 0
for ; !r.CheckBreak(); yyj4568++ {
if yyj4568 >= len(yyv4568) {
yyv4568 = append(yyv4568, ContainerStatus{}) // var yyz4568 ContainerStatus
yyc4568 = true
}
yyh4568.ElemContainerState(yyj4568)
if yyj4568 < len(yyv4568) {
if r.TryDecodeAsNil() {
yyv4568[yyj4568] = ContainerStatus{}
} else {
yyv4571 := &yyv4568[yyj4568]
yyv4571.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4568 < len(yyv4568) {
yyv4568 = yyv4568[:yyj4568]
yyc4568 = true
} else if yyj4568 == 0 && yyv4568 == nil {
yyv4568 = []ContainerStatus{}
yyc4568 = true
}
}
yyh4568.End()
if yyc4568 {
*v = yyv4568
}
}
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 _, yyv4572 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4573 := &yyv4572
yy4573.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
yyv4574 := *v
yyh4574, yyl4574 := z.DecSliceHelperStart()
var yyc4574 bool
if yyl4574 == 0 {
if yyv4574 == nil {
yyv4574 = []PodTemplate{}
yyc4574 = true
} else if len(yyv4574) != 0 {
yyv4574 = yyv4574[:0]
yyc4574 = true
}
} else if yyl4574 > 0 {
var yyrr4574, yyrl4574 int
var yyrt4574 bool
if yyl4574 > cap(yyv4574) {
yyrg4574 := len(yyv4574) > 0
yyv24574 := yyv4574
yyrl4574, yyrt4574 = z.DecInferLen(yyl4574, z.DecBasicHandle().MaxInitLen, 672)
if yyrt4574 {
if yyrl4574 <= cap(yyv4574) {
yyv4574 = yyv4574[:yyrl4574]
} else {
yyv4574 = make([]PodTemplate, yyrl4574)
}
} else {
yyv4574 = make([]PodTemplate, yyrl4574)
}
yyc4574 = true
yyrr4574 = len(yyv4574)
if yyrg4574 {
copy(yyv4574, yyv24574)
}
} else if yyl4574 != len(yyv4574) {
yyv4574 = yyv4574[:yyl4574]
yyc4574 = true
}
yyj4574 := 0
for ; yyj4574 < yyrr4574; yyj4574++ {
yyh4574.ElemContainerState(yyj4574)
if r.TryDecodeAsNil() {
yyv4574[yyj4574] = PodTemplate{}
} else {
yyv4575 := &yyv4574[yyj4574]
yyv4575.CodecDecodeSelf(d)
}
}
if yyrt4574 {
for ; yyj4574 < yyl4574; yyj4574++ {
yyv4574 = append(yyv4574, PodTemplate{})
yyh4574.ElemContainerState(yyj4574)
if r.TryDecodeAsNil() {
yyv4574[yyj4574] = PodTemplate{}
} else {
yyv4576 := &yyv4574[yyj4574]
yyv4576.CodecDecodeSelf(d)
}
}
}
} else {
yyj4574 := 0
for ; !r.CheckBreak(); yyj4574++ {
if yyj4574 >= len(yyv4574) {
yyv4574 = append(yyv4574, PodTemplate{}) // var yyz4574 PodTemplate
yyc4574 = true
}
yyh4574.ElemContainerState(yyj4574)
if yyj4574 < len(yyv4574) {
if r.TryDecodeAsNil() {
yyv4574[yyj4574] = PodTemplate{}
} else {
yyv4577 := &yyv4574[yyj4574]
yyv4577.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4574 < len(yyv4574) {
yyv4574 = yyv4574[:yyj4574]
yyc4574 = true
} else if yyj4574 == 0 && yyv4574 == nil {
yyv4574 = []PodTemplate{}
yyc4574 = true
}
}
yyh4574.End()
if yyc4574 {
*v = yyv4574
}
}
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 _, yyv4578 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4579 := &yyv4578
yy4579.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
yyv4580 := *v
yyh4580, yyl4580 := z.DecSliceHelperStart()
var yyc4580 bool
if yyl4580 == 0 {
if yyv4580 == nil {
yyv4580 = []ReplicationController{}
yyc4580 = true
} else if len(yyv4580) != 0 {
yyv4580 = yyv4580[:0]
yyc4580 = true
}
} else if yyl4580 > 0 {
var yyrr4580, yyrl4580 int
var yyrt4580 bool
if yyl4580 > cap(yyv4580) {
yyrg4580 := len(yyv4580) > 0
yyv24580 := yyv4580
yyrl4580, yyrt4580 = z.DecInferLen(yyl4580, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4580 {
if yyrl4580 <= cap(yyv4580) {
yyv4580 = yyv4580[:yyrl4580]
} else {
yyv4580 = make([]ReplicationController, yyrl4580)
}
} else {
yyv4580 = make([]ReplicationController, yyrl4580)
}
yyc4580 = true
yyrr4580 = len(yyv4580)
if yyrg4580 {
copy(yyv4580, yyv24580)
}
} else if yyl4580 != len(yyv4580) {
yyv4580 = yyv4580[:yyl4580]
yyc4580 = true
}
yyj4580 := 0
for ; yyj4580 < yyrr4580; yyj4580++ {
yyh4580.ElemContainerState(yyj4580)
if r.TryDecodeAsNil() {
yyv4580[yyj4580] = ReplicationController{}
} else {
yyv4581 := &yyv4580[yyj4580]
yyv4581.CodecDecodeSelf(d)
}
}
if yyrt4580 {
for ; yyj4580 < yyl4580; yyj4580++ {
yyv4580 = append(yyv4580, ReplicationController{})
yyh4580.ElemContainerState(yyj4580)
if r.TryDecodeAsNil() {
yyv4580[yyj4580] = ReplicationController{}
} else {
yyv4582 := &yyv4580[yyj4580]
yyv4582.CodecDecodeSelf(d)
}
}
}
} else {
yyj4580 := 0
for ; !r.CheckBreak(); yyj4580++ {
if yyj4580 >= len(yyv4580) {
yyv4580 = append(yyv4580, ReplicationController{}) // var yyz4580 ReplicationController
yyc4580 = true
}
yyh4580.ElemContainerState(yyj4580)
if yyj4580 < len(yyv4580) {
if r.TryDecodeAsNil() {
yyv4580[yyj4580] = ReplicationController{}
} else {
yyv4583 := &yyv4580[yyj4580]
yyv4583.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4580 < len(yyv4580) {
yyv4580 = yyv4580[:yyj4580]
yyc4580 = true
} else if yyj4580 == 0 && yyv4580 == nil {
yyv4580 = []ReplicationController{}
yyc4580 = true
}
}
yyh4580.End()
if yyc4580 {
*v = yyv4580
}
}
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 _, yyv4584 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4585 := &yyv4584
yy4585.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
yyv4586 := *v
yyh4586, yyl4586 := z.DecSliceHelperStart()
var yyc4586 bool
if yyl4586 == 0 {
if yyv4586 == nil {
yyv4586 = []Service{}
yyc4586 = true
} else if len(yyv4586) != 0 {
yyv4586 = yyv4586[:0]
yyc4586 = true
}
} else if yyl4586 > 0 {
var yyrr4586, yyrl4586 int
var yyrt4586 bool
if yyl4586 > cap(yyv4586) {
yyrg4586 := len(yyv4586) > 0
yyv24586 := yyv4586
yyrl4586, yyrt4586 = z.DecInferLen(yyl4586, z.DecBasicHandle().MaxInitLen, 408)
if yyrt4586 {
if yyrl4586 <= cap(yyv4586) {
yyv4586 = yyv4586[:yyrl4586]
} else {
yyv4586 = make([]Service, yyrl4586)
}
} else {
yyv4586 = make([]Service, yyrl4586)
}
yyc4586 = true
yyrr4586 = len(yyv4586)
if yyrg4586 {
copy(yyv4586, yyv24586)
}
} else if yyl4586 != len(yyv4586) {
yyv4586 = yyv4586[:yyl4586]
yyc4586 = true
}
yyj4586 := 0
for ; yyj4586 < yyrr4586; yyj4586++ {
yyh4586.ElemContainerState(yyj4586)
if r.TryDecodeAsNil() {
yyv4586[yyj4586] = Service{}
} else {
yyv4587 := &yyv4586[yyj4586]
yyv4587.CodecDecodeSelf(d)
}
}
if yyrt4586 {
for ; yyj4586 < yyl4586; yyj4586++ {
yyv4586 = append(yyv4586, Service{})
yyh4586.ElemContainerState(yyj4586)
if r.TryDecodeAsNil() {
yyv4586[yyj4586] = Service{}
} else {
yyv4588 := &yyv4586[yyj4586]
yyv4588.CodecDecodeSelf(d)
}
}
}
} else {
yyj4586 := 0
for ; !r.CheckBreak(); yyj4586++ {
if yyj4586 >= len(yyv4586) {
yyv4586 = append(yyv4586, Service{}) // var yyz4586 Service
yyc4586 = true
}
yyh4586.ElemContainerState(yyj4586)
if yyj4586 < len(yyv4586) {
if r.TryDecodeAsNil() {
yyv4586[yyj4586] = Service{}
} else {
yyv4589 := &yyv4586[yyj4586]
yyv4589.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4586 < len(yyv4586) {
yyv4586 = yyv4586[:yyj4586]
yyc4586 = true
} else if yyj4586 == 0 && yyv4586 == nil {
yyv4586 = []Service{}
yyc4586 = true
}
}
yyh4586.End()
if yyc4586 {
*v = yyv4586
}
}
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 _, yyv4590 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4591 := &yyv4590
yy4591.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
yyv4592 := *v
yyh4592, yyl4592 := z.DecSliceHelperStart()
var yyc4592 bool
if yyl4592 == 0 {
if yyv4592 == nil {
yyv4592 = []LoadBalancerIngress{}
yyc4592 = true
} else if len(yyv4592) != 0 {
yyv4592 = yyv4592[:0]
yyc4592 = true
}
} else if yyl4592 > 0 {
var yyrr4592, yyrl4592 int
var yyrt4592 bool
if yyl4592 > cap(yyv4592) {
yyrg4592 := len(yyv4592) > 0
yyv24592 := yyv4592
yyrl4592, yyrt4592 = z.DecInferLen(yyl4592, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4592 {
if yyrl4592 <= cap(yyv4592) {
yyv4592 = yyv4592[:yyrl4592]
} else {
yyv4592 = make([]LoadBalancerIngress, yyrl4592)
}
} else {
yyv4592 = make([]LoadBalancerIngress, yyrl4592)
}
yyc4592 = true
yyrr4592 = len(yyv4592)
if yyrg4592 {
copy(yyv4592, yyv24592)
}
} else if yyl4592 != len(yyv4592) {
yyv4592 = yyv4592[:yyl4592]
yyc4592 = true
}
yyj4592 := 0
for ; yyj4592 < yyrr4592; yyj4592++ {
yyh4592.ElemContainerState(yyj4592)
if r.TryDecodeAsNil() {
yyv4592[yyj4592] = LoadBalancerIngress{}
} else {
yyv4593 := &yyv4592[yyj4592]
yyv4593.CodecDecodeSelf(d)
}
}
if yyrt4592 {
for ; yyj4592 < yyl4592; yyj4592++ {
yyv4592 = append(yyv4592, LoadBalancerIngress{})
yyh4592.ElemContainerState(yyj4592)
if r.TryDecodeAsNil() {
yyv4592[yyj4592] = LoadBalancerIngress{}
} else {
yyv4594 := &yyv4592[yyj4592]
yyv4594.CodecDecodeSelf(d)
}
}
}
} else {
yyj4592 := 0
for ; !r.CheckBreak(); yyj4592++ {
if yyj4592 >= len(yyv4592) {
yyv4592 = append(yyv4592, LoadBalancerIngress{}) // var yyz4592 LoadBalancerIngress
yyc4592 = true
}
yyh4592.ElemContainerState(yyj4592)
if yyj4592 < len(yyv4592) {
if r.TryDecodeAsNil() {
yyv4592[yyj4592] = LoadBalancerIngress{}
} else {
yyv4595 := &yyv4592[yyj4592]
yyv4595.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4592 < len(yyv4592) {
yyv4592 = yyv4592[:yyj4592]
yyc4592 = true
} else if yyj4592 == 0 && yyv4592 == nil {
yyv4592 = []LoadBalancerIngress{}
yyc4592 = true
}
}
yyh4592.End()
if yyc4592 {
*v = yyv4592
}
}
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 _, yyv4596 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4597 := &yyv4596
yy4597.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
yyv4598 := *v
yyh4598, yyl4598 := z.DecSliceHelperStart()
var yyc4598 bool
if yyl4598 == 0 {
if yyv4598 == nil {
yyv4598 = []ServicePort{}
yyc4598 = true
} else if len(yyv4598) != 0 {
yyv4598 = yyv4598[:0]
yyc4598 = true
}
} else if yyl4598 > 0 {
var yyrr4598, yyrl4598 int
var yyrt4598 bool
if yyl4598 > cap(yyv4598) {
yyrg4598 := len(yyv4598) > 0
yyv24598 := yyv4598
yyrl4598, yyrt4598 = z.DecInferLen(yyl4598, z.DecBasicHandle().MaxInitLen, 80)
if yyrt4598 {
if yyrl4598 <= cap(yyv4598) {
yyv4598 = yyv4598[:yyrl4598]
} else {
yyv4598 = make([]ServicePort, yyrl4598)
}
} else {
yyv4598 = make([]ServicePort, yyrl4598)
}
yyc4598 = true
yyrr4598 = len(yyv4598)
if yyrg4598 {
copy(yyv4598, yyv24598)
}
} else if yyl4598 != len(yyv4598) {
yyv4598 = yyv4598[:yyl4598]
yyc4598 = true
}
yyj4598 := 0
for ; yyj4598 < yyrr4598; yyj4598++ {
yyh4598.ElemContainerState(yyj4598)
if r.TryDecodeAsNil() {
yyv4598[yyj4598] = ServicePort{}
} else {
yyv4599 := &yyv4598[yyj4598]
yyv4599.CodecDecodeSelf(d)
}
}
if yyrt4598 {
for ; yyj4598 < yyl4598; yyj4598++ {
yyv4598 = append(yyv4598, ServicePort{})
yyh4598.ElemContainerState(yyj4598)
if r.TryDecodeAsNil() {
yyv4598[yyj4598] = ServicePort{}
} else {
yyv4600 := &yyv4598[yyj4598]
yyv4600.CodecDecodeSelf(d)
}
}
}
} else {
yyj4598 := 0
for ; !r.CheckBreak(); yyj4598++ {
if yyj4598 >= len(yyv4598) {
yyv4598 = append(yyv4598, ServicePort{}) // var yyz4598 ServicePort
yyc4598 = true
}
yyh4598.ElemContainerState(yyj4598)
if yyj4598 < len(yyv4598) {
if r.TryDecodeAsNil() {
yyv4598[yyj4598] = ServicePort{}
} else {
yyv4601 := &yyv4598[yyj4598]
yyv4601.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4598 < len(yyv4598) {
yyv4598 = yyv4598[:yyj4598]
yyc4598 = true
} else if yyj4598 == 0 && yyv4598 == nil {
yyv4598 = []ServicePort{}
yyc4598 = true
}
}
yyh4598.End()
if yyc4598 {
*v = yyv4598
}
}
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 _, yyv4602 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4603 := &yyv4602
yy4603.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
yyv4604 := *v
yyh4604, yyl4604 := z.DecSliceHelperStart()
var yyc4604 bool
if yyl4604 == 0 {
if yyv4604 == nil {
yyv4604 = []ObjectReference{}
yyc4604 = true
} else if len(yyv4604) != 0 {
yyv4604 = yyv4604[:0]
yyc4604 = true
}
} else if yyl4604 > 0 {
var yyrr4604, yyrl4604 int
var yyrt4604 bool
if yyl4604 > cap(yyv4604) {
yyrg4604 := len(yyv4604) > 0
yyv24604 := yyv4604
yyrl4604, yyrt4604 = z.DecInferLen(yyl4604, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4604 {
if yyrl4604 <= cap(yyv4604) {
yyv4604 = yyv4604[:yyrl4604]
} else {
yyv4604 = make([]ObjectReference, yyrl4604)
}
} else {
yyv4604 = make([]ObjectReference, yyrl4604)
}
yyc4604 = true
yyrr4604 = len(yyv4604)
if yyrg4604 {
copy(yyv4604, yyv24604)
}
} else if yyl4604 != len(yyv4604) {
yyv4604 = yyv4604[:yyl4604]
yyc4604 = true
}
yyj4604 := 0
for ; yyj4604 < yyrr4604; yyj4604++ {
yyh4604.ElemContainerState(yyj4604)
if r.TryDecodeAsNil() {
yyv4604[yyj4604] = ObjectReference{}
} else {
yyv4605 := &yyv4604[yyj4604]
yyv4605.CodecDecodeSelf(d)
}
}
if yyrt4604 {
for ; yyj4604 < yyl4604; yyj4604++ {
yyv4604 = append(yyv4604, ObjectReference{})
yyh4604.ElemContainerState(yyj4604)
if r.TryDecodeAsNil() {
yyv4604[yyj4604] = ObjectReference{}
} else {
yyv4606 := &yyv4604[yyj4604]
yyv4606.CodecDecodeSelf(d)
}
}
}
} else {
yyj4604 := 0
for ; !r.CheckBreak(); yyj4604++ {
if yyj4604 >= len(yyv4604) {
yyv4604 = append(yyv4604, ObjectReference{}) // var yyz4604 ObjectReference
yyc4604 = true
}
yyh4604.ElemContainerState(yyj4604)
if yyj4604 < len(yyv4604) {
if r.TryDecodeAsNil() {
yyv4604[yyj4604] = ObjectReference{}
} else {
yyv4607 := &yyv4604[yyj4604]
yyv4607.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4604 < len(yyv4604) {
yyv4604 = yyv4604[:yyj4604]
yyc4604 = true
} else if yyj4604 == 0 && yyv4604 == nil {
yyv4604 = []ObjectReference{}
yyc4604 = true
}
}
yyh4604.End()
if yyc4604 {
*v = yyv4604
}
}
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 _, yyv4608 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4609 := &yyv4608
yy4609.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
yyv4610 := *v
yyh4610, yyl4610 := z.DecSliceHelperStart()
var yyc4610 bool
if yyl4610 == 0 {
if yyv4610 == nil {
yyv4610 = []ServiceAccount{}
yyc4610 = true
} else if len(yyv4610) != 0 {
yyv4610 = yyv4610[:0]
yyc4610 = true
}
} else if yyl4610 > 0 {
var yyrr4610, yyrl4610 int
var yyrt4610 bool
if yyl4610 > cap(yyv4610) {
yyrg4610 := len(yyv4610) > 0
yyv24610 := yyv4610
yyrl4610, yyrt4610 = z.DecInferLen(yyl4610, z.DecBasicHandle().MaxInitLen, 288)
if yyrt4610 {
if yyrl4610 <= cap(yyv4610) {
yyv4610 = yyv4610[:yyrl4610]
} else {
yyv4610 = make([]ServiceAccount, yyrl4610)
}
} else {
yyv4610 = make([]ServiceAccount, yyrl4610)
}
yyc4610 = true
yyrr4610 = len(yyv4610)
if yyrg4610 {
copy(yyv4610, yyv24610)
}
} else if yyl4610 != len(yyv4610) {
yyv4610 = yyv4610[:yyl4610]
yyc4610 = true
}
yyj4610 := 0
for ; yyj4610 < yyrr4610; yyj4610++ {
yyh4610.ElemContainerState(yyj4610)
if r.TryDecodeAsNil() {
yyv4610[yyj4610] = ServiceAccount{}
} else {
yyv4611 := &yyv4610[yyj4610]
yyv4611.CodecDecodeSelf(d)
}
}
if yyrt4610 {
for ; yyj4610 < yyl4610; yyj4610++ {
yyv4610 = append(yyv4610, ServiceAccount{})
yyh4610.ElemContainerState(yyj4610)
if r.TryDecodeAsNil() {
yyv4610[yyj4610] = ServiceAccount{}
} else {
yyv4612 := &yyv4610[yyj4610]
yyv4612.CodecDecodeSelf(d)
}
}
}
} else {
yyj4610 := 0
for ; !r.CheckBreak(); yyj4610++ {
if yyj4610 >= len(yyv4610) {
yyv4610 = append(yyv4610, ServiceAccount{}) // var yyz4610 ServiceAccount
yyc4610 = true
}
yyh4610.ElemContainerState(yyj4610)
if yyj4610 < len(yyv4610) {
if r.TryDecodeAsNil() {
yyv4610[yyj4610] = ServiceAccount{}
} else {
yyv4613 := &yyv4610[yyj4610]
yyv4613.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4610 < len(yyv4610) {
yyv4610 = yyv4610[:yyj4610]
yyc4610 = true
} else if yyj4610 == 0 && yyv4610 == nil {
yyv4610 = []ServiceAccount{}
yyc4610 = true
}
}
yyh4610.End()
if yyc4610 {
*v = yyv4610
}
}
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 _, yyv4614 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4615 := &yyv4614
yy4615.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
yyv4616 := *v
yyh4616, yyl4616 := z.DecSliceHelperStart()
var yyc4616 bool
if yyl4616 == 0 {
if yyv4616 == nil {
yyv4616 = []EndpointSubset{}
yyc4616 = true
} else if len(yyv4616) != 0 {
yyv4616 = yyv4616[:0]
yyc4616 = true
}
} else if yyl4616 > 0 {
var yyrr4616, yyrl4616 int
var yyrt4616 bool
if yyl4616 > cap(yyv4616) {
yyrg4616 := len(yyv4616) > 0
yyv24616 := yyv4616
yyrl4616, yyrt4616 = z.DecInferLen(yyl4616, z.DecBasicHandle().MaxInitLen, 72)
if yyrt4616 {
if yyrl4616 <= cap(yyv4616) {
yyv4616 = yyv4616[:yyrl4616]
} else {
yyv4616 = make([]EndpointSubset, yyrl4616)
}
} else {
yyv4616 = make([]EndpointSubset, yyrl4616)
}
yyc4616 = true
yyrr4616 = len(yyv4616)
if yyrg4616 {
copy(yyv4616, yyv24616)
}
} else if yyl4616 != len(yyv4616) {
yyv4616 = yyv4616[:yyl4616]
yyc4616 = true
}
yyj4616 := 0
for ; yyj4616 < yyrr4616; yyj4616++ {
yyh4616.ElemContainerState(yyj4616)
if r.TryDecodeAsNil() {
yyv4616[yyj4616] = EndpointSubset{}
} else {
yyv4617 := &yyv4616[yyj4616]
yyv4617.CodecDecodeSelf(d)
}
}
if yyrt4616 {
for ; yyj4616 < yyl4616; yyj4616++ {
yyv4616 = append(yyv4616, EndpointSubset{})
yyh4616.ElemContainerState(yyj4616)
if r.TryDecodeAsNil() {
yyv4616[yyj4616] = EndpointSubset{}
} else {
yyv4618 := &yyv4616[yyj4616]
yyv4618.CodecDecodeSelf(d)
}
}
}
} else {
yyj4616 := 0
for ; !r.CheckBreak(); yyj4616++ {
if yyj4616 >= len(yyv4616) {
yyv4616 = append(yyv4616, EndpointSubset{}) // var yyz4616 EndpointSubset
yyc4616 = true
}
yyh4616.ElemContainerState(yyj4616)
if yyj4616 < len(yyv4616) {
if r.TryDecodeAsNil() {
yyv4616[yyj4616] = EndpointSubset{}
} else {
yyv4619 := &yyv4616[yyj4616]
yyv4619.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4616 < len(yyv4616) {
yyv4616 = yyv4616[:yyj4616]
yyc4616 = true
} else if yyj4616 == 0 && yyv4616 == nil {
yyv4616 = []EndpointSubset{}
yyc4616 = true
}
}
yyh4616.End()
if yyc4616 {
*v = yyv4616
}
}
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 _, yyv4620 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4621 := &yyv4620
yy4621.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
yyv4622 := *v
yyh4622, yyl4622 := z.DecSliceHelperStart()
var yyc4622 bool
if yyl4622 == 0 {
if yyv4622 == nil {
yyv4622 = []EndpointAddress{}
yyc4622 = true
} else if len(yyv4622) != 0 {
yyv4622 = yyv4622[:0]
yyc4622 = true
}
} else if yyl4622 > 0 {
var yyrr4622, yyrl4622 int
var yyrt4622 bool
if yyl4622 > cap(yyv4622) {
yyrg4622 := len(yyv4622) > 0
yyv24622 := yyv4622
yyrl4622, yyrt4622 = z.DecInferLen(yyl4622, z.DecBasicHandle().MaxInitLen, 48)
if yyrt4622 {
if yyrl4622 <= cap(yyv4622) {
yyv4622 = yyv4622[:yyrl4622]
} else {
yyv4622 = make([]EndpointAddress, yyrl4622)
}
} else {
yyv4622 = make([]EndpointAddress, yyrl4622)
}
yyc4622 = true
yyrr4622 = len(yyv4622)
if yyrg4622 {
copy(yyv4622, yyv24622)
}
} else if yyl4622 != len(yyv4622) {
yyv4622 = yyv4622[:yyl4622]
yyc4622 = true
}
yyj4622 := 0
for ; yyj4622 < yyrr4622; yyj4622++ {
yyh4622.ElemContainerState(yyj4622)
if r.TryDecodeAsNil() {
yyv4622[yyj4622] = EndpointAddress{}
} else {
yyv4623 := &yyv4622[yyj4622]
yyv4623.CodecDecodeSelf(d)
}
}
if yyrt4622 {
for ; yyj4622 < yyl4622; yyj4622++ {
yyv4622 = append(yyv4622, EndpointAddress{})
yyh4622.ElemContainerState(yyj4622)
if r.TryDecodeAsNil() {
yyv4622[yyj4622] = EndpointAddress{}
} else {
yyv4624 := &yyv4622[yyj4622]
yyv4624.CodecDecodeSelf(d)
}
}
}
} else {
yyj4622 := 0
for ; !r.CheckBreak(); yyj4622++ {
if yyj4622 >= len(yyv4622) {
yyv4622 = append(yyv4622, EndpointAddress{}) // var yyz4622 EndpointAddress
yyc4622 = true
}
yyh4622.ElemContainerState(yyj4622)
if yyj4622 < len(yyv4622) {
if r.TryDecodeAsNil() {
yyv4622[yyj4622] = EndpointAddress{}
} else {
yyv4625 := &yyv4622[yyj4622]
yyv4625.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4622 < len(yyv4622) {
yyv4622 = yyv4622[:yyj4622]
yyc4622 = true
} else if yyj4622 == 0 && yyv4622 == nil {
yyv4622 = []EndpointAddress{}
yyc4622 = true
}
}
yyh4622.End()
if yyc4622 {
*v = yyv4622
}
}
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 _, yyv4626 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4627 := &yyv4626
yy4627.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
yyv4628 := *v
yyh4628, yyl4628 := z.DecSliceHelperStart()
var yyc4628 bool
if yyl4628 == 0 {
if yyv4628 == nil {
yyv4628 = []EndpointPort{}
yyc4628 = true
} else if len(yyv4628) != 0 {
yyv4628 = yyv4628[:0]
yyc4628 = true
}
} else if yyl4628 > 0 {
var yyrr4628, yyrl4628 int
var yyrt4628 bool
if yyl4628 > cap(yyv4628) {
yyrg4628 := len(yyv4628) > 0
yyv24628 := yyv4628
yyrl4628, yyrt4628 = z.DecInferLen(yyl4628, z.DecBasicHandle().MaxInitLen, 40)
if yyrt4628 {
if yyrl4628 <= cap(yyv4628) {
yyv4628 = yyv4628[:yyrl4628]
} else {
yyv4628 = make([]EndpointPort, yyrl4628)
}
} else {
yyv4628 = make([]EndpointPort, yyrl4628)
}
yyc4628 = true
yyrr4628 = len(yyv4628)
if yyrg4628 {
copy(yyv4628, yyv24628)
}
} else if yyl4628 != len(yyv4628) {
yyv4628 = yyv4628[:yyl4628]
yyc4628 = true
}
yyj4628 := 0
for ; yyj4628 < yyrr4628; yyj4628++ {
yyh4628.ElemContainerState(yyj4628)
if r.TryDecodeAsNil() {
yyv4628[yyj4628] = EndpointPort{}
} else {
yyv4629 := &yyv4628[yyj4628]
yyv4629.CodecDecodeSelf(d)
}
}
if yyrt4628 {
for ; yyj4628 < yyl4628; yyj4628++ {
yyv4628 = append(yyv4628, EndpointPort{})
yyh4628.ElemContainerState(yyj4628)
if r.TryDecodeAsNil() {
yyv4628[yyj4628] = EndpointPort{}
} else {
yyv4630 := &yyv4628[yyj4628]
yyv4630.CodecDecodeSelf(d)
}
}
}
} else {
yyj4628 := 0
for ; !r.CheckBreak(); yyj4628++ {
if yyj4628 >= len(yyv4628) {
yyv4628 = append(yyv4628, EndpointPort{}) // var yyz4628 EndpointPort
yyc4628 = true
}
yyh4628.ElemContainerState(yyj4628)
if yyj4628 < len(yyv4628) {
if r.TryDecodeAsNil() {
yyv4628[yyj4628] = EndpointPort{}
} else {
yyv4631 := &yyv4628[yyj4628]
yyv4631.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4628 < len(yyv4628) {
yyv4628 = yyv4628[:yyj4628]
yyc4628 = true
} else if yyj4628 == 0 && yyv4628 == nil {
yyv4628 = []EndpointPort{}
yyc4628 = true
}
}
yyh4628.End()
if yyc4628 {
*v = yyv4628
}
}
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 _, yyv4632 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4633 := &yyv4632
yy4633.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
yyv4634 := *v
yyh4634, yyl4634 := z.DecSliceHelperStart()
var yyc4634 bool
if yyl4634 == 0 {
if yyv4634 == nil {
yyv4634 = []Endpoints{}
yyc4634 = true
} else if len(yyv4634) != 0 {
yyv4634 = yyv4634[:0]
yyc4634 = true
}
} else if yyl4634 > 0 {
var yyrr4634, yyrl4634 int
var yyrt4634 bool
if yyl4634 > cap(yyv4634) {
yyrg4634 := len(yyv4634) > 0
yyv24634 := yyv4634
yyrl4634, yyrt4634 = z.DecInferLen(yyl4634, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4634 {
if yyrl4634 <= cap(yyv4634) {
yyv4634 = yyv4634[:yyrl4634]
} else {
yyv4634 = make([]Endpoints, yyrl4634)
}
} else {
yyv4634 = make([]Endpoints, yyrl4634)
}
yyc4634 = true
yyrr4634 = len(yyv4634)
if yyrg4634 {
copy(yyv4634, yyv24634)
}
} else if yyl4634 != len(yyv4634) {
yyv4634 = yyv4634[:yyl4634]
yyc4634 = true
}
yyj4634 := 0
for ; yyj4634 < yyrr4634; yyj4634++ {
yyh4634.ElemContainerState(yyj4634)
if r.TryDecodeAsNil() {
yyv4634[yyj4634] = Endpoints{}
} else {
yyv4635 := &yyv4634[yyj4634]
yyv4635.CodecDecodeSelf(d)
}
}
if yyrt4634 {
for ; yyj4634 < yyl4634; yyj4634++ {
yyv4634 = append(yyv4634, Endpoints{})
yyh4634.ElemContainerState(yyj4634)
if r.TryDecodeAsNil() {
yyv4634[yyj4634] = Endpoints{}
} else {
yyv4636 := &yyv4634[yyj4634]
yyv4636.CodecDecodeSelf(d)
}
}
}
} else {
yyj4634 := 0
for ; !r.CheckBreak(); yyj4634++ {
if yyj4634 >= len(yyv4634) {
yyv4634 = append(yyv4634, Endpoints{}) // var yyz4634 Endpoints
yyc4634 = true
}
yyh4634.ElemContainerState(yyj4634)
if yyj4634 < len(yyv4634) {
if r.TryDecodeAsNil() {
yyv4634[yyj4634] = Endpoints{}
} else {
yyv4637 := &yyv4634[yyj4634]
yyv4637.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4634 < len(yyv4634) {
yyv4634 = yyv4634[:yyj4634]
yyc4634 = true
} else if yyj4634 == 0 && yyv4634 == nil {
yyv4634 = []Endpoints{}
yyc4634 = true
}
}
yyh4634.End()
if yyc4634 {
*v = yyv4634
}
}
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 _, yyv4638 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4639 := &yyv4638
yy4639.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
yyv4640 := *v
yyh4640, yyl4640 := z.DecSliceHelperStart()
var yyc4640 bool
if yyl4640 == 0 {
if yyv4640 == nil {
yyv4640 = []NodeCondition{}
yyc4640 = true
} else if len(yyv4640) != 0 {
yyv4640 = yyv4640[:0]
yyc4640 = true
}
} else if yyl4640 > 0 {
var yyrr4640, yyrl4640 int
var yyrt4640 bool
if yyl4640 > cap(yyv4640) {
yyrg4640 := len(yyv4640) > 0
yyv24640 := yyv4640
yyrl4640, yyrt4640 = z.DecInferLen(yyl4640, z.DecBasicHandle().MaxInitLen, 112)
if yyrt4640 {
if yyrl4640 <= cap(yyv4640) {
yyv4640 = yyv4640[:yyrl4640]
} else {
yyv4640 = make([]NodeCondition, yyrl4640)
}
} else {
yyv4640 = make([]NodeCondition, yyrl4640)
}
yyc4640 = true
yyrr4640 = len(yyv4640)
if yyrg4640 {
copy(yyv4640, yyv24640)
}
} else if yyl4640 != len(yyv4640) {
yyv4640 = yyv4640[:yyl4640]
yyc4640 = true
}
yyj4640 := 0
for ; yyj4640 < yyrr4640; yyj4640++ {
yyh4640.ElemContainerState(yyj4640)
if r.TryDecodeAsNil() {
yyv4640[yyj4640] = NodeCondition{}
} else {
yyv4641 := &yyv4640[yyj4640]
yyv4641.CodecDecodeSelf(d)
}
}
if yyrt4640 {
for ; yyj4640 < yyl4640; yyj4640++ {
yyv4640 = append(yyv4640, NodeCondition{})
yyh4640.ElemContainerState(yyj4640)
if r.TryDecodeAsNil() {
yyv4640[yyj4640] = NodeCondition{}
} else {
yyv4642 := &yyv4640[yyj4640]
yyv4642.CodecDecodeSelf(d)
}
}
}
} else {
yyj4640 := 0
for ; !r.CheckBreak(); yyj4640++ {
if yyj4640 >= len(yyv4640) {
yyv4640 = append(yyv4640, NodeCondition{}) // var yyz4640 NodeCondition
yyc4640 = true
}
yyh4640.ElemContainerState(yyj4640)
if yyj4640 < len(yyv4640) {
if r.TryDecodeAsNil() {
yyv4640[yyj4640] = NodeCondition{}
} else {
yyv4643 := &yyv4640[yyj4640]
yyv4643.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4640 < len(yyv4640) {
yyv4640 = yyv4640[:yyj4640]
yyc4640 = true
} else if yyj4640 == 0 && yyv4640 == nil {
yyv4640 = []NodeCondition{}
yyc4640 = true
}
}
yyh4640.End()
if yyc4640 {
*v = yyv4640
}
}
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 _, yyv4644 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4645 := &yyv4644
yy4645.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
yyv4646 := *v
yyh4646, yyl4646 := z.DecSliceHelperStart()
var yyc4646 bool
if yyl4646 == 0 {
if yyv4646 == nil {
yyv4646 = []NodeAddress{}
yyc4646 = true
} else if len(yyv4646) != 0 {
yyv4646 = yyv4646[:0]
yyc4646 = true
}
} else if yyl4646 > 0 {
var yyrr4646, yyrl4646 int
var yyrt4646 bool
if yyl4646 > cap(yyv4646) {
yyrg4646 := len(yyv4646) > 0
yyv24646 := yyv4646
yyrl4646, yyrt4646 = z.DecInferLen(yyl4646, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4646 {
if yyrl4646 <= cap(yyv4646) {
yyv4646 = yyv4646[:yyrl4646]
} else {
yyv4646 = make([]NodeAddress, yyrl4646)
}
} else {
yyv4646 = make([]NodeAddress, yyrl4646)
}
yyc4646 = true
yyrr4646 = len(yyv4646)
if yyrg4646 {
copy(yyv4646, yyv24646)
}
} else if yyl4646 != len(yyv4646) {
yyv4646 = yyv4646[:yyl4646]
yyc4646 = true
}
yyj4646 := 0
for ; yyj4646 < yyrr4646; yyj4646++ {
yyh4646.ElemContainerState(yyj4646)
if r.TryDecodeAsNil() {
yyv4646[yyj4646] = NodeAddress{}
} else {
yyv4647 := &yyv4646[yyj4646]
yyv4647.CodecDecodeSelf(d)
}
}
if yyrt4646 {
for ; yyj4646 < yyl4646; yyj4646++ {
yyv4646 = append(yyv4646, NodeAddress{})
yyh4646.ElemContainerState(yyj4646)
if r.TryDecodeAsNil() {
yyv4646[yyj4646] = NodeAddress{}
} else {
yyv4648 := &yyv4646[yyj4646]
yyv4648.CodecDecodeSelf(d)
}
}
}
} else {
yyj4646 := 0
for ; !r.CheckBreak(); yyj4646++ {
if yyj4646 >= len(yyv4646) {
yyv4646 = append(yyv4646, NodeAddress{}) // var yyz4646 NodeAddress
yyc4646 = true
}
yyh4646.ElemContainerState(yyj4646)
if yyj4646 < len(yyv4646) {
if r.TryDecodeAsNil() {
yyv4646[yyj4646] = NodeAddress{}
} else {
yyv4649 := &yyv4646[yyj4646]
yyv4649.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4646 < len(yyv4646) {
yyv4646 = yyv4646[:yyj4646]
yyc4646 = true
} else if yyj4646 == 0 && yyv4646 == nil {
yyv4646 = []NodeAddress{}
yyc4646 = true
}
}
yyh4646.End()
if yyc4646 {
*v = yyv4646
}
}
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 _, yyv4650 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4651 := &yyv4650
yy4651.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
yyv4652 := *v
yyh4652, yyl4652 := z.DecSliceHelperStart()
var yyc4652 bool
if yyl4652 == 0 {
if yyv4652 == nil {
yyv4652 = []ContainerImage{}
yyc4652 = true
} else if len(yyv4652) != 0 {
yyv4652 = yyv4652[:0]
yyc4652 = true
}
} else if yyl4652 > 0 {
var yyrr4652, yyrl4652 int
var yyrt4652 bool
if yyl4652 > cap(yyv4652) {
yyrg4652 := len(yyv4652) > 0
yyv24652 := yyv4652
yyrl4652, yyrt4652 = z.DecInferLen(yyl4652, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4652 {
if yyrl4652 <= cap(yyv4652) {
yyv4652 = yyv4652[:yyrl4652]
} else {
yyv4652 = make([]ContainerImage, yyrl4652)
}
} else {
yyv4652 = make([]ContainerImage, yyrl4652)
}
yyc4652 = true
yyrr4652 = len(yyv4652)
if yyrg4652 {
copy(yyv4652, yyv24652)
}
} else if yyl4652 != len(yyv4652) {
yyv4652 = yyv4652[:yyl4652]
yyc4652 = true
}
yyj4652 := 0
for ; yyj4652 < yyrr4652; yyj4652++ {
yyh4652.ElemContainerState(yyj4652)
if r.TryDecodeAsNil() {
yyv4652[yyj4652] = ContainerImage{}
} else {
yyv4653 := &yyv4652[yyj4652]
yyv4653.CodecDecodeSelf(d)
}
}
if yyrt4652 {
for ; yyj4652 < yyl4652; yyj4652++ {
yyv4652 = append(yyv4652, ContainerImage{})
yyh4652.ElemContainerState(yyj4652)
if r.TryDecodeAsNil() {
yyv4652[yyj4652] = ContainerImage{}
} else {
yyv4654 := &yyv4652[yyj4652]
yyv4654.CodecDecodeSelf(d)
}
}
}
} else {
yyj4652 := 0
for ; !r.CheckBreak(); yyj4652++ {
if yyj4652 >= len(yyv4652) {
yyv4652 = append(yyv4652, ContainerImage{}) // var yyz4652 ContainerImage
yyc4652 = true
}
yyh4652.ElemContainerState(yyj4652)
if yyj4652 < len(yyv4652) {
if r.TryDecodeAsNil() {
yyv4652[yyj4652] = ContainerImage{}
} else {
yyv4655 := &yyv4652[yyj4652]
yyv4655.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4652 < len(yyv4652) {
yyv4652 = yyv4652[:yyj4652]
yyc4652 = true
} else if yyj4652 == 0 && yyv4652 == nil {
yyv4652 = []ContainerImage{}
yyc4652 = true
}
}
yyh4652.End()
if yyc4652 {
*v = yyv4652
}
}
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 _, yyv4656 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4656.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
yyv4657 := *v
yyh4657, yyl4657 := z.DecSliceHelperStart()
var yyc4657 bool
if yyl4657 == 0 {
if yyv4657 == nil {
yyv4657 = []UniqueVolumeName{}
yyc4657 = true
} else if len(yyv4657) != 0 {
yyv4657 = yyv4657[:0]
yyc4657 = true
}
} else if yyl4657 > 0 {
var yyrr4657, yyrl4657 int
var yyrt4657 bool
if yyl4657 > cap(yyv4657) {
yyrl4657, yyrt4657 = z.DecInferLen(yyl4657, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4657 {
if yyrl4657 <= cap(yyv4657) {
yyv4657 = yyv4657[:yyrl4657]
} else {
yyv4657 = make([]UniqueVolumeName, yyrl4657)
}
} else {
yyv4657 = make([]UniqueVolumeName, yyrl4657)
}
yyc4657 = true
yyrr4657 = len(yyv4657)
} else if yyl4657 != len(yyv4657) {
yyv4657 = yyv4657[:yyl4657]
yyc4657 = true
}
yyj4657 := 0
for ; yyj4657 < yyrr4657; yyj4657++ {
yyh4657.ElemContainerState(yyj4657)
if r.TryDecodeAsNil() {
yyv4657[yyj4657] = ""
} else {
yyv4657[yyj4657] = UniqueVolumeName(r.DecodeString())
}
}
if yyrt4657 {
for ; yyj4657 < yyl4657; yyj4657++ {
yyv4657 = append(yyv4657, "")
yyh4657.ElemContainerState(yyj4657)
if r.TryDecodeAsNil() {
yyv4657[yyj4657] = ""
} else {
yyv4657[yyj4657] = UniqueVolumeName(r.DecodeString())
}
}
}
} else {
yyj4657 := 0
for ; !r.CheckBreak(); yyj4657++ {
if yyj4657 >= len(yyv4657) {
yyv4657 = append(yyv4657, "") // var yyz4657 UniqueVolumeName
yyc4657 = true
}
yyh4657.ElemContainerState(yyj4657)
if yyj4657 < len(yyv4657) {
if r.TryDecodeAsNil() {
yyv4657[yyj4657] = ""
} else {
yyv4657[yyj4657] = UniqueVolumeName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4657 < len(yyv4657) {
yyv4657 = yyv4657[:yyj4657]
yyc4657 = true
} else if yyj4657 == 0 && yyv4657 == nil {
yyv4657 = []UniqueVolumeName{}
yyc4657 = true
}
}
yyh4657.End()
if yyc4657 {
*v = yyv4657
}
}
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 _, yyv4661 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4662 := &yyv4661
yy4662.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
yyv4663 := *v
yyh4663, yyl4663 := z.DecSliceHelperStart()
var yyc4663 bool
if yyl4663 == 0 {
if yyv4663 == nil {
yyv4663 = []AttachedVolume{}
yyc4663 = true
} else if len(yyv4663) != 0 {
yyv4663 = yyv4663[:0]
yyc4663 = true
}
} else if yyl4663 > 0 {
var yyrr4663, yyrl4663 int
var yyrt4663 bool
if yyl4663 > cap(yyv4663) {
yyrg4663 := len(yyv4663) > 0
yyv24663 := yyv4663
yyrl4663, yyrt4663 = z.DecInferLen(yyl4663, z.DecBasicHandle().MaxInitLen, 32)
if yyrt4663 {
if yyrl4663 <= cap(yyv4663) {
yyv4663 = yyv4663[:yyrl4663]
} else {
yyv4663 = make([]AttachedVolume, yyrl4663)
}
} else {
yyv4663 = make([]AttachedVolume, yyrl4663)
}
yyc4663 = true
yyrr4663 = len(yyv4663)
if yyrg4663 {
copy(yyv4663, yyv24663)
}
} else if yyl4663 != len(yyv4663) {
yyv4663 = yyv4663[:yyl4663]
yyc4663 = true
}
yyj4663 := 0
for ; yyj4663 < yyrr4663; yyj4663++ {
yyh4663.ElemContainerState(yyj4663)
if r.TryDecodeAsNil() {
yyv4663[yyj4663] = AttachedVolume{}
} else {
yyv4664 := &yyv4663[yyj4663]
yyv4664.CodecDecodeSelf(d)
}
}
if yyrt4663 {
for ; yyj4663 < yyl4663; yyj4663++ {
yyv4663 = append(yyv4663, AttachedVolume{})
yyh4663.ElemContainerState(yyj4663)
if r.TryDecodeAsNil() {
yyv4663[yyj4663] = AttachedVolume{}
} else {
yyv4665 := &yyv4663[yyj4663]
yyv4665.CodecDecodeSelf(d)
}
}
}
} else {
yyj4663 := 0
for ; !r.CheckBreak(); yyj4663++ {
if yyj4663 >= len(yyv4663) {
yyv4663 = append(yyv4663, AttachedVolume{}) // var yyz4663 AttachedVolume
yyc4663 = true
}
yyh4663.ElemContainerState(yyj4663)
if yyj4663 < len(yyv4663) {
if r.TryDecodeAsNil() {
yyv4663[yyj4663] = AttachedVolume{}
} else {
yyv4666 := &yyv4663[yyj4663]
yyv4666.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4663 < len(yyv4663) {
yyv4663 = yyv4663[:yyj4663]
yyc4663 = true
} else if yyj4663 == 0 && yyv4663 == nil {
yyv4663 = []AttachedVolume{}
yyc4663 = true
}
}
yyh4663.End()
if yyc4663 {
*v = yyv4663
}
}
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 _, yyv4667 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4668 := &yyv4667
yy4668.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
yyv4669 := *v
yyh4669, yyl4669 := z.DecSliceHelperStart()
var yyc4669 bool
if yyl4669 == 0 {
if yyv4669 == nil {
yyv4669 = []PreferAvoidPodsEntry{}
yyc4669 = true
} else if len(yyv4669) != 0 {
yyv4669 = yyv4669[:0]
yyc4669 = true
}
} else if yyl4669 > 0 {
var yyrr4669, yyrl4669 int
var yyrt4669 bool
if yyl4669 > cap(yyv4669) {
yyrg4669 := len(yyv4669) > 0
yyv24669 := yyv4669
yyrl4669, yyrt4669 = z.DecInferLen(yyl4669, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4669 {
if yyrl4669 <= cap(yyv4669) {
yyv4669 = yyv4669[:yyrl4669]
} else {
yyv4669 = make([]PreferAvoidPodsEntry, yyrl4669)
}
} else {
yyv4669 = make([]PreferAvoidPodsEntry, yyrl4669)
}
yyc4669 = true
yyrr4669 = len(yyv4669)
if yyrg4669 {
copy(yyv4669, yyv24669)
}
} else if yyl4669 != len(yyv4669) {
yyv4669 = yyv4669[:yyl4669]
yyc4669 = true
}
yyj4669 := 0
for ; yyj4669 < yyrr4669; yyj4669++ {
yyh4669.ElemContainerState(yyj4669)
if r.TryDecodeAsNil() {
yyv4669[yyj4669] = PreferAvoidPodsEntry{}
} else {
yyv4670 := &yyv4669[yyj4669]
yyv4670.CodecDecodeSelf(d)
}
}
if yyrt4669 {
for ; yyj4669 < yyl4669; yyj4669++ {
yyv4669 = append(yyv4669, PreferAvoidPodsEntry{})
yyh4669.ElemContainerState(yyj4669)
if r.TryDecodeAsNil() {
yyv4669[yyj4669] = PreferAvoidPodsEntry{}
} else {
yyv4671 := &yyv4669[yyj4669]
yyv4671.CodecDecodeSelf(d)
}
}
}
} else {
yyj4669 := 0
for ; !r.CheckBreak(); yyj4669++ {
if yyj4669 >= len(yyv4669) {
yyv4669 = append(yyv4669, PreferAvoidPodsEntry{}) // var yyz4669 PreferAvoidPodsEntry
yyc4669 = true
}
yyh4669.ElemContainerState(yyj4669)
if yyj4669 < len(yyv4669) {
if r.TryDecodeAsNil() {
yyv4669[yyj4669] = PreferAvoidPodsEntry{}
} else {
yyv4672 := &yyv4669[yyj4669]
yyv4672.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4669 < len(yyv4669) {
yyv4669 = yyv4669[:yyj4669]
yyc4669 = true
} else if yyj4669 == 0 && yyv4669 == nil {
yyv4669 = []PreferAvoidPodsEntry{}
yyc4669 = true
}
}
yyh4669.End()
if yyc4669 {
*v = yyv4669
}
}
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 yyk4673, yyv4673 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yyk4673.CodecEncodeSelf(e)
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy4674 := &yyv4673
yym4675 := z.EncBinary()
_ = yym4675
if false {
} else if z.HasExtensions() && z.EncExt(yy4674) {
} else if !yym4675 && z.IsJSONHandle() {
z.EncJSONMarshal(yy4674)
} else {
z.EncFallback(yy4674)
}
}
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv4676 := *v
yyl4676 := r.ReadMapStart()
yybh4676 := z.DecBasicHandle()
if yyv4676 == nil {
yyrl4676, _ := z.DecInferLen(yyl4676, yybh4676.MaxInitLen, 72)
yyv4676 = make(map[ResourceName]pkg3_resource.Quantity, yyrl4676)
*v = yyv4676
}
var yymk4676 ResourceName
var yymv4676 pkg3_resource.Quantity
var yymg4676 bool
if yybh4676.MapValueReset {
yymg4676 = true
}
if yyl4676 > 0 {
for yyj4676 := 0; yyj4676 < yyl4676; yyj4676++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4676 = ""
} else {
yymk4676 = ResourceName(r.DecodeString())
}
if yymg4676 {
yymv4676 = yyv4676[yymk4676]
} else {
yymv4676 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4676 = pkg3_resource.Quantity{}
} else {
yyv4678 := &yymv4676
yym4679 := z.DecBinary()
_ = yym4679
if false {
} else if z.HasExtensions() && z.DecExt(yyv4678) {
} else if !yym4679 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4678)
} else {
z.DecFallback(yyv4678, false)
}
}
if yyv4676 != nil {
yyv4676[yymk4676] = yymv4676
}
}
} else if yyl4676 < 0 {
for yyj4676 := 0; !r.CheckBreak(); yyj4676++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4676 = ""
} else {
yymk4676 = ResourceName(r.DecodeString())
}
if yymg4676 {
yymv4676 = yyv4676[yymk4676]
} else {
yymv4676 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4676 = pkg3_resource.Quantity{}
} else {
yyv4681 := &yymv4676
yym4682 := z.DecBinary()
_ = yym4682
if false {
} else if z.HasExtensions() && z.DecExt(yyv4681) {
} else if !yym4682 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv4681)
} else {
z.DecFallback(yyv4681, false)
}
}
if yyv4676 != nil {
yyv4676[yymk4676] = yymv4676
}
}
} // 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 _, yyv4683 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4684 := &yyv4683
yy4684.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
yyv4685 := *v
yyh4685, yyl4685 := z.DecSliceHelperStart()
var yyc4685 bool
if yyl4685 == 0 {
if yyv4685 == nil {
yyv4685 = []Node{}
yyc4685 = true
} else if len(yyv4685) != 0 {
yyv4685 = yyv4685[:0]
yyc4685 = true
}
} else if yyl4685 > 0 {
var yyrr4685, yyrl4685 int
var yyrt4685 bool
if yyl4685 > cap(yyv4685) {
yyrg4685 := len(yyv4685) > 0
yyv24685 := yyv4685
yyrl4685, yyrt4685 = z.DecInferLen(yyl4685, z.DecBasicHandle().MaxInitLen, 616)
if yyrt4685 {
if yyrl4685 <= cap(yyv4685) {
yyv4685 = yyv4685[:yyrl4685]
} else {
yyv4685 = make([]Node, yyrl4685)
}
} else {
yyv4685 = make([]Node, yyrl4685)
}
yyc4685 = true
yyrr4685 = len(yyv4685)
if yyrg4685 {
copy(yyv4685, yyv24685)
}
} else if yyl4685 != len(yyv4685) {
yyv4685 = yyv4685[:yyl4685]
yyc4685 = true
}
yyj4685 := 0
for ; yyj4685 < yyrr4685; yyj4685++ {
yyh4685.ElemContainerState(yyj4685)
if r.TryDecodeAsNil() {
yyv4685[yyj4685] = Node{}
} else {
yyv4686 := &yyv4685[yyj4685]
yyv4686.CodecDecodeSelf(d)
}
}
if yyrt4685 {
for ; yyj4685 < yyl4685; yyj4685++ {
yyv4685 = append(yyv4685, Node{})
yyh4685.ElemContainerState(yyj4685)
if r.TryDecodeAsNil() {
yyv4685[yyj4685] = Node{}
} else {
yyv4687 := &yyv4685[yyj4685]
yyv4687.CodecDecodeSelf(d)
}
}
}
} else {
yyj4685 := 0
for ; !r.CheckBreak(); yyj4685++ {
if yyj4685 >= len(yyv4685) {
yyv4685 = append(yyv4685, Node{}) // var yyz4685 Node
yyc4685 = true
}
yyh4685.ElemContainerState(yyj4685)
if yyj4685 < len(yyv4685) {
if r.TryDecodeAsNil() {
yyv4685[yyj4685] = Node{}
} else {
yyv4688 := &yyv4685[yyj4685]
yyv4688.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4685 < len(yyv4685) {
yyv4685 = yyv4685[:yyj4685]
yyc4685 = true
} else if yyj4685 == 0 && yyv4685 == nil {
yyv4685 = []Node{}
yyc4685 = true
}
}
yyh4685.End()
if yyc4685 {
*v = yyv4685
}
}
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 _, yyv4689 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4689.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
yyv4690 := *v
yyh4690, yyl4690 := z.DecSliceHelperStart()
var yyc4690 bool
if yyl4690 == 0 {
if yyv4690 == nil {
yyv4690 = []FinalizerName{}
yyc4690 = true
} else if len(yyv4690) != 0 {
yyv4690 = yyv4690[:0]
yyc4690 = true
}
} else if yyl4690 > 0 {
var yyrr4690, yyrl4690 int
var yyrt4690 bool
if yyl4690 > cap(yyv4690) {
yyrl4690, yyrt4690 = z.DecInferLen(yyl4690, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4690 {
if yyrl4690 <= cap(yyv4690) {
yyv4690 = yyv4690[:yyrl4690]
} else {
yyv4690 = make([]FinalizerName, yyrl4690)
}
} else {
yyv4690 = make([]FinalizerName, yyrl4690)
}
yyc4690 = true
yyrr4690 = len(yyv4690)
} else if yyl4690 != len(yyv4690) {
yyv4690 = yyv4690[:yyl4690]
yyc4690 = true
}
yyj4690 := 0
for ; yyj4690 < yyrr4690; yyj4690++ {
yyh4690.ElemContainerState(yyj4690)
if r.TryDecodeAsNil() {
yyv4690[yyj4690] = ""
} else {
yyv4690[yyj4690] = FinalizerName(r.DecodeString())
}
}
if yyrt4690 {
for ; yyj4690 < yyl4690; yyj4690++ {
yyv4690 = append(yyv4690, "")
yyh4690.ElemContainerState(yyj4690)
if r.TryDecodeAsNil() {
yyv4690[yyj4690] = ""
} else {
yyv4690[yyj4690] = FinalizerName(r.DecodeString())
}
}
}
} else {
yyj4690 := 0
for ; !r.CheckBreak(); yyj4690++ {
if yyj4690 >= len(yyv4690) {
yyv4690 = append(yyv4690, "") // var yyz4690 FinalizerName
yyc4690 = true
}
yyh4690.ElemContainerState(yyj4690)
if yyj4690 < len(yyv4690) {
if r.TryDecodeAsNil() {
yyv4690[yyj4690] = ""
} else {
yyv4690[yyj4690] = FinalizerName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4690 < len(yyv4690) {
yyv4690 = yyv4690[:yyj4690]
yyc4690 = true
} else if yyj4690 == 0 && yyv4690 == nil {
yyv4690 = []FinalizerName{}
yyc4690 = true
}
}
yyh4690.End()
if yyc4690 {
*v = yyv4690
}
}
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 _, yyv4694 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4695 := &yyv4694
yy4695.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
yyv4696 := *v
yyh4696, yyl4696 := z.DecSliceHelperStart()
var yyc4696 bool
if yyl4696 == 0 {
if yyv4696 == nil {
yyv4696 = []Namespace{}
yyc4696 = true
} else if len(yyv4696) != 0 {
yyv4696 = yyv4696[:0]
yyc4696 = true
}
} else if yyl4696 > 0 {
var yyrr4696, yyrl4696 int
var yyrt4696 bool
if yyl4696 > cap(yyv4696) {
yyrg4696 := len(yyv4696) > 0
yyv24696 := yyv4696
yyrl4696, yyrt4696 = z.DecInferLen(yyl4696, z.DecBasicHandle().MaxInitLen, 280)
if yyrt4696 {
if yyrl4696 <= cap(yyv4696) {
yyv4696 = yyv4696[:yyrl4696]
} else {
yyv4696 = make([]Namespace, yyrl4696)
}
} else {
yyv4696 = make([]Namespace, yyrl4696)
}
yyc4696 = true
yyrr4696 = len(yyv4696)
if yyrg4696 {
copy(yyv4696, yyv24696)
}
} else if yyl4696 != len(yyv4696) {
yyv4696 = yyv4696[:yyl4696]
yyc4696 = true
}
yyj4696 := 0
for ; yyj4696 < yyrr4696; yyj4696++ {
yyh4696.ElemContainerState(yyj4696)
if r.TryDecodeAsNil() {
yyv4696[yyj4696] = Namespace{}
} else {
yyv4697 := &yyv4696[yyj4696]
yyv4697.CodecDecodeSelf(d)
}
}
if yyrt4696 {
for ; yyj4696 < yyl4696; yyj4696++ {
yyv4696 = append(yyv4696, Namespace{})
yyh4696.ElemContainerState(yyj4696)
if r.TryDecodeAsNil() {
yyv4696[yyj4696] = Namespace{}
} else {
yyv4698 := &yyv4696[yyj4696]
yyv4698.CodecDecodeSelf(d)
}
}
}
} else {
yyj4696 := 0
for ; !r.CheckBreak(); yyj4696++ {
if yyj4696 >= len(yyv4696) {
yyv4696 = append(yyv4696, Namespace{}) // var yyz4696 Namespace
yyc4696 = true
}
yyh4696.ElemContainerState(yyj4696)
if yyj4696 < len(yyv4696) {
if r.TryDecodeAsNil() {
yyv4696[yyj4696] = Namespace{}
} else {
yyv4699 := &yyv4696[yyj4696]
yyv4699.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4696 < len(yyv4696) {
yyv4696 = yyv4696[:yyj4696]
yyc4696 = true
} else if yyj4696 == 0 && yyv4696 == nil {
yyv4696 = []Namespace{}
yyc4696 = true
}
}
yyh4696.End()
if yyc4696 {
*v = yyv4696
}
}
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 _, yyv4700 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4701 := &yyv4700
yy4701.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
yyv4702 := *v
yyh4702, yyl4702 := z.DecSliceHelperStart()
var yyc4702 bool
if yyl4702 == 0 {
if yyv4702 == nil {
yyv4702 = []Event{}
yyc4702 = true
} else if len(yyv4702) != 0 {
yyv4702 = yyv4702[:0]
yyc4702 = true
}
} else if yyl4702 > 0 {
var yyrr4702, yyrl4702 int
var yyrt4702 bool
if yyl4702 > cap(yyv4702) {
yyrg4702 := len(yyv4702) > 0
yyv24702 := yyv4702
yyrl4702, yyrt4702 = z.DecInferLen(yyl4702, z.DecBasicHandle().MaxInitLen, 488)
if yyrt4702 {
if yyrl4702 <= cap(yyv4702) {
yyv4702 = yyv4702[:yyrl4702]
} else {
yyv4702 = make([]Event, yyrl4702)
}
} else {
yyv4702 = make([]Event, yyrl4702)
}
yyc4702 = true
yyrr4702 = len(yyv4702)
if yyrg4702 {
copy(yyv4702, yyv24702)
}
} else if yyl4702 != len(yyv4702) {
yyv4702 = yyv4702[:yyl4702]
yyc4702 = true
}
yyj4702 := 0
for ; yyj4702 < yyrr4702; yyj4702++ {
yyh4702.ElemContainerState(yyj4702)
if r.TryDecodeAsNil() {
yyv4702[yyj4702] = Event{}
} else {
yyv4703 := &yyv4702[yyj4702]
yyv4703.CodecDecodeSelf(d)
}
}
if yyrt4702 {
for ; yyj4702 < yyl4702; yyj4702++ {
yyv4702 = append(yyv4702, Event{})
yyh4702.ElemContainerState(yyj4702)
if r.TryDecodeAsNil() {
yyv4702[yyj4702] = Event{}
} else {
yyv4704 := &yyv4702[yyj4702]
yyv4704.CodecDecodeSelf(d)
}
}
}
} else {
yyj4702 := 0
for ; !r.CheckBreak(); yyj4702++ {
if yyj4702 >= len(yyv4702) {
yyv4702 = append(yyv4702, Event{}) // var yyz4702 Event
yyc4702 = true
}
yyh4702.ElemContainerState(yyj4702)
if yyj4702 < len(yyv4702) {
if r.TryDecodeAsNil() {
yyv4702[yyj4702] = Event{}
} else {
yyv4705 := &yyv4702[yyj4702]
yyv4705.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4702 < len(yyv4702) {
yyv4702 = yyv4702[:yyj4702]
yyc4702 = true
} else if yyj4702 == 0 && yyv4702 == nil {
yyv4702 = []Event{}
yyc4702 = true
}
}
yyh4702.End()
if yyc4702 {
*v = yyv4702
}
}
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 _, yyv4706 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyv4706 == nil {
r.EncodeNil()
} else {
yym4707 := z.EncBinary()
_ = yym4707
if false {
} else if z.HasExtensions() && z.EncExt(yyv4706) {
} else {
z.EncFallback(yyv4706)
}
}
}
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
yyv4708 := *v
yyh4708, yyl4708 := z.DecSliceHelperStart()
var yyc4708 bool
if yyl4708 == 0 {
if yyv4708 == nil {
yyv4708 = []pkg7_runtime.Object{}
yyc4708 = true
} else if len(yyv4708) != 0 {
yyv4708 = yyv4708[:0]
yyc4708 = true
}
} else if yyl4708 > 0 {
var yyrr4708, yyrl4708 int
var yyrt4708 bool
if yyl4708 > cap(yyv4708) {
yyrg4708 := len(yyv4708) > 0
yyv24708 := yyv4708
yyrl4708, yyrt4708 = z.DecInferLen(yyl4708, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4708 {
if yyrl4708 <= cap(yyv4708) {
yyv4708 = yyv4708[:yyrl4708]
} else {
yyv4708 = make([]pkg7_runtime.Object, yyrl4708)
}
} else {
yyv4708 = make([]pkg7_runtime.Object, yyrl4708)
}
yyc4708 = true
yyrr4708 = len(yyv4708)
if yyrg4708 {
copy(yyv4708, yyv24708)
}
} else if yyl4708 != len(yyv4708) {
yyv4708 = yyv4708[:yyl4708]
yyc4708 = true
}
yyj4708 := 0
for ; yyj4708 < yyrr4708; yyj4708++ {
yyh4708.ElemContainerState(yyj4708)
if r.TryDecodeAsNil() {
yyv4708[yyj4708] = nil
} else {
yyv4709 := &yyv4708[yyj4708]
yym4710 := z.DecBinary()
_ = yym4710
if false {
} else if z.HasExtensions() && z.DecExt(yyv4709) {
} else {
z.DecFallback(yyv4709, true)
}
}
}
if yyrt4708 {
for ; yyj4708 < yyl4708; yyj4708++ {
yyv4708 = append(yyv4708, nil)
yyh4708.ElemContainerState(yyj4708)
if r.TryDecodeAsNil() {
yyv4708[yyj4708] = nil
} else {
yyv4711 := &yyv4708[yyj4708]
yym4712 := z.DecBinary()
_ = yym4712
if false {
} else if z.HasExtensions() && z.DecExt(yyv4711) {
} else {
z.DecFallback(yyv4711, true)
}
}
}
}
} else {
yyj4708 := 0
for ; !r.CheckBreak(); yyj4708++ {
if yyj4708 >= len(yyv4708) {
yyv4708 = append(yyv4708, nil) // var yyz4708 pkg7_runtime.Object
yyc4708 = true
}
yyh4708.ElemContainerState(yyj4708)
if yyj4708 < len(yyv4708) {
if r.TryDecodeAsNil() {
yyv4708[yyj4708] = nil
} else {
yyv4713 := &yyv4708[yyj4708]
yym4714 := z.DecBinary()
_ = yym4714
if false {
} else if z.HasExtensions() && z.DecExt(yyv4713) {
} else {
z.DecFallback(yyv4713, true)
}
}
} else {
z.DecSwallow()
}
}
if yyj4708 < len(yyv4708) {
yyv4708 = yyv4708[:yyj4708]
yyc4708 = true
} else if yyj4708 == 0 && yyv4708 == nil {
yyv4708 = []pkg7_runtime.Object{}
yyc4708 = true
}
}
yyh4708.End()
if yyc4708 {
*v = yyv4708
}
}
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 _, yyv4715 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4716 := &yyv4715
yy4716.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
yyv4717 := *v
yyh4717, yyl4717 := z.DecSliceHelperStart()
var yyc4717 bool
if yyl4717 == 0 {
if yyv4717 == nil {
yyv4717 = []LimitRangeItem{}
yyc4717 = true
} else if len(yyv4717) != 0 {
yyv4717 = yyv4717[:0]
yyc4717 = true
}
} else if yyl4717 > 0 {
var yyrr4717, yyrl4717 int
var yyrt4717 bool
if yyl4717 > cap(yyv4717) {
yyrg4717 := len(yyv4717) > 0
yyv24717 := yyv4717
yyrl4717, yyrt4717 = z.DecInferLen(yyl4717, z.DecBasicHandle().MaxInitLen, 56)
if yyrt4717 {
if yyrl4717 <= cap(yyv4717) {
yyv4717 = yyv4717[:yyrl4717]
} else {
yyv4717 = make([]LimitRangeItem, yyrl4717)
}
} else {
yyv4717 = make([]LimitRangeItem, yyrl4717)
}
yyc4717 = true
yyrr4717 = len(yyv4717)
if yyrg4717 {
copy(yyv4717, yyv24717)
}
} else if yyl4717 != len(yyv4717) {
yyv4717 = yyv4717[:yyl4717]
yyc4717 = true
}
yyj4717 := 0
for ; yyj4717 < yyrr4717; yyj4717++ {
yyh4717.ElemContainerState(yyj4717)
if r.TryDecodeAsNil() {
yyv4717[yyj4717] = LimitRangeItem{}
} else {
yyv4718 := &yyv4717[yyj4717]
yyv4718.CodecDecodeSelf(d)
}
}
if yyrt4717 {
for ; yyj4717 < yyl4717; yyj4717++ {
yyv4717 = append(yyv4717, LimitRangeItem{})
yyh4717.ElemContainerState(yyj4717)
if r.TryDecodeAsNil() {
yyv4717[yyj4717] = LimitRangeItem{}
} else {
yyv4719 := &yyv4717[yyj4717]
yyv4719.CodecDecodeSelf(d)
}
}
}
} else {
yyj4717 := 0
for ; !r.CheckBreak(); yyj4717++ {
if yyj4717 >= len(yyv4717) {
yyv4717 = append(yyv4717, LimitRangeItem{}) // var yyz4717 LimitRangeItem
yyc4717 = true
}
yyh4717.ElemContainerState(yyj4717)
if yyj4717 < len(yyv4717) {
if r.TryDecodeAsNil() {
yyv4717[yyj4717] = LimitRangeItem{}
} else {
yyv4720 := &yyv4717[yyj4717]
yyv4720.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4717 < len(yyv4717) {
yyv4717 = yyv4717[:yyj4717]
yyc4717 = true
} else if yyj4717 == 0 && yyv4717 == nil {
yyv4717 = []LimitRangeItem{}
yyc4717 = true
}
}
yyh4717.End()
if yyc4717 {
*v = yyv4717
}
}
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 _, yyv4721 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4722 := &yyv4721
yy4722.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
yyv4723 := *v
yyh4723, yyl4723 := z.DecSliceHelperStart()
var yyc4723 bool
if yyl4723 == 0 {
if yyv4723 == nil {
yyv4723 = []LimitRange{}
yyc4723 = true
} else if len(yyv4723) != 0 {
yyv4723 = yyv4723[:0]
yyc4723 = true
}
} else if yyl4723 > 0 {
var yyrr4723, yyrl4723 int
var yyrt4723 bool
if yyl4723 > cap(yyv4723) {
yyrg4723 := len(yyv4723) > 0
yyv24723 := yyv4723
yyrl4723, yyrt4723 = z.DecInferLen(yyl4723, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4723 {
if yyrl4723 <= cap(yyv4723) {
yyv4723 = yyv4723[:yyrl4723]
} else {
yyv4723 = make([]LimitRange, yyrl4723)
}
} else {
yyv4723 = make([]LimitRange, yyrl4723)
}
yyc4723 = true
yyrr4723 = len(yyv4723)
if yyrg4723 {
copy(yyv4723, yyv24723)
}
} else if yyl4723 != len(yyv4723) {
yyv4723 = yyv4723[:yyl4723]
yyc4723 = true
}
yyj4723 := 0
for ; yyj4723 < yyrr4723; yyj4723++ {
yyh4723.ElemContainerState(yyj4723)
if r.TryDecodeAsNil() {
yyv4723[yyj4723] = LimitRange{}
} else {
yyv4724 := &yyv4723[yyj4723]
yyv4724.CodecDecodeSelf(d)
}
}
if yyrt4723 {
for ; yyj4723 < yyl4723; yyj4723++ {
yyv4723 = append(yyv4723, LimitRange{})
yyh4723.ElemContainerState(yyj4723)
if r.TryDecodeAsNil() {
yyv4723[yyj4723] = LimitRange{}
} else {
yyv4725 := &yyv4723[yyj4723]
yyv4725.CodecDecodeSelf(d)
}
}
}
} else {
yyj4723 := 0
for ; !r.CheckBreak(); yyj4723++ {
if yyj4723 >= len(yyv4723) {
yyv4723 = append(yyv4723, LimitRange{}) // var yyz4723 LimitRange
yyc4723 = true
}
yyh4723.ElemContainerState(yyj4723)
if yyj4723 < len(yyv4723) {
if r.TryDecodeAsNil() {
yyv4723[yyj4723] = LimitRange{}
} else {
yyv4726 := &yyv4723[yyj4723]
yyv4726.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4723 < len(yyv4723) {
yyv4723 = yyv4723[:yyj4723]
yyc4723 = true
} else if yyj4723 == 0 && yyv4723 == nil {
yyv4723 = []LimitRange{}
yyc4723 = true
}
}
yyh4723.End()
if yyc4723 {
*v = yyv4723
}
}
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 _, yyv4727 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv4727.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
yyv4728 := *v
yyh4728, yyl4728 := z.DecSliceHelperStart()
var yyc4728 bool
if yyl4728 == 0 {
if yyv4728 == nil {
yyv4728 = []ResourceQuotaScope{}
yyc4728 = true
} else if len(yyv4728) != 0 {
yyv4728 = yyv4728[:0]
yyc4728 = true
}
} else if yyl4728 > 0 {
var yyrr4728, yyrl4728 int
var yyrt4728 bool
if yyl4728 > cap(yyv4728) {
yyrl4728, yyrt4728 = z.DecInferLen(yyl4728, z.DecBasicHandle().MaxInitLen, 16)
if yyrt4728 {
if yyrl4728 <= cap(yyv4728) {
yyv4728 = yyv4728[:yyrl4728]
} else {
yyv4728 = make([]ResourceQuotaScope, yyrl4728)
}
} else {
yyv4728 = make([]ResourceQuotaScope, yyrl4728)
}
yyc4728 = true
yyrr4728 = len(yyv4728)
} else if yyl4728 != len(yyv4728) {
yyv4728 = yyv4728[:yyl4728]
yyc4728 = true
}
yyj4728 := 0
for ; yyj4728 < yyrr4728; yyj4728++ {
yyh4728.ElemContainerState(yyj4728)
if r.TryDecodeAsNil() {
yyv4728[yyj4728] = ""
} else {
yyv4728[yyj4728] = ResourceQuotaScope(r.DecodeString())
}
}
if yyrt4728 {
for ; yyj4728 < yyl4728; yyj4728++ {
yyv4728 = append(yyv4728, "")
yyh4728.ElemContainerState(yyj4728)
if r.TryDecodeAsNil() {
yyv4728[yyj4728] = ""
} else {
yyv4728[yyj4728] = ResourceQuotaScope(r.DecodeString())
}
}
}
} else {
yyj4728 := 0
for ; !r.CheckBreak(); yyj4728++ {
if yyj4728 >= len(yyv4728) {
yyv4728 = append(yyv4728, "") // var yyz4728 ResourceQuotaScope
yyc4728 = true
}
yyh4728.ElemContainerState(yyj4728)
if yyj4728 < len(yyv4728) {
if r.TryDecodeAsNil() {
yyv4728[yyj4728] = ""
} else {
yyv4728[yyj4728] = ResourceQuotaScope(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj4728 < len(yyv4728) {
yyv4728 = yyv4728[:yyj4728]
yyc4728 = true
} else if yyj4728 == 0 && yyv4728 == nil {
yyv4728 = []ResourceQuotaScope{}
yyc4728 = true
}
}
yyh4728.End()
if yyc4728 {
*v = yyv4728
}
}
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 _, yyv4732 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4733 := &yyv4732
yy4733.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
yyv4734 := *v
yyh4734, yyl4734 := z.DecSliceHelperStart()
var yyc4734 bool
if yyl4734 == 0 {
if yyv4734 == nil {
yyv4734 = []ResourceQuota{}
yyc4734 = true
} else if len(yyv4734) != 0 {
yyv4734 = yyv4734[:0]
yyc4734 = true
}
} else if yyl4734 > 0 {
var yyrr4734, yyrl4734 int
var yyrt4734 bool
if yyl4734 > cap(yyv4734) {
yyrg4734 := len(yyv4734) > 0
yyv24734 := yyv4734
yyrl4734, yyrt4734 = z.DecInferLen(yyl4734, z.DecBasicHandle().MaxInitLen, 288)
if yyrt4734 {
if yyrl4734 <= cap(yyv4734) {
yyv4734 = yyv4734[:yyrl4734]
} else {
yyv4734 = make([]ResourceQuota, yyrl4734)
}
} else {
yyv4734 = make([]ResourceQuota, yyrl4734)
}
yyc4734 = true
yyrr4734 = len(yyv4734)
if yyrg4734 {
copy(yyv4734, yyv24734)
}
} else if yyl4734 != len(yyv4734) {
yyv4734 = yyv4734[:yyl4734]
yyc4734 = true
}
yyj4734 := 0
for ; yyj4734 < yyrr4734; yyj4734++ {
yyh4734.ElemContainerState(yyj4734)
if r.TryDecodeAsNil() {
yyv4734[yyj4734] = ResourceQuota{}
} else {
yyv4735 := &yyv4734[yyj4734]
yyv4735.CodecDecodeSelf(d)
}
}
if yyrt4734 {
for ; yyj4734 < yyl4734; yyj4734++ {
yyv4734 = append(yyv4734, ResourceQuota{})
yyh4734.ElemContainerState(yyj4734)
if r.TryDecodeAsNil() {
yyv4734[yyj4734] = ResourceQuota{}
} else {
yyv4736 := &yyv4734[yyj4734]
yyv4736.CodecDecodeSelf(d)
}
}
}
} else {
yyj4734 := 0
for ; !r.CheckBreak(); yyj4734++ {
if yyj4734 >= len(yyv4734) {
yyv4734 = append(yyv4734, ResourceQuota{}) // var yyz4734 ResourceQuota
yyc4734 = true
}
yyh4734.ElemContainerState(yyj4734)
if yyj4734 < len(yyv4734) {
if r.TryDecodeAsNil() {
yyv4734[yyj4734] = ResourceQuota{}
} else {
yyv4737 := &yyv4734[yyj4734]
yyv4737.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4734 < len(yyv4734) {
yyv4734 = yyv4734[:yyj4734]
yyc4734 = true
} else if yyj4734 == 0 && yyv4734 == nil {
yyv4734 = []ResourceQuota{}
yyc4734 = true
}
}
yyh4734.End()
if yyc4734 {
*v = yyv4734
}
}
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 yyk4738, yyv4738 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym4739 := z.EncBinary()
_ = yym4739
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yyk4738))
}
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyv4738 == nil {
r.EncodeNil()
} else {
yym4740 := z.EncBinary()
_ = yym4740
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv4738))
}
}
}
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
yyv4741 := *v
yyl4741 := r.ReadMapStart()
yybh4741 := z.DecBasicHandle()
if yyv4741 == nil {
yyrl4741, _ := z.DecInferLen(yyl4741, yybh4741.MaxInitLen, 40)
yyv4741 = make(map[string][]uint8, yyrl4741)
*v = yyv4741
}
var yymk4741 string
var yymv4741 []uint8
var yymg4741 bool
if yybh4741.MapValueReset {
yymg4741 = true
}
if yyl4741 > 0 {
for yyj4741 := 0; yyj4741 < yyl4741; yyj4741++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4741 = ""
} else {
yymk4741 = string(r.DecodeString())
}
if yymg4741 {
yymv4741 = yyv4741[yymk4741]
} else {
yymv4741 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4741 = nil
} else {
yyv4743 := &yymv4741
yym4744 := z.DecBinary()
_ = yym4744
if false {
} else {
*yyv4743 = r.DecodeBytes(*(*[]byte)(yyv4743), false, false)
}
}
if yyv4741 != nil {
yyv4741[yymk4741] = yymv4741
}
}
} else if yyl4741 < 0 {
for yyj4741 := 0; !r.CheckBreak(); yyj4741++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk4741 = ""
} else {
yymk4741 = string(r.DecodeString())
}
if yymg4741 {
yymv4741 = yyv4741[yymk4741]
} else {
yymv4741 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv4741 = nil
} else {
yyv4746 := &yymv4741
yym4747 := z.DecBinary()
_ = yym4747
if false {
} else {
*yyv4746 = r.DecodeBytes(*(*[]byte)(yyv4746), false, false)
}
}
if yyv4741 != nil {
yyv4741[yymk4741] = yymv4741
}
}
} // 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 _, yyv4748 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4749 := &yyv4748
yy4749.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
yyv4750 := *v
yyh4750, yyl4750 := z.DecSliceHelperStart()
var yyc4750 bool
if yyl4750 == 0 {
if yyv4750 == nil {
yyv4750 = []Secret{}
yyc4750 = true
} else if len(yyv4750) != 0 {
yyv4750 = yyv4750[:0]
yyc4750 = true
}
} else if yyl4750 > 0 {
var yyrr4750, yyrl4750 int
var yyrt4750 bool
if yyl4750 > cap(yyv4750) {
yyrg4750 := len(yyv4750) > 0
yyv24750 := yyv4750
yyrl4750, yyrt4750 = z.DecInferLen(yyl4750, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4750 {
if yyrl4750 <= cap(yyv4750) {
yyv4750 = yyv4750[:yyrl4750]
} else {
yyv4750 = make([]Secret, yyrl4750)
}
} else {
yyv4750 = make([]Secret, yyrl4750)
}
yyc4750 = true
yyrr4750 = len(yyv4750)
if yyrg4750 {
copy(yyv4750, yyv24750)
}
} else if yyl4750 != len(yyv4750) {
yyv4750 = yyv4750[:yyl4750]
yyc4750 = true
}
yyj4750 := 0
for ; yyj4750 < yyrr4750; yyj4750++ {
yyh4750.ElemContainerState(yyj4750)
if r.TryDecodeAsNil() {
yyv4750[yyj4750] = Secret{}
} else {
yyv4751 := &yyv4750[yyj4750]
yyv4751.CodecDecodeSelf(d)
}
}
if yyrt4750 {
for ; yyj4750 < yyl4750; yyj4750++ {
yyv4750 = append(yyv4750, Secret{})
yyh4750.ElemContainerState(yyj4750)
if r.TryDecodeAsNil() {
yyv4750[yyj4750] = Secret{}
} else {
yyv4752 := &yyv4750[yyj4750]
yyv4752.CodecDecodeSelf(d)
}
}
}
} else {
yyj4750 := 0
for ; !r.CheckBreak(); yyj4750++ {
if yyj4750 >= len(yyv4750) {
yyv4750 = append(yyv4750, Secret{}) // var yyz4750 Secret
yyc4750 = true
}
yyh4750.ElemContainerState(yyj4750)
if yyj4750 < len(yyv4750) {
if r.TryDecodeAsNil() {
yyv4750[yyj4750] = Secret{}
} else {
yyv4753 := &yyv4750[yyj4750]
yyv4753.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4750 < len(yyv4750) {
yyv4750 = yyv4750[:yyj4750]
yyc4750 = true
} else if yyj4750 == 0 && yyv4750 == nil {
yyv4750 = []Secret{}
yyc4750 = true
}
}
yyh4750.End()
if yyc4750 {
*v = yyv4750
}
}
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 _, yyv4754 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4755 := &yyv4754
yy4755.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
yyv4756 := *v
yyh4756, yyl4756 := z.DecSliceHelperStart()
var yyc4756 bool
if yyl4756 == 0 {
if yyv4756 == nil {
yyv4756 = []ConfigMap{}
yyc4756 = true
} else if len(yyv4756) != 0 {
yyv4756 = yyv4756[:0]
yyc4756 = true
}
} else if yyl4756 > 0 {
var yyrr4756, yyrl4756 int
var yyrt4756 bool
if yyl4756 > cap(yyv4756) {
yyrg4756 := len(yyv4756) > 0
yyv24756 := yyv4756
yyrl4756, yyrt4756 = z.DecInferLen(yyl4756, z.DecBasicHandle().MaxInitLen, 248)
if yyrt4756 {
if yyrl4756 <= cap(yyv4756) {
yyv4756 = yyv4756[:yyrl4756]
} else {
yyv4756 = make([]ConfigMap, yyrl4756)
}
} else {
yyv4756 = make([]ConfigMap, yyrl4756)
}
yyc4756 = true
yyrr4756 = len(yyv4756)
if yyrg4756 {
copy(yyv4756, yyv24756)
}
} else if yyl4756 != len(yyv4756) {
yyv4756 = yyv4756[:yyl4756]
yyc4756 = true
}
yyj4756 := 0
for ; yyj4756 < yyrr4756; yyj4756++ {
yyh4756.ElemContainerState(yyj4756)
if r.TryDecodeAsNil() {
yyv4756[yyj4756] = ConfigMap{}
} else {
yyv4757 := &yyv4756[yyj4756]
yyv4757.CodecDecodeSelf(d)
}
}
if yyrt4756 {
for ; yyj4756 < yyl4756; yyj4756++ {
yyv4756 = append(yyv4756, ConfigMap{})
yyh4756.ElemContainerState(yyj4756)
if r.TryDecodeAsNil() {
yyv4756[yyj4756] = ConfigMap{}
} else {
yyv4758 := &yyv4756[yyj4756]
yyv4758.CodecDecodeSelf(d)
}
}
}
} else {
yyj4756 := 0
for ; !r.CheckBreak(); yyj4756++ {
if yyj4756 >= len(yyv4756) {
yyv4756 = append(yyv4756, ConfigMap{}) // var yyz4756 ConfigMap
yyc4756 = true
}
yyh4756.ElemContainerState(yyj4756)
if yyj4756 < len(yyv4756) {
if r.TryDecodeAsNil() {
yyv4756[yyj4756] = ConfigMap{}
} else {
yyv4759 := &yyv4756[yyj4756]
yyv4759.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4756 < len(yyv4756) {
yyv4756 = yyv4756[:yyj4756]
yyc4756 = true
} else if yyj4756 == 0 && yyv4756 == nil {
yyv4756 = []ConfigMap{}
yyc4756 = true
}
}
yyh4756.End()
if yyc4756 {
*v = yyv4756
}
}
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 _, yyv4760 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4761 := &yyv4760
yy4761.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
yyv4762 := *v
yyh4762, yyl4762 := z.DecSliceHelperStart()
var yyc4762 bool
if yyl4762 == 0 {
if yyv4762 == nil {
yyv4762 = []ComponentCondition{}
yyc4762 = true
} else if len(yyv4762) != 0 {
yyv4762 = yyv4762[:0]
yyc4762 = true
}
} else if yyl4762 > 0 {
var yyrr4762, yyrl4762 int
var yyrt4762 bool
if yyl4762 > cap(yyv4762) {
yyrg4762 := len(yyv4762) > 0
yyv24762 := yyv4762
yyrl4762, yyrt4762 = z.DecInferLen(yyl4762, z.DecBasicHandle().MaxInitLen, 64)
if yyrt4762 {
if yyrl4762 <= cap(yyv4762) {
yyv4762 = yyv4762[:yyrl4762]
} else {
yyv4762 = make([]ComponentCondition, yyrl4762)
}
} else {
yyv4762 = make([]ComponentCondition, yyrl4762)
}
yyc4762 = true
yyrr4762 = len(yyv4762)
if yyrg4762 {
copy(yyv4762, yyv24762)
}
} else if yyl4762 != len(yyv4762) {
yyv4762 = yyv4762[:yyl4762]
yyc4762 = true
}
yyj4762 := 0
for ; yyj4762 < yyrr4762; yyj4762++ {
yyh4762.ElemContainerState(yyj4762)
if r.TryDecodeAsNil() {
yyv4762[yyj4762] = ComponentCondition{}
} else {
yyv4763 := &yyv4762[yyj4762]
yyv4763.CodecDecodeSelf(d)
}
}
if yyrt4762 {
for ; yyj4762 < yyl4762; yyj4762++ {
yyv4762 = append(yyv4762, ComponentCondition{})
yyh4762.ElemContainerState(yyj4762)
if r.TryDecodeAsNil() {
yyv4762[yyj4762] = ComponentCondition{}
} else {
yyv4764 := &yyv4762[yyj4762]
yyv4764.CodecDecodeSelf(d)
}
}
}
} else {
yyj4762 := 0
for ; !r.CheckBreak(); yyj4762++ {
if yyj4762 >= len(yyv4762) {
yyv4762 = append(yyv4762, ComponentCondition{}) // var yyz4762 ComponentCondition
yyc4762 = true
}
yyh4762.ElemContainerState(yyj4762)
if yyj4762 < len(yyv4762) {
if r.TryDecodeAsNil() {
yyv4762[yyj4762] = ComponentCondition{}
} else {
yyv4765 := &yyv4762[yyj4762]
yyv4765.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4762 < len(yyv4762) {
yyv4762 = yyv4762[:yyj4762]
yyc4762 = true
} else if yyj4762 == 0 && yyv4762 == nil {
yyv4762 = []ComponentCondition{}
yyc4762 = true
}
}
yyh4762.End()
if yyc4762 {
*v = yyv4762
}
}
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 _, yyv4766 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy4767 := &yyv4766
yy4767.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
yyv4768 := *v
yyh4768, yyl4768 := z.DecSliceHelperStart()
var yyc4768 bool
if yyl4768 == 0 {
if yyv4768 == nil {
yyv4768 = []ComponentStatus{}
yyc4768 = true
} else if len(yyv4768) != 0 {
yyv4768 = yyv4768[:0]
yyc4768 = true
}
} else if yyl4768 > 0 {
var yyrr4768, yyrl4768 int
var yyrt4768 bool
if yyl4768 > cap(yyv4768) {
yyrg4768 := len(yyv4768) > 0
yyv24768 := yyv4768
yyrl4768, yyrt4768 = z.DecInferLen(yyl4768, z.DecBasicHandle().MaxInitLen, 264)
if yyrt4768 {
if yyrl4768 <= cap(yyv4768) {
yyv4768 = yyv4768[:yyrl4768]
} else {
yyv4768 = make([]ComponentStatus, yyrl4768)
}
} else {
yyv4768 = make([]ComponentStatus, yyrl4768)
}
yyc4768 = true
yyrr4768 = len(yyv4768)
if yyrg4768 {
copy(yyv4768, yyv24768)
}
} else if yyl4768 != len(yyv4768) {
yyv4768 = yyv4768[:yyl4768]
yyc4768 = true
}
yyj4768 := 0
for ; yyj4768 < yyrr4768; yyj4768++ {
yyh4768.ElemContainerState(yyj4768)
if r.TryDecodeAsNil() {
yyv4768[yyj4768] = ComponentStatus{}
} else {
yyv4769 := &yyv4768[yyj4768]
yyv4769.CodecDecodeSelf(d)
}
}
if yyrt4768 {
for ; yyj4768 < yyl4768; yyj4768++ {
yyv4768 = append(yyv4768, ComponentStatus{})
yyh4768.ElemContainerState(yyj4768)
if r.TryDecodeAsNil() {
yyv4768[yyj4768] = ComponentStatus{}
} else {
yyv4770 := &yyv4768[yyj4768]
yyv4770.CodecDecodeSelf(d)
}
}
}
} else {
yyj4768 := 0
for ; !r.CheckBreak(); yyj4768++ {
if yyj4768 >= len(yyv4768) {
yyv4768 = append(yyv4768, ComponentStatus{}) // var yyz4768 ComponentStatus
yyc4768 = true
}
yyh4768.ElemContainerState(yyj4768)
if yyj4768 < len(yyv4768) {
if r.TryDecodeAsNil() {
yyv4768[yyj4768] = ComponentStatus{}
} else {
yyv4771 := &yyv4768[yyj4768]
yyv4771.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj4768 < len(yyv4768) {
yyv4768 = yyv4768[:yyj4768]
yyc4768 = true
} else if yyj4768 == 0 && yyv4768 == nil {
yyv4768 = []ComponentStatus{}
yyc4768 = true
}
}
yyh4768.End()
if yyc4768 {
*v = yyv4768
}
}