kubernetes/pkg/api/types.generated.go
2015-12-14 14:26:09 +01:00

47760 lines
1.1 MiB

/*
Copyright 2015 The Kubernetes Authors All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// ************************************************************
// DO NOT EDIT.
// THIS FILE IS AUTO-GENERATED BY codecgen.
// ************************************************************
package api
import (
"errors"
"fmt"
codec1978 "github.com/ugorji/go/codec"
pkg3_resource "k8s.io/kubernetes/pkg/api/resource"
pkg2_unversioned "k8s.io/kubernetes/pkg/api/unversioned"
pkg7_fields "k8s.io/kubernetes/pkg/fields"
pkg6_labels "k8s.io/kubernetes/pkg/labels"
pkg8_runtime "k8s.io/kubernetes/pkg/runtime"
pkg1_types "k8s.io/kubernetes/pkg/types"
pkg5_intstr "k8s.io/kubernetes/pkg/util/intstr"
"reflect"
"runtime"
pkg4_inf "speter.net/go/exp/math/dec/inf"
time "time"
)
const (
// ----- content types ----
codecSelferC_UTF81234 = 1
codecSelferC_RAW1234 = 0
// ----- value types used ----
codecSelferValueTypeArray1234 = 10
codecSelferValueTypeMap1234 = 9
// ----- containerStateValues ----
codecSelfer_containerMapKey1234 = 2
codecSelfer_containerMapValue1234 = 3
codecSelfer_containerMapEnd1234 = 4
codecSelfer_containerArrayElem1234 = 6
codecSelfer_containerArrayEnd1234 = 7
)
var (
codecSelferBitsize1234 = uint8(reflect.TypeOf(uint(0)).Bits())
codecSelferOnlyMapOrArrayEncodeToStructErr1234 = errors.New(`only encoded map or array can be decoded into a struct`)
)
type codecSelfer1234 struct{}
func init() {
if codec1978.GenVersion != 5 {
_, file, _, _ := runtime.Caller(0)
err := fmt.Errorf("codecgen version mismatch: current: %v, need %v. Re-generate file: %v",
5, codec1978.GenVersion, file)
panic(err)
}
if false { // reference the types, but skip this branch at build/run time
var v0 pkg3_resource.Quantity
var v1 pkg2_unversioned.Time
var v2 pkg7_fields.Selector
var v3 pkg6_labels.Selector
var v4 pkg8_runtime.Object
var v5 pkg1_types.UID
var v6 pkg5_intstr.IntOrString
var v7 pkg4_inf.Dec
var v8 time.Time
_, _, _, _, _, _, _, _, _ = v0, v1, v2, v3, v4, v5, v6, v7, v8
}
}
func (x *ObjectMeta) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1 := z.EncBinary()
_ = yym1
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2 := !z.EncBinary()
yy2arr2 := z.EncBasicHandle().StructToArray
var yyq2 [12]bool
_, _, _ = yysep2, yyq2, yy2arr2
const yyr2 bool = false
yyq2[0] = x.Name != ""
yyq2[1] = x.GenerateName != ""
yyq2[2] = x.Namespace != ""
yyq2[3] = x.SelfLink != ""
yyq2[4] = x.UID != ""
yyq2[5] = x.ResourceVersion != ""
yyq2[6] = x.Generation != 0
yyq2[7] = true
yyq2[8] = x.DeletionTimestamp != nil
yyq2[9] = x.DeletionGracePeriodSeconds != nil
yyq2[10] = len(x.Labels) != 0
yyq2[11] = len(x.Annotations) != 0
var yynn2 int
if yyr2 || yy2arr2 {
r.EncodeArrayStart(12)
} else {
yynn2 = 0
for _, b := range yyq2 {
if b {
yynn2++
}
}
r.EncodeMapStart(yynn2)
yynn2 = 0
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[0] {
yym4 := z.EncBinary()
_ = yym4
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym5 := z.EncBinary()
_ = yym5
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[1] {
yym7 := z.EncBinary()
_ = yym7
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generateName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym8 := z.EncBinary()
_ = yym8
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.GenerateName))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[2] {
yym10 := z.EncBinary()
_ = yym10
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym11 := z.EncBinary()
_ = yym11
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[3] {
yym13 := z.EncBinary()
_ = yym13
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("selfLink"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym14 := z.EncBinary()
_ = yym14
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SelfLink))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[4] {
yym16 := z.EncBinary()
_ = yym16
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym17 := z.EncBinary()
_ = yym17
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[5] {
yym19 := z.EncBinary()
_ = yym19
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym20 := z.EncBinary()
_ = yym20
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[6] {
yym22 := z.EncBinary()
_ = yym22
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("generation"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym23 := z.EncBinary()
_ = yym23
if false {
} else {
r.EncodeInt(int64(x.Generation))
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[7] {
yy25 := &x.CreationTimestamp
yym26 := z.EncBinary()
_ = yym26
if false {
} else if z.HasExtensions() && z.EncExt(yy25) {
} else if yym26 {
z.EncBinaryMarshal(yy25)
} else if !yym26 && z.IsJSONHandle() {
z.EncJSONMarshal(yy25)
} else {
z.EncFallback(yy25)
}
} else {
r.EncodeNil()
}
} else {
if yyq2[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("creationTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy27 := &x.CreationTimestamp
yym28 := z.EncBinary()
_ = yym28
if false {
} else if z.HasExtensions() && z.EncExt(yy27) {
} else if yym28 {
z.EncBinaryMarshal(yy27)
} else if !yym28 && z.IsJSONHandle() {
z.EncJSONMarshal(yy27)
} else {
z.EncFallback(yy27)
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[8] {
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym30 := z.EncBinary()
_ = yym30
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym30 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym30 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionTimestamp == nil {
r.EncodeNil()
} else {
yym31 := z.EncBinary()
_ = yym31
if false {
} else if z.HasExtensions() && z.EncExt(x.DeletionTimestamp) {
} else if yym31 {
z.EncBinaryMarshal(x.DeletionTimestamp)
} else if !yym31 && z.IsJSONHandle() {
z.EncJSONMarshal(x.DeletionTimestamp)
} else {
z.EncFallback(x.DeletionTimestamp)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[9] {
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy33 := *x.DeletionGracePeriodSeconds
yym34 := z.EncBinary()
_ = yym34
if false {
} else {
r.EncodeInt(int64(yy33))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("deletionGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.DeletionGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy35 := *x.DeletionGracePeriodSeconds
yym36 := z.EncBinary()
_ = yym36
if false {
} else {
r.EncodeInt(int64(yy35))
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[10] {
if x.Labels == nil {
r.EncodeNil()
} else {
yym38 := z.EncBinary()
_ = yym38
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("labels"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Labels == nil {
r.EncodeNil()
} else {
yym39 := z.EncBinary()
_ = yym39
if false {
} else {
z.F.EncMapStringStringV(x.Labels, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2[11] {
if x.Annotations == nil {
r.EncodeNil()
} else {
yym41 := z.EncBinary()
_ = yym41
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("annotations"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Annotations == nil {
r.EncodeNil()
} else {
yym42 := z.EncBinary()
_ = yym42
if false {
} else {
z.F.EncMapStringStringV(x.Annotations, false, e)
}
}
}
}
if yyr2 || yy2arr2 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *ObjectMeta) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym43 := z.DecBinary()
_ = yym43
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct44 := r.ContainerType()
if yyct44 == codecSelferValueTypeMap1234 {
yyl44 := r.ReadMapStart()
if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl44, d)
}
} else if yyct44 == codecSelferValueTypeArray1234 {
yyl44 := r.ReadArrayStart()
if yyl44 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl44, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ObjectMeta) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys45Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys45Slc
var yyhl45 bool = l >= 0
for yyj45 := 0; ; yyj45++ {
if yyhl45 {
if yyj45 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys45Slc = r.DecodeBytes(yys45Slc, true, true)
yys45 := string(yys45Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys45 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "generateName":
if r.TryDecodeAsNil() {
x.GenerateName = ""
} else {
x.GenerateName = string(r.DecodeString())
}
case "namespace":
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
case "selfLink":
if r.TryDecodeAsNil() {
x.SelfLink = ""
} else {
x.SelfLink = string(r.DecodeString())
}
case "uid":
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
case "resourceVersion":
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
case "generation":
if r.TryDecodeAsNil() {
x.Generation = 0
} else {
x.Generation = int64(r.DecodeInt(64))
}
case "creationTimestamp":
if r.TryDecodeAsNil() {
x.CreationTimestamp = pkg2_unversioned.Time{}
} else {
yyv53 := &x.CreationTimestamp
yym54 := z.DecBinary()
_ = yym54
if false {
} else if z.HasExtensions() && z.DecExt(yyv53) {
} else if yym54 {
z.DecBinaryUnmarshal(yyv53)
} else if !yym54 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv53)
} else {
z.DecFallback(yyv53, false)
}
}
case "deletionTimestamp":
if r.TryDecodeAsNil() {
if x.DeletionTimestamp != nil {
x.DeletionTimestamp = nil
}
} else {
if x.DeletionTimestamp == nil {
x.DeletionTimestamp = new(pkg2_unversioned.Time)
}
yym56 := z.DecBinary()
_ = yym56
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym56 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym56 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.DeletionTimestamp)
} else {
z.DecFallback(x.DeletionTimestamp, false)
}
}
case "deletionGracePeriodSeconds":
if r.TryDecodeAsNil() {
if x.DeletionGracePeriodSeconds != nil {
x.DeletionGracePeriodSeconds = nil
}
} else {
if x.DeletionGracePeriodSeconds == nil {
x.DeletionGracePeriodSeconds = new(int64)
}
yym58 := z.DecBinary()
_ = yym58
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
case "labels":
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv59 := &x.Labels
yym60 := z.DecBinary()
_ = yym60
if false {
} else {
z.F.DecMapStringStringX(yyv59, false, d)
}
}
case "annotations":
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv61 := &x.Annotations
yym62 := z.DecBinary()
_ = yym62
if false {
} else {
z.F.DecMapStringStringX(yyv61, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys45)
} // end switch yys45
} // end for yyj45
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x *ObjectMeta) codecDecodeSelfFromArray(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yyj63 int
var yyb63 bool
var yyhl63 bool = l >= 0
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.GenerateName = ""
} else {
x.GenerateName = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SelfLink = ""
} else {
x.SelfLink = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Generation = 0
} else {
x.Generation = int64(r.DecodeInt(64))
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CreationTimestamp = pkg2_unversioned.Time{}
} else {
yyv71 := &x.CreationTimestamp
yym72 := z.DecBinary()
_ = yym72
if false {
} else if z.HasExtensions() && z.DecExt(yyv71) {
} else if yym72 {
z.DecBinaryUnmarshal(yyv71)
} else if !yym72 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv71)
} else {
z.DecFallback(yyv71, false)
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DeletionTimestamp != nil {
x.DeletionTimestamp = nil
}
} else {
if x.DeletionTimestamp == nil {
x.DeletionTimestamp = new(pkg2_unversioned.Time)
}
yym74 := z.DecBinary()
_ = yym74
if false {
} else if z.HasExtensions() && z.DecExt(x.DeletionTimestamp) {
} else if yym74 {
z.DecBinaryUnmarshal(x.DeletionTimestamp)
} else if !yym74 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.DeletionTimestamp)
} else {
z.DecFallback(x.DeletionTimestamp, false)
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.DeletionGracePeriodSeconds != nil {
x.DeletionGracePeriodSeconds = nil
}
} else {
if x.DeletionGracePeriodSeconds == nil {
x.DeletionGracePeriodSeconds = new(int64)
}
yym76 := z.DecBinary()
_ = yym76
if false {
} else {
*((*int64)(x.DeletionGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Labels = nil
} else {
yyv77 := &x.Labels
yym78 := z.DecBinary()
_ = yym78
if false {
} else {
z.F.DecMapStringStringX(yyv77, false, d)
}
}
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Annotations = nil
} else {
yyv79 := &x.Annotations
yym80 := z.DecBinary()
_ = yym80
if false {
} else {
z.F.DecMapStringStringX(yyv79, false, d)
}
}
for {
yyj63++
if yyhl63 {
yyb63 = yyj63 > l
} else {
yyb63 = r.CheckBreak()
}
if yyb63 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj63-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Volume) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym81 := z.EncBinary()
_ = yym81
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep82 := !z.EncBinary()
yy2arr82 := z.EncBasicHandle().StructToArray
var yyq82 [17]bool
_, _, _ = yysep82, yyq82, yy2arr82
const yyr82 bool = false
yyq82[1] = x.VolumeSource.HostPath != nil && x.HostPath != nil
yyq82[2] = x.VolumeSource.EmptyDir != nil && x.EmptyDir != nil
yyq82[3] = x.VolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq82[4] = x.VolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq82[5] = x.VolumeSource.GitRepo != nil && x.GitRepo != nil
yyq82[6] = x.VolumeSource.Secret != nil && x.Secret != nil
yyq82[7] = x.VolumeSource.NFS != nil && x.NFS != nil
yyq82[8] = x.VolumeSource.ISCSI != nil && x.ISCSI != nil
yyq82[9] = x.VolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq82[10] = x.VolumeSource.PersistentVolumeClaim != nil && x.PersistentVolumeClaim != nil
yyq82[11] = x.VolumeSource.RBD != nil && x.RBD != nil
yyq82[12] = x.VolumeSource.Cinder != nil && x.Cinder != nil
yyq82[13] = x.VolumeSource.CephFS != nil && x.CephFS != nil
yyq82[14] = x.VolumeSource.Flocker != nil && x.Flocker != nil
yyq82[15] = x.VolumeSource.DownwardAPI != nil && x.DownwardAPI != nil
yyq82[16] = x.VolumeSource.FC != nil && x.FC != nil
var yynn82 int
if yyr82 || yy2arr82 {
r.EncodeArrayStart(17)
} else {
yynn82 = 1
for _, b := range yyq82 {
if b {
yynn82++
}
}
r.EncodeMapStart(yynn82)
yynn82 = 0
}
if yyr82 || yy2arr82 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym84 := z.EncBinary()
_ = yym84
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym85 := z.EncBinary()
_ = yym85
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
var yyn86 bool
if x.VolumeSource.HostPath == nil {
yyn86 = true
goto LABEL86
}
LABEL86:
if yyr82 || yy2arr82 {
if yyn86 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[1] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn86 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn87 bool
if x.VolumeSource.EmptyDir == nil {
yyn87 = true
goto LABEL87
}
LABEL87:
if yyr82 || yy2arr82 {
if yyn87 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[2] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("emptyDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn87 {
r.EncodeNil()
} else {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
}
}
}
var yyn88 bool
if x.VolumeSource.GCEPersistentDisk == nil {
yyn88 = true
goto LABEL88
}
LABEL88:
if yyr82 || yy2arr82 {
if yyn88 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[3] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn88 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn89 bool
if x.VolumeSource.AWSElasticBlockStore == nil {
yyn89 = true
goto LABEL89
}
LABEL89:
if yyr82 || yy2arr82 {
if yyn89 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[4] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn89 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn90 bool
if x.VolumeSource.GitRepo == nil {
yyn90 = true
goto LABEL90
}
LABEL90:
if yyr82 || yy2arr82 {
if yyn90 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[5] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gitRepo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn90 {
r.EncodeNil()
} else {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
}
}
}
var yyn91 bool
if x.VolumeSource.Secret == nil {
yyn91 = true
goto LABEL91
}
LABEL91:
if yyr82 || yy2arr82 {
if yyn91 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[6] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secret"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn91 {
r.EncodeNil()
} else {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
}
}
}
var yyn92 bool
if x.VolumeSource.NFS == nil {
yyn92 = true
goto LABEL92
}
LABEL92:
if yyr82 || yy2arr82 {
if yyn92 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[7] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn92 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn93 bool
if x.VolumeSource.ISCSI == nil {
yyn93 = true
goto LABEL93
}
LABEL93:
if yyr82 || yy2arr82 {
if yyn93 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[8] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn93 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn94 bool
if x.VolumeSource.Glusterfs == nil {
yyn94 = true
goto LABEL94
}
LABEL94:
if yyr82 || yy2arr82 {
if yyn94 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[9] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn94 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn95 bool
if x.VolumeSource.PersistentVolumeClaim == nil {
yyn95 = true
goto LABEL95
}
LABEL95:
if yyr82 || yy2arr82 {
if yyn95 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[10] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeClaim"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn95 {
r.EncodeNil()
} else {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
}
}
}
var yyn96 bool
if x.VolumeSource.RBD == nil {
yyn96 = true
goto LABEL96
}
LABEL96:
if yyr82 || yy2arr82 {
if yyn96 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[11] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn96 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn97 bool
if x.VolumeSource.Cinder == nil {
yyn97 = true
goto LABEL97
}
LABEL97:
if yyr82 || yy2arr82 {
if yyn97 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[12] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn97 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn98 bool
if x.VolumeSource.CephFS == nil {
yyn98 = true
goto LABEL98
}
LABEL98:
if yyr82 || yy2arr82 {
if yyn98 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[13] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[13] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn98 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn99 bool
if x.VolumeSource.Flocker == nil {
yyn99 = true
goto LABEL99
}
LABEL99:
if yyr82 || yy2arr82 {
if yyn99 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[14] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn99 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
var yyn100 bool
if x.VolumeSource.DownwardAPI == nil {
yyn100 = true
goto LABEL100
}
LABEL100:
if yyr82 || yy2arr82 {
if yyn100 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[15] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("downwardAPI"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn100 {
r.EncodeNil()
} else {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
}
}
}
var yyn101 bool
if x.VolumeSource.FC == nil {
yyn101 = true
goto LABEL101
}
LABEL101:
if yyr82 || yy2arr82 {
if yyn101 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq82[16] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq82[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn101 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
if yyr82 || yy2arr82 {
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
}
}
}
func (x *Volume) CodecDecodeSelf(d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yym102 := z.DecBinary()
_ = yym102
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct103 := r.ContainerType()
if yyct103 == codecSelferValueTypeMap1234 {
yyl103 := r.ReadMapStart()
if yyl103 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl103, d)
}
} else if yyct103 == codecSelferValueTypeArray1234 {
yyl103 := r.ReadArrayStart()
if yyl103 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl103, 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 yys104Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys104Slc
var yyhl104 bool = l >= 0
for yyj104 := 0; ; yyj104++ {
if yyhl104 {
if yyj104 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys104Slc = r.DecodeBytes(yys104Slc, true, true)
yys104 := string(yys104Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys104 {
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 "cinder":
if x.VolumeSource.Cinder == nil {
x.VolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.VolumeSource.CephFS == nil {
x.VolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if x.VolumeSource.Flocker == nil {
x.VolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if x.VolumeSource.DownwardAPI == nil {
x.VolumeSource.DownwardAPI = new(DownwardAPIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if x.VolumeSource.FC == nil {
x.VolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys104)
} // end switch yys104
} // end for yyj104
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 yyj122 int
var yyb122 bool
var yyhl122 bool = l >= 0
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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.Cinder == nil {
x.VolumeSource.Cinder = new(CinderVolumeSource)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
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)
}
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
for {
yyj122++
if yyhl122 {
yyb122 = yyj122 > l
} else {
yyb122 = r.CheckBreak()
}
if yyb122 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj122-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 {
yym140 := z.EncBinary()
_ = yym140
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep141 := !z.EncBinary()
yy2arr141 := z.EncBasicHandle().StructToArray
var yyq141 [16]bool
_, _, _ = yysep141, yyq141, yy2arr141
const yyr141 bool = false
yyq141[0] = x.HostPath != nil
yyq141[1] = x.EmptyDir != nil
yyq141[2] = x.GCEPersistentDisk != nil
yyq141[3] = x.AWSElasticBlockStore != nil
yyq141[4] = x.GitRepo != nil
yyq141[5] = x.Secret != nil
yyq141[6] = x.NFS != nil
yyq141[7] = x.ISCSI != nil
yyq141[8] = x.Glusterfs != nil
yyq141[9] = x.PersistentVolumeClaim != nil
yyq141[10] = x.RBD != nil
yyq141[11] = x.Cinder != nil
yyq141[12] = x.CephFS != nil
yyq141[13] = x.Flocker != nil
yyq141[14] = x.DownwardAPI != nil
yyq141[15] = x.FC != nil
var yynn141 int
if yyr141 || yy2arr141 {
r.EncodeArrayStart(16)
} else {
yynn141 = 0
for _, b := range yyq141 {
if b {
yynn141++
}
}
r.EncodeMapStart(yynn141)
yynn141 = 0
}
if yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[0] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[1] {
if x.EmptyDir == nil {
r.EncodeNil()
} else {
x.EmptyDir.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[2] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[3] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[4] {
if x.GitRepo == nil {
r.EncodeNil()
} else {
x.GitRepo.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[5] {
if x.Secret == nil {
r.EncodeNil()
} else {
x.Secret.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[6] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[8] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[9] {
if x.PersistentVolumeClaim == nil {
r.EncodeNil()
} else {
x.PersistentVolumeClaim.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[10] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[11] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[11] {
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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[12] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[12] {
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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[13] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[13] {
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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[14] {
if x.DownwardAPI == nil {
r.EncodeNil()
} else {
x.DownwardAPI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[14] {
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 yyr141 || yy2arr141 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq141[15] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq141[15] {
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 yyr141 || yy2arr141 {
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
yym158 := z.DecBinary()
_ = yym158
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct159 := r.ContainerType()
if yyct159 == codecSelferValueTypeMap1234 {
yyl159 := r.ReadMapStart()
if yyl159 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl159, d)
}
} else if yyct159 == codecSelferValueTypeArray1234 {
yyl159 := r.ReadArrayStart()
if yyl159 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl159, 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 yys160Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys160Slc
var yyhl160 bool = l >= 0
for yyj160 := 0; ; yyj160++ {
if yyhl160 {
if yyj160 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys160Slc = r.DecodeBytes(yys160Slc, true, true)
yys160 := string(yys160Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys160 {
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 "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "downwardAPI":
if r.TryDecodeAsNil() {
if x.DownwardAPI != nil {
x.DownwardAPI = nil
}
} else {
if x.DownwardAPI == nil {
x.DownwardAPI = new(DownwardAPIVolumeSource)
}
x.DownwardAPI.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys160)
} // end switch yys160
} // end for yyj160
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 yyj177 int
var yyb177 bool
var yyhl177 bool = l >= 0
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
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)
}
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
for {
yyj177++
if yyhl177 {
yyb177 = yyj177 > l
} else {
yyb177 = r.CheckBreak()
}
if yyb177 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj177-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 {
yym194 := z.EncBinary()
_ = yym194
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep195 := !z.EncBinary()
yy2arr195 := z.EncBasicHandle().StructToArray
var yyq195 [11]bool
_, _, _ = yysep195, yyq195, yy2arr195
const yyr195 bool = false
yyq195[0] = x.GCEPersistentDisk != nil
yyq195[1] = x.AWSElasticBlockStore != nil
yyq195[2] = x.HostPath != nil
yyq195[3] = x.Glusterfs != nil
yyq195[4] = x.NFS != nil
yyq195[5] = x.RBD != nil
yyq195[6] = x.ISCSI != nil
yyq195[7] = x.Cinder != nil
yyq195[8] = x.CephFS != nil
yyq195[9] = x.FC != nil
yyq195[10] = x.Flocker != nil
var yynn195 int
if yyr195 || yy2arr195 {
r.EncodeArrayStart(11)
} else {
yynn195 = 0
for _, b := range yyq195 {
if b {
yynn195++
}
}
r.EncodeMapStart(yynn195)
yynn195 = 0
}
if yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[0] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[1] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[2] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[3] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[4] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[5] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[6] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
if yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[7] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[7] {
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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[8] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[8] {
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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[9] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[9] {
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 yyr195 || yy2arr195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq195[10] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq195[10] {
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 yyr195 || yy2arr195 {
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
yym207 := z.DecBinary()
_ = yym207
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct208 := r.ContainerType()
if yyct208 == codecSelferValueTypeMap1234 {
yyl208 := r.ReadMapStart()
if yyl208 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl208, d)
}
} else if yyct208 == codecSelferValueTypeArray1234 {
yyl208 := r.ReadArrayStart()
if yyl208 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl208, 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 yys209Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys209Slc
var yyhl209 bool = l >= 0
for yyj209 := 0; ; yyj209++ {
if yyhl209 {
if yyj209 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys209Slc = r.DecodeBytes(yys209Slc, true, true)
yys209 := string(yys209Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys209 {
case "gcePersistentDisk":
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "iscsi":
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "cinder":
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys209)
} // end switch yys209
} // end for yyj209
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 yyj221 int
var yyb221 bool
var yyhl221 bool = l >= 0
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
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)
}
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
for {
yyj221++
if yyhl221 {
yyb221 = yyj221 > l
} else {
yyb221 = r.CheckBreak()
}
if yyb221 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj221-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 {
yym233 := z.EncBinary()
_ = yym233
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep234 := !z.EncBinary()
yy2arr234 := z.EncBasicHandle().StructToArray
var yyq234 [2]bool
_, _, _ = yysep234, yyq234, yy2arr234
const yyr234 bool = false
yyq234[1] = x.ReadOnly != false
var yynn234 int
if yyr234 || yy2arr234 {
r.EncodeArrayStart(2)
} else {
yynn234 = 1
for _, b := range yyq234 {
if b {
yynn234++
}
}
r.EncodeMapStart(yynn234)
yynn234 = 0
}
if yyr234 || yy2arr234 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym236 := z.EncBinary()
_ = yym236
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)
yym237 := z.EncBinary()
_ = yym237
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClaimName))
}
}
if yyr234 || yy2arr234 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq234[1] {
yym239 := z.EncBinary()
_ = yym239
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq234[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym240 := z.EncBinary()
_ = yym240
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr234 || yy2arr234 {
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
yym241 := z.DecBinary()
_ = yym241
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct242 := r.ContainerType()
if yyct242 == codecSelferValueTypeMap1234 {
yyl242 := r.ReadMapStart()
if yyl242 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl242, d)
}
} else if yyct242 == codecSelferValueTypeArray1234 {
yyl242 := r.ReadArrayStart()
if yyl242 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl242, 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 yys243Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys243Slc
var yyhl243 bool = l >= 0
for yyj243 := 0; ; yyj243++ {
if yyhl243 {
if yyj243 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys243Slc = r.DecodeBytes(yys243Slc, true, true)
yys243 := string(yys243Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys243 {
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, yys243)
} // end switch yys243
} // end for yyj243
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 yyj246 int
var yyb246 bool
var yyhl246 bool = l >= 0
yyj246++
if yyhl246 {
yyb246 = yyj246 > l
} else {
yyb246 = r.CheckBreak()
}
if yyb246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClaimName = ""
} else {
x.ClaimName = string(r.DecodeString())
}
yyj246++
if yyhl246 {
yyb246 = yyj246 > l
} else {
yyb246 = r.CheckBreak()
}
if yyb246 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj246++
if yyhl246 {
yyb246 = yyj246 > l
} else {
yyb246 = r.CheckBreak()
}
if yyb246 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj246-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 {
yym249 := z.EncBinary()
_ = yym249
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep250 := !z.EncBinary()
yy2arr250 := z.EncBasicHandle().StructToArray
var yyq250 [5]bool
_, _, _ = yysep250, yyq250, yy2arr250
const yyr250 bool = false
yyq250[0] = x.Kind != ""
yyq250[1] = x.APIVersion != ""
yyq250[2] = true
yyq250[3] = true
yyq250[4] = true
var yynn250 int
if yyr250 || yy2arr250 {
r.EncodeArrayStart(5)
} else {
yynn250 = 0
for _, b := range yyq250 {
if b {
yynn250++
}
}
r.EncodeMapStart(yynn250)
yynn250 = 0
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[0] {
yym252 := z.EncBinary()
_ = yym252
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq250[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym253 := z.EncBinary()
_ = yym253
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[1] {
yym255 := z.EncBinary()
_ = yym255
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq250[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym256 := z.EncBinary()
_ = yym256
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[2] {
yy258 := &x.ObjectMeta
yy258.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq250[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy259 := &x.ObjectMeta
yy259.CodecEncodeSelf(e)
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[3] {
yy261 := &x.Spec
yy261.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq250[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy262 := &x.Spec
yy262.CodecEncodeSelf(e)
}
}
if yyr250 || yy2arr250 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq250[4] {
yy264 := &x.Status
yy264.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq250[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy265 := &x.Status
yy265.CodecEncodeSelf(e)
}
}
if yyr250 || yy2arr250 {
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
yym266 := z.DecBinary()
_ = yym266
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct267 := r.ContainerType()
if yyct267 == codecSelferValueTypeMap1234 {
yyl267 := r.ReadMapStart()
if yyl267 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl267, d)
}
} else if yyct267 == codecSelferValueTypeArray1234 {
yyl267 := r.ReadArrayStart()
if yyl267 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl267, 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 yys268Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys268Slc
var yyhl268 bool = l >= 0
for yyj268 := 0; ; yyj268++ {
if yyhl268 {
if yyj268 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys268Slc = r.DecodeBytes(yys268Slc, true, true)
yys268 := string(yys268Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys268 {
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 {
yyv271 := &x.ObjectMeta
yyv271.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv272 := &x.Spec
yyv272.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv273 := &x.Status
yyv273.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys268)
} // end switch yys268
} // end for yyj268
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 yyj274 int
var yyb274 bool
var yyhl274 bool = l >= 0
yyj274++
if yyhl274 {
yyb274 = yyj274 > l
} else {
yyb274 = r.CheckBreak()
}
if yyb274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj274++
if yyhl274 {
yyb274 = yyj274 > l
} else {
yyb274 = r.CheckBreak()
}
if yyb274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj274++
if yyhl274 {
yyb274 = yyj274 > l
} else {
yyb274 = r.CheckBreak()
}
if yyb274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv277 := &x.ObjectMeta
yyv277.CodecDecodeSelf(d)
}
yyj274++
if yyhl274 {
yyb274 = yyj274 > l
} else {
yyb274 = r.CheckBreak()
}
if yyb274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeSpec{}
} else {
yyv278 := &x.Spec
yyv278.CodecDecodeSelf(d)
}
yyj274++
if yyhl274 {
yyb274 = yyj274 > l
} else {
yyb274 = r.CheckBreak()
}
if yyb274 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeStatus{}
} else {
yyv279 := &x.Status
yyv279.CodecDecodeSelf(d)
}
for {
yyj274++
if yyhl274 {
yyb274 = yyj274 > l
} else {
yyb274 = r.CheckBreak()
}
if yyb274 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj274-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 {
yym280 := z.EncBinary()
_ = yym280
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep281 := !z.EncBinary()
yy2arr281 := z.EncBasicHandle().StructToArray
var yyq281 [15]bool
_, _, _ = yysep281, yyq281, yy2arr281
const yyr281 bool = false
yyq281[1] = x.PersistentVolumeSource.GCEPersistentDisk != nil && x.GCEPersistentDisk != nil
yyq281[2] = x.PersistentVolumeSource.AWSElasticBlockStore != nil && x.AWSElasticBlockStore != nil
yyq281[3] = x.PersistentVolumeSource.HostPath != nil && x.HostPath != nil
yyq281[4] = x.PersistentVolumeSource.Glusterfs != nil && x.Glusterfs != nil
yyq281[5] = x.PersistentVolumeSource.NFS != nil && x.NFS != nil
yyq281[6] = x.PersistentVolumeSource.RBD != nil && x.RBD != nil
yyq281[7] = x.PersistentVolumeSource.ISCSI != nil && x.ISCSI != nil
yyq281[8] = x.PersistentVolumeSource.Cinder != nil && x.Cinder != nil
yyq281[9] = x.PersistentVolumeSource.CephFS != nil && x.CephFS != nil
yyq281[10] = x.PersistentVolumeSource.FC != nil && x.FC != nil
yyq281[11] = x.PersistentVolumeSource.Flocker != nil && x.Flocker != nil
yyq281[12] = len(x.AccessModes) != 0
yyq281[13] = x.ClaimRef != nil
yyq281[14] = x.PersistentVolumeReclaimPolicy != ""
var yynn281 int
if yyr281 || yy2arr281 {
r.EncodeArrayStart(15)
} else {
yynn281 = 1
for _, b := range yyq281 {
if b {
yynn281++
}
}
r.EncodeMapStart(yynn281)
yynn281 = 0
}
if yyr281 || yy2arr281 {
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 yyn283 bool
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
yyn283 = true
goto LABEL283
}
LABEL283:
if yyr281 || yy2arr281 {
if yyn283 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[1] {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gcePersistentDisk"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn283 {
r.EncodeNil()
} else {
if x.GCEPersistentDisk == nil {
r.EncodeNil()
} else {
x.GCEPersistentDisk.CodecEncodeSelf(e)
}
}
}
}
var yyn284 bool
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
yyn284 = true
goto LABEL284
}
LABEL284:
if yyr281 || yy2arr281 {
if yyn284 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[2] {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("awsElasticBlockStore"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn284 {
r.EncodeNil()
} else {
if x.AWSElasticBlockStore == nil {
r.EncodeNil()
} else {
x.AWSElasticBlockStore.CodecEncodeSelf(e)
}
}
}
}
var yyn285 bool
if x.PersistentVolumeSource.HostPath == nil {
yyn285 = true
goto LABEL285
}
LABEL285:
if yyr281 || yy2arr281 {
if yyn285 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[3] {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn285 {
r.EncodeNil()
} else {
if x.HostPath == nil {
r.EncodeNil()
} else {
x.HostPath.CodecEncodeSelf(e)
}
}
}
}
var yyn286 bool
if x.PersistentVolumeSource.Glusterfs == nil {
yyn286 = true
goto LABEL286
}
LABEL286:
if yyr281 || yy2arr281 {
if yyn286 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[4] {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("glusterfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn286 {
r.EncodeNil()
} else {
if x.Glusterfs == nil {
r.EncodeNil()
} else {
x.Glusterfs.CodecEncodeSelf(e)
}
}
}
}
var yyn287 bool
if x.PersistentVolumeSource.NFS == nil {
yyn287 = true
goto LABEL287
}
LABEL287:
if yyr281 || yy2arr281 {
if yyn287 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[5] {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn287 {
r.EncodeNil()
} else {
if x.NFS == nil {
r.EncodeNil()
} else {
x.NFS.CodecEncodeSelf(e)
}
}
}
}
var yyn288 bool
if x.PersistentVolumeSource.RBD == nil {
yyn288 = true
goto LABEL288
}
LABEL288:
if yyr281 || yy2arr281 {
if yyn288 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[6] {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("rbd"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn288 {
r.EncodeNil()
} else {
if x.RBD == nil {
r.EncodeNil()
} else {
x.RBD.CodecEncodeSelf(e)
}
}
}
}
var yyn289 bool
if x.PersistentVolumeSource.ISCSI == nil {
yyn289 = true
goto LABEL289
}
LABEL289:
if yyr281 || yy2arr281 {
if yyn289 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[7] {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsi"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn289 {
r.EncodeNil()
} else {
if x.ISCSI == nil {
r.EncodeNil()
} else {
x.ISCSI.CodecEncodeSelf(e)
}
}
}
}
var yyn290 bool
if x.PersistentVolumeSource.Cinder == nil {
yyn290 = true
goto LABEL290
}
LABEL290:
if yyr281 || yy2arr281 {
if yyn290 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[8] {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cinder"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn290 {
r.EncodeNil()
} else {
if x.Cinder == nil {
r.EncodeNil()
} else {
x.Cinder.CodecEncodeSelf(e)
}
}
}
}
var yyn291 bool
if x.PersistentVolumeSource.CephFS == nil {
yyn291 = true
goto LABEL291
}
LABEL291:
if yyr281 || yy2arr281 {
if yyn291 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[9] {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("cephfs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn291 {
r.EncodeNil()
} else {
if x.CephFS == nil {
r.EncodeNil()
} else {
x.CephFS.CodecEncodeSelf(e)
}
}
}
}
var yyn292 bool
if x.PersistentVolumeSource.FC == nil {
yyn292 = true
goto LABEL292
}
LABEL292:
if yyr281 || yy2arr281 {
if yyn292 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[10] {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fc"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn292 {
r.EncodeNil()
} else {
if x.FC == nil {
r.EncodeNil()
} else {
x.FC.CodecEncodeSelf(e)
}
}
}
}
var yyn293 bool
if x.PersistentVolumeSource.Flocker == nil {
yyn293 = true
goto LABEL293
}
LABEL293:
if yyr281 || yy2arr281 {
if yyn293 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[11] {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq281[11] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("flocker"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn293 {
r.EncodeNil()
} else {
if x.Flocker == nil {
r.EncodeNil()
} else {
x.Flocker.CodecEncodeSelf(e)
}
}
}
}
if yyr281 || yy2arr281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[12] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym295 := z.EncBinary()
_ = yym295
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq281[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym296 := z.EncBinary()
_ = yym296
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr281 || yy2arr281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[13] {
if x.ClaimRef == nil {
r.EncodeNil()
} else {
x.ClaimRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq281[13] {
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 yyr281 || yy2arr281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq281[14] {
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq281[14] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("persistentVolumeReclaimPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.PersistentVolumeReclaimPolicy.CodecEncodeSelf(e)
}
}
if yyr281 || yy2arr281 {
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
yym299 := z.DecBinary()
_ = yym299
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct300 := r.ContainerType()
if yyct300 == codecSelferValueTypeMap1234 {
yyl300 := r.ReadMapStart()
if yyl300 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl300, d)
}
} else if yyct300 == codecSelferValueTypeArray1234 {
yyl300 := r.ReadArrayStart()
if yyl300 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl300, 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 yys301Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys301Slc
var yyhl301 bool = l >= 0
for yyj301 := 0; ; yyj301++ {
if yyhl301 {
if yyj301 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys301Slc = r.DecodeBytes(yys301Slc, true, true)
yys301 := string(yys301Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys301 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv302 := &x.Capacity
yyv302.CodecDecodeSelf(d)
}
case "gcePersistentDisk":
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
if r.TryDecodeAsNil() {
if x.GCEPersistentDisk != nil {
x.GCEPersistentDisk = nil
}
} else {
if x.GCEPersistentDisk == nil {
x.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
x.GCEPersistentDisk.CodecDecodeSelf(d)
}
case "awsElasticBlockStore":
if x.PersistentVolumeSource.AWSElasticBlockStore == nil {
x.PersistentVolumeSource.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
if r.TryDecodeAsNil() {
if x.AWSElasticBlockStore != nil {
x.AWSElasticBlockStore = nil
}
} else {
if x.AWSElasticBlockStore == nil {
x.AWSElasticBlockStore = new(AWSElasticBlockStoreVolumeSource)
}
x.AWSElasticBlockStore.CodecDecodeSelf(d)
}
case "hostPath":
if x.PersistentVolumeSource.HostPath == nil {
x.PersistentVolumeSource.HostPath = new(HostPathVolumeSource)
}
if r.TryDecodeAsNil() {
if x.HostPath != nil {
x.HostPath = nil
}
} else {
if x.HostPath == nil {
x.HostPath = new(HostPathVolumeSource)
}
x.HostPath.CodecDecodeSelf(d)
}
case "glusterfs":
if x.PersistentVolumeSource.Glusterfs == nil {
x.PersistentVolumeSource.Glusterfs = new(GlusterfsVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Glusterfs != nil {
x.Glusterfs = nil
}
} else {
if x.Glusterfs == nil {
x.Glusterfs = new(GlusterfsVolumeSource)
}
x.Glusterfs.CodecDecodeSelf(d)
}
case "nfs":
if x.PersistentVolumeSource.NFS == nil {
x.PersistentVolumeSource.NFS = new(NFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.NFS != nil {
x.NFS = nil
}
} else {
if x.NFS == nil {
x.NFS = new(NFSVolumeSource)
}
x.NFS.CodecDecodeSelf(d)
}
case "rbd":
if x.PersistentVolumeSource.RBD == nil {
x.PersistentVolumeSource.RBD = new(RBDVolumeSource)
}
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
case "iscsi":
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
if r.TryDecodeAsNil() {
if x.ISCSI != nil {
x.ISCSI = nil
}
} else {
if x.ISCSI == nil {
x.ISCSI = new(ISCSIVolumeSource)
}
x.ISCSI.CodecDecodeSelf(d)
}
case "cinder":
if x.PersistentVolumeSource.Cinder == nil {
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Cinder != nil {
x.Cinder = nil
}
} else {
if x.Cinder == nil {
x.Cinder = new(CinderVolumeSource)
}
x.Cinder.CodecDecodeSelf(d)
}
case "cephfs":
if x.PersistentVolumeSource.CephFS == nil {
x.PersistentVolumeSource.CephFS = new(CephFSVolumeSource)
}
if r.TryDecodeAsNil() {
if x.CephFS != nil {
x.CephFS = nil
}
} else {
if x.CephFS == nil {
x.CephFS = new(CephFSVolumeSource)
}
x.CephFS.CodecDecodeSelf(d)
}
case "fc":
if x.PersistentVolumeSource.FC == nil {
x.PersistentVolumeSource.FC = new(FCVolumeSource)
}
if r.TryDecodeAsNil() {
if x.FC != nil {
x.FC = nil
}
} else {
if x.FC == nil {
x.FC = new(FCVolumeSource)
}
x.FC.CodecDecodeSelf(d)
}
case "flocker":
if x.PersistentVolumeSource.Flocker == nil {
x.PersistentVolumeSource.Flocker = new(FlockerVolumeSource)
}
if r.TryDecodeAsNil() {
if x.Flocker != nil {
x.Flocker = nil
}
} else {
if x.Flocker == nil {
x.Flocker = new(FlockerVolumeSource)
}
x.Flocker.CodecDecodeSelf(d)
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv314 := &x.AccessModes
yym315 := z.DecBinary()
_ = yym315
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv314), 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, yys301)
} // end switch yys301
} // end for yyj301
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 yyj318 int
var yyb318 bool
var yyhl318 bool = l >= 0
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv319 := &x.Capacity
yyv319.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.GCEPersistentDisk == nil {
x.PersistentVolumeSource.GCEPersistentDisk = new(GCEPersistentDiskVolumeSource)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.RBD != nil {
x.RBD = nil
}
} else {
if x.RBD == nil {
x.RBD = new(RBDVolumeSource)
}
x.RBD.CodecDecodeSelf(d)
}
if x.PersistentVolumeSource.ISCSI == nil {
x.PersistentVolumeSource.ISCSI = new(ISCSIVolumeSource)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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.Cinder == nil {
x.PersistentVolumeSource.Cinder = new(CinderVolumeSource)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv331 := &x.AccessModes
yym332 := z.DecBinary()
_ = yym332
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv331), d)
}
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
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)
}
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PersistentVolumeReclaimPolicy = ""
} else {
x.PersistentVolumeReclaimPolicy = PersistentVolumeReclaimPolicy(r.DecodeString())
}
for {
yyj318++
if yyhl318 {
yyb318 = yyj318 > l
} else {
yyb318 = r.CheckBreak()
}
if yyb318 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj318-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeReclaimPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym335 := z.EncBinary()
_ = yym335
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
yym336 := z.DecBinary()
_ = yym336
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 {
yym337 := z.EncBinary()
_ = yym337
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep338 := !z.EncBinary()
yy2arr338 := z.EncBasicHandle().StructToArray
var yyq338 [3]bool
_, _, _ = yysep338, yyq338, yy2arr338
const yyr338 bool = false
yyq338[0] = x.Phase != ""
yyq338[1] = x.Message != ""
yyq338[2] = x.Reason != ""
var yynn338 int
if yyr338 || yy2arr338 {
r.EncodeArrayStart(3)
} else {
yynn338 = 0
for _, b := range yyq338 {
if b {
yynn338++
}
}
r.EncodeMapStart(yynn338)
yynn338 = 0
}
if yyr338 || yy2arr338 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq338[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq338[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr338 || yy2arr338 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq338[1] {
yym341 := z.EncBinary()
_ = yym341
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq338[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym342 := z.EncBinary()
_ = yym342
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr338 || yy2arr338 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq338[2] {
yym344 := z.EncBinary()
_ = yym344
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq338[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym345 := z.EncBinary()
_ = yym345
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr338 || yy2arr338 {
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
yym346 := z.DecBinary()
_ = yym346
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct347 := r.ContainerType()
if yyct347 == codecSelferValueTypeMap1234 {
yyl347 := r.ReadMapStart()
if yyl347 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl347, d)
}
} else if yyct347 == codecSelferValueTypeArray1234 {
yyl347 := r.ReadArrayStart()
if yyl347 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl347, 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 yys348Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys348Slc
var yyhl348 bool = l >= 0
for yyj348 := 0; ; yyj348++ {
if yyhl348 {
if yyj348 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys348Slc = r.DecodeBytes(yys348Slc, true, true)
yys348 := string(yys348Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys348 {
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, yys348)
} // end switch yys348
} // end for yyj348
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 yyj352 int
var yyb352 bool
var yyhl352 bool = l >= 0
yyj352++
if yyhl352 {
yyb352 = yyj352 > l
} else {
yyb352 = r.CheckBreak()
}
if yyb352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumePhase(r.DecodeString())
}
yyj352++
if yyhl352 {
yyb352 = yyj352 > l
} else {
yyb352 = r.CheckBreak()
}
if yyb352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj352++
if yyhl352 {
yyb352 = yyj352 > l
} else {
yyb352 = r.CheckBreak()
}
if yyb352 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
for {
yyj352++
if yyhl352 {
yyb352 = yyj352 > l
} else {
yyb352 = r.CheckBreak()
}
if yyb352 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj352-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 {
yym356 := z.EncBinary()
_ = yym356
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep357 := !z.EncBinary()
yy2arr357 := z.EncBasicHandle().StructToArray
var yyq357 [4]bool
_, _, _ = yysep357, yyq357, yy2arr357
const yyr357 bool = false
yyq357[0] = x.Kind != ""
yyq357[1] = x.APIVersion != ""
yyq357[2] = true
var yynn357 int
if yyr357 || yy2arr357 {
r.EncodeArrayStart(4)
} else {
yynn357 = 1
for _, b := range yyq357 {
if b {
yynn357++
}
}
r.EncodeMapStart(yynn357)
yynn357 = 0
}
if yyr357 || yy2arr357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq357[0] {
yym359 := z.EncBinary()
_ = yym359
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq357[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym360 := z.EncBinary()
_ = yym360
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr357 || yy2arr357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq357[1] {
yym362 := z.EncBinary()
_ = yym362
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq357[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym363 := z.EncBinary()
_ = yym363
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr357 || yy2arr357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq357[2] {
yy365 := &x.ListMeta
yym366 := z.EncBinary()
_ = yym366
if false {
} else if z.HasExtensions() && z.EncExt(yy365) {
} else {
z.EncFallback(yy365)
}
} else {
r.EncodeNil()
}
} else {
if yyq357[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy367 := &x.ListMeta
yym368 := z.EncBinary()
_ = yym368
if false {
} else if z.HasExtensions() && z.EncExt(yy367) {
} else {
z.EncFallback(yy367)
}
}
}
if yyr357 || yy2arr357 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym370 := z.EncBinary()
_ = yym370
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 {
yym371 := z.EncBinary()
_ = yym371
if false {
} else {
h.encSlicePersistentVolume(([]PersistentVolume)(x.Items), e)
}
}
}
if yyr357 || yy2arr357 {
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
yym372 := z.DecBinary()
_ = yym372
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct373 := r.ContainerType()
if yyct373 == codecSelferValueTypeMap1234 {
yyl373 := r.ReadMapStart()
if yyl373 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl373, d)
}
} else if yyct373 == codecSelferValueTypeArray1234 {
yyl373 := r.ReadArrayStart()
if yyl373 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl373, 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 yys374Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys374Slc
var yyhl374 bool = l >= 0
for yyj374 := 0; ; yyj374++ {
if yyhl374 {
if yyj374 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys374Slc = r.DecodeBytes(yys374Slc, true, true)
yys374 := string(yys374Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys374 {
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 {
yyv377 := &x.ListMeta
yym378 := z.DecBinary()
_ = yym378
if false {
} else if z.HasExtensions() && z.DecExt(yyv377) {
} else {
z.DecFallback(yyv377, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv379 := &x.Items
yym380 := z.DecBinary()
_ = yym380
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv379), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys374)
} // end switch yys374
} // end for yyj374
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 yyj381 int
var yyb381 bool
var yyhl381 bool = l >= 0
yyj381++
if yyhl381 {
yyb381 = yyj381 > l
} else {
yyb381 = r.CheckBreak()
}
if yyb381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj381++
if yyhl381 {
yyb381 = yyj381 > l
} else {
yyb381 = r.CheckBreak()
}
if yyb381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj381++
if yyhl381 {
yyb381 = yyj381 > l
} else {
yyb381 = r.CheckBreak()
}
if yyb381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv384 := &x.ListMeta
yym385 := z.DecBinary()
_ = yym385
if false {
} else if z.HasExtensions() && z.DecExt(yyv384) {
} else {
z.DecFallback(yyv384, false)
}
}
yyj381++
if yyhl381 {
yyb381 = yyj381 > l
} else {
yyb381 = r.CheckBreak()
}
if yyb381 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv386 := &x.Items
yym387 := z.DecBinary()
_ = yym387
if false {
} else {
h.decSlicePersistentVolume((*[]PersistentVolume)(yyv386), d)
}
}
for {
yyj381++
if yyhl381 {
yyb381 = yyj381 > l
} else {
yyb381 = r.CheckBreak()
}
if yyb381 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj381-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 {
yym388 := z.EncBinary()
_ = yym388
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep389 := !z.EncBinary()
yy2arr389 := z.EncBasicHandle().StructToArray
var yyq389 [5]bool
_, _, _ = yysep389, yyq389, yy2arr389
const yyr389 bool = false
yyq389[0] = x.Kind != ""
yyq389[1] = x.APIVersion != ""
yyq389[2] = true
yyq389[3] = true
yyq389[4] = true
var yynn389 int
if yyr389 || yy2arr389 {
r.EncodeArrayStart(5)
} else {
yynn389 = 0
for _, b := range yyq389 {
if b {
yynn389++
}
}
r.EncodeMapStart(yynn389)
yynn389 = 0
}
if yyr389 || yy2arr389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq389[0] {
yym391 := z.EncBinary()
_ = yym391
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq389[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym392 := z.EncBinary()
_ = yym392
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr389 || yy2arr389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq389[1] {
yym394 := z.EncBinary()
_ = yym394
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq389[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym395 := z.EncBinary()
_ = yym395
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr389 || yy2arr389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq389[2] {
yy397 := &x.ObjectMeta
yy397.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq389[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy398 := &x.ObjectMeta
yy398.CodecEncodeSelf(e)
}
}
if yyr389 || yy2arr389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq389[3] {
yy400 := &x.Spec
yy400.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq389[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy401 := &x.Spec
yy401.CodecEncodeSelf(e)
}
}
if yyr389 || yy2arr389 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq389[4] {
yy403 := &x.Status
yy403.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq389[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy404 := &x.Status
yy404.CodecEncodeSelf(e)
}
}
if yyr389 || yy2arr389 {
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
yym405 := z.DecBinary()
_ = yym405
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct406 := r.ContainerType()
if yyct406 == codecSelferValueTypeMap1234 {
yyl406 := r.ReadMapStart()
if yyl406 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl406, d)
}
} else if yyct406 == codecSelferValueTypeArray1234 {
yyl406 := r.ReadArrayStart()
if yyl406 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl406, 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 yys407Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys407Slc
var yyhl407 bool = l >= 0
for yyj407 := 0; ; yyj407++ {
if yyhl407 {
if yyj407 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys407Slc = r.DecodeBytes(yys407Slc, true, true)
yys407 := string(yys407Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys407 {
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 {
yyv410 := &x.ObjectMeta
yyv410.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeClaimSpec{}
} else {
yyv411 := &x.Spec
yyv411.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeClaimStatus{}
} else {
yyv412 := &x.Status
yyv412.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys407)
} // end switch yys407
} // end for yyj407
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 yyj413 int
var yyb413 bool
var yyhl413 bool = l >= 0
yyj413++
if yyhl413 {
yyb413 = yyj413 > l
} else {
yyb413 = r.CheckBreak()
}
if yyb413 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj413++
if yyhl413 {
yyb413 = yyj413 > l
} else {
yyb413 = r.CheckBreak()
}
if yyb413 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj413++
if yyhl413 {
yyb413 = yyj413 > l
} else {
yyb413 = r.CheckBreak()
}
if yyb413 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv416 := &x.ObjectMeta
yyv416.CodecDecodeSelf(d)
}
yyj413++
if yyhl413 {
yyb413 = yyj413 > l
} else {
yyb413 = r.CheckBreak()
}
if yyb413 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PersistentVolumeClaimSpec{}
} else {
yyv417 := &x.Spec
yyv417.CodecDecodeSelf(d)
}
yyj413++
if yyhl413 {
yyb413 = yyj413 > l
} else {
yyb413 = r.CheckBreak()
}
if yyb413 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PersistentVolumeClaimStatus{}
} else {
yyv418 := &x.Status
yyv418.CodecDecodeSelf(d)
}
for {
yyj413++
if yyhl413 {
yyb413 = yyj413 > l
} else {
yyb413 = r.CheckBreak()
}
if yyb413 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj413-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 {
yym419 := z.EncBinary()
_ = yym419
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep420 := !z.EncBinary()
yy2arr420 := z.EncBasicHandle().StructToArray
var yyq420 [4]bool
_, _, _ = yysep420, yyq420, yy2arr420
const yyr420 bool = false
yyq420[0] = x.Kind != ""
yyq420[1] = x.APIVersion != ""
yyq420[2] = true
var yynn420 int
if yyr420 || yy2arr420 {
r.EncodeArrayStart(4)
} else {
yynn420 = 1
for _, b := range yyq420 {
if b {
yynn420++
}
}
r.EncodeMapStart(yynn420)
yynn420 = 0
}
if yyr420 || yy2arr420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq420[0] {
yym422 := z.EncBinary()
_ = yym422
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq420[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym423 := z.EncBinary()
_ = yym423
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr420 || yy2arr420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq420[1] {
yym425 := z.EncBinary()
_ = yym425
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq420[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym426 := z.EncBinary()
_ = yym426
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr420 || yy2arr420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq420[2] {
yy428 := &x.ListMeta
yym429 := z.EncBinary()
_ = yym429
if false {
} else if z.HasExtensions() && z.EncExt(yy428) {
} else {
z.EncFallback(yy428)
}
} else {
r.EncodeNil()
}
} else {
if yyq420[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy430 := &x.ListMeta
yym431 := z.EncBinary()
_ = yym431
if false {
} else if z.HasExtensions() && z.EncExt(yy430) {
} else {
z.EncFallback(yy430)
}
}
}
if yyr420 || yy2arr420 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym433 := z.EncBinary()
_ = yym433
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 {
yym434 := z.EncBinary()
_ = yym434
if false {
} else {
h.encSlicePersistentVolumeClaim(([]PersistentVolumeClaim)(x.Items), e)
}
}
}
if yyr420 || yy2arr420 {
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
yym435 := z.DecBinary()
_ = yym435
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct436 := r.ContainerType()
if yyct436 == codecSelferValueTypeMap1234 {
yyl436 := r.ReadMapStart()
if yyl436 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl436, d)
}
} else if yyct436 == codecSelferValueTypeArray1234 {
yyl436 := r.ReadArrayStart()
if yyl436 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl436, 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 yys437Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys437Slc
var yyhl437 bool = l >= 0
for yyj437 := 0; ; yyj437++ {
if yyhl437 {
if yyj437 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys437Slc = r.DecodeBytes(yys437Slc, true, true)
yys437 := string(yys437Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys437 {
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 {
yyv440 := &x.ListMeta
yym441 := z.DecBinary()
_ = yym441
if false {
} else if z.HasExtensions() && z.DecExt(yyv440) {
} else {
z.DecFallback(yyv440, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv442 := &x.Items
yym443 := z.DecBinary()
_ = yym443
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv442), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys437)
} // end switch yys437
} // end for yyj437
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 yyj444 int
var yyb444 bool
var yyhl444 bool = l >= 0
yyj444++
if yyhl444 {
yyb444 = yyj444 > l
} else {
yyb444 = r.CheckBreak()
}
if yyb444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj444++
if yyhl444 {
yyb444 = yyj444 > l
} else {
yyb444 = r.CheckBreak()
}
if yyb444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj444++
if yyhl444 {
yyb444 = yyj444 > l
} else {
yyb444 = r.CheckBreak()
}
if yyb444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv447 := &x.ListMeta
yym448 := z.DecBinary()
_ = yym448
if false {
} else if z.HasExtensions() && z.DecExt(yyv447) {
} else {
z.DecFallback(yyv447, false)
}
}
yyj444++
if yyhl444 {
yyb444 = yyj444 > l
} else {
yyb444 = r.CheckBreak()
}
if yyb444 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv449 := &x.Items
yym450 := z.DecBinary()
_ = yym450
if false {
} else {
h.decSlicePersistentVolumeClaim((*[]PersistentVolumeClaim)(yyv449), d)
}
}
for {
yyj444++
if yyhl444 {
yyb444 = yyj444 > l
} else {
yyb444 = r.CheckBreak()
}
if yyb444 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj444-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 {
yym451 := z.EncBinary()
_ = yym451
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep452 := !z.EncBinary()
yy2arr452 := z.EncBasicHandle().StructToArray
var yyq452 [3]bool
_, _, _ = yysep452, yyq452, yy2arr452
const yyr452 bool = false
yyq452[0] = len(x.AccessModes) != 0
yyq452[1] = true
yyq452[2] = x.VolumeName != ""
var yynn452 int
if yyr452 || yy2arr452 {
r.EncodeArrayStart(3)
} else {
yynn452 = 0
for _, b := range yyq452 {
if b {
yynn452++
}
}
r.EncodeMapStart(yynn452)
yynn452 = 0
}
if yyr452 || yy2arr452 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq452[0] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym454 := z.EncBinary()
_ = yym454
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq452[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym455 := z.EncBinary()
_ = yym455
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr452 || yy2arr452 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq452[1] {
yy457 := &x.Resources
yy457.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq452[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy458 := &x.Resources
yy458.CodecEncodeSelf(e)
}
}
if yyr452 || yy2arr452 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq452[2] {
yym460 := z.EncBinary()
_ = yym460
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq452[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym461 := z.EncBinary()
_ = yym461
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeName))
}
}
}
if yyr452 || yy2arr452 {
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
yym462 := z.DecBinary()
_ = yym462
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct463 := r.ContainerType()
if yyct463 == codecSelferValueTypeMap1234 {
yyl463 := r.ReadMapStart()
if yyl463 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl463, d)
}
} else if yyct463 == codecSelferValueTypeArray1234 {
yyl463 := r.ReadArrayStart()
if yyl463 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl463, 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 yys464Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys464Slc
var yyhl464 bool = l >= 0
for yyj464 := 0; ; yyj464++ {
if yyhl464 {
if yyj464 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys464Slc = r.DecodeBytes(yys464Slc, true, true)
yys464 := string(yys464Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys464 {
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv465 := &x.AccessModes
yym466 := z.DecBinary()
_ = yym466
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv465), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv467 := &x.Resources
yyv467.CodecDecodeSelf(d)
}
case "volumeName":
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys464)
} // end switch yys464
} // end for yyj464
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 yyj469 int
var yyb469 bool
var yyhl469 bool = l >= 0
yyj469++
if yyhl469 {
yyb469 = yyj469 > l
} else {
yyb469 = r.CheckBreak()
}
if yyb469 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv470 := &x.AccessModes
yym471 := z.DecBinary()
_ = yym471
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv470), d)
}
}
yyj469++
if yyhl469 {
yyb469 = yyj469 > l
} else {
yyb469 = r.CheckBreak()
}
if yyb469 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv472 := &x.Resources
yyv472.CodecDecodeSelf(d)
}
yyj469++
if yyhl469 {
yyb469 = yyj469 > l
} else {
yyb469 = r.CheckBreak()
}
if yyb469 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeName = ""
} else {
x.VolumeName = string(r.DecodeString())
}
for {
yyj469++
if yyhl469 {
yyb469 = yyj469 > l
} else {
yyb469 = r.CheckBreak()
}
if yyb469 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj469-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 {
yym474 := z.EncBinary()
_ = yym474
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep475 := !z.EncBinary()
yy2arr475 := z.EncBasicHandle().StructToArray
var yyq475 [3]bool
_, _, _ = yysep475, yyq475, yy2arr475
const yyr475 bool = false
yyq475[0] = x.Phase != ""
yyq475[1] = len(x.AccessModes) != 0
yyq475[2] = len(x.Capacity) != 0
var yynn475 int
if yyr475 || yy2arr475 {
r.EncodeArrayStart(3)
} else {
yynn475 = 0
for _, b := range yyq475 {
if b {
yynn475++
}
}
r.EncodeMapStart(yynn475)
yynn475 = 0
}
if yyr475 || yy2arr475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq475[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq475[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr475 || yy2arr475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq475[1] {
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym478 := z.EncBinary()
_ = yym478
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq475[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("accessModes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.AccessModes == nil {
r.EncodeNil()
} else {
yym479 := z.EncBinary()
_ = yym479
if false {
} else {
h.encSlicePersistentVolumeAccessMode(([]PersistentVolumeAccessMode)(x.AccessModes), e)
}
}
}
}
if yyr475 || yy2arr475 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq475[2] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq475[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 yyr475 || yy2arr475 {
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
yym481 := z.DecBinary()
_ = yym481
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct482 := r.ContainerType()
if yyct482 == codecSelferValueTypeMap1234 {
yyl482 := r.ReadMapStart()
if yyl482 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl482, d)
}
} else if yyct482 == codecSelferValueTypeArray1234 {
yyl482 := r.ReadArrayStart()
if yyl482 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl482, 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 yys483Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys483Slc
var yyhl483 bool = l >= 0
for yyj483 := 0; ; yyj483++ {
if yyhl483 {
if yyj483 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys483Slc = r.DecodeBytes(yys483Slc, true, true)
yys483 := string(yys483Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys483 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
case "accessModes":
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv485 := &x.AccessModes
yym486 := z.DecBinary()
_ = yym486
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv485), d)
}
}
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv487 := &x.Capacity
yyv487.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys483)
} // end switch yys483
} // end for yyj483
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 yyj488 int
var yyb488 bool
var yyhl488 bool = l >= 0
yyj488++
if yyhl488 {
yyb488 = yyj488 > l
} else {
yyb488 = r.CheckBreak()
}
if yyb488 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PersistentVolumeClaimPhase(r.DecodeString())
}
yyj488++
if yyhl488 {
yyb488 = yyj488 > l
} else {
yyb488 = r.CheckBreak()
}
if yyb488 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.AccessModes = nil
} else {
yyv490 := &x.AccessModes
yym491 := z.DecBinary()
_ = yym491
if false {
} else {
h.decSlicePersistentVolumeAccessMode((*[]PersistentVolumeAccessMode)(yyv490), d)
}
}
yyj488++
if yyhl488 {
yyb488 = yyj488 > l
} else {
yyb488 = r.CheckBreak()
}
if yyb488 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv492 := &x.Capacity
yyv492.CodecDecodeSelf(d)
}
for {
yyj488++
if yyhl488 {
yyb488 = yyj488 > l
} else {
yyb488 = r.CheckBreak()
}
if yyb488 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj488-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PersistentVolumeAccessMode) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym493 := z.EncBinary()
_ = yym493
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
yym494 := z.DecBinary()
_ = yym494
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
yym495 := z.EncBinary()
_ = yym495
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
yym496 := z.DecBinary()
_ = yym496
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
yym497 := z.EncBinary()
_ = yym497
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
yym498 := z.DecBinary()
_ = yym498
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 {
yym499 := z.EncBinary()
_ = yym499
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep500 := !z.EncBinary()
yy2arr500 := z.EncBasicHandle().StructToArray
var yyq500 [1]bool
_, _, _ = yysep500, yyq500, yy2arr500
const yyr500 bool = false
var yynn500 int
if yyr500 || yy2arr500 {
r.EncodeArrayStart(1)
} else {
yynn500 = 1
for _, b := range yyq500 {
if b {
yynn500++
}
}
r.EncodeMapStart(yynn500)
yynn500 = 0
}
if yyr500 || yy2arr500 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym502 := z.EncBinary()
_ = yym502
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)
yym503 := z.EncBinary()
_ = yym503
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr500 || yy2arr500 {
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
yym504 := z.DecBinary()
_ = yym504
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct505 := r.ContainerType()
if yyct505 == codecSelferValueTypeMap1234 {
yyl505 := r.ReadMapStart()
if yyl505 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl505, d)
}
} else if yyct505 == codecSelferValueTypeArray1234 {
yyl505 := r.ReadArrayStart()
if yyl505 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl505, 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 yys506Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys506Slc
var yyhl506 bool = l >= 0
for yyj506 := 0; ; yyj506++ {
if yyhl506 {
if yyj506 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys506Slc = r.DecodeBytes(yys506Slc, true, true)
yys506 := string(yys506Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys506 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys506)
} // end switch yys506
} // end for yyj506
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 yyj508 int
var yyb508 bool
var yyhl508 bool = l >= 0
yyj508++
if yyhl508 {
yyb508 = yyj508 > l
} else {
yyb508 = r.CheckBreak()
}
if yyb508 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj508++
if yyhl508 {
yyb508 = yyj508 > l
} else {
yyb508 = r.CheckBreak()
}
if yyb508 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj508-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 {
yym510 := z.EncBinary()
_ = yym510
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep511 := !z.EncBinary()
yy2arr511 := z.EncBasicHandle().StructToArray
var yyq511 [1]bool
_, _, _ = yysep511, yyq511, yy2arr511
const yyr511 bool = false
var yynn511 int
if yyr511 || yy2arr511 {
r.EncodeArrayStart(1)
} else {
yynn511 = 1
for _, b := range yyq511 {
if b {
yynn511++
}
}
r.EncodeMapStart(yynn511)
yynn511 = 0
}
if yyr511 || yy2arr511 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
x.Medium.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("medium"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Medium.CodecEncodeSelf(e)
}
if yyr511 || yy2arr511 {
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
yym513 := z.DecBinary()
_ = yym513
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct514 := r.ContainerType()
if yyct514 == codecSelferValueTypeMap1234 {
yyl514 := r.ReadMapStart()
if yyl514 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl514, d)
}
} else if yyct514 == codecSelferValueTypeArray1234 {
yyl514 := r.ReadArrayStart()
if yyl514 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl514, 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 yys515Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys515Slc
var yyhl515 bool = l >= 0
for yyj515 := 0; ; yyj515++ {
if yyhl515 {
if yyj515 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys515Slc = r.DecodeBytes(yys515Slc, true, true)
yys515 := string(yys515Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys515 {
case "medium":
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys515)
} // end switch yys515
} // end for yyj515
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 yyj517 int
var yyb517 bool
var yyhl517 bool = l >= 0
yyj517++
if yyhl517 {
yyb517 = yyj517 > l
} else {
yyb517 = r.CheckBreak()
}
if yyb517 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Medium = ""
} else {
x.Medium = StorageMedium(r.DecodeString())
}
for {
yyj517++
if yyhl517 {
yyb517 = yyj517 > l
} else {
yyb517 = r.CheckBreak()
}
if yyb517 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj517-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x StorageMedium) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym519 := z.EncBinary()
_ = yym519
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
yym520 := z.DecBinary()
_ = yym520
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
yym521 := z.EncBinary()
_ = yym521
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
yym522 := z.DecBinary()
_ = yym522
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 {
yym523 := z.EncBinary()
_ = yym523
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep524 := !z.EncBinary()
yy2arr524 := z.EncBasicHandle().StructToArray
var yyq524 [4]bool
_, _, _ = yysep524, yyq524, yy2arr524
const yyr524 bool = false
yyq524[1] = x.FSType != ""
yyq524[2] = x.Partition != 0
yyq524[3] = x.ReadOnly != false
var yynn524 int
if yyr524 || yy2arr524 {
r.EncodeArrayStart(4)
} else {
yynn524 = 1
for _, b := range yyq524 {
if b {
yynn524++
}
}
r.EncodeMapStart(yynn524)
yynn524 = 0
}
if yyr524 || yy2arr524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym526 := z.EncBinary()
_ = yym526
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)
yym527 := z.EncBinary()
_ = yym527
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PDName))
}
}
if yyr524 || yy2arr524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq524[1] {
yym529 := z.EncBinary()
_ = yym529
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq524[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym530 := z.EncBinary()
_ = yym530
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr524 || yy2arr524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq524[2] {
yym532 := z.EncBinary()
_ = yym532
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq524[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym533 := z.EncBinary()
_ = yym533
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr524 || yy2arr524 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq524[3] {
yym535 := z.EncBinary()
_ = yym535
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq524[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym536 := z.EncBinary()
_ = yym536
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr524 || yy2arr524 {
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
yym537 := z.DecBinary()
_ = yym537
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct538 := r.ContainerType()
if yyct538 == codecSelferValueTypeMap1234 {
yyl538 := r.ReadMapStart()
if yyl538 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl538, d)
}
} else if yyct538 == codecSelferValueTypeArray1234 {
yyl538 := r.ReadArrayStart()
if yyl538 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl538, 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 yys539Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys539Slc
var yyhl539 bool = l >= 0
for yyj539 := 0; ; yyj539++ {
if yyhl539 {
if yyj539 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys539Slc = r.DecodeBytes(yys539Slc, true, true)
yys539 := string(yys539Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys539 {
case "pdName":
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys539)
} // end switch yys539
} // end for yyj539
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 yyj544 int
var yyb544 bool
var yyhl544 bool = l >= 0
yyj544++
if yyhl544 {
yyb544 = yyj544 > l
} else {
yyb544 = r.CheckBreak()
}
if yyb544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PDName = ""
} else {
x.PDName = string(r.DecodeString())
}
yyj544++
if yyhl544 {
yyb544 = yyj544 > l
} else {
yyb544 = r.CheckBreak()
}
if yyb544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj544++
if yyhl544 {
yyb544 = yyj544 > l
} else {
yyb544 = r.CheckBreak()
}
if yyb544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj544++
if yyhl544 {
yyb544 = yyj544 > l
} else {
yyb544 = r.CheckBreak()
}
if yyb544 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj544++
if yyhl544 {
yyb544 = yyj544 > l
} else {
yyb544 = r.CheckBreak()
}
if yyb544 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj544-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 {
yym549 := z.EncBinary()
_ = yym549
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep550 := !z.EncBinary()
yy2arr550 := z.EncBasicHandle().StructToArray
var yyq550 [6]bool
_, _, _ = yysep550, yyq550, yy2arr550
const yyr550 bool = false
yyq550[0] = x.TargetPortal != ""
yyq550[1] = x.IQN != ""
yyq550[2] = x.Lun != 0
yyq550[3] = x.ISCSIInterface != ""
yyq550[4] = x.FSType != ""
yyq550[5] = x.ReadOnly != false
var yynn550 int
if yyr550 || yy2arr550 {
r.EncodeArrayStart(6)
} 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] {
yym552 := z.EncBinary()
_ = yym552
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq550[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPortal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym553 := z.EncBinary()
_ = yym553
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TargetPortal))
}
}
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[1] {
yym555 := z.EncBinary()
_ = yym555
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq550[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iqn"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym556 := z.EncBinary()
_ = yym556
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IQN))
}
}
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[2] {
yym558 := z.EncBinary()
_ = yym558
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq550[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym559 := z.EncBinary()
_ = yym559
if false {
} else {
r.EncodeInt(int64(x.Lun))
}
}
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[3] {
yym561 := z.EncBinary()
_ = yym561
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq550[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("iscsiInterface"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym562 := z.EncBinary()
_ = yym562
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ISCSIInterface))
}
}
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[4] {
yym564 := z.EncBinary()
_ = yym564
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq550[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym565 := z.EncBinary()
_ = yym565
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr550 || yy2arr550 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq550[5] {
yym567 := z.EncBinary()
_ = yym567
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq550[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym568 := z.EncBinary()
_ = yym568
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr550 || yy2arr550 {
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
yym569 := z.DecBinary()
_ = yym569
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct570 := r.ContainerType()
if yyct570 == codecSelferValueTypeMap1234 {
yyl570 := r.ReadMapStart()
if yyl570 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl570, d)
}
} else if yyct570 == codecSelferValueTypeArray1234 {
yyl570 := r.ReadArrayStart()
if yyl570 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl570, 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 yys571Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys571Slc
var yyhl571 bool = l >= 0
for yyj571 := 0; ; yyj571++ {
if yyhl571 {
if yyj571 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys571Slc = r.DecodeBytes(yys571Slc, true, true)
yys571 := string(yys571Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys571 {
case "targetPortal":
if r.TryDecodeAsNil() {
x.TargetPortal = ""
} else {
x.TargetPortal = string(r.DecodeString())
}
case "iqn":
if r.TryDecodeAsNil() {
x.IQN = ""
} else {
x.IQN = string(r.DecodeString())
}
case "lun":
if r.TryDecodeAsNil() {
x.Lun = 0
} else {
x.Lun = int(r.DecodeInt(codecSelferBitsize1234))
}
case "iscsiInterface":
if r.TryDecodeAsNil() {
x.ISCSIInterface = ""
} else {
x.ISCSIInterface = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys571)
} // end switch yys571
} // end for yyj571
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 yyj578 int
var yyb578 bool
var yyhl578 bool = l >= 0
yyj578++
if yyhl578 {
yyb578 = yyj578 > l
} else {
yyb578 = r.CheckBreak()
}
if yyb578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPortal = ""
} else {
x.TargetPortal = string(r.DecodeString())
}
yyj578++
if yyhl578 {
yyb578 = yyj578 > l
} else {
yyb578 = r.CheckBreak()
}
if yyb578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IQN = ""
} else {
x.IQN = string(r.DecodeString())
}
yyj578++
if yyhl578 {
yyb578 = yyj578 > l
} else {
yyb578 = r.CheckBreak()
}
if yyb578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Lun = 0
} else {
x.Lun = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj578++
if yyhl578 {
yyb578 = yyj578 > l
} else {
yyb578 = r.CheckBreak()
}
if yyb578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ISCSIInterface = ""
} else {
x.ISCSIInterface = string(r.DecodeString())
}
yyj578++
if yyhl578 {
yyb578 = yyj578 > l
} else {
yyb578 = r.CheckBreak()
}
if yyb578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj578++
if yyhl578 {
yyb578 = yyj578 > l
} else {
yyb578 = r.CheckBreak()
}
if yyb578 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj578++
if yyhl578 {
yyb578 = yyj578 > l
} else {
yyb578 = r.CheckBreak()
}
if yyb578 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj578-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 {
yym585 := z.EncBinary()
_ = yym585
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep586 := !z.EncBinary()
yy2arr586 := z.EncBasicHandle().StructToArray
var yyq586 [4]bool
_, _, _ = yysep586, yyq586, yy2arr586
const yyr586 bool = false
yyq586[3] = x.ReadOnly != false
var yynn586 int
if yyr586 || yy2arr586 {
r.EncodeArrayStart(4)
} else {
yynn586 = 3
for _, b := range yyq586 {
if b {
yynn586++
}
}
r.EncodeMapStart(yynn586)
yynn586 = 0
}
if yyr586 || yy2arr586 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TargetWWNs == nil {
r.EncodeNil()
} else {
yym588 := z.EncBinary()
_ = yym588
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 {
yym589 := z.EncBinary()
_ = yym589
if false {
} else {
z.F.EncSliceStringV(x.TargetWWNs, false, e)
}
}
}
if yyr586 || yy2arr586 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy591 := *x.Lun
yym592 := z.EncBinary()
_ = yym592
if false {
} else {
r.EncodeInt(int64(yy591))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lun"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Lun == nil {
r.EncodeNil()
} else {
yy593 := *x.Lun
yym594 := z.EncBinary()
_ = yym594
if false {
} else {
r.EncodeInt(int64(yy593))
}
}
}
if yyr586 || yy2arr586 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym596 := z.EncBinary()
_ = yym596
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym597 := z.EncBinary()
_ = yym597
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
if yyr586 || yy2arr586 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq586[3] {
yym599 := z.EncBinary()
_ = yym599
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq586[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym600 := z.EncBinary()
_ = yym600
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr586 || yy2arr586 {
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
yym601 := z.DecBinary()
_ = yym601
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct602 := r.ContainerType()
if yyct602 == codecSelferValueTypeMap1234 {
yyl602 := r.ReadMapStart()
if yyl602 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl602, d)
}
} else if yyct602 == codecSelferValueTypeArray1234 {
yyl602 := r.ReadArrayStart()
if yyl602 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl602, 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 yys603Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys603Slc
var yyhl603 bool = l >= 0
for yyj603 := 0; ; yyj603++ {
if yyhl603 {
if yyj603 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys603Slc = r.DecodeBytes(yys603Slc, true, true)
yys603 := string(yys603Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys603 {
case "targetWWNs":
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv604 := &x.TargetWWNs
yym605 := z.DecBinary()
_ = yym605
if false {
} else {
z.F.DecSliceStringX(yyv604, false, d)
}
}
case "lun":
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int)
}
yym607 := z.DecBinary()
_ = yym607
if false {
} else {
*((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234))
}
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys603)
} // end switch yys603
} // end for yyj603
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 yyj610 int
var yyb610 bool
var yyhl610 bool = l >= 0
yyj610++
if yyhl610 {
yyb610 = yyj610 > l
} else {
yyb610 = r.CheckBreak()
}
if yyb610 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetWWNs = nil
} else {
yyv611 := &x.TargetWWNs
yym612 := z.DecBinary()
_ = yym612
if false {
} else {
z.F.DecSliceStringX(yyv611, false, d)
}
}
yyj610++
if yyhl610 {
yyb610 = yyj610 > l
} else {
yyb610 = r.CheckBreak()
}
if yyb610 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.Lun != nil {
x.Lun = nil
}
} else {
if x.Lun == nil {
x.Lun = new(int)
}
yym614 := z.DecBinary()
_ = yym614
if false {
} else {
*((*int)(x.Lun)) = int(r.DecodeInt(codecSelferBitsize1234))
}
}
yyj610++
if yyhl610 {
yyb610 = yyj610 > l
} else {
yyb610 = r.CheckBreak()
}
if yyb610 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj610++
if yyhl610 {
yyb610 = yyj610 > l
} else {
yyb610 = r.CheckBreak()
}
if yyb610 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj610++
if yyhl610 {
yyb610 = yyj610 > l
} else {
yyb610 = r.CheckBreak()
}
if yyb610 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj610-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 {
yym617 := z.EncBinary()
_ = yym617
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep618 := !z.EncBinary()
yy2arr618 := z.EncBasicHandle().StructToArray
var yyq618 [4]bool
_, _, _ = yysep618, yyq618, yy2arr618
const yyr618 bool = false
yyq618[1] = x.FSType != ""
yyq618[2] = x.Partition != 0
yyq618[3] = x.ReadOnly != false
var yynn618 int
if yyr618 || yy2arr618 {
r.EncodeArrayStart(4)
} else {
yynn618 = 1
for _, b := range yyq618 {
if b {
yynn618++
}
}
r.EncodeMapStart(yynn618)
yynn618 = 0
}
if yyr618 || yy2arr618 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym620 := z.EncBinary()
_ = yym620
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)
yym621 := z.EncBinary()
_ = yym621
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr618 || yy2arr618 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq618[1] {
yym623 := z.EncBinary()
_ = yym623
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq618[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym624 := z.EncBinary()
_ = yym624
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr618 || yy2arr618 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq618[2] {
yym626 := z.EncBinary()
_ = yym626
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq618[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("partition"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym627 := z.EncBinary()
_ = yym627
if false {
} else {
r.EncodeInt(int64(x.Partition))
}
}
}
if yyr618 || yy2arr618 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq618[3] {
yym629 := z.EncBinary()
_ = yym629
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq618[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym630 := z.EncBinary()
_ = yym630
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr618 || yy2arr618 {
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
yym631 := z.DecBinary()
_ = yym631
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct632 := r.ContainerType()
if yyct632 == codecSelferValueTypeMap1234 {
yyl632 := r.ReadMapStart()
if yyl632 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl632, d)
}
} else if yyct632 == codecSelferValueTypeArray1234 {
yyl632 := r.ReadArrayStart()
if yyl632 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl632, 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 yys633Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys633Slc
var yyhl633 bool = l >= 0
for yyj633 := 0; ; yyj633++ {
if yyhl633 {
if yyj633 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys633Slc = r.DecodeBytes(yys633Slc, true, true)
yys633 := string(yys633Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys633 {
case "volumeID":
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
case "fsType":
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
case "partition":
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys633)
} // end switch yys633
} // end for yyj633
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 yyj638 int
var yyb638 bool
var yyhl638 bool = l >= 0
yyj638++
if yyhl638 {
yyb638 = yyj638 > l
} else {
yyb638 = r.CheckBreak()
}
if yyb638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj638++
if yyhl638 {
yyb638 = yyj638 > l
} else {
yyb638 = r.CheckBreak()
}
if yyb638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj638++
if yyhl638 {
yyb638 = yyj638 > l
} else {
yyb638 = r.CheckBreak()
}
if yyb638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Partition = 0
} else {
x.Partition = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj638++
if yyhl638 {
yyb638 = yyj638 > l
} else {
yyb638 = r.CheckBreak()
}
if yyb638 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj638++
if yyhl638 {
yyb638 = yyj638 > l
} else {
yyb638 = r.CheckBreak()
}
if yyb638 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj638-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 {
yym643 := z.EncBinary()
_ = yym643
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep644 := !z.EncBinary()
yy2arr644 := z.EncBasicHandle().StructToArray
var yyq644 [3]bool
_, _, _ = yysep644, yyq644, yy2arr644
const yyr644 bool = false
yyq644[1] = x.Revision != ""
yyq644[2] = x.Directory != ""
var yynn644 int
if yyr644 || yy2arr644 {
r.EncodeArrayStart(3)
} else {
yynn644 = 1
for _, b := range yyq644 {
if b {
yynn644++
}
}
r.EncodeMapStart(yynn644)
yynn644 = 0
}
if yyr644 || yy2arr644 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym646 := z.EncBinary()
_ = yym646
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)
yym647 := z.EncBinary()
_ = yym647
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Repository))
}
}
if yyr644 || yy2arr644 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq644[1] {
yym649 := z.EncBinary()
_ = yym649
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq644[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("revision"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym650 := z.EncBinary()
_ = yym650
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Revision))
}
}
}
if yyr644 || yy2arr644 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq644[2] {
yym652 := z.EncBinary()
_ = yym652
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq644[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("directory"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym653 := z.EncBinary()
_ = yym653
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Directory))
}
}
}
if yyr644 || yy2arr644 {
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
yym654 := z.DecBinary()
_ = yym654
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct655 := r.ContainerType()
if yyct655 == codecSelferValueTypeMap1234 {
yyl655 := r.ReadMapStart()
if yyl655 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl655, d)
}
} else if yyct655 == codecSelferValueTypeArray1234 {
yyl655 := r.ReadArrayStart()
if yyl655 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl655, 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 yys656Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys656Slc
var yyhl656 bool = l >= 0
for yyj656 := 0; ; yyj656++ {
if yyhl656 {
if yyj656 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys656Slc = r.DecodeBytes(yys656Slc, true, true)
yys656 := string(yys656Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys656 {
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, yys656)
} // end switch yys656
} // end for yyj656
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 yyj660 int
var yyb660 bool
var yyhl660 bool = l >= 0
yyj660++
if yyhl660 {
yyb660 = yyj660 > l
} else {
yyb660 = r.CheckBreak()
}
if yyb660 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Repository = ""
} else {
x.Repository = string(r.DecodeString())
}
yyj660++
if yyhl660 {
yyb660 = yyj660 > l
} else {
yyb660 = r.CheckBreak()
}
if yyb660 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Revision = ""
} else {
x.Revision = string(r.DecodeString())
}
yyj660++
if yyhl660 {
yyb660 = yyj660 > l
} else {
yyb660 = r.CheckBreak()
}
if yyb660 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Directory = ""
} else {
x.Directory = string(r.DecodeString())
}
for {
yyj660++
if yyhl660 {
yyb660 = yyj660 > l
} else {
yyb660 = r.CheckBreak()
}
if yyb660 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj660-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 {
yym664 := z.EncBinary()
_ = yym664
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep665 := !z.EncBinary()
yy2arr665 := z.EncBasicHandle().StructToArray
var yyq665 [1]bool
_, _, _ = yysep665, yyq665, yy2arr665
const yyr665 bool = false
var yynn665 int
if yyr665 || yy2arr665 {
r.EncodeArrayStart(1)
} else {
yynn665 = 1
for _, b := range yyq665 {
if b {
yynn665++
}
}
r.EncodeMapStart(yynn665)
yynn665 = 0
}
if yyr665 || yy2arr665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym667 := z.EncBinary()
_ = yym667
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)
yym668 := z.EncBinary()
_ = yym668
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretName))
}
}
if yyr665 || yy2arr665 {
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
yym669 := z.DecBinary()
_ = yym669
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct670 := r.ContainerType()
if yyct670 == codecSelferValueTypeMap1234 {
yyl670 := r.ReadMapStart()
if yyl670 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl670, d)
}
} else if yyct670 == codecSelferValueTypeArray1234 {
yyl670 := r.ReadArrayStart()
if yyl670 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl670, 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 yys671Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys671Slc
var yyhl671 bool = l >= 0
for yyj671 := 0; ; yyj671++ {
if yyhl671 {
if yyj671 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys671Slc = r.DecodeBytes(yys671Slc, true, true)
yys671 := string(yys671Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys671 {
case "secretName":
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys671)
} // end switch yys671
} // end for yyj671
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 yyj673 int
var yyb673 bool
var yyhl673 bool = l >= 0
yyj673++
if yyhl673 {
yyb673 = yyj673 > l
} else {
yyb673 = r.CheckBreak()
}
if yyb673 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretName = ""
} else {
x.SecretName = string(r.DecodeString())
}
for {
yyj673++
if yyhl673 {
yyb673 = yyj673 > l
} else {
yyb673 = r.CheckBreak()
}
if yyb673 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj673-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 {
yym675 := z.EncBinary()
_ = yym675
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep676 := !z.EncBinary()
yy2arr676 := z.EncBasicHandle().StructToArray
var yyq676 [3]bool
_, _, _ = yysep676, yyq676, yy2arr676
const yyr676 bool = false
yyq676[2] = x.ReadOnly != false
var yynn676 int
if yyr676 || yy2arr676 {
r.EncodeArrayStart(3)
} else {
yynn676 = 2
for _, b := range yyq676 {
if b {
yynn676++
}
}
r.EncodeMapStart(yynn676)
yynn676 = 0
}
if yyr676 || yy2arr676 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym678 := z.EncBinary()
_ = yym678
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)
yym679 := z.EncBinary()
_ = yym679
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Server))
}
}
if yyr676 || yy2arr676 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym681 := z.EncBinary()
_ = yym681
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)
yym682 := z.EncBinary()
_ = yym682
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr676 || yy2arr676 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq676[2] {
yym684 := z.EncBinary()
_ = yym684
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq676[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym685 := z.EncBinary()
_ = yym685
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr676 || yy2arr676 {
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
yym686 := z.DecBinary()
_ = yym686
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct687 := r.ContainerType()
if yyct687 == codecSelferValueTypeMap1234 {
yyl687 := r.ReadMapStart()
if yyl687 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl687, d)
}
} else if yyct687 == codecSelferValueTypeArray1234 {
yyl687 := r.ReadArrayStart()
if yyl687 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl687, 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 yys688Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys688Slc
var yyhl688 bool = l >= 0
for yyj688 := 0; ; yyj688++ {
if yyhl688 {
if yyj688 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys688Slc = r.DecodeBytes(yys688Slc, true, true)
yys688 := string(yys688Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys688 {
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, yys688)
} // end switch yys688
} // end for yyj688
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 yyj692 int
var yyb692 bool
var yyhl692 bool = l >= 0
yyj692++
if yyhl692 {
yyb692 = yyj692 > l
} else {
yyb692 = r.CheckBreak()
}
if yyb692 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Server = ""
} else {
x.Server = string(r.DecodeString())
}
yyj692++
if yyhl692 {
yyb692 = yyj692 > l
} else {
yyb692 = r.CheckBreak()
}
if yyb692 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj692++
if yyhl692 {
yyb692 = yyj692 > l
} else {
yyb692 = r.CheckBreak()
}
if yyb692 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj692++
if yyhl692 {
yyb692 = yyj692 > l
} else {
yyb692 = r.CheckBreak()
}
if yyb692 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj692-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 {
yym696 := z.EncBinary()
_ = yym696
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep697 := !z.EncBinary()
yy2arr697 := z.EncBasicHandle().StructToArray
var yyq697 [3]bool
_, _, _ = yysep697, yyq697, yy2arr697
const yyr697 bool = false
yyq697[2] = x.ReadOnly != false
var yynn697 int
if yyr697 || yy2arr697 {
r.EncodeArrayStart(3)
} else {
yynn697 = 2
for _, b := range yyq697 {
if b {
yynn697++
}
}
r.EncodeMapStart(yynn697)
yynn697 = 0
}
if yyr697 || yy2arr697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym699 := z.EncBinary()
_ = yym699
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)
yym700 := z.EncBinary()
_ = yym700
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.EndpointsName))
}
}
if yyr697 || yy2arr697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym702 := z.EncBinary()
_ = yym702
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)
yym703 := z.EncBinary()
_ = yym703
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr697 || yy2arr697 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq697[2] {
yym705 := z.EncBinary()
_ = yym705
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq697[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym706 := z.EncBinary()
_ = yym706
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr697 || yy2arr697 {
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
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 *GlusterfsVolumeSource) 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 "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, yys709)
} // end switch yys709
} // end for yyj709
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 yyj713 int
var yyb713 bool
var yyhl713 bool = l >= 0
yyj713++
if yyhl713 {
yyb713 = yyj713 > l
} else {
yyb713 = r.CheckBreak()
}
if yyb713 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.EndpointsName = ""
} else {
x.EndpointsName = string(r.DecodeString())
}
yyj713++
if yyhl713 {
yyb713 = yyj713 > l
} else {
yyb713 = r.CheckBreak()
}
if yyb713 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj713++
if yyhl713 {
yyb713 = yyj713 > l
} else {
yyb713 = r.CheckBreak()
}
if yyb713 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj713++
if yyhl713 {
yyb713 = yyj713 > l
} else {
yyb713 = r.CheckBreak()
}
if yyb713 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj713-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 {
yym717 := z.EncBinary()
_ = yym717
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep718 := !z.EncBinary()
yy2arr718 := z.EncBasicHandle().StructToArray
var yyq718 [8]bool
_, _, _ = yysep718, yyq718, yy2arr718
const yyr718 bool = false
yyq718[2] = x.FSType != ""
yyq718[7] = x.ReadOnly != false
var yynn718 int
if yyr718 || yy2arr718 {
r.EncodeArrayStart(8)
} else {
yynn718 = 6
for _, b := range yyq718 {
if b {
yynn718++
}
}
r.EncodeMapStart(yynn718)
yynn718 = 0
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.CephMonitors == nil {
r.EncodeNil()
} else {
yym720 := z.EncBinary()
_ = yym720
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 {
yym721 := z.EncBinary()
_ = yym721
if false {
} else {
z.F.EncSliceStringV(x.CephMonitors, false, e)
}
}
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym723 := z.EncBinary()
_ = yym723
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)
yym724 := z.EncBinary()
_ = yym724
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDImage))
}
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq718[2] {
yym726 := z.EncBinary()
_ = yym726
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq718[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym727 := z.EncBinary()
_ = yym727
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym729 := z.EncBinary()
_ = yym729
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("pool"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym730 := z.EncBinary()
_ = yym730
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RBDPool))
}
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym732 := z.EncBinary()
_ = yym732
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym733 := z.EncBinary()
_ = yym733
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.RadosUser))
}
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym735 := z.EncBinary()
_ = yym735
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("keyring"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym736 := z.EncBinary()
_ = yym736
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Keyring))
}
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
if yyr718 || yy2arr718 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq718[7] {
yym739 := z.EncBinary()
_ = yym739
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq718[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym740 := z.EncBinary()
_ = yym740
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr718 || yy2arr718 {
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
yym741 := z.DecBinary()
_ = yym741
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct742 := r.ContainerType()
if yyct742 == codecSelferValueTypeMap1234 {
yyl742 := r.ReadMapStart()
if yyl742 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl742, d)
}
} else if yyct742 == codecSelferValueTypeArray1234 {
yyl742 := r.ReadArrayStart()
if yyl742 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl742, 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 yys743Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys743Slc
var yyhl743 bool = l >= 0
for yyj743 := 0; ; yyj743++ {
if yyhl743 {
if yyj743 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys743Slc = r.DecodeBytes(yys743Slc, true, true)
yys743 := string(yys743Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys743 {
case "monitors":
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv744 := &x.CephMonitors
yym745 := z.DecBinary()
_ = yym745
if false {
} else {
z.F.DecSliceStringX(yyv744, 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, yys743)
} // end switch yys743
} // end for yyj743
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 yyj753 int
var yyb753 bool
var yyhl753 bool = l >= 0
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.CephMonitors = nil
} else {
yyv754 := &x.CephMonitors
yym755 := z.DecBinary()
_ = yym755
if false {
} else {
z.F.DecSliceStringX(yyv754, false, d)
}
}
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDImage = ""
} else {
x.RBDImage = string(r.DecodeString())
}
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RBDPool = ""
} else {
x.RBDPool = string(r.DecodeString())
}
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RadosUser = ""
} else {
x.RadosUser = string(r.DecodeString())
}
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Keyring = ""
} else {
x.Keyring = string(r.DecodeString())
}
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
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)
}
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj753++
if yyhl753 {
yyb753 = yyj753 > l
} else {
yyb753 = r.CheckBreak()
}
if yyb753 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj753-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 {
yym763 := z.EncBinary()
_ = yym763
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep764 := !z.EncBinary()
yy2arr764 := z.EncBasicHandle().StructToArray
var yyq764 [3]bool
_, _, _ = yysep764, yyq764, yy2arr764
const yyr764 bool = false
yyq764[1] = x.FSType != ""
yyq764[2] = x.ReadOnly != false
var yynn764 int
if yyr764 || yy2arr764 {
r.EncodeArrayStart(3)
} else {
yynn764 = 1
for _, b := range yyq764 {
if b {
yynn764++
}
}
r.EncodeMapStart(yynn764)
yynn764 = 0
}
if yyr764 || yy2arr764 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym766 := z.EncBinary()
_ = yym766
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)
yym767 := z.EncBinary()
_ = yym767
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.VolumeID))
}
}
if yyr764 || yy2arr764 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq764[1] {
yym769 := z.EncBinary()
_ = yym769
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq764[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsType"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym770 := z.EncBinary()
_ = yym770
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FSType))
}
}
}
if yyr764 || yy2arr764 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq764[2] {
yym772 := z.EncBinary()
_ = yym772
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq764[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym773 := z.EncBinary()
_ = yym773
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr764 || yy2arr764 {
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
yym774 := z.DecBinary()
_ = yym774
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct775 := r.ContainerType()
if yyct775 == codecSelferValueTypeMap1234 {
yyl775 := r.ReadMapStart()
if yyl775 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl775, d)
}
} else if yyct775 == codecSelferValueTypeArray1234 {
yyl775 := r.ReadArrayStart()
if yyl775 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl775, 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 yys776Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys776Slc
var yyhl776 bool = l >= 0
for yyj776 := 0; ; yyj776++ {
if yyhl776 {
if yyj776 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys776Slc = r.DecodeBytes(yys776Slc, true, true)
yys776 := string(yys776Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys776 {
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, yys776)
} // end switch yys776
} // end for yyj776
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 yyj780 int
var yyb780 bool
var yyhl780 bool = l >= 0
yyj780++
if yyhl780 {
yyb780 = yyj780 > l
} else {
yyb780 = r.CheckBreak()
}
if yyb780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeID = ""
} else {
x.VolumeID = string(r.DecodeString())
}
yyj780++
if yyhl780 {
yyb780 = yyj780 > l
} else {
yyb780 = r.CheckBreak()
}
if yyb780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FSType = ""
} else {
x.FSType = string(r.DecodeString())
}
yyj780++
if yyhl780 {
yyb780 = yyj780 > l
} else {
yyb780 = r.CheckBreak()
}
if yyb780 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj780++
if yyhl780 {
yyb780 = yyj780 > l
} else {
yyb780 = r.CheckBreak()
}
if yyb780 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj780-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 {
yym784 := z.EncBinary()
_ = yym784
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep785 := !z.EncBinary()
yy2arr785 := z.EncBasicHandle().StructToArray
var yyq785 [5]bool
_, _, _ = yysep785, yyq785, yy2arr785
const yyr785 bool = false
yyq785[1] = x.User != ""
yyq785[2] = x.SecretFile != ""
yyq785[3] = x.SecretRef != nil
yyq785[4] = x.ReadOnly != false
var yynn785 int
if yyr785 || yy2arr785 {
r.EncodeArrayStart(5)
} else {
yynn785 = 1
for _, b := range yyq785 {
if b {
yynn785++
}
}
r.EncodeMapStart(yynn785)
yynn785 = 0
}
if yyr785 || yy2arr785 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Monitors == nil {
r.EncodeNil()
} else {
yym787 := z.EncBinary()
_ = yym787
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 {
yym788 := z.EncBinary()
_ = yym788
if false {
} else {
z.F.EncSliceStringV(x.Monitors, false, e)
}
}
}
if yyr785 || yy2arr785 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq785[1] {
yym790 := z.EncBinary()
_ = yym790
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq785[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym791 := z.EncBinary()
_ = yym791
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr785 || yy2arr785 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq785[2] {
yym793 := z.EncBinary()
_ = yym793
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq785[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretFile"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym794 := z.EncBinary()
_ = yym794
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SecretFile))
}
}
}
if yyr785 || yy2arr785 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq785[3] {
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq785[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("secretRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SecretRef == nil {
r.EncodeNil()
} else {
x.SecretRef.CodecEncodeSelf(e)
}
}
}
if yyr785 || yy2arr785 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq785[4] {
yym797 := z.EncBinary()
_ = yym797
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq785[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym798 := z.EncBinary()
_ = yym798
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr785 || yy2arr785 {
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
yym799 := z.DecBinary()
_ = yym799
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct800 := r.ContainerType()
if yyct800 == codecSelferValueTypeMap1234 {
yyl800 := r.ReadMapStart()
if yyl800 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl800, d)
}
} else if yyct800 == codecSelferValueTypeArray1234 {
yyl800 := r.ReadArrayStart()
if yyl800 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl800, 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 yys801Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys801Slc
var yyhl801 bool = l >= 0
for yyj801 := 0; ; yyj801++ {
if yyhl801 {
if yyj801 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys801Slc = r.DecodeBytes(yys801Slc, true, true)
yys801 := string(yys801Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys801 {
case "monitors":
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv802 := &x.Monitors
yym803 := z.DecBinary()
_ = yym803
if false {
} else {
z.F.DecSliceStringX(yyv802, false, d)
}
}
case "user":
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
case "secretFile":
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
case "secretRef":
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
default:
z.DecStructFieldNotFound(-1, yys801)
} // end switch yys801
} // end for yyj801
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 yyj808 int
var yyb808 bool
var yyhl808 bool = l >= 0
yyj808++
if yyhl808 {
yyb808 = yyj808 > l
} else {
yyb808 = r.CheckBreak()
}
if yyb808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Monitors = nil
} else {
yyv809 := &x.Monitors
yym810 := z.DecBinary()
_ = yym810
if false {
} else {
z.F.DecSliceStringX(yyv809, false, d)
}
}
yyj808++
if yyhl808 {
yyb808 = yyj808 > l
} else {
yyb808 = r.CheckBreak()
}
if yyb808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj808++
if yyhl808 {
yyb808 = yyj808 > l
} else {
yyb808 = r.CheckBreak()
}
if yyb808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SecretFile = ""
} else {
x.SecretFile = string(r.DecodeString())
}
yyj808++
if yyhl808 {
yyb808 = yyj808 > l
} else {
yyb808 = r.CheckBreak()
}
if yyb808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecretRef != nil {
x.SecretRef = nil
}
} else {
if x.SecretRef == nil {
x.SecretRef = new(LocalObjectReference)
}
x.SecretRef.CodecDecodeSelf(d)
}
yyj808++
if yyhl808 {
yyb808 = yyj808 > l
} else {
yyb808 = r.CheckBreak()
}
if yyb808 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
for {
yyj808++
if yyhl808 {
yyb808 = yyj808 > l
} else {
yyb808 = r.CheckBreak()
}
if yyb808 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj808-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *FlockerVolumeSource) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym815 := z.EncBinary()
_ = yym815
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep816 := !z.EncBinary()
yy2arr816 := z.EncBasicHandle().StructToArray
var yyq816 [1]bool
_, _, _ = yysep816, yyq816, yy2arr816
const yyr816 bool = false
var yynn816 int
if yyr816 || yy2arr816 {
r.EncodeArrayStart(1)
} else {
yynn816 = 1
for _, b := range yyq816 {
if b {
yynn816++
}
}
r.EncodeMapStart(yynn816)
yynn816 = 0
}
if yyr816 || yy2arr816 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym818 := z.EncBinary()
_ = yym818
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)
yym819 := z.EncBinary()
_ = yym819
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.DatasetName))
}
}
if yyr816 || yy2arr816 {
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
yym820 := z.DecBinary()
_ = yym820
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct821 := r.ContainerType()
if yyct821 == codecSelferValueTypeMap1234 {
yyl821 := r.ReadMapStart()
if yyl821 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl821, d)
}
} else if yyct821 == codecSelferValueTypeArray1234 {
yyl821 := r.ReadArrayStart()
if yyl821 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl821, 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 yys822Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys822Slc
var yyhl822 bool = l >= 0
for yyj822 := 0; ; yyj822++ {
if yyhl822 {
if yyj822 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys822Slc = r.DecodeBytes(yys822Slc, true, true)
yys822 := string(yys822Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys822 {
case "datasetName":
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys822)
} // end switch yys822
} // end for yyj822
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 yyj824 int
var yyb824 bool
var yyhl824 bool = l >= 0
yyj824++
if yyhl824 {
yyb824 = yyj824 > l
} else {
yyb824 = r.CheckBreak()
}
if yyb824 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DatasetName = ""
} else {
x.DatasetName = string(r.DecodeString())
}
for {
yyj824++
if yyhl824 {
yyb824 = yyj824 > l
} else {
yyb824 = r.CheckBreak()
}
if yyb824 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj824-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 {
yym826 := z.EncBinary()
_ = yym826
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep827 := !z.EncBinary()
yy2arr827 := z.EncBasicHandle().StructToArray
var yyq827 [1]bool
_, _, _ = yysep827, yyq827, yy2arr827
const yyr827 bool = false
yyq827[0] = len(x.Items) != 0
var yynn827 int
if yyr827 || yy2arr827 {
r.EncodeArrayStart(1)
} else {
yynn827 = 0
for _, b := range yyq827 {
if b {
yynn827++
}
}
r.EncodeMapStart(yynn827)
yynn827 = 0
}
if yyr827 || yy2arr827 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq827[0] {
if x.Items == nil {
r.EncodeNil()
} else {
yym829 := z.EncBinary()
_ = yym829
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq827[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym830 := z.EncBinary()
_ = yym830
if false {
} else {
h.encSliceDownwardAPIVolumeFile(([]DownwardAPIVolumeFile)(x.Items), e)
}
}
}
}
if yyr827 || yy2arr827 {
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
yym831 := z.DecBinary()
_ = yym831
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct832 := r.ContainerType()
if yyct832 == codecSelferValueTypeMap1234 {
yyl832 := r.ReadMapStart()
if yyl832 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl832, d)
}
} else if yyct832 == codecSelferValueTypeArray1234 {
yyl832 := r.ReadArrayStart()
if yyl832 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl832, 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 yys833Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys833Slc
var yyhl833 bool = l >= 0
for yyj833 := 0; ; yyj833++ {
if yyhl833 {
if yyj833 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys833Slc = r.DecodeBytes(yys833Slc, true, true)
yys833 := string(yys833Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys833 {
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv834 := &x.Items
yym835 := z.DecBinary()
_ = yym835
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv834), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys833)
} // end switch yys833
} // end for yyj833
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 yyj836 int
var yyb836 bool
var yyhl836 bool = l >= 0
yyj836++
if yyhl836 {
yyb836 = yyj836 > l
} else {
yyb836 = r.CheckBreak()
}
if yyb836 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv837 := &x.Items
yym838 := z.DecBinary()
_ = yym838
if false {
} else {
h.decSliceDownwardAPIVolumeFile((*[]DownwardAPIVolumeFile)(yyv837), d)
}
}
for {
yyj836++
if yyhl836 {
yyb836 = yyj836 > l
} else {
yyb836 = r.CheckBreak()
}
if yyb836 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj836-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 {
yym839 := z.EncBinary()
_ = yym839
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep840 := !z.EncBinary()
yy2arr840 := z.EncBasicHandle().StructToArray
var yyq840 [2]bool
_, _, _ = yysep840, yyq840, yy2arr840
const yyr840 bool = false
var yynn840 int
if yyr840 || yy2arr840 {
r.EncodeArrayStart(2)
} else {
yynn840 = 2
for _, b := range yyq840 {
if b {
yynn840++
}
}
r.EncodeMapStart(yynn840)
yynn840 = 0
}
if yyr840 || yy2arr840 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym842 := z.EncBinary()
_ = yym842
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)
yym843 := z.EncBinary()
_ = yym843
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr840 || yy2arr840 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy845 := &x.FieldRef
yy845.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldRef"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy846 := &x.FieldRef
yy846.CodecEncodeSelf(e)
}
if yyr840 || yy2arr840 {
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
yym847 := z.DecBinary()
_ = yym847
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct848 := r.ContainerType()
if yyct848 == codecSelferValueTypeMap1234 {
yyl848 := r.ReadMapStart()
if yyl848 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl848, d)
}
} else if yyct848 == codecSelferValueTypeArray1234 {
yyl848 := r.ReadArrayStart()
if yyl848 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl848, 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 yys849Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys849Slc
var yyhl849 bool = l >= 0
for yyj849 := 0; ; yyj849++ {
if yyhl849 {
if yyj849 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys849Slc = r.DecodeBytes(yys849Slc, true, true)
yys849 := string(yys849Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys849 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "fieldRef":
if r.TryDecodeAsNil() {
x.FieldRef = ObjectFieldSelector{}
} else {
yyv851 := &x.FieldRef
yyv851.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys849)
} // end switch yys849
} // end for yyj849
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 yyj852 int
var yyb852 bool
var yyhl852 bool = l >= 0
yyj852++
if yyhl852 {
yyb852 = yyj852 > l
} else {
yyb852 = r.CheckBreak()
}
if yyb852 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj852++
if yyhl852 {
yyb852 = yyj852 > l
} else {
yyb852 = r.CheckBreak()
}
if yyb852 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldRef = ObjectFieldSelector{}
} else {
yyv854 := &x.FieldRef
yyv854.CodecDecodeSelf(d)
}
for {
yyj852++
if yyhl852 {
yyb852 = yyj852 > l
} else {
yyb852 = r.CheckBreak()
}
if yyb852 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj852-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 {
yym855 := z.EncBinary()
_ = yym855
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep856 := !z.EncBinary()
yy2arr856 := z.EncBasicHandle().StructToArray
var yyq856 [5]bool
_, _, _ = yysep856, yyq856, yy2arr856
const yyr856 bool = false
yyq856[0] = x.Name != ""
yyq856[1] = x.HostPort != 0
yyq856[3] = x.Protocol != ""
yyq856[4] = x.HostIP != ""
var yynn856 int
if yyr856 || yy2arr856 {
r.EncodeArrayStart(5)
} else {
yynn856 = 1
for _, b := range yyq856 {
if b {
yynn856++
}
}
r.EncodeMapStart(yynn856)
yynn856 = 0
}
if yyr856 || yy2arr856 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq856[0] {
yym858 := z.EncBinary()
_ = yym858
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq856[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym859 := z.EncBinary()
_ = yym859
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr856 || yy2arr856 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq856[1] {
yym861 := z.EncBinary()
_ = yym861
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq856[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym862 := z.EncBinary()
_ = yym862
if false {
} else {
r.EncodeInt(int64(x.HostPort))
}
}
}
if yyr856 || yy2arr856 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym864 := z.EncBinary()
_ = yym864
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym865 := z.EncBinary()
_ = yym865
if false {
} else {
r.EncodeInt(int64(x.ContainerPort))
}
}
if yyr856 || yy2arr856 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq856[3] {
x.Protocol.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq856[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("protocol"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Protocol.CodecEncodeSelf(e)
}
}
if yyr856 || yy2arr856 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq856[4] {
yym868 := z.EncBinary()
_ = yym868
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq856[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym869 := z.EncBinary()
_ = yym869
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr856 || yy2arr856 {
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
yym870 := z.DecBinary()
_ = yym870
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct871 := r.ContainerType()
if yyct871 == codecSelferValueTypeMap1234 {
yyl871 := r.ReadMapStart()
if yyl871 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl871, d)
}
} else if yyct871 == codecSelferValueTypeArray1234 {
yyl871 := r.ReadArrayStart()
if yyl871 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl871, 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 yys872Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys872Slc
var yyhl872 bool = l >= 0
for yyj872 := 0; ; yyj872++ {
if yyhl872 {
if yyj872 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys872Slc = r.DecodeBytes(yys872Slc, true, true)
yys872 := string(yys872Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys872 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "hostPort":
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
}
case "containerPort":
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "hostIP":
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys872)
} // end switch yys872
} // end for yyj872
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 yyj878 int
var yyb878 bool
var yyhl878 bool = l >= 0
yyj878++
if yyhl878 {
yyb878 = yyj878 > l
} else {
yyb878 = r.CheckBreak()
}
if yyb878 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj878++
if yyhl878 {
yyb878 = yyj878 > l
} else {
yyb878 = r.CheckBreak()
}
if yyb878 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPort = 0
} else {
x.HostPort = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj878++
if yyhl878 {
yyb878 = yyj878 > l
} else {
yyb878 = r.CheckBreak()
}
if yyb878 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerPort = 0
} else {
x.ContainerPort = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj878++
if yyhl878 {
yyb878 = yyj878 > l
} else {
yyb878 = r.CheckBreak()
}
if yyb878 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj878++
if yyhl878 {
yyb878 = yyj878 > l
} else {
yyb878 = r.CheckBreak()
}
if yyb878 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
for {
yyj878++
if yyhl878 {
yyb878 = yyj878 > l
} else {
yyb878 = r.CheckBreak()
}
if yyb878 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj878-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 {
yym884 := z.EncBinary()
_ = yym884
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep885 := !z.EncBinary()
yy2arr885 := z.EncBasicHandle().StructToArray
var yyq885 [3]bool
_, _, _ = yysep885, yyq885, yy2arr885
const yyr885 bool = false
yyq885[1] = x.ReadOnly != false
var yynn885 int
if yyr885 || yy2arr885 {
r.EncodeArrayStart(3)
} else {
yynn885 = 2
for _, b := range yyq885 {
if b {
yynn885++
}
}
r.EncodeMapStart(yynn885)
yynn885 = 0
}
if yyr885 || yy2arr885 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym887 := z.EncBinary()
_ = yym887
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)
yym888 := z.EncBinary()
_ = yym888
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr885 || yy2arr885 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq885[1] {
yym890 := z.EncBinary()
_ = yym890
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq885[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("readOnly"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym891 := z.EncBinary()
_ = yym891
if false {
} else {
r.EncodeBool(bool(x.ReadOnly))
}
}
}
if yyr885 || yy2arr885 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym893 := z.EncBinary()
_ = yym893
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)
yym894 := z.EncBinary()
_ = yym894
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MountPath))
}
}
if yyr885 || yy2arr885 {
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
yym895 := z.DecBinary()
_ = yym895
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct896 := r.ContainerType()
if yyct896 == codecSelferValueTypeMap1234 {
yyl896 := r.ReadMapStart()
if yyl896 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl896, d)
}
} else if yyct896 == codecSelferValueTypeArray1234 {
yyl896 := r.ReadArrayStart()
if yyl896 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl896, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *VolumeMount) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys897Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys897Slc
var yyhl897 bool = l >= 0
for yyj897 := 0; ; yyj897++ {
if yyhl897 {
if yyj897 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys897Slc = r.DecodeBytes(yys897Slc, true, true)
yys897 := string(yys897Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys897 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "readOnly":
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
case "mountPath":
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys897)
} // end switch yys897
} // end for yyj897
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 yyj901 int
var yyb901 bool
var yyhl901 bool = l >= 0
yyj901++
if yyhl901 {
yyb901 = yyj901 > l
} else {
yyb901 = r.CheckBreak()
}
if yyb901 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj901++
if yyhl901 {
yyb901 = yyj901 > l
} else {
yyb901 = r.CheckBreak()
}
if yyb901 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ReadOnly = false
} else {
x.ReadOnly = bool(r.DecodeBool())
}
yyj901++
if yyhl901 {
yyb901 = yyj901 > l
} else {
yyb901 = r.CheckBreak()
}
if yyb901 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MountPath = ""
} else {
x.MountPath = string(r.DecodeString())
}
for {
yyj901++
if yyhl901 {
yyb901 = yyj901 > l
} else {
yyb901 = r.CheckBreak()
}
if yyb901 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj901-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 {
yym905 := z.EncBinary()
_ = yym905
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep906 := !z.EncBinary()
yy2arr906 := z.EncBasicHandle().StructToArray
var yyq906 [3]bool
_, _, _ = yysep906, yyq906, yy2arr906
const yyr906 bool = false
yyq906[1] = x.Value != ""
yyq906[2] = x.ValueFrom != nil
var yynn906 int
if yyr906 || yy2arr906 {
r.EncodeArrayStart(3)
} else {
yynn906 = 1
for _, b := range yyq906 {
if b {
yynn906++
}
}
r.EncodeMapStart(yynn906)
yynn906 = 0
}
if yyr906 || yy2arr906 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym908 := z.EncBinary()
_ = yym908
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)
yym909 := z.EncBinary()
_ = yym909
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr906 || yy2arr906 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq906[1] {
yym911 := z.EncBinary()
_ = yym911
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq906[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("value"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym912 := z.EncBinary()
_ = yym912
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Value))
}
}
}
if yyr906 || yy2arr906 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq906[2] {
if x.ValueFrom == nil {
r.EncodeNil()
} else {
x.ValueFrom.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq906[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 yyr906 || yy2arr906 {
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
yym914 := z.DecBinary()
_ = yym914
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct915 := r.ContainerType()
if yyct915 == codecSelferValueTypeMap1234 {
yyl915 := r.ReadMapStart()
if yyl915 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl915, d)
}
} else if yyct915 == codecSelferValueTypeArray1234 {
yyl915 := r.ReadArrayStart()
if yyl915 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl915, 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 yys916Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys916Slc
var yyhl916 bool = l >= 0
for yyj916 := 0; ; yyj916++ {
if yyhl916 {
if yyj916 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys916Slc = r.DecodeBytes(yys916Slc, true, true)
yys916 := string(yys916Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys916 {
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, yys916)
} // end switch yys916
} // end for yyj916
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 yyj920 int
var yyb920 bool
var yyhl920 bool = l >= 0
yyj920++
if yyhl920 {
yyb920 = yyj920 > l
} else {
yyb920 = r.CheckBreak()
}
if yyb920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj920++
if yyhl920 {
yyb920 = yyj920 > l
} else {
yyb920 = r.CheckBreak()
}
if yyb920 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Value = ""
} else {
x.Value = string(r.DecodeString())
}
yyj920++
if yyhl920 {
yyb920 = yyj920 > l
} else {
yyb920 = r.CheckBreak()
}
if yyb920 {
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 {
yyj920++
if yyhl920 {
yyb920 = yyj920 > l
} else {
yyb920 = r.CheckBreak()
}
if yyb920 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj920-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 {
yym924 := z.EncBinary()
_ = yym924
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep925 := !z.EncBinary()
yy2arr925 := z.EncBasicHandle().StructToArray
var yyq925 [1]bool
_, _, _ = yysep925, yyq925, yy2arr925
const yyr925 bool = false
var yynn925 int
if yyr925 || yy2arr925 {
r.EncodeArrayStart(1)
} else {
yynn925 = 1
for _, b := range yyq925 {
if b {
yynn925++
}
}
r.EncodeMapStart(yynn925)
yynn925 = 0
}
if yyr925 || yy2arr925 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldRef == nil {
r.EncodeNil()
} else {
x.FieldRef.CodecEncodeSelf(e)
}
} else {
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 yyr925 || yy2arr925 {
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
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 *EnvVarSource) 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 "fieldRef":
if r.TryDecodeAsNil() {
if x.FieldRef != nil {
x.FieldRef = nil
}
} else {
if x.FieldRef == nil {
x.FieldRef = new(ObjectFieldSelector)
}
x.FieldRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys929)
} // end switch yys929
} // end for yyj929
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 yyj931 int
var yyb931 bool
var yyhl931 bool = l >= 0
yyj931++
if yyhl931 {
yyb931 = yyj931 > l
} else {
yyb931 = r.CheckBreak()
}
if yyb931 {
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)
}
for {
yyj931++
if yyhl931 {
yyb931 = yyj931 > l
} else {
yyb931 = r.CheckBreak()
}
if yyb931 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj931-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 {
yym933 := z.EncBinary()
_ = yym933
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep934 := !z.EncBinary()
yy2arr934 := z.EncBasicHandle().StructToArray
var yyq934 [2]bool
_, _, _ = yysep934, yyq934, yy2arr934
const yyr934 bool = false
var yynn934 int
if yyr934 || yy2arr934 {
r.EncodeArrayStart(2)
} else {
yynn934 = 2
for _, b := range yyq934 {
if b {
yynn934++
}
}
r.EncodeMapStart(yynn934)
yynn934 = 0
}
if yyr934 || yy2arr934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym936 := z.EncBinary()
_ = yym936
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym937 := z.EncBinary()
_ = yym937
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
if yyr934 || yy2arr934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym939 := z.EncBinary()
_ = yym939
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)
yym940 := z.EncBinary()
_ = yym940
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
if yyr934 || yy2arr934 {
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
yym941 := z.DecBinary()
_ = yym941
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct942 := r.ContainerType()
if yyct942 == codecSelferValueTypeMap1234 {
yyl942 := r.ReadMapStart()
if yyl942 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl942, d)
}
} else if yyct942 == codecSelferValueTypeArray1234 {
yyl942 := r.ReadArrayStart()
if yyl942 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl942, 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 yys943Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys943Slc
var yyhl943 bool = l >= 0
for yyj943 := 0; ; yyj943++ {
if yyhl943 {
if yyj943 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys943Slc = r.DecodeBytes(yys943Slc, true, true)
yys943 := string(yys943Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys943 {
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, yys943)
} // end switch yys943
} // end for yyj943
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 yyj946 int
var yyb946 bool
var yyhl946 bool = l >= 0
yyj946++
if yyhl946 {
yyb946 = yyj946 > l
} else {
yyb946 = r.CheckBreak()
}
if yyb946 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj946++
if yyhl946 {
yyb946 = yyj946 > l
} else {
yyb946 = r.CheckBreak()
}
if yyb946 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj946++
if yyhl946 {
yyb946 = yyj946 > l
} else {
yyb946 = r.CheckBreak()
}
if yyb946 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj946-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 {
yym949 := z.EncBinary()
_ = yym949
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep950 := !z.EncBinary()
yy2arr950 := z.EncBasicHandle().StructToArray
var yyq950 [4]bool
_, _, _ = yysep950, yyq950, yy2arr950
const yyr950 bool = false
yyq950[0] = x.Path != ""
yyq950[1] = true
yyq950[2] = x.Host != ""
yyq950[3] = x.Scheme != ""
var yynn950 int
if yyr950 || yy2arr950 {
r.EncodeArrayStart(4)
} else {
yynn950 = 0
for _, b := range yyq950 {
if b {
yynn950++
}
}
r.EncodeMapStart(yynn950)
yynn950 = 0
}
if yyr950 || yy2arr950 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq950[0] {
yym952 := z.EncBinary()
_ = yym952
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq950[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("path"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym953 := z.EncBinary()
_ = yym953
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
}
if yyr950 || yy2arr950 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq950[1] {
yy955 := &x.Port
yym956 := z.EncBinary()
_ = yym956
if false {
} else if z.HasExtensions() && z.EncExt(yy955) {
} else if !yym956 && z.IsJSONHandle() {
z.EncJSONMarshal(yy955)
} else {
z.EncFallback(yy955)
}
} else {
r.EncodeNil()
}
} else {
if yyq950[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy957 := &x.Port
yym958 := z.EncBinary()
_ = yym958
if false {
} else if z.HasExtensions() && z.EncExt(yy957) {
} else if !yym958 && z.IsJSONHandle() {
z.EncJSONMarshal(yy957)
} else {
z.EncFallback(yy957)
}
}
}
if yyr950 || yy2arr950 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq950[2] {
yym960 := z.EncBinary()
_ = yym960
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq950[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym961 := z.EncBinary()
_ = yym961
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr950 || yy2arr950 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq950[3] {
x.Scheme.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq950[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("scheme"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Scheme.CodecEncodeSelf(e)
}
}
if yyr950 || yy2arr950 {
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
yym963 := z.DecBinary()
_ = yym963
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct964 := r.ContainerType()
if yyct964 == codecSelferValueTypeMap1234 {
yyl964 := r.ReadMapStart()
if yyl964 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl964, d)
}
} else if yyct964 == codecSelferValueTypeArray1234 {
yyl964 := r.ReadArrayStart()
if yyl964 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl964, 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 yys965Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys965Slc
var yyhl965 bool = l >= 0
for yyj965 := 0; ; yyj965++ {
if yyhl965 {
if yyj965 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys965Slc = r.DecodeBytes(yys965Slc, true, true)
yys965 := string(yys965Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys965 {
case "path":
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv967 := &x.Port
yym968 := z.DecBinary()
_ = yym968
if false {
} else if z.HasExtensions() && z.DecExt(yyv967) {
} else if !yym968 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv967)
} else {
z.DecFallback(yyv967, false)
}
}
case "host":
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
case "scheme":
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys965)
} // end switch yys965
} // end for yyj965
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 yyj971 int
var yyb971 bool
var yyhl971 bool = l >= 0
yyj971++
if yyhl971 {
yyb971 = yyj971 > l
} else {
yyb971 = r.CheckBreak()
}
if yyb971 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
yyj971++
if yyhl971 {
yyb971 = yyj971 > l
} else {
yyb971 = r.CheckBreak()
}
if yyb971 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv973 := &x.Port
yym974 := z.DecBinary()
_ = yym974
if false {
} else if z.HasExtensions() && z.DecExt(yyv973) {
} else if !yym974 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv973)
} else {
z.DecFallback(yyv973, false)
}
}
yyj971++
if yyhl971 {
yyb971 = yyj971 > l
} else {
yyb971 = r.CheckBreak()
}
if yyb971 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
yyj971++
if yyhl971 {
yyb971 = yyj971 > l
} else {
yyb971 = r.CheckBreak()
}
if yyb971 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Scheme = ""
} else {
x.Scheme = URIScheme(r.DecodeString())
}
for {
yyj971++
if yyhl971 {
yyb971 = yyj971 > l
} else {
yyb971 = r.CheckBreak()
}
if yyb971 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj971-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x URIScheme) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym977 := z.EncBinary()
_ = yym977
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
yym978 := z.DecBinary()
_ = yym978
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 {
yym979 := z.EncBinary()
_ = yym979
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep980 := !z.EncBinary()
yy2arr980 := z.EncBasicHandle().StructToArray
var yyq980 [1]bool
_, _, _ = yysep980, yyq980, yy2arr980
const yyr980 bool = false
yyq980[0] = true
var yynn980 int
if yyr980 || yy2arr980 {
r.EncodeArrayStart(1)
} else {
yynn980 = 0
for _, b := range yyq980 {
if b {
yynn980++
}
}
r.EncodeMapStart(yynn980)
yynn980 = 0
}
if yyr980 || yy2arr980 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq980[0] {
yy982 := &x.Port
yym983 := z.EncBinary()
_ = yym983
if false {
} else if z.HasExtensions() && z.EncExt(yy982) {
} else if !yym983 && z.IsJSONHandle() {
z.EncJSONMarshal(yy982)
} else {
z.EncFallback(yy982)
}
} else {
r.EncodeNil()
}
} else {
if yyq980[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy984 := &x.Port
yym985 := z.EncBinary()
_ = yym985
if false {
} else if z.HasExtensions() && z.EncExt(yy984) {
} else if !yym985 && z.IsJSONHandle() {
z.EncJSONMarshal(yy984)
} else {
z.EncFallback(yy984)
}
}
}
if yyr980 || yy2arr980 {
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
yym986 := z.DecBinary()
_ = yym986
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct987 := r.ContainerType()
if yyct987 == codecSelferValueTypeMap1234 {
yyl987 := r.ReadMapStart()
if yyl987 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl987, d)
}
} else if yyct987 == codecSelferValueTypeArray1234 {
yyl987 := r.ReadArrayStart()
if yyl987 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl987, 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 yys988Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys988Slc
var yyhl988 bool = l >= 0
for yyj988 := 0; ; yyj988++ {
if yyhl988 {
if yyj988 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys988Slc = r.DecodeBytes(yys988Slc, true, true)
yys988 := string(yys988Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys988 {
case "port":
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv989 := &x.Port
yym990 := z.DecBinary()
_ = yym990
if false {
} else if z.HasExtensions() && z.DecExt(yyv989) {
} else if !yym990 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv989)
} else {
z.DecFallback(yyv989, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys988)
} // end switch yys988
} // end for yyj988
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 yyj991 int
var yyb991 bool
var yyhl991 bool = l >= 0
yyj991++
if yyhl991 {
yyb991 = yyj991 > l
} else {
yyb991 = r.CheckBreak()
}
if yyb991 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = pkg5_intstr.IntOrString{}
} else {
yyv992 := &x.Port
yym993 := z.DecBinary()
_ = yym993
if false {
} else if z.HasExtensions() && z.DecExt(yyv992) {
} else if !yym993 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv992)
} else {
z.DecFallback(yyv992, false)
}
}
for {
yyj991++
if yyhl991 {
yyb991 = yyj991 > l
} else {
yyb991 = r.CheckBreak()
}
if yyb991 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj991-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 {
yym994 := z.EncBinary()
_ = yym994
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep995 := !z.EncBinary()
yy2arr995 := z.EncBasicHandle().StructToArray
var yyq995 [1]bool
_, _, _ = yysep995, yyq995, yy2arr995
const yyr995 bool = false
yyq995[0] = len(x.Command) != 0
var yynn995 int
if yyr995 || yy2arr995 {
r.EncodeArrayStart(1)
} else {
yynn995 = 0
for _, b := range yyq995 {
if b {
yynn995++
}
}
r.EncodeMapStart(yynn995)
yynn995 = 0
}
if yyr995 || yy2arr995 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq995[0] {
if x.Command == nil {
r.EncodeNil()
} else {
yym997 := z.EncBinary()
_ = yym997
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq995[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym998 := z.EncBinary()
_ = yym998
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr995 || yy2arr995 {
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
yym999 := z.DecBinary()
_ = yym999
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1000 := r.ContainerType()
if yyct1000 == codecSelferValueTypeMap1234 {
yyl1000 := r.ReadMapStart()
if yyl1000 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1000, d)
}
} else if yyct1000 == codecSelferValueTypeArray1234 {
yyl1000 := r.ReadArrayStart()
if yyl1000 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1000, 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 yys1001Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1001Slc
var yyhl1001 bool = l >= 0
for yyj1001 := 0; ; yyj1001++ {
if yyhl1001 {
if yyj1001 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1001Slc = r.DecodeBytes(yys1001Slc, true, true)
yys1001 := string(yys1001Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1001 {
case "command":
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1002 := &x.Command
yym1003 := z.DecBinary()
_ = yym1003
if false {
} else {
z.F.DecSliceStringX(yyv1002, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1001)
} // end switch yys1001
} // end for yyj1001
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 yyj1004 int
var yyb1004 bool
var yyhl1004 bool = l >= 0
yyj1004++
if yyhl1004 {
yyb1004 = yyj1004 > l
} else {
yyb1004 = r.CheckBreak()
}
if yyb1004 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1005 := &x.Command
yym1006 := z.DecBinary()
_ = yym1006
if false {
} else {
z.F.DecSliceStringX(yyv1005, false, d)
}
}
for {
yyj1004++
if yyhl1004 {
yyb1004 = yyj1004 > l
} else {
yyb1004 = r.CheckBreak()
}
if yyb1004 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1004-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 {
yym1007 := z.EncBinary()
_ = yym1007
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1008 := !z.EncBinary()
yy2arr1008 := z.EncBasicHandle().StructToArray
var yyq1008 [8]bool
_, _, _ = yysep1008, yyq1008, yy2arr1008
const yyr1008 bool = false
yyq1008[0] = x.Handler.Exec != nil && x.Exec != nil
yyq1008[1] = x.Handler.HTTPGet != nil && x.HTTPGet != nil
yyq1008[2] = x.Handler.TCPSocket != nil && x.TCPSocket != nil
yyq1008[3] = x.InitialDelaySeconds != 0
yyq1008[4] = x.TimeoutSeconds != 0
yyq1008[5] = x.PeriodSeconds != 0
yyq1008[6] = x.SuccessThreshold != 0
yyq1008[7] = x.FailureThreshold != 0
var yynn1008 int
if yyr1008 || yy2arr1008 {
r.EncodeArrayStart(8)
} else {
yynn1008 = 0
for _, b := range yyq1008 {
if b {
yynn1008++
}
}
r.EncodeMapStart(yynn1008)
yynn1008 = 0
}
var yyn1009 bool
if x.Handler.Exec == nil {
yyn1009 = true
goto LABEL1009
}
LABEL1009:
if yyr1008 || yy2arr1008 {
if yyn1009 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1008[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1009 {
r.EncodeNil()
} else {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
}
}
}
var yyn1010 bool
if x.Handler.HTTPGet == nil {
yyn1010 = true
goto LABEL1010
}
LABEL1010:
if yyr1008 || yy2arr1008 {
if yyn1010 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1008[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("httpGet"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1010 {
r.EncodeNil()
} else {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
}
}
}
var yyn1011 bool
if x.Handler.TCPSocket == nil {
yyn1011 = true
goto LABEL1011
}
LABEL1011:
if yyr1008 || yy2arr1008 {
if yyn1011 {
r.EncodeNil()
} else {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
}
} else {
if yyq1008[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tcpSocket"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyn1011 {
r.EncodeNil()
} else {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
}
}
}
if yyr1008 || yy2arr1008 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[3] {
yym1013 := z.EncBinary()
_ = yym1013
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1008[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("initialDelaySeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1014 := z.EncBinary()
_ = yym1014
if false {
} else {
r.EncodeInt(int64(x.InitialDelaySeconds))
}
}
}
if yyr1008 || yy2arr1008 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[4] {
yym1016 := z.EncBinary()
_ = yym1016
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1008[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("timeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1017 := z.EncBinary()
_ = yym1017
if false {
} else {
r.EncodeInt(int64(x.TimeoutSeconds))
}
}
}
if yyr1008 || yy2arr1008 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[5] {
yym1019 := z.EncBinary()
_ = yym1019
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1008[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("periodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1020 := z.EncBinary()
_ = yym1020
if false {
} else {
r.EncodeInt(int64(x.PeriodSeconds))
}
}
}
if yyr1008 || yy2arr1008 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[6] {
yym1022 := z.EncBinary()
_ = yym1022
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1008[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("successThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1023 := z.EncBinary()
_ = yym1023
if false {
} else {
r.EncodeInt(int64(x.SuccessThreshold))
}
}
}
if yyr1008 || yy2arr1008 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1008[7] {
yym1025 := z.EncBinary()
_ = yym1025
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1008[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("failureThreshold"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1026 := z.EncBinary()
_ = yym1026
if false {
} else {
r.EncodeInt(int64(x.FailureThreshold))
}
}
}
if yyr1008 || yy2arr1008 {
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
yym1027 := z.DecBinary()
_ = yym1027
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1028 := r.ContainerType()
if yyct1028 == codecSelferValueTypeMap1234 {
yyl1028 := r.ReadMapStart()
if yyl1028 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1028, d)
}
} else if yyct1028 == codecSelferValueTypeArray1234 {
yyl1028 := r.ReadArrayStart()
if yyl1028 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1028, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *Probe) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1029Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1029Slc
var yyhl1029 bool = l >= 0
for yyj1029 := 0; ; yyj1029++ {
if yyhl1029 {
if yyj1029 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1029Slc = r.DecodeBytes(yys1029Slc, true, true)
yys1029 := string(yys1029Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1029 {
case "exec":
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
if r.TryDecodeAsNil() {
if x.Exec != nil {
x.Exec = nil
}
} else {
if x.Exec == nil {
x.Exec = new(ExecAction)
}
x.Exec.CodecDecodeSelf(d)
}
case "httpGet":
if x.Handler.HTTPGet == nil {
x.Handler.HTTPGet = new(HTTPGetAction)
}
if r.TryDecodeAsNil() {
if x.HTTPGet != nil {
x.HTTPGet = nil
}
} else {
if x.HTTPGet == nil {
x.HTTPGet = new(HTTPGetAction)
}
x.HTTPGet.CodecDecodeSelf(d)
}
case "tcpSocket":
if x.Handler.TCPSocket == nil {
x.Handler.TCPSocket = new(TCPSocketAction)
}
if r.TryDecodeAsNil() {
if x.TCPSocket != nil {
x.TCPSocket = nil
}
} else {
if x.TCPSocket == nil {
x.TCPSocket = new(TCPSocketAction)
}
x.TCPSocket.CodecDecodeSelf(d)
}
case "initialDelaySeconds":
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
case "timeoutSeconds":
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
case "periodSeconds":
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
case "successThreshold":
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
case "failureThreshold":
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys1029)
} // end switch yys1029
} // end for yyj1029
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 yyj1038 int
var yyb1038 bool
var yyhl1038 bool = l >= 0
if x.Handler.Exec == nil {
x.Handler.Exec = new(ExecAction)
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
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)
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
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)
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
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)
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InitialDelaySeconds = 0
} else {
x.InitialDelaySeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TimeoutSeconds = 0
} else {
x.TimeoutSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PeriodSeconds = 0
} else {
x.PeriodSeconds = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SuccessThreshold = 0
} else {
x.SuccessThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FailureThreshold = 0
} else {
x.FailureThreshold = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj1038++
if yyhl1038 {
yyb1038 = yyj1038 > l
} else {
yyb1038 = r.CheckBreak()
}
if yyb1038 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1038-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PullPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1047 := z.EncBinary()
_ = yym1047
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
yym1048 := z.DecBinary()
_ = yym1048
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
yym1049 := z.EncBinary()
_ = yym1049
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
yym1050 := z.DecBinary()
_ = yym1050
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 {
yym1051 := z.EncBinary()
_ = yym1051
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1052 := !z.EncBinary()
yy2arr1052 := z.EncBasicHandle().StructToArray
var yyq1052 [2]bool
_, _, _ = yysep1052, yyq1052, yy2arr1052
const yyr1052 bool = false
yyq1052[0] = len(x.Add) != 0
yyq1052[1] = len(x.Drop) != 0
var yynn1052 int
if yyr1052 || yy2arr1052 {
r.EncodeArrayStart(2)
} else {
yynn1052 = 0
for _, b := range yyq1052 {
if b {
yynn1052++
}
}
r.EncodeMapStart(yynn1052)
yynn1052 = 0
}
if yyr1052 || yy2arr1052 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1052[0] {
if x.Add == nil {
r.EncodeNil()
} else {
yym1054 := z.EncBinary()
_ = yym1054
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1052[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("add"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Add == nil {
r.EncodeNil()
} else {
yym1055 := z.EncBinary()
_ = yym1055
if false {
} else {
h.encSliceCapability(([]Capability)(x.Add), e)
}
}
}
}
if yyr1052 || yy2arr1052 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1052[1] {
if x.Drop == nil {
r.EncodeNil()
} else {
yym1057 := z.EncBinary()
_ = yym1057
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1052[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("drop"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Drop == nil {
r.EncodeNil()
} else {
yym1058 := z.EncBinary()
_ = yym1058
if false {
} else {
h.encSliceCapability(([]Capability)(x.Drop), e)
}
}
}
}
if yyr1052 || yy2arr1052 {
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
yym1059 := z.DecBinary()
_ = yym1059
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1060 := r.ContainerType()
if yyct1060 == codecSelferValueTypeMap1234 {
yyl1060 := r.ReadMapStart()
if yyl1060 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1060, d)
}
} else if yyct1060 == codecSelferValueTypeArray1234 {
yyl1060 := r.ReadArrayStart()
if yyl1060 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1060, 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 yys1061Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1061Slc
var yyhl1061 bool = l >= 0
for yyj1061 := 0; ; yyj1061++ {
if yyhl1061 {
if yyj1061 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1061Slc = r.DecodeBytes(yys1061Slc, true, true)
yys1061 := string(yys1061Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1061 {
case "add":
if r.TryDecodeAsNil() {
x.Add = nil
} else {
yyv1062 := &x.Add
yym1063 := z.DecBinary()
_ = yym1063
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1062), d)
}
}
case "drop":
if r.TryDecodeAsNil() {
x.Drop = nil
} else {
yyv1064 := &x.Drop
yym1065 := z.DecBinary()
_ = yym1065
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1064), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1061)
} // end switch yys1061
} // end for yyj1061
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 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.Add = nil
} else {
yyv1067 := &x.Add
yym1068 := z.DecBinary()
_ = yym1068
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1067), d)
}
}
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.Drop = nil
} else {
yyv1069 := &x.Drop
yym1070 := z.DecBinary()
_ = yym1070
if false {
} else {
h.decSliceCapability((*[]Capability)(yyv1069), d)
}
}
for {
yyj1066++
if yyhl1066 {
yyb1066 = yyj1066 > l
} else {
yyb1066 = r.CheckBreak()
}
if yyb1066 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1066-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ResourceRequirements) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1071 := z.EncBinary()
_ = yym1071
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1072 := !z.EncBinary()
yy2arr1072 := z.EncBasicHandle().StructToArray
var yyq1072 [2]bool
_, _, _ = yysep1072, yyq1072, yy2arr1072
const yyr1072 bool = false
yyq1072[0] = len(x.Limits) != 0
yyq1072[1] = len(x.Requests) != 0
var yynn1072 int
if yyr1072 || yy2arr1072 {
r.EncodeArrayStart(2)
} else {
yynn1072 = 0
for _, b := range yyq1072 {
if b {
yynn1072++
}
}
r.EncodeMapStart(yynn1072)
yynn1072 = 0
}
if yyr1072 || yy2arr1072 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1072[0] {
if x.Limits == nil {
r.EncodeNil()
} else {
x.Limits.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1072[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 yyr1072 || yy2arr1072 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1072[1] {
if x.Requests == nil {
r.EncodeNil()
} else {
x.Requests.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1072[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 yyr1072 || yy2arr1072 {
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
yym1075 := z.DecBinary()
_ = yym1075
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1076 := r.ContainerType()
if yyct1076 == codecSelferValueTypeMap1234 {
yyl1076 := r.ReadMapStart()
if yyl1076 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1076, d)
}
} else if yyct1076 == codecSelferValueTypeArray1234 {
yyl1076 := r.ReadArrayStart()
if yyl1076 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1076, 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 yys1077Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1077Slc
var yyhl1077 bool = l >= 0
for yyj1077 := 0; ; yyj1077++ {
if yyhl1077 {
if yyj1077 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1077Slc = r.DecodeBytes(yys1077Slc, true, true)
yys1077 := string(yys1077Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1077 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1078 := &x.Limits
yyv1078.CodecDecodeSelf(d)
}
case "requests":
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1079 := &x.Requests
yyv1079.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1077)
} // end switch yys1077
} // end for yyj1077
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 yyj1080 int
var yyb1080 bool
var yyhl1080 bool = l >= 0
yyj1080++
if yyhl1080 {
yyb1080 = yyj1080 > l
} else {
yyb1080 = r.CheckBreak()
}
if yyb1080 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv1081 := &x.Limits
yyv1081.CodecDecodeSelf(d)
}
yyj1080++
if yyhl1080 {
yyb1080 = yyj1080 > l
} else {
yyb1080 = r.CheckBreak()
}
if yyb1080 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Requests = nil
} else {
yyv1082 := &x.Requests
yyv1082.CodecDecodeSelf(d)
}
for {
yyj1080++
if yyhl1080 {
yyb1080 = yyj1080 > l
} else {
yyb1080 = r.CheckBreak()
}
if yyb1080 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1080-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 {
yym1083 := z.EncBinary()
_ = yym1083
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1084 := !z.EncBinary()
yy2arr1084 := z.EncBasicHandle().StructToArray
var yyq1084 [18]bool
_, _, _ = yysep1084, yyq1084, yy2arr1084
const yyr1084 bool = false
yyq1084[2] = len(x.Command) != 0
yyq1084[3] = len(x.Args) != 0
yyq1084[4] = x.WorkingDir != ""
yyq1084[5] = len(x.Ports) != 0
yyq1084[6] = len(x.Env) != 0
yyq1084[7] = true
yyq1084[8] = len(x.VolumeMounts) != 0
yyq1084[9] = x.LivenessProbe != nil
yyq1084[10] = x.ReadinessProbe != nil
yyq1084[11] = x.Lifecycle != nil
yyq1084[12] = x.TerminationMessagePath != ""
yyq1084[14] = x.SecurityContext != nil
yyq1084[15] = x.Stdin != false
yyq1084[16] = x.StdinOnce != false
yyq1084[17] = x.TTY != false
var yynn1084 int
if yyr1084 || yy2arr1084 {
r.EncodeArrayStart(18)
} else {
yynn1084 = 3
for _, b := range yyq1084 {
if b {
yynn1084++
}
}
r.EncodeMapStart(yynn1084)
yynn1084 = 0
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1086 := z.EncBinary()
_ = yym1086
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)
yym1087 := z.EncBinary()
_ = yym1087
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1089 := z.EncBinary()
_ = yym1089
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)
yym1090 := z.EncBinary()
_ = yym1090
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[2] {
if x.Command == nil {
r.EncodeNil()
} else {
yym1092 := z.EncBinary()
_ = yym1092
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("command"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym1093 := z.EncBinary()
_ = yym1093
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[3] {
if x.Args == nil {
r.EncodeNil()
} else {
yym1095 := z.EncBinary()
_ = yym1095
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("args"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Args == nil {
r.EncodeNil()
} else {
yym1096 := z.EncBinary()
_ = yym1096
if false {
} else {
z.F.EncSliceStringV(x.Args, false, e)
}
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[4] {
yym1098 := z.EncBinary()
_ = yym1098
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1084[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("workingDir"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1099 := z.EncBinary()
_ = yym1099
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.WorkingDir))
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[5] {
if x.Ports == nil {
r.EncodeNil()
} else {
yym1101 := z.EncBinary()
_ = yym1101
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ports"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1102 := z.EncBinary()
_ = yym1102
if false {
} else {
h.encSliceContainerPort(([]ContainerPort)(x.Ports), e)
}
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[6] {
if x.Env == nil {
r.EncodeNil()
} else {
yym1104 := z.EncBinary()
_ = yym1104
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("env"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Env == nil {
r.EncodeNil()
} else {
yym1105 := z.EncBinary()
_ = yym1105
if false {
} else {
h.encSliceEnvVar(([]EnvVar)(x.Env), e)
}
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[7] {
yy1107 := &x.Resources
yy1107.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1084[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resources"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1108 := &x.Resources
yy1108.CodecEncodeSelf(e)
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[8] {
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1110 := z.EncBinary()
_ = yym1110
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("volumeMounts"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.VolumeMounts == nil {
r.EncodeNil()
} else {
yym1111 := z.EncBinary()
_ = yym1111
if false {
} else {
h.encSliceVolumeMount(([]VolumeMount)(x.VolumeMounts), e)
}
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[9] {
if x.LivenessProbe == nil {
r.EncodeNil()
} else {
x.LivenessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[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 yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[10] {
if x.ReadinessProbe == nil {
r.EncodeNil()
} else {
x.ReadinessProbe.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[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 yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[11] {
if x.Lifecycle == nil {
r.EncodeNil()
} else {
x.Lifecycle.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[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 yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[12] {
yym1116 := z.EncBinary()
_ = yym1116
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1084[12] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationMessagePath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1117 := z.EncBinary()
_ = yym1117
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.TerminationMessagePath))
}
}
}
if yyr1084 || yy2arr1084 {
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 yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[14] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1084[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 yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[15] {
yym1121 := z.EncBinary()
_ = yym1121
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1084[15] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1122 := z.EncBinary()
_ = yym1122
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[16] {
yym1124 := z.EncBinary()
_ = yym1124
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1084[16] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdinOnce"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1125 := z.EncBinary()
_ = yym1125
if false {
} else {
r.EncodeBool(bool(x.StdinOnce))
}
}
}
if yyr1084 || yy2arr1084 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1084[17] {
yym1127 := z.EncBinary()
_ = yym1127
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1084[17] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1128 := z.EncBinary()
_ = yym1128
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr1084 || yy2arr1084 {
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
yym1129 := z.DecBinary()
_ = yym1129
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1130 := r.ContainerType()
if yyct1130 == codecSelferValueTypeMap1234 {
yyl1130 := r.ReadMapStart()
if yyl1130 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1130, d)
}
} else if yyct1130 == codecSelferValueTypeArray1234 {
yyl1130 := r.ReadArrayStart()
if yyl1130 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1130, 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 yys1131Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1131Slc
var yyhl1131 bool = l >= 0
for yyj1131 := 0; ; yyj1131++ {
if yyhl1131 {
if yyj1131 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1131Slc = r.DecodeBytes(yys1131Slc, true, true)
yys1131 := string(yys1131Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1131 {
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 {
yyv1134 := &x.Command
yym1135 := z.DecBinary()
_ = yym1135
if false {
} else {
z.F.DecSliceStringX(yyv1134, false, d)
}
}
case "args":
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1136 := &x.Args
yym1137 := z.DecBinary()
_ = yym1137
if false {
} else {
z.F.DecSliceStringX(yyv1136, false, d)
}
}
case "workingDir":
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1139 := &x.Ports
yym1140 := z.DecBinary()
_ = yym1140
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1139), d)
}
}
case "env":
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1141 := &x.Env
yym1142 := z.DecBinary()
_ = yym1142
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1141), d)
}
}
case "resources":
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1143 := &x.Resources
yyv1143.CodecDecodeSelf(d)
}
case "volumeMounts":
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1144 := &x.VolumeMounts
yym1145 := z.DecBinary()
_ = yym1145
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1144), 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, yys1131)
} // end switch yys1131
} // end for yyj1131
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 yyj1155 int
var yyb1155 bool
var yyhl1155 bool = l >= 0
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv1158 := &x.Command
yym1159 := z.DecBinary()
_ = yym1159
if false {
} else {
z.F.DecSliceStringX(yyv1158, false, d)
}
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Args = nil
} else {
yyv1160 := &x.Args
yym1161 := z.DecBinary()
_ = yym1161
if false {
} else {
z.F.DecSliceStringX(yyv1160, false, d)
}
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.WorkingDir = ""
} else {
x.WorkingDir = string(r.DecodeString())
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1163 := &x.Ports
yym1164 := z.DecBinary()
_ = yym1164
if false {
} else {
h.decSliceContainerPort((*[]ContainerPort)(yyv1163), d)
}
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Env = nil
} else {
yyv1165 := &x.Env
yym1166 := z.DecBinary()
_ = yym1166
if false {
} else {
h.decSliceEnvVar((*[]EnvVar)(yyv1165), d)
}
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Resources = ResourceRequirements{}
} else {
yyv1167 := &x.Resources
yyv1167.CodecDecodeSelf(d)
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.VolumeMounts = nil
} else {
yyv1168 := &x.VolumeMounts
yym1169 := z.DecBinary()
_ = yym1169
if false {
} else {
h.decSliceVolumeMount((*[]VolumeMount)(yyv1168), d)
}
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
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)
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
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)
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
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)
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TerminationMessagePath = ""
} else {
x.TerminationMessagePath = string(r.DecodeString())
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullPolicy = ""
} else {
x.ImagePullPolicy = PullPolicy(r.DecodeString())
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
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)
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StdinOnce = false
} else {
x.StdinOnce = bool(r.DecodeBool())
}
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
for {
yyj1155++
if yyhl1155 {
yyb1155 = yyj1155 > l
} else {
yyb1155 = r.CheckBreak()
}
if yyb1155 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1155-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 {
yym1179 := z.EncBinary()
_ = yym1179
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1180 := !z.EncBinary()
yy2arr1180 := z.EncBasicHandle().StructToArray
var yyq1180 [3]bool
_, _, _ = yysep1180, yyq1180, yy2arr1180
const yyr1180 bool = false
yyq1180[0] = x.Exec != nil
yyq1180[1] = x.HTTPGet != nil
yyq1180[2] = x.TCPSocket != nil
var yynn1180 int
if yyr1180 || yy2arr1180 {
r.EncodeArrayStart(3)
} else {
yynn1180 = 0
for _, b := range yyq1180 {
if b {
yynn1180++
}
}
r.EncodeMapStart(yynn1180)
yynn1180 = 0
}
if yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1180[0] {
if x.Exec == nil {
r.EncodeNil()
} else {
x.Exec.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1180[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 yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1180[1] {
if x.HTTPGet == nil {
r.EncodeNil()
} else {
x.HTTPGet.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1180[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 yyr1180 || yy2arr1180 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1180[2] {
if x.TCPSocket == nil {
r.EncodeNil()
} else {
x.TCPSocket.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1180[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 yyr1180 || yy2arr1180 {
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
yym1184 := z.DecBinary()
_ = yym1184
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1185 := r.ContainerType()
if yyct1185 == codecSelferValueTypeMap1234 {
yyl1185 := r.ReadMapStart()
if yyl1185 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1185, d)
}
} else if yyct1185 == codecSelferValueTypeArray1234 {
yyl1185 := r.ReadArrayStart()
if yyl1185 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1185, 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 yys1186Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1186Slc
var yyhl1186 bool = l >= 0
for yyj1186 := 0; ; yyj1186++ {
if yyhl1186 {
if yyj1186 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1186Slc = r.DecodeBytes(yys1186Slc, true, true)
yys1186 := string(yys1186Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1186 {
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, yys1186)
} // end switch yys1186
} // end for yyj1186
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 yyj1190 int
var yyb1190 bool
var yyhl1190 bool = l >= 0
yyj1190++
if yyhl1190 {
yyb1190 = yyj1190 > l
} else {
yyb1190 = r.CheckBreak()
}
if yyb1190 {
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)
}
yyj1190++
if yyhl1190 {
yyb1190 = yyj1190 > l
} else {
yyb1190 = r.CheckBreak()
}
if yyb1190 {
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)
}
yyj1190++
if yyhl1190 {
yyb1190 = yyj1190 > l
} else {
yyb1190 = r.CheckBreak()
}
if yyb1190 {
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 {
yyj1190++
if yyhl1190 {
yyb1190 = yyj1190 > l
} else {
yyb1190 = r.CheckBreak()
}
if yyb1190 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1190-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 {
yym1194 := z.EncBinary()
_ = yym1194
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1195 := !z.EncBinary()
yy2arr1195 := z.EncBasicHandle().StructToArray
var yyq1195 [2]bool
_, _, _ = yysep1195, yyq1195, yy2arr1195
const yyr1195 bool = false
yyq1195[0] = x.PostStart != nil
yyq1195[1] = x.PreStop != nil
var yynn1195 int
if yyr1195 || yy2arr1195 {
r.EncodeArrayStart(2)
} else {
yynn1195 = 0
for _, b := range yyq1195 {
if b {
yynn1195++
}
}
r.EncodeMapStart(yynn1195)
yynn1195 = 0
}
if yyr1195 || yy2arr1195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1195[0] {
if x.PostStart == nil {
r.EncodeNil()
} else {
x.PostStart.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1195[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 yyr1195 || yy2arr1195 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1195[1] {
if x.PreStop == nil {
r.EncodeNil()
} else {
x.PreStop.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1195[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 yyr1195 || yy2arr1195 {
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
yym1198 := z.DecBinary()
_ = yym1198
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1199 := r.ContainerType()
if yyct1199 == codecSelferValueTypeMap1234 {
yyl1199 := r.ReadMapStart()
if yyl1199 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1199, d)
}
} else if yyct1199 == codecSelferValueTypeArray1234 {
yyl1199 := r.ReadArrayStart()
if yyl1199 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1199, 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 yys1200Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1200Slc
var yyhl1200 bool = l >= 0
for yyj1200 := 0; ; yyj1200++ {
if yyhl1200 {
if yyj1200 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1200Slc = r.DecodeBytes(yys1200Slc, true, true)
yys1200 := string(yys1200Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1200 {
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, yys1200)
} // end switch yys1200
} // end for yyj1200
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 yyj1203 int
var yyb1203 bool
var yyhl1203 bool = l >= 0
yyj1203++
if yyhl1203 {
yyb1203 = yyj1203 > l
} else {
yyb1203 = r.CheckBreak()
}
if yyb1203 {
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)
}
yyj1203++
if yyhl1203 {
yyb1203 = yyj1203 > l
} else {
yyb1203 = r.CheckBreak()
}
if yyb1203 {
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 {
yyj1203++
if yyhl1203 {
yyb1203 = yyj1203 > l
} else {
yyb1203 = r.CheckBreak()
}
if yyb1203 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1203-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ConditionStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1206 := z.EncBinary()
_ = yym1206
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
yym1207 := z.DecBinary()
_ = yym1207
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 {
yym1208 := z.EncBinary()
_ = yym1208
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1209 := !z.EncBinary()
yy2arr1209 := z.EncBasicHandle().StructToArray
var yyq1209 [2]bool
_, _, _ = yysep1209, yyq1209, yy2arr1209
const yyr1209 bool = false
yyq1209[0] = x.Reason != ""
yyq1209[1] = x.Message != ""
var yynn1209 int
if yyr1209 || yy2arr1209 {
r.EncodeArrayStart(2)
} else {
yynn1209 = 0
for _, b := range yyq1209 {
if b {
yynn1209++
}
}
r.EncodeMapStart(yynn1209)
yynn1209 = 0
}
if yyr1209 || yy2arr1209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1209[0] {
yym1211 := z.EncBinary()
_ = yym1211
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1209[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1212 := z.EncBinary()
_ = yym1212
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1209 || yy2arr1209 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1209[1] {
yym1214 := z.EncBinary()
_ = yym1214
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1209[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1215 := z.EncBinary()
_ = yym1215
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1209 || yy2arr1209 {
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
yym1216 := z.DecBinary()
_ = yym1216
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1217 := r.ContainerType()
if yyct1217 == codecSelferValueTypeMap1234 {
yyl1217 := r.ReadMapStart()
if yyl1217 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1217, d)
}
} else if yyct1217 == codecSelferValueTypeArray1234 {
yyl1217 := r.ReadArrayStart()
if yyl1217 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1217, 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 yys1218Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1218Slc
var yyhl1218 bool = l >= 0
for yyj1218 := 0; ; yyj1218++ {
if yyhl1218 {
if yyj1218 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1218Slc = r.DecodeBytes(yys1218Slc, true, true)
yys1218 := string(yys1218Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1218 {
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, yys1218)
} // end switch yys1218
} // end for yyj1218
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 yyj1221 int
var yyb1221 bool
var yyhl1221 bool = l >= 0
yyj1221++
if yyhl1221 {
yyb1221 = yyj1221 > l
} else {
yyb1221 = r.CheckBreak()
}
if yyb1221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1221++
if yyhl1221 {
yyb1221 = yyj1221 > l
} else {
yyb1221 = r.CheckBreak()
}
if yyb1221 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1221++
if yyhl1221 {
yyb1221 = yyj1221 > l
} else {
yyb1221 = r.CheckBreak()
}
if yyb1221 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1221-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 {
yym1224 := z.EncBinary()
_ = yym1224
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1225 := !z.EncBinary()
yy2arr1225 := z.EncBasicHandle().StructToArray
var yyq1225 [1]bool
_, _, _ = yysep1225, yyq1225, yy2arr1225
const yyr1225 bool = false
yyq1225[0] = true
var yynn1225 int
if yyr1225 || yy2arr1225 {
r.EncodeArrayStart(1)
} else {
yynn1225 = 0
for _, b := range yyq1225 {
if b {
yynn1225++
}
}
r.EncodeMapStart(yynn1225)
yynn1225 = 0
}
if yyr1225 || yy2arr1225 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1225[0] {
yy1227 := &x.StartedAt
yym1228 := z.EncBinary()
_ = yym1228
if false {
} else if z.HasExtensions() && z.EncExt(yy1227) {
} else if yym1228 {
z.EncBinaryMarshal(yy1227)
} else if !yym1228 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1227)
} else {
z.EncFallback(yy1227)
}
} else {
r.EncodeNil()
}
} else {
if yyq1225[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1229 := &x.StartedAt
yym1230 := z.EncBinary()
_ = yym1230
if false {
} else if z.HasExtensions() && z.EncExt(yy1229) {
} else if yym1230 {
z.EncBinaryMarshal(yy1229)
} else if !yym1230 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1229)
} else {
z.EncFallback(yy1229)
}
}
}
if yyr1225 || yy2arr1225 {
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
yym1231 := z.DecBinary()
_ = yym1231
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1232 := r.ContainerType()
if yyct1232 == codecSelferValueTypeMap1234 {
yyl1232 := r.ReadMapStart()
if yyl1232 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1232, d)
}
} else if yyct1232 == codecSelferValueTypeArray1234 {
yyl1232 := r.ReadArrayStart()
if yyl1232 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1232, 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 yys1233Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1233Slc
var yyhl1233 bool = l >= 0
for yyj1233 := 0; ; yyj1233++ {
if yyhl1233 {
if yyj1233 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1233Slc = r.DecodeBytes(yys1233Slc, true, true)
yys1233 := string(yys1233Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1233 {
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1234 := &x.StartedAt
yym1235 := z.DecBinary()
_ = yym1235
if false {
} else if z.HasExtensions() && z.DecExt(yyv1234) {
} else if yym1235 {
z.DecBinaryUnmarshal(yyv1234)
} else if !yym1235 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1234)
} else {
z.DecFallback(yyv1234, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys1233)
} // end switch yys1233
} // end for yyj1233
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 yyj1236 int
var yyb1236 bool
var yyhl1236 bool = l >= 0
yyj1236++
if yyhl1236 {
yyb1236 = yyj1236 > l
} else {
yyb1236 = r.CheckBreak()
}
if yyb1236 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1237 := &x.StartedAt
yym1238 := z.DecBinary()
_ = yym1238
if false {
} else if z.HasExtensions() && z.DecExt(yyv1237) {
} else if yym1238 {
z.DecBinaryUnmarshal(yyv1237)
} else if !yym1238 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1237)
} else {
z.DecFallback(yyv1237, false)
}
}
for {
yyj1236++
if yyhl1236 {
yyb1236 = yyj1236 > l
} else {
yyb1236 = r.CheckBreak()
}
if yyb1236 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1236-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 {
yym1239 := z.EncBinary()
_ = yym1239
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1240 := !z.EncBinary()
yy2arr1240 := z.EncBasicHandle().StructToArray
var yyq1240 [7]bool
_, _, _ = yysep1240, yyq1240, yy2arr1240
const yyr1240 bool = false
yyq1240[1] = x.Signal != 0
yyq1240[2] = x.Reason != ""
yyq1240[3] = x.Message != ""
yyq1240[4] = true
yyq1240[5] = true
yyq1240[6] = x.ContainerID != ""
var yynn1240 int
if yyr1240 || yy2arr1240 {
r.EncodeArrayStart(7)
} else {
yynn1240 = 1
for _, b := range yyq1240 {
if b {
yynn1240++
}
}
r.EncodeMapStart(yynn1240)
yynn1240 = 0
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1242 := z.EncBinary()
_ = yym1242
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("exitCode"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1243 := z.EncBinary()
_ = yym1243
if false {
} else {
r.EncodeInt(int64(x.ExitCode))
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[1] {
yym1245 := z.EncBinary()
_ = yym1245
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1240[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("signal"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1246 := z.EncBinary()
_ = yym1246
if false {
} else {
r.EncodeInt(int64(x.Signal))
}
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[2] {
yym1248 := z.EncBinary()
_ = yym1248
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1240[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1249 := z.EncBinary()
_ = yym1249
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[3] {
yym1251 := z.EncBinary()
_ = yym1251
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1240[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1252 := z.EncBinary()
_ = yym1252
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[4] {
yy1254 := &x.StartedAt
yym1255 := z.EncBinary()
_ = yym1255
if false {
} else if z.HasExtensions() && z.EncExt(yy1254) {
} else if yym1255 {
z.EncBinaryMarshal(yy1254)
} else if !yym1255 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1254)
} else {
z.EncFallback(yy1254)
}
} else {
r.EncodeNil()
}
} else {
if yyq1240[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1256 := &x.StartedAt
yym1257 := z.EncBinary()
_ = yym1257
if false {
} else if z.HasExtensions() && z.EncExt(yy1256) {
} else if yym1257 {
z.EncBinaryMarshal(yy1256)
} else if !yym1257 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1256)
} else {
z.EncFallback(yy1256)
}
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[5] {
yy1259 := &x.FinishedAt
yym1260 := z.EncBinary()
_ = yym1260
if false {
} else if z.HasExtensions() && z.EncExt(yy1259) {
} else if yym1260 {
z.EncBinaryMarshal(yy1259)
} else if !yym1260 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1259)
} else {
z.EncFallback(yy1259)
}
} else {
r.EncodeNil()
}
} else {
if yyq1240[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("finishedAt"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1261 := &x.FinishedAt
yym1262 := z.EncBinary()
_ = yym1262
if false {
} else if z.HasExtensions() && z.EncExt(yy1261) {
} else if yym1262 {
z.EncBinaryMarshal(yy1261)
} else if !yym1262 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1261)
} else {
z.EncFallback(yy1261)
}
}
}
if yyr1240 || yy2arr1240 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1240[6] {
yym1264 := z.EncBinary()
_ = yym1264
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1240[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1265 := z.EncBinary()
_ = yym1265
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1240 || yy2arr1240 {
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
yym1266 := z.DecBinary()
_ = yym1266
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1267 := r.ContainerType()
if yyct1267 == codecSelferValueTypeMap1234 {
yyl1267 := r.ReadMapStart()
if yyl1267 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1267, d)
}
} else if yyct1267 == codecSelferValueTypeArray1234 {
yyl1267 := r.ReadArrayStart()
if yyl1267 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1267, 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 yys1268Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1268Slc
var yyhl1268 bool = l >= 0
for yyj1268 := 0; ; yyj1268++ {
if yyhl1268 {
if yyj1268 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1268Slc = r.DecodeBytes(yys1268Slc, true, true)
yys1268 := string(yys1268Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1268 {
case "exitCode":
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
}
case "signal":
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
}
case "reason":
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
case "message":
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
case "startedAt":
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1273 := &x.StartedAt
yym1274 := z.DecBinary()
_ = yym1274
if false {
} else if z.HasExtensions() && z.DecExt(yyv1273) {
} else if yym1274 {
z.DecBinaryUnmarshal(yyv1273)
} else if !yym1274 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1273)
} else {
z.DecFallback(yyv1273, false)
}
}
case "finishedAt":
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1275 := &x.FinishedAt
yym1276 := z.DecBinary()
_ = yym1276
if false {
} else if z.HasExtensions() && z.DecExt(yyv1275) {
} else if yym1276 {
z.DecBinaryUnmarshal(yyv1275)
} else if !yym1276 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1275)
} else {
z.DecFallback(yyv1275, false)
}
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1268)
} // end switch yys1268
} // end for yyj1268
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 yyj1278 int
var yyb1278 bool
var yyhl1278 bool = l >= 0
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExitCode = 0
} else {
x.ExitCode = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Signal = 0
} else {
x.Signal = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.StartedAt = pkg2_unversioned.Time{}
} else {
yyv1283 := &x.StartedAt
yym1284 := z.DecBinary()
_ = yym1284
if false {
} else if z.HasExtensions() && z.DecExt(yyv1283) {
} else if yym1284 {
z.DecBinaryUnmarshal(yyv1283)
} else if !yym1284 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1283)
} else {
z.DecFallback(yyv1283, false)
}
}
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FinishedAt = pkg2_unversioned.Time{}
} else {
yyv1285 := &x.FinishedAt
yym1286 := z.DecBinary()
_ = yym1286
if false {
} else if z.HasExtensions() && z.DecExt(yyv1285) {
} else if yym1286 {
z.DecBinaryUnmarshal(yyv1285)
} else if !yym1286 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1285)
} else {
z.DecFallback(yyv1285, false)
}
}
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1278++
if yyhl1278 {
yyb1278 = yyj1278 > l
} else {
yyb1278 = r.CheckBreak()
}
if yyb1278 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1278-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 {
yym1288 := z.EncBinary()
_ = yym1288
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1289 := !z.EncBinary()
yy2arr1289 := z.EncBasicHandle().StructToArray
var yyq1289 [3]bool
_, _, _ = yysep1289, yyq1289, yy2arr1289
const yyr1289 bool = false
yyq1289[0] = x.Waiting != nil
yyq1289[1] = x.Running != nil
yyq1289[2] = x.Terminated != nil
var yynn1289 int
if yyr1289 || yy2arr1289 {
r.EncodeArrayStart(3)
} else {
yynn1289 = 0
for _, b := range yyq1289 {
if b {
yynn1289++
}
}
r.EncodeMapStart(yynn1289)
yynn1289 = 0
}
if yyr1289 || yy2arr1289 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1289[0] {
if x.Waiting == nil {
r.EncodeNil()
} else {
x.Waiting.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1289[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 yyr1289 || yy2arr1289 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1289[1] {
if x.Running == nil {
r.EncodeNil()
} else {
x.Running.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1289[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 yyr1289 || yy2arr1289 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1289[2] {
if x.Terminated == nil {
r.EncodeNil()
} else {
x.Terminated.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1289[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 yyr1289 || yy2arr1289 {
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
yym1293 := z.DecBinary()
_ = yym1293
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1294 := r.ContainerType()
if yyct1294 == codecSelferValueTypeMap1234 {
yyl1294 := r.ReadMapStart()
if yyl1294 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1294, d)
}
} else if yyct1294 == codecSelferValueTypeArray1234 {
yyl1294 := r.ReadArrayStart()
if yyl1294 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1294, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ContainerState) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1295Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1295Slc
var yyhl1295 bool = l >= 0
for yyj1295 := 0; ; yyj1295++ {
if yyhl1295 {
if yyj1295 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1295Slc = r.DecodeBytes(yys1295Slc, true, true)
yys1295 := string(yys1295Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1295 {
case "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, yys1295)
} // end switch yys1295
} // end for yyj1295
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 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() {
if x.Waiting != nil {
x.Waiting = nil
}
} else {
if x.Waiting == nil {
x.Waiting = new(ContainerStateWaiting)
}
x.Waiting.CodecDecodeSelf(d)
}
yyj1299++
if yyhl1299 {
yyb1299 = yyj1299 > l
} else {
yyb1299 = r.CheckBreak()
}
if yyb1299 {
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)
}
yyj1299++
if yyhl1299 {
yyb1299 = yyj1299 > l
} else {
yyb1299 = r.CheckBreak()
}
if yyb1299 {
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 {
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 *ContainerStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1303 := z.EncBinary()
_ = yym1303
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1304 := !z.EncBinary()
yy2arr1304 := z.EncBasicHandle().StructToArray
var yyq1304 [8]bool
_, _, _ = yysep1304, yyq1304, yy2arr1304
const yyr1304 bool = false
yyq1304[1] = true
yyq1304[2] = true
yyq1304[7] = x.ContainerID != ""
var yynn1304 int
if yyr1304 || yy2arr1304 {
r.EncodeArrayStart(8)
} else {
yynn1304 = 5
for _, b := range yyq1304 {
if b {
yynn1304++
}
}
r.EncodeMapStart(yynn1304)
yynn1304 = 0
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1306 := z.EncBinary()
_ = yym1306
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)
yym1307 := z.EncBinary()
_ = yym1307
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1304[1] {
yy1309 := &x.State
yy1309.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1304[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("state"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1310 := &x.State
yy1310.CodecEncodeSelf(e)
}
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1304[2] {
yy1312 := &x.LastTerminationState
yy1312.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1304[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastState"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1313 := &x.LastTerminationState
yy1313.CodecEncodeSelf(e)
}
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1315 := z.EncBinary()
_ = yym1315
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ready"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1316 := z.EncBinary()
_ = yym1316
if false {
} else {
r.EncodeBool(bool(x.Ready))
}
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1318 := z.EncBinary()
_ = yym1318
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartCount"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1319 := z.EncBinary()
_ = yym1319
if false {
} else {
r.EncodeInt(int64(x.RestartCount))
}
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1321 := z.EncBinary()
_ = yym1321
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)
yym1322 := z.EncBinary()
_ = yym1322
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Image))
}
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1324 := z.EncBinary()
_ = yym1324
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)
yym1325 := z.EncBinary()
_ = yym1325
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ImageID))
}
}
if yyr1304 || yy2arr1304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1304[7] {
yym1327 := z.EncBinary()
_ = yym1327
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1304[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1328 := z.EncBinary()
_ = yym1328
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerID))
}
}
}
if yyr1304 || yy2arr1304 {
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
yym1329 := z.DecBinary()
_ = yym1329
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1330 := r.ContainerType()
if yyct1330 == codecSelferValueTypeMap1234 {
yyl1330 := r.ReadMapStart()
if yyl1330 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1330, d)
}
} else if yyct1330 == codecSelferValueTypeArray1234 {
yyl1330 := r.ReadArrayStart()
if yyl1330 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1330, 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 yys1331Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1331Slc
var yyhl1331 bool = l >= 0
for yyj1331 := 0; ; yyj1331++ {
if yyhl1331 {
if yyj1331 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1331Slc = r.DecodeBytes(yys1331Slc, true, true)
yys1331 := string(yys1331Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1331 {
case "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "state":
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1333 := &x.State
yyv1333.CodecDecodeSelf(d)
}
case "lastState":
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1334 := &x.LastTerminationState
yyv1334.CodecDecodeSelf(d)
}
case "ready":
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
case "restartCount":
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
}
case "image":
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
case "imageID":
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
case "containerID":
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1331)
} // end switch yys1331
} // end for yyj1331
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 yyj1340 int
var yyb1340 bool
var yyhl1340 bool = l >= 0
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.State = ContainerState{}
} else {
yyv1342 := &x.State
yyv1342.CodecDecodeSelf(d)
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTerminationState = ContainerState{}
} else {
yyv1343 := &x.LastTerminationState
yyv1343.CodecDecodeSelf(d)
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ready = false
} else {
x.Ready = bool(r.DecodeBool())
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartCount = 0
} else {
x.RestartCount = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Image = ""
} else {
x.Image = string(r.DecodeString())
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImageID = ""
} else {
x.ImageID = string(r.DecodeString())
}
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ContainerID = ""
} else {
x.ContainerID = string(r.DecodeString())
}
for {
yyj1340++
if yyhl1340 {
yyb1340 = yyj1340 > l
} else {
yyb1340 = r.CheckBreak()
}
if yyb1340 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1340-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PodPhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1349 := z.EncBinary()
_ = yym1349
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
yym1350 := z.DecBinary()
_ = yym1350
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
yym1351 := z.EncBinary()
_ = yym1351
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
yym1352 := z.DecBinary()
_ = yym1352
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 {
yym1353 := z.EncBinary()
_ = yym1353
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1354 := !z.EncBinary()
yy2arr1354 := z.EncBasicHandle().StructToArray
var yyq1354 [6]bool
_, _, _ = yysep1354, yyq1354, yy2arr1354
const yyr1354 bool = false
yyq1354[2] = true
yyq1354[3] = true
yyq1354[4] = x.Reason != ""
yyq1354[5] = x.Message != ""
var yynn1354 int
if yyr1354 || yy2arr1354 {
r.EncodeArrayStart(6)
} else {
yynn1354 = 2
for _, b := range yyq1354 {
if b {
yynn1354++
}
}
r.EncodeMapStart(yynn1354)
yynn1354 = 0
}
if yyr1354 || yy2arr1354 {
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 yyr1354 || yy2arr1354 {
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 yyr1354 || yy2arr1354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1354[2] {
yy1358 := &x.LastProbeTime
yym1359 := z.EncBinary()
_ = yym1359
if false {
} else if z.HasExtensions() && z.EncExt(yy1358) {
} else if yym1359 {
z.EncBinaryMarshal(yy1358)
} else if !yym1359 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1358)
} else {
z.EncFallback(yy1358)
}
} else {
r.EncodeNil()
}
} else {
if yyq1354[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastProbeTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1360 := &x.LastProbeTime
yym1361 := z.EncBinary()
_ = yym1361
if false {
} else if z.HasExtensions() && z.EncExt(yy1360) {
} else if yym1361 {
z.EncBinaryMarshal(yy1360)
} else if !yym1361 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1360)
} else {
z.EncFallback(yy1360)
}
}
}
if yyr1354 || yy2arr1354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1354[3] {
yy1363 := &x.LastTransitionTime
yym1364 := z.EncBinary()
_ = yym1364
if false {
} else if z.HasExtensions() && z.EncExt(yy1363) {
} else if yym1364 {
z.EncBinaryMarshal(yy1363)
} else if !yym1364 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1363)
} else {
z.EncFallback(yy1363)
}
} else {
r.EncodeNil()
}
} else {
if yyq1354[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1365 := &x.LastTransitionTime
yym1366 := z.EncBinary()
_ = yym1366
if false {
} else if z.HasExtensions() && z.EncExt(yy1365) {
} else if yym1366 {
z.EncBinaryMarshal(yy1365)
} else if !yym1366 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1365)
} else {
z.EncFallback(yy1365)
}
}
}
if yyr1354 || yy2arr1354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1354[4] {
yym1368 := z.EncBinary()
_ = yym1368
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1354[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1369 := z.EncBinary()
_ = yym1369
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1354 || yy2arr1354 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1354[5] {
yym1371 := z.EncBinary()
_ = yym1371
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1354[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1372 := z.EncBinary()
_ = yym1372
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1354 || yy2arr1354 {
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
yym1373 := z.DecBinary()
_ = yym1373
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1374 := r.ContainerType()
if yyct1374 == codecSelferValueTypeMap1234 {
yyl1374 := r.ReadMapStart()
if yyl1374 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1374, d)
}
} else if yyct1374 == codecSelferValueTypeArray1234 {
yyl1374 := r.ReadArrayStart()
if yyl1374 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1374, 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 yys1375Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1375Slc
var yyhl1375 bool = l >= 0
for yyj1375 := 0; ; yyj1375++ {
if yyhl1375 {
if yyj1375 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1375Slc = r.DecodeBytes(yys1375Slc, true, true)
yys1375 := string(yys1375Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1375 {
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 {
yyv1378 := &x.LastProbeTime
yym1379 := z.DecBinary()
_ = yym1379
if false {
} else if z.HasExtensions() && z.DecExt(yyv1378) {
} else if yym1379 {
z.DecBinaryUnmarshal(yyv1378)
} else if !yym1379 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1378)
} else {
z.DecFallback(yyv1378, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1380 := &x.LastTransitionTime
yym1381 := z.DecBinary()
_ = yym1381
if false {
} else if z.HasExtensions() && z.DecExt(yyv1380) {
} else if yym1381 {
z.DecBinaryUnmarshal(yyv1380)
} else if !yym1381 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1380)
} else {
z.DecFallback(yyv1380, 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, yys1375)
} // end switch yys1375
} // end for yyj1375
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 yyj1384 int
var yyb1384 bool
var yyhl1384 bool = l >= 0
yyj1384++
if yyhl1384 {
yyb1384 = yyj1384 > l
} else {
yyb1384 = r.CheckBreak()
}
if yyb1384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = PodConditionType(r.DecodeString())
}
yyj1384++
if yyhl1384 {
yyb1384 = yyj1384 > l
} else {
yyb1384 = r.CheckBreak()
}
if yyb1384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj1384++
if yyhl1384 {
yyb1384 = yyj1384 > l
} else {
yyb1384 = r.CheckBreak()
}
if yyb1384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastProbeTime = pkg2_unversioned.Time{}
} else {
yyv1387 := &x.LastProbeTime
yym1388 := z.DecBinary()
_ = yym1388
if false {
} else if z.HasExtensions() && z.DecExt(yyv1387) {
} else if yym1388 {
z.DecBinaryUnmarshal(yyv1387)
} else if !yym1388 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1387)
} else {
z.DecFallback(yyv1387, false)
}
}
yyj1384++
if yyhl1384 {
yyb1384 = yyj1384 > l
} else {
yyb1384 = r.CheckBreak()
}
if yyb1384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv1389 := &x.LastTransitionTime
yym1390 := z.DecBinary()
_ = yym1390
if false {
} else if z.HasExtensions() && z.DecExt(yyv1389) {
} else if yym1390 {
z.DecBinaryUnmarshal(yyv1389)
} else if !yym1390 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1389)
} else {
z.DecFallback(yyv1389, false)
}
}
yyj1384++
if yyhl1384 {
yyb1384 = yyj1384 > l
} else {
yyb1384 = r.CheckBreak()
}
if yyb1384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj1384++
if yyhl1384 {
yyb1384 = yyj1384 > l
} else {
yyb1384 = r.CheckBreak()
}
if yyb1384 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj1384++
if yyhl1384 {
yyb1384 = yyj1384 > l
} else {
yyb1384 = r.CheckBreak()
}
if yyb1384 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1384-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x RestartPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1393 := z.EncBinary()
_ = yym1393
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
yym1394 := z.DecBinary()
_ = yym1394
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 {
yym1395 := z.EncBinary()
_ = yym1395
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1396 := !z.EncBinary()
yy2arr1396 := z.EncBasicHandle().StructToArray
var yyq1396 [4]bool
_, _, _ = yysep1396, yyq1396, yy2arr1396
const yyr1396 bool = false
yyq1396[0] = x.Kind != ""
yyq1396[1] = x.APIVersion != ""
yyq1396[2] = true
var yynn1396 int
if yyr1396 || yy2arr1396 {
r.EncodeArrayStart(4)
} else {
yynn1396 = 1
for _, b := range yyq1396 {
if b {
yynn1396++
}
}
r.EncodeMapStart(yynn1396)
yynn1396 = 0
}
if yyr1396 || yy2arr1396 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1396[0] {
yym1398 := z.EncBinary()
_ = yym1398
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1396[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1399 := z.EncBinary()
_ = yym1399
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1396 || yy2arr1396 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1396[1] {
yym1401 := z.EncBinary()
_ = yym1401
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1396[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1402 := z.EncBinary()
_ = yym1402
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1396 || yy2arr1396 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1396[2] {
yy1404 := &x.ListMeta
yym1405 := z.EncBinary()
_ = yym1405
if false {
} else if z.HasExtensions() && z.EncExt(yy1404) {
} else {
z.EncFallback(yy1404)
}
} else {
r.EncodeNil()
}
} else {
if yyq1396[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1406 := &x.ListMeta
yym1407 := z.EncBinary()
_ = yym1407
if false {
} else if z.HasExtensions() && z.EncExt(yy1406) {
} else {
z.EncFallback(yy1406)
}
}
}
if yyr1396 || yy2arr1396 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1409 := z.EncBinary()
_ = yym1409
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 {
yym1410 := z.EncBinary()
_ = yym1410
if false {
} else {
h.encSlicePod(([]Pod)(x.Items), e)
}
}
}
if yyr1396 || yy2arr1396 {
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
yym1411 := z.DecBinary()
_ = yym1411
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1412 := r.ContainerType()
if yyct1412 == codecSelferValueTypeMap1234 {
yyl1412 := r.ReadMapStart()
if yyl1412 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1412, d)
}
} else if yyct1412 == codecSelferValueTypeArray1234 {
yyl1412 := r.ReadArrayStart()
if yyl1412 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1412, 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 yys1413Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1413Slc
var yyhl1413 bool = l >= 0
for yyj1413 := 0; ; yyj1413++ {
if yyhl1413 {
if yyj1413 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1413Slc = r.DecodeBytes(yys1413Slc, true, true)
yys1413 := string(yys1413Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1413 {
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 {
yyv1416 := &x.ListMeta
yym1417 := z.DecBinary()
_ = yym1417
if false {
} else if z.HasExtensions() && z.DecExt(yyv1416) {
} else {
z.DecFallback(yyv1416, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1418 := &x.Items
yym1419 := z.DecBinary()
_ = yym1419
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1418), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1413)
} // end switch yys1413
} // end for yyj1413
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 yyj1420 int
var yyb1420 bool
var yyhl1420 bool = l >= 0
yyj1420++
if yyhl1420 {
yyb1420 = yyj1420 > l
} else {
yyb1420 = r.CheckBreak()
}
if yyb1420 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1420++
if yyhl1420 {
yyb1420 = yyj1420 > l
} else {
yyb1420 = r.CheckBreak()
}
if yyb1420 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1420++
if yyhl1420 {
yyb1420 = yyj1420 > l
} else {
yyb1420 = r.CheckBreak()
}
if yyb1420 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1423 := &x.ListMeta
yym1424 := z.DecBinary()
_ = yym1424
if false {
} else if z.HasExtensions() && z.DecExt(yyv1423) {
} else {
z.DecFallback(yyv1423, false)
}
}
yyj1420++
if yyhl1420 {
yyb1420 = yyj1420 > l
} else {
yyb1420 = r.CheckBreak()
}
if yyb1420 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1425 := &x.Items
yym1426 := z.DecBinary()
_ = yym1426
if false {
} else {
h.decSlicePod((*[]Pod)(yyv1425), d)
}
}
for {
yyj1420++
if yyhl1420 {
yyb1420 = yyj1420 > l
} else {
yyb1420 = r.CheckBreak()
}
if yyb1420 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1420-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x DNSPolicy) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1427 := z.EncBinary()
_ = yym1427
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
yym1428 := z.DecBinary()
_ = yym1428
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 {
yym1429 := z.EncBinary()
_ = yym1429
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1430 := !z.EncBinary()
yy2arr1430 := z.EncBasicHandle().StructToArray
var yyq1430 [11]bool
_, _, _ = yysep1430, yyq1430, yy2arr1430
const yyr1430 bool = false
yyq1430[2] = x.RestartPolicy != ""
yyq1430[3] = x.TerminationGracePeriodSeconds != nil
yyq1430[4] = x.ActiveDeadlineSeconds != nil
yyq1430[5] = x.DNSPolicy != ""
yyq1430[6] = len(x.NodeSelector) != 0
yyq1430[8] = x.NodeName != ""
yyq1430[9] = x.SecurityContext != nil
yyq1430[10] = len(x.ImagePullSecrets) != 0
var yynn1430 int
if yyr1430 || yy2arr1430 {
r.EncodeArrayStart(11)
} else {
yynn1430 = 3
for _, b := range yyq1430 {
if b {
yynn1430++
}
}
r.EncodeMapStart(yynn1430)
yynn1430 = 0
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Volumes == nil {
r.EncodeNil()
} else {
yym1432 := z.EncBinary()
_ = yym1432
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 {
yym1433 := z.EncBinary()
_ = yym1433
if false {
} else {
h.encSliceVolume(([]Volume)(x.Volumes), e)
}
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Containers == nil {
r.EncodeNil()
} else {
yym1435 := z.EncBinary()
_ = yym1435
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 {
yym1436 := z.EncBinary()
_ = yym1436
if false {
} else {
h.encSliceContainer(([]Container)(x.Containers), e)
}
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[2] {
x.RestartPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1430[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("restartPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.RestartPolicy.CodecEncodeSelf(e)
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[3] {
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy1439 := *x.TerminationGracePeriodSeconds
yym1440 := z.EncBinary()
_ = yym1440
if false {
} else {
r.EncodeInt(int64(yy1439))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1430[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("terminationGracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TerminationGracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy1441 := *x.TerminationGracePeriodSeconds
yym1442 := z.EncBinary()
_ = yym1442
if false {
} else {
r.EncodeInt(int64(yy1441))
}
}
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[4] {
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy1444 := *x.ActiveDeadlineSeconds
yym1445 := z.EncBinary()
_ = yym1445
if false {
} else {
r.EncodeInt(int64(yy1444))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1430[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("activeDeadlineSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ActiveDeadlineSeconds == nil {
r.EncodeNil()
} else {
yy1446 := *x.ActiveDeadlineSeconds
yym1447 := z.EncBinary()
_ = yym1447
if false {
} else {
r.EncodeInt(int64(yy1446))
}
}
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[5] {
x.DNSPolicy.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1430[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("dnsPolicy"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.DNSPolicy.CodecEncodeSelf(e)
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[6] {
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym1450 := z.EncBinary()
_ = yym1450
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1430[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeSelector"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.NodeSelector == nil {
r.EncodeNil()
} else {
yym1451 := z.EncBinary()
_ = yym1451
if false {
} else {
z.F.EncMapStringStringV(x.NodeSelector, false, e)
}
}
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1453 := z.EncBinary()
_ = yym1453
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)
yym1454 := z.EncBinary()
_ = yym1454
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ServiceAccountName))
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[8] {
yym1456 := z.EncBinary()
_ = yym1456
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1430[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeName"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1457 := z.EncBinary()
_ = yym1457
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.NodeName))
}
}
}
if yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[9] {
if x.SecurityContext == nil {
r.EncodeNil()
} else {
x.SecurityContext.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1430[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 yyr1430 || yy2arr1430 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1430[10] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym1460 := z.EncBinary()
_ = yym1460
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1430[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym1461 := z.EncBinary()
_ = yym1461
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr1430 || yy2arr1430 {
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
yym1462 := z.DecBinary()
_ = yym1462
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1463 := r.ContainerType()
if yyct1463 == codecSelferValueTypeMap1234 {
yyl1463 := r.ReadMapStart()
if yyl1463 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1463, d)
}
} else if yyct1463 == codecSelferValueTypeArray1234 {
yyl1463 := r.ReadArrayStart()
if yyl1463 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1463, 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 yys1464Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1464Slc
var yyhl1464 bool = l >= 0
for yyj1464 := 0; ; yyj1464++ {
if yyhl1464 {
if yyj1464 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1464Slc = r.DecodeBytes(yys1464Slc, true, true)
yys1464 := string(yys1464Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1464 {
case "volumes":
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv1465 := &x.Volumes
yym1466 := z.DecBinary()
_ = yym1466
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv1465), d)
}
}
case "containers":
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv1467 := &x.Containers
yym1468 := z.DecBinary()
_ = yym1468
if false {
} else {
h.decSliceContainer((*[]Container)(yyv1467), 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)
}
yym1471 := z.DecBinary()
_ = yym1471
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)
}
yym1473 := z.DecBinary()
_ = yym1473
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 {
yyv1475 := &x.NodeSelector
yym1476 := z.DecBinary()
_ = yym1476
if false {
} else {
z.F.DecMapStringStringX(yyv1475, 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 {
yyv1480 := &x.ImagePullSecrets
yym1481 := z.DecBinary()
_ = yym1481
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1480), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1464)
} // end switch yys1464
} // end for yyj1464
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 yyj1482 int
var yyb1482 bool
var yyhl1482 bool = l >= 0
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Volumes = nil
} else {
yyv1483 := &x.Volumes
yym1484 := z.DecBinary()
_ = yym1484
if false {
} else {
h.decSliceVolume((*[]Volume)(yyv1483), d)
}
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Containers = nil
} else {
yyv1485 := &x.Containers
yym1486 := z.DecBinary()
_ = yym1486
if false {
} else {
h.decSliceContainer((*[]Container)(yyv1485), d)
}
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.RestartPolicy = ""
} else {
x.RestartPolicy = RestartPolicy(r.DecodeString())
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.TerminationGracePeriodSeconds != nil {
x.TerminationGracePeriodSeconds = nil
}
} else {
if x.TerminationGracePeriodSeconds == nil {
x.TerminationGracePeriodSeconds = new(int64)
}
yym1489 := z.DecBinary()
_ = yym1489
if false {
} else {
*((*int64)(x.TerminationGracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
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)
}
yym1491 := z.DecBinary()
_ = yym1491
if false {
} else {
*((*int64)(x.ActiveDeadlineSeconds)) = int64(r.DecodeInt(64))
}
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DNSPolicy = ""
} else {
x.DNSPolicy = DNSPolicy(r.DecodeString())
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeSelector = nil
} else {
yyv1493 := &x.NodeSelector
yym1494 := z.DecBinary()
_ = yym1494
if false {
} else {
z.F.DecMapStringStringX(yyv1493, false, d)
}
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ServiceAccountName = ""
} else {
x.ServiceAccountName = string(r.DecodeString())
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeName = ""
} else {
x.NodeName = string(r.DecodeString())
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
if x.SecurityContext != nil {
x.SecurityContext = nil
}
} else {
if x.SecurityContext == nil {
x.SecurityContext = new(PodSecurityContext)
}
x.SecurityContext.CodecDecodeSelf(d)
}
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv1498 := &x.ImagePullSecrets
yym1499 := z.DecBinary()
_ = yym1499
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv1498), d)
}
}
for {
yyj1482++
if yyhl1482 {
yyb1482 = yyj1482 > l
} else {
yyb1482 = r.CheckBreak()
}
if yyb1482 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1482-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodSecurityContext) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1500 := z.EncBinary()
_ = yym1500
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1501 := !z.EncBinary()
yy2arr1501 := z.EncBasicHandle().StructToArray
var yyq1501 [8]bool
_, _, _ = yysep1501, yyq1501, yy2arr1501
const yyr1501 bool = false
yyq1501[0] = x.HostNetwork != false
yyq1501[1] = x.HostPID != false
yyq1501[2] = x.HostIPC != false
yyq1501[3] = x.SELinuxOptions != nil
yyq1501[4] = x.RunAsUser != nil
yyq1501[5] = x.RunAsNonRoot != nil
yyq1501[6] = len(x.SupplementalGroups) != 0
yyq1501[7] = x.FSGroup != nil
var yynn1501 int
if yyr1501 || yy2arr1501 {
r.EncodeArrayStart(8)
} else {
yynn1501 = 0
for _, b := range yyq1501 {
if b {
yynn1501++
}
}
r.EncodeMapStart(yynn1501)
yynn1501 = 0
}
if yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[0] {
yym1503 := z.EncBinary()
_ = yym1503
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1501[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostNetwork"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1504 := z.EncBinary()
_ = yym1504
if false {
} else {
r.EncodeBool(bool(x.HostNetwork))
}
}
}
if yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[1] {
yym1506 := z.EncBinary()
_ = yym1506
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1501[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostPID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1507 := z.EncBinary()
_ = yym1507
if false {
} else {
r.EncodeBool(bool(x.HostPID))
}
}
}
if yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[2] {
yym1509 := z.EncBinary()
_ = yym1509
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq1501[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIPC"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1510 := z.EncBinary()
_ = yym1510
if false {
} else {
r.EncodeBool(bool(x.HostIPC))
}
}
}
if yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[3] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1501[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 yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[4] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy1513 := *x.RunAsUser
yym1514 := z.EncBinary()
_ = yym1514
if false {
} else {
r.EncodeInt(int64(yy1513))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1501[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy1515 := *x.RunAsUser
yym1516 := z.EncBinary()
_ = yym1516
if false {
} else {
r.EncodeInt(int64(yy1515))
}
}
}
}
if yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[5] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy1518 := *x.RunAsNonRoot
yym1519 := z.EncBinary()
_ = yym1519
if false {
} else {
r.EncodeBool(bool(yy1518))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1501[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy1520 := *x.RunAsNonRoot
yym1521 := z.EncBinary()
_ = yym1521
if false {
} else {
r.EncodeBool(bool(yy1520))
}
}
}
}
if yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[6] {
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym1523 := z.EncBinary()
_ = yym1523
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1501[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("supplementalGroups"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SupplementalGroups == nil {
r.EncodeNil()
} else {
yym1524 := z.EncBinary()
_ = yym1524
if false {
} else {
z.F.EncSliceInt64V(x.SupplementalGroups, false, e)
}
}
}
}
if yyr1501 || yy2arr1501 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1501[7] {
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy1526 := *x.FSGroup
yym1527 := z.EncBinary()
_ = yym1527
if false {
} else {
r.EncodeInt(int64(yy1526))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1501[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fsGroup"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.FSGroup == nil {
r.EncodeNil()
} else {
yy1528 := *x.FSGroup
yym1529 := z.EncBinary()
_ = yym1529
if false {
} else {
r.EncodeInt(int64(yy1528))
}
}
}
}
if yyr1501 || yy2arr1501 {
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
yym1530 := z.DecBinary()
_ = yym1530
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1531 := r.ContainerType()
if yyct1531 == codecSelferValueTypeMap1234 {
yyl1531 := r.ReadMapStart()
if yyl1531 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1531, d)
}
} else if yyct1531 == codecSelferValueTypeArray1234 {
yyl1531 := r.ReadArrayStart()
if yyl1531 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1531, 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 yys1532Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1532Slc
var yyhl1532 bool = l >= 0
for yyj1532 := 0; ; yyj1532++ {
if yyhl1532 {
if yyj1532 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1532Slc = r.DecodeBytes(yys1532Slc, true, true)
yys1532 := string(yys1532Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1532 {
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)
}
yym1538 := z.DecBinary()
_ = yym1538
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)
}
yym1540 := z.DecBinary()
_ = yym1540
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
case "supplementalGroups":
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv1541 := &x.SupplementalGroups
yym1542 := z.DecBinary()
_ = yym1542
if false {
} else {
z.F.DecSliceInt64X(yyv1541, false, d)
}
}
case "fsGroup":
if r.TryDecodeAsNil() {
if x.FSGroup != nil {
x.FSGroup = nil
}
} else {
if x.FSGroup == nil {
x.FSGroup = new(int64)
}
yym1544 := z.DecBinary()
_ = yym1544
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys1532)
} // end switch yys1532
} // end for yyj1532
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 yyj1545 int
var yyb1545 bool
var yyhl1545 bool = l >= 0
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostNetwork = false
} else {
x.HostNetwork = bool(r.DecodeBool())
}
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostPID = false
} else {
x.HostPID = bool(r.DecodeBool())
}
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.HostIPC = false
} else {
x.HostIPC = bool(r.DecodeBool())
}
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
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)
}
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
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)
}
yym1551 := z.DecBinary()
_ = yym1551
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
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)
}
yym1553 := z.DecBinary()
_ = yym1553
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SupplementalGroups = nil
} else {
yyv1554 := &x.SupplementalGroups
yym1555 := z.DecBinary()
_ = yym1555
if false {
} else {
z.F.DecSliceInt64X(yyv1554, false, d)
}
}
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
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)
}
yym1557 := z.DecBinary()
_ = yym1557
if false {
} else {
*((*int64)(x.FSGroup)) = int64(r.DecodeInt(64))
}
}
for {
yyj1545++
if yyhl1545 {
yyb1545 = yyj1545 > l
} else {
yyb1545 = r.CheckBreak()
}
if yyb1545 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1545-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 {
yym1558 := z.EncBinary()
_ = yym1558
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1559 := !z.EncBinary()
yy2arr1559 := z.EncBasicHandle().StructToArray
var yyq1559 [8]bool
_, _, _ = yysep1559, yyq1559, yy2arr1559
const yyr1559 bool = false
yyq1559[0] = x.Phase != ""
yyq1559[1] = len(x.Conditions) != 0
yyq1559[2] = x.Message != ""
yyq1559[3] = x.Reason != ""
yyq1559[4] = x.HostIP != ""
yyq1559[5] = x.PodIP != ""
yyq1559[6] = x.StartTime != nil
yyq1559[7] = len(x.ContainerStatuses) != 0
var yynn1559 int
if yyr1559 || yy2arr1559 {
r.EncodeArrayStart(8)
} else {
yynn1559 = 0
for _, b := range yyq1559 {
if b {
yynn1559++
}
}
r.EncodeMapStart(yynn1559)
yynn1559 = 0
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1559[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[1] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1562 := z.EncBinary()
_ = yym1562
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1559[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym1563 := z.EncBinary()
_ = yym1563
if false {
} else {
h.encSlicePodCondition(([]PodCondition)(x.Conditions), e)
}
}
}
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[2] {
yym1565 := z.EncBinary()
_ = yym1565
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1559[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1566 := z.EncBinary()
_ = yym1566
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[3] {
yym1568 := z.EncBinary()
_ = yym1568
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1559[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1569 := z.EncBinary()
_ = yym1569
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[4] {
yym1571 := z.EncBinary()
_ = yym1571
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1559[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1572 := z.EncBinary()
_ = yym1572
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.HostIP))
}
}
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[5] {
yym1574 := z.EncBinary()
_ = yym1574
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1559[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1575 := z.EncBinary()
_ = yym1575
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodIP))
}
}
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[6] {
if x.StartTime == nil {
r.EncodeNil()
} else {
yym1577 := z.EncBinary()
_ = yym1577
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym1577 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym1577 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1559[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("startTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.StartTime == nil {
r.EncodeNil()
} else {
yym1578 := z.EncBinary()
_ = yym1578
if false {
} else if z.HasExtensions() && z.EncExt(x.StartTime) {
} else if yym1578 {
z.EncBinaryMarshal(x.StartTime)
} else if !yym1578 && z.IsJSONHandle() {
z.EncJSONMarshal(x.StartTime)
} else {
z.EncFallback(x.StartTime)
}
}
}
}
if yyr1559 || yy2arr1559 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1559[7] {
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym1580 := z.EncBinary()
_ = yym1580
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1559[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("containerStatuses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ContainerStatuses == nil {
r.EncodeNil()
} else {
yym1581 := z.EncBinary()
_ = yym1581
if false {
} else {
h.encSliceContainerStatus(([]ContainerStatus)(x.ContainerStatuses), e)
}
}
}
}
if yyr1559 || yy2arr1559 {
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
yym1582 := z.DecBinary()
_ = yym1582
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1583 := r.ContainerType()
if yyct1583 == codecSelferValueTypeMap1234 {
yyl1583 := r.ReadMapStart()
if yyl1583 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1583, d)
}
} else if yyct1583 == codecSelferValueTypeArray1234 {
yyl1583 := r.ReadArrayStart()
if yyl1583 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1583, 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 yys1584Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1584Slc
var yyhl1584 bool = l >= 0
for yyj1584 := 0; ; yyj1584++ {
if yyhl1584 {
if yyj1584 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1584Slc = r.DecodeBytes(yys1584Slc, true, true)
yys1584 := string(yys1584Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1584 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv1586 := &x.Conditions
yym1587 := z.DecBinary()
_ = yym1587
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv1586), 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)
}
yym1593 := z.DecBinary()
_ = yym1593
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym1593 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym1593 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
case "containerStatuses":
if r.TryDecodeAsNil() {
x.ContainerStatuses = nil
} else {
yyv1594 := &x.ContainerStatuses
yym1595 := z.DecBinary()
_ = yym1595
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1594), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1584)
} // end switch yys1584
} // end for yyj1584
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 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.Phase = ""
} else {
x.Phase = PodPhase(r.DecodeString())
}
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.Conditions = nil
} else {
yyv1598 := &x.Conditions
yym1599 := z.DecBinary()
_ = yym1599
if false {
} else {
h.decSlicePodCondition((*[]PodCondition)(yyv1598), d)
}
}
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.Message = ""
} else {
x.Message = string(r.DecodeString())
}
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.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
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.HostIP = ""
} else {
x.HostIP = string(r.DecodeString())
}
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.PodIP = ""
} else {
x.PodIP = string(r.DecodeString())
}
yyj1596++
if yyhl1596 {
yyb1596 = yyj1596 > l
} else {
yyb1596 = r.CheckBreak()
}
if yyb1596 {
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)
}
yym1605 := z.DecBinary()
_ = yym1605
if false {
} else if z.HasExtensions() && z.DecExt(x.StartTime) {
} else if yym1605 {
z.DecBinaryUnmarshal(x.StartTime)
} else if !yym1605 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.StartTime)
} else {
z.DecFallback(x.StartTime, false)
}
}
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.ContainerStatuses = nil
} else {
yyv1606 := &x.ContainerStatuses
yym1607 := z.DecBinary()
_ = yym1607
if false {
} else {
h.decSliceContainerStatus((*[]ContainerStatus)(yyv1606), d)
}
}
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 *PodStatusResult) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1608 := z.EncBinary()
_ = yym1608
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1609 := !z.EncBinary()
yy2arr1609 := z.EncBasicHandle().StructToArray
var yyq1609 [4]bool
_, _, _ = yysep1609, yyq1609, yy2arr1609
const yyr1609 bool = false
yyq1609[0] = x.Kind != ""
yyq1609[1] = x.APIVersion != ""
yyq1609[2] = true
yyq1609[3] = true
var yynn1609 int
if yyr1609 || yy2arr1609 {
r.EncodeArrayStart(4)
} else {
yynn1609 = 0
for _, b := range yyq1609 {
if b {
yynn1609++
}
}
r.EncodeMapStart(yynn1609)
yynn1609 = 0
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[0] {
yym1611 := z.EncBinary()
_ = yym1611
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1609[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1612 := z.EncBinary()
_ = yym1612
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[1] {
yym1614 := z.EncBinary()
_ = yym1614
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1609[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1615 := z.EncBinary()
_ = yym1615
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[2] {
yy1617 := &x.ObjectMeta
yy1617.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1609[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1618 := &x.ObjectMeta
yy1618.CodecEncodeSelf(e)
}
}
if yyr1609 || yy2arr1609 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1609[3] {
yy1620 := &x.Status
yy1620.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1609[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1621 := &x.Status
yy1621.CodecEncodeSelf(e)
}
}
if yyr1609 || yy2arr1609 {
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
yym1622 := z.DecBinary()
_ = yym1622
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1623 := r.ContainerType()
if yyct1623 == codecSelferValueTypeMap1234 {
yyl1623 := r.ReadMapStart()
if yyl1623 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1623, d)
}
} else if yyct1623 == codecSelferValueTypeArray1234 {
yyl1623 := r.ReadArrayStart()
if yyl1623 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1623, 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 yys1624Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1624Slc
var yyhl1624 bool = l >= 0
for yyj1624 := 0; ; yyj1624++ {
if yyhl1624 {
if yyj1624 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1624Slc = r.DecodeBytes(yys1624Slc, true, true)
yys1624 := string(yys1624Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1624 {
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 {
yyv1627 := &x.ObjectMeta
yyv1627.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1628 := &x.Status
yyv1628.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1624)
} // end switch yys1624
} // end for yyj1624
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 yyj1629 int
var yyb1629 bool
var yyhl1629 bool = l >= 0
yyj1629++
if yyhl1629 {
yyb1629 = yyj1629 > l
} else {
yyb1629 = r.CheckBreak()
}
if yyb1629 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1629++
if yyhl1629 {
yyb1629 = yyj1629 > l
} else {
yyb1629 = r.CheckBreak()
}
if yyb1629 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1629++
if yyhl1629 {
yyb1629 = yyj1629 > l
} else {
yyb1629 = r.CheckBreak()
}
if yyb1629 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1632 := &x.ObjectMeta
yyv1632.CodecDecodeSelf(d)
}
yyj1629++
if yyhl1629 {
yyb1629 = yyj1629 > l
} else {
yyb1629 = r.CheckBreak()
}
if yyb1629 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1633 := &x.Status
yyv1633.CodecDecodeSelf(d)
}
for {
yyj1629++
if yyhl1629 {
yyb1629 = yyj1629 > l
} else {
yyb1629 = r.CheckBreak()
}
if yyb1629 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1629-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 {
yym1634 := z.EncBinary()
_ = yym1634
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1635 := !z.EncBinary()
yy2arr1635 := z.EncBasicHandle().StructToArray
var yyq1635 [5]bool
_, _, _ = yysep1635, yyq1635, yy2arr1635
const yyr1635 bool = false
yyq1635[0] = x.Kind != ""
yyq1635[1] = x.APIVersion != ""
yyq1635[2] = true
yyq1635[3] = true
yyq1635[4] = true
var yynn1635 int
if yyr1635 || yy2arr1635 {
r.EncodeArrayStart(5)
} else {
yynn1635 = 0
for _, b := range yyq1635 {
if b {
yynn1635++
}
}
r.EncodeMapStart(yynn1635)
yynn1635 = 0
}
if yyr1635 || yy2arr1635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1635[0] {
yym1637 := z.EncBinary()
_ = yym1637
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1635[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1638 := z.EncBinary()
_ = yym1638
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1635 || yy2arr1635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1635[1] {
yym1640 := z.EncBinary()
_ = yym1640
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1635[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1641 := z.EncBinary()
_ = yym1641
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1635 || yy2arr1635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1635[2] {
yy1643 := &x.ObjectMeta
yy1643.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1635[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1644 := &x.ObjectMeta
yy1644.CodecEncodeSelf(e)
}
}
if yyr1635 || yy2arr1635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1635[3] {
yy1646 := &x.Spec
yy1646.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1635[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1647 := &x.Spec
yy1647.CodecEncodeSelf(e)
}
}
if yyr1635 || yy2arr1635 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1635[4] {
yy1649 := &x.Status
yy1649.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1635[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1650 := &x.Status
yy1650.CodecEncodeSelf(e)
}
}
if yyr1635 || yy2arr1635 {
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
yym1651 := z.DecBinary()
_ = yym1651
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1652 := r.ContainerType()
if yyct1652 == codecSelferValueTypeMap1234 {
yyl1652 := r.ReadMapStart()
if yyl1652 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1652, d)
}
} else if yyct1652 == codecSelferValueTypeArray1234 {
yyl1652 := r.ReadArrayStart()
if yyl1652 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1652, 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 yys1653Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1653Slc
var yyhl1653 bool = l >= 0
for yyj1653 := 0; ; yyj1653++ {
if yyhl1653 {
if yyj1653 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1653Slc = r.DecodeBytes(yys1653Slc, true, true)
yys1653 := string(yys1653Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1653 {
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 {
yyv1656 := &x.ObjectMeta
yyv1656.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1657 := &x.Spec
yyv1657.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = PodStatus{}
} else {
yyv1658 := &x.Status
yyv1658.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1653)
} // end switch yys1653
} // end for yyj1653
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 yyj1659 int
var yyb1659 bool
var yyhl1659 bool = l >= 0
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1659++
if yyhl1659 {
yyb1659 = yyj1659 > l
} else {
yyb1659 = r.CheckBreak()
}
if yyb1659 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1662 := &x.ObjectMeta
yyv1662.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() {
x.Spec = PodSpec{}
} else {
yyv1663 := &x.Spec
yyv1663.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() {
x.Status = PodStatus{}
} else {
yyv1664 := &x.Status
yyv1664.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 *PodTemplateSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1665 := z.EncBinary()
_ = yym1665
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1666 := !z.EncBinary()
yy2arr1666 := z.EncBasicHandle().StructToArray
var yyq1666 [2]bool
_, _, _ = yysep1666, yyq1666, yy2arr1666
const yyr1666 bool = false
yyq1666[0] = true
yyq1666[1] = true
var yynn1666 int
if yyr1666 || yy2arr1666 {
r.EncodeArrayStart(2)
} else {
yynn1666 = 0
for _, b := range yyq1666 {
if b {
yynn1666++
}
}
r.EncodeMapStart(yynn1666)
yynn1666 = 0
}
if yyr1666 || yy2arr1666 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1666[0] {
yy1668 := &x.ObjectMeta
yy1668.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1666[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1669 := &x.ObjectMeta
yy1669.CodecEncodeSelf(e)
}
}
if yyr1666 || yy2arr1666 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1666[1] {
yy1671 := &x.Spec
yy1671.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1666[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1672 := &x.Spec
yy1672.CodecEncodeSelf(e)
}
}
if yyr1666 || yy2arr1666 {
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
yym1673 := z.DecBinary()
_ = yym1673
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1674 := r.ContainerType()
if yyct1674 == codecSelferValueTypeMap1234 {
yyl1674 := r.ReadMapStart()
if yyl1674 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1674, d)
}
} else if yyct1674 == codecSelferValueTypeArray1234 {
yyl1674 := r.ReadArrayStart()
if yyl1674 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1674, 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 yys1675Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1675Slc
var yyhl1675 bool = l >= 0
for yyj1675 := 0; ; yyj1675++ {
if yyhl1675 {
if yyj1675 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1675Slc = r.DecodeBytes(yys1675Slc, true, true)
yys1675 := string(yys1675Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1675 {
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1676 := &x.ObjectMeta
yyv1676.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1677 := &x.Spec
yyv1677.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1675)
} // end switch yys1675
} // end for yyj1675
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 yyj1678 int
var yyb1678 bool
var yyhl1678 bool = l >= 0
yyj1678++
if yyhl1678 {
yyb1678 = yyj1678 > l
} else {
yyb1678 = r.CheckBreak()
}
if yyb1678 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1679 := &x.ObjectMeta
yyv1679.CodecDecodeSelf(d)
}
yyj1678++
if yyhl1678 {
yyb1678 = yyj1678 > l
} else {
yyb1678 = r.CheckBreak()
}
if yyb1678 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = PodSpec{}
} else {
yyv1680 := &x.Spec
yyv1680.CodecDecodeSelf(d)
}
for {
yyj1678++
if yyhl1678 {
yyb1678 = yyj1678 > l
} else {
yyb1678 = r.CheckBreak()
}
if yyb1678 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1678-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 {
yym1681 := z.EncBinary()
_ = yym1681
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1682 := !z.EncBinary()
yy2arr1682 := z.EncBasicHandle().StructToArray
var yyq1682 [4]bool
_, _, _ = yysep1682, yyq1682, yy2arr1682
const yyr1682 bool = false
yyq1682[0] = x.Kind != ""
yyq1682[1] = x.APIVersion != ""
yyq1682[2] = true
yyq1682[3] = true
var yynn1682 int
if yyr1682 || yy2arr1682 {
r.EncodeArrayStart(4)
} else {
yynn1682 = 0
for _, b := range yyq1682 {
if b {
yynn1682++
}
}
r.EncodeMapStart(yynn1682)
yynn1682 = 0
}
if yyr1682 || yy2arr1682 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1682[0] {
yym1684 := z.EncBinary()
_ = yym1684
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1682[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1685 := z.EncBinary()
_ = yym1685
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1682 || yy2arr1682 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1682[1] {
yym1687 := z.EncBinary()
_ = yym1687
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1682[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1688 := z.EncBinary()
_ = yym1688
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1682 || yy2arr1682 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1682[2] {
yy1690 := &x.ObjectMeta
yy1690.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1682[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1691 := &x.ObjectMeta
yy1691.CodecEncodeSelf(e)
}
}
if yyr1682 || yy2arr1682 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1682[3] {
yy1693 := &x.Template
yy1693.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1682[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("template"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1694 := &x.Template
yy1694.CodecEncodeSelf(e)
}
}
if yyr1682 || yy2arr1682 {
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
yym1695 := z.DecBinary()
_ = yym1695
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1696 := r.ContainerType()
if yyct1696 == codecSelferValueTypeMap1234 {
yyl1696 := r.ReadMapStart()
if yyl1696 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1696, d)
}
} else if yyct1696 == codecSelferValueTypeArray1234 {
yyl1696 := r.ReadArrayStart()
if yyl1696 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1696, 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 yys1697Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1697Slc
var yyhl1697 bool = l >= 0
for yyj1697 := 0; ; yyj1697++ {
if yyhl1697 {
if yyj1697 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1697Slc = r.DecodeBytes(yys1697Slc, true, true)
yys1697 := string(yys1697Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1697 {
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 {
yyv1700 := &x.ObjectMeta
yyv1700.CodecDecodeSelf(d)
}
case "template":
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv1701 := &x.Template
yyv1701.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1697)
} // end switch yys1697
} // end for yyj1697
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 yyj1702 int
var yyb1702 bool
var yyhl1702 bool = l >= 0
yyj1702++
if yyhl1702 {
yyb1702 = yyj1702 > l
} else {
yyb1702 = r.CheckBreak()
}
if yyb1702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1702++
if yyhl1702 {
yyb1702 = yyj1702 > l
} else {
yyb1702 = r.CheckBreak()
}
if yyb1702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1702++
if yyhl1702 {
yyb1702 = yyj1702 > l
} else {
yyb1702 = r.CheckBreak()
}
if yyb1702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1705 := &x.ObjectMeta
yyv1705.CodecDecodeSelf(d)
}
yyj1702++
if yyhl1702 {
yyb1702 = yyj1702 > l
} else {
yyb1702 = r.CheckBreak()
}
if yyb1702 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Template = PodTemplateSpec{}
} else {
yyv1706 := &x.Template
yyv1706.CodecDecodeSelf(d)
}
for {
yyj1702++
if yyhl1702 {
yyb1702 = yyj1702 > l
} else {
yyb1702 = r.CheckBreak()
}
if yyb1702 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1702-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 {
yym1707 := z.EncBinary()
_ = yym1707
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1708 := !z.EncBinary()
yy2arr1708 := z.EncBasicHandle().StructToArray
var yyq1708 [4]bool
_, _, _ = yysep1708, yyq1708, yy2arr1708
const yyr1708 bool = false
yyq1708[0] = x.Kind != ""
yyq1708[1] = x.APIVersion != ""
yyq1708[2] = true
var yynn1708 int
if yyr1708 || yy2arr1708 {
r.EncodeArrayStart(4)
} else {
yynn1708 = 1
for _, b := range yyq1708 {
if b {
yynn1708++
}
}
r.EncodeMapStart(yynn1708)
yynn1708 = 0
}
if yyr1708 || yy2arr1708 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1708[0] {
yym1710 := z.EncBinary()
_ = yym1710
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1708[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1711 := z.EncBinary()
_ = yym1711
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1708 || yy2arr1708 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1708[1] {
yym1713 := z.EncBinary()
_ = yym1713
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1708[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1714 := z.EncBinary()
_ = yym1714
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1708 || yy2arr1708 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1708[2] {
yy1716 := &x.ListMeta
yym1717 := z.EncBinary()
_ = yym1717
if false {
} else if z.HasExtensions() && z.EncExt(yy1716) {
} else {
z.EncFallback(yy1716)
}
} else {
r.EncodeNil()
}
} else {
if yyq1708[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1718 := &x.ListMeta
yym1719 := z.EncBinary()
_ = yym1719
if false {
} else if z.HasExtensions() && z.EncExt(yy1718) {
} else {
z.EncFallback(yy1718)
}
}
}
if yyr1708 || yy2arr1708 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1721 := z.EncBinary()
_ = yym1721
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 {
yym1722 := z.EncBinary()
_ = yym1722
if false {
} else {
h.encSlicePodTemplate(([]PodTemplate)(x.Items), e)
}
}
}
if yyr1708 || yy2arr1708 {
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
yym1723 := z.DecBinary()
_ = yym1723
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1724 := r.ContainerType()
if yyct1724 == codecSelferValueTypeMap1234 {
yyl1724 := r.ReadMapStart()
if yyl1724 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1724, d)
}
} else if yyct1724 == codecSelferValueTypeArray1234 {
yyl1724 := r.ReadArrayStart()
if yyl1724 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1724, 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 yys1725Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1725Slc
var yyhl1725 bool = l >= 0
for yyj1725 := 0; ; yyj1725++ {
if yyhl1725 {
if yyj1725 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1725Slc = r.DecodeBytes(yys1725Slc, true, true)
yys1725 := string(yys1725Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1725 {
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 {
yyv1728 := &x.ListMeta
yym1729 := z.DecBinary()
_ = yym1729
if false {
} else if z.HasExtensions() && z.DecExt(yyv1728) {
} else {
z.DecFallback(yyv1728, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1730 := &x.Items
yym1731 := z.DecBinary()
_ = yym1731
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv1730), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1725)
} // end switch yys1725
} // end for yyj1725
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 yyj1732 int
var yyb1732 bool
var yyhl1732 bool = l >= 0
yyj1732++
if yyhl1732 {
yyb1732 = yyj1732 > l
} else {
yyb1732 = r.CheckBreak()
}
if yyb1732 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1732++
if yyhl1732 {
yyb1732 = yyj1732 > l
} else {
yyb1732 = r.CheckBreak()
}
if yyb1732 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1732++
if yyhl1732 {
yyb1732 = yyj1732 > l
} else {
yyb1732 = r.CheckBreak()
}
if yyb1732 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1735 := &x.ListMeta
yym1736 := z.DecBinary()
_ = yym1736
if false {
} else if z.HasExtensions() && z.DecExt(yyv1735) {
} else {
z.DecFallback(yyv1735, false)
}
}
yyj1732++
if yyhl1732 {
yyb1732 = yyj1732 > l
} else {
yyb1732 = r.CheckBreak()
}
if yyb1732 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1737 := &x.Items
yym1738 := z.DecBinary()
_ = yym1738
if false {
} else {
h.decSlicePodTemplate((*[]PodTemplate)(yyv1737), d)
}
}
for {
yyj1732++
if yyhl1732 {
yyb1732 = yyj1732 > l
} else {
yyb1732 = r.CheckBreak()
}
if yyb1732 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1732-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 {
yym1739 := z.EncBinary()
_ = yym1739
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1740 := !z.EncBinary()
yy2arr1740 := z.EncBasicHandle().StructToArray
var yyq1740 [3]bool
_, _, _ = yysep1740, yyq1740, yy2arr1740
const yyr1740 bool = false
yyq1740[2] = x.Template != nil
var yynn1740 int
if yyr1740 || yy2arr1740 {
r.EncodeArrayStart(3)
} else {
yynn1740 = 2
for _, b := range yyq1740 {
if b {
yynn1740++
}
}
r.EncodeMapStart(yynn1740)
yynn1740 = 0
}
if yyr1740 || yy2arr1740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1742 := z.EncBinary()
_ = yym1742
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1743 := z.EncBinary()
_ = yym1743
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr1740 || yy2arr1740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym1745 := z.EncBinary()
_ = yym1745
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 {
yym1746 := z.EncBinary()
_ = yym1746
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr1740 || yy2arr1740 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1740[2] {
if x.Template == nil {
r.EncodeNil()
} else {
x.Template.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq1740[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 yyr1740 || yy2arr1740 {
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
yym1748 := z.DecBinary()
_ = yym1748
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1749 := r.ContainerType()
if yyct1749 == codecSelferValueTypeMap1234 {
yyl1749 := r.ReadMapStart()
if yyl1749 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1749, d)
}
} else if yyct1749 == codecSelferValueTypeArray1234 {
yyl1749 := r.ReadArrayStart()
if yyl1749 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1749, 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 yys1750Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1750Slc
var yyhl1750 bool = l >= 0
for yyj1750 := 0; ; yyj1750++ {
if yyhl1750 {
if yyj1750 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1750Slc = r.DecodeBytes(yys1750Slc, true, true)
yys1750 := string(yys1750Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1750 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1752 := &x.Selector
yym1753 := z.DecBinary()
_ = yym1753
if false {
} else {
z.F.DecMapStringStringX(yyv1752, 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, yys1750)
} // end switch yys1750
} // end for yyj1750
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 yyj1755 int
var yyb1755 bool
var yyhl1755 bool = l >= 0
yyj1755++
if yyhl1755 {
yyb1755 = yyj1755 > l
} else {
yyb1755 = r.CheckBreak()
}
if yyb1755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1755++
if yyhl1755 {
yyb1755 = yyj1755 > l
} else {
yyb1755 = r.CheckBreak()
}
if yyb1755 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1757 := &x.Selector
yym1758 := z.DecBinary()
_ = yym1758
if false {
} else {
z.F.DecMapStringStringX(yyv1757, false, d)
}
}
yyj1755++
if yyhl1755 {
yyb1755 = yyj1755 > l
} else {
yyb1755 = r.CheckBreak()
}
if yyb1755 {
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 {
yyj1755++
if yyhl1755 {
yyb1755 = yyj1755 > l
} else {
yyb1755 = r.CheckBreak()
}
if yyb1755 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1755-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 {
yym1760 := z.EncBinary()
_ = yym1760
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1761 := !z.EncBinary()
yy2arr1761 := z.EncBasicHandle().StructToArray
var yyq1761 [2]bool
_, _, _ = yysep1761, yyq1761, yy2arr1761
const yyr1761 bool = false
yyq1761[1] = x.ObservedGeneration != 0
var yynn1761 int
if yyr1761 || yy2arr1761 {
r.EncodeArrayStart(2)
} else {
yynn1761 = 1
for _, b := range yyq1761 {
if b {
yynn1761++
}
}
r.EncodeMapStart(yynn1761)
yynn1761 = 0
}
if yyr1761 || yy2arr1761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1763 := z.EncBinary()
_ = yym1763
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("replicas"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1764 := z.EncBinary()
_ = yym1764
if false {
} else {
r.EncodeInt(int64(x.Replicas))
}
}
if yyr1761 || yy2arr1761 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1761[1] {
yym1766 := z.EncBinary()
_ = yym1766
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq1761[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("observedGeneration"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1767 := z.EncBinary()
_ = yym1767
if false {
} else {
r.EncodeInt(int64(x.ObservedGeneration))
}
}
}
if yyr1761 || yy2arr1761 {
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
yym1768 := z.DecBinary()
_ = yym1768
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1769 := r.ContainerType()
if yyct1769 == codecSelferValueTypeMap1234 {
yyl1769 := r.ReadMapStart()
if yyl1769 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1769, d)
}
} else if yyct1769 == codecSelferValueTypeArray1234 {
yyl1769 := r.ReadArrayStart()
if yyl1769 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1769, 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 yys1770Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1770Slc
var yyhl1770 bool = l >= 0
for yyj1770 := 0; ; yyj1770++ {
if yyhl1770 {
if yyj1770 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1770Slc = r.DecodeBytes(yys1770Slc, true, true)
yys1770 := string(yys1770Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1770 {
case "replicas":
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
case "observedGeneration":
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
default:
z.DecStructFieldNotFound(-1, yys1770)
} // end switch yys1770
} // end for yyj1770
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 yyj1773 int
var yyb1773 bool
var yyhl1773 bool = l >= 0
yyj1773++
if yyhl1773 {
yyb1773 = yyj1773 > l
} else {
yyb1773 = r.CheckBreak()
}
if yyb1773 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Replicas = 0
} else {
x.Replicas = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1773++
if yyhl1773 {
yyb1773 = yyj1773 > l
} else {
yyb1773 = r.CheckBreak()
}
if yyb1773 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObservedGeneration = 0
} else {
x.ObservedGeneration = int64(r.DecodeInt(64))
}
for {
yyj1773++
if yyhl1773 {
yyb1773 = yyj1773 > l
} else {
yyb1773 = r.CheckBreak()
}
if yyb1773 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1773-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 {
yym1776 := z.EncBinary()
_ = yym1776
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1777 := !z.EncBinary()
yy2arr1777 := z.EncBasicHandle().StructToArray
var yyq1777 [5]bool
_, _, _ = yysep1777, yyq1777, yy2arr1777
const yyr1777 bool = false
yyq1777[0] = x.Kind != ""
yyq1777[1] = x.APIVersion != ""
yyq1777[2] = true
yyq1777[3] = true
yyq1777[4] = true
var yynn1777 int
if yyr1777 || yy2arr1777 {
r.EncodeArrayStart(5)
} else {
yynn1777 = 0
for _, b := range yyq1777 {
if b {
yynn1777++
}
}
r.EncodeMapStart(yynn1777)
yynn1777 = 0
}
if yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[0] {
yym1779 := z.EncBinary()
_ = yym1779
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1777[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1780 := z.EncBinary()
_ = yym1780
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[1] {
yym1782 := z.EncBinary()
_ = yym1782
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1777[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1783 := z.EncBinary()
_ = yym1783
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[2] {
yy1785 := &x.ObjectMeta
yy1785.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1777[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1786 := &x.ObjectMeta
yy1786.CodecEncodeSelf(e)
}
}
if yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[3] {
yy1788 := &x.Spec
yy1788.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1777[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1789 := &x.Spec
yy1789.CodecEncodeSelf(e)
}
}
if yyr1777 || yy2arr1777 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1777[4] {
yy1791 := &x.Status
yy1791.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1777[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1792 := &x.Status
yy1792.CodecEncodeSelf(e)
}
}
if yyr1777 || yy2arr1777 {
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
yym1793 := z.DecBinary()
_ = yym1793
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1794 := r.ContainerType()
if yyct1794 == codecSelferValueTypeMap1234 {
yyl1794 := r.ReadMapStart()
if yyl1794 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1794, d)
}
} else if yyct1794 == codecSelferValueTypeArray1234 {
yyl1794 := r.ReadArrayStart()
if yyl1794 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1794, 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 yys1795Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1795Slc
var yyhl1795 bool = l >= 0
for yyj1795 := 0; ; yyj1795++ {
if yyhl1795 {
if yyj1795 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1795Slc = r.DecodeBytes(yys1795Slc, true, true)
yys1795 := string(yys1795Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1795 {
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 {
yyv1798 := &x.ObjectMeta
yyv1798.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv1799 := &x.Spec
yyv1799.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv1800 := &x.Status
yyv1800.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1795)
} // end switch yys1795
} // end for yyj1795
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 yyj1801 int
var yyb1801 bool
var yyhl1801 bool = l >= 0
yyj1801++
if yyhl1801 {
yyb1801 = yyj1801 > l
} else {
yyb1801 = r.CheckBreak()
}
if yyb1801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1801++
if yyhl1801 {
yyb1801 = yyj1801 > l
} else {
yyb1801 = r.CheckBreak()
}
if yyb1801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1801++
if yyhl1801 {
yyb1801 = yyj1801 > l
} else {
yyb1801 = r.CheckBreak()
}
if yyb1801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv1804 := &x.ObjectMeta
yyv1804.CodecDecodeSelf(d)
}
yyj1801++
if yyhl1801 {
yyb1801 = yyj1801 > l
} else {
yyb1801 = r.CheckBreak()
}
if yyb1801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ReplicationControllerSpec{}
} else {
yyv1805 := &x.Spec
yyv1805.CodecDecodeSelf(d)
}
yyj1801++
if yyhl1801 {
yyb1801 = yyj1801 > l
} else {
yyb1801 = r.CheckBreak()
}
if yyb1801 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ReplicationControllerStatus{}
} else {
yyv1806 := &x.Status
yyv1806.CodecDecodeSelf(d)
}
for {
yyj1801++
if yyhl1801 {
yyb1801 = yyj1801 > l
} else {
yyb1801 = r.CheckBreak()
}
if yyb1801 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1801-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 {
yym1807 := z.EncBinary()
_ = yym1807
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1808 := !z.EncBinary()
yy2arr1808 := z.EncBasicHandle().StructToArray
var yyq1808 [4]bool
_, _, _ = yysep1808, yyq1808, yy2arr1808
const yyr1808 bool = false
yyq1808[0] = x.Kind != ""
yyq1808[1] = x.APIVersion != ""
yyq1808[2] = true
var yynn1808 int
if yyr1808 || yy2arr1808 {
r.EncodeArrayStart(4)
} else {
yynn1808 = 1
for _, b := range yyq1808 {
if b {
yynn1808++
}
}
r.EncodeMapStart(yynn1808)
yynn1808 = 0
}
if yyr1808 || yy2arr1808 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1808[0] {
yym1810 := z.EncBinary()
_ = yym1810
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1808[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1811 := z.EncBinary()
_ = yym1811
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1808 || yy2arr1808 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1808[1] {
yym1813 := z.EncBinary()
_ = yym1813
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1808[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1814 := z.EncBinary()
_ = yym1814
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1808 || yy2arr1808 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1808[2] {
yy1816 := &x.ListMeta
yym1817 := z.EncBinary()
_ = yym1817
if false {
} else if z.HasExtensions() && z.EncExt(yy1816) {
} else {
z.EncFallback(yy1816)
}
} else {
r.EncodeNil()
}
} else {
if yyq1808[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1818 := &x.ListMeta
yym1819 := z.EncBinary()
_ = yym1819
if false {
} else if z.HasExtensions() && z.EncExt(yy1818) {
} else {
z.EncFallback(yy1818)
}
}
}
if yyr1808 || yy2arr1808 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1821 := z.EncBinary()
_ = yym1821
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 {
yym1822 := z.EncBinary()
_ = yym1822
if false {
} else {
h.encSliceReplicationController(([]ReplicationController)(x.Items), e)
}
}
}
if yyr1808 || yy2arr1808 {
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
yym1823 := z.DecBinary()
_ = yym1823
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1824 := r.ContainerType()
if yyct1824 == codecSelferValueTypeMap1234 {
yyl1824 := r.ReadMapStart()
if yyl1824 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1824, d)
}
} else if yyct1824 == codecSelferValueTypeArray1234 {
yyl1824 := r.ReadArrayStart()
if yyl1824 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1824, 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 yys1825Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1825Slc
var yyhl1825 bool = l >= 0
for yyj1825 := 0; ; yyj1825++ {
if yyhl1825 {
if yyj1825 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1825Slc = r.DecodeBytes(yys1825Slc, true, true)
yys1825 := string(yys1825Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1825 {
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 {
yyv1828 := &x.ListMeta
yym1829 := z.DecBinary()
_ = yym1829
if false {
} else if z.HasExtensions() && z.DecExt(yyv1828) {
} else {
z.DecFallback(yyv1828, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1830 := &x.Items
yym1831 := z.DecBinary()
_ = yym1831
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv1830), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1825)
} // end switch yys1825
} // end for yyj1825
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 yyj1832 int
var yyb1832 bool
var yyhl1832 bool = l >= 0
yyj1832++
if yyhl1832 {
yyb1832 = yyj1832 > l
} else {
yyb1832 = r.CheckBreak()
}
if yyb1832 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1832++
if yyhl1832 {
yyb1832 = yyj1832 > l
} else {
yyb1832 = r.CheckBreak()
}
if yyb1832 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1832++
if yyhl1832 {
yyb1832 = yyj1832 > l
} else {
yyb1832 = r.CheckBreak()
}
if yyb1832 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1835 := &x.ListMeta
yym1836 := z.DecBinary()
_ = yym1836
if false {
} else if z.HasExtensions() && z.DecExt(yyv1835) {
} else {
z.DecFallback(yyv1835, false)
}
}
yyj1832++
if yyhl1832 {
yyb1832 = yyj1832 > l
} else {
yyb1832 = r.CheckBreak()
}
if yyb1832 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1837 := &x.Items
yym1838 := z.DecBinary()
_ = yym1838
if false {
} else {
h.decSliceReplicationController((*[]ReplicationController)(yyv1837), d)
}
}
for {
yyj1832++
if yyhl1832 {
yyb1832 = yyj1832 > l
} else {
yyb1832 = r.CheckBreak()
}
if yyb1832 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1832-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 {
yym1839 := z.EncBinary()
_ = yym1839
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1840 := !z.EncBinary()
yy2arr1840 := z.EncBasicHandle().StructToArray
var yyq1840 [4]bool
_, _, _ = yysep1840, yyq1840, yy2arr1840
const yyr1840 bool = false
yyq1840[0] = x.Kind != ""
yyq1840[1] = x.APIVersion != ""
yyq1840[2] = true
var yynn1840 int
if yyr1840 || yy2arr1840 {
r.EncodeArrayStart(4)
} else {
yynn1840 = 1
for _, b := range yyq1840 {
if b {
yynn1840++
}
}
r.EncodeMapStart(yynn1840)
yynn1840 = 0
}
if yyr1840 || yy2arr1840 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1840[0] {
yym1842 := z.EncBinary()
_ = yym1842
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1840[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1843 := z.EncBinary()
_ = yym1843
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1840 || yy2arr1840 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1840[1] {
yym1845 := z.EncBinary()
_ = yym1845
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1840[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1846 := z.EncBinary()
_ = yym1846
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1840 || yy2arr1840 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1840[2] {
yy1848 := &x.ListMeta
yym1849 := z.EncBinary()
_ = yym1849
if false {
} else if z.HasExtensions() && z.EncExt(yy1848) {
} else {
z.EncFallback(yy1848)
}
} else {
r.EncodeNil()
}
} else {
if yyq1840[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1850 := &x.ListMeta
yym1851 := z.EncBinary()
_ = yym1851
if false {
} else if z.HasExtensions() && z.EncExt(yy1850) {
} else {
z.EncFallback(yy1850)
}
}
}
if yyr1840 || yy2arr1840 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym1853 := z.EncBinary()
_ = yym1853
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 {
yym1854 := z.EncBinary()
_ = yym1854
if false {
} else {
h.encSliceService(([]Service)(x.Items), e)
}
}
}
if yyr1840 || yy2arr1840 {
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
yym1855 := z.DecBinary()
_ = yym1855
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1856 := r.ContainerType()
if yyct1856 == codecSelferValueTypeMap1234 {
yyl1856 := r.ReadMapStart()
if yyl1856 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1856, d)
}
} else if yyct1856 == codecSelferValueTypeArray1234 {
yyl1856 := r.ReadArrayStart()
if yyl1856 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1856, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ServiceList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys1857Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1857Slc
var yyhl1857 bool = l >= 0
for yyj1857 := 0; ; yyj1857++ {
if yyhl1857 {
if yyj1857 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1857Slc = r.DecodeBytes(yys1857Slc, true, true)
yys1857 := string(yys1857Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1857 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1860 := &x.ListMeta
yym1861 := z.DecBinary()
_ = yym1861
if false {
} else if z.HasExtensions() && z.DecExt(yyv1860) {
} else {
z.DecFallback(yyv1860, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1862 := &x.Items
yym1863 := z.DecBinary()
_ = yym1863
if false {
} else {
h.decSliceService((*[]Service)(yyv1862), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1857)
} // end switch yys1857
} // end for yyj1857
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 yyj1864 int
var yyb1864 bool
var yyhl1864 bool = l >= 0
yyj1864++
if yyhl1864 {
yyb1864 = yyj1864 > l
} else {
yyb1864 = r.CheckBreak()
}
if yyb1864 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj1864++
if yyhl1864 {
yyb1864 = yyj1864 > l
} else {
yyb1864 = r.CheckBreak()
}
if yyb1864 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj1864++
if yyhl1864 {
yyb1864 = yyj1864 > l
} else {
yyb1864 = r.CheckBreak()
}
if yyb1864 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv1867 := &x.ListMeta
yym1868 := z.DecBinary()
_ = yym1868
if false {
} else if z.HasExtensions() && z.DecExt(yyv1867) {
} else {
z.DecFallback(yyv1867, false)
}
}
yyj1864++
if yyhl1864 {
yyb1864 = yyj1864 > l
} else {
yyb1864 = r.CheckBreak()
}
if yyb1864 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv1869 := &x.Items
yym1870 := z.DecBinary()
_ = yym1870
if false {
} else {
h.decSliceService((*[]Service)(yyv1869), d)
}
}
for {
yyj1864++
if yyhl1864 {
yyb1864 = yyj1864 > l
} else {
yyb1864 = r.CheckBreak()
}
if yyb1864 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1864-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ServiceAffinity) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym1871 := z.EncBinary()
_ = yym1871
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
yym1872 := z.DecBinary()
_ = yym1872
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
yym1873 := z.EncBinary()
_ = yym1873
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
yym1874 := z.DecBinary()
_ = yym1874
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 {
yym1875 := z.EncBinary()
_ = yym1875
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1876 := !z.EncBinary()
yy2arr1876 := z.EncBasicHandle().StructToArray
var yyq1876 [1]bool
_, _, _ = yysep1876, yyq1876, yy2arr1876
const yyr1876 bool = false
yyq1876[0] = true
var yynn1876 int
if yyr1876 || yy2arr1876 {
r.EncodeArrayStart(1)
} else {
yynn1876 = 0
for _, b := range yyq1876 {
if b {
yynn1876++
}
}
r.EncodeMapStart(yynn1876)
yynn1876 = 0
}
if yyr1876 || yy2arr1876 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1876[0] {
yy1878 := &x.LoadBalancer
yy1878.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1876[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancer"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1879 := &x.LoadBalancer
yy1879.CodecEncodeSelf(e)
}
}
if yyr1876 || yy2arr1876 {
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
yym1880 := z.DecBinary()
_ = yym1880
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1881 := r.ContainerType()
if yyct1881 == codecSelferValueTypeMap1234 {
yyl1881 := r.ReadMapStart()
if yyl1881 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1881, d)
}
} else if yyct1881 == codecSelferValueTypeArray1234 {
yyl1881 := r.ReadArrayStart()
if yyl1881 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1881, 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 yys1882Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1882Slc
var yyhl1882 bool = l >= 0
for yyj1882 := 0; ; yyj1882++ {
if yyhl1882 {
if yyj1882 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1882Slc = r.DecodeBytes(yys1882Slc, true, true)
yys1882 := string(yys1882Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1882 {
case "loadBalancer":
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv1883 := &x.LoadBalancer
yyv1883.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys1882)
} // end switch yys1882
} // end for yyj1882
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 yyj1884 int
var yyb1884 bool
var yyhl1884 bool = l >= 0
yyj1884++
if yyhl1884 {
yyb1884 = yyj1884 > l
} else {
yyb1884 = r.CheckBreak()
}
if yyb1884 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancer = LoadBalancerStatus{}
} else {
yyv1885 := &x.LoadBalancer
yyv1885.CodecDecodeSelf(d)
}
for {
yyj1884++
if yyhl1884 {
yyb1884 = yyj1884 > l
} else {
yyb1884 = r.CheckBreak()
}
if yyb1884 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1884-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 {
yym1886 := z.EncBinary()
_ = yym1886
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1887 := !z.EncBinary()
yy2arr1887 := z.EncBasicHandle().StructToArray
var yyq1887 [1]bool
_, _, _ = yysep1887, yyq1887, yy2arr1887
const yyr1887 bool = false
yyq1887[0] = len(x.Ingress) != 0
var yynn1887 int
if yyr1887 || yy2arr1887 {
r.EncodeArrayStart(1)
} else {
yynn1887 = 0
for _, b := range yyq1887 {
if b {
yynn1887++
}
}
r.EncodeMapStart(yynn1887)
yynn1887 = 0
}
if yyr1887 || yy2arr1887 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1887[0] {
if x.Ingress == nil {
r.EncodeNil()
} else {
yym1889 := z.EncBinary()
_ = yym1889
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1887[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ingress"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Ingress == nil {
r.EncodeNil()
} else {
yym1890 := z.EncBinary()
_ = yym1890
if false {
} else {
h.encSliceLoadBalancerIngress(([]LoadBalancerIngress)(x.Ingress), e)
}
}
}
}
if yyr1887 || yy2arr1887 {
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
yym1891 := z.DecBinary()
_ = yym1891
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1892 := r.ContainerType()
if yyct1892 == codecSelferValueTypeMap1234 {
yyl1892 := r.ReadMapStart()
if yyl1892 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1892, d)
}
} else if yyct1892 == codecSelferValueTypeArray1234 {
yyl1892 := r.ReadArrayStart()
if yyl1892 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1892, 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 yys1893Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1893Slc
var yyhl1893 bool = l >= 0
for yyj1893 := 0; ; yyj1893++ {
if yyhl1893 {
if yyj1893 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1893Slc = r.DecodeBytes(yys1893Slc, true, true)
yys1893 := string(yys1893Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1893 {
case "ingress":
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv1894 := &x.Ingress
yym1895 := z.DecBinary()
_ = yym1895
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1894), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys1893)
} // end switch yys1893
} // end for yyj1893
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 yyj1896 int
var yyb1896 bool
var yyhl1896 bool = l >= 0
yyj1896++
if yyhl1896 {
yyb1896 = yyj1896 > l
} else {
yyb1896 = r.CheckBreak()
}
if yyb1896 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ingress = nil
} else {
yyv1897 := &x.Ingress
yym1898 := z.DecBinary()
_ = yym1898
if false {
} else {
h.decSliceLoadBalancerIngress((*[]LoadBalancerIngress)(yyv1897), d)
}
}
for {
yyj1896++
if yyhl1896 {
yyb1896 = yyj1896 > l
} else {
yyb1896 = r.CheckBreak()
}
if yyb1896 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1896-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 {
yym1899 := z.EncBinary()
_ = yym1899
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1900 := !z.EncBinary()
yy2arr1900 := z.EncBasicHandle().StructToArray
var yyq1900 [2]bool
_, _, _ = yysep1900, yyq1900, yy2arr1900
const yyr1900 bool = false
yyq1900[0] = x.IP != ""
yyq1900[1] = x.Hostname != ""
var yynn1900 int
if yyr1900 || yy2arr1900 {
r.EncodeArrayStart(2)
} else {
yynn1900 = 0
for _, b := range yyq1900 {
if b {
yynn1900++
}
}
r.EncodeMapStart(yynn1900)
yynn1900 = 0
}
if yyr1900 || yy2arr1900 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1900[0] {
yym1902 := z.EncBinary()
_ = yym1902
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1900[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("ip"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1903 := z.EncBinary()
_ = yym1903
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
}
if yyr1900 || yy2arr1900 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1900[1] {
yym1905 := z.EncBinary()
_ = yym1905
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1900[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("hostname"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1906 := z.EncBinary()
_ = yym1906
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Hostname))
}
}
}
if yyr1900 || yy2arr1900 {
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
yym1907 := z.DecBinary()
_ = yym1907
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1908 := r.ContainerType()
if yyct1908 == codecSelferValueTypeMap1234 {
yyl1908 := r.ReadMapStart()
if yyl1908 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1908, d)
}
} else if yyct1908 == codecSelferValueTypeArray1234 {
yyl1908 := r.ReadArrayStart()
if yyl1908 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1908, 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 yys1909Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1909Slc
var yyhl1909 bool = l >= 0
for yyj1909 := 0; ; yyj1909++ {
if yyhl1909 {
if yyj1909 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1909Slc = r.DecodeBytes(yys1909Slc, true, true)
yys1909 := string(yys1909Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1909 {
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, yys1909)
} // end switch yys1909
} // end for yyj1909
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 yyj1912 int
var yyb1912 bool
var yyhl1912 bool = l >= 0
yyj1912++
if yyhl1912 {
yyb1912 = yyj1912 > l
} else {
yyb1912 = r.CheckBreak()
}
if yyb1912 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj1912++
if yyhl1912 {
yyb1912 = yyj1912 > l
} else {
yyb1912 = r.CheckBreak()
}
if yyb1912 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hostname = ""
} else {
x.Hostname = string(r.DecodeString())
}
for {
yyj1912++
if yyhl1912 {
yyb1912 = yyj1912 > l
} else {
yyb1912 = r.CheckBreak()
}
if yyb1912 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1912-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ServiceSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym1915 := z.EncBinary()
_ = yym1915
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1916 := !z.EncBinary()
yy2arr1916 := z.EncBasicHandle().StructToArray
var yyq1916 [7]bool
_, _, _ = yysep1916, yyq1916, yy2arr1916
const yyr1916 bool = false
yyq1916[0] = x.Type != ""
yyq1916[3] = x.ClusterIP != ""
yyq1916[4] = len(x.ExternalIPs) != 0
yyq1916[5] = x.LoadBalancerIP != ""
yyq1916[6] = x.SessionAffinity != ""
var yynn1916 int
if yyr1916 || yy2arr1916 {
r.EncodeArrayStart(7)
} else {
yynn1916 = 2
for _, b := range yyq1916 {
if b {
yynn1916++
}
}
r.EncodeMapStart(yynn1916)
yynn1916 = 0
}
if yyr1916 || yy2arr1916 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1916[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1916[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr1916 || yy2arr1916 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym1919 := z.EncBinary()
_ = yym1919
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 {
yym1920 := z.EncBinary()
_ = yym1920
if false {
} else {
h.encSliceServicePort(([]ServicePort)(x.Ports), e)
}
}
}
if yyr1916 || yy2arr1916 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Selector == nil {
r.EncodeNil()
} else {
yym1922 := z.EncBinary()
_ = yym1922
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 {
yym1923 := z.EncBinary()
_ = yym1923
if false {
} else {
z.F.EncMapStringStringV(x.Selector, false, e)
}
}
}
if yyr1916 || yy2arr1916 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1916[3] {
yym1925 := z.EncBinary()
_ = yym1925
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1916[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("clusterIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1926 := z.EncBinary()
_ = yym1926
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ClusterIP))
}
}
}
if yyr1916 || yy2arr1916 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1916[4] {
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym1928 := z.EncBinary()
_ = yym1928
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq1916[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalIPs"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ExternalIPs == nil {
r.EncodeNil()
} else {
yym1929 := z.EncBinary()
_ = yym1929
if false {
} else {
z.F.EncSliceStringV(x.ExternalIPs, false, e)
}
}
}
}
if yyr1916 || yy2arr1916 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1916[5] {
yym1931 := z.EncBinary()
_ = yym1931
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1916[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("loadBalancerIP"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1932 := z.EncBinary()
_ = yym1932
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.LoadBalancerIP))
}
}
}
if yyr1916 || yy2arr1916 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1916[6] {
x.SessionAffinity.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1916[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("sessionAffinity"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.SessionAffinity.CodecEncodeSelf(e)
}
}
if yyr1916 || yy2arr1916 {
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
yym1934 := z.DecBinary()
_ = yym1934
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct1935 := r.ContainerType()
if yyct1935 == codecSelferValueTypeMap1234 {
yyl1935 := r.ReadMapStart()
if yyl1935 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl1935, d)
}
} else if yyct1935 == codecSelferValueTypeArray1234 {
yyl1935 := r.ReadArrayStart()
if yyl1935 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl1935, 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 yys1936Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys1936Slc
var yyhl1936 bool = l >= 0
for yyj1936 := 0; ; yyj1936++ {
if yyhl1936 {
if yyj1936 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys1936Slc = r.DecodeBytes(yys1936Slc, true, true)
yys1936 := string(yys1936Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys1936 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
case "ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1938 := &x.Ports
yym1939 := z.DecBinary()
_ = yym1939
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv1938), d)
}
}
case "selector":
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1940 := &x.Selector
yym1941 := z.DecBinary()
_ = yym1941
if false {
} else {
z.F.DecMapStringStringX(yyv1940, false, d)
}
}
case "clusterIP":
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
case "externalIPs":
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv1943 := &x.ExternalIPs
yym1944 := z.DecBinary()
_ = yym1944
if false {
} else {
z.F.DecSliceStringX(yyv1943, false, d)
}
}
case "loadBalancerIP":
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
case "sessionAffinity":
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys1936)
} // end switch yys1936
} // end for yyj1936
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 yyj1947 int
var yyb1947 bool
var yyhl1947 bool = l >= 0
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ServiceType(r.DecodeString())
}
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv1949 := &x.Ports
yym1950 := z.DecBinary()
_ = yym1950
if false {
} else {
h.decSliceServicePort((*[]ServicePort)(yyv1949), d)
}
}
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Selector = nil
} else {
yyv1951 := &x.Selector
yym1952 := z.DecBinary()
_ = yym1952
if false {
} else {
z.F.DecMapStringStringX(yyv1951, false, d)
}
}
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ClusterIP = ""
} else {
x.ClusterIP = string(r.DecodeString())
}
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalIPs = nil
} else {
yyv1954 := &x.ExternalIPs
yym1955 := z.DecBinary()
_ = yym1955
if false {
} else {
z.F.DecSliceStringX(yyv1954, false, d)
}
}
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LoadBalancerIP = ""
} else {
x.LoadBalancerIP = string(r.DecodeString())
}
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.SessionAffinity = ""
} else {
x.SessionAffinity = ServiceAffinity(r.DecodeString())
}
for {
yyj1947++
if yyhl1947 {
yyb1947 = yyj1947 > l
} else {
yyb1947 = r.CheckBreak()
}
if yyb1947 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1947-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 {
yym1958 := z.EncBinary()
_ = yym1958
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1959 := !z.EncBinary()
yy2arr1959 := z.EncBasicHandle().StructToArray
var yyq1959 [5]bool
_, _, _ = yysep1959, yyq1959, yy2arr1959
const yyr1959 bool = false
var yynn1959 int
if yyr1959 || yy2arr1959 {
r.EncodeArrayStart(5)
} else {
yynn1959 = 5
for _, b := range yyq1959 {
if b {
yynn1959++
}
}
r.EncodeMapStart(yynn1959)
yynn1959 = 0
}
if yyr1959 || yy2arr1959 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1961 := z.EncBinary()
_ = yym1961
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)
yym1962 := z.EncBinary()
_ = yym1962
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr1959 || yy2arr1959 {
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 yyr1959 || yy2arr1959 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1965 := z.EncBinary()
_ = yym1965
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1966 := z.EncBinary()
_ = yym1966
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr1959 || yy2arr1959 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy1968 := &x.TargetPort
yym1969 := z.EncBinary()
_ = yym1969
if false {
} else if z.HasExtensions() && z.EncExt(yy1968) {
} else if !yym1969 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1968)
} else {
z.EncFallback(yy1968)
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("targetPort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy1970 := &x.TargetPort
yym1971 := z.EncBinary()
_ = yym1971
if false {
} else if z.HasExtensions() && z.EncExt(yy1970) {
} else if !yym1971 && z.IsJSONHandle() {
z.EncJSONMarshal(yy1970)
} else {
z.EncFallback(yy1970)
}
}
if yyr1959 || yy2arr1959 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym1973 := z.EncBinary()
_ = yym1973
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodePort"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1974 := z.EncBinary()
_ = yym1974
if false {
} else {
r.EncodeInt(int64(x.NodePort))
}
}
if yyr1959 || yy2arr1959 {
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
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 *ServicePort) 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 "name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
case "port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
case "targetPort":
if r.TryDecodeAsNil() {
x.TargetPort = pkg5_intstr.IntOrString{}
} else {
yyv1981 := &x.TargetPort
yym1982 := z.DecBinary()
_ = yym1982
if false {
} else if z.HasExtensions() && z.DecExt(yyv1981) {
} else if !yym1982 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1981)
} else {
z.DecFallback(yyv1981, false)
}
}
case "nodePort":
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys1977)
} // end switch yys1977
} // end for yyj1977
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 yyj1984 int
var yyb1984 bool
var yyhl1984 bool = l >= 0
yyj1984++
if yyhl1984 {
yyb1984 = yyj1984 > l
} else {
yyb1984 = r.CheckBreak()
}
if yyb1984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj1984++
if yyhl1984 {
yyb1984 = yyj1984 > l
} else {
yyb1984 = r.CheckBreak()
}
if yyb1984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
yyj1984++
if yyhl1984 {
yyb1984 = yyj1984 > l
} else {
yyb1984 = r.CheckBreak()
}
if yyb1984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj1984++
if yyhl1984 {
yyb1984 = yyj1984 > l
} else {
yyb1984 = r.CheckBreak()
}
if yyb1984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TargetPort = pkg5_intstr.IntOrString{}
} else {
yyv1988 := &x.TargetPort
yym1989 := z.DecBinary()
_ = yym1989
if false {
} else if z.HasExtensions() && z.DecExt(yyv1988) {
} else if !yym1989 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv1988)
} else {
z.DecFallback(yyv1988, false)
}
}
yyj1984++
if yyhl1984 {
yyb1984 = yyj1984 > l
} else {
yyb1984 = r.CheckBreak()
}
if yyb1984 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodePort = 0
} else {
x.NodePort = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj1984++
if yyhl1984 {
yyb1984 = yyj1984 > l
} else {
yyb1984 = r.CheckBreak()
}
if yyb1984 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj1984-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 {
yym1991 := z.EncBinary()
_ = yym1991
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep1992 := !z.EncBinary()
yy2arr1992 := z.EncBasicHandle().StructToArray
var yyq1992 [5]bool
_, _, _ = yysep1992, yyq1992, yy2arr1992
const yyr1992 bool = false
yyq1992[0] = x.Kind != ""
yyq1992[1] = x.APIVersion != ""
yyq1992[2] = true
yyq1992[3] = true
yyq1992[4] = true
var yynn1992 int
if yyr1992 || yy2arr1992 {
r.EncodeArrayStart(5)
} else {
yynn1992 = 0
for _, b := range yyq1992 {
if b {
yynn1992++
}
}
r.EncodeMapStart(yynn1992)
yynn1992 = 0
}
if yyr1992 || yy2arr1992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1992[0] {
yym1994 := z.EncBinary()
_ = yym1994
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1992[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1995 := z.EncBinary()
_ = yym1995
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr1992 || yy2arr1992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1992[1] {
yym1997 := z.EncBinary()
_ = yym1997
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq1992[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym1998 := z.EncBinary()
_ = yym1998
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr1992 || yy2arr1992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1992[2] {
yy2000 := &x.ObjectMeta
yy2000.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1992[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2001 := &x.ObjectMeta
yy2001.CodecEncodeSelf(e)
}
}
if yyr1992 || yy2arr1992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1992[3] {
yy2003 := &x.Spec
yy2003.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1992[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2004 := &x.Spec
yy2004.CodecEncodeSelf(e)
}
}
if yyr1992 || yy2arr1992 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq1992[4] {
yy2006 := &x.Status
yy2006.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq1992[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2007 := &x.Status
yy2007.CodecEncodeSelf(e)
}
}
if yyr1992 || yy2arr1992 {
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
yym2008 := z.DecBinary()
_ = yym2008
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2009 := r.ContainerType()
if yyct2009 == codecSelferValueTypeMap1234 {
yyl2009 := r.ReadMapStart()
if yyl2009 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2009, d)
}
} else if yyct2009 == codecSelferValueTypeArray1234 {
yyl2009 := r.ReadArrayStart()
if yyl2009 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2009, 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 yys2010Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2010Slc
var yyhl2010 bool = l >= 0
for yyj2010 := 0; ; yyj2010++ {
if yyhl2010 {
if yyj2010 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2010Slc = r.DecodeBytes(yys2010Slc, true, true)
yys2010 := string(yys2010Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2010 {
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 {
yyv2013 := &x.ObjectMeta
yyv2013.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2014 := &x.Spec
yyv2014.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2015 := &x.Status
yyv2015.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2010)
} // end switch yys2010
} // end for yyj2010
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 yyj2016 int
var yyb2016 bool
var yyhl2016 bool = l >= 0
yyj2016++
if yyhl2016 {
yyb2016 = yyj2016 > l
} else {
yyb2016 = r.CheckBreak()
}
if yyb2016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2016++
if yyhl2016 {
yyb2016 = yyj2016 > l
} else {
yyb2016 = r.CheckBreak()
}
if yyb2016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2016++
if yyhl2016 {
yyb2016 = yyj2016 > l
} else {
yyb2016 = r.CheckBreak()
}
if yyb2016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2019 := &x.ObjectMeta
yyv2019.CodecDecodeSelf(d)
}
yyj2016++
if yyhl2016 {
yyb2016 = yyj2016 > l
} else {
yyb2016 = r.CheckBreak()
}
if yyb2016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ServiceSpec{}
} else {
yyv2020 := &x.Spec
yyv2020.CodecDecodeSelf(d)
}
yyj2016++
if yyhl2016 {
yyb2016 = yyj2016 > l
} else {
yyb2016 = r.CheckBreak()
}
if yyb2016 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ServiceStatus{}
} else {
yyv2021 := &x.Status
yyv2021.CodecDecodeSelf(d)
}
for {
yyj2016++
if yyhl2016 {
yyb2016 = yyj2016 > l
} else {
yyb2016 = r.CheckBreak()
}
if yyb2016 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2016-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 {
yym2022 := z.EncBinary()
_ = yym2022
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2023 := !z.EncBinary()
yy2arr2023 := z.EncBasicHandle().StructToArray
var yyq2023 [5]bool
_, _, _ = yysep2023, yyq2023, yy2arr2023
const yyr2023 bool = false
yyq2023[0] = x.Kind != ""
yyq2023[1] = x.APIVersion != ""
yyq2023[2] = true
yyq2023[4] = len(x.ImagePullSecrets) != 0
var yynn2023 int
if yyr2023 || yy2arr2023 {
r.EncodeArrayStart(5)
} else {
yynn2023 = 1
for _, b := range yyq2023 {
if b {
yynn2023++
}
}
r.EncodeMapStart(yynn2023)
yynn2023 = 0
}
if yyr2023 || yy2arr2023 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2023[0] {
yym2025 := z.EncBinary()
_ = yym2025
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2023[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2026 := z.EncBinary()
_ = yym2026
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2023 || yy2arr2023 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2023[1] {
yym2028 := z.EncBinary()
_ = yym2028
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2023[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2029 := z.EncBinary()
_ = yym2029
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2023 || yy2arr2023 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2023[2] {
yy2031 := &x.ObjectMeta
yy2031.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2023[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2032 := &x.ObjectMeta
yy2032.CodecEncodeSelf(e)
}
}
if yyr2023 || yy2arr2023 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Secrets == nil {
r.EncodeNil()
} else {
yym2034 := z.EncBinary()
_ = yym2034
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 {
yym2035 := z.EncBinary()
_ = yym2035
if false {
} else {
h.encSliceObjectReference(([]ObjectReference)(x.Secrets), e)
}
}
}
if yyr2023 || yy2arr2023 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2023[4] {
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2037 := z.EncBinary()
_ = yym2037
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2023[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("imagePullSecrets"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.ImagePullSecrets == nil {
r.EncodeNil()
} else {
yym2038 := z.EncBinary()
_ = yym2038
if false {
} else {
h.encSliceLocalObjectReference(([]LocalObjectReference)(x.ImagePullSecrets), e)
}
}
}
}
if yyr2023 || yy2arr2023 {
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
yym2039 := z.DecBinary()
_ = yym2039
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2040 := r.ContainerType()
if yyct2040 == codecSelferValueTypeMap1234 {
yyl2040 := r.ReadMapStart()
if yyl2040 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2040, d)
}
} else if yyct2040 == codecSelferValueTypeArray1234 {
yyl2040 := r.ReadArrayStart()
if yyl2040 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2040, 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 yys2041Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2041Slc
var yyhl2041 bool = l >= 0
for yyj2041 := 0; ; yyj2041++ {
if yyhl2041 {
if yyj2041 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2041Slc = r.DecodeBytes(yys2041Slc, true, true)
yys2041 := string(yys2041Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2041 {
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 {
yyv2044 := &x.ObjectMeta
yyv2044.CodecDecodeSelf(d)
}
case "secrets":
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2045 := &x.Secrets
yym2046 := z.DecBinary()
_ = yym2046
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2045), d)
}
}
case "imagePullSecrets":
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2047 := &x.ImagePullSecrets
yym2048 := z.DecBinary()
_ = yym2048
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2047), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2041)
} // end switch yys2041
} // end for yyj2041
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 yyj2049 int
var yyb2049 bool
var yyhl2049 bool = l >= 0
yyj2049++
if yyhl2049 {
yyb2049 = yyj2049 > l
} else {
yyb2049 = r.CheckBreak()
}
if yyb2049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2049++
if yyhl2049 {
yyb2049 = yyj2049 > l
} else {
yyb2049 = r.CheckBreak()
}
if yyb2049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2049++
if yyhl2049 {
yyb2049 = yyj2049 > l
} else {
yyb2049 = r.CheckBreak()
}
if yyb2049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2052 := &x.ObjectMeta
yyv2052.CodecDecodeSelf(d)
}
yyj2049++
if yyhl2049 {
yyb2049 = yyj2049 > l
} else {
yyb2049 = r.CheckBreak()
}
if yyb2049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Secrets = nil
} else {
yyv2053 := &x.Secrets
yym2054 := z.DecBinary()
_ = yym2054
if false {
} else {
h.decSliceObjectReference((*[]ObjectReference)(yyv2053), d)
}
}
yyj2049++
if yyhl2049 {
yyb2049 = yyj2049 > l
} else {
yyb2049 = r.CheckBreak()
}
if yyb2049 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ImagePullSecrets = nil
} else {
yyv2055 := &x.ImagePullSecrets
yym2056 := z.DecBinary()
_ = yym2056
if false {
} else {
h.decSliceLocalObjectReference((*[]LocalObjectReference)(yyv2055), d)
}
}
for {
yyj2049++
if yyhl2049 {
yyb2049 = yyj2049 > l
} else {
yyb2049 = r.CheckBreak()
}
if yyb2049 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2049-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 {
yym2057 := z.EncBinary()
_ = yym2057
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2058 := !z.EncBinary()
yy2arr2058 := z.EncBasicHandle().StructToArray
var yyq2058 [4]bool
_, _, _ = yysep2058, yyq2058, yy2arr2058
const yyr2058 bool = false
yyq2058[0] = x.Kind != ""
yyq2058[1] = x.APIVersion != ""
yyq2058[2] = true
var yynn2058 int
if yyr2058 || yy2arr2058 {
r.EncodeArrayStart(4)
} else {
yynn2058 = 1
for _, b := range yyq2058 {
if b {
yynn2058++
}
}
r.EncodeMapStart(yynn2058)
yynn2058 = 0
}
if yyr2058 || yy2arr2058 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2058[0] {
yym2060 := z.EncBinary()
_ = yym2060
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2058[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2061 := z.EncBinary()
_ = yym2061
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2058 || yy2arr2058 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2058[1] {
yym2063 := z.EncBinary()
_ = yym2063
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2058[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2064 := z.EncBinary()
_ = yym2064
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2058 || yy2arr2058 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2058[2] {
yy2066 := &x.ListMeta
yym2067 := z.EncBinary()
_ = yym2067
if false {
} else if z.HasExtensions() && z.EncExt(yy2066) {
} else {
z.EncFallback(yy2066)
}
} else {
r.EncodeNil()
}
} else {
if yyq2058[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2068 := &x.ListMeta
yym2069 := z.EncBinary()
_ = yym2069
if false {
} else if z.HasExtensions() && z.EncExt(yy2068) {
} else {
z.EncFallback(yy2068)
}
}
}
if yyr2058 || yy2arr2058 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2071 := z.EncBinary()
_ = yym2071
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 {
yym2072 := z.EncBinary()
_ = yym2072
if false {
} else {
h.encSliceServiceAccount(([]ServiceAccount)(x.Items), e)
}
}
}
if yyr2058 || yy2arr2058 {
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
yym2073 := z.DecBinary()
_ = yym2073
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2074 := r.ContainerType()
if yyct2074 == codecSelferValueTypeMap1234 {
yyl2074 := r.ReadMapStart()
if yyl2074 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2074, d)
}
} else if yyct2074 == codecSelferValueTypeArray1234 {
yyl2074 := r.ReadArrayStart()
if yyl2074 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2074, 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 yys2075Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2075Slc
var yyhl2075 bool = l >= 0
for yyj2075 := 0; ; yyj2075++ {
if yyhl2075 {
if yyj2075 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2075Slc = r.DecodeBytes(yys2075Slc, true, true)
yys2075 := string(yys2075Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2075 {
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 {
yyv2078 := &x.ListMeta
yym2079 := z.DecBinary()
_ = yym2079
if false {
} else if z.HasExtensions() && z.DecExt(yyv2078) {
} else {
z.DecFallback(yyv2078, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2080 := &x.Items
yym2081 := z.DecBinary()
_ = yym2081
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2080), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2075)
} // end switch yys2075
} // end for yyj2075
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 yyj2082 int
var yyb2082 bool
var yyhl2082 bool = l >= 0
yyj2082++
if yyhl2082 {
yyb2082 = yyj2082 > l
} else {
yyb2082 = r.CheckBreak()
}
if yyb2082 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2082++
if yyhl2082 {
yyb2082 = yyj2082 > l
} else {
yyb2082 = r.CheckBreak()
}
if yyb2082 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2082++
if yyhl2082 {
yyb2082 = yyj2082 > l
} else {
yyb2082 = r.CheckBreak()
}
if yyb2082 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2085 := &x.ListMeta
yym2086 := z.DecBinary()
_ = yym2086
if false {
} else if z.HasExtensions() && z.DecExt(yyv2085) {
} else {
z.DecFallback(yyv2085, false)
}
}
yyj2082++
if yyhl2082 {
yyb2082 = yyj2082 > l
} else {
yyb2082 = r.CheckBreak()
}
if yyb2082 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2087 := &x.Items
yym2088 := z.DecBinary()
_ = yym2088
if false {
} else {
h.decSliceServiceAccount((*[]ServiceAccount)(yyv2087), d)
}
}
for {
yyj2082++
if yyhl2082 {
yyb2082 = yyj2082 > l
} else {
yyb2082 = r.CheckBreak()
}
if yyb2082 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2082-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 {
yym2089 := z.EncBinary()
_ = yym2089
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2090 := !z.EncBinary()
yy2arr2090 := z.EncBasicHandle().StructToArray
var yyq2090 [4]bool
_, _, _ = yysep2090, yyq2090, yy2arr2090
const yyr2090 bool = false
yyq2090[0] = x.Kind != ""
yyq2090[1] = x.APIVersion != ""
yyq2090[2] = true
var yynn2090 int
if yyr2090 || yy2arr2090 {
r.EncodeArrayStart(4)
} else {
yynn2090 = 1
for _, b := range yyq2090 {
if b {
yynn2090++
}
}
r.EncodeMapStart(yynn2090)
yynn2090 = 0
}
if yyr2090 || yy2arr2090 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2090[0] {
yym2092 := z.EncBinary()
_ = yym2092
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2090[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2093 := z.EncBinary()
_ = yym2093
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2090 || yy2arr2090 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2090[1] {
yym2095 := z.EncBinary()
_ = yym2095
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2090[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2096 := z.EncBinary()
_ = yym2096
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2090 || yy2arr2090 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2090[2] {
yy2098 := &x.ObjectMeta
yy2098.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2090[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2099 := &x.ObjectMeta
yy2099.CodecEncodeSelf(e)
}
}
if yyr2090 || yy2arr2090 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Subsets == nil {
r.EncodeNil()
} else {
yym2101 := z.EncBinary()
_ = yym2101
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 {
yym2102 := z.EncBinary()
_ = yym2102
if false {
} else {
h.encSliceEndpointSubset(([]EndpointSubset)(x.Subsets), e)
}
}
}
if yyr2090 || yy2arr2090 {
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
yym2103 := z.DecBinary()
_ = yym2103
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2104 := r.ContainerType()
if yyct2104 == codecSelferValueTypeMap1234 {
yyl2104 := r.ReadMapStart()
if yyl2104 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2104, d)
}
} else if yyct2104 == codecSelferValueTypeArray1234 {
yyl2104 := r.ReadArrayStart()
if yyl2104 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2104, 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 yys2105Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2105Slc
var yyhl2105 bool = l >= 0
for yyj2105 := 0; ; yyj2105++ {
if yyhl2105 {
if yyj2105 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2105Slc = r.DecodeBytes(yys2105Slc, true, true)
yys2105 := string(yys2105Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2105 {
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 {
yyv2108 := &x.ObjectMeta
yyv2108.CodecDecodeSelf(d)
}
case "Subsets":
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2109 := &x.Subsets
yym2110 := z.DecBinary()
_ = yym2110
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2109), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2105)
} // end switch yys2105
} // end for yyj2105
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 yyj2111 int
var yyb2111 bool
var yyhl2111 bool = l >= 0
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2114 := &x.ObjectMeta
yyv2114.CodecDecodeSelf(d)
}
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Subsets = nil
} else {
yyv2115 := &x.Subsets
yym2116 := z.DecBinary()
_ = yym2116
if false {
} else {
h.decSliceEndpointSubset((*[]EndpointSubset)(yyv2115), d)
}
}
for {
yyj2111++
if yyhl2111 {
yyb2111 = yyj2111 > l
} else {
yyb2111 = r.CheckBreak()
}
if yyb2111 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2111-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EndpointSubset) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2117 := z.EncBinary()
_ = yym2117
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2118 := !z.EncBinary()
yy2arr2118 := z.EncBasicHandle().StructToArray
var yyq2118 [3]bool
_, _, _ = yysep2118, yyq2118, yy2arr2118
const yyr2118 bool = false
var yynn2118 int
if yyr2118 || yy2arr2118 {
r.EncodeArrayStart(3)
} else {
yynn2118 = 3
for _, b := range yyq2118 {
if b {
yynn2118++
}
}
r.EncodeMapStart(yynn2118)
yynn2118 = 0
}
if yyr2118 || yy2arr2118 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2120 := z.EncBinary()
_ = yym2120
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 {
yym2121 := z.EncBinary()
_ = yym2121
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.Addresses), e)
}
}
}
if yyr2118 || yy2arr2118 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.NotReadyAddresses == nil {
r.EncodeNil()
} else {
yym2123 := z.EncBinary()
_ = yym2123
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 {
yym2124 := z.EncBinary()
_ = yym2124
if false {
} else {
h.encSliceEndpointAddress(([]EndpointAddress)(x.NotReadyAddresses), e)
}
}
}
if yyr2118 || yy2arr2118 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Ports == nil {
r.EncodeNil()
} else {
yym2126 := z.EncBinary()
_ = yym2126
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 {
yym2127 := z.EncBinary()
_ = yym2127
if false {
} else {
h.encSliceEndpointPort(([]EndpointPort)(x.Ports), e)
}
}
}
if yyr2118 || yy2arr2118 {
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
yym2128 := z.DecBinary()
_ = yym2128
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2129 := r.ContainerType()
if yyct2129 == codecSelferValueTypeMap1234 {
yyl2129 := r.ReadMapStart()
if yyl2129 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2129, d)
}
} else if yyct2129 == codecSelferValueTypeArray1234 {
yyl2129 := r.ReadArrayStart()
if yyl2129 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2129, 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 yys2130Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2130Slc
var yyhl2130 bool = l >= 0
for yyj2130 := 0; ; yyj2130++ {
if yyhl2130 {
if yyj2130 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2130Slc = r.DecodeBytes(yys2130Slc, true, true)
yys2130 := string(yys2130Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2130 {
case "Addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2131 := &x.Addresses
yym2132 := z.DecBinary()
_ = yym2132
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2131), d)
}
}
case "NotReadyAddresses":
if r.TryDecodeAsNil() {
x.NotReadyAddresses = nil
} else {
yyv2133 := &x.NotReadyAddresses
yym2134 := z.DecBinary()
_ = yym2134
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2133), d)
}
}
case "Ports":
if r.TryDecodeAsNil() {
x.Ports = nil
} else {
yyv2135 := &x.Ports
yym2136 := z.DecBinary()
_ = yym2136
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2135), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2130)
} // end switch yys2130
} // end for yyj2130
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 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.Addresses = nil
} else {
yyv2138 := &x.Addresses
yym2139 := z.DecBinary()
_ = yym2139
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2138), 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() {
x.NotReadyAddresses = nil
} else {
yyv2140 := &x.NotReadyAddresses
yym2141 := z.DecBinary()
_ = yym2141
if false {
} else {
h.decSliceEndpointAddress((*[]EndpointAddress)(yyv2140), 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() {
x.Ports = nil
} else {
yyv2142 := &x.Ports
yym2143 := z.DecBinary()
_ = yym2143
if false {
} else {
h.decSliceEndpointPort((*[]EndpointPort)(yyv2142), d)
}
}
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 *EndpointAddress) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2144 := z.EncBinary()
_ = yym2144
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2145 := !z.EncBinary()
yy2arr2145 := z.EncBasicHandle().StructToArray
var yyq2145 [2]bool
_, _, _ = yysep2145, yyq2145, yy2arr2145
const yyr2145 bool = false
var yynn2145 int
if yyr2145 || yy2arr2145 {
r.EncodeArrayStart(2)
} else {
yynn2145 = 2
for _, b := range yyq2145 {
if b {
yynn2145++
}
}
r.EncodeMapStart(yynn2145)
yynn2145 = 0
}
if yyr2145 || yy2arr2145 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2147 := z.EncBinary()
_ = yym2147
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)
yym2148 := z.EncBinary()
_ = yym2148
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.IP))
}
}
if yyr2145 || yy2arr2145 {
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 yyr2145 || yy2arr2145 {
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
yym2150 := z.DecBinary()
_ = yym2150
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2151 := r.ContainerType()
if yyct2151 == codecSelferValueTypeMap1234 {
yyl2151 := r.ReadMapStart()
if yyl2151 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2151, d)
}
} else if yyct2151 == codecSelferValueTypeArray1234 {
yyl2151 := r.ReadArrayStart()
if yyl2151 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2151, 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 yys2152Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2152Slc
var yyhl2152 bool = l >= 0
for yyj2152 := 0; ; yyj2152++ {
if yyhl2152 {
if yyj2152 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2152Slc = r.DecodeBytes(yys2152Slc, true, true)
yys2152 := string(yys2152Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2152 {
case "IP":
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
case "TargetRef":
if r.TryDecodeAsNil() {
if x.TargetRef != nil {
x.TargetRef = nil
}
} else {
if x.TargetRef == nil {
x.TargetRef = new(ObjectReference)
}
x.TargetRef.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2152)
} // end switch yys2152
} // end for yyj2152
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 yyj2155 int
var yyb2155 bool
var yyhl2155 bool = l >= 0
yyj2155++
if yyhl2155 {
yyb2155 = yyj2155 > l
} else {
yyb2155 = r.CheckBreak()
}
if yyb2155 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.IP = ""
} else {
x.IP = string(r.DecodeString())
}
yyj2155++
if yyhl2155 {
yyb2155 = yyj2155 > l
} else {
yyb2155 = r.CheckBreak()
}
if yyb2155 {
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 {
yyj2155++
if yyhl2155 {
yyb2155 = yyj2155 > l
} else {
yyb2155 = r.CheckBreak()
}
if yyb2155 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2155-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 {
yym2158 := z.EncBinary()
_ = yym2158
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2159 := !z.EncBinary()
yy2arr2159 := z.EncBasicHandle().StructToArray
var yyq2159 [3]bool
_, _, _ = yysep2159, yyq2159, yy2arr2159
const yyr2159 bool = false
var yynn2159 int
if yyr2159 || yy2arr2159 {
r.EncodeArrayStart(3)
} else {
yynn2159 = 3
for _, b := range yyq2159 {
if b {
yynn2159++
}
}
r.EncodeMapStart(yynn2159)
yynn2159 = 0
}
if yyr2159 || yy2arr2159 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2161 := z.EncBinary()
_ = yym2161
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)
yym2162 := z.EncBinary()
_ = yym2162
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2159 || yy2arr2159 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2164 := z.EncBinary()
_ = yym2164
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2165 := z.EncBinary()
_ = yym2165
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2159 || yy2arr2159 {
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 yyr2159 || yy2arr2159 {
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
yym2167 := z.DecBinary()
_ = yym2167
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2168 := r.ContainerType()
if yyct2168 == codecSelferValueTypeMap1234 {
yyl2168 := r.ReadMapStart()
if yyl2168 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2168, d)
}
} else if yyct2168 == codecSelferValueTypeArray1234 {
yyl2168 := r.ReadArrayStart()
if yyl2168 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2168, 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 yys2169Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2169Slc
var yyhl2169 bool = l >= 0
for yyj2169 := 0; ; yyj2169++ {
if yyhl2169 {
if yyj2169 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2169Slc = r.DecodeBytes(yys2169Slc, true, true)
yys2169 := string(yys2169Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2169 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
case "Protocol":
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2169)
} // end switch yys2169
} // end for yyj2169
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 yyj2173 int
var yyb2173 bool
var yyhl2173 bool = l >= 0
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Protocol = ""
} else {
x.Protocol = Protocol(r.DecodeString())
}
for {
yyj2173++
if yyhl2173 {
yyb2173 = yyj2173 > l
} else {
yyb2173 = r.CheckBreak()
}
if yyb2173 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2173-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *EndpointsList) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2177 := z.EncBinary()
_ = yym2177
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2178 := !z.EncBinary()
yy2arr2178 := z.EncBasicHandle().StructToArray
var yyq2178 [4]bool
_, _, _ = yysep2178, yyq2178, yy2arr2178
const yyr2178 bool = false
yyq2178[0] = x.Kind != ""
yyq2178[1] = x.APIVersion != ""
yyq2178[2] = true
var yynn2178 int
if yyr2178 || yy2arr2178 {
r.EncodeArrayStart(4)
} else {
yynn2178 = 1
for _, b := range yyq2178 {
if b {
yynn2178++
}
}
r.EncodeMapStart(yynn2178)
yynn2178 = 0
}
if yyr2178 || yy2arr2178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2178[0] {
yym2180 := z.EncBinary()
_ = yym2180
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2178[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2181 := z.EncBinary()
_ = yym2181
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2178 || yy2arr2178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2178[1] {
yym2183 := z.EncBinary()
_ = yym2183
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2178[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2184 := z.EncBinary()
_ = yym2184
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2178 || yy2arr2178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2178[2] {
yy2186 := &x.ListMeta
yym2187 := z.EncBinary()
_ = yym2187
if false {
} else if z.HasExtensions() && z.EncExt(yy2186) {
} else {
z.EncFallback(yy2186)
}
} else {
r.EncodeNil()
}
} else {
if yyq2178[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2188 := &x.ListMeta
yym2189 := z.EncBinary()
_ = yym2189
if false {
} else if z.HasExtensions() && z.EncExt(yy2188) {
} else {
z.EncFallback(yy2188)
}
}
}
if yyr2178 || yy2arr2178 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2191 := z.EncBinary()
_ = yym2191
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 {
yym2192 := z.EncBinary()
_ = yym2192
if false {
} else {
h.encSliceEndpoints(([]Endpoints)(x.Items), e)
}
}
}
if yyr2178 || yy2arr2178 {
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
yym2193 := z.DecBinary()
_ = yym2193
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2194 := r.ContainerType()
if yyct2194 == codecSelferValueTypeMap1234 {
yyl2194 := r.ReadMapStart()
if yyl2194 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2194, d)
}
} else if yyct2194 == codecSelferValueTypeArray1234 {
yyl2194 := r.ReadArrayStart()
if yyl2194 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2194, 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 yys2195Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2195Slc
var yyhl2195 bool = l >= 0
for yyj2195 := 0; ; yyj2195++ {
if yyhl2195 {
if yyj2195 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2195Slc = r.DecodeBytes(yys2195Slc, true, true)
yys2195 := string(yys2195Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2195 {
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 {
yyv2198 := &x.ListMeta
yym2199 := z.DecBinary()
_ = yym2199
if false {
} else if z.HasExtensions() && z.DecExt(yyv2198) {
} else {
z.DecFallback(yyv2198, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2200 := &x.Items
yym2201 := z.DecBinary()
_ = yym2201
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2200), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2195)
} // end switch yys2195
} // end for yyj2195
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 yyj2202 int
var yyb2202 bool
var yyhl2202 bool = l >= 0
yyj2202++
if yyhl2202 {
yyb2202 = yyj2202 > l
} else {
yyb2202 = r.CheckBreak()
}
if yyb2202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2202++
if yyhl2202 {
yyb2202 = yyj2202 > l
} else {
yyb2202 = r.CheckBreak()
}
if yyb2202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2202++
if yyhl2202 {
yyb2202 = yyj2202 > l
} else {
yyb2202 = r.CheckBreak()
}
if yyb2202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2205 := &x.ListMeta
yym2206 := z.DecBinary()
_ = yym2206
if false {
} else if z.HasExtensions() && z.DecExt(yyv2205) {
} else {
z.DecFallback(yyv2205, false)
}
}
yyj2202++
if yyhl2202 {
yyb2202 = yyj2202 > l
} else {
yyb2202 = r.CheckBreak()
}
if yyb2202 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2207 := &x.Items
yym2208 := z.DecBinary()
_ = yym2208
if false {
} else {
h.decSliceEndpoints((*[]Endpoints)(yyv2207), d)
}
}
for {
yyj2202++
if yyhl2202 {
yyb2202 = yyj2202 > l
} else {
yyb2202 = r.CheckBreak()
}
if yyb2202 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2202-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 {
yym2209 := z.EncBinary()
_ = yym2209
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2210 := !z.EncBinary()
yy2arr2210 := z.EncBasicHandle().StructToArray
var yyq2210 [4]bool
_, _, _ = yysep2210, yyq2210, yy2arr2210
const yyr2210 bool = false
yyq2210[0] = x.PodCIDR != ""
yyq2210[1] = x.ExternalID != ""
yyq2210[2] = x.ProviderID != ""
yyq2210[3] = x.Unschedulable != false
var yynn2210 int
if yyr2210 || yy2arr2210 {
r.EncodeArrayStart(4)
} else {
yynn2210 = 0
for _, b := range yyq2210 {
if b {
yynn2210++
}
}
r.EncodeMapStart(yynn2210)
yynn2210 = 0
}
if yyr2210 || yy2arr2210 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2210[0] {
yym2212 := z.EncBinary()
_ = yym2212
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2210[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("podCIDR"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2213 := z.EncBinary()
_ = yym2213
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.PodCIDR))
}
}
}
if yyr2210 || yy2arr2210 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2210[1] {
yym2215 := z.EncBinary()
_ = yym2215
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2210[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("externalID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2216 := z.EncBinary()
_ = yym2216
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ExternalID))
}
}
}
if yyr2210 || yy2arr2210 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2210[2] {
yym2218 := z.EncBinary()
_ = yym2218
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2210[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("providerID"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2219 := z.EncBinary()
_ = yym2219
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ProviderID))
}
}
}
if yyr2210 || yy2arr2210 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2210[3] {
yym2221 := z.EncBinary()
_ = yym2221
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2210[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("unschedulable"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2222 := z.EncBinary()
_ = yym2222
if false {
} else {
r.EncodeBool(bool(x.Unschedulable))
}
}
}
if yyr2210 || yy2arr2210 {
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
yym2223 := z.DecBinary()
_ = yym2223
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2224 := r.ContainerType()
if yyct2224 == codecSelferValueTypeMap1234 {
yyl2224 := r.ReadMapStart()
if yyl2224 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2224, d)
}
} else if yyct2224 == codecSelferValueTypeArray1234 {
yyl2224 := r.ReadArrayStart()
if yyl2224 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2224, 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 yys2225Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2225Slc
var yyhl2225 bool = l >= 0
for yyj2225 := 0; ; yyj2225++ {
if yyhl2225 {
if yyj2225 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2225Slc = r.DecodeBytes(yys2225Slc, true, true)
yys2225 := string(yys2225Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2225 {
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, yys2225)
} // end switch yys2225
} // end for yyj2225
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 yyj2230 int
var yyb2230 bool
var yyhl2230 bool = l >= 0
yyj2230++
if yyhl2230 {
yyb2230 = yyj2230 > l
} else {
yyb2230 = r.CheckBreak()
}
if yyb2230 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.PodCIDR = ""
} else {
x.PodCIDR = string(r.DecodeString())
}
yyj2230++
if yyhl2230 {
yyb2230 = yyj2230 > l
} else {
yyb2230 = r.CheckBreak()
}
if yyb2230 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ExternalID = ""
} else {
x.ExternalID = string(r.DecodeString())
}
yyj2230++
if yyhl2230 {
yyb2230 = yyj2230 > l
} else {
yyb2230 = r.CheckBreak()
}
if yyb2230 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ProviderID = ""
} else {
x.ProviderID = string(r.DecodeString())
}
yyj2230++
if yyhl2230 {
yyb2230 = yyj2230 > l
} else {
yyb2230 = r.CheckBreak()
}
if yyb2230 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Unschedulable = false
} else {
x.Unschedulable = bool(r.DecodeBool())
}
for {
yyj2230++
if yyhl2230 {
yyb2230 = yyj2230 > l
} else {
yyb2230 = r.CheckBreak()
}
if yyb2230 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2230-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 {
yym2235 := z.EncBinary()
_ = yym2235
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2236 := !z.EncBinary()
yy2arr2236 := z.EncBasicHandle().StructToArray
var yyq2236 [1]bool
_, _, _ = yysep2236, yyq2236, yy2arr2236
const yyr2236 bool = false
var yynn2236 int
if yyr2236 || yy2arr2236 {
r.EncodeArrayStart(1)
} else {
yynn2236 = 1
for _, b := range yyq2236 {
if b {
yynn2236++
}
}
r.EncodeMapStart(yynn2236)
yynn2236 = 0
}
if yyr2236 || yy2arr2236 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2238 := z.EncBinary()
_ = yym2238
if false {
} else {
r.EncodeInt(int64(x.Port))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Port"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2239 := z.EncBinary()
_ = yym2239
if false {
} else {
r.EncodeInt(int64(x.Port))
}
}
if yyr2236 || yy2arr2236 {
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
yym2240 := z.DecBinary()
_ = yym2240
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2241 := r.ContainerType()
if yyct2241 == codecSelferValueTypeMap1234 {
yyl2241 := r.ReadMapStart()
if yyl2241 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2241, d)
}
} else if yyct2241 == codecSelferValueTypeArray1234 {
yyl2241 := r.ReadArrayStart()
if yyl2241 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2241, 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 yys2242Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2242Slc
var yyhl2242 bool = l >= 0
for yyj2242 := 0; ; yyj2242++ {
if yyhl2242 {
if yyj2242 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2242Slc = r.DecodeBytes(yys2242Slc, true, true)
yys2242 := string(yys2242Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2242 {
case "Port":
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
default:
z.DecStructFieldNotFound(-1, yys2242)
} // end switch yys2242
} // end for yyj2242
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 yyj2244 int
var yyb2244 bool
var yyhl2244 bool = l >= 0
yyj2244++
if yyhl2244 {
yyb2244 = yyj2244 > l
} else {
yyb2244 = r.CheckBreak()
}
if yyb2244 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Port = 0
} else {
x.Port = int(r.DecodeInt(codecSelferBitsize1234))
}
for {
yyj2244++
if yyhl2244 {
yyb2244 = yyj2244 > l
} else {
yyb2244 = r.CheckBreak()
}
if yyb2244 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2244-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 {
yym2246 := z.EncBinary()
_ = yym2246
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2247 := !z.EncBinary()
yy2arr2247 := z.EncBasicHandle().StructToArray
var yyq2247 [1]bool
_, _, _ = yysep2247, yyq2247, yy2arr2247
const yyr2247 bool = false
yyq2247[0] = true
var yynn2247 int
if yyr2247 || yy2arr2247 {
r.EncodeArrayStart(1)
} else {
yynn2247 = 0
for _, b := range yyq2247 {
if b {
yynn2247++
}
}
r.EncodeMapStart(yynn2247)
yynn2247 = 0
}
if yyr2247 || yy2arr2247 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2247[0] {
yy2249 := &x.KubeletEndpoint
yy2249.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2247[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kubeletEndpoint"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2250 := &x.KubeletEndpoint
yy2250.CodecEncodeSelf(e)
}
}
if yyr2247 || yy2arr2247 {
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
yym2251 := z.DecBinary()
_ = yym2251
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2252 := r.ContainerType()
if yyct2252 == codecSelferValueTypeMap1234 {
yyl2252 := r.ReadMapStart()
if yyl2252 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2252, d)
}
} else if yyct2252 == codecSelferValueTypeArray1234 {
yyl2252 := r.ReadArrayStart()
if yyl2252 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2252, 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 yys2253Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2253Slc
var yyhl2253 bool = l >= 0
for yyj2253 := 0; ; yyj2253++ {
if yyhl2253 {
if yyj2253 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2253Slc = r.DecodeBytes(yys2253Slc, true, true)
yys2253 := string(yys2253Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2253 {
case "kubeletEndpoint":
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2254 := &x.KubeletEndpoint
yyv2254.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2253)
} // end switch yys2253
} // end for yyj2253
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 yyj2255 int
var yyb2255 bool
var yyhl2255 bool = l >= 0
yyj2255++
if yyhl2255 {
yyb2255 = yyj2255 > l
} else {
yyb2255 = r.CheckBreak()
}
if yyb2255 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.KubeletEndpoint = DaemonEndpoint{}
} else {
yyv2256 := &x.KubeletEndpoint
yyv2256.CodecDecodeSelf(d)
}
for {
yyj2255++
if yyhl2255 {
yyb2255 = yyj2255 > l
} else {
yyb2255 = r.CheckBreak()
}
if yyb2255 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2255-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 {
yym2257 := z.EncBinary()
_ = yym2257
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2258 := !z.EncBinary()
yy2arr2258 := z.EncBasicHandle().StructToArray
var yyq2258 [8]bool
_, _, _ = yysep2258, yyq2258, yy2arr2258
const yyr2258 bool = false
var yynn2258 int
if yyr2258 || yy2arr2258 {
r.EncodeArrayStart(8)
} else {
yynn2258 = 8
for _, b := range yyq2258 {
if b {
yynn2258++
}
}
r.EncodeMapStart(yynn2258)
yynn2258 = 0
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2260 := z.EncBinary()
_ = yym2260
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)
yym2261 := z.EncBinary()
_ = yym2261
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.MachineID))
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2263 := z.EncBinary()
_ = yym2263
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)
yym2264 := z.EncBinary()
_ = yym2264
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.SystemUUID))
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2266 := z.EncBinary()
_ = yym2266
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)
yym2267 := z.EncBinary()
_ = yym2267
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.BootID))
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2269 := z.EncBinary()
_ = yym2269
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)
yym2270 := z.EncBinary()
_ = yym2270
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KernelVersion))
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2272 := z.EncBinary()
_ = yym2272
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)
yym2273 := z.EncBinary()
_ = yym2273
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.OsImage))
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2275 := z.EncBinary()
_ = yym2275
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)
yym2276 := z.EncBinary()
_ = yym2276
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ContainerRuntimeVersion))
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2278 := z.EncBinary()
_ = yym2278
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)
yym2279 := z.EncBinary()
_ = yym2279
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeletVersion))
}
}
if yyr2258 || yy2arr2258 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2281 := z.EncBinary()
_ = yym2281
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)
yym2282 := z.EncBinary()
_ = yym2282
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.KubeProxyVersion))
}
}
if yyr2258 || yy2arr2258 {
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
yym2283 := z.DecBinary()
_ = yym2283
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2284 := r.ContainerType()
if yyct2284 == codecSelferValueTypeMap1234 {
yyl2284 := r.ReadMapStart()
if yyl2284 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2284, d)
}
} else if yyct2284 == codecSelferValueTypeArray1234 {
yyl2284 := r.ReadArrayStart()
if yyl2284 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2284, 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 yys2285Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2285Slc
var yyhl2285 bool = l >= 0
for yyj2285 := 0; ; yyj2285++ {
if yyhl2285 {
if yyj2285 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2285Slc = r.DecodeBytes(yys2285Slc, true, true)
yys2285 := string(yys2285Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2285 {
case "machineID":
if r.TryDecodeAsNil() {
x.MachineID = ""
} else {
x.MachineID = string(r.DecodeString())
}
case "systemUUID":
if r.TryDecodeAsNil() {
x.SystemUUID = ""
} else {
x.SystemUUID = string(r.DecodeString())
}
case "bootID":
if r.TryDecodeAsNil() {
x.BootID = ""
} else {
x.BootID = string(r.DecodeString())
}
case "kernelVersion":
if r.TryDecodeAsNil() {
x.KernelVersion = ""
} else {
x.KernelVersion = string(r.DecodeString())
}
case "osImage":
if r.TryDecodeAsNil() {
x.OsImage = ""
} else {
x.OsImage = string(r.DecodeString())
}
case "containerRuntimeVersion":
if r.TryDecodeAsNil() {
x.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = string(r.DecodeString())
}
case "kubeletVersion":
if r.TryDecodeAsNil() {
x.KubeletVersion = ""
} else {
x.KubeletVersion = string(r.DecodeString())
}
case "kubeProxyVersion":
if r.TryDecodeAsNil() {
x.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2285)
} // end switch yys2285
} // end for yyj2285
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 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.MachineID = ""
} else {
x.MachineID = 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.SystemUUID = ""
} else {
x.SystemUUID = 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.BootID = ""
} else {
x.BootID = 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.KernelVersion = ""
} else {
x.KernelVersion = 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.OsImage = ""
} else {
x.OsImage = 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.ContainerRuntimeVersion = ""
} else {
x.ContainerRuntimeVersion = 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.KubeletVersion = ""
} else {
x.KubeletVersion = 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.KubeProxyVersion = ""
} else {
x.KubeProxyVersion = string(r.DecodeString())
}
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 *NodeStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2303 := z.EncBinary()
_ = yym2303
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2304 := !z.EncBinary()
yy2arr2304 := z.EncBasicHandle().StructToArray
var yyq2304 [6]bool
_, _, _ = yysep2304, yyq2304, yy2arr2304
const yyr2304 bool = false
yyq2304[0] = len(x.Capacity) != 0
yyq2304[1] = x.Phase != ""
yyq2304[2] = len(x.Conditions) != 0
yyq2304[3] = len(x.Addresses) != 0
yyq2304[4] = true
yyq2304[5] = true
var yynn2304 int
if yyr2304 || yy2arr2304 {
r.EncodeArrayStart(6)
} else {
yynn2304 = 0
for _, b := range yyq2304 {
if b {
yynn2304++
}
}
r.EncodeMapStart(yynn2304)
yynn2304 = 0
}
if yyr2304 || yy2arr2304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2304[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2304[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 yyr2304 || yy2arr2304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2304[1] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2304[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2304 || yy2arr2304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2304[2] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2308 := z.EncBinary()
_ = yym2308
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2304[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym2309 := z.EncBinary()
_ = yym2309
if false {
} else {
h.encSliceNodeCondition(([]NodeCondition)(x.Conditions), e)
}
}
}
}
if yyr2304 || yy2arr2304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2304[3] {
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2311 := z.EncBinary()
_ = yym2311
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq2304[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("addresses"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Addresses == nil {
r.EncodeNil()
} else {
yym2312 := z.EncBinary()
_ = yym2312
if false {
} else {
h.encSliceNodeAddress(([]NodeAddress)(x.Addresses), e)
}
}
}
}
if yyr2304 || yy2arr2304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2304[4] {
yy2314 := &x.DaemonEndpoints
yy2314.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2304[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("daemonEndpoints"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2315 := &x.DaemonEndpoints
yy2315.CodecEncodeSelf(e)
}
}
if yyr2304 || yy2arr2304 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2304[5] {
yy2317 := &x.NodeInfo
yy2317.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2304[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("nodeInfo"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2318 := &x.NodeInfo
yy2318.CodecEncodeSelf(e)
}
}
if yyr2304 || yy2arr2304 {
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
yym2319 := z.DecBinary()
_ = yym2319
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2320 := r.ContainerType()
if yyct2320 == codecSelferValueTypeMap1234 {
yyl2320 := r.ReadMapStart()
if yyl2320 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2320, d)
}
} else if yyct2320 == codecSelferValueTypeArray1234 {
yyl2320 := r.ReadArrayStart()
if yyl2320 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2320, 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 yys2321Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2321Slc
var yyhl2321 bool = l >= 0
for yyj2321 := 0; ; yyj2321++ {
if yyhl2321 {
if yyj2321 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2321Slc = r.DecodeBytes(yys2321Slc, true, true)
yys2321 := string(yys2321Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2321 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2322 := &x.Capacity
yyv2322.CodecDecodeSelf(d)
}
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2324 := &x.Conditions
yym2325 := z.DecBinary()
_ = yym2325
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2324), d)
}
}
case "addresses":
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2326 := &x.Addresses
yym2327 := z.DecBinary()
_ = yym2327
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2326), d)
}
}
case "daemonEndpoints":
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2328 := &x.DaemonEndpoints
yyv2328.CodecDecodeSelf(d)
}
case "nodeInfo":
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2329 := &x.NodeInfo
yyv2329.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2321)
} // end switch yys2321
} // end for yyj2321
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 yyj2330 int
var yyb2330 bool
var yyhl2330 bool = l >= 0
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2331 := &x.Capacity
yyv2331.CodecDecodeSelf(d)
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NodePhase(r.DecodeString())
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv2333 := &x.Conditions
yym2334 := z.DecBinary()
_ = yym2334
if false {
} else {
h.decSliceNodeCondition((*[]NodeCondition)(yyv2333), d)
}
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Addresses = nil
} else {
yyv2335 := &x.Addresses
yym2336 := z.DecBinary()
_ = yym2336
if false {
} else {
h.decSliceNodeAddress((*[]NodeAddress)(yyv2335), d)
}
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DaemonEndpoints = NodeDaemonEndpoints{}
} else {
yyv2337 := &x.DaemonEndpoints
yyv2337.CodecDecodeSelf(d)
}
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.NodeInfo = NodeSystemInfo{}
} else {
yyv2338 := &x.NodeInfo
yyv2338.CodecDecodeSelf(d)
}
for {
yyj2330++
if yyhl2330 {
yyb2330 = yyj2330 > l
} else {
yyb2330 = r.CheckBreak()
}
if yyb2330 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2330-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2339 := z.EncBinary()
_ = yym2339
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
yym2340 := z.DecBinary()
_ = yym2340
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
yym2341 := z.EncBinary()
_ = yym2341
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
yym2342 := z.DecBinary()
_ = yym2342
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 {
yym2343 := z.EncBinary()
_ = yym2343
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2344 := !z.EncBinary()
yy2arr2344 := z.EncBasicHandle().StructToArray
var yyq2344 [6]bool
_, _, _ = yysep2344, yyq2344, yy2arr2344
const yyr2344 bool = false
yyq2344[2] = true
yyq2344[3] = true
yyq2344[4] = x.Reason != ""
yyq2344[5] = x.Message != ""
var yynn2344 int
if yyr2344 || yy2arr2344 {
r.EncodeArrayStart(6)
} else {
yynn2344 = 2
for _, b := range yyq2344 {
if b {
yynn2344++
}
}
r.EncodeMapStart(yynn2344)
yynn2344 = 0
}
if yyr2344 || yy2arr2344 {
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 yyr2344 || yy2arr2344 {
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 yyr2344 || yy2arr2344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2344[2] {
yy2348 := &x.LastHeartbeatTime
yym2349 := z.EncBinary()
_ = yym2349
if false {
} else if z.HasExtensions() && z.EncExt(yy2348) {
} else if yym2349 {
z.EncBinaryMarshal(yy2348)
} else if !yym2349 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2348)
} else {
z.EncFallback(yy2348)
}
} else {
r.EncodeNil()
}
} else {
if yyq2344[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastHeartbeatTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2350 := &x.LastHeartbeatTime
yym2351 := z.EncBinary()
_ = yym2351
if false {
} else if z.HasExtensions() && z.EncExt(yy2350) {
} else if yym2351 {
z.EncBinaryMarshal(yy2350)
} else if !yym2351 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2350)
} else {
z.EncFallback(yy2350)
}
}
}
if yyr2344 || yy2arr2344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2344[3] {
yy2353 := &x.LastTransitionTime
yym2354 := z.EncBinary()
_ = yym2354
if false {
} else if z.HasExtensions() && z.EncExt(yy2353) {
} else if yym2354 {
z.EncBinaryMarshal(yy2353)
} else if !yym2354 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2353)
} else {
z.EncFallback(yy2353)
}
} else {
r.EncodeNil()
}
} else {
if yyq2344[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTransitionTime"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2355 := &x.LastTransitionTime
yym2356 := z.EncBinary()
_ = yym2356
if false {
} else if z.HasExtensions() && z.EncExt(yy2355) {
} else if yym2356 {
z.EncBinaryMarshal(yy2355)
} else if !yym2356 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2355)
} else {
z.EncFallback(yy2355)
}
}
}
if yyr2344 || yy2arr2344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2344[4] {
yym2358 := z.EncBinary()
_ = yym2358
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2344[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2359 := z.EncBinary()
_ = yym2359
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr2344 || yy2arr2344 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2344[5] {
yym2361 := z.EncBinary()
_ = yym2361
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2344[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2362 := z.EncBinary()
_ = yym2362
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr2344 || yy2arr2344 {
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
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 *NodeCondition) 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 "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 {
yyv2368 := &x.LastHeartbeatTime
yym2369 := z.DecBinary()
_ = yym2369
if false {
} else if z.HasExtensions() && z.DecExt(yyv2368) {
} else if yym2369 {
z.DecBinaryUnmarshal(yyv2368)
} else if !yym2369 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2368)
} else {
z.DecFallback(yyv2368, false)
}
}
case "lastTransitionTime":
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv2370 := &x.LastTransitionTime
yym2371 := z.DecBinary()
_ = yym2371
if false {
} else if z.HasExtensions() && z.DecExt(yyv2370) {
} else if yym2371 {
z.DecBinaryUnmarshal(yyv2370)
} else if !yym2371 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2370)
} else {
z.DecFallback(yyv2370, 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, yys2365)
} // end switch yys2365
} // end for yyj2365
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 yyj2374 int
var yyb2374 bool
var yyhl2374 bool = l >= 0
yyj2374++
if yyhl2374 {
yyb2374 = yyj2374 > l
} else {
yyb2374 = r.CheckBreak()
}
if yyb2374 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeConditionType(r.DecodeString())
}
yyj2374++
if yyhl2374 {
yyb2374 = yyj2374 > l
} else {
yyb2374 = r.CheckBreak()
}
if yyb2374 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj2374++
if yyhl2374 {
yyb2374 = yyj2374 > l
} else {
yyb2374 = r.CheckBreak()
}
if yyb2374 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastHeartbeatTime = pkg2_unversioned.Time{}
} else {
yyv2377 := &x.LastHeartbeatTime
yym2378 := z.DecBinary()
_ = yym2378
if false {
} else if z.HasExtensions() && z.DecExt(yyv2377) {
} else if yym2378 {
z.DecBinaryUnmarshal(yyv2377)
} else if !yym2378 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2377)
} else {
z.DecFallback(yyv2377, false)
}
}
yyj2374++
if yyhl2374 {
yyb2374 = yyj2374 > l
} else {
yyb2374 = r.CheckBreak()
}
if yyb2374 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTransitionTime = pkg2_unversioned.Time{}
} else {
yyv2379 := &x.LastTransitionTime
yym2380 := z.DecBinary()
_ = yym2380
if false {
} else if z.HasExtensions() && z.DecExt(yyv2379) {
} else if yym2380 {
z.DecBinaryUnmarshal(yyv2379)
} else if !yym2380 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2379)
} else {
z.DecFallback(yyv2379, false)
}
}
yyj2374++
if yyhl2374 {
yyb2374 = yyj2374 > l
} else {
yyb2374 = r.CheckBreak()
}
if yyb2374 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj2374++
if yyhl2374 {
yyb2374 = yyj2374 > l
} else {
yyb2374 = r.CheckBreak()
}
if yyb2374 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
for {
yyj2374++
if yyhl2374 {
yyb2374 = yyj2374 > l
} else {
yyb2374 = r.CheckBreak()
}
if yyb2374 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2374-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NodeAddressType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2383 := z.EncBinary()
_ = yym2383
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
yym2384 := z.DecBinary()
_ = yym2384
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 {
yym2385 := z.EncBinary()
_ = yym2385
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2386 := !z.EncBinary()
yy2arr2386 := z.EncBasicHandle().StructToArray
var yyq2386 [2]bool
_, _, _ = yysep2386, yyq2386, yy2arr2386
const yyr2386 bool = false
var yynn2386 int
if yyr2386 || yy2arr2386 {
r.EncodeArrayStart(2)
} else {
yynn2386 = 2
for _, b := range yyq2386 {
if b {
yynn2386++
}
}
r.EncodeMapStart(yynn2386)
yynn2386 = 0
}
if yyr2386 || yy2arr2386 {
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 yyr2386 || yy2arr2386 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2389 := z.EncBinary()
_ = yym2389
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)
yym2390 := z.EncBinary()
_ = yym2390
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Address))
}
}
if yyr2386 || yy2arr2386 {
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
yym2391 := z.DecBinary()
_ = yym2391
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2392 := r.ContainerType()
if yyct2392 == codecSelferValueTypeMap1234 {
yyl2392 := r.ReadMapStart()
if yyl2392 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2392, d)
}
} else if yyct2392 == codecSelferValueTypeArray1234 {
yyl2392 := r.ReadArrayStart()
if yyl2392 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2392, 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 yys2393Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2393Slc
var yyhl2393 bool = l >= 0
for yyj2393 := 0; ; yyj2393++ {
if yyhl2393 {
if yyj2393 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2393Slc = r.DecodeBytes(yys2393Slc, true, true)
yys2393 := string(yys2393Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2393 {
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, yys2393)
} // end switch yys2393
} // end for yyj2393
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 yyj2396 int
var yyb2396 bool
var yyhl2396 bool = l >= 0
yyj2396++
if yyhl2396 {
yyb2396 = yyj2396 > l
} else {
yyb2396 = r.CheckBreak()
}
if yyb2396 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = NodeAddressType(r.DecodeString())
}
yyj2396++
if yyhl2396 {
yyb2396 = yyj2396 > l
} else {
yyb2396 = r.CheckBreak()
}
if yyb2396 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Address = ""
} else {
x.Address = string(r.DecodeString())
}
for {
yyj2396++
if yyhl2396 {
yyb2396 = yyj2396 > l
} else {
yyb2396 = r.CheckBreak()
}
if yyb2396 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2396-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 {
yym2399 := z.EncBinary()
_ = yym2399
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2400 := !z.EncBinary()
yy2arr2400 := z.EncBasicHandle().StructToArray
var yyq2400 [1]bool
_, _, _ = yysep2400, yyq2400, yy2arr2400
const yyr2400 bool = false
yyq2400[0] = len(x.Capacity) != 0
var yynn2400 int
if yyr2400 || yy2arr2400 {
r.EncodeArrayStart(1)
} else {
yynn2400 = 0
for _, b := range yyq2400 {
if b {
yynn2400++
}
}
r.EncodeMapStart(yynn2400)
yynn2400 = 0
}
if yyr2400 || yy2arr2400 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2400[0] {
if x.Capacity == nil {
r.EncodeNil()
} else {
x.Capacity.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq2400[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 yyr2400 || yy2arr2400 {
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
yym2402 := z.DecBinary()
_ = yym2402
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2403 := r.ContainerType()
if yyct2403 == codecSelferValueTypeMap1234 {
yyl2403 := r.ReadMapStart()
if yyl2403 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2403, d)
}
} else if yyct2403 == codecSelferValueTypeArray1234 {
yyl2403 := r.ReadArrayStart()
if yyl2403 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2403, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NodeResources) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2404Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2404Slc
var yyhl2404 bool = l >= 0
for yyj2404 := 0; ; yyj2404++ {
if yyhl2404 {
if yyj2404 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2404Slc = r.DecodeBytes(yys2404Slc, true, true)
yys2404 := string(yys2404Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2404 {
case "capacity":
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2405 := &x.Capacity
yyv2405.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2404)
} // end switch yys2404
} // end for yyj2404
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 yyj2406 int
var yyb2406 bool
var yyhl2406 bool = l >= 0
yyj2406++
if yyhl2406 {
yyb2406 = yyj2406 > l
} else {
yyb2406 = r.CheckBreak()
}
if yyb2406 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Capacity = nil
} else {
yyv2407 := &x.Capacity
yyv2407.CodecDecodeSelf(d)
}
for {
yyj2406++
if yyhl2406 {
yyb2406 = yyj2406 > l
} else {
yyb2406 = r.CheckBreak()
}
if yyb2406 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2406-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x ResourceName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2408 := z.EncBinary()
_ = yym2408
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
yym2409 := z.DecBinary()
_ = yym2409
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 {
yym2410 := z.EncBinary()
_ = yym2410
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
yym2411 := z.DecBinary()
_ = yym2411
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 {
yym2412 := z.EncBinary()
_ = yym2412
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2413 := !z.EncBinary()
yy2arr2413 := z.EncBasicHandle().StructToArray
var yyq2413 [5]bool
_, _, _ = yysep2413, yyq2413, yy2arr2413
const yyr2413 bool = false
yyq2413[0] = x.Kind != ""
yyq2413[1] = x.APIVersion != ""
yyq2413[2] = true
yyq2413[3] = true
yyq2413[4] = true
var yynn2413 int
if yyr2413 || yy2arr2413 {
r.EncodeArrayStart(5)
} else {
yynn2413 = 0
for _, b := range yyq2413 {
if b {
yynn2413++
}
}
r.EncodeMapStart(yynn2413)
yynn2413 = 0
}
if yyr2413 || yy2arr2413 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2413[0] {
yym2415 := z.EncBinary()
_ = yym2415
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2413[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2416 := z.EncBinary()
_ = yym2416
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2413 || yy2arr2413 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2413[1] {
yym2418 := z.EncBinary()
_ = yym2418
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2413[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2419 := z.EncBinary()
_ = yym2419
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2413 || yy2arr2413 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2413[2] {
yy2421 := &x.ObjectMeta
yy2421.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2413[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2422 := &x.ObjectMeta
yy2422.CodecEncodeSelf(e)
}
}
if yyr2413 || yy2arr2413 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2413[3] {
yy2424 := &x.Spec
yy2424.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2413[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2425 := &x.Spec
yy2425.CodecEncodeSelf(e)
}
}
if yyr2413 || yy2arr2413 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2413[4] {
yy2427 := &x.Status
yy2427.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2413[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2428 := &x.Status
yy2428.CodecEncodeSelf(e)
}
}
if yyr2413 || yy2arr2413 {
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
yym2429 := z.DecBinary()
_ = yym2429
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2430 := r.ContainerType()
if yyct2430 == codecSelferValueTypeMap1234 {
yyl2430 := r.ReadMapStart()
if yyl2430 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2430, d)
}
} else if yyct2430 == codecSelferValueTypeArray1234 {
yyl2430 := r.ReadArrayStart()
if yyl2430 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2430, 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 yys2431Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2431Slc
var yyhl2431 bool = l >= 0
for yyj2431 := 0; ; yyj2431++ {
if yyhl2431 {
if yyj2431 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2431Slc = r.DecodeBytes(yys2431Slc, true, true)
yys2431 := string(yys2431Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2431 {
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 {
yyv2434 := &x.ObjectMeta
yyv2434.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv2435 := &x.Spec
yyv2435.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv2436 := &x.Status
yyv2436.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2431)
} // end switch yys2431
} // end for yyj2431
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 yyj2437 int
var yyb2437 bool
var yyhl2437 bool = l >= 0
yyj2437++
if yyhl2437 {
yyb2437 = yyj2437 > l
} else {
yyb2437 = r.CheckBreak()
}
if yyb2437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2437++
if yyhl2437 {
yyb2437 = yyj2437 > l
} else {
yyb2437 = r.CheckBreak()
}
if yyb2437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2437++
if yyhl2437 {
yyb2437 = yyj2437 > l
} else {
yyb2437 = r.CheckBreak()
}
if yyb2437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2440 := &x.ObjectMeta
yyv2440.CodecDecodeSelf(d)
}
yyj2437++
if yyhl2437 {
yyb2437 = yyj2437 > l
} else {
yyb2437 = r.CheckBreak()
}
if yyb2437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NodeSpec{}
} else {
yyv2441 := &x.Spec
yyv2441.CodecDecodeSelf(d)
}
yyj2437++
if yyhl2437 {
yyb2437 = yyj2437 > l
} else {
yyb2437 = r.CheckBreak()
}
if yyb2437 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NodeStatus{}
} else {
yyv2442 := &x.Status
yyv2442.CodecDecodeSelf(d)
}
for {
yyj2437++
if yyhl2437 {
yyb2437 = yyj2437 > l
} else {
yyb2437 = r.CheckBreak()
}
if yyb2437 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2437-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 {
yym2443 := z.EncBinary()
_ = yym2443
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2444 := !z.EncBinary()
yy2arr2444 := z.EncBasicHandle().StructToArray
var yyq2444 [4]bool
_, _, _ = yysep2444, yyq2444, yy2arr2444
const yyr2444 bool = false
yyq2444[0] = x.Kind != ""
yyq2444[1] = x.APIVersion != ""
yyq2444[2] = true
var yynn2444 int
if yyr2444 || yy2arr2444 {
r.EncodeArrayStart(4)
} else {
yynn2444 = 1
for _, b := range yyq2444 {
if b {
yynn2444++
}
}
r.EncodeMapStart(yynn2444)
yynn2444 = 0
}
if yyr2444 || yy2arr2444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2444[0] {
yym2446 := z.EncBinary()
_ = yym2446
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2444[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2447 := z.EncBinary()
_ = yym2447
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2444 || yy2arr2444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2444[1] {
yym2449 := z.EncBinary()
_ = yym2449
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2444[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2450 := z.EncBinary()
_ = yym2450
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2444 || yy2arr2444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2444[2] {
yy2452 := &x.ListMeta
yym2453 := z.EncBinary()
_ = yym2453
if false {
} else if z.HasExtensions() && z.EncExt(yy2452) {
} else {
z.EncFallback(yy2452)
}
} else {
r.EncodeNil()
}
} else {
if yyq2444[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2454 := &x.ListMeta
yym2455 := z.EncBinary()
_ = yym2455
if false {
} else if z.HasExtensions() && z.EncExt(yy2454) {
} else {
z.EncFallback(yy2454)
}
}
}
if yyr2444 || yy2arr2444 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2457 := z.EncBinary()
_ = yym2457
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 {
yym2458 := z.EncBinary()
_ = yym2458
if false {
} else {
h.encSliceNode(([]Node)(x.Items), e)
}
}
}
if yyr2444 || yy2arr2444 {
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
yym2459 := z.DecBinary()
_ = yym2459
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2460 := r.ContainerType()
if yyct2460 == codecSelferValueTypeMap1234 {
yyl2460 := r.ReadMapStart()
if yyl2460 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2460, d)
}
} else if yyct2460 == codecSelferValueTypeArray1234 {
yyl2460 := r.ReadArrayStart()
if yyl2460 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2460, 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 yys2461Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2461Slc
var yyhl2461 bool = l >= 0
for yyj2461 := 0; ; yyj2461++ {
if yyhl2461 {
if yyj2461 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2461Slc = r.DecodeBytes(yys2461Slc, true, true)
yys2461 := string(yys2461Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2461 {
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 {
yyv2464 := &x.ListMeta
yym2465 := z.DecBinary()
_ = yym2465
if false {
} else if z.HasExtensions() && z.DecExt(yyv2464) {
} else {
z.DecFallback(yyv2464, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2466 := &x.Items
yym2467 := z.DecBinary()
_ = yym2467
if false {
} else {
h.decSliceNode((*[]Node)(yyv2466), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2461)
} // end switch yys2461
} // end for yyj2461
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 yyj2468 int
var yyb2468 bool
var yyhl2468 bool = l >= 0
yyj2468++
if yyhl2468 {
yyb2468 = yyj2468 > l
} else {
yyb2468 = r.CheckBreak()
}
if yyb2468 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2468++
if yyhl2468 {
yyb2468 = yyj2468 > l
} else {
yyb2468 = r.CheckBreak()
}
if yyb2468 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2468++
if yyhl2468 {
yyb2468 = yyj2468 > l
} else {
yyb2468 = r.CheckBreak()
}
if yyb2468 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2471 := &x.ListMeta
yym2472 := z.DecBinary()
_ = yym2472
if false {
} else if z.HasExtensions() && z.DecExt(yyv2471) {
} else {
z.DecFallback(yyv2471, false)
}
}
yyj2468++
if yyhl2468 {
yyb2468 = yyj2468 > l
} else {
yyb2468 = r.CheckBreak()
}
if yyb2468 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2473 := &x.Items
yym2474 := z.DecBinary()
_ = yym2474
if false {
} else {
h.decSliceNode((*[]Node)(yyv2473), d)
}
}
for {
yyj2468++
if yyhl2468 {
yyb2468 = yyj2468 > l
} else {
yyb2468 = r.CheckBreak()
}
if yyb2468 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2468-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 {
yym2475 := z.EncBinary()
_ = yym2475
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2476 := !z.EncBinary()
yy2arr2476 := z.EncBasicHandle().StructToArray
var yyq2476 [1]bool
_, _, _ = yysep2476, yyq2476, yy2arr2476
const yyr2476 bool = false
var yynn2476 int
if yyr2476 || yy2arr2476 {
r.EncodeArrayStart(1)
} else {
yynn2476 = 1
for _, b := range yyq2476 {
if b {
yynn2476++
}
}
r.EncodeMapStart(yynn2476)
yynn2476 = 0
}
if yyr2476 || yy2arr2476 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Finalizers == nil {
r.EncodeNil()
} else {
yym2478 := z.EncBinary()
_ = yym2478
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 {
yym2479 := z.EncBinary()
_ = yym2479
if false {
} else {
h.encSliceFinalizerName(([]FinalizerName)(x.Finalizers), e)
}
}
}
if yyr2476 || yy2arr2476 {
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
yym2480 := z.DecBinary()
_ = yym2480
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2481 := r.ContainerType()
if yyct2481 == codecSelferValueTypeMap1234 {
yyl2481 := r.ReadMapStart()
if yyl2481 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2481, d)
}
} else if yyct2481 == codecSelferValueTypeArray1234 {
yyl2481 := r.ReadArrayStart()
if yyl2481 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2481, 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 yys2482Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2482Slc
var yyhl2482 bool = l >= 0
for yyj2482 := 0; ; yyj2482++ {
if yyhl2482 {
if yyj2482 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2482Slc = r.DecodeBytes(yys2482Slc, true, true)
yys2482 := string(yys2482Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2482 {
case "Finalizers":
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv2483 := &x.Finalizers
yym2484 := z.DecBinary()
_ = yym2484
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv2483), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2482)
} // end switch yys2482
} // end for yyj2482
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 yyj2485 int
var yyb2485 bool
var yyhl2485 bool = l >= 0
yyj2485++
if yyhl2485 {
yyb2485 = yyj2485 > l
} else {
yyb2485 = r.CheckBreak()
}
if yyb2485 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Finalizers = nil
} else {
yyv2486 := &x.Finalizers
yym2487 := z.DecBinary()
_ = yym2487
if false {
} else {
h.decSliceFinalizerName((*[]FinalizerName)(yyv2486), d)
}
}
for {
yyj2485++
if yyhl2485 {
yyb2485 = yyj2485 > l
} else {
yyb2485 = r.CheckBreak()
}
if yyb2485 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2485-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x FinalizerName) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2488 := z.EncBinary()
_ = yym2488
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
yym2489 := z.DecBinary()
_ = yym2489
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 {
yym2490 := z.EncBinary()
_ = yym2490
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2491 := !z.EncBinary()
yy2arr2491 := z.EncBasicHandle().StructToArray
var yyq2491 [1]bool
_, _, _ = yysep2491, yyq2491, yy2arr2491
const yyr2491 bool = false
yyq2491[0] = x.Phase != ""
var yynn2491 int
if yyr2491 || yy2arr2491 {
r.EncodeArrayStart(1)
} else {
yynn2491 = 0
for _, b := range yyq2491 {
if b {
yynn2491++
}
}
r.EncodeMapStart(yynn2491)
yynn2491 = 0
}
if yyr2491 || yy2arr2491 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2491[0] {
x.Phase.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2491[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("phase"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Phase.CodecEncodeSelf(e)
}
}
if yyr2491 || yy2arr2491 {
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
yym2493 := z.DecBinary()
_ = yym2493
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2494 := r.ContainerType()
if yyct2494 == codecSelferValueTypeMap1234 {
yyl2494 := r.ReadMapStart()
if yyl2494 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2494, d)
}
} else if yyct2494 == codecSelferValueTypeArray1234 {
yyl2494 := r.ReadArrayStart()
if yyl2494 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2494, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *NamespaceStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys2495Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2495Slc
var yyhl2495 bool = l >= 0
for yyj2495 := 0; ; yyj2495++ {
if yyhl2495 {
if yyj2495 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2495Slc = r.DecodeBytes(yys2495Slc, true, true)
yys2495 := string(yys2495Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2495 {
case "phase":
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2495)
} // end switch yys2495
} // end for yyj2495
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 yyj2497 int
var yyb2497 bool
var yyhl2497 bool = l >= 0
yyj2497++
if yyhl2497 {
yyb2497 = yyj2497 > l
} else {
yyb2497 = r.CheckBreak()
}
if yyb2497 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Phase = ""
} else {
x.Phase = NamespacePhase(r.DecodeString())
}
for {
yyj2497++
if yyhl2497 {
yyb2497 = yyj2497 > l
} else {
yyb2497 = r.CheckBreak()
}
if yyb2497 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2497-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x NamespacePhase) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym2499 := z.EncBinary()
_ = yym2499
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
yym2500 := z.DecBinary()
_ = yym2500
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 {
yym2501 := z.EncBinary()
_ = yym2501
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2502 := !z.EncBinary()
yy2arr2502 := z.EncBasicHandle().StructToArray
var yyq2502 [5]bool
_, _, _ = yysep2502, yyq2502, yy2arr2502
const yyr2502 bool = false
yyq2502[0] = x.Kind != ""
yyq2502[1] = x.APIVersion != ""
yyq2502[2] = true
yyq2502[3] = true
yyq2502[4] = true
var yynn2502 int
if yyr2502 || yy2arr2502 {
r.EncodeArrayStart(5)
} else {
yynn2502 = 0
for _, b := range yyq2502 {
if b {
yynn2502++
}
}
r.EncodeMapStart(yynn2502)
yynn2502 = 0
}
if yyr2502 || yy2arr2502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2502[0] {
yym2504 := z.EncBinary()
_ = yym2504
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2502[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2505 := z.EncBinary()
_ = yym2505
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2502 || yy2arr2502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2502[1] {
yym2507 := z.EncBinary()
_ = yym2507
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2502[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2508 := z.EncBinary()
_ = yym2508
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2502 || yy2arr2502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2502[2] {
yy2510 := &x.ObjectMeta
yy2510.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2502[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2511 := &x.ObjectMeta
yy2511.CodecEncodeSelf(e)
}
}
if yyr2502 || yy2arr2502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2502[3] {
yy2513 := &x.Spec
yy2513.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2502[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2514 := &x.Spec
yy2514.CodecEncodeSelf(e)
}
}
if yyr2502 || yy2arr2502 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2502[4] {
yy2516 := &x.Status
yy2516.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2502[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2517 := &x.Status
yy2517.CodecEncodeSelf(e)
}
}
if yyr2502 || yy2arr2502 {
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
yym2518 := z.DecBinary()
_ = yym2518
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2519 := r.ContainerType()
if yyct2519 == codecSelferValueTypeMap1234 {
yyl2519 := r.ReadMapStart()
if yyl2519 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2519, d)
}
} else if yyct2519 == codecSelferValueTypeArray1234 {
yyl2519 := r.ReadArrayStart()
if yyl2519 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2519, 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 yys2520Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2520Slc
var yyhl2520 bool = l >= 0
for yyj2520 := 0; ; yyj2520++ {
if yyhl2520 {
if yyj2520 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2520Slc = r.DecodeBytes(yys2520Slc, true, true)
yys2520 := string(yys2520Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2520 {
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 {
yyv2523 := &x.ObjectMeta
yyv2523.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv2524 := &x.Spec
yyv2524.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv2525 := &x.Status
yyv2525.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2520)
} // end switch yys2520
} // end for yyj2520
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 yyj2526 int
var yyb2526 bool
var yyhl2526 bool = l >= 0
yyj2526++
if yyhl2526 {
yyb2526 = yyj2526 > l
} else {
yyb2526 = r.CheckBreak()
}
if yyb2526 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2526++
if yyhl2526 {
yyb2526 = yyj2526 > l
} else {
yyb2526 = r.CheckBreak()
}
if yyb2526 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2526++
if yyhl2526 {
yyb2526 = yyj2526 > l
} else {
yyb2526 = r.CheckBreak()
}
if yyb2526 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2529 := &x.ObjectMeta
yyv2529.CodecDecodeSelf(d)
}
yyj2526++
if yyhl2526 {
yyb2526 = yyj2526 > l
} else {
yyb2526 = r.CheckBreak()
}
if yyb2526 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = NamespaceSpec{}
} else {
yyv2530 := &x.Spec
yyv2530.CodecDecodeSelf(d)
}
yyj2526++
if yyhl2526 {
yyb2526 = yyj2526 > l
} else {
yyb2526 = r.CheckBreak()
}
if yyb2526 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = NamespaceStatus{}
} else {
yyv2531 := &x.Status
yyv2531.CodecDecodeSelf(d)
}
for {
yyj2526++
if yyhl2526 {
yyb2526 = yyj2526 > l
} else {
yyb2526 = r.CheckBreak()
}
if yyb2526 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2526-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 {
yym2532 := z.EncBinary()
_ = yym2532
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2533 := !z.EncBinary()
yy2arr2533 := z.EncBasicHandle().StructToArray
var yyq2533 [4]bool
_, _, _ = yysep2533, yyq2533, yy2arr2533
const yyr2533 bool = false
yyq2533[0] = x.Kind != ""
yyq2533[1] = x.APIVersion != ""
yyq2533[2] = true
var yynn2533 int
if yyr2533 || yy2arr2533 {
r.EncodeArrayStart(4)
} else {
yynn2533 = 1
for _, b := range yyq2533 {
if b {
yynn2533++
}
}
r.EncodeMapStart(yynn2533)
yynn2533 = 0
}
if yyr2533 || yy2arr2533 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2533[0] {
yym2535 := z.EncBinary()
_ = yym2535
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2533[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2536 := z.EncBinary()
_ = yym2536
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2533 || yy2arr2533 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2533[1] {
yym2538 := z.EncBinary()
_ = yym2538
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2533[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2539 := z.EncBinary()
_ = yym2539
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2533 || yy2arr2533 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2533[2] {
yy2541 := &x.ListMeta
yym2542 := z.EncBinary()
_ = yym2542
if false {
} else if z.HasExtensions() && z.EncExt(yy2541) {
} else {
z.EncFallback(yy2541)
}
} else {
r.EncodeNil()
}
} else {
if yyq2533[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2543 := &x.ListMeta
yym2544 := z.EncBinary()
_ = yym2544
if false {
} else if z.HasExtensions() && z.EncExt(yy2543) {
} else {
z.EncFallback(yy2543)
}
}
}
if yyr2533 || yy2arr2533 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym2546 := z.EncBinary()
_ = yym2546
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 {
yym2547 := z.EncBinary()
_ = yym2547
if false {
} else {
h.encSliceNamespace(([]Namespace)(x.Items), e)
}
}
}
if yyr2533 || yy2arr2533 {
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
yym2548 := z.DecBinary()
_ = yym2548
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2549 := r.ContainerType()
if yyct2549 == codecSelferValueTypeMap1234 {
yyl2549 := r.ReadMapStart()
if yyl2549 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2549, d)
}
} else if yyct2549 == codecSelferValueTypeArray1234 {
yyl2549 := r.ReadArrayStart()
if yyl2549 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2549, 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 yys2550Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2550Slc
var yyhl2550 bool = l >= 0
for yyj2550 := 0; ; yyj2550++ {
if yyhl2550 {
if yyj2550 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2550Slc = r.DecodeBytes(yys2550Slc, true, true)
yys2550 := string(yys2550Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2550 {
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 {
yyv2553 := &x.ListMeta
yym2554 := z.DecBinary()
_ = yym2554
if false {
} else if z.HasExtensions() && z.DecExt(yyv2553) {
} else {
z.DecFallback(yyv2553, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2555 := &x.Items
yym2556 := z.DecBinary()
_ = yym2556
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv2555), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2550)
} // end switch yys2550
} // end for yyj2550
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 yyj2557 int
var yyb2557 bool
var yyhl2557 bool = l >= 0
yyj2557++
if yyhl2557 {
yyb2557 = yyj2557 > l
} else {
yyb2557 = r.CheckBreak()
}
if yyb2557 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2557++
if yyhl2557 {
yyb2557 = yyj2557 > l
} else {
yyb2557 = r.CheckBreak()
}
if yyb2557 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2557++
if yyhl2557 {
yyb2557 = yyj2557 > l
} else {
yyb2557 = r.CheckBreak()
}
if yyb2557 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv2560 := &x.ListMeta
yym2561 := z.DecBinary()
_ = yym2561
if false {
} else if z.HasExtensions() && z.DecExt(yyv2560) {
} else {
z.DecFallback(yyv2560, false)
}
}
yyj2557++
if yyhl2557 {
yyb2557 = yyj2557 > l
} else {
yyb2557 = r.CheckBreak()
}
if yyb2557 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv2562 := &x.Items
yym2563 := z.DecBinary()
_ = yym2563
if false {
} else {
h.decSliceNamespace((*[]Namespace)(yyv2562), d)
}
}
for {
yyj2557++
if yyhl2557 {
yyb2557 = yyj2557 > l
} else {
yyb2557 = r.CheckBreak()
}
if yyb2557 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2557-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 {
yym2564 := z.EncBinary()
_ = yym2564
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2565 := !z.EncBinary()
yy2arr2565 := z.EncBasicHandle().StructToArray
var yyq2565 [4]bool
_, _, _ = yysep2565, yyq2565, yy2arr2565
const yyr2565 bool = false
yyq2565[0] = x.Kind != ""
yyq2565[1] = x.APIVersion != ""
yyq2565[2] = true
var yynn2565 int
if yyr2565 || yy2arr2565 {
r.EncodeArrayStart(4)
} else {
yynn2565 = 1
for _, b := range yyq2565 {
if b {
yynn2565++
}
}
r.EncodeMapStart(yynn2565)
yynn2565 = 0
}
if yyr2565 || yy2arr2565 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2565[0] {
yym2567 := z.EncBinary()
_ = yym2567
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2565[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2568 := z.EncBinary()
_ = yym2568
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2565 || yy2arr2565 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2565[1] {
yym2570 := z.EncBinary()
_ = yym2570
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2565[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2571 := z.EncBinary()
_ = yym2571
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2565 || yy2arr2565 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2565[2] {
yy2573 := &x.ObjectMeta
yy2573.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2565[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2574 := &x.ObjectMeta
yy2574.CodecEncodeSelf(e)
}
}
if yyr2565 || yy2arr2565 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy2576 := &x.Target
yy2576.CodecEncodeSelf(e)
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("target"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2577 := &x.Target
yy2577.CodecEncodeSelf(e)
}
if yyr2565 || yy2arr2565 {
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
yym2578 := z.DecBinary()
_ = yym2578
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2579 := r.ContainerType()
if yyct2579 == codecSelferValueTypeMap1234 {
yyl2579 := r.ReadMapStart()
if yyl2579 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2579, d)
}
} else if yyct2579 == codecSelferValueTypeArray1234 {
yyl2579 := r.ReadArrayStart()
if yyl2579 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2579, 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 yys2580Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2580Slc
var yyhl2580 bool = l >= 0
for yyj2580 := 0; ; yyj2580++ {
if yyhl2580 {
if yyj2580 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2580Slc = r.DecodeBytes(yys2580Slc, true, true)
yys2580 := string(yys2580Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2580 {
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 {
yyv2583 := &x.ObjectMeta
yyv2583.CodecDecodeSelf(d)
}
case "target":
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv2584 := &x.Target
yyv2584.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2580)
} // end switch yys2580
} // end for yyj2580
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 yyj2585 int
var yyb2585 bool
var yyhl2585 bool = l >= 0
yyj2585++
if yyhl2585 {
yyb2585 = yyj2585 > l
} else {
yyb2585 = r.CheckBreak()
}
if yyb2585 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2585++
if yyhl2585 {
yyb2585 = yyj2585 > l
} else {
yyb2585 = r.CheckBreak()
}
if yyb2585 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2585++
if yyhl2585 {
yyb2585 = yyj2585 > l
} else {
yyb2585 = r.CheckBreak()
}
if yyb2585 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2588 := &x.ObjectMeta
yyv2588.CodecDecodeSelf(d)
}
yyj2585++
if yyhl2585 {
yyb2585 = yyj2585 > l
} else {
yyb2585 = r.CheckBreak()
}
if yyb2585 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Target = ObjectReference{}
} else {
yyv2589 := &x.Target
yyv2589.CodecDecodeSelf(d)
}
for {
yyj2585++
if yyhl2585 {
yyb2585 = yyj2585 > l
} else {
yyb2585 = r.CheckBreak()
}
if yyb2585 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2585-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 {
yym2590 := z.EncBinary()
_ = yym2590
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2591 := !z.EncBinary()
yy2arr2591 := z.EncBasicHandle().StructToArray
var yyq2591 [3]bool
_, _, _ = yysep2591, yyq2591, yy2arr2591
const yyr2591 bool = false
yyq2591[0] = x.Kind != ""
yyq2591[1] = x.APIVersion != ""
var yynn2591 int
if yyr2591 || yy2arr2591 {
r.EncodeArrayStart(3)
} else {
yynn2591 = 1
for _, b := range yyq2591 {
if b {
yynn2591++
}
}
r.EncodeMapStart(yynn2591)
yynn2591 = 0
}
if yyr2591 || yy2arr2591 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2591[0] {
yym2593 := z.EncBinary()
_ = yym2593
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2591[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2594 := z.EncBinary()
_ = yym2594
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2591 || yy2arr2591 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2591[1] {
yym2596 := z.EncBinary()
_ = yym2596
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2591[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2597 := z.EncBinary()
_ = yym2597
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2591 || yy2arr2591 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2599 := *x.GracePeriodSeconds
yym2600 := z.EncBinary()
_ = yym2600
if false {
} else {
r.EncodeInt(int64(yy2599))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("gracePeriodSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.GracePeriodSeconds == nil {
r.EncodeNil()
} else {
yy2601 := *x.GracePeriodSeconds
yym2602 := z.EncBinary()
_ = yym2602
if false {
} else {
r.EncodeInt(int64(yy2601))
}
}
}
if yyr2591 || yy2arr2591 {
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
yym2603 := z.DecBinary()
_ = yym2603
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2604 := r.ContainerType()
if yyct2604 == codecSelferValueTypeMap1234 {
yyl2604 := r.ReadMapStart()
if yyl2604 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2604, d)
}
} else if yyct2604 == codecSelferValueTypeArray1234 {
yyl2604 := r.ReadArrayStart()
if yyl2604 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2604, 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 yys2605Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2605Slc
var yyhl2605 bool = l >= 0
for yyj2605 := 0; ; yyj2605++ {
if yyhl2605 {
if yyj2605 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2605Slc = r.DecodeBytes(yys2605Slc, true, true)
yys2605 := string(yys2605Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2605 {
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)
}
yym2609 := z.DecBinary()
_ = yym2609
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2605)
} // end switch yys2605
} // end for yyj2605
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 yyj2610 int
var yyb2610 bool
var yyhl2610 bool = l >= 0
yyj2610++
if yyhl2610 {
yyb2610 = yyj2610 > l
} else {
yyb2610 = r.CheckBreak()
}
if yyb2610 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2610++
if yyhl2610 {
yyb2610 = yyj2610 > l
} else {
yyb2610 = r.CheckBreak()
}
if yyb2610 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2610++
if yyhl2610 {
yyb2610 = yyj2610 > l
} else {
yyb2610 = r.CheckBreak()
}
if yyb2610 {
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)
}
yym2614 := z.DecBinary()
_ = yym2614
if false {
} else {
*((*int64)(x.GracePeriodSeconds)) = int64(r.DecodeInt(64))
}
}
for {
yyj2610++
if yyhl2610 {
yyb2610 = yyj2610 > l
} else {
yyb2610 = r.CheckBreak()
}
if yyb2610 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2610-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 {
yym2615 := z.EncBinary()
_ = yym2615
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2616 := !z.EncBinary()
yy2arr2616 := z.EncBasicHandle().StructToArray
var yyq2616 [7]bool
_, _, _ = yysep2616, yyq2616, yy2arr2616
const yyr2616 bool = false
yyq2616[0] = x.Kind != ""
yyq2616[1] = x.APIVersion != ""
var yynn2616 int
if yyr2616 || yy2arr2616 {
r.EncodeArrayStart(7)
} else {
yynn2616 = 5
for _, b := range yyq2616 {
if b {
yynn2616++
}
}
r.EncodeMapStart(yynn2616)
yynn2616 = 0
}
if yyr2616 || yy2arr2616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2616[0] {
yym2618 := z.EncBinary()
_ = yym2618
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2616[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2619 := z.EncBinary()
_ = yym2619
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2616 || yy2arr2616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2616[1] {
yym2621 := z.EncBinary()
_ = yym2621
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2616[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2622 := z.EncBinary()
_ = yym2622
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2616 || yy2arr2616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LabelSelector == nil {
r.EncodeNil()
} else {
yym2624 := z.EncBinary()
_ = yym2624
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 {
yym2625 := z.EncBinary()
_ = yym2625
if false {
} else if z.HasExtensions() && z.EncExt(x.LabelSelector) {
} else {
z.EncFallback(x.LabelSelector)
}
}
}
if yyr2616 || yy2arr2616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.FieldSelector == nil {
r.EncodeNil()
} else {
yym2627 := z.EncBinary()
_ = yym2627
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 {
yym2628 := z.EncBinary()
_ = yym2628
if false {
} else if z.HasExtensions() && z.EncExt(x.FieldSelector) {
} else {
z.EncFallback(x.FieldSelector)
}
}
}
if yyr2616 || yy2arr2616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2630 := z.EncBinary()
_ = yym2630
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Watch"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2631 := z.EncBinary()
_ = yym2631
if false {
} else {
r.EncodeBool(bool(x.Watch))
}
}
if yyr2616 || yy2arr2616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2633 := z.EncBinary()
_ = yym2633
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)
yym2634 := z.EncBinary()
_ = yym2634
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
if yyr2616 || yy2arr2616 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy2636 := *x.TimeoutSeconds
yym2637 := z.EncBinary()
_ = yym2637
if false {
} else {
r.EncodeInt(int64(yy2636))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TimeoutSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TimeoutSeconds == nil {
r.EncodeNil()
} else {
yy2638 := *x.TimeoutSeconds
yym2639 := z.EncBinary()
_ = yym2639
if false {
} else {
r.EncodeInt(int64(yy2638))
}
}
}
if yyr2616 || yy2arr2616 {
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
yym2640 := z.DecBinary()
_ = yym2640
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2641 := r.ContainerType()
if yyct2641 == codecSelferValueTypeMap1234 {
yyl2641 := r.ReadMapStart()
if yyl2641 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2641, d)
}
} else if yyct2641 == codecSelferValueTypeArray1234 {
yyl2641 := r.ReadArrayStart()
if yyl2641 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2641, 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 yys2642Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2642Slc
var yyhl2642 bool = l >= 0
for yyj2642 := 0; ; yyj2642++ {
if yyhl2642 {
if yyj2642 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2642Slc = r.DecodeBytes(yys2642Slc, true, true)
yys2642 := string(yys2642Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2642 {
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 {
yyv2645 := &x.LabelSelector
yym2646 := z.DecBinary()
_ = yym2646
if false {
} else if z.HasExtensions() && z.DecExt(yyv2645) {
} else {
z.DecFallback(yyv2645, true)
}
}
case "FieldSelector":
if r.TryDecodeAsNil() {
x.FieldSelector = nil
} else {
yyv2647 := &x.FieldSelector
yym2648 := z.DecBinary()
_ = yym2648
if false {
} else if z.HasExtensions() && z.DecExt(yyv2647) {
} else {
z.DecFallback(yyv2647, 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)
}
yym2652 := z.DecBinary()
_ = yym2652
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2642)
} // end switch yys2642
} // end for yyj2642
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 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.LabelSelector = nil
} else {
yyv2656 := &x.LabelSelector
yym2657 := z.DecBinary()
_ = yym2657
if false {
} else if z.HasExtensions() && z.DecExt(yyv2656) {
} else {
z.DecFallback(yyv2656, true)
}
}
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.FieldSelector = nil
} else {
yyv2658 := &x.FieldSelector
yym2659 := z.DecBinary()
_ = yym2659
if false {
} else if z.HasExtensions() && z.DecExt(yyv2658) {
} else {
z.DecFallback(yyv2658, true)
}
}
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.Watch = false
} else {
x.Watch = bool(r.DecodeBool())
}
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.ResourceVersion = ""
} else {
x.ResourceVersion = 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() {
if x.TimeoutSeconds != nil {
x.TimeoutSeconds = nil
}
} else {
if x.TimeoutSeconds == nil {
x.TimeoutSeconds = new(int64)
}
yym2663 := z.DecBinary()
_ = yym2663
if false {
} else {
*((*int64)(x.TimeoutSeconds)) = int64(r.DecodeInt(64))
}
}
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 *PodLogOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2664 := z.EncBinary()
_ = yym2664
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2665 := !z.EncBinary()
yy2arr2665 := z.EncBasicHandle().StructToArray
var yyq2665 [10]bool
_, _, _ = yysep2665, yyq2665, yy2arr2665
const yyr2665 bool = false
yyq2665[0] = x.Kind != ""
yyq2665[1] = x.APIVersion != ""
var yynn2665 int
if yyr2665 || yy2arr2665 {
r.EncodeArrayStart(10)
} else {
yynn2665 = 8
for _, b := range yyq2665 {
if b {
yynn2665++
}
}
r.EncodeMapStart(yynn2665)
yynn2665 = 0
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2665[0] {
yym2667 := z.EncBinary()
_ = yym2667
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2665[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2668 := z.EncBinary()
_ = yym2668
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2665[1] {
yym2670 := z.EncBinary()
_ = yym2670
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2665[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2671 := z.EncBinary()
_ = yym2671
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2673 := z.EncBinary()
_ = yym2673
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)
yym2674 := z.EncBinary()
_ = yym2674
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2676 := z.EncBinary()
_ = yym2676
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Follow"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2677 := z.EncBinary()
_ = yym2677
if false {
} else {
r.EncodeBool(bool(x.Follow))
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2679 := z.EncBinary()
_ = yym2679
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Previous"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2680 := z.EncBinary()
_ = yym2680
if false {
} else {
r.EncodeBool(bool(x.Previous))
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy2682 := *x.SinceSeconds
yym2683 := z.EncBinary()
_ = yym2683
if false {
} else {
r.EncodeInt(int64(yy2682))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("SinceSeconds"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.SinceSeconds == nil {
r.EncodeNil()
} else {
yy2684 := *x.SinceSeconds
yym2685 := z.EncBinary()
_ = yym2685
if false {
} else {
r.EncodeInt(int64(yy2684))
}
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.SinceTime == nil {
r.EncodeNil()
} else {
yym2687 := z.EncBinary()
_ = yym2687
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym2687 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym2687 && 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 {
yym2688 := z.EncBinary()
_ = yym2688
if false {
} else if z.HasExtensions() && z.EncExt(x.SinceTime) {
} else if yym2688 {
z.EncBinaryMarshal(x.SinceTime)
} else if !yym2688 && z.IsJSONHandle() {
z.EncJSONMarshal(x.SinceTime)
} else {
z.EncFallback(x.SinceTime)
}
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2690 := z.EncBinary()
_ = yym2690
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Timestamps"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2691 := z.EncBinary()
_ = yym2691
if false {
} else {
r.EncodeBool(bool(x.Timestamps))
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy2693 := *x.TailLines
yym2694 := z.EncBinary()
_ = yym2694
if false {
} else {
r.EncodeInt(int64(yy2693))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TailLines"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.TailLines == nil {
r.EncodeNil()
} else {
yy2695 := *x.TailLines
yym2696 := z.EncBinary()
_ = yym2696
if false {
} else {
r.EncodeInt(int64(yy2695))
}
}
}
if yyr2665 || yy2arr2665 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy2698 := *x.LimitBytes
yym2699 := z.EncBinary()
_ = yym2699
if false {
} else {
r.EncodeInt(int64(yy2698))
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("LimitBytes"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.LimitBytes == nil {
r.EncodeNil()
} else {
yy2700 := *x.LimitBytes
yym2701 := z.EncBinary()
_ = yym2701
if false {
} else {
r.EncodeInt(int64(yy2700))
}
}
}
if yyr2665 || yy2arr2665 {
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
yym2702 := z.DecBinary()
_ = yym2702
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2703 := r.ContainerType()
if yyct2703 == codecSelferValueTypeMap1234 {
yyl2703 := r.ReadMapStart()
if yyl2703 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2703, d)
}
} else if yyct2703 == codecSelferValueTypeArray1234 {
yyl2703 := r.ReadArrayStart()
if yyl2703 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2703, 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 yys2704Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2704Slc
var yyhl2704 bool = l >= 0
for yyj2704 := 0; ; yyj2704++ {
if yyhl2704 {
if yyj2704 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2704Slc = r.DecodeBytes(yys2704Slc, true, true)
yys2704 := string(yys2704Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2704 {
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)
}
yym2711 := z.DecBinary()
_ = yym2711
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)
}
yym2713 := z.DecBinary()
_ = yym2713
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym2713 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym2713 && 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)
}
yym2716 := z.DecBinary()
_ = yym2716
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)
}
yym2718 := z.DecBinary()
_ = yym2718
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
default:
z.DecStructFieldNotFound(-1, yys2704)
} // end switch yys2704
} // end for yyj2704
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 yyj2719 int
var yyb2719 bool
var yyhl2719 bool = l >= 0
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Follow = false
} else {
x.Follow = bool(r.DecodeBool())
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Previous = false
} else {
x.Previous = bool(r.DecodeBool())
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
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)
}
yym2726 := z.DecBinary()
_ = yym2726
if false {
} else {
*((*int64)(x.SinceSeconds)) = int64(r.DecodeInt(64))
}
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
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)
}
yym2728 := z.DecBinary()
_ = yym2728
if false {
} else if z.HasExtensions() && z.DecExt(x.SinceTime) {
} else if yym2728 {
z.DecBinaryUnmarshal(x.SinceTime)
} else if !yym2728 && z.IsJSONHandle() {
z.DecJSONUnmarshal(x.SinceTime)
} else {
z.DecFallback(x.SinceTime, false)
}
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Timestamps = false
} else {
x.Timestamps = bool(r.DecodeBool())
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
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)
}
yym2731 := z.DecBinary()
_ = yym2731
if false {
} else {
*((*int64)(x.TailLines)) = int64(r.DecodeInt(64))
}
}
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
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)
}
yym2733 := z.DecBinary()
_ = yym2733
if false {
} else {
*((*int64)(x.LimitBytes)) = int64(r.DecodeInt(64))
}
}
for {
yyj2719++
if yyhl2719 {
yyb2719 = yyj2719 > l
} else {
yyb2719 = r.CheckBreak()
}
if yyb2719 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2719-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *PodAttachOptions) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2734 := z.EncBinary()
_ = yym2734
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2735 := !z.EncBinary()
yy2arr2735 := z.EncBasicHandle().StructToArray
var yyq2735 [7]bool
_, _, _ = yysep2735, yyq2735, yy2arr2735
const yyr2735 bool = false
yyq2735[0] = x.Kind != ""
yyq2735[1] = x.APIVersion != ""
yyq2735[2] = x.Stdin != false
yyq2735[3] = x.Stdout != false
yyq2735[4] = x.Stderr != false
yyq2735[5] = x.TTY != false
yyq2735[6] = x.Container != ""
var yynn2735 int
if yyr2735 || yy2arr2735 {
r.EncodeArrayStart(7)
} else {
yynn2735 = 0
for _, b := range yyq2735 {
if b {
yynn2735++
}
}
r.EncodeMapStart(yynn2735)
yynn2735 = 0
}
if yyr2735 || yy2arr2735 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2735[0] {
yym2737 := z.EncBinary()
_ = yym2737
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2735[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2738 := z.EncBinary()
_ = yym2738
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2735 || yy2arr2735 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2735[1] {
yym2740 := z.EncBinary()
_ = yym2740
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2735[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2741 := z.EncBinary()
_ = yym2741
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2735 || yy2arr2735 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2735[2] {
yym2743 := z.EncBinary()
_ = yym2743
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2735[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2744 := z.EncBinary()
_ = yym2744
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
}
if yyr2735 || yy2arr2735 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2735[3] {
yym2746 := z.EncBinary()
_ = yym2746
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2735[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2747 := z.EncBinary()
_ = yym2747
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
}
if yyr2735 || yy2arr2735 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2735[4] {
yym2749 := z.EncBinary()
_ = yym2749
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2735[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2750 := z.EncBinary()
_ = yym2750
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
}
if yyr2735 || yy2arr2735 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2735[5] {
yym2752 := z.EncBinary()
_ = yym2752
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
r.EncodeBool(false)
}
} else {
if yyq2735[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("tty"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2753 := z.EncBinary()
_ = yym2753
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
}
if yyr2735 || yy2arr2735 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2735[6] {
yym2755 := z.EncBinary()
_ = yym2755
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2735[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("container"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2756 := z.EncBinary()
_ = yym2756
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
}
if yyr2735 || yy2arr2735 {
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
yym2757 := z.DecBinary()
_ = yym2757
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2758 := r.ContainerType()
if yyct2758 == codecSelferValueTypeMap1234 {
yyl2758 := r.ReadMapStart()
if yyl2758 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2758, d)
}
} else if yyct2758 == codecSelferValueTypeArray1234 {
yyl2758 := r.ReadArrayStart()
if yyl2758 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2758, 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 yys2759Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2759Slc
var yyhl2759 bool = l >= 0
for yyj2759 := 0; ; yyj2759++ {
if yyhl2759 {
if yyj2759 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2759Slc = r.DecodeBytes(yys2759Slc, true, true)
yys2759 := string(yys2759Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2759 {
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, yys2759)
} // end switch yys2759
} // end for yyj2759
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 yyj2767 int
var yyb2767 bool
var yyhl2767 bool = l >= 0
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
for {
yyj2767++
if yyhl2767 {
yyb2767 = yyj2767 > l
} else {
yyb2767 = r.CheckBreak()
}
if yyb2767 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2767-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 {
yym2775 := z.EncBinary()
_ = yym2775
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2776 := !z.EncBinary()
yy2arr2776 := z.EncBasicHandle().StructToArray
var yyq2776 [8]bool
_, _, _ = yysep2776, yyq2776, yy2arr2776
const yyr2776 bool = false
yyq2776[0] = x.Kind != ""
yyq2776[1] = x.APIVersion != ""
var yynn2776 int
if yyr2776 || yy2arr2776 {
r.EncodeArrayStart(8)
} else {
yynn2776 = 6
for _, b := range yyq2776 {
if b {
yynn2776++
}
}
r.EncodeMapStart(yynn2776)
yynn2776 = 0
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2776[0] {
yym2778 := z.EncBinary()
_ = yym2778
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2776[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2779 := z.EncBinary()
_ = yym2779
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2776[1] {
yym2781 := z.EncBinary()
_ = yym2781
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2776[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2782 := z.EncBinary()
_ = yym2782
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2784 := z.EncBinary()
_ = yym2784
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdin"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2785 := z.EncBinary()
_ = yym2785
if false {
} else {
r.EncodeBool(bool(x.Stdin))
}
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2787 := z.EncBinary()
_ = yym2787
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stdout"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2788 := z.EncBinary()
_ = yym2788
if false {
} else {
r.EncodeBool(bool(x.Stdout))
}
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2790 := z.EncBinary()
_ = yym2790
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Stderr"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2791 := z.EncBinary()
_ = yym2791
if false {
} else {
r.EncodeBool(bool(x.Stderr))
}
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2793 := z.EncBinary()
_ = yym2793
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("TTY"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2794 := z.EncBinary()
_ = yym2794
if false {
} else {
r.EncodeBool(bool(x.TTY))
}
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2796 := z.EncBinary()
_ = yym2796
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)
yym2797 := z.EncBinary()
_ = yym2797
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Container))
}
}
if yyr2776 || yy2arr2776 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Command == nil {
r.EncodeNil()
} else {
yym2799 := z.EncBinary()
_ = yym2799
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 {
yym2800 := z.EncBinary()
_ = yym2800
if false {
} else {
z.F.EncSliceStringV(x.Command, false, e)
}
}
}
if yyr2776 || yy2arr2776 {
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
yym2801 := z.DecBinary()
_ = yym2801
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2802 := r.ContainerType()
if yyct2802 == codecSelferValueTypeMap1234 {
yyl2802 := r.ReadMapStart()
if yyl2802 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2802, d)
}
} else if yyct2802 == codecSelferValueTypeArray1234 {
yyl2802 := r.ReadArrayStart()
if yyl2802 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2802, 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 yys2803Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2803Slc
var yyhl2803 bool = l >= 0
for yyj2803 := 0; ; yyj2803++ {
if yyhl2803 {
if yyj2803 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2803Slc = r.DecodeBytes(yys2803Slc, true, true)
yys2803 := string(yys2803Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2803 {
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 {
yyv2811 := &x.Command
yym2812 := z.DecBinary()
_ = yym2812
if false {
} else {
z.F.DecSliceStringX(yyv2811, false, d)
}
}
default:
z.DecStructFieldNotFound(-1, yys2803)
} // end switch yys2803
} // end for yyj2803
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 yyj2813 int
var yyb2813 bool
var yyhl2813 bool = l >= 0
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdin = false
} else {
x.Stdin = bool(r.DecodeBool())
}
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stdout = false
} else {
x.Stdout = bool(r.DecodeBool())
}
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Stderr = false
} else {
x.Stderr = bool(r.DecodeBool())
}
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.TTY = false
} else {
x.TTY = bool(r.DecodeBool())
}
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Container = ""
} else {
x.Container = string(r.DecodeString())
}
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Command = nil
} else {
yyv2821 := &x.Command
yym2822 := z.DecBinary()
_ = yym2822
if false {
} else {
z.F.DecSliceStringX(yyv2821, false, d)
}
}
for {
yyj2813++
if yyhl2813 {
yyb2813 = yyj2813 > l
} else {
yyb2813 = r.CheckBreak()
}
if yyb2813 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2813-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 {
yym2823 := z.EncBinary()
_ = yym2823
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2824 := !z.EncBinary()
yy2arr2824 := z.EncBasicHandle().StructToArray
var yyq2824 [3]bool
_, _, _ = yysep2824, yyq2824, yy2arr2824
const yyr2824 bool = false
yyq2824[0] = x.Kind != ""
yyq2824[1] = x.APIVersion != ""
var yynn2824 int
if yyr2824 || yy2arr2824 {
r.EncodeArrayStart(3)
} else {
yynn2824 = 1
for _, b := range yyq2824 {
if b {
yynn2824++
}
}
r.EncodeMapStart(yynn2824)
yynn2824 = 0
}
if yyr2824 || yy2arr2824 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2824[0] {
yym2826 := z.EncBinary()
_ = yym2826
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2824[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2827 := z.EncBinary()
_ = yym2827
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2824 || yy2arr2824 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2824[1] {
yym2829 := z.EncBinary()
_ = yym2829
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2824[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2830 := z.EncBinary()
_ = yym2830
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2824 || yy2arr2824 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2832 := z.EncBinary()
_ = yym2832
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)
yym2833 := z.EncBinary()
_ = yym2833
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Path))
}
}
if yyr2824 || yy2arr2824 {
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
yym2834 := z.DecBinary()
_ = yym2834
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2835 := r.ContainerType()
if yyct2835 == codecSelferValueTypeMap1234 {
yyl2835 := r.ReadMapStart()
if yyl2835 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2835, d)
}
} else if yyct2835 == codecSelferValueTypeArray1234 {
yyl2835 := r.ReadArrayStart()
if yyl2835 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2835, 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 yys2836Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2836Slc
var yyhl2836 bool = l >= 0
for yyj2836 := 0; ; yyj2836++ {
if yyhl2836 {
if yyj2836 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2836Slc = r.DecodeBytes(yys2836Slc, true, true)
yys2836 := string(yys2836Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2836 {
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, yys2836)
} // end switch yys2836
} // end for yyj2836
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 yyj2840 int
var yyb2840 bool
var yyhl2840 bool = l >= 0
yyj2840++
if yyhl2840 {
yyb2840 = yyj2840 > l
} else {
yyb2840 = r.CheckBreak()
}
if yyb2840 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2840++
if yyhl2840 {
yyb2840 = yyj2840 > l
} else {
yyb2840 = r.CheckBreak()
}
if yyb2840 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2840++
if yyhl2840 {
yyb2840 = yyj2840 > l
} else {
yyb2840 = r.CheckBreak()
}
if yyb2840 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Path = ""
} else {
x.Path = string(r.DecodeString())
}
for {
yyj2840++
if yyhl2840 {
yyb2840 = yyj2840 > l
} else {
yyb2840 = r.CheckBreak()
}
if yyb2840 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2840-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ObjectReference) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2844 := z.EncBinary()
_ = yym2844
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2845 := !z.EncBinary()
yy2arr2845 := z.EncBasicHandle().StructToArray
var yyq2845 [7]bool
_, _, _ = yysep2845, yyq2845, yy2arr2845
const yyr2845 bool = false
yyq2845[0] = x.Kind != ""
yyq2845[1] = x.Namespace != ""
yyq2845[2] = x.Name != ""
yyq2845[3] = x.UID != ""
yyq2845[4] = x.APIVersion != ""
yyq2845[5] = x.ResourceVersion != ""
yyq2845[6] = x.FieldPath != ""
var yynn2845 int
if yyr2845 || yy2arr2845 {
r.EncodeArrayStart(7)
} else {
yynn2845 = 0
for _, b := range yyq2845 {
if b {
yynn2845++
}
}
r.EncodeMapStart(yynn2845)
yynn2845 = 0
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2845[0] {
yym2847 := z.EncBinary()
_ = yym2847
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2845[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2848 := z.EncBinary()
_ = yym2848
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2845[1] {
yym2850 := z.EncBinary()
_ = yym2850
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2845[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("namespace"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2851 := z.EncBinary()
_ = yym2851
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Namespace))
}
}
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2845[2] {
yym2853 := z.EncBinary()
_ = yym2853
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2845[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2854 := z.EncBinary()
_ = yym2854
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2845[3] {
yym2856 := z.EncBinary()
_ = yym2856
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 yyq2845[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("uid"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2857 := z.EncBinary()
_ = yym2857
if false {
} else if z.HasExtensions() && z.EncExt(x.UID) {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.UID))
}
}
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2845[4] {
yym2859 := z.EncBinary()
_ = yym2859
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2845[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2860 := z.EncBinary()
_ = yym2860
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2845[5] {
yym2862 := z.EncBinary()
_ = yym2862
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2845[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("resourceVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2863 := z.EncBinary()
_ = yym2863
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.ResourceVersion))
}
}
}
if yyr2845 || yy2arr2845 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2845[6] {
yym2865 := z.EncBinary()
_ = yym2865
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2845[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("fieldPath"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2866 := z.EncBinary()
_ = yym2866
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.FieldPath))
}
}
}
if yyr2845 || yy2arr2845 {
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
yym2867 := z.DecBinary()
_ = yym2867
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2868 := r.ContainerType()
if yyct2868 == codecSelferValueTypeMap1234 {
yyl2868 := r.ReadMapStart()
if yyl2868 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2868, d)
}
} else if yyct2868 == codecSelferValueTypeArray1234 {
yyl2868 := r.ReadArrayStart()
if yyl2868 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2868, 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 yys2869Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2869Slc
var yyhl2869 bool = l >= 0
for yyj2869 := 0; ; yyj2869++ {
if yyhl2869 {
if yyj2869 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2869Slc = r.DecodeBytes(yys2869Slc, true, true)
yys2869 := string(yys2869Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2869 {
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, yys2869)
} // end switch yys2869
} // end for yyj2869
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 yyj2877 int
var yyb2877 bool
var yyhl2877 bool = l >= 0
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Namespace = ""
} else {
x.Namespace = string(r.DecodeString())
}
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.UID = ""
} else {
x.UID = pkg1_types.UID(r.DecodeString())
}
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ResourceVersion = ""
} else {
x.ResourceVersion = string(r.DecodeString())
}
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FieldPath = ""
} else {
x.FieldPath = string(r.DecodeString())
}
for {
yyj2877++
if yyhl2877 {
yyb2877 = yyj2877 > l
} else {
yyb2877 = r.CheckBreak()
}
if yyb2877 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2877-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 {
yym2885 := z.EncBinary()
_ = yym2885
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2886 := !z.EncBinary()
yy2arr2886 := z.EncBasicHandle().StructToArray
var yyq2886 [1]bool
_, _, _ = yysep2886, yyq2886, yy2arr2886
const yyr2886 bool = false
var yynn2886 int
if yyr2886 || yy2arr2886 {
r.EncodeArrayStart(1)
} else {
yynn2886 = 1
for _, b := range yyq2886 {
if b {
yynn2886++
}
}
r.EncodeMapStart(yynn2886)
yynn2886 = 0
}
if yyr2886 || yy2arr2886 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym2888 := z.EncBinary()
_ = yym2888
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("Name"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2889 := z.EncBinary()
_ = yym2889
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Name))
}
}
if yyr2886 || yy2arr2886 {
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
yym2890 := z.DecBinary()
_ = yym2890
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2891 := r.ContainerType()
if yyct2891 == codecSelferValueTypeMap1234 {
yyl2891 := r.ReadMapStart()
if yyl2891 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2891, d)
}
} else if yyct2891 == codecSelferValueTypeArray1234 {
yyl2891 := r.ReadArrayStart()
if yyl2891 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2891, 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 yys2892Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2892Slc
var yyhl2892 bool = l >= 0
for yyj2892 := 0; ; yyj2892++ {
if yyhl2892 {
if yyj2892 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2892Slc = r.DecodeBytes(yys2892Slc, true, true)
yys2892 := string(yys2892Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2892 {
case "Name":
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2892)
} // end switch yys2892
} // end for yyj2892
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 yyj2894 int
var yyb2894 bool
var yyhl2894 bool = l >= 0
yyj2894++
if yyhl2894 {
yyb2894 = yyj2894 > l
} else {
yyb2894 = r.CheckBreak()
}
if yyb2894 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Name = ""
} else {
x.Name = string(r.DecodeString())
}
for {
yyj2894++
if yyhl2894 {
yyb2894 = yyj2894 > l
} else {
yyb2894 = r.CheckBreak()
}
if yyb2894 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2894-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 {
yym2896 := z.EncBinary()
_ = yym2896
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2897 := !z.EncBinary()
yy2arr2897 := z.EncBasicHandle().StructToArray
var yyq2897 [3]bool
_, _, _ = yysep2897, yyq2897, yy2arr2897
const yyr2897 bool = false
yyq2897[0] = x.Kind != ""
yyq2897[1] = x.APIVersion != ""
yyq2897[2] = true
var yynn2897 int
if yyr2897 || yy2arr2897 {
r.EncodeArrayStart(3)
} else {
yynn2897 = 0
for _, b := range yyq2897 {
if b {
yynn2897++
}
}
r.EncodeMapStart(yynn2897)
yynn2897 = 0
}
if yyr2897 || yy2arr2897 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2897[0] {
yym2899 := z.EncBinary()
_ = yym2899
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2897[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2900 := z.EncBinary()
_ = yym2900
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2897 || yy2arr2897 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2897[1] {
yym2902 := z.EncBinary()
_ = yym2902
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2897[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2903 := z.EncBinary()
_ = yym2903
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2897 || yy2arr2897 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2897[2] {
yy2905 := &x.Reference
yy2905.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2897[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reference"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2906 := &x.Reference
yy2906.CodecEncodeSelf(e)
}
}
if yyr2897 || yy2arr2897 {
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
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 *SerializedReference) 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 "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 {
yyv2912 := &x.Reference
yyv2912.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys2909)
} // end switch yys2909
} // end for yyj2909
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 yyj2913 int
var yyb2913 bool
var yyhl2913 bool = l >= 0
yyj2913++
if yyhl2913 {
yyb2913 = yyj2913 > l
} else {
yyb2913 = r.CheckBreak()
}
if yyb2913 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2913++
if yyhl2913 {
yyb2913 = yyj2913 > l
} else {
yyb2913 = r.CheckBreak()
}
if yyb2913 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2913++
if yyhl2913 {
yyb2913 = yyj2913 > l
} else {
yyb2913 = r.CheckBreak()
}
if yyb2913 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reference = ObjectReference{}
} else {
yyv2916 := &x.Reference
yyv2916.CodecDecodeSelf(d)
}
for {
yyj2913++
if yyhl2913 {
yyb2913 = yyj2913 > l
} else {
yyb2913 = r.CheckBreak()
}
if yyb2913 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2913-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 {
yym2917 := z.EncBinary()
_ = yym2917
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2918 := !z.EncBinary()
yy2arr2918 := z.EncBasicHandle().StructToArray
var yyq2918 [2]bool
_, _, _ = yysep2918, yyq2918, yy2arr2918
const yyr2918 bool = false
yyq2918[0] = x.Component != ""
yyq2918[1] = x.Host != ""
var yynn2918 int
if yyr2918 || yy2arr2918 {
r.EncodeArrayStart(2)
} else {
yynn2918 = 0
for _, b := range yyq2918 {
if b {
yynn2918++
}
}
r.EncodeMapStart(yynn2918)
yynn2918 = 0
}
if yyr2918 || yy2arr2918 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2918[0] {
yym2920 := z.EncBinary()
_ = yym2920
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2918[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("component"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2921 := z.EncBinary()
_ = yym2921
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Component))
}
}
}
if yyr2918 || yy2arr2918 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2918[1] {
yym2923 := z.EncBinary()
_ = yym2923
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2918[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("host"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2924 := z.EncBinary()
_ = yym2924
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Host))
}
}
}
if yyr2918 || yy2arr2918 {
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
yym2925 := z.DecBinary()
_ = yym2925
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2926 := r.ContainerType()
if yyct2926 == codecSelferValueTypeMap1234 {
yyl2926 := r.ReadMapStart()
if yyl2926 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2926, d)
}
} else if yyct2926 == codecSelferValueTypeArray1234 {
yyl2926 := r.ReadArrayStart()
if yyl2926 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2926, 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 yys2927Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2927Slc
var yyhl2927 bool = l >= 0
for yyj2927 := 0; ; yyj2927++ {
if yyhl2927 {
if yyj2927 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2927Slc = r.DecodeBytes(yys2927Slc, true, true)
yys2927 := string(yys2927Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2927 {
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, yys2927)
} // end switch yys2927
} // end for yyj2927
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 yyj2930 int
var yyb2930 bool
var yyhl2930 bool = l >= 0
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Component = ""
} else {
x.Component = string(r.DecodeString())
}
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Host = ""
} else {
x.Host = string(r.DecodeString())
}
for {
yyj2930++
if yyhl2930 {
yyb2930 = yyj2930 > l
} else {
yyb2930 = r.CheckBreak()
}
if yyb2930 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2930-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *Event) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym2933 := z.EncBinary()
_ = yym2933
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep2934 := !z.EncBinary()
yy2arr2934 := z.EncBasicHandle().StructToArray
var yyq2934 [11]bool
_, _, _ = yysep2934, yyq2934, yy2arr2934
const yyr2934 bool = false
yyq2934[0] = x.Kind != ""
yyq2934[1] = x.APIVersion != ""
yyq2934[2] = true
yyq2934[3] = true
yyq2934[4] = x.Reason != ""
yyq2934[5] = x.Message != ""
yyq2934[6] = true
yyq2934[7] = true
yyq2934[8] = true
yyq2934[9] = x.Count != 0
yyq2934[10] = x.Type != ""
var yynn2934 int
if yyr2934 || yy2arr2934 {
r.EncodeArrayStart(11)
} else {
yynn2934 = 0
for _, b := range yyq2934 {
if b {
yynn2934++
}
}
r.EncodeMapStart(yynn2934)
yynn2934 = 0
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[0] {
yym2936 := z.EncBinary()
_ = yym2936
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2934[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2937 := z.EncBinary()
_ = yym2937
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[1] {
yym2939 := z.EncBinary()
_ = yym2939
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2934[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2940 := z.EncBinary()
_ = yym2940
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[2] {
yy2942 := &x.ObjectMeta
yy2942.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2934[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2943 := &x.ObjectMeta
yy2943.CodecEncodeSelf(e)
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[3] {
yy2945 := &x.InvolvedObject
yy2945.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2934[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("involvedObject"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2946 := &x.InvolvedObject
yy2946.CodecEncodeSelf(e)
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[4] {
yym2948 := z.EncBinary()
_ = yym2948
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2934[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("reason"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2949 := z.EncBinary()
_ = yym2949
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Reason))
}
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[5] {
yym2951 := z.EncBinary()
_ = yym2951
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2934[5] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2952 := z.EncBinary()
_ = yym2952
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[6] {
yy2954 := &x.Source
yy2954.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq2934[6] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("source"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2955 := &x.Source
yy2955.CodecEncodeSelf(e)
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[7] {
yy2957 := &x.FirstTimestamp
yym2958 := z.EncBinary()
_ = yym2958
if false {
} else if z.HasExtensions() && z.EncExt(yy2957) {
} else if yym2958 {
z.EncBinaryMarshal(yy2957)
} else if !yym2958 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2957)
} else {
z.EncFallback(yy2957)
}
} else {
r.EncodeNil()
}
} else {
if yyq2934[7] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("firstTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2959 := &x.FirstTimestamp
yym2960 := z.EncBinary()
_ = yym2960
if false {
} else if z.HasExtensions() && z.EncExt(yy2959) {
} else if yym2960 {
z.EncBinaryMarshal(yy2959)
} else if !yym2960 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2959)
} else {
z.EncFallback(yy2959)
}
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[8] {
yy2962 := &x.LastTimestamp
yym2963 := z.EncBinary()
_ = yym2963
if false {
} else if z.HasExtensions() && z.EncExt(yy2962) {
} else if yym2963 {
z.EncBinaryMarshal(yy2962)
} else if !yym2963 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2962)
} else {
z.EncFallback(yy2962)
}
} else {
r.EncodeNil()
}
} else {
if yyq2934[8] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("lastTimestamp"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy2964 := &x.LastTimestamp
yym2965 := z.EncBinary()
_ = yym2965
if false {
} else if z.HasExtensions() && z.EncExt(yy2964) {
} else if yym2965 {
z.EncBinaryMarshal(yy2964)
} else if !yym2965 && z.IsJSONHandle() {
z.EncJSONMarshal(yy2964)
} else {
z.EncFallback(yy2964)
}
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[9] {
yym2967 := z.EncBinary()
_ = yym2967
if false {
} else {
r.EncodeInt(int64(x.Count))
}
} else {
r.EncodeInt(0)
}
} else {
if yyq2934[9] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("count"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2968 := z.EncBinary()
_ = yym2968
if false {
} else {
r.EncodeInt(int64(x.Count))
}
}
}
if yyr2934 || yy2arr2934 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq2934[10] {
yym2970 := z.EncBinary()
_ = yym2970
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq2934[10] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym2971 := z.EncBinary()
_ = yym2971
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr2934 || yy2arr2934 {
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
yym2972 := z.DecBinary()
_ = yym2972
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct2973 := r.ContainerType()
if yyct2973 == codecSelferValueTypeMap1234 {
yyl2973 := r.ReadMapStart()
if yyl2973 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl2973, d)
}
} else if yyct2973 == codecSelferValueTypeArray1234 {
yyl2973 := r.ReadArrayStart()
if yyl2973 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl2973, 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 yys2974Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys2974Slc
var yyhl2974 bool = l >= 0
for yyj2974 := 0; ; yyj2974++ {
if yyhl2974 {
if yyj2974 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys2974Slc = r.DecodeBytes(yys2974Slc, true, true)
yys2974 := string(yys2974Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys2974 {
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 {
yyv2977 := &x.ObjectMeta
yyv2977.CodecDecodeSelf(d)
}
case "involvedObject":
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv2978 := &x.InvolvedObject
yyv2978.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 {
yyv2981 := &x.Source
yyv2981.CodecDecodeSelf(d)
}
case "firstTimestamp":
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv2982 := &x.FirstTimestamp
yym2983 := z.DecBinary()
_ = yym2983
if false {
} else if z.HasExtensions() && z.DecExt(yyv2982) {
} else if yym2983 {
z.DecBinaryUnmarshal(yyv2982)
} else if !yym2983 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2982)
} else {
z.DecFallback(yyv2982, false)
}
}
case "lastTimestamp":
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv2984 := &x.LastTimestamp
yym2985 := z.DecBinary()
_ = yym2985
if false {
} else if z.HasExtensions() && z.DecExt(yyv2984) {
} else if yym2985 {
z.DecBinaryUnmarshal(yyv2984)
} else if !yym2985 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2984)
} else {
z.DecFallback(yyv2984, false)
}
}
case "count":
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys2974)
} // end switch yys2974
} // end for yyj2974
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 yyj2988 int
var yyb2988 bool
var yyhl2988 bool = l >= 0
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv2991 := &x.ObjectMeta
yyv2991.CodecDecodeSelf(d)
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.InvolvedObject = ObjectReference{}
} else {
yyv2992 := &x.InvolvedObject
yyv2992.CodecDecodeSelf(d)
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Reason = ""
} else {
x.Reason = string(r.DecodeString())
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Source = EventSource{}
} else {
yyv2995 := &x.Source
yyv2995.CodecDecodeSelf(d)
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.FirstTimestamp = pkg2_unversioned.Time{}
} else {
yyv2996 := &x.FirstTimestamp
yym2997 := z.DecBinary()
_ = yym2997
if false {
} else if z.HasExtensions() && z.DecExt(yyv2996) {
} else if yym2997 {
z.DecBinaryUnmarshal(yyv2996)
} else if !yym2997 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2996)
} else {
z.DecFallback(yyv2996, false)
}
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.LastTimestamp = pkg2_unversioned.Time{}
} else {
yyv2998 := &x.LastTimestamp
yym2999 := z.DecBinary()
_ = yym2999
if false {
} else if z.HasExtensions() && z.DecExt(yyv2998) {
} else if yym2999 {
z.DecBinaryUnmarshal(yyv2998)
} else if !yym2999 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv2998)
} else {
z.DecFallback(yyv2998, false)
}
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Count = 0
} else {
x.Count = int(r.DecodeInt(codecSelferBitsize1234))
}
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
for {
yyj2988++
if yyhl2988 {
yyb2988 = yyj2988 > l
} else {
yyb2988 = r.CheckBreak()
}
if yyb2988 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj2988-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 {
yym3002 := z.EncBinary()
_ = yym3002
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3003 := !z.EncBinary()
yy2arr3003 := z.EncBasicHandle().StructToArray
var yyq3003 [4]bool
_, _, _ = yysep3003, yyq3003, yy2arr3003
const yyr3003 bool = false
yyq3003[0] = x.Kind != ""
yyq3003[1] = x.APIVersion != ""
yyq3003[2] = true
var yynn3003 int
if yyr3003 || yy2arr3003 {
r.EncodeArrayStart(4)
} else {
yynn3003 = 1
for _, b := range yyq3003 {
if b {
yynn3003++
}
}
r.EncodeMapStart(yynn3003)
yynn3003 = 0
}
if yyr3003 || yy2arr3003 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3003[0] {
yym3005 := z.EncBinary()
_ = yym3005
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3003[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3006 := z.EncBinary()
_ = yym3006
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3003 || yy2arr3003 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3003[1] {
yym3008 := z.EncBinary()
_ = yym3008
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3003[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3009 := z.EncBinary()
_ = yym3009
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3003 || yy2arr3003 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3003[2] {
yy3011 := &x.ListMeta
yym3012 := z.EncBinary()
_ = yym3012
if false {
} else if z.HasExtensions() && z.EncExt(yy3011) {
} else {
z.EncFallback(yy3011)
}
} else {
r.EncodeNil()
}
} else {
if yyq3003[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3013 := &x.ListMeta
yym3014 := z.EncBinary()
_ = yym3014
if false {
} else if z.HasExtensions() && z.EncExt(yy3013) {
} else {
z.EncFallback(yy3013)
}
}
}
if yyr3003 || yy2arr3003 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3016 := z.EncBinary()
_ = yym3016
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 {
yym3017 := z.EncBinary()
_ = yym3017
if false {
} else {
h.encSliceEvent(([]Event)(x.Items), e)
}
}
}
if yyr3003 || yy2arr3003 {
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
yym3018 := z.DecBinary()
_ = yym3018
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3019 := r.ContainerType()
if yyct3019 == codecSelferValueTypeMap1234 {
yyl3019 := r.ReadMapStart()
if yyl3019 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3019, d)
}
} else if yyct3019 == codecSelferValueTypeArray1234 {
yyl3019 := r.ReadArrayStart()
if yyl3019 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3019, 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 yys3020Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3020Slc
var yyhl3020 bool = l >= 0
for yyj3020 := 0; ; yyj3020++ {
if yyhl3020 {
if yyj3020 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3020Slc = r.DecodeBytes(yys3020Slc, true, true)
yys3020 := string(yys3020Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3020 {
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 {
yyv3023 := &x.ListMeta
yym3024 := z.DecBinary()
_ = yym3024
if false {
} else if z.HasExtensions() && z.DecExt(yyv3023) {
} else {
z.DecFallback(yyv3023, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3025 := &x.Items
yym3026 := z.DecBinary()
_ = yym3026
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3025), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3020)
} // end switch yys3020
} // end for yyj3020
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 yyj3027 int
var yyb3027 bool
var yyhl3027 bool = l >= 0
yyj3027++
if yyhl3027 {
yyb3027 = yyj3027 > l
} else {
yyb3027 = r.CheckBreak()
}
if yyb3027 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3027++
if yyhl3027 {
yyb3027 = yyj3027 > l
} else {
yyb3027 = r.CheckBreak()
}
if yyb3027 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3027++
if yyhl3027 {
yyb3027 = yyj3027 > l
} else {
yyb3027 = r.CheckBreak()
}
if yyb3027 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3030 := &x.ListMeta
yym3031 := z.DecBinary()
_ = yym3031
if false {
} else if z.HasExtensions() && z.DecExt(yyv3030) {
} else {
z.DecFallback(yyv3030, false)
}
}
yyj3027++
if yyhl3027 {
yyb3027 = yyj3027 > l
} else {
yyb3027 = r.CheckBreak()
}
if yyb3027 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3032 := &x.Items
yym3033 := z.DecBinary()
_ = yym3033
if false {
} else {
h.decSliceEvent((*[]Event)(yyv3032), d)
}
}
for {
yyj3027++
if yyhl3027 {
yyb3027 = yyj3027 > l
} else {
yyb3027 = r.CheckBreak()
}
if yyb3027 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3027-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *List) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3034 := z.EncBinary()
_ = yym3034
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3035 := !z.EncBinary()
yy2arr3035 := z.EncBasicHandle().StructToArray
var yyq3035 [4]bool
_, _, _ = yysep3035, yyq3035, yy2arr3035
const yyr3035 bool = false
yyq3035[0] = x.Kind != ""
yyq3035[1] = x.APIVersion != ""
yyq3035[2] = true
var yynn3035 int
if yyr3035 || yy2arr3035 {
r.EncodeArrayStart(4)
} else {
yynn3035 = 1
for _, b := range yyq3035 {
if b {
yynn3035++
}
}
r.EncodeMapStart(yynn3035)
yynn3035 = 0
}
if yyr3035 || yy2arr3035 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3035[0] {
yym3037 := z.EncBinary()
_ = yym3037
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3035[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3038 := z.EncBinary()
_ = yym3038
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3035 || yy2arr3035 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3035[1] {
yym3040 := z.EncBinary()
_ = yym3040
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3035[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3041 := z.EncBinary()
_ = yym3041
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3035 || yy2arr3035 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3035[2] {
yy3043 := &x.ListMeta
yym3044 := z.EncBinary()
_ = yym3044
if false {
} else if z.HasExtensions() && z.EncExt(yy3043) {
} else {
z.EncFallback(yy3043)
}
} else {
r.EncodeNil()
}
} else {
if yyq3035[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3045 := &x.ListMeta
yym3046 := z.EncBinary()
_ = yym3046
if false {
} else if z.HasExtensions() && z.EncExt(yy3045) {
} else {
z.EncFallback(yy3045)
}
}
}
if yyr3035 || yy2arr3035 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3048 := z.EncBinary()
_ = yym3048
if false {
} else {
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
}
}
} else {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("items"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3049 := z.EncBinary()
_ = yym3049
if false {
} else {
h.encSliceruntime_Object(([]pkg8_runtime.Object)(x.Items), e)
}
}
}
if yyr3035 || yy2arr3035 {
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
yym3050 := z.DecBinary()
_ = yym3050
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3051 := r.ContainerType()
if yyct3051 == codecSelferValueTypeMap1234 {
yyl3051 := r.ReadMapStart()
if yyl3051 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3051, d)
}
} else if yyct3051 == codecSelferValueTypeArray1234 {
yyl3051 := r.ReadArrayStart()
if yyl3051 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3051, 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 yys3052Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3052Slc
var yyhl3052 bool = l >= 0
for yyj3052 := 0; ; yyj3052++ {
if yyhl3052 {
if yyj3052 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3052Slc = r.DecodeBytes(yys3052Slc, true, true)
yys3052 := string(yys3052Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3052 {
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 {
yyv3055 := &x.ListMeta
yym3056 := z.DecBinary()
_ = yym3056
if false {
} else if z.HasExtensions() && z.DecExt(yyv3055) {
} else {
z.DecFallback(yyv3055, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3057 := &x.Items
yym3058 := z.DecBinary()
_ = yym3058
if false {
} else {
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3057), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3052)
} // end switch yys3052
} // end for yyj3052
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 yyj3059 int
var yyb3059 bool
var yyhl3059 bool = l >= 0
yyj3059++
if yyhl3059 {
yyb3059 = yyj3059 > l
} else {
yyb3059 = r.CheckBreak()
}
if yyb3059 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3059++
if yyhl3059 {
yyb3059 = yyj3059 > l
} else {
yyb3059 = r.CheckBreak()
}
if yyb3059 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3059++
if yyhl3059 {
yyb3059 = yyj3059 > l
} else {
yyb3059 = r.CheckBreak()
}
if yyb3059 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3062 := &x.ListMeta
yym3063 := z.DecBinary()
_ = yym3063
if false {
} else if z.HasExtensions() && z.DecExt(yyv3062) {
} else {
z.DecFallback(yyv3062, false)
}
}
yyj3059++
if yyhl3059 {
yyb3059 = yyj3059 > l
} else {
yyb3059 = r.CheckBreak()
}
if yyb3059 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3064 := &x.Items
yym3065 := z.DecBinary()
_ = yym3065
if false {
} else {
h.decSliceruntime_Object((*[]pkg8_runtime.Object)(yyv3064), d)
}
}
for {
yyj3059++
if yyhl3059 {
yyb3059 = yyj3059 > l
} else {
yyb3059 = r.CheckBreak()
}
if yyb3059 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3059-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x LimitType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3066 := z.EncBinary()
_ = yym3066
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
yym3067 := z.DecBinary()
_ = yym3067
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 {
yym3068 := z.EncBinary()
_ = yym3068
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3069 := !z.EncBinary()
yy2arr3069 := z.EncBasicHandle().StructToArray
var yyq3069 [6]bool
_, _, _ = yysep3069, yyq3069, yy2arr3069
const yyr3069 bool = false
yyq3069[0] = x.Type != ""
yyq3069[1] = len(x.Max) != 0
yyq3069[2] = len(x.Min) != 0
yyq3069[3] = len(x.Default) != 0
yyq3069[4] = len(x.DefaultRequest) != 0
yyq3069[5] = len(x.MaxLimitRequestRatio) != 0
var yynn3069 int
if yyr3069 || yy2arr3069 {
r.EncodeArrayStart(6)
} else {
yynn3069 = 0
for _, b := range yyq3069 {
if b {
yynn3069++
}
}
r.EncodeMapStart(yynn3069)
yynn3069 = 0
}
if yyr3069 || yy2arr3069 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3069[0] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3069[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3069 || yy2arr3069 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3069[1] {
if x.Max == nil {
r.EncodeNil()
} else {
x.Max.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3069[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 yyr3069 || yy2arr3069 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3069[2] {
if x.Min == nil {
r.EncodeNil()
} else {
x.Min.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3069[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 yyr3069 || yy2arr3069 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3069[3] {
if x.Default == nil {
r.EncodeNil()
} else {
x.Default.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3069[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 yyr3069 || yy2arr3069 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3069[4] {
if x.DefaultRequest == nil {
r.EncodeNil()
} else {
x.DefaultRequest.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3069[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 yyr3069 || yy2arr3069 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3069[5] {
if x.MaxLimitRequestRatio == nil {
r.EncodeNil()
} else {
x.MaxLimitRequestRatio.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3069[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 yyr3069 || yy2arr3069 {
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
yym3076 := z.DecBinary()
_ = yym3076
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3077 := r.ContainerType()
if yyct3077 == codecSelferValueTypeMap1234 {
yyl3077 := r.ReadMapStart()
if yyl3077 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3077, d)
}
} else if yyct3077 == codecSelferValueTypeArray1234 {
yyl3077 := r.ReadArrayStart()
if yyl3077 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3077, 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 yys3078Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3078Slc
var yyhl3078 bool = l >= 0
for yyj3078 := 0; ; yyj3078++ {
if yyhl3078 {
if yyj3078 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3078Slc = r.DecodeBytes(yys3078Slc, true, true)
yys3078 := string(yys3078Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3078 {
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
case "max":
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3080 := &x.Max
yyv3080.CodecDecodeSelf(d)
}
case "min":
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3081 := &x.Min
yyv3081.CodecDecodeSelf(d)
}
case "default":
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3082 := &x.Default
yyv3082.CodecDecodeSelf(d)
}
case "defaultRequest":
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3083 := &x.DefaultRequest
yyv3083.CodecDecodeSelf(d)
}
case "maxLimitRequestRatio":
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3084 := &x.MaxLimitRequestRatio
yyv3084.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3078)
} // end switch yys3078
} // end for yyj3078
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 yyj3085 int
var yyb3085 bool
var yyhl3085 bool = l >= 0
yyj3085++
if yyhl3085 {
yyb3085 = yyj3085 > l
} else {
yyb3085 = r.CheckBreak()
}
if yyb3085 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = LimitType(r.DecodeString())
}
yyj3085++
if yyhl3085 {
yyb3085 = yyj3085 > l
} else {
yyb3085 = r.CheckBreak()
}
if yyb3085 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Max = nil
} else {
yyv3087 := &x.Max
yyv3087.CodecDecodeSelf(d)
}
yyj3085++
if yyhl3085 {
yyb3085 = yyj3085 > l
} else {
yyb3085 = r.CheckBreak()
}
if yyb3085 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Min = nil
} else {
yyv3088 := &x.Min
yyv3088.CodecDecodeSelf(d)
}
yyj3085++
if yyhl3085 {
yyb3085 = yyj3085 > l
} else {
yyb3085 = r.CheckBreak()
}
if yyb3085 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Default = nil
} else {
yyv3089 := &x.Default
yyv3089.CodecDecodeSelf(d)
}
yyj3085++
if yyhl3085 {
yyb3085 = yyj3085 > l
} else {
yyb3085 = r.CheckBreak()
}
if yyb3085 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.DefaultRequest = nil
} else {
yyv3090 := &x.DefaultRequest
yyv3090.CodecDecodeSelf(d)
}
yyj3085++
if yyhl3085 {
yyb3085 = yyj3085 > l
} else {
yyb3085 = r.CheckBreak()
}
if yyb3085 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.MaxLimitRequestRatio = nil
} else {
yyv3091 := &x.MaxLimitRequestRatio
yyv3091.CodecDecodeSelf(d)
}
for {
yyj3085++
if yyhl3085 {
yyb3085 = yyj3085 > l
} else {
yyb3085 = r.CheckBreak()
}
if yyb3085 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3085-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 {
yym3092 := z.EncBinary()
_ = yym3092
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3093 := !z.EncBinary()
yy2arr3093 := z.EncBasicHandle().StructToArray
var yyq3093 [1]bool
_, _, _ = yysep3093, yyq3093, yy2arr3093
const yyr3093 bool = false
var yynn3093 int
if yyr3093 || yy2arr3093 {
r.EncodeArrayStart(1)
} else {
yynn3093 = 1
for _, b := range yyq3093 {
if b {
yynn3093++
}
}
r.EncodeMapStart(yynn3093)
yynn3093 = 0
}
if yyr3093 || yy2arr3093 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Limits == nil {
r.EncodeNil()
} else {
yym3095 := z.EncBinary()
_ = yym3095
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 {
yym3096 := z.EncBinary()
_ = yym3096
if false {
} else {
h.encSliceLimitRangeItem(([]LimitRangeItem)(x.Limits), e)
}
}
}
if yyr3093 || yy2arr3093 {
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
yym3097 := z.DecBinary()
_ = yym3097
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3098 := r.ContainerType()
if yyct3098 == codecSelferValueTypeMap1234 {
yyl3098 := r.ReadMapStart()
if yyl3098 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3098, d)
}
} else if yyct3098 == codecSelferValueTypeArray1234 {
yyl3098 := r.ReadArrayStart()
if yyl3098 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3098, 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 yys3099Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3099Slc
var yyhl3099 bool = l >= 0
for yyj3099 := 0; ; yyj3099++ {
if yyhl3099 {
if yyj3099 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3099Slc = r.DecodeBytes(yys3099Slc, true, true)
yys3099 := string(yys3099Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3099 {
case "limits":
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3100 := &x.Limits
yym3101 := z.DecBinary()
_ = yym3101
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3100), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3099)
} // end switch yys3099
} // end for yyj3099
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 yyj3102 int
var yyb3102 bool
var yyhl3102 bool = l >= 0
yyj3102++
if yyhl3102 {
yyb3102 = yyj3102 > l
} else {
yyb3102 = r.CheckBreak()
}
if yyb3102 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Limits = nil
} else {
yyv3103 := &x.Limits
yym3104 := z.DecBinary()
_ = yym3104
if false {
} else {
h.decSliceLimitRangeItem((*[]LimitRangeItem)(yyv3103), d)
}
}
for {
yyj3102++
if yyhl3102 {
yyb3102 = yyj3102 > l
} else {
yyb3102 = r.CheckBreak()
}
if yyb3102 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3102-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 {
yym3105 := z.EncBinary()
_ = yym3105
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3106 := !z.EncBinary()
yy2arr3106 := z.EncBasicHandle().StructToArray
var yyq3106 [4]bool
_, _, _ = yysep3106, yyq3106, yy2arr3106
const yyr3106 bool = false
yyq3106[0] = x.Kind != ""
yyq3106[1] = x.APIVersion != ""
yyq3106[2] = true
yyq3106[3] = true
var yynn3106 int
if yyr3106 || yy2arr3106 {
r.EncodeArrayStart(4)
} else {
yynn3106 = 0
for _, b := range yyq3106 {
if b {
yynn3106++
}
}
r.EncodeMapStart(yynn3106)
yynn3106 = 0
}
if yyr3106 || yy2arr3106 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3106[0] {
yym3108 := z.EncBinary()
_ = yym3108
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3106[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3109 := z.EncBinary()
_ = yym3109
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3106 || yy2arr3106 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3106[1] {
yym3111 := z.EncBinary()
_ = yym3111
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3106[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3112 := z.EncBinary()
_ = yym3112
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3106 || yy2arr3106 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3106[2] {
yy3114 := &x.ObjectMeta
yy3114.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3106[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3115 := &x.ObjectMeta
yy3115.CodecEncodeSelf(e)
}
}
if yyr3106 || yy2arr3106 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3106[3] {
yy3117 := &x.Spec
yy3117.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3106[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3118 := &x.Spec
yy3118.CodecEncodeSelf(e)
}
}
if yyr3106 || yy2arr3106 {
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
yym3119 := z.DecBinary()
_ = yym3119
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3120 := r.ContainerType()
if yyct3120 == codecSelferValueTypeMap1234 {
yyl3120 := r.ReadMapStart()
if yyl3120 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3120, d)
}
} else if yyct3120 == codecSelferValueTypeArray1234 {
yyl3120 := r.ReadArrayStart()
if yyl3120 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3120, 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 yys3121Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3121Slc
var yyhl3121 bool = l >= 0
for yyj3121 := 0; ; yyj3121++ {
if yyhl3121 {
if yyj3121 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3121Slc = r.DecodeBytes(yys3121Slc, true, true)
yys3121 := string(yys3121Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3121 {
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 {
yyv3124 := &x.ObjectMeta
yyv3124.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3125 := &x.Spec
yyv3125.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3121)
} // end switch yys3121
} // end for yyj3121
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 yyj3126 int
var yyb3126 bool
var yyhl3126 bool = l >= 0
yyj3126++
if yyhl3126 {
yyb3126 = yyj3126 > l
} else {
yyb3126 = r.CheckBreak()
}
if yyb3126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3126++
if yyhl3126 {
yyb3126 = yyj3126 > l
} else {
yyb3126 = r.CheckBreak()
}
if yyb3126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3126++
if yyhl3126 {
yyb3126 = yyj3126 > l
} else {
yyb3126 = r.CheckBreak()
}
if yyb3126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3129 := &x.ObjectMeta
yyv3129.CodecDecodeSelf(d)
}
yyj3126++
if yyhl3126 {
yyb3126 = yyj3126 > l
} else {
yyb3126 = r.CheckBreak()
}
if yyb3126 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = LimitRangeSpec{}
} else {
yyv3130 := &x.Spec
yyv3130.CodecDecodeSelf(d)
}
for {
yyj3126++
if yyhl3126 {
yyb3126 = yyj3126 > l
} else {
yyb3126 = r.CheckBreak()
}
if yyb3126 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3126-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 {
yym3131 := z.EncBinary()
_ = yym3131
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3132 := !z.EncBinary()
yy2arr3132 := z.EncBasicHandle().StructToArray
var yyq3132 [4]bool
_, _, _ = yysep3132, yyq3132, yy2arr3132
const yyr3132 bool = false
yyq3132[0] = x.Kind != ""
yyq3132[1] = x.APIVersion != ""
yyq3132[2] = true
var yynn3132 int
if yyr3132 || yy2arr3132 {
r.EncodeArrayStart(4)
} else {
yynn3132 = 1
for _, b := range yyq3132 {
if b {
yynn3132++
}
}
r.EncodeMapStart(yynn3132)
yynn3132 = 0
}
if yyr3132 || yy2arr3132 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3132[0] {
yym3134 := z.EncBinary()
_ = yym3134
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3132[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3135 := z.EncBinary()
_ = yym3135
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3132 || yy2arr3132 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3132[1] {
yym3137 := z.EncBinary()
_ = yym3137
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3132[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3138 := z.EncBinary()
_ = yym3138
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3132 || yy2arr3132 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3132[2] {
yy3140 := &x.ListMeta
yym3141 := z.EncBinary()
_ = yym3141
if false {
} else if z.HasExtensions() && z.EncExt(yy3140) {
} else {
z.EncFallback(yy3140)
}
} else {
r.EncodeNil()
}
} else {
if yyq3132[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3142 := &x.ListMeta
yym3143 := z.EncBinary()
_ = yym3143
if false {
} else if z.HasExtensions() && z.EncExt(yy3142) {
} else {
z.EncFallback(yy3142)
}
}
}
if yyr3132 || yy2arr3132 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3145 := z.EncBinary()
_ = yym3145
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 {
yym3146 := z.EncBinary()
_ = yym3146
if false {
} else {
h.encSliceLimitRange(([]LimitRange)(x.Items), e)
}
}
}
if yyr3132 || yy2arr3132 {
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
yym3147 := z.DecBinary()
_ = yym3147
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3148 := r.ContainerType()
if yyct3148 == codecSelferValueTypeMap1234 {
yyl3148 := r.ReadMapStart()
if yyl3148 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3148, d)
}
} else if yyct3148 == codecSelferValueTypeArray1234 {
yyl3148 := r.ReadArrayStart()
if yyl3148 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3148, 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 yys3149Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3149Slc
var yyhl3149 bool = l >= 0
for yyj3149 := 0; ; yyj3149++ {
if yyhl3149 {
if yyj3149 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3149Slc = r.DecodeBytes(yys3149Slc, true, true)
yys3149 := string(yys3149Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3149 {
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 {
yyv3152 := &x.ListMeta
yym3153 := z.DecBinary()
_ = yym3153
if false {
} else if z.HasExtensions() && z.DecExt(yyv3152) {
} else {
z.DecFallback(yyv3152, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3154 := &x.Items
yym3155 := z.DecBinary()
_ = yym3155
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv3154), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3149)
} // end switch yys3149
} // end for yyj3149
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 yyj3156 int
var yyb3156 bool
var yyhl3156 bool = l >= 0
yyj3156++
if yyhl3156 {
yyb3156 = yyj3156 > l
} else {
yyb3156 = r.CheckBreak()
}
if yyb3156 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3156++
if yyhl3156 {
yyb3156 = yyj3156 > l
} else {
yyb3156 = r.CheckBreak()
}
if yyb3156 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3156++
if yyhl3156 {
yyb3156 = yyj3156 > l
} else {
yyb3156 = r.CheckBreak()
}
if yyb3156 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3159 := &x.ListMeta
yym3160 := z.DecBinary()
_ = yym3160
if false {
} else if z.HasExtensions() && z.DecExt(yyv3159) {
} else {
z.DecFallback(yyv3159, false)
}
}
yyj3156++
if yyhl3156 {
yyb3156 = yyj3156 > l
} else {
yyb3156 = r.CheckBreak()
}
if yyb3156 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3161 := &x.Items
yym3162 := z.DecBinary()
_ = yym3162
if false {
} else {
h.decSliceLimitRange((*[]LimitRange)(yyv3161), d)
}
}
for {
yyj3156++
if yyhl3156 {
yyb3156 = yyj3156 > l
} else {
yyb3156 = r.CheckBreak()
}
if yyb3156 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3156-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ResourceQuotaSpec) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3163 := z.EncBinary()
_ = yym3163
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3164 := !z.EncBinary()
yy2arr3164 := z.EncBasicHandle().StructToArray
var yyq3164 [1]bool
_, _, _ = yysep3164, yyq3164, yy2arr3164
const yyr3164 bool = false
yyq3164[0] = len(x.Hard) != 0
var yynn3164 int
if yyr3164 || yy2arr3164 {
r.EncodeArrayStart(1)
} else {
yynn3164 = 0
for _, b := range yyq3164 {
if b {
yynn3164++
}
}
r.EncodeMapStart(yynn3164)
yynn3164 = 0
}
if yyr3164 || yy2arr3164 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3164[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3164[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 yyr3164 || yy2arr3164 {
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
yym3166 := z.DecBinary()
_ = yym3166
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3167 := r.ContainerType()
if yyct3167 == codecSelferValueTypeMap1234 {
yyl3167 := r.ReadMapStart()
if yyl3167 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3167, d)
}
} else if yyct3167 == codecSelferValueTypeArray1234 {
yyl3167 := r.ReadArrayStart()
if yyl3167 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3167, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ResourceQuotaSpec) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3168Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3168Slc
var yyhl3168 bool = l >= 0
for yyj3168 := 0; ; yyj3168++ {
if yyhl3168 {
if yyj3168 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3168Slc = r.DecodeBytes(yys3168Slc, true, true)
yys3168 := string(yys3168Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3168 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3169 := &x.Hard
yyv3169.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3168)
} // end switch yys3168
} // end for yyj3168
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 yyj3170 int
var yyb3170 bool
var yyhl3170 bool = l >= 0
yyj3170++
if yyhl3170 {
yyb3170 = yyj3170 > l
} else {
yyb3170 = r.CheckBreak()
}
if yyb3170 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3171 := &x.Hard
yyv3171.CodecDecodeSelf(d)
}
for {
yyj3170++
if yyhl3170 {
yyb3170 = yyj3170 > l
} else {
yyb3170 = r.CheckBreak()
}
if yyb3170 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3170-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 {
yym3172 := z.EncBinary()
_ = yym3172
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3173 := !z.EncBinary()
yy2arr3173 := z.EncBasicHandle().StructToArray
var yyq3173 [2]bool
_, _, _ = yysep3173, yyq3173, yy2arr3173
const yyr3173 bool = false
yyq3173[0] = len(x.Hard) != 0
yyq3173[1] = len(x.Used) != 0
var yynn3173 int
if yyr3173 || yy2arr3173 {
r.EncodeArrayStart(2)
} else {
yynn3173 = 0
for _, b := range yyq3173 {
if b {
yynn3173++
}
}
r.EncodeMapStart(yynn3173)
yynn3173 = 0
}
if yyr3173 || yy2arr3173 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3173[0] {
if x.Hard == nil {
r.EncodeNil()
} else {
x.Hard.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3173[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 yyr3173 || yy2arr3173 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3173[1] {
if x.Used == nil {
r.EncodeNil()
} else {
x.Used.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3173[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 yyr3173 || yy2arr3173 {
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
yym3176 := z.DecBinary()
_ = yym3176
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3177 := r.ContainerType()
if yyct3177 == codecSelferValueTypeMap1234 {
yyl3177 := r.ReadMapStart()
if yyl3177 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3177, d)
}
} else if yyct3177 == codecSelferValueTypeArray1234 {
yyl3177 := r.ReadArrayStart()
if yyl3177 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3177, 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 yys3178Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3178Slc
var yyhl3178 bool = l >= 0
for yyj3178 := 0; ; yyj3178++ {
if yyhl3178 {
if yyj3178 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3178Slc = r.DecodeBytes(yys3178Slc, true, true)
yys3178 := string(yys3178Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3178 {
case "hard":
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3179 := &x.Hard
yyv3179.CodecDecodeSelf(d)
}
case "used":
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv3180 := &x.Used
yyv3180.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3178)
} // end switch yys3178
} // end for yyj3178
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 yyj3181 int
var yyb3181 bool
var yyhl3181 bool = l >= 0
yyj3181++
if yyhl3181 {
yyb3181 = yyj3181 > l
} else {
yyb3181 = r.CheckBreak()
}
if yyb3181 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Hard = nil
} else {
yyv3182 := &x.Hard
yyv3182.CodecDecodeSelf(d)
}
yyj3181++
if yyhl3181 {
yyb3181 = yyj3181 > l
} else {
yyb3181 = r.CheckBreak()
}
if yyb3181 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Used = nil
} else {
yyv3183 := &x.Used
yyv3183.CodecDecodeSelf(d)
}
for {
yyj3181++
if yyhl3181 {
yyb3181 = yyj3181 > l
} else {
yyb3181 = r.CheckBreak()
}
if yyb3181 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3181-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 {
yym3184 := z.EncBinary()
_ = yym3184
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3185 := !z.EncBinary()
yy2arr3185 := z.EncBasicHandle().StructToArray
var yyq3185 [5]bool
_, _, _ = yysep3185, yyq3185, yy2arr3185
const yyr3185 bool = false
yyq3185[0] = x.Kind != ""
yyq3185[1] = x.APIVersion != ""
yyq3185[2] = true
yyq3185[3] = true
yyq3185[4] = true
var yynn3185 int
if yyr3185 || yy2arr3185 {
r.EncodeArrayStart(5)
} else {
yynn3185 = 0
for _, b := range yyq3185 {
if b {
yynn3185++
}
}
r.EncodeMapStart(yynn3185)
yynn3185 = 0
}
if yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[0] {
yym3187 := z.EncBinary()
_ = yym3187
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3185[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3188 := z.EncBinary()
_ = yym3188
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[1] {
yym3190 := z.EncBinary()
_ = yym3190
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3185[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3191 := z.EncBinary()
_ = yym3191
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[2] {
yy3193 := &x.ObjectMeta
yy3193.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3185[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3194 := &x.ObjectMeta
yy3194.CodecEncodeSelf(e)
}
}
if yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[3] {
yy3196 := &x.Spec
yy3196.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3185[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("spec"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3197 := &x.Spec
yy3197.CodecEncodeSelf(e)
}
}
if yyr3185 || yy2arr3185 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3185[4] {
yy3199 := &x.Status
yy3199.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3185[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("status"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3200 := &x.Status
yy3200.CodecEncodeSelf(e)
}
}
if yyr3185 || yy2arr3185 {
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
yym3201 := z.DecBinary()
_ = yym3201
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3202 := r.ContainerType()
if yyct3202 == codecSelferValueTypeMap1234 {
yyl3202 := r.ReadMapStart()
if yyl3202 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3202, d)
}
} else if yyct3202 == codecSelferValueTypeArray1234 {
yyl3202 := r.ReadArrayStart()
if yyl3202 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3202, 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 yys3203Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3203Slc
var yyhl3203 bool = l >= 0
for yyj3203 := 0; ; yyj3203++ {
if yyhl3203 {
if yyj3203 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3203Slc = r.DecodeBytes(yys3203Slc, true, true)
yys3203 := string(yys3203Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3203 {
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 {
yyv3206 := &x.ObjectMeta
yyv3206.CodecDecodeSelf(d)
}
case "spec":
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv3207 := &x.Spec
yyv3207.CodecDecodeSelf(d)
}
case "status":
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv3208 := &x.Status
yyv3208.CodecDecodeSelf(d)
}
default:
z.DecStructFieldNotFound(-1, yys3203)
} // end switch yys3203
} // end for yyj3203
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 yyj3209 int
var yyb3209 bool
var yyhl3209 bool = l >= 0
yyj3209++
if yyhl3209 {
yyb3209 = yyj3209 > l
} else {
yyb3209 = r.CheckBreak()
}
if yyb3209 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3209++
if yyhl3209 {
yyb3209 = yyj3209 > l
} else {
yyb3209 = r.CheckBreak()
}
if yyb3209 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3209++
if yyhl3209 {
yyb3209 = yyj3209 > l
} else {
yyb3209 = r.CheckBreak()
}
if yyb3209 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3212 := &x.ObjectMeta
yyv3212.CodecDecodeSelf(d)
}
yyj3209++
if yyhl3209 {
yyb3209 = yyj3209 > l
} else {
yyb3209 = r.CheckBreak()
}
if yyb3209 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Spec = ResourceQuotaSpec{}
} else {
yyv3213 := &x.Spec
yyv3213.CodecDecodeSelf(d)
}
yyj3209++
if yyhl3209 {
yyb3209 = yyj3209 > l
} else {
yyb3209 = r.CheckBreak()
}
if yyb3209 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ResourceQuotaStatus{}
} else {
yyv3214 := &x.Status
yyv3214.CodecDecodeSelf(d)
}
for {
yyj3209++
if yyhl3209 {
yyb3209 = yyj3209 > l
} else {
yyb3209 = r.CheckBreak()
}
if yyb3209 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3209-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 {
yym3215 := z.EncBinary()
_ = yym3215
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3216 := !z.EncBinary()
yy2arr3216 := z.EncBasicHandle().StructToArray
var yyq3216 [4]bool
_, _, _ = yysep3216, yyq3216, yy2arr3216
const yyr3216 bool = false
yyq3216[0] = x.Kind != ""
yyq3216[1] = x.APIVersion != ""
yyq3216[2] = true
var yynn3216 int
if yyr3216 || yy2arr3216 {
r.EncodeArrayStart(4)
} else {
yynn3216 = 1
for _, b := range yyq3216 {
if b {
yynn3216++
}
}
r.EncodeMapStart(yynn3216)
yynn3216 = 0
}
if yyr3216 || yy2arr3216 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3216[0] {
yym3218 := z.EncBinary()
_ = yym3218
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3216[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3219 := z.EncBinary()
_ = yym3219
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3216 || yy2arr3216 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3216[1] {
yym3221 := z.EncBinary()
_ = yym3221
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3216[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3222 := z.EncBinary()
_ = yym3222
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3216 || yy2arr3216 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3216[2] {
yy3224 := &x.ListMeta
yym3225 := z.EncBinary()
_ = yym3225
if false {
} else if z.HasExtensions() && z.EncExt(yy3224) {
} else {
z.EncFallback(yy3224)
}
} else {
r.EncodeNil()
}
} else {
if yyq3216[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3226 := &x.ListMeta
yym3227 := z.EncBinary()
_ = yym3227
if false {
} else if z.HasExtensions() && z.EncExt(yy3226) {
} else {
z.EncFallback(yy3226)
}
}
}
if yyr3216 || yy2arr3216 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3229 := z.EncBinary()
_ = yym3229
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 {
yym3230 := z.EncBinary()
_ = yym3230
if false {
} else {
h.encSliceResourceQuota(([]ResourceQuota)(x.Items), e)
}
}
}
if yyr3216 || yy2arr3216 {
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
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 *ResourceQuotaList) 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 "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 {
yyv3236 := &x.ListMeta
yym3237 := z.DecBinary()
_ = yym3237
if false {
} else if z.HasExtensions() && z.DecExt(yyv3236) {
} else {
z.DecFallback(yyv3236, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3238 := &x.Items
yym3239 := z.DecBinary()
_ = yym3239
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3238), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3233)
} // end switch yys3233
} // end for yyj3233
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 yyj3240 int
var yyb3240 bool
var yyhl3240 bool = l >= 0
yyj3240++
if yyhl3240 {
yyb3240 = yyj3240 > l
} else {
yyb3240 = r.CheckBreak()
}
if yyb3240 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3240++
if yyhl3240 {
yyb3240 = yyj3240 > l
} else {
yyb3240 = r.CheckBreak()
}
if yyb3240 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3240++
if yyhl3240 {
yyb3240 = yyj3240 > l
} else {
yyb3240 = r.CheckBreak()
}
if yyb3240 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3243 := &x.ListMeta
yym3244 := z.DecBinary()
_ = yym3244
if false {
} else if z.HasExtensions() && z.DecExt(yyv3243) {
} else {
z.DecFallback(yyv3243, false)
}
}
yyj3240++
if yyhl3240 {
yyb3240 = yyj3240 > l
} else {
yyb3240 = r.CheckBreak()
}
if yyb3240 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3245 := &x.Items
yym3246 := z.DecBinary()
_ = yym3246
if false {
} else {
h.decSliceResourceQuota((*[]ResourceQuota)(yyv3245), d)
}
}
for {
yyj3240++
if yyhl3240 {
yyb3240 = yyj3240 > l
} else {
yyb3240 = r.CheckBreak()
}
if yyb3240 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3240-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 {
yym3247 := z.EncBinary()
_ = yym3247
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3248 := !z.EncBinary()
yy2arr3248 := z.EncBasicHandle().StructToArray
var yyq3248 [5]bool
_, _, _ = yysep3248, yyq3248, yy2arr3248
const yyr3248 bool = false
yyq3248[0] = x.Kind != ""
yyq3248[1] = x.APIVersion != ""
yyq3248[2] = true
yyq3248[3] = len(x.Data) != 0
yyq3248[4] = x.Type != ""
var yynn3248 int
if yyr3248 || yy2arr3248 {
r.EncodeArrayStart(5)
} else {
yynn3248 = 0
for _, b := range yyq3248 {
if b {
yynn3248++
}
}
r.EncodeMapStart(yynn3248)
yynn3248 = 0
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[0] {
yym3250 := z.EncBinary()
_ = yym3250
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3248[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3251 := z.EncBinary()
_ = yym3251
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[1] {
yym3253 := z.EncBinary()
_ = yym3253
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3248[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3254 := z.EncBinary()
_ = yym3254
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[2] {
yy3256 := &x.ObjectMeta
yy3256.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3248[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3257 := &x.ObjectMeta
yy3257.CodecEncodeSelf(e)
}
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[3] {
if x.Data == nil {
r.EncodeNil()
} else {
yym3259 := z.EncBinary()
_ = yym3259
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3248[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("data"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym3260 := z.EncBinary()
_ = yym3260
if false {
} else {
h.encMapstringSliceuint8((map[string][]uint8)(x.Data), e)
}
}
}
}
if yyr3248 || yy2arr3248 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3248[4] {
x.Type.CodecEncodeSelf(e)
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3248[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
x.Type.CodecEncodeSelf(e)
}
}
if yyr3248 || yy2arr3248 {
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
yym3262 := z.DecBinary()
_ = yym3262
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3263 := r.ContainerType()
if yyct3263 == codecSelferValueTypeMap1234 {
yyl3263 := r.ReadMapStart()
if yyl3263 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3263, d)
}
} else if yyct3263 == codecSelferValueTypeArray1234 {
yyl3263 := r.ReadArrayStart()
if yyl3263 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3263, 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 yys3264Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3264Slc
var yyhl3264 bool = l >= 0
for yyj3264 := 0; ; yyj3264++ {
if yyhl3264 {
if yyj3264 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3264Slc = r.DecodeBytes(yys3264Slc, true, true)
yys3264 := string(yys3264Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3264 {
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 {
yyv3267 := &x.ObjectMeta
yyv3267.CodecDecodeSelf(d)
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3268 := &x.Data
yym3269 := z.DecBinary()
_ = yym3269
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3268), d)
}
}
case "type":
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
default:
z.DecStructFieldNotFound(-1, yys3264)
} // end switch yys3264
} // end for yyj3264
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 yyj3271 int
var yyb3271 bool
var yyhl3271 bool = l >= 0
yyj3271++
if yyhl3271 {
yyb3271 = yyj3271 > l
} else {
yyb3271 = r.CheckBreak()
}
if yyb3271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3271++
if yyhl3271 {
yyb3271 = yyj3271 > l
} else {
yyb3271 = r.CheckBreak()
}
if yyb3271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3271++
if yyhl3271 {
yyb3271 = yyj3271 > l
} else {
yyb3271 = r.CheckBreak()
}
if yyb3271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3274 := &x.ObjectMeta
yyv3274.CodecDecodeSelf(d)
}
yyj3271++
if yyhl3271 {
yyb3271 = yyj3271 > l
} else {
yyb3271 = r.CheckBreak()
}
if yyb3271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3275 := &x.Data
yym3276 := z.DecBinary()
_ = yym3276
if false {
} else {
h.decMapstringSliceuint8((*map[string][]uint8)(yyv3275), d)
}
}
yyj3271++
if yyhl3271 {
yyb3271 = yyj3271 > l
} else {
yyb3271 = r.CheckBreak()
}
if yyb3271 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = SecretType(r.DecodeString())
}
for {
yyj3271++
if yyhl3271 {
yyb3271 = yyj3271 > l
} else {
yyb3271 = r.CheckBreak()
}
if yyb3271 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3271-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x SecretType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3278 := z.EncBinary()
_ = yym3278
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
yym3279 := z.DecBinary()
_ = yym3279
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 {
yym3280 := z.EncBinary()
_ = yym3280
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3281 := !z.EncBinary()
yy2arr3281 := z.EncBasicHandle().StructToArray
var yyq3281 [4]bool
_, _, _ = yysep3281, yyq3281, yy2arr3281
const yyr3281 bool = false
yyq3281[0] = x.Kind != ""
yyq3281[1] = x.APIVersion != ""
yyq3281[2] = true
var yynn3281 int
if yyr3281 || yy2arr3281 {
r.EncodeArrayStart(4)
} else {
yynn3281 = 1
for _, b := range yyq3281 {
if b {
yynn3281++
}
}
r.EncodeMapStart(yynn3281)
yynn3281 = 0
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3281[0] {
yym3283 := z.EncBinary()
_ = yym3283
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3281[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3284 := z.EncBinary()
_ = yym3284
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3281[1] {
yym3286 := z.EncBinary()
_ = yym3286
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3281[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3287 := z.EncBinary()
_ = yym3287
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3281[2] {
yy3289 := &x.ListMeta
yym3290 := z.EncBinary()
_ = yym3290
if false {
} else if z.HasExtensions() && z.EncExt(yy3289) {
} else {
z.EncFallback(yy3289)
}
} else {
r.EncodeNil()
}
} else {
if yyq3281[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3291 := &x.ListMeta
yym3292 := z.EncBinary()
_ = yym3292
if false {
} else if z.HasExtensions() && z.EncExt(yy3291) {
} else {
z.EncFallback(yy3291)
}
}
}
if yyr3281 || yy2arr3281 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3294 := z.EncBinary()
_ = yym3294
if false {
} else {
h.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 {
yym3295 := z.EncBinary()
_ = yym3295
if false {
} else {
h.encSliceSecret(([]Secret)(x.Items), e)
}
}
}
if yyr3281 || yy2arr3281 {
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
yym3296 := z.DecBinary()
_ = yym3296
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3297 := r.ContainerType()
if yyct3297 == codecSelferValueTypeMap1234 {
yyl3297 := r.ReadMapStart()
if yyl3297 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3297, d)
}
} else if yyct3297 == codecSelferValueTypeArray1234 {
yyl3297 := r.ReadArrayStart()
if yyl3297 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3297, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *SecretList) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3298Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3298Slc
var yyhl3298 bool = l >= 0
for yyj3298 := 0; ; yyj3298++ {
if yyhl3298 {
if yyj3298 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3298Slc = r.DecodeBytes(yys3298Slc, true, true)
yys3298 := string(yys3298Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3298 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3301 := &x.ListMeta
yym3302 := z.DecBinary()
_ = yym3302
if false {
} else if z.HasExtensions() && z.DecExt(yyv3301) {
} else {
z.DecFallback(yyv3301, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3303 := &x.Items
yym3304 := z.DecBinary()
_ = yym3304
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv3303), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3298)
} // end switch yys3298
} // end for yyj3298
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 yyj3305 int
var yyb3305 bool
var yyhl3305 bool = l >= 0
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3308 := &x.ListMeta
yym3309 := z.DecBinary()
_ = yym3309
if false {
} else if z.HasExtensions() && z.DecExt(yyv3308) {
} else {
z.DecFallback(yyv3308, false)
}
}
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3310 := &x.Items
yym3311 := z.DecBinary()
_ = yym3311
if false {
} else {
h.decSliceSecret((*[]Secret)(yyv3310), d)
}
}
for {
yyj3305++
if yyhl3305 {
yyb3305 = yyj3305 > l
} else {
yyb3305 = r.CheckBreak()
}
if yyb3305 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3305-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x PatchType) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
yym3312 := z.EncBinary()
_ = yym3312
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
yym3313 := z.DecBinary()
_ = yym3313
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
yym3314 := z.EncBinary()
_ = yym3314
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
yym3315 := z.DecBinary()
_ = yym3315
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 {
yym3316 := z.EncBinary()
_ = yym3316
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3317 := !z.EncBinary()
yy2arr3317 := z.EncBasicHandle().StructToArray
var yyq3317 [4]bool
_, _, _ = yysep3317, yyq3317, yy2arr3317
const yyr3317 bool = false
yyq3317[2] = x.Message != ""
yyq3317[3] = x.Error != ""
var yynn3317 int
if yyr3317 || yy2arr3317 {
r.EncodeArrayStart(4)
} else {
yynn3317 = 2
for _, b := range yyq3317 {
if b {
yynn3317++
}
}
r.EncodeMapStart(yynn3317)
yynn3317 = 0
}
if yyr3317 || yy2arr3317 {
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 yyr3317 || yy2arr3317 {
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 yyr3317 || yy2arr3317 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3317[2] {
yym3321 := z.EncBinary()
_ = yym3321
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3317[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("message"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3322 := z.EncBinary()
_ = yym3322
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Message))
}
}
}
if yyr3317 || yy2arr3317 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3317[3] {
yym3324 := z.EncBinary()
_ = yym3324
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3317[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("error"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3325 := z.EncBinary()
_ = yym3325
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Error))
}
}
}
if yyr3317 || yy2arr3317 {
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
yym3326 := z.DecBinary()
_ = yym3326
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3327 := r.ContainerType()
if yyct3327 == codecSelferValueTypeMap1234 {
yyl3327 := r.ReadMapStart()
if yyl3327 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3327, d)
}
} else if yyct3327 == codecSelferValueTypeArray1234 {
yyl3327 := r.ReadArrayStart()
if yyl3327 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3327, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ComponentCondition) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3328Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3328Slc
var yyhl3328 bool = l >= 0
for yyj3328 := 0; ; yyj3328++ {
if yyhl3328 {
if yyj3328 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3328Slc = r.DecodeBytes(yys3328Slc, true, true)
yys3328 := string(yys3328Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3328 {
case "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, yys3328)
} // end switch yys3328
} // end for yyj3328
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 yyj3333 int
var yyb3333 bool
var yyhl3333 bool = l >= 0
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = ComponentConditionType(r.DecodeString())
}
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Status = ""
} else {
x.Status = ConditionStatus(r.DecodeString())
}
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Message = ""
} else {
x.Message = string(r.DecodeString())
}
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Error = ""
} else {
x.Error = string(r.DecodeString())
}
for {
yyj3333++
if yyhl3333 {
yyb3333 = yyj3333 > l
} else {
yyb3333 = r.CheckBreak()
}
if yyb3333 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3333-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x *ComponentStatus) CodecEncodeSelf(e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
if x == nil {
r.EncodeNil()
} else {
yym3338 := z.EncBinary()
_ = yym3338
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3339 := !z.EncBinary()
yy2arr3339 := z.EncBasicHandle().StructToArray
var yyq3339 [4]bool
_, _, _ = yysep3339, yyq3339, yy2arr3339
const yyr3339 bool = false
yyq3339[0] = x.Kind != ""
yyq3339[1] = x.APIVersion != ""
yyq3339[2] = true
yyq3339[3] = len(x.Conditions) != 0
var yynn3339 int
if yyr3339 || yy2arr3339 {
r.EncodeArrayStart(4)
} else {
yynn3339 = 0
for _, b := range yyq3339 {
if b {
yynn3339++
}
}
r.EncodeMapStart(yynn3339)
yynn3339 = 0
}
if yyr3339 || yy2arr3339 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3339[0] {
yym3341 := z.EncBinary()
_ = yym3341
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3339[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3342 := z.EncBinary()
_ = yym3342
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3339 || yy2arr3339 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3339[1] {
yym3344 := z.EncBinary()
_ = yym3344
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3339[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3345 := z.EncBinary()
_ = yym3345
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3339 || yy2arr3339 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3339[2] {
yy3347 := &x.ObjectMeta
yy3347.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3339[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3348 := &x.ObjectMeta
yy3348.CodecEncodeSelf(e)
}
}
if yyr3339 || yy2arr3339 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3339[3] {
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3350 := z.EncBinary()
_ = yym3350
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3339[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("conditions"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Conditions == nil {
r.EncodeNil()
} else {
yym3351 := z.EncBinary()
_ = yym3351
if false {
} else {
h.encSliceComponentCondition(([]ComponentCondition)(x.Conditions), e)
}
}
}
}
if yyr3339 || yy2arr3339 {
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
yym3352 := z.DecBinary()
_ = yym3352
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3353 := r.ContainerType()
if yyct3353 == codecSelferValueTypeMap1234 {
yyl3353 := r.ReadMapStart()
if yyl3353 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3353, d)
}
} else if yyct3353 == codecSelferValueTypeArray1234 {
yyl3353 := r.ReadArrayStart()
if yyl3353 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3353, d)
}
} else {
panic(codecSelferOnlyMapOrArrayEncodeToStructErr1234)
}
}
}
func (x *ComponentStatus) codecDecodeSelfFromMap(l int, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
var yys3354Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3354Slc
var yyhl3354 bool = l >= 0
for yyj3354 := 0; ; yyj3354++ {
if yyhl3354 {
if yyj3354 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3354Slc = r.DecodeBytes(yys3354Slc, true, true)
yys3354 := string(yys3354Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3354 {
case "kind":
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
case "apiVersion":
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
case "metadata":
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3357 := &x.ObjectMeta
yyv3357.CodecDecodeSelf(d)
}
case "conditions":
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3358 := &x.Conditions
yym3359 := z.DecBinary()
_ = yym3359
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3358), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3354)
} // end switch yys3354
} // end for yyj3354
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 yyj3360 int
var yyb3360 bool
var yyhl3360 bool = l >= 0
yyj3360++
if yyhl3360 {
yyb3360 = yyj3360 > l
} else {
yyb3360 = r.CheckBreak()
}
if yyb3360 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3360++
if yyhl3360 {
yyb3360 = yyj3360 > l
} else {
yyb3360 = r.CheckBreak()
}
if yyb3360 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3360++
if yyhl3360 {
yyb3360 = yyj3360 > l
} else {
yyb3360 = r.CheckBreak()
}
if yyb3360 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3363 := &x.ObjectMeta
yyv3363.CodecDecodeSelf(d)
}
yyj3360++
if yyhl3360 {
yyb3360 = yyj3360 > l
} else {
yyb3360 = r.CheckBreak()
}
if yyb3360 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Conditions = nil
} else {
yyv3364 := &x.Conditions
yym3365 := z.DecBinary()
_ = yym3365
if false {
} else {
h.decSliceComponentCondition((*[]ComponentCondition)(yyv3364), d)
}
}
for {
yyj3360++
if yyhl3360 {
yyb3360 = yyj3360 > l
} else {
yyb3360 = r.CheckBreak()
}
if yyb3360 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3360-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 {
yym3366 := z.EncBinary()
_ = yym3366
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3367 := !z.EncBinary()
yy2arr3367 := z.EncBasicHandle().StructToArray
var yyq3367 [4]bool
_, _, _ = yysep3367, yyq3367, yy2arr3367
const yyr3367 bool = false
yyq3367[0] = x.Kind != ""
yyq3367[1] = x.APIVersion != ""
yyq3367[2] = true
var yynn3367 int
if yyr3367 || yy2arr3367 {
r.EncodeArrayStart(4)
} else {
yynn3367 = 1
for _, b := range yyq3367 {
if b {
yynn3367++
}
}
r.EncodeMapStart(yynn3367)
yynn3367 = 0
}
if yyr3367 || yy2arr3367 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3367[0] {
yym3369 := z.EncBinary()
_ = yym3369
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3367[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3370 := z.EncBinary()
_ = yym3370
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3367 || yy2arr3367 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3367[1] {
yym3372 := z.EncBinary()
_ = yym3372
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3367[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3373 := z.EncBinary()
_ = yym3373
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3367 || yy2arr3367 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3367[2] {
yy3375 := &x.ListMeta
yym3376 := z.EncBinary()
_ = yym3376
if false {
} else if z.HasExtensions() && z.EncExt(yy3375) {
} else {
z.EncFallback(yy3375)
}
} else {
r.EncodeNil()
}
} else {
if yyq3367[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3377 := &x.ListMeta
yym3378 := z.EncBinary()
_ = yym3378
if false {
} else if z.HasExtensions() && z.EncExt(yy3377) {
} else {
z.EncFallback(yy3377)
}
}
}
if yyr3367 || yy2arr3367 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Items == nil {
r.EncodeNil()
} else {
yym3380 := z.EncBinary()
_ = yym3380
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 {
yym3381 := z.EncBinary()
_ = yym3381
if false {
} else {
h.encSliceComponentStatus(([]ComponentStatus)(x.Items), e)
}
}
}
if yyr3367 || yy2arr3367 {
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
yym3382 := z.DecBinary()
_ = yym3382
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3383 := r.ContainerType()
if yyct3383 == codecSelferValueTypeMap1234 {
yyl3383 := r.ReadMapStart()
if yyl3383 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3383, d)
}
} else if yyct3383 == codecSelferValueTypeArray1234 {
yyl3383 := r.ReadArrayStart()
if yyl3383 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3383, 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 yys3384Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3384Slc
var yyhl3384 bool = l >= 0
for yyj3384 := 0; ; yyj3384++ {
if yyhl3384 {
if yyj3384 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3384Slc = r.DecodeBytes(yys3384Slc, true, true)
yys3384 := string(yys3384Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3384 {
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 {
yyv3387 := &x.ListMeta
yym3388 := z.DecBinary()
_ = yym3388
if false {
} else if z.HasExtensions() && z.DecExt(yyv3387) {
} else {
z.DecFallback(yyv3387, false)
}
}
case "items":
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3389 := &x.Items
yym3390 := z.DecBinary()
_ = yym3390
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3389), d)
}
}
default:
z.DecStructFieldNotFound(-1, yys3384)
} // end switch yys3384
} // end for yyj3384
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 yyj3391 int
var yyb3391 bool
var yyhl3391 bool = l >= 0
yyj3391++
if yyhl3391 {
yyb3391 = yyj3391 > l
} else {
yyb3391 = r.CheckBreak()
}
if yyb3391 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3391++
if yyhl3391 {
yyb3391 = yyj3391 > l
} else {
yyb3391 = r.CheckBreak()
}
if yyb3391 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3391++
if yyhl3391 {
yyb3391 = yyj3391 > l
} else {
yyb3391 = r.CheckBreak()
}
if yyb3391 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ListMeta = pkg2_unversioned.ListMeta{}
} else {
yyv3394 := &x.ListMeta
yym3395 := z.DecBinary()
_ = yym3395
if false {
} else if z.HasExtensions() && z.DecExt(yyv3394) {
} else {
z.DecFallback(yyv3394, false)
}
}
yyj3391++
if yyhl3391 {
yyb3391 = yyj3391 > l
} else {
yyb3391 = r.CheckBreak()
}
if yyb3391 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Items = nil
} else {
yyv3396 := &x.Items
yym3397 := z.DecBinary()
_ = yym3397
if false {
} else {
h.decSliceComponentStatus((*[]ComponentStatus)(yyv3396), d)
}
}
for {
yyj3391++
if yyhl3391 {
yyb3391 = yyj3391 > l
} else {
yyb3391 = r.CheckBreak()
}
if yyb3391 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3391-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 {
yym3398 := z.EncBinary()
_ = yym3398
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3399 := !z.EncBinary()
yy2arr3399 := z.EncBasicHandle().StructToArray
var yyq3399 [5]bool
_, _, _ = yysep3399, yyq3399, yy2arr3399
const yyr3399 bool = false
yyq3399[0] = x.Capabilities != nil
yyq3399[1] = x.Privileged != nil
yyq3399[2] = x.SELinuxOptions != nil
yyq3399[3] = x.RunAsUser != nil
yyq3399[4] = x.RunAsNonRoot != nil
var yynn3399 int
if yyr3399 || yy2arr3399 {
r.EncodeArrayStart(5)
} else {
yynn3399 = 0
for _, b := range yyq3399 {
if b {
yynn3399++
}
}
r.EncodeMapStart(yynn3399)
yynn3399 = 0
}
if yyr3399 || yy2arr3399 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3399[0] {
if x.Capabilities == nil {
r.EncodeNil()
} else {
x.Capabilities.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3399[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 yyr3399 || yy2arr3399 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3399[1] {
if x.Privileged == nil {
r.EncodeNil()
} else {
yy3402 := *x.Privileged
yym3403 := z.EncBinary()
_ = yym3403
if false {
} else {
r.EncodeBool(bool(yy3402))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3399[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("privileged"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.Privileged == nil {
r.EncodeNil()
} else {
yy3404 := *x.Privileged
yym3405 := z.EncBinary()
_ = yym3405
if false {
} else {
r.EncodeBool(bool(yy3404))
}
}
}
}
if yyr3399 || yy2arr3399 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3399[2] {
if x.SELinuxOptions == nil {
r.EncodeNil()
} else {
x.SELinuxOptions.CodecEncodeSelf(e)
}
} else {
r.EncodeNil()
}
} else {
if yyq3399[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 yyr3399 || yy2arr3399 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3399[3] {
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy3408 := *x.RunAsUser
yym3409 := z.EncBinary()
_ = yym3409
if false {
} else {
r.EncodeInt(int64(yy3408))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3399[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsUser"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsUser == nil {
r.EncodeNil()
} else {
yy3410 := *x.RunAsUser
yym3411 := z.EncBinary()
_ = yym3411
if false {
} else {
r.EncodeInt(int64(yy3410))
}
}
}
}
if yyr3399 || yy2arr3399 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3399[4] {
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy3413 := *x.RunAsNonRoot
yym3414 := z.EncBinary()
_ = yym3414
if false {
} else {
r.EncodeBool(bool(yy3413))
}
}
} else {
r.EncodeNil()
}
} else {
if yyq3399[4] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("runAsNonRoot"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if x.RunAsNonRoot == nil {
r.EncodeNil()
} else {
yy3415 := *x.RunAsNonRoot
yym3416 := z.EncBinary()
_ = yym3416
if false {
} else {
r.EncodeBool(bool(yy3415))
}
}
}
}
if yyr3399 || yy2arr3399 {
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
yym3417 := z.DecBinary()
_ = yym3417
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3418 := r.ContainerType()
if yyct3418 == codecSelferValueTypeMap1234 {
yyl3418 := r.ReadMapStart()
if yyl3418 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3418, d)
}
} else if yyct3418 == codecSelferValueTypeArray1234 {
yyl3418 := r.ReadArrayStart()
if yyl3418 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3418, 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 yys3419Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3419Slc
var yyhl3419 bool = l >= 0
for yyj3419 := 0; ; yyj3419++ {
if yyhl3419 {
if yyj3419 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3419Slc = r.DecodeBytes(yys3419Slc, true, true)
yys3419 := string(yys3419Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3419 {
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)
}
yym3422 := z.DecBinary()
_ = yym3422
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)
}
yym3425 := z.DecBinary()
_ = yym3425
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)
}
yym3427 := z.DecBinary()
_ = yym3427
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
default:
z.DecStructFieldNotFound(-1, yys3419)
} // end switch yys3419
} // end for yyj3419
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 yyj3428 int
var yyb3428 bool
var yyhl3428 bool = l >= 0
yyj3428++
if yyhl3428 {
yyb3428 = yyj3428 > l
} else {
yyb3428 = r.CheckBreak()
}
if yyb3428 {
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)
}
yyj3428++
if yyhl3428 {
yyb3428 = yyj3428 > l
} else {
yyb3428 = r.CheckBreak()
}
if yyb3428 {
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)
}
yym3431 := z.DecBinary()
_ = yym3431
if false {
} else {
*((*bool)(x.Privileged)) = r.DecodeBool()
}
}
yyj3428++
if yyhl3428 {
yyb3428 = yyj3428 > l
} else {
yyb3428 = r.CheckBreak()
}
if yyb3428 {
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)
}
yyj3428++
if yyhl3428 {
yyb3428 = yyj3428 > l
} else {
yyb3428 = r.CheckBreak()
}
if yyb3428 {
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)
}
yym3434 := z.DecBinary()
_ = yym3434
if false {
} else {
*((*int64)(x.RunAsUser)) = int64(r.DecodeInt(64))
}
}
yyj3428++
if yyhl3428 {
yyb3428 = yyj3428 > l
} else {
yyb3428 = r.CheckBreak()
}
if yyb3428 {
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)
}
yym3436 := z.DecBinary()
_ = yym3436
if false {
} else {
*((*bool)(x.RunAsNonRoot)) = r.DecodeBool()
}
}
for {
yyj3428++
if yyhl3428 {
yyb3428 = yyj3428 > l
} else {
yyb3428 = r.CheckBreak()
}
if yyb3428 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3428-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 {
yym3437 := z.EncBinary()
_ = yym3437
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3438 := !z.EncBinary()
yy2arr3438 := z.EncBasicHandle().StructToArray
var yyq3438 [4]bool
_, _, _ = yysep3438, yyq3438, yy2arr3438
const yyr3438 bool = false
yyq3438[0] = x.User != ""
yyq3438[1] = x.Role != ""
yyq3438[2] = x.Type != ""
yyq3438[3] = x.Level != ""
var yynn3438 int
if yyr3438 || yy2arr3438 {
r.EncodeArrayStart(4)
} else {
yynn3438 = 0
for _, b := range yyq3438 {
if b {
yynn3438++
}
}
r.EncodeMapStart(yynn3438)
yynn3438 = 0
}
if yyr3438 || yy2arr3438 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3438[0] {
yym3440 := z.EncBinary()
_ = yym3440
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3438[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("user"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3441 := z.EncBinary()
_ = yym3441
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.User))
}
}
}
if yyr3438 || yy2arr3438 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3438[1] {
yym3443 := z.EncBinary()
_ = yym3443
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3438[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("role"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3444 := z.EncBinary()
_ = yym3444
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Role))
}
}
}
if yyr3438 || yy2arr3438 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3438[2] {
yym3446 := z.EncBinary()
_ = yym3446
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3438[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("type"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3447 := z.EncBinary()
_ = yym3447
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Type))
}
}
}
if yyr3438 || yy2arr3438 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3438[3] {
yym3449 := z.EncBinary()
_ = yym3449
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3438[3] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("level"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3450 := z.EncBinary()
_ = yym3450
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Level))
}
}
}
if yyr3438 || yy2arr3438 {
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
yym3451 := z.DecBinary()
_ = yym3451
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3452 := r.ContainerType()
if yyct3452 == codecSelferValueTypeMap1234 {
yyl3452 := r.ReadMapStart()
if yyl3452 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3452, d)
}
} else if yyct3452 == codecSelferValueTypeArray1234 {
yyl3452 := r.ReadArrayStart()
if yyl3452 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3452, 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 yys3453Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3453Slc
var yyhl3453 bool = l >= 0
for yyj3453 := 0; ; yyj3453++ {
if yyhl3453 {
if yyj3453 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3453Slc = r.DecodeBytes(yys3453Slc, true, true)
yys3453 := string(yys3453Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3453 {
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, yys3453)
} // end switch yys3453
} // end for yyj3453
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 yyj3458 int
var yyb3458 bool
var yyhl3458 bool = l >= 0
yyj3458++
if yyhl3458 {
yyb3458 = yyj3458 > l
} else {
yyb3458 = r.CheckBreak()
}
if yyb3458 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.User = ""
} else {
x.User = string(r.DecodeString())
}
yyj3458++
if yyhl3458 {
yyb3458 = yyj3458 > l
} else {
yyb3458 = r.CheckBreak()
}
if yyb3458 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Role = ""
} else {
x.Role = string(r.DecodeString())
}
yyj3458++
if yyhl3458 {
yyb3458 = yyj3458 > l
} else {
yyb3458 = r.CheckBreak()
}
if yyb3458 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Type = ""
} else {
x.Type = string(r.DecodeString())
}
yyj3458++
if yyhl3458 {
yyb3458 = yyj3458 > l
} else {
yyb3458 = r.CheckBreak()
}
if yyb3458 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Level = ""
} else {
x.Level = string(r.DecodeString())
}
for {
yyj3458++
if yyhl3458 {
yyb3458 = yyj3458 > l
} else {
yyb3458 = r.CheckBreak()
}
if yyb3458 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3458-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 {
yym3463 := z.EncBinary()
_ = yym3463
if false {
} else if z.HasExtensions() && z.EncExt(x) {
} else {
yysep3464 := !z.EncBinary()
yy2arr3464 := z.EncBasicHandle().StructToArray
var yyq3464 [5]bool
_, _, _ = yysep3464, yyq3464, yy2arr3464
const yyr3464 bool = false
yyq3464[0] = x.Kind != ""
yyq3464[1] = x.APIVersion != ""
yyq3464[2] = true
var yynn3464 int
if yyr3464 || yy2arr3464 {
r.EncodeArrayStart(5)
} else {
yynn3464 = 2
for _, b := range yyq3464 {
if b {
yynn3464++
}
}
r.EncodeMapStart(yynn3464)
yynn3464 = 0
}
if yyr3464 || yy2arr3464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3464[0] {
yym3466 := z.EncBinary()
_ = yym3466
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3464[0] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("kind"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3467 := z.EncBinary()
_ = yym3467
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Kind))
}
}
}
if yyr3464 || yy2arr3464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3464[1] {
yym3469 := z.EncBinary()
_ = yym3469
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
} else {
r.EncodeString(codecSelferC_UTF81234, "")
}
} else {
if yyq3464[1] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("apiVersion"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yym3470 := z.EncBinary()
_ = yym3470
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.APIVersion))
}
}
}
if yyr3464 || yy2arr3464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyq3464[2] {
yy3472 := &x.ObjectMeta
yy3472.CodecEncodeSelf(e)
} else {
r.EncodeNil()
}
} else {
if yyq3464[2] {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
r.EncodeString(codecSelferC_UTF81234, string("metadata"))
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3473 := &x.ObjectMeta
yy3473.CodecEncodeSelf(e)
}
}
if yyr3464 || yy2arr3464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yym3475 := z.EncBinary()
_ = yym3475
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)
yym3476 := z.EncBinary()
_ = yym3476
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(x.Range))
}
}
if yyr3464 || yy2arr3464 {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if x.Data == nil {
r.EncodeNil()
} else {
yym3478 := z.EncBinary()
_ = yym3478
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 {
yym3479 := z.EncBinary()
_ = yym3479
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(x.Data))
}
}
}
if yyr3464 || yy2arr3464 {
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
yym3480 := z.DecBinary()
_ = yym3480
if false {
} else if z.HasExtensions() && z.DecExt(x) {
} else {
yyct3481 := r.ContainerType()
if yyct3481 == codecSelferValueTypeMap1234 {
yyl3481 := r.ReadMapStart()
if yyl3481 == 0 {
z.DecSendContainerState(codecSelfer_containerMapEnd1234)
} else {
x.codecDecodeSelfFromMap(yyl3481, d)
}
} else if yyct3481 == codecSelferValueTypeArray1234 {
yyl3481 := r.ReadArrayStart()
if yyl3481 == 0 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
} else {
x.codecDecodeSelfFromArray(yyl3481, 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 yys3482Slc = z.DecScratchBuffer() // default slice to decode into
_ = yys3482Slc
var yyhl3482 bool = l >= 0
for yyj3482 := 0; ; yyj3482++ {
if yyhl3482 {
if yyj3482 >= l {
break
}
} else {
if r.CheckBreak() {
break
}
}
z.DecSendContainerState(codecSelfer_containerMapKey1234)
yys3482Slc = r.DecodeBytes(yys3482Slc, true, true)
yys3482 := string(yys3482Slc)
z.DecSendContainerState(codecSelfer_containerMapValue1234)
switch yys3482 {
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 {
yyv3485 := &x.ObjectMeta
yyv3485.CodecDecodeSelf(d)
}
case "range":
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
case "data":
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3487 := &x.Data
yym3488 := z.DecBinary()
_ = yym3488
if false {
} else {
*yyv3487 = r.DecodeBytes(*(*[]byte)(yyv3487), false, false)
}
}
default:
z.DecStructFieldNotFound(-1, yys3482)
} // end switch yys3482
} // end for yyj3482
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 yyj3489 int
var yyb3489 bool
var yyhl3489 bool = l >= 0
yyj3489++
if yyhl3489 {
yyb3489 = yyj3489 > l
} else {
yyb3489 = r.CheckBreak()
}
if yyb3489 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Kind = ""
} else {
x.Kind = string(r.DecodeString())
}
yyj3489++
if yyhl3489 {
yyb3489 = yyj3489 > l
} else {
yyb3489 = r.CheckBreak()
}
if yyb3489 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.APIVersion = ""
} else {
x.APIVersion = string(r.DecodeString())
}
yyj3489++
if yyhl3489 {
yyb3489 = yyj3489 > l
} else {
yyb3489 = r.CheckBreak()
}
if yyb3489 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.ObjectMeta = ObjectMeta{}
} else {
yyv3492 := &x.ObjectMeta
yyv3492.CodecDecodeSelf(d)
}
yyj3489++
if yyhl3489 {
yyb3489 = yyj3489 > l
} else {
yyb3489 = r.CheckBreak()
}
if yyb3489 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Range = ""
} else {
x.Range = string(r.DecodeString())
}
yyj3489++
if yyhl3489 {
yyb3489 = yyj3489 > l
} else {
yyb3489 = r.CheckBreak()
}
if yyb3489 {
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
return
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
if r.TryDecodeAsNil() {
x.Data = nil
} else {
yyv3494 := &x.Data
yym3495 := z.DecBinary()
_ = yym3495
if false {
} else {
*yyv3494 = r.DecodeBytes(*(*[]byte)(yyv3494), false, false)
}
}
for {
yyj3489++
if yyhl3489 {
yyb3489 = yyj3489 > l
} else {
yyb3489 = r.CheckBreak()
}
if yyb3489 {
break
}
z.DecSendContainerState(codecSelfer_containerArrayElem1234)
z.DecStructFieldNotFound(yyj3489-1, "")
}
z.DecSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) encSlicePersistentVolumeAccessMode(v []PersistentVolumeAccessMode, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv3496 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3496.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
yyv3497 := *v
yyh3497, yyl3497 := z.DecSliceHelperStart()
var yyc3497 bool
if yyl3497 == 0 {
if yyv3497 == nil {
yyv3497 = []PersistentVolumeAccessMode{}
yyc3497 = true
} else if len(yyv3497) != 0 {
yyv3497 = yyv3497[:0]
yyc3497 = true
}
} else if yyl3497 > 0 {
var yyrr3497, yyrl3497 int
var yyrt3497 bool
if yyl3497 > cap(yyv3497) {
yyrl3497, yyrt3497 = z.DecInferLen(yyl3497, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3497 {
if yyrl3497 <= cap(yyv3497) {
yyv3497 = yyv3497[:yyrl3497]
} else {
yyv3497 = make([]PersistentVolumeAccessMode, yyrl3497)
}
} else {
yyv3497 = make([]PersistentVolumeAccessMode, yyrl3497)
}
yyc3497 = true
yyrr3497 = len(yyv3497)
} else if yyl3497 != len(yyv3497) {
yyv3497 = yyv3497[:yyl3497]
yyc3497 = true
}
yyj3497 := 0
for ; yyj3497 < yyrr3497; yyj3497++ {
yyh3497.ElemContainerState(yyj3497)
if r.TryDecodeAsNil() {
yyv3497[yyj3497] = ""
} else {
yyv3497[yyj3497] = PersistentVolumeAccessMode(r.DecodeString())
}
}
if yyrt3497 {
for ; yyj3497 < yyl3497; yyj3497++ {
yyv3497 = append(yyv3497, "")
yyh3497.ElemContainerState(yyj3497)
if r.TryDecodeAsNil() {
yyv3497[yyj3497] = ""
} else {
yyv3497[yyj3497] = PersistentVolumeAccessMode(r.DecodeString())
}
}
}
} else {
yyj3497 := 0
for ; !r.CheckBreak(); yyj3497++ {
if yyj3497 >= len(yyv3497) {
yyv3497 = append(yyv3497, "") // var yyz3497 PersistentVolumeAccessMode
yyc3497 = true
}
yyh3497.ElemContainerState(yyj3497)
if yyj3497 < len(yyv3497) {
if r.TryDecodeAsNil() {
yyv3497[yyj3497] = ""
} else {
yyv3497[yyj3497] = PersistentVolumeAccessMode(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3497 < len(yyv3497) {
yyv3497 = yyv3497[:yyj3497]
yyc3497 = true
} else if yyj3497 == 0 && yyv3497 == nil {
yyv3497 = []PersistentVolumeAccessMode{}
yyc3497 = true
}
}
yyh3497.End()
if yyc3497 {
*v = yyv3497
}
}
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 _, yyv3501 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3502 := &yyv3501
yy3502.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
yyv3503 := *v
yyh3503, yyl3503 := z.DecSliceHelperStart()
var yyc3503 bool
if yyl3503 == 0 {
if yyv3503 == nil {
yyv3503 = []PersistentVolume{}
yyc3503 = true
} else if len(yyv3503) != 0 {
yyv3503 = yyv3503[:0]
yyc3503 = true
}
} else if yyl3503 > 0 {
var yyrr3503, yyrl3503 int
var yyrt3503 bool
if yyl3503 > cap(yyv3503) {
yyrg3503 := len(yyv3503) > 0
yyv23503 := yyv3503
yyrl3503, yyrt3503 = z.DecInferLen(yyl3503, z.DecBasicHandle().MaxInitLen, 384)
if yyrt3503 {
if yyrl3503 <= cap(yyv3503) {
yyv3503 = yyv3503[:yyrl3503]
} else {
yyv3503 = make([]PersistentVolume, yyrl3503)
}
} else {
yyv3503 = make([]PersistentVolume, yyrl3503)
}
yyc3503 = true
yyrr3503 = len(yyv3503)
if yyrg3503 {
copy(yyv3503, yyv23503)
}
} else if yyl3503 != len(yyv3503) {
yyv3503 = yyv3503[:yyl3503]
yyc3503 = true
}
yyj3503 := 0
for ; yyj3503 < yyrr3503; yyj3503++ {
yyh3503.ElemContainerState(yyj3503)
if r.TryDecodeAsNil() {
yyv3503[yyj3503] = PersistentVolume{}
} else {
yyv3504 := &yyv3503[yyj3503]
yyv3504.CodecDecodeSelf(d)
}
}
if yyrt3503 {
for ; yyj3503 < yyl3503; yyj3503++ {
yyv3503 = append(yyv3503, PersistentVolume{})
yyh3503.ElemContainerState(yyj3503)
if r.TryDecodeAsNil() {
yyv3503[yyj3503] = PersistentVolume{}
} else {
yyv3505 := &yyv3503[yyj3503]
yyv3505.CodecDecodeSelf(d)
}
}
}
} else {
yyj3503 := 0
for ; !r.CheckBreak(); yyj3503++ {
if yyj3503 >= len(yyv3503) {
yyv3503 = append(yyv3503, PersistentVolume{}) // var yyz3503 PersistentVolume
yyc3503 = true
}
yyh3503.ElemContainerState(yyj3503)
if yyj3503 < len(yyv3503) {
if r.TryDecodeAsNil() {
yyv3503[yyj3503] = PersistentVolume{}
} else {
yyv3506 := &yyv3503[yyj3503]
yyv3506.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3503 < len(yyv3503) {
yyv3503 = yyv3503[:yyj3503]
yyc3503 = true
} else if yyj3503 == 0 && yyv3503 == nil {
yyv3503 = []PersistentVolume{}
yyc3503 = true
}
}
yyh3503.End()
if yyc3503 {
*v = yyv3503
}
}
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 _, yyv3507 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3508 := &yyv3507
yy3508.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
yyv3509 := *v
yyh3509, yyl3509 := z.DecSliceHelperStart()
var yyc3509 bool
if yyl3509 == 0 {
if yyv3509 == nil {
yyv3509 = []PersistentVolumeClaim{}
yyc3509 = true
} else if len(yyv3509) != 0 {
yyv3509 = yyv3509[:0]
yyc3509 = true
}
} else if yyl3509 > 0 {
var yyrr3509, yyrl3509 int
var yyrt3509 bool
if yyl3509 > cap(yyv3509) {
yyrg3509 := len(yyv3509) > 0
yyv23509 := yyv3509
yyrl3509, yyrt3509 = z.DecInferLen(yyl3509, z.DecBasicHandle().MaxInitLen, 296)
if yyrt3509 {
if yyrl3509 <= cap(yyv3509) {
yyv3509 = yyv3509[:yyrl3509]
} else {
yyv3509 = make([]PersistentVolumeClaim, yyrl3509)
}
} else {
yyv3509 = make([]PersistentVolumeClaim, yyrl3509)
}
yyc3509 = true
yyrr3509 = len(yyv3509)
if yyrg3509 {
copy(yyv3509, yyv23509)
}
} else if yyl3509 != len(yyv3509) {
yyv3509 = yyv3509[:yyl3509]
yyc3509 = true
}
yyj3509 := 0
for ; yyj3509 < yyrr3509; yyj3509++ {
yyh3509.ElemContainerState(yyj3509)
if r.TryDecodeAsNil() {
yyv3509[yyj3509] = PersistentVolumeClaim{}
} else {
yyv3510 := &yyv3509[yyj3509]
yyv3510.CodecDecodeSelf(d)
}
}
if yyrt3509 {
for ; yyj3509 < yyl3509; yyj3509++ {
yyv3509 = append(yyv3509, PersistentVolumeClaim{})
yyh3509.ElemContainerState(yyj3509)
if r.TryDecodeAsNil() {
yyv3509[yyj3509] = PersistentVolumeClaim{}
} else {
yyv3511 := &yyv3509[yyj3509]
yyv3511.CodecDecodeSelf(d)
}
}
}
} else {
yyj3509 := 0
for ; !r.CheckBreak(); yyj3509++ {
if yyj3509 >= len(yyv3509) {
yyv3509 = append(yyv3509, PersistentVolumeClaim{}) // var yyz3509 PersistentVolumeClaim
yyc3509 = true
}
yyh3509.ElemContainerState(yyj3509)
if yyj3509 < len(yyv3509) {
if r.TryDecodeAsNil() {
yyv3509[yyj3509] = PersistentVolumeClaim{}
} else {
yyv3512 := &yyv3509[yyj3509]
yyv3512.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3509 < len(yyv3509) {
yyv3509 = yyv3509[:yyj3509]
yyc3509 = true
} else if yyj3509 == 0 && yyv3509 == nil {
yyv3509 = []PersistentVolumeClaim{}
yyc3509 = true
}
}
yyh3509.End()
if yyc3509 {
*v = yyv3509
}
}
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 _, yyv3513 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3514 := &yyv3513
yy3514.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
yyv3515 := *v
yyh3515, yyl3515 := z.DecSliceHelperStart()
var yyc3515 bool
if yyl3515 == 0 {
if yyv3515 == nil {
yyv3515 = []DownwardAPIVolumeFile{}
yyc3515 = true
} else if len(yyv3515) != 0 {
yyv3515 = yyv3515[:0]
yyc3515 = true
}
} else if yyl3515 > 0 {
var yyrr3515, yyrl3515 int
var yyrt3515 bool
if yyl3515 > cap(yyv3515) {
yyrg3515 := len(yyv3515) > 0
yyv23515 := yyv3515
yyrl3515, yyrt3515 = z.DecInferLen(yyl3515, z.DecBasicHandle().MaxInitLen, 48)
if yyrt3515 {
if yyrl3515 <= cap(yyv3515) {
yyv3515 = yyv3515[:yyrl3515]
} else {
yyv3515 = make([]DownwardAPIVolumeFile, yyrl3515)
}
} else {
yyv3515 = make([]DownwardAPIVolumeFile, yyrl3515)
}
yyc3515 = true
yyrr3515 = len(yyv3515)
if yyrg3515 {
copy(yyv3515, yyv23515)
}
} else if yyl3515 != len(yyv3515) {
yyv3515 = yyv3515[:yyl3515]
yyc3515 = true
}
yyj3515 := 0
for ; yyj3515 < yyrr3515; yyj3515++ {
yyh3515.ElemContainerState(yyj3515)
if r.TryDecodeAsNil() {
yyv3515[yyj3515] = DownwardAPIVolumeFile{}
} else {
yyv3516 := &yyv3515[yyj3515]
yyv3516.CodecDecodeSelf(d)
}
}
if yyrt3515 {
for ; yyj3515 < yyl3515; yyj3515++ {
yyv3515 = append(yyv3515, DownwardAPIVolumeFile{})
yyh3515.ElemContainerState(yyj3515)
if r.TryDecodeAsNil() {
yyv3515[yyj3515] = DownwardAPIVolumeFile{}
} else {
yyv3517 := &yyv3515[yyj3515]
yyv3517.CodecDecodeSelf(d)
}
}
}
} else {
yyj3515 := 0
for ; !r.CheckBreak(); yyj3515++ {
if yyj3515 >= len(yyv3515) {
yyv3515 = append(yyv3515, DownwardAPIVolumeFile{}) // var yyz3515 DownwardAPIVolumeFile
yyc3515 = true
}
yyh3515.ElemContainerState(yyj3515)
if yyj3515 < len(yyv3515) {
if r.TryDecodeAsNil() {
yyv3515[yyj3515] = DownwardAPIVolumeFile{}
} else {
yyv3518 := &yyv3515[yyj3515]
yyv3518.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3515 < len(yyv3515) {
yyv3515 = yyv3515[:yyj3515]
yyc3515 = true
} else if yyj3515 == 0 && yyv3515 == nil {
yyv3515 = []DownwardAPIVolumeFile{}
yyc3515 = true
}
}
yyh3515.End()
if yyc3515 {
*v = yyv3515
}
}
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 _, yyv3519 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3519.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
yyv3520 := *v
yyh3520, yyl3520 := z.DecSliceHelperStart()
var yyc3520 bool
if yyl3520 == 0 {
if yyv3520 == nil {
yyv3520 = []Capability{}
yyc3520 = true
} else if len(yyv3520) != 0 {
yyv3520 = yyv3520[:0]
yyc3520 = true
}
} else if yyl3520 > 0 {
var yyrr3520, yyrl3520 int
var yyrt3520 bool
if yyl3520 > cap(yyv3520) {
yyrl3520, yyrt3520 = z.DecInferLen(yyl3520, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3520 {
if yyrl3520 <= cap(yyv3520) {
yyv3520 = yyv3520[:yyrl3520]
} else {
yyv3520 = make([]Capability, yyrl3520)
}
} else {
yyv3520 = make([]Capability, yyrl3520)
}
yyc3520 = true
yyrr3520 = len(yyv3520)
} else if yyl3520 != len(yyv3520) {
yyv3520 = yyv3520[:yyl3520]
yyc3520 = true
}
yyj3520 := 0
for ; yyj3520 < yyrr3520; yyj3520++ {
yyh3520.ElemContainerState(yyj3520)
if r.TryDecodeAsNil() {
yyv3520[yyj3520] = ""
} else {
yyv3520[yyj3520] = Capability(r.DecodeString())
}
}
if yyrt3520 {
for ; yyj3520 < yyl3520; yyj3520++ {
yyv3520 = append(yyv3520, "")
yyh3520.ElemContainerState(yyj3520)
if r.TryDecodeAsNil() {
yyv3520[yyj3520] = ""
} else {
yyv3520[yyj3520] = Capability(r.DecodeString())
}
}
}
} else {
yyj3520 := 0
for ; !r.CheckBreak(); yyj3520++ {
if yyj3520 >= len(yyv3520) {
yyv3520 = append(yyv3520, "") // var yyz3520 Capability
yyc3520 = true
}
yyh3520.ElemContainerState(yyj3520)
if yyj3520 < len(yyv3520) {
if r.TryDecodeAsNil() {
yyv3520[yyj3520] = ""
} else {
yyv3520[yyj3520] = Capability(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3520 < len(yyv3520) {
yyv3520 = yyv3520[:yyj3520]
yyc3520 = true
} else if yyj3520 == 0 && yyv3520 == nil {
yyv3520 = []Capability{}
yyc3520 = true
}
}
yyh3520.End()
if yyc3520 {
*v = yyv3520
}
}
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 _, yyv3524 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3525 := &yyv3524
yy3525.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
yyv3526 := *v
yyh3526, yyl3526 := z.DecSliceHelperStart()
var yyc3526 bool
if yyl3526 == 0 {
if yyv3526 == nil {
yyv3526 = []ContainerPort{}
yyc3526 = true
} else if len(yyv3526) != 0 {
yyv3526 = yyv3526[:0]
yyc3526 = true
}
} else if yyl3526 > 0 {
var yyrr3526, yyrl3526 int
var yyrt3526 bool
if yyl3526 > cap(yyv3526) {
yyrg3526 := len(yyv3526) > 0
yyv23526 := yyv3526
yyrl3526, yyrt3526 = z.DecInferLen(yyl3526, z.DecBasicHandle().MaxInitLen, 64)
if yyrt3526 {
if yyrl3526 <= cap(yyv3526) {
yyv3526 = yyv3526[:yyrl3526]
} else {
yyv3526 = make([]ContainerPort, yyrl3526)
}
} else {
yyv3526 = make([]ContainerPort, yyrl3526)
}
yyc3526 = true
yyrr3526 = len(yyv3526)
if yyrg3526 {
copy(yyv3526, yyv23526)
}
} else if yyl3526 != len(yyv3526) {
yyv3526 = yyv3526[:yyl3526]
yyc3526 = true
}
yyj3526 := 0
for ; yyj3526 < yyrr3526; yyj3526++ {
yyh3526.ElemContainerState(yyj3526)
if r.TryDecodeAsNil() {
yyv3526[yyj3526] = ContainerPort{}
} else {
yyv3527 := &yyv3526[yyj3526]
yyv3527.CodecDecodeSelf(d)
}
}
if yyrt3526 {
for ; yyj3526 < yyl3526; yyj3526++ {
yyv3526 = append(yyv3526, ContainerPort{})
yyh3526.ElemContainerState(yyj3526)
if r.TryDecodeAsNil() {
yyv3526[yyj3526] = ContainerPort{}
} else {
yyv3528 := &yyv3526[yyj3526]
yyv3528.CodecDecodeSelf(d)
}
}
}
} else {
yyj3526 := 0
for ; !r.CheckBreak(); yyj3526++ {
if yyj3526 >= len(yyv3526) {
yyv3526 = append(yyv3526, ContainerPort{}) // var yyz3526 ContainerPort
yyc3526 = true
}
yyh3526.ElemContainerState(yyj3526)
if yyj3526 < len(yyv3526) {
if r.TryDecodeAsNil() {
yyv3526[yyj3526] = ContainerPort{}
} else {
yyv3529 := &yyv3526[yyj3526]
yyv3529.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3526 < len(yyv3526) {
yyv3526 = yyv3526[:yyj3526]
yyc3526 = true
} else if yyj3526 == 0 && yyv3526 == nil {
yyv3526 = []ContainerPort{}
yyc3526 = true
}
}
yyh3526.End()
if yyc3526 {
*v = yyv3526
}
}
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 _, yyv3530 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3531 := &yyv3530
yy3531.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
yyv3532 := *v
yyh3532, yyl3532 := z.DecSliceHelperStart()
var yyc3532 bool
if yyl3532 == 0 {
if yyv3532 == nil {
yyv3532 = []EnvVar{}
yyc3532 = true
} else if len(yyv3532) != 0 {
yyv3532 = yyv3532[:0]
yyc3532 = true
}
} else if yyl3532 > 0 {
var yyrr3532, yyrl3532 int
var yyrt3532 bool
if yyl3532 > cap(yyv3532) {
yyrg3532 := len(yyv3532) > 0
yyv23532 := yyv3532
yyrl3532, yyrt3532 = z.DecInferLen(yyl3532, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3532 {
if yyrl3532 <= cap(yyv3532) {
yyv3532 = yyv3532[:yyrl3532]
} else {
yyv3532 = make([]EnvVar, yyrl3532)
}
} else {
yyv3532 = make([]EnvVar, yyrl3532)
}
yyc3532 = true
yyrr3532 = len(yyv3532)
if yyrg3532 {
copy(yyv3532, yyv23532)
}
} else if yyl3532 != len(yyv3532) {
yyv3532 = yyv3532[:yyl3532]
yyc3532 = true
}
yyj3532 := 0
for ; yyj3532 < yyrr3532; yyj3532++ {
yyh3532.ElemContainerState(yyj3532)
if r.TryDecodeAsNil() {
yyv3532[yyj3532] = EnvVar{}
} else {
yyv3533 := &yyv3532[yyj3532]
yyv3533.CodecDecodeSelf(d)
}
}
if yyrt3532 {
for ; yyj3532 < yyl3532; yyj3532++ {
yyv3532 = append(yyv3532, EnvVar{})
yyh3532.ElemContainerState(yyj3532)
if r.TryDecodeAsNil() {
yyv3532[yyj3532] = EnvVar{}
} else {
yyv3534 := &yyv3532[yyj3532]
yyv3534.CodecDecodeSelf(d)
}
}
}
} else {
yyj3532 := 0
for ; !r.CheckBreak(); yyj3532++ {
if yyj3532 >= len(yyv3532) {
yyv3532 = append(yyv3532, EnvVar{}) // var yyz3532 EnvVar
yyc3532 = true
}
yyh3532.ElemContainerState(yyj3532)
if yyj3532 < len(yyv3532) {
if r.TryDecodeAsNil() {
yyv3532[yyj3532] = EnvVar{}
} else {
yyv3535 := &yyv3532[yyj3532]
yyv3535.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3532 < len(yyv3532) {
yyv3532 = yyv3532[:yyj3532]
yyc3532 = true
} else if yyj3532 == 0 && yyv3532 == nil {
yyv3532 = []EnvVar{}
yyc3532 = true
}
}
yyh3532.End()
if yyc3532 {
*v = yyv3532
}
}
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 _, yyv3536 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3537 := &yyv3536
yy3537.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
yyv3538 := *v
yyh3538, yyl3538 := z.DecSliceHelperStart()
var yyc3538 bool
if yyl3538 == 0 {
if yyv3538 == nil {
yyv3538 = []VolumeMount{}
yyc3538 = true
} else if len(yyv3538) != 0 {
yyv3538 = yyv3538[:0]
yyc3538 = true
}
} else if yyl3538 > 0 {
var yyrr3538, yyrl3538 int
var yyrt3538 bool
if yyl3538 > cap(yyv3538) {
yyrg3538 := len(yyv3538) > 0
yyv23538 := yyv3538
yyrl3538, yyrt3538 = z.DecInferLen(yyl3538, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3538 {
if yyrl3538 <= cap(yyv3538) {
yyv3538 = yyv3538[:yyrl3538]
} else {
yyv3538 = make([]VolumeMount, yyrl3538)
}
} else {
yyv3538 = make([]VolumeMount, yyrl3538)
}
yyc3538 = true
yyrr3538 = len(yyv3538)
if yyrg3538 {
copy(yyv3538, yyv23538)
}
} else if yyl3538 != len(yyv3538) {
yyv3538 = yyv3538[:yyl3538]
yyc3538 = true
}
yyj3538 := 0
for ; yyj3538 < yyrr3538; yyj3538++ {
yyh3538.ElemContainerState(yyj3538)
if r.TryDecodeAsNil() {
yyv3538[yyj3538] = VolumeMount{}
} else {
yyv3539 := &yyv3538[yyj3538]
yyv3539.CodecDecodeSelf(d)
}
}
if yyrt3538 {
for ; yyj3538 < yyl3538; yyj3538++ {
yyv3538 = append(yyv3538, VolumeMount{})
yyh3538.ElemContainerState(yyj3538)
if r.TryDecodeAsNil() {
yyv3538[yyj3538] = VolumeMount{}
} else {
yyv3540 := &yyv3538[yyj3538]
yyv3540.CodecDecodeSelf(d)
}
}
}
} else {
yyj3538 := 0
for ; !r.CheckBreak(); yyj3538++ {
if yyj3538 >= len(yyv3538) {
yyv3538 = append(yyv3538, VolumeMount{}) // var yyz3538 VolumeMount
yyc3538 = true
}
yyh3538.ElemContainerState(yyj3538)
if yyj3538 < len(yyv3538) {
if r.TryDecodeAsNil() {
yyv3538[yyj3538] = VolumeMount{}
} else {
yyv3541 := &yyv3538[yyj3538]
yyv3541.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3538 < len(yyv3538) {
yyv3538 = yyv3538[:yyj3538]
yyc3538 = true
} else if yyj3538 == 0 && yyv3538 == nil {
yyv3538 = []VolumeMount{}
yyc3538 = true
}
}
yyh3538.End()
if yyc3538 {
*v = yyv3538
}
}
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 _, yyv3542 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3543 := &yyv3542
yy3543.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
yyv3544 := *v
yyh3544, yyl3544 := z.DecSliceHelperStart()
var yyc3544 bool
if yyl3544 == 0 {
if yyv3544 == nil {
yyv3544 = []Pod{}
yyc3544 = true
} else if len(yyv3544) != 0 {
yyv3544 = yyv3544[:0]
yyc3544 = true
}
} else if yyl3544 > 0 {
var yyrr3544, yyrl3544 int
var yyrt3544 bool
if yyl3544 > cap(yyv3544) {
yyrg3544 := len(yyv3544) > 0
yyv23544 := yyv3544
yyrl3544, yyrt3544 = z.DecInferLen(yyl3544, z.DecBasicHandle().MaxInitLen, 496)
if yyrt3544 {
if yyrl3544 <= cap(yyv3544) {
yyv3544 = yyv3544[:yyrl3544]
} else {
yyv3544 = make([]Pod, yyrl3544)
}
} else {
yyv3544 = make([]Pod, yyrl3544)
}
yyc3544 = true
yyrr3544 = len(yyv3544)
if yyrg3544 {
copy(yyv3544, yyv23544)
}
} else if yyl3544 != len(yyv3544) {
yyv3544 = yyv3544[:yyl3544]
yyc3544 = true
}
yyj3544 := 0
for ; yyj3544 < yyrr3544; yyj3544++ {
yyh3544.ElemContainerState(yyj3544)
if r.TryDecodeAsNil() {
yyv3544[yyj3544] = Pod{}
} else {
yyv3545 := &yyv3544[yyj3544]
yyv3545.CodecDecodeSelf(d)
}
}
if yyrt3544 {
for ; yyj3544 < yyl3544; yyj3544++ {
yyv3544 = append(yyv3544, Pod{})
yyh3544.ElemContainerState(yyj3544)
if r.TryDecodeAsNil() {
yyv3544[yyj3544] = Pod{}
} else {
yyv3546 := &yyv3544[yyj3544]
yyv3546.CodecDecodeSelf(d)
}
}
}
} else {
yyj3544 := 0
for ; !r.CheckBreak(); yyj3544++ {
if yyj3544 >= len(yyv3544) {
yyv3544 = append(yyv3544, Pod{}) // var yyz3544 Pod
yyc3544 = true
}
yyh3544.ElemContainerState(yyj3544)
if yyj3544 < len(yyv3544) {
if r.TryDecodeAsNil() {
yyv3544[yyj3544] = Pod{}
} else {
yyv3547 := &yyv3544[yyj3544]
yyv3547.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3544 < len(yyv3544) {
yyv3544 = yyv3544[:yyj3544]
yyc3544 = true
} else if yyj3544 == 0 && yyv3544 == nil {
yyv3544 = []Pod{}
yyc3544 = true
}
}
yyh3544.End()
if yyc3544 {
*v = yyv3544
}
}
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 _, yyv3548 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3549 := &yyv3548
yy3549.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
yyv3550 := *v
yyh3550, yyl3550 := z.DecSliceHelperStart()
var yyc3550 bool
if yyl3550 == 0 {
if yyv3550 == nil {
yyv3550 = []Volume{}
yyc3550 = true
} else if len(yyv3550) != 0 {
yyv3550 = yyv3550[:0]
yyc3550 = true
}
} else if yyl3550 > 0 {
var yyrr3550, yyrl3550 int
var yyrt3550 bool
if yyl3550 > cap(yyv3550) {
yyrg3550 := len(yyv3550) > 0
yyv23550 := yyv3550
yyrl3550, yyrt3550 = z.DecInferLen(yyl3550, z.DecBasicHandle().MaxInitLen, 144)
if yyrt3550 {
if yyrl3550 <= cap(yyv3550) {
yyv3550 = yyv3550[:yyrl3550]
} else {
yyv3550 = make([]Volume, yyrl3550)
}
} else {
yyv3550 = make([]Volume, yyrl3550)
}
yyc3550 = true
yyrr3550 = len(yyv3550)
if yyrg3550 {
copy(yyv3550, yyv23550)
}
} else if yyl3550 != len(yyv3550) {
yyv3550 = yyv3550[:yyl3550]
yyc3550 = true
}
yyj3550 := 0
for ; yyj3550 < yyrr3550; yyj3550++ {
yyh3550.ElemContainerState(yyj3550)
if r.TryDecodeAsNil() {
yyv3550[yyj3550] = Volume{}
} else {
yyv3551 := &yyv3550[yyj3550]
yyv3551.CodecDecodeSelf(d)
}
}
if yyrt3550 {
for ; yyj3550 < yyl3550; yyj3550++ {
yyv3550 = append(yyv3550, Volume{})
yyh3550.ElemContainerState(yyj3550)
if r.TryDecodeAsNil() {
yyv3550[yyj3550] = Volume{}
} else {
yyv3552 := &yyv3550[yyj3550]
yyv3552.CodecDecodeSelf(d)
}
}
}
} else {
yyj3550 := 0
for ; !r.CheckBreak(); yyj3550++ {
if yyj3550 >= len(yyv3550) {
yyv3550 = append(yyv3550, Volume{}) // var yyz3550 Volume
yyc3550 = true
}
yyh3550.ElemContainerState(yyj3550)
if yyj3550 < len(yyv3550) {
if r.TryDecodeAsNil() {
yyv3550[yyj3550] = Volume{}
} else {
yyv3553 := &yyv3550[yyj3550]
yyv3553.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3550 < len(yyv3550) {
yyv3550 = yyv3550[:yyj3550]
yyc3550 = true
} else if yyj3550 == 0 && yyv3550 == nil {
yyv3550 = []Volume{}
yyc3550 = true
}
}
yyh3550.End()
if yyc3550 {
*v = yyv3550
}
}
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 _, yyv3554 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3555 := &yyv3554
yy3555.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
yyv3556 := *v
yyh3556, yyl3556 := z.DecSliceHelperStart()
var yyc3556 bool
if yyl3556 == 0 {
if yyv3556 == nil {
yyv3556 = []Container{}
yyc3556 = true
} else if len(yyv3556) != 0 {
yyv3556 = yyv3556[:0]
yyc3556 = true
}
} else if yyl3556 > 0 {
var yyrr3556, yyrl3556 int
var yyrt3556 bool
if yyl3556 > cap(yyv3556) {
yyrg3556 := len(yyv3556) > 0
yyv23556 := yyv3556
yyrl3556, yyrt3556 = z.DecInferLen(yyl3556, z.DecBasicHandle().MaxInitLen, 256)
if yyrt3556 {
if yyrl3556 <= cap(yyv3556) {
yyv3556 = yyv3556[:yyrl3556]
} else {
yyv3556 = make([]Container, yyrl3556)
}
} else {
yyv3556 = make([]Container, yyrl3556)
}
yyc3556 = true
yyrr3556 = len(yyv3556)
if yyrg3556 {
copy(yyv3556, yyv23556)
}
} else if yyl3556 != len(yyv3556) {
yyv3556 = yyv3556[:yyl3556]
yyc3556 = true
}
yyj3556 := 0
for ; yyj3556 < yyrr3556; yyj3556++ {
yyh3556.ElemContainerState(yyj3556)
if r.TryDecodeAsNil() {
yyv3556[yyj3556] = Container{}
} else {
yyv3557 := &yyv3556[yyj3556]
yyv3557.CodecDecodeSelf(d)
}
}
if yyrt3556 {
for ; yyj3556 < yyl3556; yyj3556++ {
yyv3556 = append(yyv3556, Container{})
yyh3556.ElemContainerState(yyj3556)
if r.TryDecodeAsNil() {
yyv3556[yyj3556] = Container{}
} else {
yyv3558 := &yyv3556[yyj3556]
yyv3558.CodecDecodeSelf(d)
}
}
}
} else {
yyj3556 := 0
for ; !r.CheckBreak(); yyj3556++ {
if yyj3556 >= len(yyv3556) {
yyv3556 = append(yyv3556, Container{}) // var yyz3556 Container
yyc3556 = true
}
yyh3556.ElemContainerState(yyj3556)
if yyj3556 < len(yyv3556) {
if r.TryDecodeAsNil() {
yyv3556[yyj3556] = Container{}
} else {
yyv3559 := &yyv3556[yyj3556]
yyv3559.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3556 < len(yyv3556) {
yyv3556 = yyv3556[:yyj3556]
yyc3556 = true
} else if yyj3556 == 0 && yyv3556 == nil {
yyv3556 = []Container{}
yyc3556 = true
}
}
yyh3556.End()
if yyc3556 {
*v = yyv3556
}
}
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 _, yyv3560 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3561 := &yyv3560
yy3561.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
yyv3562 := *v
yyh3562, yyl3562 := z.DecSliceHelperStart()
var yyc3562 bool
if yyl3562 == 0 {
if yyv3562 == nil {
yyv3562 = []LocalObjectReference{}
yyc3562 = true
} else if len(yyv3562) != 0 {
yyv3562 = yyv3562[:0]
yyc3562 = true
}
} else if yyl3562 > 0 {
var yyrr3562, yyrl3562 int
var yyrt3562 bool
if yyl3562 > cap(yyv3562) {
yyrg3562 := len(yyv3562) > 0
yyv23562 := yyv3562
yyrl3562, yyrt3562 = z.DecInferLen(yyl3562, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3562 {
if yyrl3562 <= cap(yyv3562) {
yyv3562 = yyv3562[:yyrl3562]
} else {
yyv3562 = make([]LocalObjectReference, yyrl3562)
}
} else {
yyv3562 = make([]LocalObjectReference, yyrl3562)
}
yyc3562 = true
yyrr3562 = len(yyv3562)
if yyrg3562 {
copy(yyv3562, yyv23562)
}
} else if yyl3562 != len(yyv3562) {
yyv3562 = yyv3562[:yyl3562]
yyc3562 = true
}
yyj3562 := 0
for ; yyj3562 < yyrr3562; yyj3562++ {
yyh3562.ElemContainerState(yyj3562)
if r.TryDecodeAsNil() {
yyv3562[yyj3562] = LocalObjectReference{}
} else {
yyv3563 := &yyv3562[yyj3562]
yyv3563.CodecDecodeSelf(d)
}
}
if yyrt3562 {
for ; yyj3562 < yyl3562; yyj3562++ {
yyv3562 = append(yyv3562, LocalObjectReference{})
yyh3562.ElemContainerState(yyj3562)
if r.TryDecodeAsNil() {
yyv3562[yyj3562] = LocalObjectReference{}
} else {
yyv3564 := &yyv3562[yyj3562]
yyv3564.CodecDecodeSelf(d)
}
}
}
} else {
yyj3562 := 0
for ; !r.CheckBreak(); yyj3562++ {
if yyj3562 >= len(yyv3562) {
yyv3562 = append(yyv3562, LocalObjectReference{}) // var yyz3562 LocalObjectReference
yyc3562 = true
}
yyh3562.ElemContainerState(yyj3562)
if yyj3562 < len(yyv3562) {
if r.TryDecodeAsNil() {
yyv3562[yyj3562] = LocalObjectReference{}
} else {
yyv3565 := &yyv3562[yyj3562]
yyv3565.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3562 < len(yyv3562) {
yyv3562 = yyv3562[:yyj3562]
yyc3562 = true
} else if yyj3562 == 0 && yyv3562 == nil {
yyv3562 = []LocalObjectReference{}
yyc3562 = true
}
}
yyh3562.End()
if yyc3562 {
*v = yyv3562
}
}
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 _, yyv3566 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3567 := &yyv3566
yy3567.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
yyv3568 := *v
yyh3568, yyl3568 := z.DecSliceHelperStart()
var yyc3568 bool
if yyl3568 == 0 {
if yyv3568 == nil {
yyv3568 = []PodCondition{}
yyc3568 = true
} else if len(yyv3568) != 0 {
yyv3568 = yyv3568[:0]
yyc3568 = true
}
} else if yyl3568 > 0 {
var yyrr3568, yyrl3568 int
var yyrt3568 bool
if yyl3568 > cap(yyv3568) {
yyrg3568 := len(yyv3568) > 0
yyv23568 := yyv3568
yyrl3568, yyrt3568 = z.DecInferLen(yyl3568, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3568 {
if yyrl3568 <= cap(yyv3568) {
yyv3568 = yyv3568[:yyrl3568]
} else {
yyv3568 = make([]PodCondition, yyrl3568)
}
} else {
yyv3568 = make([]PodCondition, yyrl3568)
}
yyc3568 = true
yyrr3568 = len(yyv3568)
if yyrg3568 {
copy(yyv3568, yyv23568)
}
} else if yyl3568 != len(yyv3568) {
yyv3568 = yyv3568[:yyl3568]
yyc3568 = true
}
yyj3568 := 0
for ; yyj3568 < yyrr3568; yyj3568++ {
yyh3568.ElemContainerState(yyj3568)
if r.TryDecodeAsNil() {
yyv3568[yyj3568] = PodCondition{}
} else {
yyv3569 := &yyv3568[yyj3568]
yyv3569.CodecDecodeSelf(d)
}
}
if yyrt3568 {
for ; yyj3568 < yyl3568; yyj3568++ {
yyv3568 = append(yyv3568, PodCondition{})
yyh3568.ElemContainerState(yyj3568)
if r.TryDecodeAsNil() {
yyv3568[yyj3568] = PodCondition{}
} else {
yyv3570 := &yyv3568[yyj3568]
yyv3570.CodecDecodeSelf(d)
}
}
}
} else {
yyj3568 := 0
for ; !r.CheckBreak(); yyj3568++ {
if yyj3568 >= len(yyv3568) {
yyv3568 = append(yyv3568, PodCondition{}) // var yyz3568 PodCondition
yyc3568 = true
}
yyh3568.ElemContainerState(yyj3568)
if yyj3568 < len(yyv3568) {
if r.TryDecodeAsNil() {
yyv3568[yyj3568] = PodCondition{}
} else {
yyv3571 := &yyv3568[yyj3568]
yyv3571.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3568 < len(yyv3568) {
yyv3568 = yyv3568[:yyj3568]
yyc3568 = true
} else if yyj3568 == 0 && yyv3568 == nil {
yyv3568 = []PodCondition{}
yyc3568 = true
}
}
yyh3568.End()
if yyc3568 {
*v = yyv3568
}
}
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 _, yyv3572 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3573 := &yyv3572
yy3573.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
yyv3574 := *v
yyh3574, yyl3574 := z.DecSliceHelperStart()
var yyc3574 bool
if yyl3574 == 0 {
if yyv3574 == nil {
yyv3574 = []ContainerStatus{}
yyc3574 = true
} else if len(yyv3574) != 0 {
yyv3574 = yyv3574[:0]
yyc3574 = true
}
} else if yyl3574 > 0 {
var yyrr3574, yyrl3574 int
var yyrt3574 bool
if yyl3574 > cap(yyv3574) {
yyrg3574 := len(yyv3574) > 0
yyv23574 := yyv3574
yyrl3574, yyrt3574 = z.DecInferLen(yyl3574, z.DecBasicHandle().MaxInitLen, 128)
if yyrt3574 {
if yyrl3574 <= cap(yyv3574) {
yyv3574 = yyv3574[:yyrl3574]
} else {
yyv3574 = make([]ContainerStatus, yyrl3574)
}
} else {
yyv3574 = make([]ContainerStatus, yyrl3574)
}
yyc3574 = true
yyrr3574 = len(yyv3574)
if yyrg3574 {
copy(yyv3574, yyv23574)
}
} else if yyl3574 != len(yyv3574) {
yyv3574 = yyv3574[:yyl3574]
yyc3574 = true
}
yyj3574 := 0
for ; yyj3574 < yyrr3574; yyj3574++ {
yyh3574.ElemContainerState(yyj3574)
if r.TryDecodeAsNil() {
yyv3574[yyj3574] = ContainerStatus{}
} else {
yyv3575 := &yyv3574[yyj3574]
yyv3575.CodecDecodeSelf(d)
}
}
if yyrt3574 {
for ; yyj3574 < yyl3574; yyj3574++ {
yyv3574 = append(yyv3574, ContainerStatus{})
yyh3574.ElemContainerState(yyj3574)
if r.TryDecodeAsNil() {
yyv3574[yyj3574] = ContainerStatus{}
} else {
yyv3576 := &yyv3574[yyj3574]
yyv3576.CodecDecodeSelf(d)
}
}
}
} else {
yyj3574 := 0
for ; !r.CheckBreak(); yyj3574++ {
if yyj3574 >= len(yyv3574) {
yyv3574 = append(yyv3574, ContainerStatus{}) // var yyz3574 ContainerStatus
yyc3574 = true
}
yyh3574.ElemContainerState(yyj3574)
if yyj3574 < len(yyv3574) {
if r.TryDecodeAsNil() {
yyv3574[yyj3574] = ContainerStatus{}
} else {
yyv3577 := &yyv3574[yyj3574]
yyv3577.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3574 < len(yyv3574) {
yyv3574 = yyv3574[:yyj3574]
yyc3574 = true
} else if yyj3574 == 0 && yyv3574 == nil {
yyv3574 = []ContainerStatus{}
yyc3574 = true
}
}
yyh3574.End()
if yyc3574 {
*v = yyv3574
}
}
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 _, yyv3578 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3579 := &yyv3578
yy3579.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
yyv3580 := *v
yyh3580, yyl3580 := z.DecSliceHelperStart()
var yyc3580 bool
if yyl3580 == 0 {
if yyv3580 == nil {
yyv3580 = []PodTemplate{}
yyc3580 = true
} else if len(yyv3580) != 0 {
yyv3580 = yyv3580[:0]
yyc3580 = true
}
} else if yyl3580 > 0 {
var yyrr3580, yyrl3580 int
var yyrt3580 bool
if yyl3580 > cap(yyv3580) {
yyrg3580 := len(yyv3580) > 0
yyv23580 := yyv3580
yyrl3580, yyrt3580 = z.DecInferLen(yyl3580, z.DecBasicHandle().MaxInitLen, 520)
if yyrt3580 {
if yyrl3580 <= cap(yyv3580) {
yyv3580 = yyv3580[:yyrl3580]
} else {
yyv3580 = make([]PodTemplate, yyrl3580)
}
} else {
yyv3580 = make([]PodTemplate, yyrl3580)
}
yyc3580 = true
yyrr3580 = len(yyv3580)
if yyrg3580 {
copy(yyv3580, yyv23580)
}
} else if yyl3580 != len(yyv3580) {
yyv3580 = yyv3580[:yyl3580]
yyc3580 = true
}
yyj3580 := 0
for ; yyj3580 < yyrr3580; yyj3580++ {
yyh3580.ElemContainerState(yyj3580)
if r.TryDecodeAsNil() {
yyv3580[yyj3580] = PodTemplate{}
} else {
yyv3581 := &yyv3580[yyj3580]
yyv3581.CodecDecodeSelf(d)
}
}
if yyrt3580 {
for ; yyj3580 < yyl3580; yyj3580++ {
yyv3580 = append(yyv3580, PodTemplate{})
yyh3580.ElemContainerState(yyj3580)
if r.TryDecodeAsNil() {
yyv3580[yyj3580] = PodTemplate{}
} else {
yyv3582 := &yyv3580[yyj3580]
yyv3582.CodecDecodeSelf(d)
}
}
}
} else {
yyj3580 := 0
for ; !r.CheckBreak(); yyj3580++ {
if yyj3580 >= len(yyv3580) {
yyv3580 = append(yyv3580, PodTemplate{}) // var yyz3580 PodTemplate
yyc3580 = true
}
yyh3580.ElemContainerState(yyj3580)
if yyj3580 < len(yyv3580) {
if r.TryDecodeAsNil() {
yyv3580[yyj3580] = PodTemplate{}
} else {
yyv3583 := &yyv3580[yyj3580]
yyv3583.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3580 < len(yyv3580) {
yyv3580 = yyv3580[:yyj3580]
yyc3580 = true
} else if yyj3580 == 0 && yyv3580 == nil {
yyv3580 = []PodTemplate{}
yyc3580 = true
}
}
yyh3580.End()
if yyc3580 {
*v = yyv3580
}
}
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 _, yyv3584 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3585 := &yyv3584
yy3585.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
yyv3586 := *v
yyh3586, yyl3586 := z.DecSliceHelperStart()
var yyc3586 bool
if yyl3586 == 0 {
if yyv3586 == nil {
yyv3586 = []ReplicationController{}
yyc3586 = true
} else if len(yyv3586) != 0 {
yyv3586 = yyv3586[:0]
yyc3586 = true
}
} else if yyl3586 > 0 {
var yyrr3586, yyrl3586 int
var yyrt3586 bool
if yyl3586 > cap(yyv3586) {
yyrg3586 := len(yyv3586) > 0
yyv23586 := yyv3586
yyrl3586, yyrt3586 = z.DecInferLen(yyl3586, z.DecBasicHandle().MaxInitLen, 232)
if yyrt3586 {
if yyrl3586 <= cap(yyv3586) {
yyv3586 = yyv3586[:yyrl3586]
} else {
yyv3586 = make([]ReplicationController, yyrl3586)
}
} else {
yyv3586 = make([]ReplicationController, yyrl3586)
}
yyc3586 = true
yyrr3586 = len(yyv3586)
if yyrg3586 {
copy(yyv3586, yyv23586)
}
} else if yyl3586 != len(yyv3586) {
yyv3586 = yyv3586[:yyl3586]
yyc3586 = true
}
yyj3586 := 0
for ; yyj3586 < yyrr3586; yyj3586++ {
yyh3586.ElemContainerState(yyj3586)
if r.TryDecodeAsNil() {
yyv3586[yyj3586] = ReplicationController{}
} else {
yyv3587 := &yyv3586[yyj3586]
yyv3587.CodecDecodeSelf(d)
}
}
if yyrt3586 {
for ; yyj3586 < yyl3586; yyj3586++ {
yyv3586 = append(yyv3586, ReplicationController{})
yyh3586.ElemContainerState(yyj3586)
if r.TryDecodeAsNil() {
yyv3586[yyj3586] = ReplicationController{}
} else {
yyv3588 := &yyv3586[yyj3586]
yyv3588.CodecDecodeSelf(d)
}
}
}
} else {
yyj3586 := 0
for ; !r.CheckBreak(); yyj3586++ {
if yyj3586 >= len(yyv3586) {
yyv3586 = append(yyv3586, ReplicationController{}) // var yyz3586 ReplicationController
yyc3586 = true
}
yyh3586.ElemContainerState(yyj3586)
if yyj3586 < len(yyv3586) {
if r.TryDecodeAsNil() {
yyv3586[yyj3586] = ReplicationController{}
} else {
yyv3589 := &yyv3586[yyj3586]
yyv3589.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3586 < len(yyv3586) {
yyv3586 = yyv3586[:yyj3586]
yyc3586 = true
} else if yyj3586 == 0 && yyv3586 == nil {
yyv3586 = []ReplicationController{}
yyc3586 = true
}
}
yyh3586.End()
if yyc3586 {
*v = yyv3586
}
}
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 _, yyv3590 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3591 := &yyv3590
yy3591.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
yyv3592 := *v
yyh3592, yyl3592 := z.DecSliceHelperStart()
var yyc3592 bool
if yyl3592 == 0 {
if yyv3592 == nil {
yyv3592 = []Service{}
yyc3592 = true
} else if len(yyv3592) != 0 {
yyv3592 = yyv3592[:0]
yyc3592 = true
}
} else if yyl3592 > 0 {
var yyrr3592, yyrl3592 int
var yyrt3592 bool
if yyl3592 > cap(yyv3592) {
yyrg3592 := len(yyv3592) > 0
yyv23592 := yyv3592
yyrl3592, yyrt3592 = z.DecInferLen(yyl3592, z.DecBasicHandle().MaxInitLen, 336)
if yyrt3592 {
if yyrl3592 <= cap(yyv3592) {
yyv3592 = yyv3592[:yyrl3592]
} else {
yyv3592 = make([]Service, yyrl3592)
}
} else {
yyv3592 = make([]Service, yyrl3592)
}
yyc3592 = true
yyrr3592 = len(yyv3592)
if yyrg3592 {
copy(yyv3592, yyv23592)
}
} else if yyl3592 != len(yyv3592) {
yyv3592 = yyv3592[:yyl3592]
yyc3592 = true
}
yyj3592 := 0
for ; yyj3592 < yyrr3592; yyj3592++ {
yyh3592.ElemContainerState(yyj3592)
if r.TryDecodeAsNil() {
yyv3592[yyj3592] = Service{}
} else {
yyv3593 := &yyv3592[yyj3592]
yyv3593.CodecDecodeSelf(d)
}
}
if yyrt3592 {
for ; yyj3592 < yyl3592; yyj3592++ {
yyv3592 = append(yyv3592, Service{})
yyh3592.ElemContainerState(yyj3592)
if r.TryDecodeAsNil() {
yyv3592[yyj3592] = Service{}
} else {
yyv3594 := &yyv3592[yyj3592]
yyv3594.CodecDecodeSelf(d)
}
}
}
} else {
yyj3592 := 0
for ; !r.CheckBreak(); yyj3592++ {
if yyj3592 >= len(yyv3592) {
yyv3592 = append(yyv3592, Service{}) // var yyz3592 Service
yyc3592 = true
}
yyh3592.ElemContainerState(yyj3592)
if yyj3592 < len(yyv3592) {
if r.TryDecodeAsNil() {
yyv3592[yyj3592] = Service{}
} else {
yyv3595 := &yyv3592[yyj3592]
yyv3595.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3592 < len(yyv3592) {
yyv3592 = yyv3592[:yyj3592]
yyc3592 = true
} else if yyj3592 == 0 && yyv3592 == nil {
yyv3592 = []Service{}
yyc3592 = true
}
}
yyh3592.End()
if yyc3592 {
*v = yyv3592
}
}
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 _, yyv3596 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3597 := &yyv3596
yy3597.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
yyv3598 := *v
yyh3598, yyl3598 := z.DecSliceHelperStart()
var yyc3598 bool
if yyl3598 == 0 {
if yyv3598 == nil {
yyv3598 = []LoadBalancerIngress{}
yyc3598 = true
} else if len(yyv3598) != 0 {
yyv3598 = yyv3598[:0]
yyc3598 = true
}
} else if yyl3598 > 0 {
var yyrr3598, yyrl3598 int
var yyrt3598 bool
if yyl3598 > cap(yyv3598) {
yyrg3598 := len(yyv3598) > 0
yyv23598 := yyv3598
yyrl3598, yyrt3598 = z.DecInferLen(yyl3598, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3598 {
if yyrl3598 <= cap(yyv3598) {
yyv3598 = yyv3598[:yyrl3598]
} else {
yyv3598 = make([]LoadBalancerIngress, yyrl3598)
}
} else {
yyv3598 = make([]LoadBalancerIngress, yyrl3598)
}
yyc3598 = true
yyrr3598 = len(yyv3598)
if yyrg3598 {
copy(yyv3598, yyv23598)
}
} else if yyl3598 != len(yyv3598) {
yyv3598 = yyv3598[:yyl3598]
yyc3598 = true
}
yyj3598 := 0
for ; yyj3598 < yyrr3598; yyj3598++ {
yyh3598.ElemContainerState(yyj3598)
if r.TryDecodeAsNil() {
yyv3598[yyj3598] = LoadBalancerIngress{}
} else {
yyv3599 := &yyv3598[yyj3598]
yyv3599.CodecDecodeSelf(d)
}
}
if yyrt3598 {
for ; yyj3598 < yyl3598; yyj3598++ {
yyv3598 = append(yyv3598, LoadBalancerIngress{})
yyh3598.ElemContainerState(yyj3598)
if r.TryDecodeAsNil() {
yyv3598[yyj3598] = LoadBalancerIngress{}
} else {
yyv3600 := &yyv3598[yyj3598]
yyv3600.CodecDecodeSelf(d)
}
}
}
} else {
yyj3598 := 0
for ; !r.CheckBreak(); yyj3598++ {
if yyj3598 >= len(yyv3598) {
yyv3598 = append(yyv3598, LoadBalancerIngress{}) // var yyz3598 LoadBalancerIngress
yyc3598 = true
}
yyh3598.ElemContainerState(yyj3598)
if yyj3598 < len(yyv3598) {
if r.TryDecodeAsNil() {
yyv3598[yyj3598] = LoadBalancerIngress{}
} else {
yyv3601 := &yyv3598[yyj3598]
yyv3601.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3598 < len(yyv3598) {
yyv3598 = yyv3598[:yyj3598]
yyc3598 = true
} else if yyj3598 == 0 && yyv3598 == nil {
yyv3598 = []LoadBalancerIngress{}
yyc3598 = true
}
}
yyh3598.End()
if yyc3598 {
*v = yyv3598
}
}
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 _, yyv3602 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3603 := &yyv3602
yy3603.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
yyv3604 := *v
yyh3604, yyl3604 := z.DecSliceHelperStart()
var yyc3604 bool
if yyl3604 == 0 {
if yyv3604 == nil {
yyv3604 = []ServicePort{}
yyc3604 = true
} else if len(yyv3604) != 0 {
yyv3604 = yyv3604[:0]
yyc3604 = true
}
} else if yyl3604 > 0 {
var yyrr3604, yyrl3604 int
var yyrt3604 bool
if yyl3604 > cap(yyv3604) {
yyrg3604 := len(yyv3604) > 0
yyv23604 := yyv3604
yyrl3604, yyrt3604 = z.DecInferLen(yyl3604, z.DecBasicHandle().MaxInitLen, 80)
if yyrt3604 {
if yyrl3604 <= cap(yyv3604) {
yyv3604 = yyv3604[:yyrl3604]
} else {
yyv3604 = make([]ServicePort, yyrl3604)
}
} else {
yyv3604 = make([]ServicePort, yyrl3604)
}
yyc3604 = true
yyrr3604 = len(yyv3604)
if yyrg3604 {
copy(yyv3604, yyv23604)
}
} else if yyl3604 != len(yyv3604) {
yyv3604 = yyv3604[:yyl3604]
yyc3604 = true
}
yyj3604 := 0
for ; yyj3604 < yyrr3604; yyj3604++ {
yyh3604.ElemContainerState(yyj3604)
if r.TryDecodeAsNil() {
yyv3604[yyj3604] = ServicePort{}
} else {
yyv3605 := &yyv3604[yyj3604]
yyv3605.CodecDecodeSelf(d)
}
}
if yyrt3604 {
for ; yyj3604 < yyl3604; yyj3604++ {
yyv3604 = append(yyv3604, ServicePort{})
yyh3604.ElemContainerState(yyj3604)
if r.TryDecodeAsNil() {
yyv3604[yyj3604] = ServicePort{}
} else {
yyv3606 := &yyv3604[yyj3604]
yyv3606.CodecDecodeSelf(d)
}
}
}
} else {
yyj3604 := 0
for ; !r.CheckBreak(); yyj3604++ {
if yyj3604 >= len(yyv3604) {
yyv3604 = append(yyv3604, ServicePort{}) // var yyz3604 ServicePort
yyc3604 = true
}
yyh3604.ElemContainerState(yyj3604)
if yyj3604 < len(yyv3604) {
if r.TryDecodeAsNil() {
yyv3604[yyj3604] = ServicePort{}
} else {
yyv3607 := &yyv3604[yyj3604]
yyv3607.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3604 < len(yyv3604) {
yyv3604 = yyv3604[:yyj3604]
yyc3604 = true
} else if yyj3604 == 0 && yyv3604 == nil {
yyv3604 = []ServicePort{}
yyc3604 = true
}
}
yyh3604.End()
if yyc3604 {
*v = yyv3604
}
}
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 _, yyv3608 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3609 := &yyv3608
yy3609.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
yyv3610 := *v
yyh3610, yyl3610 := z.DecSliceHelperStart()
var yyc3610 bool
if yyl3610 == 0 {
if yyv3610 == nil {
yyv3610 = []ObjectReference{}
yyc3610 = true
} else if len(yyv3610) != 0 {
yyv3610 = yyv3610[:0]
yyc3610 = true
}
} else if yyl3610 > 0 {
var yyrr3610, yyrl3610 int
var yyrt3610 bool
if yyl3610 > cap(yyv3610) {
yyrg3610 := len(yyv3610) > 0
yyv23610 := yyv3610
yyrl3610, yyrt3610 = z.DecInferLen(yyl3610, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3610 {
if yyrl3610 <= cap(yyv3610) {
yyv3610 = yyv3610[:yyrl3610]
} else {
yyv3610 = make([]ObjectReference, yyrl3610)
}
} else {
yyv3610 = make([]ObjectReference, yyrl3610)
}
yyc3610 = true
yyrr3610 = len(yyv3610)
if yyrg3610 {
copy(yyv3610, yyv23610)
}
} else if yyl3610 != len(yyv3610) {
yyv3610 = yyv3610[:yyl3610]
yyc3610 = true
}
yyj3610 := 0
for ; yyj3610 < yyrr3610; yyj3610++ {
yyh3610.ElemContainerState(yyj3610)
if r.TryDecodeAsNil() {
yyv3610[yyj3610] = ObjectReference{}
} else {
yyv3611 := &yyv3610[yyj3610]
yyv3611.CodecDecodeSelf(d)
}
}
if yyrt3610 {
for ; yyj3610 < yyl3610; yyj3610++ {
yyv3610 = append(yyv3610, ObjectReference{})
yyh3610.ElemContainerState(yyj3610)
if r.TryDecodeAsNil() {
yyv3610[yyj3610] = ObjectReference{}
} else {
yyv3612 := &yyv3610[yyj3610]
yyv3612.CodecDecodeSelf(d)
}
}
}
} else {
yyj3610 := 0
for ; !r.CheckBreak(); yyj3610++ {
if yyj3610 >= len(yyv3610) {
yyv3610 = append(yyv3610, ObjectReference{}) // var yyz3610 ObjectReference
yyc3610 = true
}
yyh3610.ElemContainerState(yyj3610)
if yyj3610 < len(yyv3610) {
if r.TryDecodeAsNil() {
yyv3610[yyj3610] = ObjectReference{}
} else {
yyv3613 := &yyv3610[yyj3610]
yyv3613.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3610 < len(yyv3610) {
yyv3610 = yyv3610[:yyj3610]
yyc3610 = true
} else if yyj3610 == 0 && yyv3610 == nil {
yyv3610 = []ObjectReference{}
yyc3610 = true
}
}
yyh3610.End()
if yyc3610 {
*v = yyv3610
}
}
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 _, yyv3614 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3615 := &yyv3614
yy3615.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
yyv3616 := *v
yyh3616, yyl3616 := z.DecSliceHelperStart()
var yyc3616 bool
if yyl3616 == 0 {
if yyv3616 == nil {
yyv3616 = []ServiceAccount{}
yyc3616 = true
} else if len(yyv3616) != 0 {
yyv3616 = yyv3616[:0]
yyc3616 = true
}
} else if yyl3616 > 0 {
var yyrr3616, yyrl3616 int
var yyrt3616 bool
if yyl3616 > cap(yyv3616) {
yyrg3616 := len(yyv3616) > 0
yyv23616 := yyv3616
yyrl3616, yyrt3616 = z.DecInferLen(yyl3616, z.DecBasicHandle().MaxInitLen, 240)
if yyrt3616 {
if yyrl3616 <= cap(yyv3616) {
yyv3616 = yyv3616[:yyrl3616]
} else {
yyv3616 = make([]ServiceAccount, yyrl3616)
}
} else {
yyv3616 = make([]ServiceAccount, yyrl3616)
}
yyc3616 = true
yyrr3616 = len(yyv3616)
if yyrg3616 {
copy(yyv3616, yyv23616)
}
} else if yyl3616 != len(yyv3616) {
yyv3616 = yyv3616[:yyl3616]
yyc3616 = true
}
yyj3616 := 0
for ; yyj3616 < yyrr3616; yyj3616++ {
yyh3616.ElemContainerState(yyj3616)
if r.TryDecodeAsNil() {
yyv3616[yyj3616] = ServiceAccount{}
} else {
yyv3617 := &yyv3616[yyj3616]
yyv3617.CodecDecodeSelf(d)
}
}
if yyrt3616 {
for ; yyj3616 < yyl3616; yyj3616++ {
yyv3616 = append(yyv3616, ServiceAccount{})
yyh3616.ElemContainerState(yyj3616)
if r.TryDecodeAsNil() {
yyv3616[yyj3616] = ServiceAccount{}
} else {
yyv3618 := &yyv3616[yyj3616]
yyv3618.CodecDecodeSelf(d)
}
}
}
} else {
yyj3616 := 0
for ; !r.CheckBreak(); yyj3616++ {
if yyj3616 >= len(yyv3616) {
yyv3616 = append(yyv3616, ServiceAccount{}) // var yyz3616 ServiceAccount
yyc3616 = true
}
yyh3616.ElemContainerState(yyj3616)
if yyj3616 < len(yyv3616) {
if r.TryDecodeAsNil() {
yyv3616[yyj3616] = ServiceAccount{}
} else {
yyv3619 := &yyv3616[yyj3616]
yyv3619.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3616 < len(yyv3616) {
yyv3616 = yyv3616[:yyj3616]
yyc3616 = true
} else if yyj3616 == 0 && yyv3616 == nil {
yyv3616 = []ServiceAccount{}
yyc3616 = true
}
}
yyh3616.End()
if yyc3616 {
*v = yyv3616
}
}
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 _, yyv3620 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3621 := &yyv3620
yy3621.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
yyv3622 := *v
yyh3622, yyl3622 := z.DecSliceHelperStart()
var yyc3622 bool
if yyl3622 == 0 {
if yyv3622 == nil {
yyv3622 = []EndpointSubset{}
yyc3622 = true
} else if len(yyv3622) != 0 {
yyv3622 = yyv3622[:0]
yyc3622 = true
}
} else if yyl3622 > 0 {
var yyrr3622, yyrl3622 int
var yyrt3622 bool
if yyl3622 > cap(yyv3622) {
yyrg3622 := len(yyv3622) > 0
yyv23622 := yyv3622
yyrl3622, yyrt3622 = z.DecInferLen(yyl3622, z.DecBasicHandle().MaxInitLen, 72)
if yyrt3622 {
if yyrl3622 <= cap(yyv3622) {
yyv3622 = yyv3622[:yyrl3622]
} else {
yyv3622 = make([]EndpointSubset, yyrl3622)
}
} else {
yyv3622 = make([]EndpointSubset, yyrl3622)
}
yyc3622 = true
yyrr3622 = len(yyv3622)
if yyrg3622 {
copy(yyv3622, yyv23622)
}
} else if yyl3622 != len(yyv3622) {
yyv3622 = yyv3622[:yyl3622]
yyc3622 = true
}
yyj3622 := 0
for ; yyj3622 < yyrr3622; yyj3622++ {
yyh3622.ElemContainerState(yyj3622)
if r.TryDecodeAsNil() {
yyv3622[yyj3622] = EndpointSubset{}
} else {
yyv3623 := &yyv3622[yyj3622]
yyv3623.CodecDecodeSelf(d)
}
}
if yyrt3622 {
for ; yyj3622 < yyl3622; yyj3622++ {
yyv3622 = append(yyv3622, EndpointSubset{})
yyh3622.ElemContainerState(yyj3622)
if r.TryDecodeAsNil() {
yyv3622[yyj3622] = EndpointSubset{}
} else {
yyv3624 := &yyv3622[yyj3622]
yyv3624.CodecDecodeSelf(d)
}
}
}
} else {
yyj3622 := 0
for ; !r.CheckBreak(); yyj3622++ {
if yyj3622 >= len(yyv3622) {
yyv3622 = append(yyv3622, EndpointSubset{}) // var yyz3622 EndpointSubset
yyc3622 = true
}
yyh3622.ElemContainerState(yyj3622)
if yyj3622 < len(yyv3622) {
if r.TryDecodeAsNil() {
yyv3622[yyj3622] = EndpointSubset{}
} else {
yyv3625 := &yyv3622[yyj3622]
yyv3625.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3622 < len(yyv3622) {
yyv3622 = yyv3622[:yyj3622]
yyc3622 = true
} else if yyj3622 == 0 && yyv3622 == nil {
yyv3622 = []EndpointSubset{}
yyc3622 = true
}
}
yyh3622.End()
if yyc3622 {
*v = yyv3622
}
}
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 _, yyv3626 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3627 := &yyv3626
yy3627.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
yyv3628 := *v
yyh3628, yyl3628 := z.DecSliceHelperStart()
var yyc3628 bool
if yyl3628 == 0 {
if yyv3628 == nil {
yyv3628 = []EndpointAddress{}
yyc3628 = true
} else if len(yyv3628) != 0 {
yyv3628 = yyv3628[:0]
yyc3628 = true
}
} else if yyl3628 > 0 {
var yyrr3628, yyrl3628 int
var yyrt3628 bool
if yyl3628 > cap(yyv3628) {
yyrg3628 := len(yyv3628) > 0
yyv23628 := yyv3628
yyrl3628, yyrt3628 = z.DecInferLen(yyl3628, z.DecBasicHandle().MaxInitLen, 24)
if yyrt3628 {
if yyrl3628 <= cap(yyv3628) {
yyv3628 = yyv3628[:yyrl3628]
} else {
yyv3628 = make([]EndpointAddress, yyrl3628)
}
} else {
yyv3628 = make([]EndpointAddress, yyrl3628)
}
yyc3628 = true
yyrr3628 = len(yyv3628)
if yyrg3628 {
copy(yyv3628, yyv23628)
}
} else if yyl3628 != len(yyv3628) {
yyv3628 = yyv3628[:yyl3628]
yyc3628 = true
}
yyj3628 := 0
for ; yyj3628 < yyrr3628; yyj3628++ {
yyh3628.ElemContainerState(yyj3628)
if r.TryDecodeAsNil() {
yyv3628[yyj3628] = EndpointAddress{}
} else {
yyv3629 := &yyv3628[yyj3628]
yyv3629.CodecDecodeSelf(d)
}
}
if yyrt3628 {
for ; yyj3628 < yyl3628; yyj3628++ {
yyv3628 = append(yyv3628, EndpointAddress{})
yyh3628.ElemContainerState(yyj3628)
if r.TryDecodeAsNil() {
yyv3628[yyj3628] = EndpointAddress{}
} else {
yyv3630 := &yyv3628[yyj3628]
yyv3630.CodecDecodeSelf(d)
}
}
}
} else {
yyj3628 := 0
for ; !r.CheckBreak(); yyj3628++ {
if yyj3628 >= len(yyv3628) {
yyv3628 = append(yyv3628, EndpointAddress{}) // var yyz3628 EndpointAddress
yyc3628 = true
}
yyh3628.ElemContainerState(yyj3628)
if yyj3628 < len(yyv3628) {
if r.TryDecodeAsNil() {
yyv3628[yyj3628] = EndpointAddress{}
} else {
yyv3631 := &yyv3628[yyj3628]
yyv3631.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3628 < len(yyv3628) {
yyv3628 = yyv3628[:yyj3628]
yyc3628 = true
} else if yyj3628 == 0 && yyv3628 == nil {
yyv3628 = []EndpointAddress{}
yyc3628 = true
}
}
yyh3628.End()
if yyc3628 {
*v = yyv3628
}
}
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 _, yyv3632 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3633 := &yyv3632
yy3633.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
yyv3634 := *v
yyh3634, yyl3634 := z.DecSliceHelperStart()
var yyc3634 bool
if yyl3634 == 0 {
if yyv3634 == nil {
yyv3634 = []EndpointPort{}
yyc3634 = true
} else if len(yyv3634) != 0 {
yyv3634 = yyv3634[:0]
yyc3634 = true
}
} else if yyl3634 > 0 {
var yyrr3634, yyrl3634 int
var yyrt3634 bool
if yyl3634 > cap(yyv3634) {
yyrg3634 := len(yyv3634) > 0
yyv23634 := yyv3634
yyrl3634, yyrt3634 = z.DecInferLen(yyl3634, z.DecBasicHandle().MaxInitLen, 40)
if yyrt3634 {
if yyrl3634 <= cap(yyv3634) {
yyv3634 = yyv3634[:yyrl3634]
} else {
yyv3634 = make([]EndpointPort, yyrl3634)
}
} else {
yyv3634 = make([]EndpointPort, yyrl3634)
}
yyc3634 = true
yyrr3634 = len(yyv3634)
if yyrg3634 {
copy(yyv3634, yyv23634)
}
} else if yyl3634 != len(yyv3634) {
yyv3634 = yyv3634[:yyl3634]
yyc3634 = true
}
yyj3634 := 0
for ; yyj3634 < yyrr3634; yyj3634++ {
yyh3634.ElemContainerState(yyj3634)
if r.TryDecodeAsNil() {
yyv3634[yyj3634] = EndpointPort{}
} else {
yyv3635 := &yyv3634[yyj3634]
yyv3635.CodecDecodeSelf(d)
}
}
if yyrt3634 {
for ; yyj3634 < yyl3634; yyj3634++ {
yyv3634 = append(yyv3634, EndpointPort{})
yyh3634.ElemContainerState(yyj3634)
if r.TryDecodeAsNil() {
yyv3634[yyj3634] = EndpointPort{}
} else {
yyv3636 := &yyv3634[yyj3634]
yyv3636.CodecDecodeSelf(d)
}
}
}
} else {
yyj3634 := 0
for ; !r.CheckBreak(); yyj3634++ {
if yyj3634 >= len(yyv3634) {
yyv3634 = append(yyv3634, EndpointPort{}) // var yyz3634 EndpointPort
yyc3634 = true
}
yyh3634.ElemContainerState(yyj3634)
if yyj3634 < len(yyv3634) {
if r.TryDecodeAsNil() {
yyv3634[yyj3634] = EndpointPort{}
} else {
yyv3637 := &yyv3634[yyj3634]
yyv3637.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3634 < len(yyv3634) {
yyv3634 = yyv3634[:yyj3634]
yyc3634 = true
} else if yyj3634 == 0 && yyv3634 == nil {
yyv3634 = []EndpointPort{}
yyc3634 = true
}
}
yyh3634.End()
if yyc3634 {
*v = yyv3634
}
}
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 _, yyv3638 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3639 := &yyv3638
yy3639.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
yyv3640 := *v
yyh3640, yyl3640 := z.DecSliceHelperStart()
var yyc3640 bool
if yyl3640 == 0 {
if yyv3640 == nil {
yyv3640 = []Endpoints{}
yyc3640 = true
} else if len(yyv3640) != 0 {
yyv3640 = yyv3640[:0]
yyc3640 = true
}
} else if yyl3640 > 0 {
var yyrr3640, yyrl3640 int
var yyrt3640 bool
if yyl3640 > cap(yyv3640) {
yyrg3640 := len(yyv3640) > 0
yyv23640 := yyv3640
yyrl3640, yyrt3640 = z.DecInferLen(yyl3640, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3640 {
if yyrl3640 <= cap(yyv3640) {
yyv3640 = yyv3640[:yyrl3640]
} else {
yyv3640 = make([]Endpoints, yyrl3640)
}
} else {
yyv3640 = make([]Endpoints, yyrl3640)
}
yyc3640 = true
yyrr3640 = len(yyv3640)
if yyrg3640 {
copy(yyv3640, yyv23640)
}
} else if yyl3640 != len(yyv3640) {
yyv3640 = yyv3640[:yyl3640]
yyc3640 = true
}
yyj3640 := 0
for ; yyj3640 < yyrr3640; yyj3640++ {
yyh3640.ElemContainerState(yyj3640)
if r.TryDecodeAsNil() {
yyv3640[yyj3640] = Endpoints{}
} else {
yyv3641 := &yyv3640[yyj3640]
yyv3641.CodecDecodeSelf(d)
}
}
if yyrt3640 {
for ; yyj3640 < yyl3640; yyj3640++ {
yyv3640 = append(yyv3640, Endpoints{})
yyh3640.ElemContainerState(yyj3640)
if r.TryDecodeAsNil() {
yyv3640[yyj3640] = Endpoints{}
} else {
yyv3642 := &yyv3640[yyj3640]
yyv3642.CodecDecodeSelf(d)
}
}
}
} else {
yyj3640 := 0
for ; !r.CheckBreak(); yyj3640++ {
if yyj3640 >= len(yyv3640) {
yyv3640 = append(yyv3640, Endpoints{}) // var yyz3640 Endpoints
yyc3640 = true
}
yyh3640.ElemContainerState(yyj3640)
if yyj3640 < len(yyv3640) {
if r.TryDecodeAsNil() {
yyv3640[yyj3640] = Endpoints{}
} else {
yyv3643 := &yyv3640[yyj3640]
yyv3643.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3640 < len(yyv3640) {
yyv3640 = yyv3640[:yyj3640]
yyc3640 = true
} else if yyj3640 == 0 && yyv3640 == nil {
yyv3640 = []Endpoints{}
yyc3640 = true
}
}
yyh3640.End()
if yyc3640 {
*v = yyv3640
}
}
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 _, yyv3644 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3645 := &yyv3644
yy3645.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
yyv3646 := *v
yyh3646, yyl3646 := z.DecSliceHelperStart()
var yyc3646 bool
if yyl3646 == 0 {
if yyv3646 == nil {
yyv3646 = []NodeCondition{}
yyc3646 = true
} else if len(yyv3646) != 0 {
yyv3646 = yyv3646[:0]
yyc3646 = true
}
} else if yyl3646 > 0 {
var yyrr3646, yyrl3646 int
var yyrt3646 bool
if yyl3646 > cap(yyv3646) {
yyrg3646 := len(yyv3646) > 0
yyv23646 := yyv3646
yyrl3646, yyrt3646 = z.DecInferLen(yyl3646, z.DecBasicHandle().MaxInitLen, 112)
if yyrt3646 {
if yyrl3646 <= cap(yyv3646) {
yyv3646 = yyv3646[:yyrl3646]
} else {
yyv3646 = make([]NodeCondition, yyrl3646)
}
} else {
yyv3646 = make([]NodeCondition, yyrl3646)
}
yyc3646 = true
yyrr3646 = len(yyv3646)
if yyrg3646 {
copy(yyv3646, yyv23646)
}
} else if yyl3646 != len(yyv3646) {
yyv3646 = yyv3646[:yyl3646]
yyc3646 = true
}
yyj3646 := 0
for ; yyj3646 < yyrr3646; yyj3646++ {
yyh3646.ElemContainerState(yyj3646)
if r.TryDecodeAsNil() {
yyv3646[yyj3646] = NodeCondition{}
} else {
yyv3647 := &yyv3646[yyj3646]
yyv3647.CodecDecodeSelf(d)
}
}
if yyrt3646 {
for ; yyj3646 < yyl3646; yyj3646++ {
yyv3646 = append(yyv3646, NodeCondition{})
yyh3646.ElemContainerState(yyj3646)
if r.TryDecodeAsNil() {
yyv3646[yyj3646] = NodeCondition{}
} else {
yyv3648 := &yyv3646[yyj3646]
yyv3648.CodecDecodeSelf(d)
}
}
}
} else {
yyj3646 := 0
for ; !r.CheckBreak(); yyj3646++ {
if yyj3646 >= len(yyv3646) {
yyv3646 = append(yyv3646, NodeCondition{}) // var yyz3646 NodeCondition
yyc3646 = true
}
yyh3646.ElemContainerState(yyj3646)
if yyj3646 < len(yyv3646) {
if r.TryDecodeAsNil() {
yyv3646[yyj3646] = NodeCondition{}
} else {
yyv3649 := &yyv3646[yyj3646]
yyv3649.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3646 < len(yyv3646) {
yyv3646 = yyv3646[:yyj3646]
yyc3646 = true
} else if yyj3646 == 0 && yyv3646 == nil {
yyv3646 = []NodeCondition{}
yyc3646 = true
}
}
yyh3646.End()
if yyc3646 {
*v = yyv3646
}
}
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 _, yyv3650 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3651 := &yyv3650
yy3651.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
yyv3652 := *v
yyh3652, yyl3652 := z.DecSliceHelperStart()
var yyc3652 bool
if yyl3652 == 0 {
if yyv3652 == nil {
yyv3652 = []NodeAddress{}
yyc3652 = true
} else if len(yyv3652) != 0 {
yyv3652 = yyv3652[:0]
yyc3652 = true
}
} else if yyl3652 > 0 {
var yyrr3652, yyrl3652 int
var yyrt3652 bool
if yyl3652 > cap(yyv3652) {
yyrg3652 := len(yyv3652) > 0
yyv23652 := yyv3652
yyrl3652, yyrt3652 = z.DecInferLen(yyl3652, z.DecBasicHandle().MaxInitLen, 32)
if yyrt3652 {
if yyrl3652 <= cap(yyv3652) {
yyv3652 = yyv3652[:yyrl3652]
} else {
yyv3652 = make([]NodeAddress, yyrl3652)
}
} else {
yyv3652 = make([]NodeAddress, yyrl3652)
}
yyc3652 = true
yyrr3652 = len(yyv3652)
if yyrg3652 {
copy(yyv3652, yyv23652)
}
} else if yyl3652 != len(yyv3652) {
yyv3652 = yyv3652[:yyl3652]
yyc3652 = true
}
yyj3652 := 0
for ; yyj3652 < yyrr3652; yyj3652++ {
yyh3652.ElemContainerState(yyj3652)
if r.TryDecodeAsNil() {
yyv3652[yyj3652] = NodeAddress{}
} else {
yyv3653 := &yyv3652[yyj3652]
yyv3653.CodecDecodeSelf(d)
}
}
if yyrt3652 {
for ; yyj3652 < yyl3652; yyj3652++ {
yyv3652 = append(yyv3652, NodeAddress{})
yyh3652.ElemContainerState(yyj3652)
if r.TryDecodeAsNil() {
yyv3652[yyj3652] = NodeAddress{}
} else {
yyv3654 := &yyv3652[yyj3652]
yyv3654.CodecDecodeSelf(d)
}
}
}
} else {
yyj3652 := 0
for ; !r.CheckBreak(); yyj3652++ {
if yyj3652 >= len(yyv3652) {
yyv3652 = append(yyv3652, NodeAddress{}) // var yyz3652 NodeAddress
yyc3652 = true
}
yyh3652.ElemContainerState(yyj3652)
if yyj3652 < len(yyv3652) {
if r.TryDecodeAsNil() {
yyv3652[yyj3652] = NodeAddress{}
} else {
yyv3655 := &yyv3652[yyj3652]
yyv3655.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3652 < len(yyv3652) {
yyv3652 = yyv3652[:yyj3652]
yyc3652 = true
} else if yyj3652 == 0 && yyv3652 == nil {
yyv3652 = []NodeAddress{}
yyc3652 = true
}
}
yyh3652.End()
if yyc3652 {
*v = yyv3652
}
}
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 yyk3656, yyv3656 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yyk3656.CodecEncodeSelf(e)
z.EncSendContainerState(codecSelfer_containerMapValue1234)
yy3657 := &yyv3656
yym3658 := z.EncBinary()
_ = yym3658
if false {
} else if z.HasExtensions() && z.EncExt(yy3657) {
} else if !yym3658 && z.IsJSONHandle() {
z.EncJSONMarshal(yy3657)
} else {
z.EncFallback(yy3657)
}
}
z.EncSendContainerState(codecSelfer_containerMapEnd1234)
}
func (x codecSelfer1234) decResourceList(v *ResourceList, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv3659 := *v
yyl3659 := r.ReadMapStart()
yybh3659 := z.DecBasicHandle()
if yyv3659 == nil {
yyrl3659, _ := z.DecInferLen(yyl3659, yybh3659.MaxInitLen, 40)
yyv3659 = make(map[ResourceName]pkg3_resource.Quantity, yyrl3659)
*v = yyv3659
}
var yymk3659 ResourceName
var yymv3659 pkg3_resource.Quantity
var yymg3659 bool
if yybh3659.MapValueReset {
yymg3659 = true
}
if yyl3659 > 0 {
for yyj3659 := 0; yyj3659 < yyl3659; yyj3659++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3659 = ""
} else {
yymk3659 = ResourceName(r.DecodeString())
}
if yymg3659 {
yymv3659 = yyv3659[yymk3659]
} else {
yymv3659 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3659 = pkg3_resource.Quantity{}
} else {
yyv3661 := &yymv3659
yym3662 := z.DecBinary()
_ = yym3662
if false {
} else if z.HasExtensions() && z.DecExt(yyv3661) {
} else if !yym3662 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3661)
} else {
z.DecFallback(yyv3661, false)
}
}
if yyv3659 != nil {
yyv3659[yymk3659] = yymv3659
}
}
} else if yyl3659 < 0 {
for yyj3659 := 0; !r.CheckBreak(); yyj3659++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3659 = ""
} else {
yymk3659 = ResourceName(r.DecodeString())
}
if yymg3659 {
yymv3659 = yyv3659[yymk3659]
} else {
yymv3659 = pkg3_resource.Quantity{}
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3659 = pkg3_resource.Quantity{}
} else {
yyv3664 := &yymv3659
yym3665 := z.DecBinary()
_ = yym3665
if false {
} else if z.HasExtensions() && z.DecExt(yyv3664) {
} else if !yym3665 && z.IsJSONHandle() {
z.DecJSONUnmarshal(yyv3664)
} else {
z.DecFallback(yyv3664, false)
}
}
if yyv3659 != nil {
yyv3659[yymk3659] = yymv3659
}
}
} // 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 _, yyv3666 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3667 := &yyv3666
yy3667.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
yyv3668 := *v
yyh3668, yyl3668 := z.DecSliceHelperStart()
var yyc3668 bool
if yyl3668 == 0 {
if yyv3668 == nil {
yyv3668 = []Node{}
yyc3668 = true
} else if len(yyv3668) != 0 {
yyv3668 = yyv3668[:0]
yyc3668 = true
}
} else if yyl3668 > 0 {
var yyrr3668, yyrl3668 int
var yyrt3668 bool
if yyl3668 > cap(yyv3668) {
yyrg3668 := len(yyv3668) > 0
yyv23668 := yyv3668
yyrl3668, yyrt3668 = z.DecInferLen(yyl3668, z.DecBasicHandle().MaxInitLen, 456)
if yyrt3668 {
if yyrl3668 <= cap(yyv3668) {
yyv3668 = yyv3668[:yyrl3668]
} else {
yyv3668 = make([]Node, yyrl3668)
}
} else {
yyv3668 = make([]Node, yyrl3668)
}
yyc3668 = true
yyrr3668 = len(yyv3668)
if yyrg3668 {
copy(yyv3668, yyv23668)
}
} else if yyl3668 != len(yyv3668) {
yyv3668 = yyv3668[:yyl3668]
yyc3668 = true
}
yyj3668 := 0
for ; yyj3668 < yyrr3668; yyj3668++ {
yyh3668.ElemContainerState(yyj3668)
if r.TryDecodeAsNil() {
yyv3668[yyj3668] = Node{}
} else {
yyv3669 := &yyv3668[yyj3668]
yyv3669.CodecDecodeSelf(d)
}
}
if yyrt3668 {
for ; yyj3668 < yyl3668; yyj3668++ {
yyv3668 = append(yyv3668, Node{})
yyh3668.ElemContainerState(yyj3668)
if r.TryDecodeAsNil() {
yyv3668[yyj3668] = Node{}
} else {
yyv3670 := &yyv3668[yyj3668]
yyv3670.CodecDecodeSelf(d)
}
}
}
} else {
yyj3668 := 0
for ; !r.CheckBreak(); yyj3668++ {
if yyj3668 >= len(yyv3668) {
yyv3668 = append(yyv3668, Node{}) // var yyz3668 Node
yyc3668 = true
}
yyh3668.ElemContainerState(yyj3668)
if yyj3668 < len(yyv3668) {
if r.TryDecodeAsNil() {
yyv3668[yyj3668] = Node{}
} else {
yyv3671 := &yyv3668[yyj3668]
yyv3671.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3668 < len(yyv3668) {
yyv3668 = yyv3668[:yyj3668]
yyc3668 = true
} else if yyj3668 == 0 && yyv3668 == nil {
yyv3668 = []Node{}
yyc3668 = true
}
}
yyh3668.End()
if yyc3668 {
*v = yyv3668
}
}
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 _, yyv3672 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yyv3672.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
yyv3673 := *v
yyh3673, yyl3673 := z.DecSliceHelperStart()
var yyc3673 bool
if yyl3673 == 0 {
if yyv3673 == nil {
yyv3673 = []FinalizerName{}
yyc3673 = true
} else if len(yyv3673) != 0 {
yyv3673 = yyv3673[:0]
yyc3673 = true
}
} else if yyl3673 > 0 {
var yyrr3673, yyrl3673 int
var yyrt3673 bool
if yyl3673 > cap(yyv3673) {
yyrl3673, yyrt3673 = z.DecInferLen(yyl3673, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3673 {
if yyrl3673 <= cap(yyv3673) {
yyv3673 = yyv3673[:yyrl3673]
} else {
yyv3673 = make([]FinalizerName, yyrl3673)
}
} else {
yyv3673 = make([]FinalizerName, yyrl3673)
}
yyc3673 = true
yyrr3673 = len(yyv3673)
} else if yyl3673 != len(yyv3673) {
yyv3673 = yyv3673[:yyl3673]
yyc3673 = true
}
yyj3673 := 0
for ; yyj3673 < yyrr3673; yyj3673++ {
yyh3673.ElemContainerState(yyj3673)
if r.TryDecodeAsNil() {
yyv3673[yyj3673] = ""
} else {
yyv3673[yyj3673] = FinalizerName(r.DecodeString())
}
}
if yyrt3673 {
for ; yyj3673 < yyl3673; yyj3673++ {
yyv3673 = append(yyv3673, "")
yyh3673.ElemContainerState(yyj3673)
if r.TryDecodeAsNil() {
yyv3673[yyj3673] = ""
} else {
yyv3673[yyj3673] = FinalizerName(r.DecodeString())
}
}
}
} else {
yyj3673 := 0
for ; !r.CheckBreak(); yyj3673++ {
if yyj3673 >= len(yyv3673) {
yyv3673 = append(yyv3673, "") // var yyz3673 FinalizerName
yyc3673 = true
}
yyh3673.ElemContainerState(yyj3673)
if yyj3673 < len(yyv3673) {
if r.TryDecodeAsNil() {
yyv3673[yyj3673] = ""
} else {
yyv3673[yyj3673] = FinalizerName(r.DecodeString())
}
} else {
z.DecSwallow()
}
}
if yyj3673 < len(yyv3673) {
yyv3673 = yyv3673[:yyj3673]
yyc3673 = true
} else if yyj3673 == 0 && yyv3673 == nil {
yyv3673 = []FinalizerName{}
yyc3673 = true
}
}
yyh3673.End()
if yyc3673 {
*v = yyv3673
}
}
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 _, yyv3677 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3678 := &yyv3677
yy3678.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
yyv3679 := *v
yyh3679, yyl3679 := z.DecSliceHelperStart()
var yyc3679 bool
if yyl3679 == 0 {
if yyv3679 == nil {
yyv3679 = []Namespace{}
yyc3679 = true
} else if len(yyv3679) != 0 {
yyv3679 = yyv3679[:0]
yyc3679 = true
}
} else if yyl3679 > 0 {
var yyrr3679, yyrl3679 int
var yyrt3679 bool
if yyl3679 > cap(yyv3679) {
yyrg3679 := len(yyv3679) > 0
yyv23679 := yyv3679
yyrl3679, yyrt3679 = z.DecInferLen(yyl3679, z.DecBasicHandle().MaxInitLen, 232)
if yyrt3679 {
if yyrl3679 <= cap(yyv3679) {
yyv3679 = yyv3679[:yyrl3679]
} else {
yyv3679 = make([]Namespace, yyrl3679)
}
} else {
yyv3679 = make([]Namespace, yyrl3679)
}
yyc3679 = true
yyrr3679 = len(yyv3679)
if yyrg3679 {
copy(yyv3679, yyv23679)
}
} else if yyl3679 != len(yyv3679) {
yyv3679 = yyv3679[:yyl3679]
yyc3679 = true
}
yyj3679 := 0
for ; yyj3679 < yyrr3679; yyj3679++ {
yyh3679.ElemContainerState(yyj3679)
if r.TryDecodeAsNil() {
yyv3679[yyj3679] = Namespace{}
} else {
yyv3680 := &yyv3679[yyj3679]
yyv3680.CodecDecodeSelf(d)
}
}
if yyrt3679 {
for ; yyj3679 < yyl3679; yyj3679++ {
yyv3679 = append(yyv3679, Namespace{})
yyh3679.ElemContainerState(yyj3679)
if r.TryDecodeAsNil() {
yyv3679[yyj3679] = Namespace{}
} else {
yyv3681 := &yyv3679[yyj3679]
yyv3681.CodecDecodeSelf(d)
}
}
}
} else {
yyj3679 := 0
for ; !r.CheckBreak(); yyj3679++ {
if yyj3679 >= len(yyv3679) {
yyv3679 = append(yyv3679, Namespace{}) // var yyz3679 Namespace
yyc3679 = true
}
yyh3679.ElemContainerState(yyj3679)
if yyj3679 < len(yyv3679) {
if r.TryDecodeAsNil() {
yyv3679[yyj3679] = Namespace{}
} else {
yyv3682 := &yyv3679[yyj3679]
yyv3682.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3679 < len(yyv3679) {
yyv3679 = yyv3679[:yyj3679]
yyc3679 = true
} else if yyj3679 == 0 && yyv3679 == nil {
yyv3679 = []Namespace{}
yyc3679 = true
}
}
yyh3679.End()
if yyc3679 {
*v = yyv3679
}
}
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 _, yyv3683 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3684 := &yyv3683
yy3684.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
yyv3685 := *v
yyh3685, yyl3685 := z.DecSliceHelperStart()
var yyc3685 bool
if yyl3685 == 0 {
if yyv3685 == nil {
yyv3685 = []Event{}
yyc3685 = true
} else if len(yyv3685) != 0 {
yyv3685 = yyv3685[:0]
yyc3685 = true
}
} else if yyl3685 > 0 {
var yyrr3685, yyrl3685 int
var yyrt3685 bool
if yyl3685 > cap(yyv3685) {
yyrg3685 := len(yyv3685) > 0
yyv23685 := yyv3685
yyrl3685, yyrt3685 = z.DecInferLen(yyl3685, z.DecBasicHandle().MaxInitLen, 440)
if yyrt3685 {
if yyrl3685 <= cap(yyv3685) {
yyv3685 = yyv3685[:yyrl3685]
} else {
yyv3685 = make([]Event, yyrl3685)
}
} else {
yyv3685 = make([]Event, yyrl3685)
}
yyc3685 = true
yyrr3685 = len(yyv3685)
if yyrg3685 {
copy(yyv3685, yyv23685)
}
} else if yyl3685 != len(yyv3685) {
yyv3685 = yyv3685[:yyl3685]
yyc3685 = true
}
yyj3685 := 0
for ; yyj3685 < yyrr3685; yyj3685++ {
yyh3685.ElemContainerState(yyj3685)
if r.TryDecodeAsNil() {
yyv3685[yyj3685] = Event{}
} else {
yyv3686 := &yyv3685[yyj3685]
yyv3686.CodecDecodeSelf(d)
}
}
if yyrt3685 {
for ; yyj3685 < yyl3685; yyj3685++ {
yyv3685 = append(yyv3685, Event{})
yyh3685.ElemContainerState(yyj3685)
if r.TryDecodeAsNil() {
yyv3685[yyj3685] = Event{}
} else {
yyv3687 := &yyv3685[yyj3685]
yyv3687.CodecDecodeSelf(d)
}
}
}
} else {
yyj3685 := 0
for ; !r.CheckBreak(); yyj3685++ {
if yyj3685 >= len(yyv3685) {
yyv3685 = append(yyv3685, Event{}) // var yyz3685 Event
yyc3685 = true
}
yyh3685.ElemContainerState(yyj3685)
if yyj3685 < len(yyv3685) {
if r.TryDecodeAsNil() {
yyv3685[yyj3685] = Event{}
} else {
yyv3688 := &yyv3685[yyj3685]
yyv3688.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3685 < len(yyv3685) {
yyv3685 = yyv3685[:yyj3685]
yyc3685 = true
} else if yyj3685 == 0 && yyv3685 == nil {
yyv3685 = []Event{}
yyc3685 = true
}
}
yyh3685.End()
if yyc3685 {
*v = yyv3685
}
}
func (x codecSelfer1234) encSliceruntime_Object(v []pkg8_runtime.Object, e *codec1978.Encoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperEncoder(e)
_, _, _ = h, z, r
r.EncodeArrayStart(len(v))
for _, yyv3689 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
if yyv3689 == nil {
r.EncodeNil()
} else {
yym3690 := z.EncBinary()
_ = yym3690
if false {
} else if z.HasExtensions() && z.EncExt(yyv3689) {
} else {
z.EncFallback(yyv3689)
}
}
}
z.EncSendContainerState(codecSelfer_containerArrayEnd1234)
}
func (x codecSelfer1234) decSliceruntime_Object(v *[]pkg8_runtime.Object, d *codec1978.Decoder) {
var h codecSelfer1234
z, r := codec1978.GenHelperDecoder(d)
_, _, _ = h, z, r
yyv3691 := *v
yyh3691, yyl3691 := z.DecSliceHelperStart()
var yyc3691 bool
if yyl3691 == 0 {
if yyv3691 == nil {
yyv3691 = []pkg8_runtime.Object{}
yyc3691 = true
} else if len(yyv3691) != 0 {
yyv3691 = yyv3691[:0]
yyc3691 = true
}
} else if yyl3691 > 0 {
var yyrr3691, yyrl3691 int
var yyrt3691 bool
if yyl3691 > cap(yyv3691) {
yyrg3691 := len(yyv3691) > 0
yyv23691 := yyv3691
yyrl3691, yyrt3691 = z.DecInferLen(yyl3691, z.DecBasicHandle().MaxInitLen, 16)
if yyrt3691 {
if yyrl3691 <= cap(yyv3691) {
yyv3691 = yyv3691[:yyrl3691]
} else {
yyv3691 = make([]pkg8_runtime.Object, yyrl3691)
}
} else {
yyv3691 = make([]pkg8_runtime.Object, yyrl3691)
}
yyc3691 = true
yyrr3691 = len(yyv3691)
if yyrg3691 {
copy(yyv3691, yyv23691)
}
} else if yyl3691 != len(yyv3691) {
yyv3691 = yyv3691[:yyl3691]
yyc3691 = true
}
yyj3691 := 0
for ; yyj3691 < yyrr3691; yyj3691++ {
yyh3691.ElemContainerState(yyj3691)
if r.TryDecodeAsNil() {
yyv3691[yyj3691] = nil
} else {
yyv3692 := &yyv3691[yyj3691]
yym3693 := z.DecBinary()
_ = yym3693
if false {
} else if z.HasExtensions() && z.DecExt(yyv3692) {
} else {
z.DecFallback(yyv3692, true)
}
}
}
if yyrt3691 {
for ; yyj3691 < yyl3691; yyj3691++ {
yyv3691 = append(yyv3691, nil)
yyh3691.ElemContainerState(yyj3691)
if r.TryDecodeAsNil() {
yyv3691[yyj3691] = nil
} else {
yyv3694 := &yyv3691[yyj3691]
yym3695 := z.DecBinary()
_ = yym3695
if false {
} else if z.HasExtensions() && z.DecExt(yyv3694) {
} else {
z.DecFallback(yyv3694, true)
}
}
}
}
} else {
yyj3691 := 0
for ; !r.CheckBreak(); yyj3691++ {
if yyj3691 >= len(yyv3691) {
yyv3691 = append(yyv3691, nil) // var yyz3691 pkg8_runtime.Object
yyc3691 = true
}
yyh3691.ElemContainerState(yyj3691)
if yyj3691 < len(yyv3691) {
if r.TryDecodeAsNil() {
yyv3691[yyj3691] = nil
} else {
yyv3696 := &yyv3691[yyj3691]
yym3697 := z.DecBinary()
_ = yym3697
if false {
} else if z.HasExtensions() && z.DecExt(yyv3696) {
} else {
z.DecFallback(yyv3696, true)
}
}
} else {
z.DecSwallow()
}
}
if yyj3691 < len(yyv3691) {
yyv3691 = yyv3691[:yyj3691]
yyc3691 = true
} else if yyj3691 == 0 && yyv3691 == nil {
yyv3691 = []pkg8_runtime.Object{}
yyc3691 = true
}
}
yyh3691.End()
if yyc3691 {
*v = yyv3691
}
}
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 _, yyv3698 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3699 := &yyv3698
yy3699.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
yyv3700 := *v
yyh3700, yyl3700 := z.DecSliceHelperStart()
var yyc3700 bool
if yyl3700 == 0 {
if yyv3700 == nil {
yyv3700 = []LimitRangeItem{}
yyc3700 = true
} else if len(yyv3700) != 0 {
yyv3700 = yyv3700[:0]
yyc3700 = true
}
} else if yyl3700 > 0 {
var yyrr3700, yyrl3700 int
var yyrt3700 bool
if yyl3700 > cap(yyv3700) {
yyrg3700 := len(yyv3700) > 0
yyv23700 := yyv3700
yyrl3700, yyrt3700 = z.DecInferLen(yyl3700, z.DecBasicHandle().MaxInitLen, 56)
if yyrt3700 {
if yyrl3700 <= cap(yyv3700) {
yyv3700 = yyv3700[:yyrl3700]
} else {
yyv3700 = make([]LimitRangeItem, yyrl3700)
}
} else {
yyv3700 = make([]LimitRangeItem, yyrl3700)
}
yyc3700 = true
yyrr3700 = len(yyv3700)
if yyrg3700 {
copy(yyv3700, yyv23700)
}
} else if yyl3700 != len(yyv3700) {
yyv3700 = yyv3700[:yyl3700]
yyc3700 = true
}
yyj3700 := 0
for ; yyj3700 < yyrr3700; yyj3700++ {
yyh3700.ElemContainerState(yyj3700)
if r.TryDecodeAsNil() {
yyv3700[yyj3700] = LimitRangeItem{}
} else {
yyv3701 := &yyv3700[yyj3700]
yyv3701.CodecDecodeSelf(d)
}
}
if yyrt3700 {
for ; yyj3700 < yyl3700; yyj3700++ {
yyv3700 = append(yyv3700, LimitRangeItem{})
yyh3700.ElemContainerState(yyj3700)
if r.TryDecodeAsNil() {
yyv3700[yyj3700] = LimitRangeItem{}
} else {
yyv3702 := &yyv3700[yyj3700]
yyv3702.CodecDecodeSelf(d)
}
}
}
} else {
yyj3700 := 0
for ; !r.CheckBreak(); yyj3700++ {
if yyj3700 >= len(yyv3700) {
yyv3700 = append(yyv3700, LimitRangeItem{}) // var yyz3700 LimitRangeItem
yyc3700 = true
}
yyh3700.ElemContainerState(yyj3700)
if yyj3700 < len(yyv3700) {
if r.TryDecodeAsNil() {
yyv3700[yyj3700] = LimitRangeItem{}
} else {
yyv3703 := &yyv3700[yyj3700]
yyv3703.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3700 < len(yyv3700) {
yyv3700 = yyv3700[:yyj3700]
yyc3700 = true
} else if yyj3700 == 0 && yyv3700 == nil {
yyv3700 = []LimitRangeItem{}
yyc3700 = true
}
}
yyh3700.End()
if yyc3700 {
*v = yyv3700
}
}
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 _, yyv3704 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3705 := &yyv3704
yy3705.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
yyv3706 := *v
yyh3706, yyl3706 := z.DecSliceHelperStart()
var yyc3706 bool
if yyl3706 == 0 {
if yyv3706 == nil {
yyv3706 = []LimitRange{}
yyc3706 = true
} else if len(yyv3706) != 0 {
yyv3706 = yyv3706[:0]
yyc3706 = true
}
} else if yyl3706 > 0 {
var yyrr3706, yyrl3706 int
var yyrt3706 bool
if yyl3706 > cap(yyv3706) {
yyrg3706 := len(yyv3706) > 0
yyv23706 := yyv3706
yyrl3706, yyrt3706 = z.DecInferLen(yyl3706, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3706 {
if yyrl3706 <= cap(yyv3706) {
yyv3706 = yyv3706[:yyrl3706]
} else {
yyv3706 = make([]LimitRange, yyrl3706)
}
} else {
yyv3706 = make([]LimitRange, yyrl3706)
}
yyc3706 = true
yyrr3706 = len(yyv3706)
if yyrg3706 {
copy(yyv3706, yyv23706)
}
} else if yyl3706 != len(yyv3706) {
yyv3706 = yyv3706[:yyl3706]
yyc3706 = true
}
yyj3706 := 0
for ; yyj3706 < yyrr3706; yyj3706++ {
yyh3706.ElemContainerState(yyj3706)
if r.TryDecodeAsNil() {
yyv3706[yyj3706] = LimitRange{}
} else {
yyv3707 := &yyv3706[yyj3706]
yyv3707.CodecDecodeSelf(d)
}
}
if yyrt3706 {
for ; yyj3706 < yyl3706; yyj3706++ {
yyv3706 = append(yyv3706, LimitRange{})
yyh3706.ElemContainerState(yyj3706)
if r.TryDecodeAsNil() {
yyv3706[yyj3706] = LimitRange{}
} else {
yyv3708 := &yyv3706[yyj3706]
yyv3708.CodecDecodeSelf(d)
}
}
}
} else {
yyj3706 := 0
for ; !r.CheckBreak(); yyj3706++ {
if yyj3706 >= len(yyv3706) {
yyv3706 = append(yyv3706, LimitRange{}) // var yyz3706 LimitRange
yyc3706 = true
}
yyh3706.ElemContainerState(yyj3706)
if yyj3706 < len(yyv3706) {
if r.TryDecodeAsNil() {
yyv3706[yyj3706] = LimitRange{}
} else {
yyv3709 := &yyv3706[yyj3706]
yyv3709.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3706 < len(yyv3706) {
yyv3706 = yyv3706[:yyj3706]
yyc3706 = true
} else if yyj3706 == 0 && yyv3706 == nil {
yyv3706 = []LimitRange{}
yyc3706 = true
}
}
yyh3706.End()
if yyc3706 {
*v = yyv3706
}
}
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 _, yyv3710 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3711 := &yyv3710
yy3711.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
yyv3712 := *v
yyh3712, yyl3712 := z.DecSliceHelperStart()
var yyc3712 bool
if yyl3712 == 0 {
if yyv3712 == nil {
yyv3712 = []ResourceQuota{}
yyc3712 = true
} else if len(yyv3712) != 0 {
yyv3712 = yyv3712[:0]
yyc3712 = true
}
} else if yyl3712 > 0 {
var yyrr3712, yyrl3712 int
var yyrt3712 bool
if yyl3712 > cap(yyv3712) {
yyrg3712 := len(yyv3712) > 0
yyv23712 := yyv3712
yyrl3712, yyrt3712 = z.DecInferLen(yyl3712, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3712 {
if yyrl3712 <= cap(yyv3712) {
yyv3712 = yyv3712[:yyrl3712]
} else {
yyv3712 = make([]ResourceQuota, yyrl3712)
}
} else {
yyv3712 = make([]ResourceQuota, yyrl3712)
}
yyc3712 = true
yyrr3712 = len(yyv3712)
if yyrg3712 {
copy(yyv3712, yyv23712)
}
} else if yyl3712 != len(yyv3712) {
yyv3712 = yyv3712[:yyl3712]
yyc3712 = true
}
yyj3712 := 0
for ; yyj3712 < yyrr3712; yyj3712++ {
yyh3712.ElemContainerState(yyj3712)
if r.TryDecodeAsNil() {
yyv3712[yyj3712] = ResourceQuota{}
} else {
yyv3713 := &yyv3712[yyj3712]
yyv3713.CodecDecodeSelf(d)
}
}
if yyrt3712 {
for ; yyj3712 < yyl3712; yyj3712++ {
yyv3712 = append(yyv3712, ResourceQuota{})
yyh3712.ElemContainerState(yyj3712)
if r.TryDecodeAsNil() {
yyv3712[yyj3712] = ResourceQuota{}
} else {
yyv3714 := &yyv3712[yyj3712]
yyv3714.CodecDecodeSelf(d)
}
}
}
} else {
yyj3712 := 0
for ; !r.CheckBreak(); yyj3712++ {
if yyj3712 >= len(yyv3712) {
yyv3712 = append(yyv3712, ResourceQuota{}) // var yyz3712 ResourceQuota
yyc3712 = true
}
yyh3712.ElemContainerState(yyj3712)
if yyj3712 < len(yyv3712) {
if r.TryDecodeAsNil() {
yyv3712[yyj3712] = ResourceQuota{}
} else {
yyv3715 := &yyv3712[yyj3712]
yyv3715.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3712 < len(yyv3712) {
yyv3712 = yyv3712[:yyj3712]
yyc3712 = true
} else if yyj3712 == 0 && yyv3712 == nil {
yyv3712 = []ResourceQuota{}
yyc3712 = true
}
}
yyh3712.End()
if yyc3712 {
*v = yyv3712
}
}
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 yyk3716, yyv3716 := range v {
z.EncSendContainerState(codecSelfer_containerMapKey1234)
yym3717 := z.EncBinary()
_ = yym3717
if false {
} else {
r.EncodeString(codecSelferC_UTF81234, string(yyk3716))
}
z.EncSendContainerState(codecSelfer_containerMapValue1234)
if yyv3716 == nil {
r.EncodeNil()
} else {
yym3718 := z.EncBinary()
_ = yym3718
if false {
} else {
r.EncodeStringBytes(codecSelferC_RAW1234, []byte(yyv3716))
}
}
}
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
yyv3719 := *v
yyl3719 := r.ReadMapStart()
yybh3719 := z.DecBasicHandle()
if yyv3719 == nil {
yyrl3719, _ := z.DecInferLen(yyl3719, yybh3719.MaxInitLen, 40)
yyv3719 = make(map[string][]uint8, yyrl3719)
*v = yyv3719
}
var yymk3719 string
var yymv3719 []uint8
var yymg3719 bool
if yybh3719.MapValueReset {
yymg3719 = true
}
if yyl3719 > 0 {
for yyj3719 := 0; yyj3719 < yyl3719; yyj3719++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3719 = ""
} else {
yymk3719 = string(r.DecodeString())
}
if yymg3719 {
yymv3719 = yyv3719[yymk3719]
} else {
yymv3719 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3719 = nil
} else {
yyv3721 := &yymv3719
yym3722 := z.DecBinary()
_ = yym3722
if false {
} else {
*yyv3721 = r.DecodeBytes(*(*[]byte)(yyv3721), false, false)
}
}
if yyv3719 != nil {
yyv3719[yymk3719] = yymv3719
}
}
} else if yyl3719 < 0 {
for yyj3719 := 0; !r.CheckBreak(); yyj3719++ {
z.DecSendContainerState(codecSelfer_containerMapKey1234)
if r.TryDecodeAsNil() {
yymk3719 = ""
} else {
yymk3719 = string(r.DecodeString())
}
if yymg3719 {
yymv3719 = yyv3719[yymk3719]
} else {
yymv3719 = nil
}
z.DecSendContainerState(codecSelfer_containerMapValue1234)
if r.TryDecodeAsNil() {
yymv3719 = nil
} else {
yyv3724 := &yymv3719
yym3725 := z.DecBinary()
_ = yym3725
if false {
} else {
*yyv3724 = r.DecodeBytes(*(*[]byte)(yyv3724), false, false)
}
}
if yyv3719 != nil {
yyv3719[yymk3719] = yymv3719
}
}
} // 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 _, yyv3726 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3727 := &yyv3726
yy3727.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
yyv3728 := *v
yyh3728, yyl3728 := z.DecSliceHelperStart()
var yyc3728 bool
if yyl3728 == 0 {
if yyv3728 == nil {
yyv3728 = []Secret{}
yyc3728 = true
} else if len(yyv3728) != 0 {
yyv3728 = yyv3728[:0]
yyc3728 = true
}
} else if yyl3728 > 0 {
var yyrr3728, yyrl3728 int
var yyrt3728 bool
if yyl3728 > cap(yyv3728) {
yyrg3728 := len(yyv3728) > 0
yyv23728 := yyv3728
yyrl3728, yyrt3728 = z.DecInferLen(yyl3728, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3728 {
if yyrl3728 <= cap(yyv3728) {
yyv3728 = yyv3728[:yyrl3728]
} else {
yyv3728 = make([]Secret, yyrl3728)
}
} else {
yyv3728 = make([]Secret, yyrl3728)
}
yyc3728 = true
yyrr3728 = len(yyv3728)
if yyrg3728 {
copy(yyv3728, yyv23728)
}
} else if yyl3728 != len(yyv3728) {
yyv3728 = yyv3728[:yyl3728]
yyc3728 = true
}
yyj3728 := 0
for ; yyj3728 < yyrr3728; yyj3728++ {
yyh3728.ElemContainerState(yyj3728)
if r.TryDecodeAsNil() {
yyv3728[yyj3728] = Secret{}
} else {
yyv3729 := &yyv3728[yyj3728]
yyv3729.CodecDecodeSelf(d)
}
}
if yyrt3728 {
for ; yyj3728 < yyl3728; yyj3728++ {
yyv3728 = append(yyv3728, Secret{})
yyh3728.ElemContainerState(yyj3728)
if r.TryDecodeAsNil() {
yyv3728[yyj3728] = Secret{}
} else {
yyv3730 := &yyv3728[yyj3728]
yyv3730.CodecDecodeSelf(d)
}
}
}
} else {
yyj3728 := 0
for ; !r.CheckBreak(); yyj3728++ {
if yyj3728 >= len(yyv3728) {
yyv3728 = append(yyv3728, Secret{}) // var yyz3728 Secret
yyc3728 = true
}
yyh3728.ElemContainerState(yyj3728)
if yyj3728 < len(yyv3728) {
if r.TryDecodeAsNil() {
yyv3728[yyj3728] = Secret{}
} else {
yyv3731 := &yyv3728[yyj3728]
yyv3731.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3728 < len(yyv3728) {
yyv3728 = yyv3728[:yyj3728]
yyc3728 = true
} else if yyj3728 == 0 && yyv3728 == nil {
yyv3728 = []Secret{}
yyc3728 = true
}
}
yyh3728.End()
if yyc3728 {
*v = yyv3728
}
}
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 _, yyv3732 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3733 := &yyv3732
yy3733.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
yyv3734 := *v
yyh3734, yyl3734 := z.DecSliceHelperStart()
var yyc3734 bool
if yyl3734 == 0 {
if yyv3734 == nil {
yyv3734 = []ComponentCondition{}
yyc3734 = true
} else if len(yyv3734) != 0 {
yyv3734 = yyv3734[:0]
yyc3734 = true
}
} else if yyl3734 > 0 {
var yyrr3734, yyrl3734 int
var yyrt3734 bool
if yyl3734 > cap(yyv3734) {
yyrg3734 := len(yyv3734) > 0
yyv23734 := yyv3734
yyrl3734, yyrt3734 = z.DecInferLen(yyl3734, z.DecBasicHandle().MaxInitLen, 64)
if yyrt3734 {
if yyrl3734 <= cap(yyv3734) {
yyv3734 = yyv3734[:yyrl3734]
} else {
yyv3734 = make([]ComponentCondition, yyrl3734)
}
} else {
yyv3734 = make([]ComponentCondition, yyrl3734)
}
yyc3734 = true
yyrr3734 = len(yyv3734)
if yyrg3734 {
copy(yyv3734, yyv23734)
}
} else if yyl3734 != len(yyv3734) {
yyv3734 = yyv3734[:yyl3734]
yyc3734 = true
}
yyj3734 := 0
for ; yyj3734 < yyrr3734; yyj3734++ {
yyh3734.ElemContainerState(yyj3734)
if r.TryDecodeAsNil() {
yyv3734[yyj3734] = ComponentCondition{}
} else {
yyv3735 := &yyv3734[yyj3734]
yyv3735.CodecDecodeSelf(d)
}
}
if yyrt3734 {
for ; yyj3734 < yyl3734; yyj3734++ {
yyv3734 = append(yyv3734, ComponentCondition{})
yyh3734.ElemContainerState(yyj3734)
if r.TryDecodeAsNil() {
yyv3734[yyj3734] = ComponentCondition{}
} else {
yyv3736 := &yyv3734[yyj3734]
yyv3736.CodecDecodeSelf(d)
}
}
}
} else {
yyj3734 := 0
for ; !r.CheckBreak(); yyj3734++ {
if yyj3734 >= len(yyv3734) {
yyv3734 = append(yyv3734, ComponentCondition{}) // var yyz3734 ComponentCondition
yyc3734 = true
}
yyh3734.ElemContainerState(yyj3734)
if yyj3734 < len(yyv3734) {
if r.TryDecodeAsNil() {
yyv3734[yyj3734] = ComponentCondition{}
} else {
yyv3737 := &yyv3734[yyj3734]
yyv3737.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3734 < len(yyv3734) {
yyv3734 = yyv3734[:yyj3734]
yyc3734 = true
} else if yyj3734 == 0 && yyv3734 == nil {
yyv3734 = []ComponentCondition{}
yyc3734 = true
}
}
yyh3734.End()
if yyc3734 {
*v = yyv3734
}
}
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 _, yyv3738 := range v {
z.EncSendContainerState(codecSelfer_containerArrayElem1234)
yy3739 := &yyv3738
yy3739.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
yyv3740 := *v
yyh3740, yyl3740 := z.DecSliceHelperStart()
var yyc3740 bool
if yyl3740 == 0 {
if yyv3740 == nil {
yyv3740 = []ComponentStatus{}
yyc3740 = true
} else if len(yyv3740) != 0 {
yyv3740 = yyv3740[:0]
yyc3740 = true
}
} else if yyl3740 > 0 {
var yyrr3740, yyrl3740 int
var yyrt3740 bool
if yyl3740 > cap(yyv3740) {
yyrg3740 := len(yyv3740) > 0
yyv23740 := yyv3740
yyrl3740, yyrt3740 = z.DecInferLen(yyl3740, z.DecBasicHandle().MaxInitLen, 216)
if yyrt3740 {
if yyrl3740 <= cap(yyv3740) {
yyv3740 = yyv3740[:yyrl3740]
} else {
yyv3740 = make([]ComponentStatus, yyrl3740)
}
} else {
yyv3740 = make([]ComponentStatus, yyrl3740)
}
yyc3740 = true
yyrr3740 = len(yyv3740)
if yyrg3740 {
copy(yyv3740, yyv23740)
}
} else if yyl3740 != len(yyv3740) {
yyv3740 = yyv3740[:yyl3740]
yyc3740 = true
}
yyj3740 := 0
for ; yyj3740 < yyrr3740; yyj3740++ {
yyh3740.ElemContainerState(yyj3740)
if r.TryDecodeAsNil() {
yyv3740[yyj3740] = ComponentStatus{}
} else {
yyv3741 := &yyv3740[yyj3740]
yyv3741.CodecDecodeSelf(d)
}
}
if yyrt3740 {
for ; yyj3740 < yyl3740; yyj3740++ {
yyv3740 = append(yyv3740, ComponentStatus{})
yyh3740.ElemContainerState(yyj3740)
if r.TryDecodeAsNil() {
yyv3740[yyj3740] = ComponentStatus{}
} else {
yyv3742 := &yyv3740[yyj3740]
yyv3742.CodecDecodeSelf(d)
}
}
}
} else {
yyj3740 := 0
for ; !r.CheckBreak(); yyj3740++ {
if yyj3740 >= len(yyv3740) {
yyv3740 = append(yyv3740, ComponentStatus{}) // var yyz3740 ComponentStatus
yyc3740 = true
}
yyh3740.ElemContainerState(yyj3740)
if yyj3740 < len(yyv3740) {
if r.TryDecodeAsNil() {
yyv3740[yyj3740] = ComponentStatus{}
} else {
yyv3743 := &yyv3740[yyj3740]
yyv3743.CodecDecodeSelf(d)
}
} else {
z.DecSwallow()
}
}
if yyj3740 < len(yyv3740) {
yyv3740 = yyv3740[:yyj3740]
yyc3740 = true
} else if yyj3740 == 0 && yyv3740 == nil {
yyv3740 = []ComponentStatus{}
yyc3740 = true
}
}
yyh3740.End()
if yyc3740 {
*v = yyv3740
}
}